@wormhole-foundation/wormhole-connect 3.0.1-beta.0-development → 3.0.1-beta.2-development

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 (323) hide show
  1. package/dist/assets/{add-Cy39EVaY.js → add-CA46SOZ1.js} +1 -1
  2. package/dist/assets/{all-wallets-BG4OMn19.js → all-wallets-B1qnLkOo.js} +1 -1
  3. package/dist/assets/{app-store-B2VJcnKc.js → app-store-NTpCK9MF.js} +1 -1
  4. package/dist/assets/{apple-6OWWifFn.js → apple-DRVt4JWr.js} +1 -1
  5. package/dist/assets/{aptos-gb8snog6.js → aptos-63ExGocu.js} +1 -1
  6. package/dist/assets/{aptos-BuLH7jck.js → aptos-DkSiRwPH.js} +3 -3
  7. package/dist/assets/{arrow-bottom-YGKzRes5.js → arrow-bottom-CPth9tFV.js} +1 -1
  8. package/dist/assets/{arrow-bottom-circle-BH-P4D_L.js → arrow-bottom-circle-BWo9DWoB.js} +1 -1
  9. package/dist/assets/{arrow-left-DF2t0i5J.js → arrow-left-P6RmBJWT.js} +1 -1
  10. package/dist/assets/{arrow-right-CP40LqnJ.js → arrow-right-BHHiE7kD.js} +1 -1
  11. package/dist/assets/{arrow-top-DnKSFz-5.js → arrow-top-D5GRFsZm.js} +1 -1
  12. package/dist/assets/{bank-BpG6sNAE.js → bank-C2WLfHR8.js} +1 -1
  13. package/dist/assets/{basic-CLnavz_q.js → basic-BCJkH5GS.js} +1 -1
  14. package/dist/assets/{blake2b-B2b685Yu.js → blake2b-Bb1VZYtg.js} +1 -1
  15. package/dist/assets/{browser-BhlgRcS6.js → browser-BPjT1bN5.js} +1 -1
  16. package/dist/assets/{card-BTep0Fm_.js → card-JaBku5Bf.js} +1 -1
  17. package/dist/assets/{ccip-By49zU3M.js → ccip-CTrUg8DF.js} +1 -1
  18. package/dist/assets/{chain-Du7paeNG.js → chain-DF9mIQM9.js} +1 -1
  19. package/dist/assets/{checkmark-UEyfqUU3.js → checkmark-BQL5JCw2.js} +1 -1
  20. package/dist/assets/{checkmark-bold-DMLl2gC5.js → checkmark-bold-DP1vE2RN.js} +1 -1
  21. package/dist/assets/{chevron-bottom-CPv_izmZ.js → chevron-bottom-BV0Au0hP.js} +1 -1
  22. package/dist/assets/{chevron-left-0a7IeWd5.js → chevron-left-C4v6Iui8.js} +1 -1
  23. package/dist/assets/{chevron-right-B-0wsh8g.js → chevron-right-CbVMuuvx.js} +1 -1
  24. package/dist/assets/{chevron-top-BHFncmmu.js → chevron-top-CuIo_USv.js} +1 -1
  25. package/dist/assets/{chrome-store-BIaI9-ba.js → chrome-store-fbydRQd1.js} +1 -1
  26. package/dist/assets/{chunk-KJH4KKG6-Po5MChR6.js → chunk-KJH4KKG6-B7DCZZVY.js} +1 -1
  27. package/dist/assets/{clock-BQdD9J7H.js → clock-D62L3EFP.js} +1 -1
  28. package/dist/assets/{close-Cjok36co.js → close-BLRqO6Zn.js} +1 -1
  29. package/dist/assets/{coinPlaceholder-CneTHrCz.js → coinPlaceholder-0tmFvYYj.js} +1 -1
  30. package/dist/assets/{compass-Dit7B215.js → compass-Ba8-RKca.js} +1 -1
  31. package/dist/assets/{contract-BhySpM-Z.js → contract-bGGxC9_m.js} +1 -1
  32. package/dist/assets/{copy-JvNImG5R.js → copy-CWqrh_sD.js} +1 -1
  33. package/dist/assets/{create-gkOVonha.js → create-CbRd6EbF.js} +1 -1
  34. package/dist/assets/{cursor-CSwolbdC.js → cursor-DFYzmUAe.js} +1 -1
  35. package/dist/assets/{cursor-transparent-DQ2bEHaM.js → cursor-transparent-IY3fA7aT.js} +1 -1
  36. package/dist/assets/{desktop-F3wMUZcL.js → desktop-DLudyYW3.js} +1 -1
  37. package/dist/assets/{disconnect-vvd6SXmG.js → disconnect-gShcPNrf.js} +1 -1
  38. package/dist/assets/{discord-mwjbbdll.js → discord-S8T3fJF7.js} +1 -1
  39. package/dist/assets/{etherscan-ZpIOVA81.js → etherscan-C-ODOYjC.js} +1 -1
  40. package/dist/assets/{evm-fcQsoqVd.js → evm-D65l_VUA.js} +4 -4
  41. package/dist/assets/{evm-CWAxZ2a7.js → evm-DwqzhXfk.js} +3 -3
  42. package/dist/assets/{exclamation-triangle-CrFNsvqc.js → exclamation-triangle-I4hrUAkj.js} +1 -1
  43. package/dist/assets/{extension-C_zCCj6H.js → extension-C2E94rju.js} +1 -1
  44. package/dist/assets/{external-link-B0LEq1D3.js → external-link-BE25aYRx.js} +1 -1
  45. package/dist/assets/{facebook-B_HaXZVY.js → facebook-VHvsuzqv.js} +1 -1
  46. package/dist/assets/{farcaster-C9d4q5--.js → farcaster-sG7oFC35.js} +1 -1
  47. package/dist/assets/{filters-Coi2MlO2.js → filters-D9VcvmFo.js} +1 -1
  48. package/dist/assets/{github-DiDkJ9-4.js → github-BLJyKdzw.js} +1 -1
  49. package/dist/assets/{google-BHKYD7dA.js → google-C4YbBNSv.js} +1 -1
  50. package/dist/assets/{help-circle-lf3f_u3Q.js → help-circle-CMmVaOnp.js} +1 -1
  51. package/dist/assets/{id-BoAkobNw.js → id-g_mC9xVi.js} +1 -1
  52. package/dist/assets/{image-C9_T15rA.js → image-nAeKstDS.js} +1 -1
  53. package/dist/assets/{index-BgLBca6k.js → index-BTkoFKAW.js} +1 -1
  54. package/dist/assets/{index-Bx8vjRmV.js → index-BUtdFAj3.js} +1 -1
  55. package/dist/assets/index-BZFyhaji.js +1 -0
  56. package/dist/assets/{index-BpI-Jtyb.js → index-BqLA4xTj.js} +3 -3
  57. package/dist/assets/{index-BE55BSK7.js → index-C0-WLpMA.js} +1 -1
  58. package/dist/assets/{index-zEIfo2_n.js → index-CCOXtJ1P.js} +1 -1
  59. package/dist/assets/{index--d0JCrsI.js → index-CKPf-3Vo.js} +1 -1
  60. package/dist/assets/{index-DSTd1tRp.js → index-COZ2cSR6.js} +1 -1
  61. package/dist/assets/{index-BedU_k3i.js → index-CVqQ68io.js} +1 -1
  62. package/dist/assets/{index-DZ96gAj4.js → index-CVqXQiSE.js} +1 -1
  63. package/dist/assets/{index-TYicGq2L.js → index-CYFq9U58.js} +1 -1
  64. package/dist/assets/{index-BYTZG2bF.js → index-C_YTupmk.js} +1 -1
  65. package/dist/assets/{index-BJYqkXUw.js → index-Cu0b-jgK.js} +1 -1
  66. package/dist/assets/{index-DB7g9m_R.js → index-DA4wR-ie.js} +1 -1
  67. package/dist/assets/{index-kF0xEQ0E.js → index-DC3x_AFd.js} +1 -1
  68. package/dist/assets/{index-DMWfYwZZ.js → index-DKdokzug.js} +1 -1
  69. package/dist/assets/{index-BZCSByFC.js → index-DusYxt7C.js} +3 -3
  70. package/dist/assets/{index-BjvqCh5g.js → index-DynC8vQ4.js} +1 -1
  71. package/dist/assets/{index-Breet2G4.js → index-GmuqTVr0.js} +1 -1
  72. package/dist/assets/index.es-CWMLsIMc.js +47 -0
  73. package/dist/assets/index.es-g5_0R3zE.js +15 -0
  74. package/dist/assets/{info-C0I2HHbp.js → info-P71aU507.js} +1 -1
  75. package/dist/assets/{info-circle-BJmxBusI.js → info-circle-D8ZhpY4M.js} +1 -1
  76. package/dist/assets/{lightbulb-Chfw09TV.js → lightbulb-CWL8Hapk.js} +1 -1
  77. package/dist/assets/{mail-BGqa051c.js → mail-BKdMRnR2.js} +1 -1
  78. package/dist/assets/{mobile-DkPjbMNa.js → mobile-Bw0EoBkW.js} +1 -1
  79. package/dist/assets/{more-f7FKhsyw.js → more-BSKGQd1b.js} +1 -1
  80. package/dist/assets/{network-placeholder-DyyxIB08.js → network-placeholder-B1xqyidN.js} +1 -1
  81. package/dist/assets/{nftPlaceholder-CfDPimUz.js → nftPlaceholder-CuCsNvkN.js} +1 -1
  82. package/dist/assets/{off-BvnUT7bh.js → off-BX6zoZuA.js} +1 -1
  83. package/dist/assets/{play-store-Dl8Di4Xz.js → play-store-CCveEK_B.js} +1 -1
  84. package/dist/assets/{plus-Dtc5pm0q.js → plus-C02SGp4V.js} +1 -1
  85. package/dist/assets/{provider-jsonrpc-CG-x8-V6.js → provider-jsonrpc-DTnJKzTS.js} +1 -1
  86. package/dist/assets/{qr-code-b5m8lMyQ.js → qr-code-DGe_aS_i.js} +1 -1
  87. package/dist/assets/{recycle-horizontal-DztIZMpd.js → recycle-horizontal-DtRomJbx.js} +1 -1
  88. package/dist/assets/{refresh-Z55s9i8s.js → refresh-DPABcpes.js} +1 -1
  89. package/dist/assets/{reown-logo-BVpI-nfV.js → reown-logo-DG2ULLka.js} +1 -1
  90. package/dist/assets/{search-CjKBf0db.js → search-EURxday_.js} +1 -1
  91. package/dist/assets/{secp256k1-BHTD1Qmp.js → secp256k1-D-G9AbtW.js} +1 -1
  92. package/dist/assets/{secp256k1-CCS9UBYD.js → secp256k1-DfnLU_Rr.js} +1 -1
  93. package/dist/assets/{send-DRsIh8XD.js → send-t6aoH9GB.js} +1 -1
  94. package/dist/assets/signer-7-tpWjBV.js +2 -0
  95. package/dist/assets/{solana-D0M1N7L4.js → solana-C-diloCa.js} +18 -18
  96. package/dist/assets/solana-C6mHMmQi.js +2 -0
  97. package/dist/assets/solanaEmbed.esm-DhAz8SOB.js +10 -0
  98. package/dist/assets/{sui-DXdm7DBB.js → sui-DXg2Lhyt.js} +4 -4
  99. package/dist/assets/{sui-CXoaI0gx.js → sui-Pc10JTxL.js} +2 -2
  100. package/dist/assets/{swapHorizontal-COY_WODc.js → swapHorizontal-Cd2Bq-oX.js} +1 -1
  101. package/dist/assets/{swapHorizontalBold-C0JXN9CW.js → swapHorizontalBold-CK6YXqcD.js} +1 -1
  102. package/dist/assets/{swapHorizontalMedium-DH34hVvb.js → swapHorizontalMedium-BCT4Hlrg.js} +1 -1
  103. package/dist/assets/{swapHorizontalRoundedBold-Cbu2lR_U.js → swapHorizontalRoundedBold-C-NDd7Fq.js} +1 -1
  104. package/dist/assets/{swapVertical-CjpRMkF_.js → swapVertical-BfKszPb9.js} +1 -1
  105. package/dist/assets/{telegram-DxmYoEg_.js → telegram-D5sYoBZp.js} +1 -1
  106. package/dist/assets/{three-dots-GsCsg39y.js → three-dots-qiTqAG0h.js} +1 -1
  107. package/dist/assets/{tokens-DNQKjj3l.js → tokens-BjeNFBPV.js} +2 -2
  108. package/dist/assets/{twitch-LH0w9yHE.js → twitch-1VH6BaUA.js} +1 -1
  109. package/dist/assets/{twitterIcon-Ci6YQIIR.js → twitterIcon-hIEIDwcz.js} +1 -1
  110. package/dist/assets/{verify-CLWJXQKG.js → verify-DxvRt34f.js} +1 -1
  111. package/dist/assets/{verify-filled-Bgbn2dT_.js → verify-filled-RtidYdgS.js} +1 -1
  112. package/dist/assets/{w3m-modal-BR4v9o5N.js → w3m-modal-DI_ypCY0.js} +1 -1
  113. package/dist/assets/{wallet-Dy9a13FP.js → wallet-Cb9kcAk9.js} +1 -1
  114. package/dist/assets/{wallet-placeholder-BlMcAG8z.js → wallet-placeholder-pTFD8Qr_.js} +1 -1
  115. package/dist/assets/{walletconnect-BmSWYy7N.js → walletconnect-DvJIx5jD.js} +1 -1
  116. package/dist/assets/{warning-circle-DUSLmVwm.js → warning-circle-CRzNiBlj.js} +1 -1
  117. package/dist/assets/{x-D-BfG-2C.js → x-Dk-mK5uZ.js} +1 -1
  118. package/dist/main.js +74 -74
  119. package/dist/src/utils/index.d.ts +1 -1
  120. package/dist/src/utils/index.d.ts.map +1 -1
  121. package/dist/src/utils/wallet/solana.d.ts.map +1 -1
  122. package/dist/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  123. package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
  124. package/dist/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
  125. package/lib/{add-k3ewuJUG.js → add-DVGSYBJf.js} +1 -1
  126. package/lib/{add-BPFasfGu.mjs → add-DrLWWjDN.mjs} +1 -1
  127. package/lib/{all-wallets-la-1zudw.mjs → all-wallets-CjzZMHCA.mjs} +1 -1
  128. package/lib/{all-wallets-DbhnhSgQ.js → all-wallets-DGVJQYa0.js} +1 -1
  129. package/lib/{app-store-DwyKNjnW.js → app-store-BABxSxrd.js} +1 -1
  130. package/lib/{app-store-doruxuZE.mjs → app-store-kpf503GR.mjs} +1 -1
  131. package/lib/{apple-Ba-W9z_L.mjs → apple-C0AtBJDu.mjs} +1 -1
  132. package/lib/{apple-f5EysyhV.js → apple-C962M6Ax.js} +1 -1
  133. package/lib/{aptos-ChgDZ9Bs.mjs → aptos-XxQj_uxF.mjs} +1 -1
  134. package/lib/{aptos-BYM651I5.js → aptos-uWJCRLoQ.js} +1 -1
  135. package/lib/{arrow-bottom-CyaXCpbT.js → arrow-bottom-CIZJcZfr.js} +1 -1
  136. package/lib/{arrow-bottom-CZPkUc3D.mjs → arrow-bottom-D0wK6uMJ.mjs} +1 -1
  137. package/lib/{arrow-bottom-circle-BOmrxjxV.mjs → arrow-bottom-circle-D5QwftYY.mjs} +1 -1
  138. package/lib/{arrow-bottom-circle-Kla1lJ0S.js → arrow-bottom-circle-iOl-NxXR.js} +1 -1
  139. package/lib/{arrow-left-Dqlhv2Qp.mjs → arrow-left-BL0dHjzy.mjs} +1 -1
  140. package/lib/{arrow-left-DtuOud7o.js → arrow-left-C-RAtnQ2.js} +1 -1
  141. package/lib/{arrow-right-W0IwU-6h.js → arrow-right-COiq03Wj.js} +1 -1
  142. package/lib/{arrow-right-glR4LxQL.mjs → arrow-right-DaZMOW_1.mjs} +1 -1
  143. package/lib/{arrow-top-DDcfmUYc.js → arrow-top-7Srj2XLP.js} +1 -1
  144. package/lib/{arrow-top-ChZhpBX5.mjs → arrow-top-QPVhK81o.mjs} +1 -1
  145. package/lib/{bank-2fSYiPNd.js → bank-Bp2l8LtZ.js} +1 -1
  146. package/lib/{bank-CeAxLFYE.mjs → bank-C5lNHVtL.mjs} +1 -1
  147. package/lib/{basic-DmAZdELt.mjs → basic-C5W71-rE.mjs} +2 -2
  148. package/lib/{basic-DATFcjGI.js → basic-DQ6ISwhI.js} +1 -1
  149. package/lib/{browser-CD59CQ82.mjs → browser-CJhUYmz6.mjs} +1 -1
  150. package/lib/{browser-DrdHogv9.js → browser-DV0hL_fK.js} +1 -1
  151. package/lib/{card-CR5E0M8J.mjs → card-DSeabGLV.mjs} +1 -1
  152. package/lib/{card-DsBOUpCN.js → card-yZLq1X6c.js} +1 -1
  153. package/lib/{ccip-BFa4y-oy.js → ccip-BCsOYNZd.js} +1 -1
  154. package/lib/{ccip-bLQYuHSY.mjs → ccip-CFqlillN.mjs} +1 -1
  155. package/lib/{checkmark-CsX9NZH7.js → checkmark-BW4NeFlB.js} +1 -1
  156. package/lib/{checkmark-CfNjLqyN.mjs → checkmark-DhgNpDof.mjs} +1 -1
  157. package/lib/{checkmark-bold-DY9T5oVa.mjs → checkmark-bold-CxJkyUOt.mjs} +1 -1
  158. package/lib/{checkmark-bold-BJIvwCmJ.js → checkmark-bold-DnEFF9eL.js} +1 -1
  159. package/lib/{chevron-bottom-BYoFClQQ.mjs → chevron-bottom-Pi9qTSKk.mjs} +1 -1
  160. package/lib/{chevron-bottom-Ditoq2xa.js → chevron-bottom-Tb5GYU7P.js} +1 -1
  161. package/lib/{chevron-left-3WnVWUcO.js → chevron-left-BRp6K_BQ.js} +1 -1
  162. package/lib/{chevron-left-CqVSZU9b.mjs → chevron-left-Cl35pkRv.mjs} +1 -1
  163. package/lib/{chevron-right-CJBuSXL6.js → chevron-right-D1Ic6C28.js} +1 -1
  164. package/lib/{chevron-right-X3OiwFgb.mjs → chevron-right-pjH-xKxB.mjs} +1 -1
  165. package/lib/{chevron-top-sE88QRY5.mjs → chevron-top-DSe-dX8z.mjs} +1 -1
  166. package/lib/{chevron-top-evdJz5l1.js → chevron-top-SdyRa8IE.js} +1 -1
  167. package/lib/{chrome-store-BE0d8gm3.js → chrome-store-0qgfQSAS.js} +1 -1
  168. package/lib/{chrome-store-CrGMC4Ms.mjs → chrome-store-ThoUGIhl.mjs} +1 -1
  169. package/lib/{clock-BQOPbXNd.js → clock-2HqPHolX.js} +1 -1
  170. package/lib/{clock-B2hRLLna.mjs → clock-B0sBEXQ5.mjs} +1 -1
  171. package/lib/{close-DwQUJGX9.js → close-BJQf5USo.js} +1 -1
  172. package/lib/{close-BAo2qofr.mjs → close-Bznv5frT.mjs} +1 -1
  173. package/lib/{coinPlaceholder-Cop9iL3O.mjs → coinPlaceholder-1gZoTAqN.mjs} +1 -1
  174. package/lib/{coinPlaceholder-D4XIXbUt.js → coinPlaceholder-CvvSiYI-.js} +1 -1
  175. package/lib/{compass-C1qPsOLt.js → compass-BBMA-82e.js} +1 -1
  176. package/lib/{compass-BirhgtWV.mjs → compass-BE99mJOV.mjs} +1 -1
  177. package/lib/constants-BDS32jve.js +1 -0
  178. package/lib/{constants-D9NeMoZZ.mjs → constants-Bp_337ur.mjs} +1 -1
  179. package/lib/{copy-DTprqw_x.js → copy-B_JboG8P.js} +1 -1
  180. package/lib/{copy-CEI12w7k.mjs → copy-Cwolsgnk.mjs} +1 -1
  181. package/lib/{cursor-BWYqc_Iy.mjs → cursor-0EyS6nH4.mjs} +1 -1
  182. package/lib/{cursor-CJNQd6s1.js → cursor-C2jyr1Tt.js} +1 -1
  183. package/lib/{cursor-transparent-BgDxhGZb.js → cursor-transparent-BaVE19A2.js} +1 -1
  184. package/lib/{cursor-transparent-DyUm_Gyl.mjs → cursor-transparent-ZUI7NwAo.mjs} +1 -1
  185. package/lib/{desktop-Donl6N-w.mjs → desktop-B1U1mc6q.mjs} +1 -1
  186. package/lib/{desktop-Dhc3ut6w.js → desktop-Dmz61Quh.js} +1 -1
  187. package/lib/{disconnect-BOkIc2nC.mjs → disconnect-8HUMogEY.mjs} +1 -1
  188. package/lib/{disconnect-BF1o-_4J.js → disconnect-Bn_0Td6c.js} +1 -1
  189. package/lib/{discord-Cr_4Cd1g.js → discord-4tBuPwio.js} +1 -1
  190. package/lib/{discord-3TAxBxMm.mjs → discord-DNMu-4pj.mjs} +1 -1
  191. package/lib/{etherscan-BdKsG3Bv.js → etherscan-CdfpxSFw.js} +1 -1
  192. package/lib/{etherscan-crtB48km.mjs → etherscan-DTafkFM9.mjs} +1 -1
  193. package/lib/{evm-BW-hVkAs.mjs → evm-B5SS0axR.mjs} +3 -3
  194. package/lib/{evm-BwVzzPhr.js → evm-BZKMUp6E.js} +3 -3
  195. package/lib/{exclamation-triangle-B8ouyGn5.mjs → exclamation-triangle-BLb5RCv9.mjs} +1 -1
  196. package/lib/{exclamation-triangle-CDWJ40KD.js → exclamation-triangle-W8wr4W3B.js} +1 -1
  197. package/lib/{extension-DdSvlDz-.js → extension-B3rp6j3f.js} +1 -1
  198. package/lib/{extension-CKbWDUFI.mjs → extension-DqXaH5V_.mjs} +1 -1
  199. package/lib/{external-link-DJvJgYIh.js → external-link-DWSOPcgR.js} +1 -1
  200. package/lib/{external-link-Ba6hY_g_.mjs → external-link-DupOMQca.mjs} +1 -1
  201. package/lib/{facebook-CFUYIcny.mjs → facebook-C25qgXgI.mjs} +1 -1
  202. package/lib/{facebook-A65A2Gkq.js → facebook-gaoSLwmV.js} +1 -1
  203. package/lib/{farcaster-BVmh2zDV.mjs → farcaster-BKQVbYft.mjs} +1 -1
  204. package/lib/{farcaster-qZSmV22m.js → farcaster-Dw_KFzSe.js} +1 -1
  205. package/lib/{filters-Uk-V5NfL.mjs → filters-BRj-u8fO.mjs} +1 -1
  206. package/lib/{filters-CNDKq3Qc.js → filters-BSv2GVWx.js} +1 -1
  207. package/lib/{github-CKyZTPiz.mjs → github-B8zYv5B1.mjs} +1 -1
  208. package/lib/{github-B34wWZJc.js → github-CVSqx81G.js} +1 -1
  209. package/lib/{google-D5l_b5at.mjs → google-CJy4jhj7.mjs} +1 -1
  210. package/lib/{google-CuY8LtEi.js → google-DWyFM_-_.js} +1 -1
  211. package/lib/{help-circle-B8yY3eo0.js → help-circle-BihX0QHp.js} +1 -1
  212. package/lib/{help-circle-CecVMIZq.mjs → help-circle-D2kyGnMD.mjs} +1 -1
  213. package/lib/hosted.js +1 -1
  214. package/lib/hosted.mjs +1 -1
  215. package/lib/{id-DTrVc-vC.mjs → id-BvDoX2i7.mjs} +1 -1
  216. package/lib/{id-DLcZPuZY.js → id-ZWI-bwNJ.js} +1 -1
  217. package/lib/{image-DTiFTFsi.mjs → image-BeWwKKKj.mjs} +1 -1
  218. package/lib/{image-Cwpi7jk6.js → image-CNQTgOF8.js} +1 -1
  219. package/lib/{index-CXkqbcY-.mjs → index-BXBTU3I5.mjs} +78 -78
  220. package/lib/{index-DoD0YukX.js → index-D2yjOpeA.js} +2 -2
  221. package/lib/{index-C8Ud7j_3.mjs → index-Dpl42t-y.mjs} +19180 -19176
  222. package/lib/index-DwMMfwYI.js +304 -0
  223. package/lib/{index.es-TJGl70mY.js → index.es-BvsB6Z8q.js} +1 -1
  224. package/lib/{index.es-DpOAk4i2.js → index.es-C2112Y2b.js} +1 -1
  225. package/lib/{index.es-CDEST0S7.mjs → index.es-C4KG3MSj.mjs} +1 -1
  226. package/lib/{index.es-BMIY5pYw.mjs → index.es-Cy_oFTNH.mjs} +3 -3
  227. package/lib/index.js +1 -1
  228. package/lib/index.mjs +1 -1
  229. package/lib/{info-DcQS8IpR.js → info-C73QOiqc.js} +1 -1
  230. package/lib/{info-t-enQ6Lr.mjs → info-CjKZyXW_.mjs} +1 -1
  231. package/lib/{info-circle-DT6JQVme.mjs → info-circle-CEpS6rzX.mjs} +1 -1
  232. package/lib/{info-circle-aXtdOOCE.js → info-circle-DE-EmffO.js} +1 -1
  233. package/lib/{lightbulb-CtbmuzLN.mjs → lightbulb-BVq3C-EG.mjs} +1 -1
  234. package/lib/{lightbulb-PXEUZBLD.js → lightbulb-Dm6Hsfd3.js} +1 -1
  235. package/lib/{mail-BeOHsaxl.mjs → mail-CqUQETIH.mjs} +1 -1
  236. package/lib/{mail-D9Wkb_fX.js → mail-GRon9tbg.js} +1 -1
  237. package/lib/{mobile-iCRio9M2.js → mobile-BmGmHmVh.js} +1 -1
  238. package/lib/{mobile-RJYQQ92x.mjs → mobile-CEbEFp0X.mjs} +1 -1
  239. package/lib/{more-CjmHuHR3.js → more-CnS-NcGa.js} +1 -1
  240. package/lib/{more-5fdnBWda.mjs → more-Cs0cmKvd.mjs} +1 -1
  241. package/lib/{network-placeholder-DfXy-pw6.js → network-placeholder-CjPyqfGa.js} +1 -1
  242. package/lib/{network-placeholder-xXksUrh5.mjs → network-placeholder-DYuB36S0.mjs} +1 -1
  243. package/lib/{nftPlaceholder-CsrQCxrs.mjs → nftPlaceholder-COJmgjQo.mjs} +1 -1
  244. package/lib/{nftPlaceholder-sAiBQkMk.js → nftPlaceholder-CoY2NOAz.js} +1 -1
  245. package/lib/{off-BqIL7yPu.js → off-B-WmBPpa.js} +1 -1
  246. package/lib/{off-BwM4HctO.mjs → off-CZo3LYgL.mjs} +1 -1
  247. package/lib/{play-store-CI-BG6p6.js → play-store-Chciiwp3.js} +1 -1
  248. package/lib/{play-store-DxNIHRp-.mjs → play-store-Edmxg3AX.mjs} +1 -1
  249. package/lib/{plus-C6x2EScU.js → plus-C93OSdaz.js} +1 -1
  250. package/lib/{plus-B7obWHt8.mjs → plus-D2jFkgs1.mjs} +1 -1
  251. package/lib/{qr-code-3DFC3Q4R.mjs → qr-code-c2tFySK0.mjs} +1 -1
  252. package/lib/{qr-code-DmjJRj0_.js → qr-code-y78Lk8wE.js} +1 -1
  253. package/lib/{recycle-horizontal-Bdxajrwe.mjs → recycle-horizontal-CWycpdDF.mjs} +1 -1
  254. package/lib/{recycle-horizontal-CG5av2fz.js → recycle-horizontal-PXk9BX3j.js} +1 -1
  255. package/lib/{refresh-Zr5AsEKU.mjs → refresh-C77_db2T.mjs} +1 -1
  256. package/lib/{refresh-Btbt-_sS.js → refresh-mky0B17c.js} +1 -1
  257. package/lib/{reown-logo-CR3PdJr3.mjs → reown-logo-0RkEf9EI.mjs} +1 -1
  258. package/lib/{reown-logo-CfO-XbUR.js → reown-logo-DceXhK36.js} +1 -1
  259. package/lib/{search-CSdDYgkF.mjs → search-BrMSW1-8.mjs} +1 -1
  260. package/lib/{search-CTbUM9lC.js → search-CWru3218.js} +1 -1
  261. package/lib/{secp256k1-BZjEFwP8.js → secp256k1-BU-UfBCB.js} +1 -1
  262. package/lib/{secp256k1-DWHMs4rw.mjs → secp256k1-C4P0dmMC.mjs} +1 -1
  263. package/lib/{secp256k1-DPqpw2CY.mjs → secp256k1-CI3_SM8F.mjs} +1 -1
  264. package/lib/{secp256k1-CnnROfkI.js → secp256k1-Cks0bicH.js} +1 -1
  265. package/lib/{send-B7xqmURU.js → send-CRyBVD1k.js} +1 -1
  266. package/lib/{send-DznbeEhx.mjs → send-DFkvxnIh.mjs} +1 -1
  267. package/lib/{solana-DLlqlTiO.js → solana-BVnMWq13.js} +14 -14
  268. package/lib/{solana-AxtnvbY3.mjs → solana-L02hbBDE.mjs} +387 -373
  269. package/lib/{solanaEmbed.esm-CAxFhfEV.js → solanaEmbed.esm-BG5cgKub.js} +1 -1
  270. package/lib/{solanaEmbed.esm-7UXGCmUk.mjs → solanaEmbed.esm-DSwNdsgx.mjs} +1 -1
  271. package/lib/src/utils/index.d.ts +1 -1
  272. package/lib/src/utils/index.d.ts.map +1 -1
  273. package/lib/src/utils/wallet/solana.d.ts.map +1 -1
  274. package/lib/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  275. package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
  276. package/lib/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
  277. package/lib/{sui-hvPfY1xD.mjs → sui-CN1tZAOs.mjs} +1 -1
  278. package/lib/{sui-CBgZojMi.js → sui-Dv1p0XoG.js} +1 -1
  279. package/lib/{swapHorizontal-CD3pRzO9.js → swapHorizontal-BiCkAPre.js} +1 -1
  280. package/lib/{swapHorizontal-D794mX-0.mjs → swapHorizontal-Bo_-2U6j.mjs} +1 -1
  281. package/lib/{swapHorizontalBold-BNqV8D-B.mjs → swapHorizontalBold-BPL2XaSi.mjs} +1 -1
  282. package/lib/{swapHorizontalBold-DmkD9tJg.js → swapHorizontalBold-CWHbSIEu.js} +1 -1
  283. package/lib/{swapHorizontalMedium-mBKWLCjs.mjs → swapHorizontalMedium-CTsDFfzR.mjs} +1 -1
  284. package/lib/{swapHorizontalMedium-BAsprxHr.js → swapHorizontalMedium-D_2Z2Hfq.js} +1 -1
  285. package/lib/{swapHorizontalRoundedBold-TCs9zHMJ.mjs → swapHorizontalRoundedBold-8b5z2YJ_.mjs} +1 -1
  286. package/lib/{swapHorizontalRoundedBold-Bxkjq6qT.js → swapHorizontalRoundedBold-CDKFFagj.js} +1 -1
  287. package/lib/{swapVertical-DhTXBg3D.js → swapVertical-CNBatiM6.js} +1 -1
  288. package/lib/{swapVertical-l8Luks9S.mjs → swapVertical-UTCgpnIJ.mjs} +1 -1
  289. package/lib/{telegram-kWkcmqoP.mjs → telegram-CVvlgH_Z.mjs} +1 -1
  290. package/lib/{telegram-DL0uLP7b.js → telegram-lTj0r5My.js} +1 -1
  291. package/lib/{three-dots-DWHn78kh.js → three-dots-DQLgK82o.js} +1 -1
  292. package/lib/{three-dots-DrLoXyiQ.mjs → three-dots-KK4NyvR7.mjs} +1 -1
  293. package/lib/{tokens-BUz0LqoV.js → tokens-B2pmB4Ph.js} +1 -1
  294. package/lib/{tokens-CVWDocZl.mjs → tokens-BQHmitaT.mjs} +1 -1
  295. package/lib/{twitch-I4SDZ--W.mjs → twitch-CO4nmS5o.mjs} +1 -1
  296. package/lib/{twitch-DhKQH1oi.js → twitch-wV3Yc6kA.js} +1 -1
  297. package/lib/{twitterIcon-b32a7G08.mjs → twitterIcon-BU99IvD2.mjs} +1 -1
  298. package/lib/{twitterIcon-jhkqYcKG.js → twitterIcon-pCNPPny7.js} +1 -1
  299. package/lib/{verify-BHunOaoq.js → verify-B21LHiy7.js} +1 -1
  300. package/lib/{verify-BILic2OM.mjs → verify-Ci9XMhb8.mjs} +1 -1
  301. package/lib/{verify-filled-DaZqbtNa.js → verify-filled-DCMcHuAt.js} +1 -1
  302. package/lib/{verify-filled-DWED2hiA.mjs → verify-filled-LUtqUhbS.mjs} +1 -1
  303. package/lib/{w3m-modal-Cy1spBe9.mjs → w3m-modal-BJkuxcj8.mjs} +2 -2
  304. package/lib/{w3m-modal-FbJz8iZj.js → w3m-modal-DJRTg4Aa.js} +1 -1
  305. package/lib/{wallet-Bt7nP-Xo.js → wallet-BqBebKQF.js} +1 -1
  306. package/lib/{wallet-BcFzu16M.mjs → wallet-USpq1vKL.mjs} +1 -1
  307. package/lib/{wallet-placeholder-DgWC2b6z.mjs → wallet-placeholder-CL_evZUb.mjs} +1 -1
  308. package/lib/{wallet-placeholder-B4QUbZ9F.js → wallet-placeholder-Cf1u-2wB.js} +1 -1
  309. package/lib/{walletconnect-D0jqiSEY.mjs → walletconnect-3g5k3agX.mjs} +1 -1
  310. package/lib/{walletconnect-DJotTW4X.js → walletconnect-Da6ZdP8w.js} +1 -1
  311. package/lib/{warning-circle-Bj9uBvqX.mjs → warning-circle-B3ivLfCN.mjs} +1 -1
  312. package/lib/{warning-circle-B9it-2WD.js → warning-circle-CvTdOy7u.js} +1 -1
  313. package/lib/{x-uoxUEJo2.mjs → x-BOwtJrlH.mjs} +1 -1
  314. package/lib/{x-BLLVBVBO.js → x-DQCRmr2P.js} +1 -1
  315. package/package.json +1 -1
  316. package/dist/assets/index-Z3Xir6L3.js +0 -1
  317. package/dist/assets/index.es-3Tq6bjFW.js +0 -47
  318. package/dist/assets/index.es-CBqWEk7T.js +0 -15
  319. package/dist/assets/signer-BRan8q4C.js +0 -2
  320. package/dist/assets/solana-B3bc0p0T.js +0 -2
  321. package/dist/assets/solanaEmbed.esm-Mnq6o_qa.js +0 -10
  322. package/lib/constants-T5Vq_IiF.js +0 -1
  323. package/lib/index-BLJhpzbW.js +0 -304
@@ -1,304 +0,0 @@
1
- "use strict";var M9=Object.defineProperty;var y9=(e,t,n)=>t in e?M9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yt=(e,t,n)=>y9(e,typeof t!="symbol"?t+"":t,n);const A=require("react/jsx-runtime"),ie=require("react"),_=require("./address-DKM11kf_.js"),Co=require("./constants-T5Vq_IiF.js");require("./address-vHTAfgt6.js");const Rn=require("./address-CslafWGT.js"),v9=require("@emotion/react"),Cr=require("@mui/system"),bt=require("@mui/material"),ui=require("./mint-DzKeNBRo.js"),Xs=require("@mui/styled-engine");function x9(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ae=x9(ie);var su={exports:{}},nr={};/**
2
- * @license React
3
- * react-is.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var j1;function b9(){if(j1)return nr;j1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),j=Symbol.for("react.client.reference");function I(T){if(typeof T=="object"&&T!==null){var S=T.$$typeof;switch(S){case e:switch(T=T.type,T){case n:case c:case a:case p:case h:case w:return T;default:switch(T=T&&T.$$typeof,T){case u:case f:case C:case g:return T;case i:return T;default:return S}}case t:return S}}}return nr.ContextConsumer=i,nr.ContextProvider=u,nr.Element=e,nr.ForwardRef=f,nr.Fragment=n,nr.Lazy=C,nr.Memo=g,nr.Portal=t,nr.Profiler=c,nr.StrictMode=a,nr.Suspense=p,nr.SuspenseList=h,nr.isContextConsumer=function(T){return I(T)===i},nr.isContextProvider=function(T){return I(T)===u},nr.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},nr.isForwardRef=function(T){return I(T)===f},nr.isFragment=function(T){return I(T)===n},nr.isLazy=function(T){return I(T)===C},nr.isMemo=function(T){return I(T)===g},nr.isPortal=function(T){return I(T)===t},nr.isProfiler=function(T){return I(T)===c},nr.isStrictMode=function(T){return I(T)===a},nr.isSuspense=function(T){return I(T)===p},nr.isSuspenseList=function(T){return I(T)===h},nr.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===c||T===a||T===p||T===h||typeof T=="object"&&T!==null&&(T.$$typeof===C||T.$$typeof===g||T.$$typeof===u||T.$$typeof===i||T.$$typeof===f||T.$$typeof===j||T.getModuleId!==void 0)},nr.typeOf=I,nr}var ir={},T1;function C9(){return T1||(T1=1,_.dist.process.env.NODE_ENV!=="production"&&function(){function e(T){if(typeof T=="object"&&T!==null){var S=T.$$typeof;switch(S){case t:switch(T=T.type,T){case a:case i:case c:case h:case g:case j:return T;default:switch(T=T&&T.$$typeof,T){case f:case p:case w:case C:return T;case u:return T;default:return S}}case n:return S}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),j=Symbol.for("react.view_transition"),I=Symbol.for("react.client.reference");ir.ContextConsumer=u,ir.ContextProvider=f,ir.Element=t,ir.ForwardRef=p,ir.Fragment=a,ir.Lazy=w,ir.Memo=C,ir.Portal=n,ir.Profiler=i,ir.StrictMode=c,ir.Suspense=h,ir.SuspenseList=g,ir.isContextConsumer=function(T){return e(T)===u},ir.isContextProvider=function(T){return e(T)===f},ir.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},ir.isForwardRef=function(T){return e(T)===p},ir.isFragment=function(T){return e(T)===a},ir.isLazy=function(T){return e(T)===w},ir.isMemo=function(T){return e(T)===C},ir.isPortal=function(T){return e(T)===n},ir.isProfiler=function(T){return e(T)===i},ir.isStrictMode=function(T){return e(T)===c},ir.isSuspense=function(T){return e(T)===h},ir.isSuspenseList=function(T){return e(T)===g},ir.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===a||T===i||T===c||T===h||T===g||typeof T=="object"&&T!==null&&(T.$$typeof===w||T.$$typeof===C||T.$$typeof===f||T.$$typeof===u||T.$$typeof===p||T.$$typeof===I||T.getModuleId!==void 0)},ir.typeOf=e}()),ir}_.dist.process.env.NODE_ENV==="production"?su.exports=b9():su.exports=C9();var mi=su.exports;function Fn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $p(e){if(ae.isValidElement(e)||mi.isValidElementType(e)||!Fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$p(e[n])}),t}function Wr(e,t,n={clone:!0}){const a=n.clone?{...e}:e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach(c=>{ae.isValidElement(t[c])||mi.isValidElementType(t[c])?a[c]=t[c]:Fn(t[c])&&Object.prototype.hasOwnProperty.call(e,c)&&Fn(e[c])?a[c]=Wr(e[c],t[c],n):n.clone?a[c]=Fn(t[c])?$p(t[c]):t[c]:a[c]=t[c]}),a}function Wn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(a=>n.searchParams.append("args[]",a)),`Minified MUI error #${e}; visit ${n} for the full message.`}function tt(e){if(typeof e!="string")throw new Error(_.dist.process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Wn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qp(e,t=""){return e.displayName||e.name||t}function A1(e,t,n){const a=qp(t);return e.displayName||(a!==""?`${n}(${a})`:n)}function w9(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case mi.ForwardRef:return A1(e,e.render,"ForwardRef");case mi.Memo:return A1(e,e.type,"memo");default:return}}}const N9=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,a)=>n.val-a.val),t.reduce((n,a)=>({...n,[a.key]:a.val}),{})};function j9(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5,...c}=e,i=N9(t),u=Object.keys(i);function f(w){return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${n})`}function p(w){return`@media (max-width:${(typeof t[w]=="number"?t[w]:w)-a/100}${n})`}function h(w,j){const I=u.indexOf(j);return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${n}) and (max-width:${(I!==-1&&typeof t[u[I]]=="number"?t[u[I]]:j)-a/100}${n})`}function g(w){return u.indexOf(w)+1<u.length?h(w,u[u.indexOf(w)+1]):f(w)}function C(w){const j=u.indexOf(w);return j===0?f(u[1]):j===u.length-1?p(u[j]):h(w,u[u.indexOf(w)+1]).replace("@media","@media not all and")}return{keys:u,values:i,up:f,down:p,between:h,only:g,not:C,unit:n,...c}}function T9(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(a=>a.startsWith("@container")).sort((a,c)=>{var u,f;const i=/min-width:\s*([0-9.]+)/;return+(((u=a.match(i))==null?void 0:u[1])||0)-+(((f=c.match(i))==null?void 0:f[1])||0)});return n.length?n.reduce((a,c)=>{const i=t[c];return delete a[c],a[c]=i,a},{...t}):t}function A9(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function I9(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(_.dist.process.env.NODE_ENV!=="production")throw new Error(_.dist.process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
10
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Wn(18,`(${t})`));return null}const[,a,c]=n,i=Number.isNaN(+a)?a||0:+a;return e.containerQueries(c).up(i)}function E9(e){const t=(i,u)=>i.replace("@media",u?`@container ${u}`:"@container");function n(i,u){i.up=(...f)=>t(e.breakpoints.up(...f),u),i.down=(...f)=>t(e.breakpoints.down(...f),u),i.between=(...f)=>t(e.breakpoints.between(...f),u),i.only=(...f)=>t(e.breakpoints.only(...f),u),i.not=(...f)=>{const p=t(e.breakpoints.not(...f),u);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const a={},c=i=>(n(a,i),a);return n(c),{...e,containerQueries:c}}const L9={borderRadius:4};var cu={exports:{}},es={exports:{}},Jt={};/** @license React v16.13.1
11
- * react-is.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var I1;function S9(){if(I1)return Jt;I1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,c=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,j=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function D(F){if(typeof F=="object"&&F!==null){var R=F.$$typeof;switch(R){case t:switch(F=F.type,F){case p:case h:case a:case i:case c:case C:return F;default:switch(F=F&&F.$$typeof,F){case f:case g:case I:case j:case u:return F;default:return R}}case n:return R}}}function O(F){return D(F)===h}return Jt.AsyncMode=p,Jt.ConcurrentMode=h,Jt.ContextConsumer=f,Jt.ContextProvider=u,Jt.Element=t,Jt.ForwardRef=g,Jt.Fragment=a,Jt.Lazy=I,Jt.Memo=j,Jt.Portal=n,Jt.Profiler=i,Jt.StrictMode=c,Jt.Suspense=C,Jt.isAsyncMode=function(F){return O(F)||D(F)===p},Jt.isConcurrentMode=O,Jt.isContextConsumer=function(F){return D(F)===f},Jt.isContextProvider=function(F){return D(F)===u},Jt.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===t},Jt.isForwardRef=function(F){return D(F)===g},Jt.isFragment=function(F){return D(F)===a},Jt.isLazy=function(F){return D(F)===I},Jt.isMemo=function(F){return D(F)===j},Jt.isPortal=function(F){return D(F)===n},Jt.isProfiler=function(F){return D(F)===i},Jt.isStrictMode=function(F){return D(F)===c},Jt.isSuspense=function(F){return D(F)===C},Jt.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===a||F===h||F===i||F===c||F===C||F===w||typeof F=="object"&&F!==null&&(F.$$typeof===I||F.$$typeof===j||F.$$typeof===u||F.$$typeof===f||F.$$typeof===g||F.$$typeof===S||F.$$typeof===L||F.$$typeof===E||F.$$typeof===T)},Jt.typeOf=D,Jt}var Xt={},E1;function D9(){return E1||(E1=1,_.dist.process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,c=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,j=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function D(Y){return typeof Y=="string"||typeof Y=="function"||Y===a||Y===h||Y===i||Y===c||Y===C||Y===w||typeof Y=="object"&&Y!==null&&(Y.$$typeof===I||Y.$$typeof===j||Y.$$typeof===u||Y.$$typeof===f||Y.$$typeof===g||Y.$$typeof===S||Y.$$typeof===L||Y.$$typeof===E||Y.$$typeof===T)}function O(Y){if(typeof Y=="object"&&Y!==null){var ne=Y.$$typeof;switch(ne){case t:var xe=Y.type;switch(xe){case p:case h:case a:case i:case c:case C:return xe;default:var le=xe&&xe.$$typeof;switch(le){case f:case g:case I:case j:case u:return le;default:return ne}}case n:return ne}}}var F=p,R=h,Q=f,B=u,k=t,z=g,y=a,r=I,s=j,l=n,d=i,M=c,b=C,N=!1;function m(Y){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(Y)||O(Y)===p}function o(Y){return O(Y)===h}function x(Y){return O(Y)===f}function W(Y){return O(Y)===u}function Z(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function G(Y){return O(Y)===g}function ee(Y){return O(Y)===a}function V(Y){return O(Y)===I}function P(Y){return O(Y)===j}function H(Y){return O(Y)===n}function $(Y){return O(Y)===i}function X(Y){return O(Y)===c}function te(Y){return O(Y)===C}Xt.AsyncMode=F,Xt.ConcurrentMode=R,Xt.ContextConsumer=Q,Xt.ContextProvider=B,Xt.Element=k,Xt.ForwardRef=z,Xt.Fragment=y,Xt.Lazy=r,Xt.Memo=s,Xt.Portal=l,Xt.Profiler=d,Xt.StrictMode=M,Xt.Suspense=b,Xt.isAsyncMode=m,Xt.isConcurrentMode=o,Xt.isContextConsumer=x,Xt.isContextProvider=W,Xt.isElement=Z,Xt.isForwardRef=G,Xt.isFragment=ee,Xt.isLazy=V,Xt.isMemo=P,Xt.isPortal=H,Xt.isProfiler=$,Xt.isStrictMode=X,Xt.isSuspense=te,Xt.isValidElementType=D,Xt.typeOf=O}()),Xt}var L1;function Jp(){return L1||(L1=1,_.dist.process.env.NODE_ENV==="production"?es.exports=S9():es.exports=D9()),es.exports}/*
18
- object-assign
19
- (c) Sindre Sorhus
20
- @license MIT
21
- */var dc,S1;function O9(){if(S1)return dc;S1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function c(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var u={},f=0;f<10;f++)u["_"+String.fromCharCode(f)]=f;var p=Object.getOwnPropertyNames(u).map(function(g){return u[g]});if(p.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(g){h[g]=g}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dc=c()?Object.assign:function(i,u){for(var f,p=a(i),h,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var C in f)t.call(f,C)&&(p[C]=f[C]);if(e){h=e(f);for(var w=0;w<h.length;w++)n.call(f,h[w])&&(p[h[w]]=f[h[w]])}}return p},dc}var hc,D1;function id(){if(D1)return hc;D1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hc=e,hc}var pc,O1;function Xp(){return O1||(O1=1,pc=Function.call.bind(Object.prototype.hasOwnProperty)),pc}var gc,z1;function z9(){if(z1)return gc;z1=1;var e=function(){};if(_.dist.process.env.NODE_ENV!=="production"){var t=id(),n={},a=Xp();e=function(i){var u="Warning: "+i;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function c(i,u,f,p,h){if(_.dist.process.env.NODE_ENV!=="production"){for(var g in i)if(a(i,g)){var C;try{if(typeof i[g]!="function"){var w=Error((p||"React class")+": "+f+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}C=i[g](u,g,p,f,null,t)}catch(I){C=I}if(C&&!(C instanceof Error)&&e((p||"React class")+": type specification of "+f+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof C+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),C instanceof Error&&!(C.message in n)){n[C.message]=!0;var j=h?h():"";e("Failed "+f+" type: "+C.message+(j??""))}}}}return c.resetWarningCache=function(){_.dist.process.env.NODE_ENV!=="production"&&(n={})},gc=c,gc}var mc,k1;function k9(){if(k1)return mc;k1=1;var e=Jp(),t=O9(),n=id(),a=Xp(),c=z9(),i=function(){};_.dist.process.env.NODE_ENV!=="production"&&(i=function(f){var p="Warning: "+f;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function u(){return null}return mc=function(f,p){var h=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function C(o){var x=o&&(h&&o[h]||o[g]);if(typeof x=="function")return x}var w="<<anonymous>>",j={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:E(),arrayOf:D,element:O(),elementType:F(),instanceOf:R,node:z(),objectOf:B,oneOf:Q,oneOfType:k,shape:r,exact:s};function I(o,x){return o===x?o!==0||1/o===1/x:o!==o&&x!==x}function T(o,x){this.message=o,this.data=x&&typeof x=="object"?x:{},this.stack=""}T.prototype=Error.prototype;function S(o){if(_.dist.process.env.NODE_ENV!=="production")var x={},W=0;function Z(ee,V,P,H,$,X,te){if(H=H||w,X=X||P,te!==n){if(p){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(_.dist.process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=H+":"+P;!x[ne]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),x[ne]=!0,W++)}}return V[P]==null?ee?V[P]===null?new T("The "+$+" `"+X+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new T("The "+$+" `"+X+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:o(V,P,H,$,X)}var G=Z.bind(null,!1);return G.isRequired=Z.bind(null,!0),G}function L(o){function x(W,Z,G,ee,V,P){var H=W[Z],$=M(H);if($!==o){var X=b(H);return new T("Invalid "+ee+" `"+V+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("`"+o+"`."),{expectedType:o})}return null}return S(x)}function E(){return S(u)}function D(o){function x(W,Z,G,ee,V){if(typeof o!="function")return new T("Property `"+V+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var P=W[Z];if(!Array.isArray(P)){var H=M(P);return new T("Invalid "+ee+" `"+V+"` of type "+("`"+H+"` supplied to `"+G+"`, expected an array."))}for(var $=0;$<P.length;$++){var X=o(P,$,G,ee,V+"["+$+"]",n);if(X instanceof Error)return X}return null}return S(x)}function O(){function o(x,W,Z,G,ee){var V=x[W];if(!f(V)){var P=M(V);return new T("Invalid "+G+" `"+ee+"` of type "+("`"+P+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return S(o)}function F(){function o(x,W,Z,G,ee){var V=x[W];if(!e.isValidElementType(V)){var P=M(V);return new T("Invalid "+G+" `"+ee+"` of type "+("`"+P+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return S(o)}function R(o){function x(W,Z,G,ee,V){if(!(W[Z]instanceof o)){var P=o.name||w,H=m(W[Z]);return new T("Invalid "+ee+" `"+V+"` of type "+("`"+H+"` supplied to `"+G+"`, expected ")+("instance of `"+P+"`."))}return null}return S(x)}function Q(o){if(!Array.isArray(o))return _.dist.process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),u;function x(W,Z,G,ee,V){for(var P=W[Z],H=0;H<o.length;H++)if(I(P,o[H]))return null;var $=JSON.stringify(o,function(te,Y){var ne=b(Y);return ne==="symbol"?String(Y):Y});return new T("Invalid "+ee+" `"+V+"` of value `"+String(P)+"` "+("supplied to `"+G+"`, expected one of "+$+"."))}return S(x)}function B(o){function x(W,Z,G,ee,V){if(typeof o!="function")return new T("Property `"+V+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var P=W[Z],H=M(P);if(H!=="object")return new T("Invalid "+ee+" `"+V+"` of type "+("`"+H+"` supplied to `"+G+"`, expected an object."));for(var $ in P)if(a(P,$)){var X=o(P,$,G,ee,V+"."+$,n);if(X instanceof Error)return X}return null}return S(x)}function k(o){if(!Array.isArray(o))return _.dist.process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var x=0;x<o.length;x++){var W=o[x];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(W)+" at index "+x+"."),u}function Z(G,ee,V,P,H){for(var $=[],X=0;X<o.length;X++){var te=o[X],Y=te(G,ee,V,P,H,n);if(Y==null)return null;Y.data&&a(Y.data,"expectedType")&&$.push(Y.data.expectedType)}var ne=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new T("Invalid "+P+" `"+H+"` supplied to "+("`"+V+"`"+ne+"."))}return S(Z)}function z(){function o(x,W,Z,G,ee){return l(x[W])?null:new T("Invalid "+G+" `"+ee+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return S(o)}function y(o,x,W,Z,G){return new T((o||"React class")+": "+x+" type `"+W+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function r(o){function x(W,Z,G,ee,V){var P=W[Z],H=M(P);if(H!=="object")return new T("Invalid "+ee+" `"+V+"` of type `"+H+"` "+("supplied to `"+G+"`, expected `object`."));for(var $ in o){var X=o[$];if(typeof X!="function")return y(G,ee,V,$,b(X));var te=X(P,$,G,ee,V+"."+$,n);if(te)return te}return null}return S(x)}function s(o){function x(W,Z,G,ee,V){var P=W[Z],H=M(P);if(H!=="object")return new T("Invalid "+ee+" `"+V+"` of type `"+H+"` "+("supplied to `"+G+"`, expected `object`."));var $=t({},W[Z],o);for(var X in $){var te=o[X];if(a(o,X)&&typeof te!="function")return y(G,ee,V,X,b(te));if(!te)return new T("Invalid "+ee+" `"+V+"` key `"+X+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(W[Z],null," ")+`
22
- Valid keys: `+JSON.stringify(Object.keys(o),null," "));var Y=te(P,X,G,ee,V+"."+X,n);if(Y)return Y}return null}return S(x)}function l(o){switch(typeof o){case"number":case"string":case"undefined":return!0;case"boolean":return!o;case"object":if(Array.isArray(o))return o.every(l);if(o===null||f(o))return!0;var x=C(o);if(x){var W=x.call(o),Z;if(x!==o.entries){for(;!(Z=W.next()).done;)if(!l(Z.value))return!1}else for(;!(Z=W.next()).done;){var G=Z.value;if(G&&!l(G[1]))return!1}}else return!1;return!0;default:return!1}}function d(o,x){return o==="symbol"?!0:x?x["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&x instanceof Symbol:!1}function M(o){var x=typeof o;return Array.isArray(o)?"array":o instanceof RegExp?"object":d(x,o)?"symbol":x}function b(o){if(typeof o>"u"||o===null)return""+o;var x=M(o);if(x==="object"){if(o instanceof Date)return"date";if(o instanceof RegExp)return"regexp"}return x}function N(o){var x=b(o);switch(x){case"array":case"object":return"an "+x;case"boolean":case"date":case"regexp":return"a "+x;default:return x}}function m(o){return!o.constructor||!o.constructor.name?w:o.constructor.name}return j.checkPropTypes=c,j.resetWarningCache=c.resetWarningCache,j.PropTypes=j,j},mc}var Mc,_1;function _9(){if(_1)return Mc;_1=1;var e=id();function t(){}function n(){}return n.resetWarningCache=t,Mc=function(){function a(u,f,p,h,g,C){if(C!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}a.isRequired=a;function c(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:c,element:a,elementType:a,instanceOf:c,node:a,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Mc}if(_.dist.process.env.NODE_ENV!=="production"){var B9=Jp(),F9=!0;cu.exports=k9()(B9.isElement,F9)}else cu.exports=_9()();var R9=cu.exports;const v=_.getDefaultExportFromCjs(R9),Ci=_.dist.process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.string,v.object,v.array]):{};function ca(e,t){return t?Wr(e,t,{clone:!1}):e}const w0={xs:0,sm:600,md:900,lg:1200,xl:1536},B1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${w0[e]}px)`},P9={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:w0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ti(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const i=a.breakpoints||B1;return t.reduce((u,f,p)=>(u[i.up(i.keys[p])]=n(t[p]),u),{})}if(typeof t=="object"){const i=a.breakpoints||B1;return Object.keys(t).reduce((u,f)=>{if(A9(i.keys,f)){const p=I9(a.containerQueries?a:P9,f);p&&(u[p]=n(t[f],f))}else if(Object.keys(i.values||w0).includes(f)){const p=i.up(f);u[p]=n(t[f],f)}else{const p=f;u[p]=t[p]}return u},{})}return n(t)}function U9(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((a,c)=>{const i=e.up(c);return a[i]={},a},{}))||{}}function Y9(e,t){return e.reduce((n,a)=>{const c=n[a];return(!c||Object.keys(c).length===0)&&delete n[a],n},t)}function di(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const a=`vars.${t}`.split(".").reduce((c,i)=>c&&c[i]?c[i]:null,e);if(a!=null)return a}return t.split(".").reduce((a,c)=>a&&a[c]!=null?a[c]:null,e)}function Ks(e,t,n,a=n){let c;return typeof e=="function"?c=e(n):Array.isArray(e)?c=e[n]||a:c=di(e,n)||a,t&&(c=t(c,a,e)),c}function Nr(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:c}=e,i=u=>{if(u[t]==null)return null;const f=u[t],p=u.theme,h=di(p,a)||{};return ti(u,f,C=>{let w=Ks(h,c,C);return C===w&&typeof C=="string"&&(w=Ks(h,c,`${t}${C==="default"?"":tt(C)}`,C)),n===!1?w:{[n]:w}})};return i.propTypes=_.dist.process.env.NODE_ENV!=="production"?{[t]:Ci}:{},i.filterProps=[t],i}function W9(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const H9={m:"margin",p:"padding"},Z9={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},F1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Q9=W9(e=>{if(e.length>2)if(F1[e])e=F1[e];else return[e];const[t,n]=e.split(""),a=H9[t],c=Z9[n]||"";return Array.isArray(c)?c.map(i=>a+i):[a+c]}),N0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],j0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],V9=[...N0,...j0];function _a(e,t,n,a){const c=di(e,t,!0)??n;return typeof c=="number"||typeof c=="string"?i=>typeof i=="string"?i:(_.dist.process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${a} argument to be a number or a string, got ${i}.`),typeof c=="string"?`calc(${i} * ${c})`:c*i):Array.isArray(c)?i=>{if(typeof i=="string")return i;const u=Math.abs(i);_.dist.process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>c.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(c)}.`,`${u} > ${c.length-1}, you need to add the missing values.`].join(`
23
- `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
24
- `)));const f=c[u];return i>=0?f:typeof f=="number"?-f:`-${f}`}:typeof c=="function"?c:(_.dist.process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${c}) is invalid.`,"It should be a number, an array or a function."].join(`
25
- `)),()=>{})}function od(e){return _a(e,"spacing",8,"spacing")}function Ba(e,t){return typeof t=="string"||t==null?t:e(t)}function G9(e,t){return n=>e.reduce((a,c)=>(a[c]=Ba(t,n),a),{})}function $9(e,t,n,a){if(!t.includes(n))return null;const c=Q9(n),i=G9(c,a),u=e[n];return ti(e,u,i)}function Kp(e,t){const n=od(e.theme);return Object.keys(e).map(a=>$9(e,t,a,n)).reduce(ca,{})}function Mr(e){return Kp(e,N0)}Mr.propTypes=_.dist.process.env.NODE_ENV!=="production"?N0.reduce((e,t)=>(e[t]=Ci,e),{}):{};Mr.filterProps=N0;function yr(e){return Kp(e,j0)}yr.propTypes=_.dist.process.env.NODE_ENV!=="production"?j0.reduce((e,t)=>(e[t]=Ci,e),{}):{};yr.filterProps=j0;_.dist.process.env.NODE_ENV!=="production"&&V9.reduce((e,t)=>(e[t]=Ci,e),{});function q9(e=8,t=od({spacing:e})){if(e.mui)return e;const n=(...a)=>(_.dist.process.env.NODE_ENV!=="production"&&(a.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${a.length}`)),(a.length===0?[1]:a).map(i=>{const u=t(i);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function T0(...e){const t=e.reduce((a,c)=>(c.filterProps.forEach(i=>{a[i]=c}),a),{}),n=a=>Object.keys(a).reduce((c,i)=>t[i]?ca(c,t[i](a)):c,{});return n.propTypes=_.dist.process.env.NODE_ENV!=="production"?e.reduce((a,c)=>Object.assign(a,c.propTypes),{}):{},n.filterProps=e.reduce((a,c)=>a.concat(c.filterProps),[]),n}function gn(e){return typeof e!="number"?e:`${e}px solid`}function jn(e,t){return Nr({prop:e,themeKey:"borders",transform:t})}const J9=jn("border",gn),X9=jn("borderTop",gn),K9=jn("borderRight",gn),em=jn("borderBottom",gn),tm=jn("borderLeft",gn),rm=jn("borderColor"),nm=jn("borderTopColor"),im=jn("borderRightColor"),om=jn("borderBottomColor"),am=jn("borderLeftColor"),sm=jn("outline",gn),cm=jn("outlineColor"),A0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_a(e.theme,"shape.borderRadius",4,"borderRadius"),n=a=>({borderRadius:Ba(t,a)});return ti(e,e.borderRadius,n)}return null};A0.propTypes=_.dist.process.env.NODE_ENV!=="production"?{borderRadius:Ci}:{};A0.filterProps=["borderRadius"];T0(J9,X9,K9,em,tm,rm,nm,im,om,am,A0,sm,cm);const I0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_a(e.theme,"spacing",8,"gap"),n=a=>({gap:Ba(t,a)});return ti(e,e.gap,n)}return null};I0.propTypes=_.dist.process.env.NODE_ENV!=="production"?{gap:Ci}:{};I0.filterProps=["gap"];const E0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_a(e.theme,"spacing",8,"columnGap"),n=a=>({columnGap:Ba(t,a)});return ti(e,e.columnGap,n)}return null};E0.propTypes=_.dist.process.env.NODE_ENV!=="production"?{columnGap:Ci}:{};E0.filterProps=["columnGap"];const L0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_a(e.theme,"spacing",8,"rowGap"),n=a=>({rowGap:Ba(t,a)});return ti(e,e.rowGap,n)}return null};L0.propTypes=_.dist.process.env.NODE_ENV!=="production"?{rowGap:Ci}:{};L0.filterProps=["rowGap"];const lm=Nr({prop:"gridColumn"}),fm=Nr({prop:"gridRow"}),um=Nr({prop:"gridAutoFlow"}),dm=Nr({prop:"gridAutoColumns"}),hm=Nr({prop:"gridAutoRows"}),pm=Nr({prop:"gridTemplateColumns"}),gm=Nr({prop:"gridTemplateRows"}),mm=Nr({prop:"gridTemplateAreas"}),Mm=Nr({prop:"gridArea"});T0(I0,E0,L0,lm,fm,um,dm,hm,pm,gm,mm,Mm);function yo(e,t){return t==="grey"?t:e}const ym=Nr({prop:"color",themeKey:"palette",transform:yo}),vm=Nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yo}),xm=Nr({prop:"backgroundColor",themeKey:"palette",transform:yo});T0(ym,vm,xm);function rn(e){return e<=1&&e!==0?`${e*100}%`:e}const bm=Nr({prop:"width",transform:rn}),ad=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var c,i,u,f,p;const a=((u=(i=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:i.values)==null?void 0:u[n])||w0[n];return a?((p=(f=e.theme)==null?void 0:f.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:rn(n)}};return ti(e,e.maxWidth,t)}return null};ad.filterProps=["maxWidth"];const Cm=Nr({prop:"minWidth",transform:rn}),wm=Nr({prop:"height",transform:rn}),Nm=Nr({prop:"maxHeight",transform:rn}),jm=Nr({prop:"minHeight",transform:rn});Nr({prop:"size",cssProperty:"width",transform:rn});Nr({prop:"size",cssProperty:"height",transform:rn});const Tm=Nr({prop:"boxSizing"});T0(bm,ad,Cm,wm,Nm,jm,Tm);const Fa={border:{themeKey:"borders",transform:gn},borderTop:{themeKey:"borders",transform:gn},borderRight:{themeKey:"borders",transform:gn},borderBottom:{themeKey:"borders",transform:gn},borderLeft:{themeKey:"borders",transform:gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A0},color:{themeKey:"palette",transform:yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yo},backgroundColor:{themeKey:"palette",transform:yo},p:{style:yr},pt:{style:yr},pr:{style:yr},pb:{style:yr},pl:{style:yr},px:{style:yr},py:{style:yr},padding:{style:yr},paddingTop:{style:yr},paddingRight:{style:yr},paddingBottom:{style:yr},paddingLeft:{style:yr},paddingX:{style:yr},paddingY:{style:yr},paddingInline:{style:yr},paddingInlineStart:{style:yr},paddingInlineEnd:{style:yr},paddingBlock:{style:yr},paddingBlockStart:{style:yr},paddingBlockEnd:{style:yr},m:{style:Mr},mt:{style:Mr},mr:{style:Mr},mb:{style:Mr},ml:{style:Mr},mx:{style:Mr},my:{style:Mr},margin:{style:Mr},marginTop:{style:Mr},marginRight:{style:Mr},marginBottom:{style:Mr},marginLeft:{style:Mr},marginX:{style:Mr},marginY:{style:Mr},marginInline:{style:Mr},marginInlineStart:{style:Mr},marginInlineEnd:{style:Mr},marginBlock:{style:Mr},marginBlockStart:{style:Mr},marginBlockEnd:{style:Mr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:I0},rowGap:{style:L0},columnGap:{style:E0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rn},maxWidth:{style:ad},minWidth:{transform:rn},height:{transform:rn},maxHeight:{transform:rn},minHeight:{transform:rn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Am(...e){const t=e.reduce((a,c)=>a.concat(Object.keys(c)),[]),n=new Set(t);return e.every(a=>n.size===Object.keys(a).length)}function Im(e,t){return typeof e=="function"?e(t):e}function Em(){function e(n,a,c,i){const u={[n]:a,theme:c},f=i[n];if(!f)return{[n]:a};const{cssProperty:p=n,themeKey:h,transform:g,style:C}=f;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[n]:a};const w=di(c,h)||{};return C?C(u):ti(u,a,I=>{let T=Ks(w,g,I);return I===T&&typeof I=="string"&&(T=Ks(w,g,`${n}${I==="default"?"":tt(I)}`,I)),p===!1?T:{[p]:T}})}function t(n){const{sx:a,theme:c={}}=n||{};if(!a)return null;const i=c.unstable_sxConfig??Fa;function u(f){let p=f;if(typeof f=="function")p=f(c);else if(typeof f!="object")return f;if(!p)return null;const h=U9(c.breakpoints),g=Object.keys(h);let C=h;return Object.keys(p).forEach(w=>{const j=Im(p[w],c);if(j!=null)if(typeof j=="object")if(i[w])C=ca(C,e(w,j,c,i));else{const I=ti({theme:c},j,T=>({[w]:T}));Am(I,j)?C[w]=t({sx:j,theme:c}):C=ca(C,I)}else C=ca(C,e(w,j,c,i))}),T9(c,Y9(g,C))}return Array.isArray(a)?a.map(u):u(a)}return t}const $i=Em();$i.filterProps=["sx"];function Lm(e,t){var a;const n=this;if(n.vars){if(!((a=n.colorSchemes)!=null&&a[e])||typeof n.getColorSchemeSelector!="function")return{};let c=n.getColorSchemeSelector(e);return c==="&"?t:((c.includes("data-")||c.includes("."))&&(c=`*:where(${c.replace(/\s*&$/,"")}) &`),{[c]:t})}return n.palette.mode===e?t:{}}function e5(e={},...t){const{breakpoints:n={},palette:a={},spacing:c,shape:i={},...u}=e,f=j9(n),p=q9(c);let h=Wr({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:p,shape:{...L9,...i}},u);return h=E9(h),h.applyStyles=Lm,h=t.reduce((g,C)=>Wr(g,C),h),h.unstable_sxConfig={...Fa,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(C){return $i({sx:C,theme:this})},h}const Sm=e=>{var a;const t={systemProps:{},otherProps:{}},n=((a=e==null?void 0:e.theme)==null?void 0:a.unstable_sxConfig)??Fa;return Object.keys(e).forEach(c=>{n[c]?t.systemProps[c]=e[c]:t.otherProps[c]=e[c]}),t};function Dm(e){const{sx:t,...n}=e,{systemProps:a,otherProps:c}=Sm(n);let i;return Array.isArray(t)?i=[a,...t]:typeof t=="function"?i=(...u)=>{const f=t(...u);return Fn(f)?{...a,...f}:a}:i={...a,...t},{...c,sx:i}}function Om(e){const{variants:t,...n}=e,a={variants:t,style:Xs.internal_serializeStyles(n),isProcessed:!0};return a.style===n||t&&t.forEach(c=>{typeof c.style!="function"&&(c.style=Xs.internal_serializeStyles(c.style))}),a}const zm=e5();function yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function km(e){return e?(t,n)=>n[e]:null}function _m(e,t,n){e.theme=Pm(e.theme)?n:e.theme[t]||e.theme}function Fs(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(a=>Fs(e,a));if(Array.isArray(n==null?void 0:n.variants)){let a;if(n.isProcessed)a=n.style;else{const{variants:c,...i}=n;a=i}return t5(e,n.variants,[a])}return n!=null&&n.isProcessed?n.style:n}function t5(e,t,n=[]){var c;let a;e:for(let i=0;i<t.length;i+=1){const u=t[i];if(typeof u.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(a))continue}else for(const f in u.props)if(e[f]!==u.props[f]&&((c=e.ownerState)==null?void 0:c[f])!==u.props[f])continue e;typeof u.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(a))):n.push(u.style)}return n}function Bm(e={}){const{themeId:t,defaultTheme:n=zm,rootShouldForwardProp:a=yc,slotShouldForwardProp:c=yc}=e;function i(f){_m(f,t,n)}return(f,p={})=>{Xs.internal_mutateStyles(f,F=>F.filter(R=>R!==$i));const{name:h,slot:g,skipVariantsResolver:C,skipSx:w,overridesResolver:j=km(r5(g)),...I}=p,T=C!==void 0?C:g&&g!=="Root"&&g!=="root"||!1,S=w||!1;let L=yc;g==="Root"||g==="root"?L=a:g?L=c:Um(f)&&(L=void 0);const E=Xs(f,{shouldForwardProp:L,label:Rm(h,g),...I}),D=F=>{if(typeof F=="function"&&F.__emotion_real!==F)return function(Q){return Fs(Q,F)};if(Fn(F)){const R=Om(F);return R.variants?function(B){return Fs(B,R)}:R.style}return F},O=(...F)=>{const R=[],Q=F.map(D),B=[];if(R.push(i),h&&j&&B.push(function(r){var M,b;const l=(b=(M=r.theme.components)==null?void 0:M[h])==null?void 0:b.styleOverrides;if(!l)return null;const d={};for(const N in l)d[N]=Fs(r,l[N]);return j(r,d)}),h&&!T&&B.push(function(r){var d,M;const s=r.theme,l=(M=(d=s==null?void 0:s.components)==null?void 0:d[h])==null?void 0:M.variants;return l?t5(r,l):null}),S||B.push($i),Array.isArray(Q[0])){const y=Q.shift(),r=new Array(R.length).fill(""),s=new Array(B.length).fill("");let l;l=[...r,...y,...s],l.raw=[...r,...y.raw,...s],R.unshift(l)}const k=[...R,...Q,...B],z=E(...k);return f.muiName&&(z.muiName=f.muiName),_.dist.process.env.NODE_ENV!=="production"&&(z.displayName=Fm(h,g,f)),z};return E.withConfig&&(O.withConfig=E.withConfig),O}}function Fm(e,t,n){return e?`${e}${tt(t||"")}`:`Styled(${w9(n)})`}function Rm(e,t){let n;return _.dist.process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${r5(t||"Root")}`),n}function Pm(e){for(const t in e)return!1;return!0}function Um(e){return typeof e=="string"&&e.charCodeAt(0)>96}function r5(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ym(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function sd(e,t=0,n=1){return _.dist.process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ym(e,t,n)}function Wm(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(a=>a+a)),_.dist.process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((a,c)=>c<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function Mi(e){if(e.type)return e;if(e.charAt(0)==="#")return Mi(Wm(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_.dist.process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
26
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Wn(9,e));let a=e.substring(t+1,e.length-1),c;if(n==="color"){if(a=a.split(" "),c=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(c))throw new Error(_.dist.process.env.NODE_ENV!=="production"?`MUI: unsupported \`${c}\` color space.
27
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Wn(10,c))}else a=a.split(",");return a=a.map(i=>parseFloat(i)),{type:n,values:a,colorSpace:c}}const Hm=e=>{const t=Mi(e);return t.values.slice(0,3).map((n,a)=>t.type.includes("hsl")&&a!==0?`${n}%`:n).join(" ")},ta=(e,t)=>{try{return Hm(e)}catch{return t&&_.dist.process.env.NODE_ENV!=="production"&&console.warn(t),e}};function S0(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.includes("rgb")?a=a.map((c,i)=>i<3?parseInt(c,10):c):t.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.includes("color")?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function n5(e){e=Mi(e);const{values:t}=e,n=t[0],a=t[1]/100,c=t[2]/100,i=a*Math.min(c,1-c),u=(h,g=(h+n/30)%12)=>c-i*Math.max(Math.min(g-3,9-g,1),-1);let f="rgb";const p=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(f+="a",p.push(t[3])),S0({type:f,values:p})}function lu(e){e=Mi(e);let t=e.type==="hsl"||e.type==="hsla"?Mi(n5(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function R1(e,t){const n=lu(e),a=lu(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function Kt(e,t){return e=Mi(e),t=sd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S0(e)}function ts(e,t,n){try{return Kt(e,t)}catch{return e}}function Ra(e,t){if(e=Mi(e),t=sd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return S0(e)}function sr(e,t,n){try{return Ra(e,t)}catch{return e}}function Pa(e,t){if(e=Mi(e),t=sd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return S0(e)}function cr(e,t,n){try{return Pa(e,t)}catch{return e}}function Zm(e,t=.15){return lu(e)>.5?Ra(e,t):Pa(e,t)}function rs(e,t,n){try{return Zm(e,t)}catch{return e}}const ba={black:"#000",white:"#fff"},Rs={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},co={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},uo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ho={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function i5(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ba.white,default:ba.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Qm=i5();function o5(){return{text:{primary:ba.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ba.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const P1=o5();function U1(e,t,n,a){const c=a.light||a,i=a.dark||a*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Pa(e.main,c):t==="dark"&&(e.dark=Ra(e.main,i)))}function Vm(e="light"){return e==="dark"?{main:fo[200],light:fo[50],dark:fo[400]}:{main:fo[700],light:fo[400],dark:fo[800]}}function Gm(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[500],light:co[300],dark:co[700]}}function $m(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function qm(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[700],light:uo[500],dark:uo[900]}}function Jm(e="light"){return e==="dark"?{main:ho[400],light:ho[300],dark:ho[700]}:{main:ho[800],light:ho[500],dark:ho[900]}}function Xm(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:"#ed6c02",light:Zo[500],dark:Zo[900]}}function cd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2,...c}=e,i=e.primary||Vm(t),u=e.secondary||Gm(t),f=e.error||$m(t),p=e.info||qm(t),h=e.success||Jm(t),g=e.warning||Xm(t);function C(T){const S=R1(T,P1.text.primary)>=n?P1.text.primary:Qm.text.primary;if(_.dist.process.env.NODE_ENV!=="production"){const L=R1(T,S);L<3&&console.error([`MUI: The contrast ratio of ${L}:1 for ${S} on ${T}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
28
- `))}return S}const w=({color:T,name:S,mainShade:L=500,lightShade:E=300,darkShade:D=700})=>{if(T={...T},!T.main&&T[L]&&(T.main=T[L]),!T.hasOwnProperty("main"))throw new Error(_.dist.process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
29
- The color object needs to have a \`main\` property or a \`${L}\` property.`:Wn(11,S?` (${S})`:"",L));if(typeof T.main!="string")throw new Error(_.dist.process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
30
- \`color.main\` should be a string, but \`${JSON.stringify(T.main)}\` was provided instead.
31
-
32
- Did you intend to use one of the following approaches?
33
-
34
- import { green } from "@mui/material/colors";
35
-
36
- const theme1 = createTheme({ palette: {
37
- primary: green,
38
- } });
39
-
40
- const theme2 = createTheme({ palette: {
41
- primary: { main: green[500] },
42
- } });`:Wn(12,S?` (${S})`:"",JSON.stringify(T.main)));return U1(T,"light",E,a),U1(T,"dark",D,a),T.contrastText||(T.contrastText=C(T.main)),T};let j;return t==="light"?j=i5():t==="dark"&&(j=o5()),_.dist.process.env.NODE_ENV!=="production"&&(j||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Wr({common:{...ba},mode:t,primary:w({color:i,name:"primary"}),secondary:w({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:f,name:"error"}),warning:w({color:g,name:"warning"}),info:w({color:p,name:"info"}),success:w({color:h,name:"success"}),grey:Rs,contrastThreshold:n,getContrastText:C,augmentColor:w,tonalOffset:a,...j},c)}function Sn(e,t){return _.dist.process.env.NODE_ENV==="production"?()=>null:function(...a){return e(...a)||t(...a)}}function Km(e){const{prototype:t={}}=e;return!!t.isReactComponent}function a5(e,t,n,a,c){const i=e[t],u=c||t;if(i==null||typeof window>"u")return null;let f;const p=i.type;return typeof p=="function"&&!Km(p)&&(f="Did you accidentally use a plain function component for an element instead?"),f!==void 0?new Error(`Invalid ${a} \`${u}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const no=Sn(v.element,a5);no.isRequired=Sn(v.element.isRequired,a5);function eM(e){const{prototype:t={}}=e;return!!t.isReactComponent}function tM(e,t,n,a,c){const i=e[t],u=c||t;if(i==null||typeof window>"u")return null;let f;return typeof i=="function"&&!eM(i)&&(f="Did you accidentally provide a plain function component instead?"),f!==void 0?new Error(`Invalid ${a} \`${u}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const yi=Sn(v.elementType,tM),rM="exact-prop: ​";function ld(e){return _.dist.process.env.NODE_ENV==="production"?e:{...e,[rM]:t=>{const n=Object.keys(t).filter(a=>!e.hasOwnProperty(a));return n.length>0?new Error(`The following props are not supported: ${n.map(a=>`\`${a}\``).join(", ")}. Please remove them.`):null}}}function Hn(e,t,n,a,c){if(_.dist.process.env.NODE_ENV==="production")return null;const i=e[t],u=c||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${a} \`${u}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const sn=v.oneOfType([v.func,v.object]);function Y1(...e){return e.reduce((t,n)=>n==null?t:function(...c){t.apply(this,c),n.apply(this,c)},()=>{})}function fd(e,t=166){let n;function a(...c){const i=()=>{e.apply(this,c)};clearTimeout(n),n=setTimeout(i,t)}return a.clear=()=>{clearTimeout(n)},a}function la(e,t){var n,a,c;return ae.isValidElement(e)&&t.indexOf(e.type.muiName??((c=(a=(n=e.type)==null?void 0:n._payload)==null?void 0:a.value)==null?void 0:c.muiName))!==-1}function Br(e){return e&&e.ownerDocument||document}function Zr(e){return Br(e).defaultView||window}function W1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const bn=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;let H1=0;function nM(e){const[t,n]=ae.useState(e),a=e||t;return ae.useEffect(()=>{t==null&&(H1+=1,n(`mui-${H1}`))},[t]),a}const iM={...ae},Z1=iM.useId;function Ua(e){if(Z1!==void 0){const t=Z1();return e??t}return nM(e)}function e0({controlled:e,default:t,name:n,state:a="value"}){const{current:c}=ae.useRef(e!==void 0),[i,u]=ae.useState(t),f=c?e:i;if(_.dist.process.env.NODE_ENV!=="production"){ae.useEffect(()=>{c!==(e!==void 0)&&console.error([`MUI: A component is changing the ${c?"":"un"}controlled ${a} state of ${n} to be ${c?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
43
- `))},[a,n,e]);const{current:h}=ae.useRef(t);ae.useEffect(()=>{!c&&!Object.is(h,t)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
44
- `))},[JSON.stringify(t)])}const p=ae.useCallback(h=>{c||u(h)},[]);return[f,p]}function mn(e){const t=ae.useRef(e);return bn(()=>{t.current=e}),ae.useRef((...n)=>(0,t.current)(...n)).current}function br(...e){const t=ae.useRef(void 0),n=ae.useCallback(a=>{const c=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const u=i,f=u(a);return typeof f=="function"?f:()=>{u(null)}}return i.current=a,()=>{i.current=null}});return()=>{c.forEach(i=>i==null?void 0:i())}},e);return ae.useMemo(()=>e.every(a=>a==null)?null:a=>{t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=n(a))},e)}const Q1={};function s5(e,t){const n=ae.useRef(Q1);return n.current===Q1&&(n.current=e(t)),n}const oM=[];function aM(e){ae.useEffect(e,oM)}class D0{constructor(){yt(this,"currentId",null);yt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});yt(this,"disposeEffect",()=>this.clear)}static create(){return new D0}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Pi(){const e=s5(D0.create).current;return aM(e.disposeEffect),e}function wo(e){try{return e.matches(":focus-visible")}catch{_.dist.process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
45
- `))}return!1}function c5(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const l5=e=>{const t=ae.useRef({});return ae.useEffect(()=>{t.current=e}),t.current};function sM(e){return ae.Children.toArray(e).filter(t=>ae.isValidElement(t))}function cM(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function f5(e,t,n,a){const c=e[t];if(c==null||!Number.isInteger(c)){const i=cM(c);return new RangeError(`Invalid ${a} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function u5(e,t,...n){return e[t]===void 0?null:f5(e,t,...n)}function fu(){return null}u5.isRequired=f5;fu.isRequired=fu;const ud=_.dist.process.env.NODE_ENV==="production"?fu:u5;function Ca(e,t){const n={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const c=a;if(c==="components"||c==="slots")n[c]={...e[c],...n[c]};else if(c==="componentsProps"||c==="slotProps"){const i=e[c],u=t[c];if(!u)n[c]=i||{};else if(!i)n[c]=u;else{n[c]={...u};for(const f in i)if(Object.prototype.hasOwnProperty.call(i,f)){const p=f;n[c][p]=Ca(i[p],u[p])}}}else n[c]===void 0&&(n[c]=e[c])}return n}function St(e,t,n=void 0){const a={};for(const c in e){const i=e[c];let u="",f=!0;for(let p=0;p<i.length;p+=1){const h=i[p];h&&(u+=(f===!0?"":" ")+t(h),f=!1,n&&n[h]&&(u+=" "+n[h]))}a[c]=u}return a}const V1=e=>e,lM=()=>{let e=V1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=V1}}},d5=lM(),fM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function It(e,t,n="Mui"){const a=fM[t];return a?`${n}-${a}`:`${d5.generate(e)}-${t}`}function Et(e,t,n="Mui"){const a={};return t.forEach(c=>{a[c]=It(e,c,n)}),a}function uM(e){return typeof e=="string"}function h5(e,t,n){return e===void 0||uM(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function p5(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var c=e.length;for(t=0;t<c;t++)e[t]&&(n=p5(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function vt(){for(var e,t,n=0,a="",c=arguments.length;n<c;n++)(e=arguments[n])&&(t=p5(e))&&(a&&(a+=" "),a+=t);return a}function g5(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{n[a]=e[a]}),n}function G1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function m5(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:c,className:i}=e;if(!t){const j=vt(n==null?void 0:n.className,i,c==null?void 0:c.className,a==null?void 0:a.className),I={...n==null?void 0:n.style,...c==null?void 0:c.style,...a==null?void 0:a.style},T={...n,...c,...a};return j.length>0&&(T.className=j),Object.keys(I).length>0&&(T.style=I),{props:T,internalRef:void 0}}const u=g5({...c,...a}),f=G1(a),p=G1(c),h=t(u),g=vt(h==null?void 0:h.className,n==null?void 0:n.className,i,c==null?void 0:c.className,a==null?void 0:a.className),C={...h==null?void 0:h.style,...n==null?void 0:n.style,...c==null?void 0:c.style,...a==null?void 0:a.style},w={...h,...n,...p,...f};return g.length>0&&(w.className=g),Object.keys(C).length>0&&(w.style=C),{props:w,internalRef:h.ref}}function M5(e,t,n){return typeof e=="function"?e(t,n):e}function t0(e){var C;const{elementType:t,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:c=!1,...i}=e,u=c?{}:M5(n,a),{props:f,internalRef:p}=m5({...i,externalSlotProps:u}),h=br(p,u==null?void 0:u.ref,(C=e.additionalProps)==null?void 0:C.ref);return h5(t,{...f,ref:h},a)}function io(e){var t;return parseInt(ae.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const dM=ae.createContext();_.dist.process.env.NODE_ENV!=="production"&&(v.node,v.bool);const Ya=()=>ae.useContext(dM)??!1,hM=ae.createContext(void 0);_.dist.process.env.NODE_ENV!=="production"&&(v.node,v.object);function pM(e){const{theme:t,name:n,props:a}=e;if(!t||!t.components||!t.components[n])return a;const c=t.components[n];return c.defaultProps?Ca(c.defaultProps,a):!c.styleOverrides&&!c.variants?Ca(c,a):a}function gM({props:e,name:t}){const n=ae.useContext(hM);return pM({props:e,name:t,theme:{components:n}})}const $1=(e,t,n,a=[])=>{let c=e;t.forEach((i,u)=>{u===t.length-1?Array.isArray(c)?c[Number(i)]=n:c&&typeof c=="object"&&(c[i]=n):c&&typeof c=="object"&&(c[i]||(c[i]=a.includes(i)?[]:{}),c=c[i])})},mM=(e,t,n)=>{function a(c,i=[],u=[]){Object.entries(c).forEach(([f,p])=>{(!n||n&&!n([...i,f]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?a(p,[...i,f],Array.isArray(p)?[...u,f]:u):t([...i,f],p,u))})}a(e)},MM=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function vc(e,t){const{prefix:n,shouldSkipGeneratingVar:a}=t||{},c={},i={},u={};return mM(e,(f,p,h)=>{if((typeof p=="string"||typeof p=="number")&&(!a||!a(f,p))){const g=`--${n?`${n}-`:""}${f.join("-")}`,C=MM(f,p);Object.assign(c,{[g]:C}),$1(i,f,`var(${g})`,h),$1(u,f,`var(${g}, ${C})`,h)}},f=>f[0]==="vars"),{css:c,vars:i,varsWithDefaults:u}}function yM(e,t={}){const{getSelector:n=S,disableCssColorScheme:a,colorSchemeSelector:c}=t,{colorSchemes:i={},components:u,defaultColorScheme:f="light",...p}=e,{vars:h,css:g,varsWithDefaults:C}=vc(p,t);let w=C;const j={},{[f]:I,...T}=i;if(Object.entries(T||{}).forEach(([D,O])=>{const{vars:F,css:R,varsWithDefaults:Q}=vc(O,t);w=Wr(w,Q),j[D]={css:R,vars:F}}),I){const{css:D,vars:O,varsWithDefaults:F}=vc(I,t);w=Wr(w,F),j[f]={css:D,vars:O}}function S(D,O){var R,Q;let F=c;if(c==="class"&&(F=".%s"),c==="data"&&(F="[data-%s]"),c!=null&&c.startsWith("data-")&&!c.includes("%s")&&(F=`[${c}="%s"]`),D){if(F==="media")return e.defaultColorScheme===D?":root":{[`@media (prefers-color-scheme: ${((Q=(R=i[D])==null?void 0:R.palette)==null?void 0:Q.mode)||D})`]:{":root":O}};if(F)return e.defaultColorScheme===D?`:root, ${F.replace("%s",String(D))}`:F.replace("%s",String(D))}return":root"}return{vars:w,generateThemeVars:()=>{let D={...h};return Object.entries(j).forEach(([,{vars:O}])=>{D=Wr(D,O)}),D},generateStyleSheets:()=>{var B,k;const D=[],O=e.defaultColorScheme||"light";function F(z,y){Object.keys(y).length&&D.push(typeof z=="string"?{[z]:{...y}}:z)}F(n(void 0,{...g}),g);const{[O]:R,...Q}=j;if(R){const{css:z}=R,y=(k=(B=i[O])==null?void 0:B.palette)==null?void 0:k.mode,r=!a&&y?{colorScheme:y,...z}:{...z};F(n(O,{...r}),r)}return Object.entries(Q).forEach(([z,{css:y}])=>{var l,d;const r=(d=(l=i[z])==null?void 0:l.palette)==null?void 0:d.mode,s=!a&&r?{colorScheme:r,...y}:{...y};F(n(z,{...s}),s)}),D}}}function vM(e){const t={};return Object.entries(e).forEach(a=>{const[c,i]=a;typeof i=="object"&&(t[c]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function xM(e){return function(n){return e==="media"?(_.dist.process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function bM(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function CM(e){return Math.round(e*1e5)/1e5}const q1={textTransform:"uppercase"},J1='"Roboto", "Helvetica", "Arial", sans-serif';function y5(e,t){const{fontFamily:n=J1,fontSize:a=14,fontWeightLight:c=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:p=16,allVariants:h,pxToRem:g,...C}=typeof t=="function"?t(e):t;_.dist.process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof p!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const w=a/14,j=g||(S=>`${S/p*w}rem`),I=(S,L,E,D,O)=>({fontFamily:n,fontWeight:S,fontSize:j(L),lineHeight:E,...n===J1?{letterSpacing:`${CM(D/L)}em`}:{},...O,...h}),T={h1:I(c,96,1.167,-1.5),h2:I(c,60,1.2,-.5),h3:I(i,48,1.167,0),h4:I(i,34,1.235,.25),h5:I(i,24,1.334,0),h6:I(u,20,1.6,.15),subtitle1:I(i,16,1.75,.15),subtitle2:I(u,14,1.57,.1),body1:I(i,16,1.5,.15),body2:I(i,14,1.43,.15),button:I(u,14,1.75,.4,q1),caption:I(i,12,1.66,.4),overline:I(i,12,2.66,1,q1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wr({htmlFontSize:p,pxToRem:j,fontFamily:n,fontSize:a,fontWeightLight:c,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:f,...T},C,{clone:!1})}const wM=.2,NM=.14,jM=.12;function ur(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${NM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jM})`].join(",")}const TM=["none",ur(0,2,1,-1,0,1,1,0,0,1,3,0),ur(0,3,1,-2,0,2,2,0,0,1,5,0),ur(0,3,3,-2,0,3,4,0,0,1,8,0),ur(0,2,4,-1,0,4,5,0,0,1,10,0),ur(0,3,5,-1,0,5,8,0,0,1,14,0),ur(0,3,5,-1,0,6,10,0,0,1,18,0),ur(0,4,5,-2,0,7,10,1,0,2,16,1),ur(0,5,5,-3,0,8,10,1,0,3,14,2),ur(0,5,6,-3,0,9,12,1,0,3,16,2),ur(0,6,6,-3,0,10,14,1,0,4,18,3),ur(0,6,7,-4,0,11,15,1,0,4,20,3),ur(0,7,8,-4,0,12,17,2,0,5,22,4),ur(0,7,8,-4,0,13,19,2,0,5,24,4),ur(0,7,9,-4,0,14,21,2,0,5,26,4),ur(0,8,9,-5,0,15,22,2,0,6,28,5),ur(0,8,10,-5,0,16,24,2,0,6,30,5),ur(0,8,11,-5,0,17,26,2,0,6,32,5),ur(0,9,11,-5,0,18,28,2,0,7,34,6),ur(0,9,12,-6,0,19,29,2,0,7,36,6),ur(0,10,13,-6,0,20,31,3,0,8,38,7),ur(0,10,13,-6,0,21,33,3,0,8,40,7),ur(0,10,14,-6,0,22,35,3,0,8,42,7),ur(0,11,14,-7,0,23,36,3,0,9,44,8),ur(0,11,15,-7,0,24,38,3,0,9,46,8)],AM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},v5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function X1(e){return`${Math.round(e)}ms`}function IM(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function EM(e){const t={...AM,...e.easing},n={...v5,...e.duration};return{getAutoHeightDuration:IM,create:(c=["all"],i={})=>{const{duration:u=n.standard,easing:f=t.easeInOut,delay:p=0,...h}=i;if(_.dist.process.env.NODE_ENV!=="production"){const g=w=>typeof w=="string",C=w=>!Number.isNaN(parseFloat(w));!g(c)&&!Array.isArray(c)&&console.error('MUI: Argument "props" must be a string or Array.'),!C(u)&&!g(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),g(f)||console.error('MUI: Argument "easing" must be a string.'),!C(p)&&!g(p)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
46
- `)),Object.keys(h).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(h).join(",")}].`)}return(Array.isArray(c)?c:[c]).map(g=>`${g} ${typeof u=="string"?u:X1(u)} ${f} ${typeof p=="string"?p:X1(p)}`).join(",")},...e,easing:t,duration:n}}const LM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function SM(e){return Fn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function x5(e={}){const t={...e};function n(a){const c=Object.entries(a);for(let i=0;i<c.length;i++){const[u,f]=c[i];!SM(f)||u.startsWith("unstable_")?delete a[u]:Fn(f)&&(a[u]={...f},n(a[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
47
-
48
- const theme = ${JSON.stringify(t,null,2)};
49
-
50
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
51
- theme.transitions = createTransitions(theme.transitions || {});
52
-
53
- export default theme;`}function uu(e={},...t){const{breakpoints:n,mixins:a={},spacing:c,palette:i={},transitions:u={},typography:f={},shape:p,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(_.dist.process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Wn(20));const g=cd(i),C=e5(e);let w=Wr(C,{mixins:bM(C.breakpoints,a),palette:g,shadows:TM.slice(),typography:y5(g,f),transitions:EM(u),zIndex:{...LM}});if(w=Wr(w,h),w=t.reduce((j,I)=>Wr(j,I),w),_.dist.process.env.NODE_ENV!=="production"){const j=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],I=(T,S)=>{let L;for(L in T){const E=T[L];if(j.includes(L)&&Object.keys(E).length>0){if(_.dist.process.env.NODE_ENV!=="production"){const D=It("",L);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${L}\` internal state.`,"You can not override it like this: ",JSON.stringify(T,null,2),"",`Instead, you need to use the '&.${D}' syntax:`,JSON.stringify({root:{[`&.${D}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
54
- `))}T[L]={}}}};Object.keys(w.components).forEach(T=>{const S=w.components[T].styleOverrides;S&&T.startsWith("Mui")&&I(S,T)})}return w.unstable_sxConfig={...Fa,...h==null?void 0:h.unstable_sxConfig},w.unstable_sx=function(I){return $i({sx:I,theme:this})},w.toRuntimeSource=x5,w}function du(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const DM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=du(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function b5(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function C5(e){return e==="dark"?DM:[]}function OM(e){const{palette:t={mode:"light"},opacity:n,overlays:a,...c}=e,i=cd(t);return{palette:i,opacity:{...b5(i.mode),...n},overlays:a||C5(i.mode),...c}}function zM(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const kM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_M=e=>(t,n)=>{const a=e.rootSelector||":root",c=e.colorSchemeSelector;let i=c;if(c==="class"&&(i=".%s"),c==="data"&&(i="[data-%s]"),c!=null&&c.startsWith("data-")&&!c.includes("%s")&&(i=`[${c}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return kM(e.cssVarPrefix).forEach(f=>{u[f]=n[f],delete n[f]}),i==="media"?{[a]:n,"@media (prefers-color-scheme: dark)":{[a]:u}}:i?{[i.replace("%s",t)]:u,[`${a}, ${i.replace("%s",t)}`]:n}:{[a]:{...n,...u}}}if(i&&i!=="media")return`${a}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[a]:n}};if(i)return i.replace("%s",String(t))}return a};function BM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ye(e,t,n){!e[t]&&n&&(e[t]=n)}function ra(e){return typeof e!="string"||!e.startsWith("hsl")?e:n5(e)}function Vn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ta(ra(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
55
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function FM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zn=e=>{try{return e()}catch{}},RM=(e="mui")=>Cr.unstable_createGetCssVar(e);function xc(e,t,n,a){if(!t)return;t=t===!0?{}:t;const c=a==="dark"?"dark":"light";if(!n){e[a]=OM({...t,palette:{mode:c,...t==null?void 0:t.palette}});return}const{palette:i,...u}=uu({...n,palette:{mode:c,...t==null?void 0:t.palette}});return e[a]={...t,palette:i,opacity:{...b5(c),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||C5(c)},u}function PM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:a,disableCssColorScheme:c=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:u=zM,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...h}=e,g=Object.keys(n)[0],C=a||(n.light&&g!=="light"?"light":g),w=RM(i),{[C]:j,light:I,dark:T,...S}=n,L={...S};let E=j;if((C==="dark"&&!("dark"in n)||C==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(_.dist.process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${C}\` option is either missing or invalid.`:Wn(21,C));const D=xc(L,E,h,C);I&&!L.light&&xc(L,I,void 0,"light"),T&&!L.dark&&xc(L,T,void 0,"dark");let O={defaultColorScheme:C,...D,cssVarPrefix:i,colorSchemeSelector:f,rootSelector:p,getCssVar:w,colorSchemes:L,font:{...vM(D.typography),...D.font},spacing:FM(h.spacing)};Object.keys(O.colorSchemes).forEach(k=>{const z=O.colorSchemes[k].palette,y=r=>{const s=r.split("-"),l=s[1],d=s[2];return w(r,z[l][d])};if(z.mode==="light"&&(Ye(z.common,"background","#fff"),Ye(z.common,"onBackground","#000")),z.mode==="dark"&&(Ye(z.common,"background","#000"),Ye(z.common,"onBackground","#fff")),BM(z,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),z.mode==="light"){Ye(z.Alert,"errorColor",sr(z.error.light,.6)),Ye(z.Alert,"infoColor",sr(z.info.light,.6)),Ye(z.Alert,"successColor",sr(z.success.light,.6)),Ye(z.Alert,"warningColor",sr(z.warning.light,.6)),Ye(z.Alert,"errorFilledBg",y("palette-error-main")),Ye(z.Alert,"infoFilledBg",y("palette-info-main")),Ye(z.Alert,"successFilledBg",y("palette-success-main")),Ye(z.Alert,"warningFilledBg",y("palette-warning-main")),Ye(z.Alert,"errorFilledColor",zn(()=>z.getContrastText(z.error.main))),Ye(z.Alert,"infoFilledColor",zn(()=>z.getContrastText(z.info.main))),Ye(z.Alert,"successFilledColor",zn(()=>z.getContrastText(z.success.main))),Ye(z.Alert,"warningFilledColor",zn(()=>z.getContrastText(z.warning.main))),Ye(z.Alert,"errorStandardBg",cr(z.error.light,.9)),Ye(z.Alert,"infoStandardBg",cr(z.info.light,.9)),Ye(z.Alert,"successStandardBg",cr(z.success.light,.9)),Ye(z.Alert,"warningStandardBg",cr(z.warning.light,.9)),Ye(z.Alert,"errorIconColor",y("palette-error-main")),Ye(z.Alert,"infoIconColor",y("palette-info-main")),Ye(z.Alert,"successIconColor",y("palette-success-main")),Ye(z.Alert,"warningIconColor",y("palette-warning-main")),Ye(z.AppBar,"defaultBg",y("palette-grey-100")),Ye(z.Avatar,"defaultBg",y("palette-grey-400")),Ye(z.Button,"inheritContainedBg",y("palette-grey-300")),Ye(z.Button,"inheritContainedHoverBg",y("palette-grey-A100")),Ye(z.Chip,"defaultBorder",y("palette-grey-400")),Ye(z.Chip,"defaultAvatarColor",y("palette-grey-700")),Ye(z.Chip,"defaultIconColor",y("palette-grey-700")),Ye(z.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ye(z.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ye(z.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ye(z.LinearProgress,"primaryBg",cr(z.primary.main,.62)),Ye(z.LinearProgress,"secondaryBg",cr(z.secondary.main,.62)),Ye(z.LinearProgress,"errorBg",cr(z.error.main,.62)),Ye(z.LinearProgress,"infoBg",cr(z.info.main,.62)),Ye(z.LinearProgress,"successBg",cr(z.success.main,.62)),Ye(z.LinearProgress,"warningBg",cr(z.warning.main,.62)),Ye(z.Skeleton,"bg",`rgba(${y("palette-text-primaryChannel")} / 0.11)`),Ye(z.Slider,"primaryTrack",cr(z.primary.main,.62)),Ye(z.Slider,"secondaryTrack",cr(z.secondary.main,.62)),Ye(z.Slider,"errorTrack",cr(z.error.main,.62)),Ye(z.Slider,"infoTrack",cr(z.info.main,.62)),Ye(z.Slider,"successTrack",cr(z.success.main,.62)),Ye(z.Slider,"warningTrack",cr(z.warning.main,.62));const r=rs(z.background.default,.8);Ye(z.SnackbarContent,"bg",r),Ye(z.SnackbarContent,"color",zn(()=>z.getContrastText(r))),Ye(z.SpeedDialAction,"fabHoverBg",rs(z.background.paper,.15)),Ye(z.StepConnector,"border",y("palette-grey-400")),Ye(z.StepContent,"border",y("palette-grey-400")),Ye(z.Switch,"defaultColor",y("palette-common-white")),Ye(z.Switch,"defaultDisabledColor",y("palette-grey-100")),Ye(z.Switch,"primaryDisabledColor",cr(z.primary.main,.62)),Ye(z.Switch,"secondaryDisabledColor",cr(z.secondary.main,.62)),Ye(z.Switch,"errorDisabledColor",cr(z.error.main,.62)),Ye(z.Switch,"infoDisabledColor",cr(z.info.main,.62)),Ye(z.Switch,"successDisabledColor",cr(z.success.main,.62)),Ye(z.Switch,"warningDisabledColor",cr(z.warning.main,.62)),Ye(z.TableCell,"border",cr(ts(z.divider,1),.88)),Ye(z.Tooltip,"bg",ts(z.grey[700],.92))}if(z.mode==="dark"){Ye(z.Alert,"errorColor",cr(z.error.light,.6)),Ye(z.Alert,"infoColor",cr(z.info.light,.6)),Ye(z.Alert,"successColor",cr(z.success.light,.6)),Ye(z.Alert,"warningColor",cr(z.warning.light,.6)),Ye(z.Alert,"errorFilledBg",y("palette-error-dark")),Ye(z.Alert,"infoFilledBg",y("palette-info-dark")),Ye(z.Alert,"successFilledBg",y("palette-success-dark")),Ye(z.Alert,"warningFilledBg",y("palette-warning-dark")),Ye(z.Alert,"errorFilledColor",zn(()=>z.getContrastText(z.error.dark))),Ye(z.Alert,"infoFilledColor",zn(()=>z.getContrastText(z.info.dark))),Ye(z.Alert,"successFilledColor",zn(()=>z.getContrastText(z.success.dark))),Ye(z.Alert,"warningFilledColor",zn(()=>z.getContrastText(z.warning.dark))),Ye(z.Alert,"errorStandardBg",sr(z.error.light,.9)),Ye(z.Alert,"infoStandardBg",sr(z.info.light,.9)),Ye(z.Alert,"successStandardBg",sr(z.success.light,.9)),Ye(z.Alert,"warningStandardBg",sr(z.warning.light,.9)),Ye(z.Alert,"errorIconColor",y("palette-error-main")),Ye(z.Alert,"infoIconColor",y("palette-info-main")),Ye(z.Alert,"successIconColor",y("palette-success-main")),Ye(z.Alert,"warningIconColor",y("palette-warning-main")),Ye(z.AppBar,"defaultBg",y("palette-grey-900")),Ye(z.AppBar,"darkBg",y("palette-background-paper")),Ye(z.AppBar,"darkColor",y("palette-text-primary")),Ye(z.Avatar,"defaultBg",y("palette-grey-600")),Ye(z.Button,"inheritContainedBg",y("palette-grey-800")),Ye(z.Button,"inheritContainedHoverBg",y("palette-grey-700")),Ye(z.Chip,"defaultBorder",y("palette-grey-700")),Ye(z.Chip,"defaultAvatarColor",y("palette-grey-300")),Ye(z.Chip,"defaultIconColor",y("palette-grey-300")),Ye(z.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ye(z.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ye(z.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ye(z.LinearProgress,"primaryBg",sr(z.primary.main,.5)),Ye(z.LinearProgress,"secondaryBg",sr(z.secondary.main,.5)),Ye(z.LinearProgress,"errorBg",sr(z.error.main,.5)),Ye(z.LinearProgress,"infoBg",sr(z.info.main,.5)),Ye(z.LinearProgress,"successBg",sr(z.success.main,.5)),Ye(z.LinearProgress,"warningBg",sr(z.warning.main,.5)),Ye(z.Skeleton,"bg",`rgba(${y("palette-text-primaryChannel")} / 0.13)`),Ye(z.Slider,"primaryTrack",sr(z.primary.main,.5)),Ye(z.Slider,"secondaryTrack",sr(z.secondary.main,.5)),Ye(z.Slider,"errorTrack",sr(z.error.main,.5)),Ye(z.Slider,"infoTrack",sr(z.info.main,.5)),Ye(z.Slider,"successTrack",sr(z.success.main,.5)),Ye(z.Slider,"warningTrack",sr(z.warning.main,.5));const r=rs(z.background.default,.98);Ye(z.SnackbarContent,"bg",r),Ye(z.SnackbarContent,"color",zn(()=>z.getContrastText(r))),Ye(z.SpeedDialAction,"fabHoverBg",rs(z.background.paper,.15)),Ye(z.StepConnector,"border",y("palette-grey-600")),Ye(z.StepContent,"border",y("palette-grey-600")),Ye(z.Switch,"defaultColor",y("palette-grey-300")),Ye(z.Switch,"defaultDisabledColor",y("palette-grey-600")),Ye(z.Switch,"primaryDisabledColor",sr(z.primary.main,.55)),Ye(z.Switch,"secondaryDisabledColor",sr(z.secondary.main,.55)),Ye(z.Switch,"errorDisabledColor",sr(z.error.main,.55)),Ye(z.Switch,"infoDisabledColor",sr(z.info.main,.55)),Ye(z.Switch,"successDisabledColor",sr(z.success.main,.55)),Ye(z.Switch,"warningDisabledColor",sr(z.warning.main,.55)),Ye(z.TableCell,"border",sr(ts(z.divider,1),.68)),Ye(z.Tooltip,"bg",ts(z.grey[700],.92))}Vn(z.background,"default"),Vn(z.background,"paper"),Vn(z.common,"background"),Vn(z.common,"onBackground"),Vn(z,"divider"),Object.keys(z).forEach(r=>{const s=z[r];r!=="tonalOffset"&&s&&typeof s=="object"&&(s.main&&Ye(z[r],"mainChannel",ta(ra(s.main))),s.light&&Ye(z[r],"lightChannel",ta(ra(s.light))),s.dark&&Ye(z[r],"darkChannel",ta(ra(s.dark))),s.contrastText&&Ye(z[r],"contrastTextChannel",ta(ra(s.contrastText))),r==="text"&&(Vn(z[r],"primary"),Vn(z[r],"secondary")),r==="action"&&(s.active&&Vn(z[r],"active"),s.selected&&Vn(z[r],"selected")))})}),O=t.reduce((k,z)=>Wr(k,z),O);const F={prefix:i,disableCssColorScheme:c,shouldSkipGeneratingVar:u,getSelector:_M(O)},{vars:R,generateThemeVars:Q,generateStyleSheets:B}=yM(O,F);return O.vars=R,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([k,z])=>{O[k]=z}),O.generateThemeVars=Q,O.generateStyleSheets=B,O.generateSpacing=function(){return Cr.createSpacing(h.spacing,od(this))},O.getColorSchemeSelector=xM(f),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=u,O.unstable_sxConfig={...Fa,...h==null?void 0:h.unstable_sxConfig},O.unstable_sx=function(z){return $i({sx:z,theme:this})},O.toRuntimeSource=x5,O}function K1(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:cd({...n===!0?{}:n.palette,mode:t})})}function O0(e={},...t){const{palette:n,cssVariables:a=!1,colorSchemes:c=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...u}=e,f=i||"light",p=c==null?void 0:c[f],h={...c,...n?{[f]:{...typeof p!="boolean"&&p,palette:n}}:void 0};if(a===!1){if(!("colorSchemes"in e))return uu(e,...t);let g=n;"palette"in e||h[f]&&(h[f]!==!0?g=h[f].palette:f==="dark"&&(g={mode:"dark"}));const C=uu({...e,palette:g},...t);return C.defaultColorScheme=f,C.colorSchemes=h,C.palette.mode==="light"&&(C.colorSchemes.light={...h.light!==!0&&h.light,palette:C.palette},K1(C,"dark",h.dark)),C.palette.mode==="dark"&&(C.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:C.palette},K1(C,"light",h.light)),C}return!n&&!("light"in h)&&f==="light"&&(h.light=!0),PM({...u,colorSchemes:h,defaultColorScheme:f,...typeof a!="boolean"&&a},...t)}const dd=O0(),Pn="$$material";function w5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qr=e=>w5(e)&&e!=="classes",$e=Bm({themeId:Pn,defaultTheme:dd,rootShouldForwardProp:Qr});var hu={exports:{}},bc={};/**
56
- * @license React
57
- * use-sync-external-store-with-selector.production.js
58
- *
59
- * Copyright (c) Meta Platforms, Inc. and affiliates.
60
- *
61
- * This source code is licensed under the MIT license found in the
62
- * LICENSE file in the root directory of this source tree.
63
- */var eh;function UM(){if(eh)return bc;eh=1;var e=ie;function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,c=e.useRef,i=e.useEffect,u=e.useMemo,f=e.useDebugValue;return bc.useSyncExternalStoreWithSelector=function(p,h,g,C,w){var j=c(null);if(j.current===null){var I={hasValue:!1,value:null};j.current=I}else I=j.current;j=u(function(){function S(F){if(!L){if(L=!0,E=F,F=C(F),w!==void 0&&I.hasValue){var R=I.value;if(w(R,F))return D=R}return D=F}if(R=D,n(E,F))return R;var Q=C(F);return w!==void 0&&w(R,Q)?(E=F,R):(E=F,D=Q)}var L=!1,E,D,O=g===void 0?null:g;return[function(){return S(h())},O===null?void 0:function(){return S(O())}]},[h,g,C,w]);var T=a(p,j[0],j[1]);return i(function(){I.hasValue=!0,I.value=T},[T]),f(T),T},bc}var Cc={},th;function YM(){return th||(th=1,_.dist.process.env.NODE_ENV!=="production"&&function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=ie,n=typeof Object.is=="function"?Object.is:e,a=t.useSyncExternalStore,c=t.useRef,i=t.useEffect,u=t.useMemo,f=t.useDebugValue;Cc.useSyncExternalStoreWithSelector=function(p,h,g,C,w){var j=c(null);if(j.current===null){var I={hasValue:!1,value:null};j.current=I}else I=j.current;j=u(function(){function S(F){if(!L){if(L=!0,E=F,F=C(F),w!==void 0&&I.hasValue){var R=I.value;if(w(R,F))return D=R}return D=F}if(R=D,n(E,F))return R;var Q=C(F);return w!==void 0&&w(R,Q)?(E=F,R):(E=F,D=Q)}var L=!1,E,D,O=g===void 0?null:g;return[function(){return S(h())},O===null?void 0:function(){return S(O())}]},[h,g,C,w]);var T=a(p,j[0],j[1]);return i(function(){I.hasValue=!0,I.value=T},[T]),f(T),T},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Cc}_.dist.process.env.NODE_ENV==="production"?hu.exports=UM():hu.exports=YM();var WM=hu.exports;function HM(e){e()}function ZM(){let e=null,t=null;return{clear(){e=null,t=null},notify(){HM(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let a=e;for(;a;)n.push(a),a=a.next;return n},subscribe(n){let a=!0;const c=t={callback:n,next:null,prev:t};return c.prev?c.prev.next=c:e=c,function(){!a||e===null||(a=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:e=c.next)}}}}var rh={notify(){},get:()=>[]};function QM(e,t){let n,a=rh,c=0,i=!1;function u(T){g();const S=a.subscribe(T);let L=!1;return()=>{L||(L=!0,S(),C())}}function f(){a.notify()}function p(){I.onStateChange&&I.onStateChange()}function h(){return i}function g(){c++,n||(n=e.subscribe(p),a=ZM())}function C(){c--,n&&c===0&&(n(),n=void 0,a.clear(),a=rh)}function w(){i||(i=!0,g())}function j(){i&&(i=!1,C())}const I={addNestedSub:u,notifyNestedSubs:f,handleChangeWrapper:p,isSubscribed:h,trySubscribe:w,tryUnsubscribe:j,getListeners:()=>a};return I}var VM=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GM=VM(),$M=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qM=$M(),JM=()=>GM||qM?ae.useLayoutEffect:ae.useEffect,XM=JM(),wc=Symbol.for("react-redux-context"),Nc=typeof globalThis<"u"?globalThis:{};function KM(){if(!ae.createContext)return{};const e=Nc[wc]??(Nc[wc]=new Map);let t=e.get(ae.createContext);return t||(t=ae.createContext(null),_.dist.process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(ae.createContext,t)),t}var vi=KM();function ey(e){const{children:t,context:n,serverState:a,store:c}=e,i=ae.useMemo(()=>{const p=QM(c),h={store:c,subscription:p,getServerState:a?()=>a:void 0};if(_.dist.process.env.NODE_ENV==="production")return h;{const{identityFunctionCheck:g="once",stabilityCheck:C="once"}=e;return Object.assign(h,{stabilityCheck:C,identityFunctionCheck:g})}},[c,a]),u=ae.useMemo(()=>c.getState(),[c]);XM(()=>{const{subscription:p}=i;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),u!==c.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[i,u]);const f=n||vi;return ae.createElement(f.Provider,{value:i},t)}var ty=ey;function hd(e=vi){return function(){const n=ae.useContext(e);if(_.dist.process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var N5=hd();function j5(e=vi){const t=e===vi?N5:hd(e),n=()=>{const{store:a}=t();return a};return Object.assign(n,{withTypes:()=>n}),n}var ry=j5();function ny(e=vi){const t=e===vi?ry:j5(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Sr=ny(),iy=(e,t)=>e===t;function oy(e=vi){const t=e===vi?N5:hd(e),n=(a,c={})=>{const{equalityFn:i=iy}=typeof c=="function"?{equalityFn:c}:c;if(_.dist.process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const u=t(),{store:f,subscription:p,getServerState:h}=u,g=ae.useRef(!0),C=ae.useCallback({[a.name](j){const I=a(j);if(_.dist.process.env.NODE_ENV!=="production"){const{devModeChecks:T={}}=typeof c=="function"?{}:c,{identityFunctionCheck:S,stabilityCheck:L}=u,{identityFunctionCheck:E,stabilityCheck:D}={stabilityCheck:L,identityFunctionCheck:S,...T};if(D==="always"||D==="once"&&g.current){const O=a(j);if(!i(I,O)){let F;try{throw new Error}catch(R){({stack:F}=R)}console.warn("Selector "+(a.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
64
- Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:j,selected:I,selected2:O,stack:F})}}if((E==="always"||E==="once"&&g.current)&&I===j){let O;try{throw new Error}catch(F){({stack:O}=F)}console.warn("Selector "+(a.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
65
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:O})}g.current&&(g.current=!1)}return I}}[a.name],[a]),w=WM.useSyncExternalStoreWithSelector(p.addNestedSub,f.getState,h||f.getState,C,i);return ae.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var qt=oy();function Dn(){const e=Cr.useTheme(dd);return _.dist.process.env.NODE_ENV!=="production"&&ae.useDebugValue(e),e[Pn]||e}function T5(e){return A.jsx(Cr.GlobalStyles,{...e,defaultTheme:dd,themeId:Pn})}_.dist.process.env.NODE_ENV!=="production"&&(T5.propTypes={styles:v.oneOfType([v.array,v.func,v.number,v.object,v.string,v.bool])});function ay(e){return function(n){return A.jsx(T5,{styles:typeof e=="function"?a=>e({theme:a,...n}):e})}}function sy(){return Dm}const At=Cr.unstable_memoTheme;_.dist.process.env.NODE_ENV!=="production"&&(v.node,v.object.isRequired);function Dt(e){return gM(e)}const cy=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t}),ly=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});_.dist.process.env.NODE_ENV!=="production"&&(v.node,v.bool);function fy(e){return It("MuiScopedCssBaseline",e)}Et("MuiScopedCssBaseline",["root"]);const uy=e=>{const{classes:t}=e;return St({root:["root"]},fy,t)},dy=$e("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(At(({theme:e})=>{const t={};return e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,a])=>{var i,u;const c=e.getColorSchemeSelector(n);c.startsWith("@")?t[c]={colorScheme:(i=a.palette)==null?void 0:i.mode}:t[`&${c.replace(/\s*&/,"")}`]={colorScheme:(u=a.palette)==null?void 0:u.mode}}),{...cy(e,!1),...ly(e),"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold},variants:[{props:{enableColorScheme:!0},style:e.vars?t:{colorScheme:e.palette.mode}}]}})),A5=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiScopedCssBaseline"}),{className:c,component:i="div",enableColorScheme:u,...f}=a,p={...a,component:i},h=uy(p);return A.jsx(dy,{as:i,className:vt(h.root,c),ref:n,ownerState:p,...f})});_.dist.process.env.NODE_ENV!=="production"&&(A5.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,enableColorScheme:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function jc({theme:e,...t}){const n=Pn in e?e[Pn]:void 0;return A.jsx(Cr.ThemeProvider,{...t,themeId:n?Pn:void 0,theme:n||e})}const ns={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:hy,useColorScheme:Mz,getInitColorSchemeScript:yz}=Cr.unstable_createCssVarsProvider({themeId:Pn,theme:()=>O0({cssVariables:!0}),colorSchemeStorageKey:ns.colorSchemeStorageKey,modeStorageKey:ns.modeStorageKey,defaultColorScheme:{light:ns.defaultLightColorScheme,dark:ns.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:y5(e.palette,e.typography)};return t.unstable_sx=function(a){return $i({sx:a,theme:this})},t}}),py=hy;function gy({theme:e,...t}){if(typeof e=="function")return A.jsx(jc,{theme:e,...t});const n=Pn in e?e[Pn]:e;return"colorSchemes"in n?A.jsx(py,{theme:e,...t}):"vars"in n?A.jsx(jc,{theme:e,...t}):A.jsx(jc,{theme:{...e,vars:null},...t})}function _r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var my=typeof Symbol=="function"&&Symbol.observable||"@@observable",nh=my,Tc=()=>Math.random().toString(36).substring(7).split("").join("."),My={INIT:`@@redux/INIT${Tc()}`,REPLACE:`@@redux/REPLACE${Tc()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tc()}`},Qi=My;function Wa(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function yy(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(by(e))return"date";if(xy(e))return"error";const n=vy(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function vy(e){return typeof e.constructor=="function"?e.constructor.name:null}function xy(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function by(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function li(e){let t=typeof e;return _.dist.process.env.NODE_ENV!=="production"&&(t=yy(e)),t}function I5(e,t,n){if(typeof e!="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(2):`Expected the root reducer to be a function. Instead, received: '${li(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(1):`Expected the enhancer to be a function. Instead, received: '${li(n)}'`);return n(I5)(e,t)}let a=e,c=t,i=new Map,u=i,f=0,p=!1;function h(){u===i&&(u=new Map,i.forEach((S,L)=>{u.set(L,S)}))}function g(){if(p)throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function C(S){if(typeof S!="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(4):`Expected the listener to be a function. Instead, received: '${li(S)}'`);if(p)throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let L=!0;h();const E=f++;return u.set(E,S),function(){if(L){if(p)throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,h(),u.delete(E),i=null}}}function w(S){if(!Wa(S))throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(7):`Actions must be plain objects. Instead, the actual type was: '${li(S)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof S.type>"u")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof S.type!="string")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(17):`Action "type" property must be a string. Instead, the actual type was: '${li(S.type)}'. Value was: '${S.type}' (stringified)`);if(p)throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(9):"Reducers may not dispatch actions.");try{p=!0,c=a(c,S)}finally{p=!1}return(i=u).forEach(E=>{E()}),S}function j(S){if(typeof S!="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(10):`Expected the nextReducer to be a function. Instead, received: '${li(S)}`);a=S,w({type:Qi.REPLACE})}function I(){const S=C;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(11):`Expected the observer to be an object. Instead, received: '${li(L)}'`);function E(){const O=L;O.next&&O.next(g())}return E(),{unsubscribe:S(E)}},[nh](){return this}}}return w({type:Qi.INIT}),{dispatch:w,subscribe:C,getState:g,replaceReducer:j,[nh]:I}}function ih(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Cy(e,t,n,a){const c=Object.keys(t),i=n&&n.type===Qi.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(c.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Wa(e))return`The ${i} has unexpected type of "${li(e)}". Expected argument to be an object with the following keys: "${c.join('", "')}"`;const u=Object.keys(e).filter(f=>!t.hasOwnProperty(f)&&!a[f]);if(u.forEach(f=>{a[f]=!0}),!(n&&n.type===Qi.REPLACE)&&u.length>0)return`Unexpected ${u.length>1?"keys":"key"} "${u.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${c.join('", "')}". Unexpected keys will be ignored.`}function wy(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Qi.INIT})>"u")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Qi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Qi.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Ny(e){const t=Object.keys(e),n={};for(let u=0;u<t.length;u++){const f=t[u];_.dist.process.env.NODE_ENV!=="production"&&typeof e[f]>"u"&&ih(`No reducer provided for key "${f}"`),typeof e[f]=="function"&&(n[f]=e[f])}const a=Object.keys(n);let c;_.dist.process.env.NODE_ENV!=="production"&&(c={});let i;try{wy(n)}catch(u){i=u}return function(f={},p){if(i)throw i;if(_.dist.process.env.NODE_ENV!=="production"){const C=Cy(f,n,p,c);C&&ih(C)}let h=!1;const g={};for(let C=0;C<a.length;C++){const w=a[C],j=n[w],I=f[w],T=j(I,p);if(typeof T>"u"){const S=p&&p.type;throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(14):`When called with an action of type ${S?`"${String(S)}"`:"(unknown type)"}, the slice reducer for key "${w}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}g[w]=T,h=h||T!==I}return h=h||a.length!==Object.keys(f).length,h?g:f}}function r0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function jy(...e){return t=>(n,a)=>{const c=t(n,a);let i=()=>{throw new Error(_.dist.process.env.NODE_ENV==="production"?_r(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const u={getState:c.getState,dispatch:(p,...h)=>i(p,...h)},f=e.map(p=>p(u));return i=r0(...f)(c.dispatch),{...c,dispatch:i}}}function E5(e){return Wa(e)&&"type"in e&&typeof e.type=="string"}var L5=Symbol.for("immer-nothing"),oh=Symbol.for("immer-draftable"),nn=Symbol.for("immer-state"),Ty=_.dist.process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function $r(e,...t){if(_.dist.process.env.NODE_ENV!=="production"){const n=Ty[e],a=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${a}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var No=Object.getPrototypeOf;function qi(e){return!!e&&!!e[nn]}function ri(e){var t;return e?S5(e)||Array.isArray(e)||!!e[oh]||!!((t=e.constructor)!=null&&t[oh])||k0(e)||_0(e):!1}var Ay=Object.prototype.constructor.toString();function S5(e){if(!e||typeof e!="object")return!1;const t=No(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Ay}function n0(e,t){z0(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,a)=>t(a,n,e))}function z0(e){const t=e[nn];return t?t.type_:Array.isArray(e)?1:k0(e)?2:_0(e)?3:0}function pu(e,t){return z0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D5(e,t,n){const a=z0(e);a===2?e.set(t,n):a===3?e.add(n):e[t]=n}function Iy(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function k0(e){return e instanceof Map}function _0(e){return e instanceof Set}function ki(e){return e.copy_||e.base_}function gu(e,t){if(k0(e))return new Map(e);if(_0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=S5(e);if(t===!0||t==="class_only"&&!n){const a=Object.getOwnPropertyDescriptors(e);delete a[nn];let c=Reflect.ownKeys(a);for(let i=0;i<c.length;i++){const u=c[i],f=a[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(a[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(No(e),a)}else{const a=No(e);if(a!==null&&n)return{...e};const c=Object.create(a);return Object.assign(c,e)}}function pd(e,t=!1){return B0(e)||qi(e)||!ri(e)||(z0(e)>1&&(e.set=e.add=e.clear=e.delete=Ey),Object.freeze(e),t&&Object.entries(e).forEach(([n,a])=>pd(a,!0))),e}function Ey(){$r(2)}function B0(e){return Object.isFrozen(e)}var Ly={};function Ji(e){const t=Ly[e];return t||$r(0,e),t}var wa;function O5(){return wa}function Sy(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ah(e,t){t&&(Ji("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mu(e){Mu(e),e.drafts_.forEach(Dy),e.drafts_=null}function Mu(e){e===wa&&(wa=e.parent_)}function sh(e){return wa=Sy(wa,e)}function Dy(e){const t=e[nn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ch(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[nn].modified_&&(mu(t),$r(4)),ri(e)&&(e=i0(t,e),t.parent_||o0(t,e)),t.patches_&&Ji("Patches").generateReplacementPatches_(n[nn].base_,e,t.patches_,t.inversePatches_)):e=i0(t,n,[]),mu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==L5?e:void 0}function i0(e,t,n){if(B0(t))return t;const a=t[nn];if(!a)return n0(t,(c,i)=>lh(e,a,t,c,i,n)),t;if(a.scope_!==e)return t;if(!a.modified_)return o0(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const c=a.copy_;let i=c,u=!1;a.type_===3&&(i=new Set(c),c.clear(),u=!0),n0(i,(f,p)=>lh(e,a,c,f,p,n,u)),o0(e,c,!1),n&&e.patches_&&Ji("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function lh(e,t,n,a,c,i,u){if(_.dist.process.env.NODE_ENV!=="production"&&c===n&&$r(5),qi(c)){const f=i&&t&&t.type_!==3&&!pu(t.assigned_,a)?i.concat(a):void 0,p=i0(e,c,f);if(D5(n,a,p),qi(p))e.canAutoFreeze_=!1;else return}else u&&n.add(c);if(ri(c)&&!B0(c)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;i0(e,c),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,a)&&o0(e,c)}}function o0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pd(t,n)}function Oy(e,t){const n=Array.isArray(e),a={type_:n?1:0,scope_:t?t.scope_:O5(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let c=a,i=gd;n&&(c=[a],i=Na);const{revoke:u,proxy:f}=Proxy.revocable(c,i);return a.draft_=f,a.revoke_=u,f}var gd={get(e,t){if(t===nn)return e;const n=ki(e);if(!pu(n,t))return zy(e,n,t);const a=n[t];return e.finalized_||!ri(a)?a:a===Ac(e.base_,t)?(Ic(e),e.copy_[t]=vu(a,e)):a},has(e,t){return t in ki(e)},ownKeys(e){return Reflect.ownKeys(ki(e))},set(e,t,n){const a=z5(ki(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const c=Ac(ki(e),t),i=c==null?void 0:c[nn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Iy(n,c)&&(n!==void 0||pu(e.base_,t)))return!0;Ic(e),yu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ac(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ic(e),yu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ki(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:n[t]}},defineProperty(){$r(11)},getPrototypeOf(e){return No(e.base_)},setPrototypeOf(){$r(12)}},Na={};n0(gd,(e,t)=>{Na[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Na.deleteProperty=function(e,t){return _.dist.process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&$r(13),Na.set.call(this,e,t,void 0)};Na.set=function(e,t,n){return _.dist.process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&$r(14),gd.set.call(this,e[0],t,n,e[0])};function Ac(e,t){const n=e[nn];return(n?ki(n):e)[t]}function zy(e,t,n){var c;const a=z5(t,n);return a?"value"in a?a.value:(c=a.get)==null?void 0:c.call(e.draft_):void 0}function z5(e,t){if(!(t in e))return;let n=No(e);for(;n;){const a=Object.getOwnPropertyDescriptor(n,t);if(a)return a;n=No(n)}}function yu(e){e.modified_||(e.modified_=!0,e.parent_&&yu(e.parent_))}function Ic(e){e.copy_||(e.copy_=gu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ky=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,a)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const u=this;return function(p=i,...h){return u.produce(p,g=>n.call(this,g,...h))}}typeof n!="function"&&$r(6),a!==void 0&&typeof a!="function"&&$r(7);let c;if(ri(t)){const i=sh(this),u=vu(t,void 0);let f=!0;try{c=n(u),f=!1}finally{f?mu(i):Mu(i)}return ah(i,a),ch(c,i)}else if(!t||typeof t!="object"){if(c=n(t),c===void 0&&(c=t),c===L5&&(c=void 0),this.autoFreeze_&&pd(c,!0),a){const i=[],u=[];Ji("Patches").generateReplacementPatches_(t,c,i,u),a(i,u)}return c}else $r(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...f)=>this.produceWithPatches(u,p=>t(p,...f));let a,c;return[this.produce(t,n,(u,f)=>{a=u,c=f}),a,c]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ri(e)||$r(8),qi(e)&&(e=_y(e));const t=sh(this),n=vu(e,void 0);return n[nn].isManual_=!0,Mu(t),n}finishDraft(e,t){const n=e&&e[nn];(!n||!n.isManual_)&&$r(9);const{scope_:a}=n;return ah(a,t),ch(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const c=t[n];if(c.path.length===0&&c.op==="replace"){e=c.value;break}}n>-1&&(t=t.slice(n+1));const a=Ji("Patches").applyPatches_;return qi(e)?a(e,t):this.produce(e,c=>a(c,t))}};function vu(e,t){const n=k0(e)?Ji("MapSet").proxyMap_(e,t):_0(e)?Ji("MapSet").proxySet_(e,t):Oy(e,t);return(t?t.scope_:O5()).drafts_.push(n),n}function _y(e){return qi(e)||$r(10,e),k5(e)}function k5(e){if(!ri(e)||B0(e))return e;const t=e[nn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=gu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=gu(e,!0);return n0(n,(a,c)=>{D5(n,a,k5(c))}),t&&(t.finalized_=!1),n}var on=new ky,_5=on.produce;on.produceWithPatches.bind(on);on.setAutoFreeze.bind(on);on.setUseStrictShallowCopy.bind(on);on.applyPatches.bind(on);on.createDraft.bind(on);on.finishDraft.bind(on);function B5(e){return({dispatch:n,getState:a})=>c=>i=>typeof i=="function"?i(n,a,e):c(i)}var By=B5(),Fy=B5,Ry=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?r0:r0.apply(null,arguments)},Py=e=>e&&typeof e.match=="function";function fh(e,t){function n(...a){if(t){let c=t(...a);if(!c)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(0):"prepareAction did not return an object");return{type:e,payload:c.payload,..."meta"in c&&{meta:c.meta},..."error"in c&&{error:c.error}}}return{type:e,payload:a[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=a=>E5(a)&&a.type===e,n}function Uy(e){return typeof e=="function"&&"type"in e&&Py(e)}function Yy(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
66
- Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function Wy(e={}){if(_.dist.process.env.NODE_ENV==="production")return()=>n=>a=>n(a);const{isActionCreator:t=Uy}=e;return()=>n=>a=>(t(a)&&console.warn(Yy(a.type)),n(a))}function F5(e,t){let n=0;return{measureTime(a){const c=Date.now();try{return a()}finally{const i=Date.now();n+=i-c}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
67
- If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
68
- It is disabled in production builds, so you don't need to worry about that.`)}}}var R5=class na extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,na.prototype)}static get[Symbol.species](){return na}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new na(...t[0].concat(this)):new na(...t.concat(this))}};function uh(e){return ri(e)?_5(e,()=>{}):e}function is(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Hy(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Zy(e,t,n){const a=P5(e,t,n);return{detectMutations(){return U5(e,t,a,n)}}}function P5(e,t=[],n,a="",c=new Set){const i={value:n};if(!e(n)&&!c.has(n)){c.add(n),i.children={};for(const u in n){const f=a?a+"."+u:u;t.length&&t.indexOf(f)!==-1||(i.children[u]=P5(e,t,n[u],f))}}return i}function U5(e,t=[],n,a,c=!1,i=""){const u=n?n.value:void 0,f=u===a;if(c&&!f&&!Number.isNaN(a))return{wasMutated:!0,path:i};if(e(u)||e(a))return{wasMutated:!1};const p={};for(let g in n.children)p[g]=!0;for(let g in a)p[g]=!0;const h=t.length>0;for(let g in p){const C=i?i+"."+g:g;if(h&&t.some(I=>I instanceof RegExp?I.test(C):C===I))continue;const w=U5(e,t,n.children[g],a[g],f,C);if(w.wasMutated)return w}return{wasMutated:!1}}function Qy(e={}){if(_.dist.process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(f,p,h,g){return JSON.stringify(f,n(p,g),h)},n=function(f,p){let h=[],g=[];return p||(p=function(C,w){return h[0]===w?"[Circular ~]":"[Circular ~."+g.slice(0,h.indexOf(w)).join(".")+"]"}),function(C,w){if(h.length>0){var j=h.indexOf(this);~j?h.splice(j+1):h.push(this),~j?g.splice(j,1/0,C):g.push(C),~h.indexOf(w)&&(w=p.call(this,C,w))}else h.push(w);return f==null?w:f.call(this,C,w)}},{isImmutable:a=Hy,ignoredPaths:c,warnAfter:i=32}=e;const u=Zy.bind(null,a,c);return({getState:f})=>{let p=f(),h=u(p),g;return C=>w=>{const j=F5(i,"ImmutableStateInvariantMiddleware");j.measureTime(()=>{if(p=f(),g=h.detectMutations(),h=u(p),g.wasMutated)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(19):`A state mutation was detected between dispatches, in the path '${g.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const I=C(w);return j.measureTime(()=>{if(p=f(),g=h.detectMutations(),h=u(p),g.wasMutated)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(20):`A state mutation was detected inside a dispatch, in the path: ${g.path||""}. Take a look at the reducer(s) handling the action ${t(w)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),j.warnIfExceeded(),I}}}}function Y5(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Wa(e)}function xu(e,t="",n=Y5,a,c=[],i){let u;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i!=null&&i.has(e))return!1;const f=a!=null?a(e):Object.entries(e),p=c.length>0;for(const[h,g]of f){const C=t?t+"."+h:h;if(!(p&&c.some(j=>j instanceof RegExp?j.test(C):C===j))){if(!n(g))return{keyPath:C,value:g};if(typeof g=="object"&&(u=xu(g,C,n,a,c,i),u))return u}}return i&&W5(e)&&i.add(e),!1}function W5(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!W5(t))return!1;return!0}function Vy(e={}){if(_.dist.process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=Y5,getEntries:n,ignoredActions:a=[],ignoredActionPaths:c=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:u=32,ignoreState:f=!1,ignoreActions:p=!1,disableCache:h=!1}=e,g=!h&&WeakSet?new WeakSet:void 0;return C=>w=>j=>{if(!E5(j))return w(j);const I=w(j),T=F5(u,"SerializableStateInvariantMiddleware");return!p&&!(a.length&&a.indexOf(j.type)!==-1)&&T.measureTime(()=>{const S=xu(j,"",t,n,c,g);if(S){const{keyPath:L,value:E}=S;console.error(`A non-serializable value was detected in an action, in the path: \`${L}\`. Value:`,E,`
69
- Take a look at the logic that dispatched this action: `,j,`
70
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
71
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),f||(T.measureTime(()=>{const S=C.getState(),L=xu(S,"",t,n,i,g);if(L){const{keyPath:E,value:D}=L;console.error(`A non-serializable value was detected in the state, in the path: \`${E}\`. Value:`,D,`
72
- Take a look at the reducer(s) handling this action type: ${j.type}.
73
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),T.warnIfExceeded()),I}}}function os(e){return typeof e=="boolean"}var Gy=()=>function(t){const{thunk:n=!0,immutableCheck:a=!0,serializableCheck:c=!0,actionCreatorCheck:i=!0}=t??{};let u=new R5;if(n&&(os(n)?u.push(By):u.push(Fy(n.extraArgument))),_.dist.process.env.NODE_ENV!=="production"){if(a){let f={};os(a)||(f=a),u.unshift(Qy(f))}if(c){let f={};os(c)||(f=c),u.push(Vy(f))}if(i){let f={};os(i)||(f=i),u.unshift(Wy(f))}}return u},$y="RTK_autoBatch",dh=e=>t=>{setTimeout(t,e)},qy=(e={type:"raf"})=>t=>(...n)=>{const a=t(...n);let c=!0,i=!1,u=!1;const f=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:dh(10):e.type==="callback"?e.queueNotification:dh(e.timeout),h=()=>{u=!1,i&&(i=!1,f.forEach(g=>g()))};return Object.assign({},a,{subscribe(g){const C=()=>c&&g(),w=a.subscribe(C);return f.add(g),()=>{w(),f.delete(g)}},dispatch(g){var C;try{return c=!((C=g==null?void 0:g.meta)!=null&&C[$y]),i=!c,i&&(u||(u=!0,p(h))),a.dispatch(g)}finally{c=!0}}})},Jy=e=>function(n){const{autoBatch:a=!0}=n??{};let c=new R5(e);return a&&c.push(qy(typeof a=="object"?a:void 0)),c};function Xy(e){const t=Gy(),{reducer:n=void 0,middleware:a,devTools:c=!0,duplicateMiddlewareCheck:i=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let p;if(typeof n=="function")p=n;else if(Wa(n))p=Ny(n);else throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(_.dist.process.env.NODE_ENV!=="production"&&a&&typeof a!="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(2):"`middleware` field must be a callback");let h;if(typeof a=="function"){if(h=a(t),_.dist.process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(3):"when using a middleware builder function, an array of middleware must be returned")}else h=t();if(_.dist.process.env.NODE_ENV!=="production"&&h.some(T=>typeof T!="function"))throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(4):"each middleware provided to configureStore must be a function");if(_.dist.process.env.NODE_ENV!=="production"&&i){let T=new Set;h.forEach(S=>{if(T.has(S))throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");T.add(S)})}let g=r0;c&&(g=Ry({trace:_.dist.process.env.NODE_ENV!=="production",...typeof c=="object"&&c}));const C=jy(...h),w=Jy(C);if(_.dist.process.env.NODE_ENV!=="production"&&f&&typeof f!="function")throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(5):"`enhancers` field must be a callback");let j=typeof f=="function"?f(w):w();if(_.dist.process.env.NODE_ENV!=="production"&&!Array.isArray(j))throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(6):"`enhancers` callback must return an array");if(_.dist.process.env.NODE_ENV!=="production"&&j.some(T=>typeof T!="function"))throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(7):"each enhancer provided to configureStore must be a function");_.dist.process.env.NODE_ENV!=="production"&&h.length&&!j.includes(C)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const I=g(...j);return I5(p,u,I)}function H5(e){const t={},n=[];let a;const c={addCase(i,u){if(_.dist.process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const f=typeof i=="string"?i:i.type;if(!f)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(28):"`builder.addCase` cannot be called with an empty action type");if(f in t)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${f}'`);return t[f]=u,c},addMatcher(i,u){if(_.dist.process.env.NODE_ENV!=="production"&&a)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:i,reducer:u}),c},addDefaultCase(i){if(_.dist.process.env.NODE_ENV!=="production"&&a)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(31):"`builder.addDefaultCase` can only be called once");return a=i,c}};return e(c),[t,n,a]}function Ky(e){return typeof e=="function"}function e7(e,t){if(_.dist.process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,a,c]=H5(t),i;if(Ky(e))i=()=>uh(e());else{const f=uh(e);i=()=>f}function u(f=i(),p){let h=[n[p.type],...a.filter(({matcher:g})=>g(p)).map(({reducer:g})=>g)];return h.filter(g=>!!g).length===0&&(h=[c]),h.reduce((g,C)=>{if(C)if(qi(g)){const j=C(g,p);return j===void 0?g:j}else{if(ri(g))return _5(g,w=>C(w,p));{const w=C(g,p);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}}return g},f)}return u.getInitialState=i,u}var t7=Symbol.for("rtk-slice-createasyncthunk");function r7(e,t){return`${e}/${t}`}function n7({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[t7];return function(c){const{name:i,reducerPath:u=i}=c;if(!i)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(11):"`name` is a required option for createSlice");typeof _.dist.process<"u"&&_.dist.process.env.NODE_ENV==="development"&&c.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const f=(typeof c.reducers=="function"?c.reducers(o7()):c.reducers)||{},p=Object.keys(f),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(O,F){const R=typeof O=="string"?O:O.type;if(!R)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(12):"`context.addCase` cannot be called with an empty action type");if(R in h.sliceCaseReducersByType)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+R);return h.sliceCaseReducersByType[R]=F,g},addMatcher(O,F){return h.sliceMatchers.push({matcher:O,reducer:F}),g},exposeAction(O,F){return h.actionCreators[O]=F,g},exposeCaseReducer(O,F){return h.sliceCaseReducersByName[O]=F,g}};p.forEach(O=>{const F=f[O],R={reducerName:O,type:r7(i,O),createNotation:typeof c.reducers=="function"};s7(F)?l7(R,F,g,t):a7(R,F,g)});function C(){if(_.dist.process.env.NODE_ENV!=="production"&&typeof c.extraReducers=="object")throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[O={},F=[],R=void 0]=typeof c.extraReducers=="function"?H5(c.extraReducers):[c.extraReducers],Q={...O,...h.sliceCaseReducersByType};return e7(c.initialState,B=>{for(let k in Q)B.addCase(k,Q[k]);for(let k of h.sliceMatchers)B.addMatcher(k.matcher,k.reducer);for(let k of F)B.addMatcher(k.matcher,k.reducer);R&&B.addDefaultCase(R)})}const w=O=>O,j=new Map,I=new WeakMap;let T;function S(O,F){return T||(T=C()),T(O,F)}function L(){return T||(T=C()),T.getInitialState()}function E(O,F=!1){function R(B){let k=B[O];if(typeof k>"u"){if(F)k=is(I,R,L);else if(_.dist.process.env.NODE_ENV!=="production")throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(15):"selectSlice returned undefined for an uninjected slice reducer")}return k}function Q(B=w){const k=is(j,F,()=>new WeakMap);return is(k,B,()=>{const z={};for(const[y,r]of Object.entries(c.selectors??{}))z[y]=i7(r,B,()=>is(I,B,L),F);return z})}return{reducerPath:O,getSelectors:Q,get selectors(){return Q(R)},selectSlice:R}}const D={name:i,reducer:S,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:L,...E(u),injectInto(O,{reducerPath:F,...R}={}){const Q=F??u;return O.inject({reducerPath:Q,reducer:S},R),{...D,...E(Q,!0)}}};return D}}function i7(e,t,n,a){function c(i,...u){let f=t(i);if(typeof f>"u"){if(a)f=n();else if(_.dist.process.env.NODE_ENV!=="production")throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(16):"selectState returned undefined for an uninjected slice reducer")}return e(f,...u)}return c.unwrapped=e,c}var ko=n7();function o7(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function a7({type:e,reducerName:t,createNotation:n},a,c){let i,u;if("reducer"in a){if(n&&!c7(a))throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=a.reducer,u=a.prepare}else i=a;c.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,u?fh(e,u):fh(e))}function s7(e){return e._reducerDefinitionType==="asyncThunk"}function c7(e){return e._reducerDefinitionType==="reducerWithPrepare"}function l7({type:e,reducerName:t},n,a,c){if(!c)throw new Error(_.dist.process.env.NODE_ENV==="production"?lr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:u,pending:f,rejected:p,settled:h,options:g}=n,C=c(e,i,g);a.exposeAction(t,C),u&&a.addCase(C.fulfilled,u),f&&a.addCase(C.pending,f),p&&a.addCase(C.rejected,p),h&&a.addMatcher(C.settled,h),a.exposeCaseReducer(t,{fulfilled:u||as,pending:f||as,rejected:p||as,settled:h||as})}function as(){}function lr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const hh={txData:void 0,sendTx:"",redeemTx:"",transferComplete:!1,route:void 0,isResumeTx:!1,timestamp:0},Z5=ko({name:"redeem",initialState:hh,reducers:{setTxDetails:(e,{payload:t})=>{e.txData=t},setSendTx:(e,{payload:t})=>{e.sendTx=t},setRoute:(e,{payload:t})=>{e.route=t},clearRedeem:e=>{Object.keys(e).forEach(t=>{e[t]=hh[t]})},setIsResumeTx:(e,{payload:t})=>{e.isResumeTx=t},setTimestamp:(e,{payload:t})=>{e.timestamp=t}}}),{setTxDetails:md,setSendTx:f7,clearRedeem:bu,setRoute:Md,setIsResumeTx:Q5,setTimestamp:V5}=Z5.actions,u7=Z5.reducer,d7={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Wormchain:"",Osmosis:"https://rpc.osmotest5.osmosis.zone",Cosmoshub:"https://rpc.sentry-02.theta-testnet.polypore.xyz",Evmos:"https://evmos-testnet-rpc.polkachu.com",Kujira:"https://kujira-testnet-rpc.polkachu.com",Injective:"https://injective-testnet-rpc.polkachu.com",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Blast:"https://sepolia.blast.io",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org",Linea:"https://linea-sepolia-rpc.publicnode.com",Sonic:"https://sonic-blaze-rpc.publicnode.com"}},h7={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Wormchain:"https://wormchain-rpc.quickapi.com",Osmosis:"https://osmosis-rpc.polkachu.com",Cosmoshub:"https://cosmos-rpc.polkachu.com",Evmos:"https://evmos-rpc.polkachu.com",Kujira:"https://kujira-rpc.polkachu.com",Injective:"https://injective-rpc.publicnode.com/",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Blast:"https://blast-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com",Linea:"https://linea-rpc.publicnode.com",Sonic:"https://sonic-rpc.publicnode.com"}},p7={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545",Wormchain:"http://localhost:26659",Osmosis:"http://localhost:33043",Terra2:"http://localhost:26658"}},xa=class xa extends Error{constructor(){super(xa.MESSAGE)}};yt(xa,"MESSAGE","Insufficient funds for gas"),yt(xa,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let Cu=xa;const g7={MAINNET:h7,TESTNET:d7,DEVNET:p7},m7={Ethereum:{displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH"},Bsc:{displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC"},Polygon:{displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",icon:"Polygon",symbol:"POL"},Avalanche:{displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",icon:"Avalanche",symbol:"AVAX"},Fantom:{displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",icon:"Fantom",symbol:"FTM"},Celo:{displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO"},Moonbeam:{displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR"},Solana:{displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL"},Sui:{displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI"},Aptos:{displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT"},Base:{displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",icon:"Base",symbol:"BASE"},Arbitrum:{displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",icon:"Arbitrum",symbol:"ARB"},Optimism:{displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",icon:"Optimism",symbol:"OP"},Klaytn:{displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",icon:"Klaytn",symbol:"KLAY"},Scroll:{displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR"},Blast:{displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",icon:"Blast",symbol:"BLAST"},Xlayer:{displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX"},Mantle:{displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT"},Worldchain:{displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",icon:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",icon:"Unichain",symbol:"UNI"},Berachain:{displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",icon:"Berachain",symbol:"BERA"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"}},Ii=e=>{console.error(`Wormhole Connect: ${e}`)},Lt=(e,t)=>t?{[e]:t}:{},M7=(e,t)=>{if(!t)return e;for(const n in t)for(const a in t[n])e[n]||(e[n]={}),e[n][a]={...t[n][a],...e[n][a]};return e},y7=(e,t,n)=>{if(e)return e.fromChain&&(t[e.fromChain]||(Ii(`Invalid chain name "${e.fromChain}" specified for defaultInputs.fromChain`),delete e.fromChain)),e.toChain&&(t[e.toChain]||(Ii(`Invalid chain name "${e.toChain}" specified for defaultInputs.toChain`),delete e.fromChain)),e.fromChain&&e.toChain&&e.fromChain===e.toChain&&Ii("Source and destination chain cannot be the same, check the defaultInputs configuration"),e.fromChain&&e.toChain&&e.requiredChain&&(t[e.requiredChain]||Ii(`Invalid network value "${e.requiredChain}" specified for defaultInputs.requiredChain`),e.toChain!==e.requiredChain&&e.fromChain!==e.requiredChain&&Ii("Source chain or destination chain must equal the required network")),e.fromChain&&e.fromToken&&(n.findByAddressOrSymbol(e.fromChain,e.fromToken)||(Ii(`Invalid token "${e.fromToken}" specified for defaultInputs.fromToken`),delete e.fromToken)),e.toChain&&e.toToken&&(n.findByAddressOrSymbol(e.toChain,e.toToken)||(Ii(`Invalid token "${e.toToken}" specified for defaultInputs.toToken`),delete e.toToken)),e},v7=e=>e[0].toUpperCase()+e.slice(1),x7={},{REACT_APP_ETHEREUM_RPC:b7,REACT_APP_SOLANA_RPC:C7,REACT_APP_POLYGON_RPC:w7,REACT_APP_BSC_RPC:N7,REACT_APP_AVALANCHE_RPC:j7,REACT_APP_FANTOM_RPC:T7,REACT_APP_CELO_RPC:A7,REACT_APP_MOONBEAM_RPC:I7,REACT_APP_SUI_RPC:E7,REACT_APP_APTOS_RPC:L7,REACT_APP_BASE_RPC:S7,REACT_APP_KLAYTN_RPC:D7,REACT_APP_ARBITRUM_RPC:O7,REACT_APP_OPTIMISM_RPC:z7,REACT_APP_SCROLL_RPC:k7,REACT_APP_BLAST_RPC:_7,REACT_APP_XLAYER_RPC:B7,REACT_APP_MANTLE_RPC:F7,REACT_APP_WORLDCHAIN_RPC:R7,REACT_APP_UNICHAIN_RPC:P7,REACT_APP_BERACHAIN_RPC:U7,REACT_APP_LINEA_RPC:Y7,REACT_APP_SONIC_RPC:W7}=x7,H7={...Lt("Ethereum",b7),...Lt("Solana",C7),...Lt("Polygon",w7),...Lt("Bsc",N7),...Lt("Avalanche",j7),...Lt("Fantom",T7),...Lt("Celo",A7),...Lt("Moonbeam",I7),...Lt("Sui",E7),...Lt("Aptos",L7),...Lt("Base",S7),...Lt("Arbitrum",O7),...Lt("Optimism",z7),...Lt("Klaytn",D7),...Lt("Scroll",k7),...Lt("Blast",_7),...Lt("Xlayer",B7),...Lt("Mantle",F7),...Lt("Worldchain",R7),...Lt("Unichain",P7),...Lt("Berachain",U7),...Lt("Linea",Y7),...Lt("Sonic",W7)};function wu(e){return{...e,experimental:e.experimental??{},walletConnectProjectId:(e==null?void 0:e.walletConnectProjectId)??void 0}}var Ne=(e=>(e[e.AVAX=1]="AVAX",e[e.BNB=2]="BNB",e[e.BSC=3]="BSC",e[e.CELO=4]="CELO",e[e.ETH=5]="ETH",e[e.FANTOM=6]="FANTOM",e[e.POLYGON=7]="POLYGON",e[e.SOLANA=8]="SOLANA",e[e.USDC=9]="USDC",e[e.GLMR=10]="GLMR",e[e.DAI=11]="DAI",e[e.USDT=12]="USDT",e[e.BUSD=13]="BUSD",e[e.WBTC=14]="WBTC",e[e.SUI=15]="SUI",e[e.APT=16]="APT",e[e.SEI=17]="SEI",e[e.BASE=18]="BASE",e[e.OSMO=19]="OSMO",e[e.TBTC=20]="TBTC",e[e.WSTETH=21]="WSTETH",e[e.ARBITRUM=22]="ARBITRUM",e[e.OPTIMISM=23]="OPTIMISM",e[e.ATOM=24]="ATOM",e[e.EVMOS=25]="EVMOS",e[e.KUJI=26]="KUJI",e[e.PYTH=27]="PYTH",e[e.INJ=28]="INJ",e[e.KLAY=29]="KLAY",e[e.NTT=30]="NTT",e[e.SCROLL=31]="SCROLL",e[e.BLAST=32]="BLAST",e[e.XLAYER=33]="XLAYER",e[e.MANTLE=34]="MANTLE",e[e.WORLDCHAIN=35]="WORLDCHAIN",e[e.BERA=36]="BERA",e[e.BTC=37]="BTC",e[e.SONIC=38]="SONIC",e))(Ne||{});const Z7=Object.freeze(Object.defineProperty({__proto__:null,TokenIcon:Ne,createUiConfig:wu},Symbol.toStringTag,{value:"Module"})),Q7=[{symbol:"ETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:Ne.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:Ne.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:Ne.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:Ne.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:Ne.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:Ne.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:Ne.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:Ne.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:Ne.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:Ne.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:Ne.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:Ne.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:Ne.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:Ne.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:Ne.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:Ne.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:Ne.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:Ne.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:Ne.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:Ne.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ne.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:Ne.USDC},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:Ne.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:Ne.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:Ne.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:Ne.USDC},{symbol:"ETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:Ne.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ne.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:Ne.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:Ne.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ne.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:Ne.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:Ne.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:Ne.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:Ne.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:Ne.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:Ne.WSTETH},{symbol:"KLAY",decimals:18,icon:Ne.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:Ne.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:Ne.PYTH},{symbol:"ETH",decimals:18,icon:Ne.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:Ne.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:Ne.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:Ne.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:Ne.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:Ne.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:Ne.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:Ne.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:Ne.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ne.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ne.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ne.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ne.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:Ne.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ne.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ne.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ne.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ne.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:Ne.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:Ne.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:Ne.BERA},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ne.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:Ne.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ne.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:Ne.USDC}],V7={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},G5={chains:m7,tokens:Q7,wrappedTokens:V7,rpcs:H7,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},G7={Bsc:{displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Blast:{displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",icon:"Blast",symbol:"BLAST",sdkName:"Blast"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"}},$7={},{REACT_APP_SEPOLIA_RPC:q7,REACT_APP_BSC_TESTNET_RPC:J7,REACT_APP_FUJI_RPC:X7,REACT_APP_FANTOM_TESTNET_RPC:K7,REACT_APP_ALFAJORES_RPC:ev,REACT_APP_SOLANA_DEVNET_RPC:tv,REACT_APP_MOONBASE_RPC:rv,REACT_APP_SUI_TESTNET_RPC:nv,REACT_APP_APTOS_TESTNET_RPC:iv,REACT_APP_BASE_SEPOLIA_RPC:ov,REACT_APP_KLAYTN_TESTNET_RPC:av,REACT_APP_ARBITRUM_SEPOLIA_RPC:sv,REACT_APP_OPTIMISM_SEPOLIA_RPC:cv,REACT_APP_SCROLL_TESTNET_RPC:lv,REACT_APP_BLAST_TESTNET_RPC:fv,REACT_APP_XLAYER_TESTNET_RPC:uv,REACT_APP_MANTLE_TESTNET_RPC:dv,REACT_APP_WORLDCHAIN_TESTNET_RPC:hv,REACT_APP_UNICHAIN_TESTNET_RPC:pv,REACT_APP_MEZO_TESTNET_RPC:gv,REACT_APP_LINEA_TESTNET_RPC:mv,REACT_APP_SONIC_TESTNET_RPC:Mv}=$7,yv={...Lt("Sepolia",q7),...Lt("Bsc",J7),...Lt("Avalanche",X7),...Lt("Fantom",K7),...Lt("Celo",ev),...Lt("Solana",tv),...Lt("Moonbeam",rv),...Lt("Sui",nv),...Lt("Aptos",iv),...Lt("BaseSepolia",ov),...Lt("ArbitrumSepolia",sv),...Lt("OptimismSepolia",cv),...Lt("Klaytn",av),...Lt("Scroll",lv),...Lt("Blast",fv),...Lt("Xlayer",uv),...Lt("Mantle",dv),...Lt("Worldchain",hv),...Lt("Unichain",pv),...Lt("Mezo",gv),...Lt("Linea",mv),...Lt("Sonic",Mv)},vv=[{symbol:"BNB",icon:Ne.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:Ne.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:Ne.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:Ne.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:Ne.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:Ne.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:Ne.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:Ne.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:Ne.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:Ne.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:Ne.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:Ne.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ne.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:Ne.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:Ne.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:Ne.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:Ne.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:Ne.USDC},{symbol:"KLAY",icon:Ne.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:Ne.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:Ne.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:Ne.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ne.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:Ne.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:Ne.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:Ne.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:Ne.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:Ne.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:Ne.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:Ne.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ne.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ne.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ne.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ne.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:Ne.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ne.BTC},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ne.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:Ne.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ne.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:Ne.USDC}],xv={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},$5={chains:G7,tokens:vv,wrappedTokens:xv,rpcs:yv,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},bv={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"},Osmosis:{displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",icon:"Osmosis",symbol:"OSMO"},Wormchain:{sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",icon:"Osmosis",symbol:"OSMO"},Terra2:{sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",icon:"Terra2",symbol:"OSMO"}},Cv={},{REACT_APP_ETHEREUM_DEVNET_RPC:wv}=Cv,Nv={...Lt("Ethereum",wv)},jv=[{symbol:"ETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:Ne.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:Ne.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],Tv={chains:bv,tokens:jv,wrappedTokens:{},rpcs:Nv,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}};function Av(e){var n;const t=typeof window>"u"||(n=window.location)==null?void 0:n.host;return function(a){const c={meta:{version:Co.CONNECT_VERSION,hash:Co.CONNECT_GIT_HASH,host:t},...a};if(console.debug("Wormhole Connect event:",c),e)try{e(c)}catch(i){console.error("Error handling event:",i)}}}class F0{constructor(t,n,a,c,i){yt(this,"source");yt(this,"destination");yt(this,"fromChain");yt(this,"toChain");yt(this,"recipient");this.fromChain=t,this.toChain=n,this.source=a,this.destination=c,this.recipient=i}parseAmount(t){return _.parse(t,this.source.decimals)}amountFromBaseUnits(t){return _.fromBaseUnits(t,this.source.decimals)}async displayQuote(t,n,a){let c={success:!0,sourceToken:{token:t.sourceToken.token,amount:_.fromBaseUnits(t.sourceToken.amount,this.source.decimals)},destinationToken:{token:t.destinationToken.token,amount:_.fromBaseUnits(t.destinationToken.amount,this.destination.decimals)},params:n};if(t.relayFee){const u=await(t.relayFee.token.chain===this.fromChain.chain?this.fromChain:this.toChain).getDecimals(t.relayFee.token.address);c.relayFee={token:t.relayFee.token,amount:_.fromBaseUnits(t.relayFee.amount,u)}}if(t.destinationNativeGas){const i=await this.toChain.getDecimals("native");c.destinationNativeGas=_.fromBaseUnits(t.destinationNativeGas,i)}return t.warnings&&t.warnings.length>0&&(c.warnings=[...t.warnings]),c.eta=t.eta,c.expires=t.expires,a&&(c.details=a),c}static async create(t,n,a,c){a=a??t.getChain(n.source.chain),c=c??t.getChain(n.destination.chain);const i=await _.getTokenDetails(a,n.source,n.sourceDecimals),u=await _.getTokenDetails(c,n.destination,n.destinationDecimals);return new F0(a,c,i,u,n.recipient)}}async function q5(e,t,n,a=120*1e3,c=console.log){const i=Date.now();c("Checking transfer state...");for await(t of e.track(t,120*1e3))c("Current Transfer State: ",_.TransferState[t.state]);if(_.isCompleted(t))return t;if(_.isManual(e)&&_.isAttested(t)&&n){c("Completing transfer...");const f=await e.complete(n,t);c("Completed transfer with txids: ",f)}if(_.isFinalizable(e)&&_.isRedeemed(t)&&n){c("Finalizing transfer...");const f=await e.finalize(n,t);c("Finalized transfer with txids: ",f)}const u=a-(Date.now()-i);return u>0?(c("Transfer not complete, trying again in a 2000ms..."),await new Promise(p=>setTimeout(p,2e3)),q5(e,t,n,u)):t}var _s;let J5=(_s=class extends _.AutomaticRoute{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return _.tokenBridgeRelayerChains.has(t)?_.tokenBridgeRelayerChains.get(t):[]}static async supportedDestinationTokens(t,n,a){try{if(!_.isNative(t)&&!await(await n.getAutomaticTokenBridge()).isRegisteredToken(t.address))return[];const c=await _.TokenTransfer.lookupDestinationToken(n,a,t);return await(await a.getAutomaticTokenBridge()).isRegisteredToken(c.address)?[c]:[]}catch{return[]}}getDefaultOptions(){return{nativeGas:0}}async validate(t,n){try{const a=n.options??this.getDefaultOptions();if(a.nativeGas&&(a.nativeGas>1||a.nativeGas<0))throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");const{destination:c}=t;_.isNative(c.id.address)&&a.nativeGas===0&&(a.nativeGas=0);const i={...n,options:a};return{valid:!0,params:{...i,normalizedParams:await this.normalizeTransferParams(t,i)}}}catch(a){return{valid:!1,params:n,error:a}}}async normalizeTransferParams(t,n){const a=t.parseAmount(n.amount),c=_.isNative(t.source.id.address)?await t.fromChain.getNativeWrappedTokenId():t.source.id,u=await(await t.fromChain.getAutomaticTokenBridge()).getRelayerFee(t.toChain.chain,c.address),f=u*105n/100n;if(_.units(a)<f)throw new Rn.MinAmountError(_.fromBaseUnits(f,a.decimals));const p=_.units(a)-u;let h=_.fromBaseUnits(0n,t.source.decimals);if(n.options&&n.options.nativeGas>0){let C=await(await t.toChain.getAutomaticTokenBridge()).maxSwapAmount(t.destination.id.address);const w=_.truncate(_.fromBaseUnits(p,a.decimals),_.TokenTransfer.MAX_DECIMALS),j=await t.toChain.getDecimals(t.destination.id.address),I=_.units(_.scale(w,j));I<C&&(C=I);const T=1e4,S=BigInt(Math.floor(n.options.nativeGas*T)),L=C*S/BigInt(T),E=_.fromBaseUnits(L,t.destination.decimals);h=_.scale(_.truncate(E,_.TokenTransfer.MAX_DECIMALS),t.source.decimals),_.units(h)>p&&(h=_.fromBaseUnits(p,t.source.decimals))}return{fee:_.fromBaseUnits(u,t.source.decimals),amount:a,nativeGasAmount:h}}async quote(t,n){const a=await t.fromChain.getAutomaticTokenBridge();if(_.isTokenId(t.source.id)&&!await a.isRegisteredToken(t.source.id.address))return{success:!1,error:new Error("Source token is not registered")};try{let c=await _.TokenTransfer.quoteTransfer(this.wh,t.fromChain,t.toChain,{automatic:!0,amount:_.units(n.normalizedParams.amount),token:t.source.id,nativeGas:_.units(n.normalizedParams.nativeGasAmount)});return t.displayQuote(c,n)}catch(c){return{success:!1,error:c}}}async initiate(t,n,a,c){const{params:i}=a,u=this.toTransferDetails(t,i,_.Wormhole.chainAddress(n.chain(),n.address()),c),f=await _.TokenTransfer.transfer(t.fromChain,u,n);return{from:u.from.chain,to:u.to.chain,state:_.TransferState.SourceInitiated,originTxs:f}}async*track(t,n){try{yield*_.TokenTransfer.track(this.wh,t,n)}catch(a){throw a}}toTransferDetails(t,n,a,c){return{from:a,to:c,automatic:!0,amount:_.units(n.normalizedParams.amount),token:t.source.id,nativeGas:_.units(n.normalizedParams.nativeGasAmount)}}},yt(_s,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),yt(_s,"meta",{name:"AutomaticTokenBridge"}),_s);var ou;let X5=(ou=class extends _.ManualRoute{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return _.tokenBridgeChains(t)}static async supportedDestinationTokens(t,n,a){try{return[await _.TokenTransfer.lookupDestinationToken(n,a,t)]}catch{return[]}}getDefaultOptions(){return{payload:void 0}}async validate(t,n){const a=_.parse(n.amount,t.source.decimals);return{valid:!0,params:{amount:n.amount,normalizedParams:{amount:a},options:{}}}}async quote(t,n){try{return t.displayQuote(await _.TokenTransfer.quoteTransfer(this.wh,t.fromChain,t.toChain,{token:t.source.id,amount:_.units(n.normalizedParams.amount),...n.options}),n)}catch(a){return{success:!1,error:a}}}async initiate(t,n,a,c){const{params:i}=a,u=await _.TokenTransfer.destinationOverrides(t.fromChain,t.toChain,this.toTransferDetails(t,i,_.Wormhole.chainAddress(n.chain(),n.address()),c)),f=await _.TokenTransfer.transfer(t.fromChain,u,n);return{from:u.from.chain,to:u.to.chain,state:_.TransferState.SourceInitiated,originTxs:f}}async complete(t,n){if(!_.isAttested(n))throw new Error("The source must be finalized in order to complete the transfer");const a=this.wh.getChain(n.to),c=await _.TokenTransfer.redeem(a,n.attestation.attestation,t);return{...n,state:_.TransferState.DestinationInitiated,destinationTxs:c}}async resume(t){const n=await _.TokenTransfer.from(this.wh,t,1e4);return _.TokenTransfer.getReceipt(n)}async*track(t,n){yield*_.TokenTransfer.track(this.wh,t,n)}toTransferDetails(t,n,a,c){return{from:a,to:c,token:t.source.id,amount:_.units(n.normalizedParams.amount),...n.options}}},yt(ou,"meta",{name:"ManualTokenBridge"}),ou);const Nu=15n,K5=100n,Ps=10000n;var Jn;let e6=(Jn=class extends _.AutomaticRoute{static supportedNetworks(){return["Mainnet"]}static supportedChains(t){return _.porticoContractChains.has(t)?_.porticoContractChains.get(t):[]}static async supportedDestinationTokens(t,n,a){const[,c]=_.resolveWrappedToken(n.network,n.chain,t),i=_.canonicalAddress(c),u=await n.getPorticoBridge();if(!u.supportedTokens().some(C=>_.canonicalAddress(C.token)===i))return[];try{const C=await u.getTransferrableToken(i);await _.TokenTransfer.lookupDestinationToken(n,a,C)}catch{return[]}const p=(await a.getPorticoBridge()).supportedTokens(),{tokenMap:h}=a.config,g=u.getTokenGroup(i);return p.filter(C=>(C.group===g||C.group==="ETH"&&g==="WETH"||C.group==="WETH"&&g==="ETH")&&(!h||_.filters.byAddress(h,_.canonicalAddress(C.token)))).map(C=>C.token)}getDefaultOptions(){return{}}async validate(t,n){try{if(!Jn.supportedChains(t.fromChain.network).includes(t.fromChain.chain)||!Jn.supportedChains(t.toChain.network).includes(t.toChain.chain))throw new Error("Protocol not supported");const{fromChain:a,toChain:c,source:i,destination:u}=t,{network:f}=a,[,p]=_.resolveWrappedToken(f,a.chain,i.id),[,h]=_.resolveWrappedToken(f,c.chain,u.id),g=await a.getPorticoBridge(),C=await c.getPorticoBridge(),w=await g.getTransferrableToken(_.canonicalAddress(p)),j=await C.getTransferrableToken(_.canonicalAddress(h));return{valid:!0,params:{amount:n.amount,options:n.options??this.getDefaultOptions(),normalizedParams:{amount:t.parseAmount(n.amount),canonicalSourceToken:w,canonicalDestinationToken:j,sourceToken:p,destinationToken:h}}}}catch(a){return{valid:!1,error:a,params:n}}}async quote(t,n){try{const a=await this.fetchSwapQuote(t,n),c=Math.max(t.source.decimals,t.destination.decimals),i=_.units(_.scale(n.normalizedParams.amount,c));if(_.units(_.scale(_.fromBaseUnits(a.minAmountFinish,t.destination.decimals),c))<i-i*K5/Ps)throw new Error("Slippage too high");const p=await(await t.toChain.getPorticoBridge()).quoteRelay(n.normalizedParams.canonicalDestinationToken.address,n.normalizedParams.destinationToken.address),h={swapAmounts:a,relayerFee:p},g=h.swapAmounts.minAmountFinish-p;return g<0n?{success:!1,error:new Error(`Amount too low for slippage and fee, would result in negative destination amount (${g})`)}:await t.displayQuote({sourceToken:{token:n.normalizedParams.sourceToken,amount:_.units(n.normalizedParams.amount)},destinationToken:{token:n.normalizedParams.destinationToken,amount:h.swapAmounts.minAmountFinish-p},relayFee:{token:n.normalizedParams.destinationToken,amount:p},eta:_.estimateFinalityTime(t.fromChain.chain),expires:_.expiration(0,5,0)},n,h)}catch(a){return{success:!1,error:a}}}async initiate(t,n,a,c){const{params:i,details:u}=a,f=t.source.id.address,p=t.destination.id,h=await t.fromChain.getPorticoBridge(),g=h.getTokenGroup(f.toString()),w=(await t.toChain.getPorticoBridge()).getPorticoAddress(g),j=h.transfer(_.Wormhole.parseAddress(n.chain(),n.address()),c,f,_.units(i.normalizedParams.amount),p,w,u);return{originTxs:await _.signSendWait(t.fromChain,j,n),state:_.TransferState.SourceInitiated,from:t.fromChain.chain,to:t.toChain.chain}}async*track(t,n){if(_.isSourceInitiated(t)||_.isSourceFinalized(t)){const{txid:a}=t.originTxs[t.originTxs.length-1],c=await this.wh.getVaa(a,"PorticoBridge:Transfer",n);if(!c)throw new Error("No VAA found for transaction: "+a);const i={chain:c.emitterChain,emitter:c.emitterAddress,sequence:c.sequence};t={...t,state:_.TransferState.Attested,attestation:{id:i,attestation:c}},yield t}_.isAttested(t)&&await(await this.wh.getChain(t.to).getPorticoBridge()).isTransferCompleted(t.attestation.attestation)&&(t={...t,state:_.TransferState.DestinationFinalized},yield t),yield t}async complete(t,n){if(!_.isAttested(n))throw new Error("Source must be attested");const a=await this.wh.getChain(n.to),c=await a.getPorticoBridge(),i=_.Wormhole.chainAddress(t.chain(),t.address()),u=c.redeem(i.address,n.attestation.attestation);return await _.signSendWait(a,u,t)}async fetchSwapQuote(t,n){const a=await t.fromChain.getPorticoBridge(),c=_.units(n.normalizedParams.amount),i=a.getTokenGroup(_.canonicalAddress(n.normalizedParams.sourceToken)),u=await a.quoteSwap(n.normalizedParams.sourceToken.address,n.normalizedParams.canonicalSourceToken.address,i,c),f=u*Nu/Ps;if(f>=u)throw new Error("Start slippage too high");const p=await t.toChain.getPorticoBridge(),h=u-f,g=await p.quoteSwap(n.normalizedParams.canonicalDestinationToken.address,n.normalizedParams.destinationToken.address,i,h),C=g*Nu/Ps;if(C>=g)throw new Error("Finish slippage too high");const w=g-C;return{minAmountStart:h,minAmountFinish:w}}},yt(Jn,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),yt(Jn,"meta",{name:"AutomaticPortico"}),Jn);var au;let t6=(au=class extends _.ManualRoute{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return _.circleContractChains.has(t)?_.circleContractChains.get(t):[]}static async supportedDestinationTokens(t,n,a){const c=_.usdcContract.get(n.network,n.chain);if(!c)return[];if(!_.isSameToken(t,_.Wormhole.tokenId(n.chain,c)))return[];const{network:i,chain:u}=a;return _.usdcContract.has(i,u)?[_.Wormhole.chainAddress(u,_.usdcContract.get(i,u))]:[]}getDefaultOptions(){return{payload:void 0}}async validate(t,n){return{valid:!0,params:{normalizedParams:{amount:t.parseAmount(n.amount)},options:n.options??this.getDefaultOptions(),...n}}}async quote(t,n){try{return t.displayQuote(await _.CircleTransfer.quoteTransfer(t.fromChain,t.toChain,{automatic:!1,amount:_.units(n.normalizedParams.amount),...n.options}),n)}catch(a){return{success:!1,error:a}}}async initiate(t,n,a,c){const{params:i}=a,u=await _.CircleTransfer.destinationOverrides(t.fromChain,t.toChain,this.toTransferDetails(i,_.Wormhole.chainAddress(n.chain(),n.address()),c)),f=await _.CircleTransfer.transfer(t.fromChain,u,n),p=await _.CircleTransfer.getTransferMessage(t.fromChain,f[f.length-1].txid);return{from:u.from.chain,to:u.to.chain,state:_.TransferState.SourceFinalized,originTxs:f,attestation:{id:p.id,attestation:{message:p.message}}}}async complete(t,n){if(!_.isAttested(n))throw new Error("The source must be finalized in order to complete the transfer");const{id:a,attestation:c}=n.attestation;if(_.CircleBridge.isCircleAttestation(c)){const{message:i,attestation:u}=c;if(!u)throw new Error(`No Circle attestation for ${a}`);const f=this.wh.getChain(n.to),p=await f.getCircleBridge(),h=_.Wormhole.parseAddress(t.chain(),t.address()),g=p.redeem(h,i,u),C=await _.signSendWait(f,g,t);return{...n,state:_.TransferState.DestinationInitiated,destinationTxs:C}}else return n}async resume(t){const n=await _.CircleTransfer.from(this.wh,t,1e4);return _.CircleTransfer.getReceipt(n)}async*track(t,n){yield*_.CircleTransfer.track(this.wh,t,n)}toTransferDetails(t,n,a){return{from:n,to:a,amount:_.units(t.normalizedParams.amount),automatic:!1,...t.options}}},yt(au,"meta",{name:"ManualCCTP",provider:"Circle"}),au);var Bs;let r6=(Bs=class extends _.AutomaticRoute{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return _.circleContractChains.has(t)?_.circleContractChains.get(t).filter(a=>{var c;return(c=_.circleContracts.get(t,a))==null?void 0:c.wormholeRelayer}):[]}static async supportedDestinationTokens(t,n,a){const c=_.usdcContract.get(n.network,n.chain);if(!c)return[];if(!_.isSameToken(t,_.Wormhole.tokenId(n.chain,c)))return[];const{network:i,chain:u}=a;return _.usdcContract.has(i,u)?[_.Wormhole.chainAddress(u,_.usdcContract.get(i,u))]:[]}getDefaultOptions(){return{nativeGas:0}}async validate(t,n){try{const a=n.options??this.getDefaultOptions();return{valid:!0,params:{normalizedParams:await this.normalizeTransferParams(t,n),options:a,...n}}}catch(a){return{valid:!1,params:n,error:a}}}async quote(t,n){try{return t.displayQuote(await _.CircleTransfer.quoteTransfer(t.fromChain,t.toChain,{automatic:!0,amount:_.units(n.normalizedParams.amount),nativeGas:_.units(n.normalizedParams.nativeGasAmount)}),n)}catch(a){return{success:!1,error:a}}}async normalizeTransferParams(t,n){const a=t.parseAmount(n.amount),i=await(await t.fromChain.getAutomaticCircleBridge()).getRelayerFee(t.toChain.chain),u=i*105n/100n;if(_.units(a)<u)throw new Rn.MinAmountError(_.fromBaseUnits(u,a.decimals));const f=_.units(a)-i,h=(n.options??this.getDefaultOptions()).nativeGas??0;if(h>1||h<0)throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");let g=0n;if(h>0){let w=await(await t.toChain.getAutomaticCircleBridge()).maxSwapAmount();f<w&&(w=f);const j=1e4,I=BigInt(Math.floor(h*j));g=w*I/BigInt(j),g===f&&g>0n&&(g-=1n)}return{fee:t.amountFromBaseUnits(i),amount:a,nativeGasAmount:t.amountFromBaseUnits(g)}}toTransferDetails(t,n,a){return{from:n,to:a,amount:_.units(t.normalizedParams.amount),automatic:!0,nativeGas:_.units(t.normalizedParams.nativeGasAmount)}}async initiate(t,n,a,c){const{params:i}=a;let u=this.toTransferDetails(i,_.Wormhole.chainAddress(n.chain(),n.address()),c),f=await _.CircleTransfer.transfer(t.fromChain,u,n);const p=await _.CircleTransfer.getTransferMessage(t.fromChain,f[f.length-1].txid);return{from:u.from.chain,to:u.to.chain,state:_.TransferState.SourceFinalized,originTxs:f,attestation:{id:p.id,attestation:{message:p.message}}}}async*track(t,n){yield*_.CircleTransfer.track(this.wh,t,n)}},yt(Bs,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),yt(Bs,"meta",{name:"AutomaticCCTP",provider:"Circle"}),Bs);class yd extends _.ManualRoute{static supportedNetworks(){return["Mainnet"]}static supportedChains(t){return _.tokenBridgeChains(t)}static async supportedDestinationTokens(t,n,a){if(!await this.isSourceTokenSupported(t,n))return[];const c=_.TBTCBridge.getNativeTbtcToken(a.chain);if(c)return[c];const i=await a.getTokenBridge(),u=_.TBTCBridge.getNativeTbtcToken("Ethereum");try{const f=await i.getWrappedAsset(u);return[_.Wormhole.tokenId(a.chain,f.toString())]}catch(f){if(f.message.includes("not a wrapped asset"))return[];throw f}}getDefaultOptions(){return{}}async validate(t,n){return{valid:!0,params:{normalizedParams:{amount:t.parseAmount(n.amount)},options:n.options??this.getDefaultOptions(),...n}}}async quote(t,n){const a=_.estimateFinalityTime(t.fromChain.chain)+_.guardianAttestationEta;return{success:!0,params:n,sourceToken:{token:t.source.id,amount:n.normalizedParams.amount},destinationToken:{token:t.destination.id,amount:n.normalizedParams.amount},eta:a,expires:_.expiration(24,0,0)}}async initiate(t,n,a,c){const i=_.units(a.params.normalizedParams.amount),u=t.fromChain.chain==="Ethereum",f=_.TBTCBridge.getNativeTbtcToken(t.fromChain.chain),p=f&&_.isSameToken(a.sourceToken.token,f);if(p&&!u)return await this.transferNative(t,n,c,i);if(!p&&u)throw new Error("Only tbtc can be transferred on Ethereum");if(!p){const g=await(await t.fromChain.getTokenBridge()).getOriginalAsset(a.sourceToken.token.address),C=_.TBTCBridge.getNativeTbtcToken("Ethereum");if(!_.isSameToken(g,C))throw new Error("Can only transfer wrapped tbtc")}return await this.transferWrapped(t,n,c,i)}async transferNative(t,n,a,c){const i=_.Wormhole.parseAddress(n.chain(),n.address()),f=(await t.fromChain.getTBTCBridge()).transfer(i,a,c);return{originTxs:await _.signSendWait(t.fromChain,f,n),state:_.TransferState.SourceInitiated,from:t.fromChain.chain,to:t.toChain.chain}}async transferWrapped(t,n,a,c){const i=_.Wormhole.parseAddress(n.chain(),n.address()),u=_.tbtc.get(t.fromChain.network,a.chain),f=await t.fromChain.getTokenBridge();let p;return u?p=f.transfer(i,_.Wormhole.chainAddress(t.toChain.chain,u),t.source.id.address,c,a.address.toUniversalAddress().toUint8Array()):p=f.transfer(i,a,t.source.id.address,c),{originTxs:await _.signSendWait(t.fromChain,p,n),state:_.TransferState.SourceInitiated,from:t.fromChain.chain,to:t.toChain.chain}}async complete(t,n){if(!_.isAttested(n))throw new Error("The source must be finalized in order to complete the transfer");const a=_.Wormhole.parseAddress(t.chain(),t.address()),c=n.attestation.attestation,i=this.wh.getChain(n.to);let u;if(c.payloadLiteral==="TBTCBridge:GatewayTransfer")u=(await i.getTBTCBridge()).redeem(a,c);else{const p=await i.getTokenBridge(),h=_.serialize(c),g=_.deserialize("TokenBridge:Transfer",h);u=p.redeem(a,g)}const f=await _.signSendWait(i,u,t);return{...n,state:_.TransferState.DestinationInitiated,destinationTxs:f}}async resume(t){const n=await this.wh.getVaa(t.txid,_.TBTCBridge.getTransferDiscriminator());if(!n)throw new Error("No VAA found for transaction: "+t);const a=_.TBTCBridge.getNativeTbtcToken("Ethereum"),{chain:c,address:i}=n.payload.token;if(!_.isSameToken(a,{chain:c,address:i}))throw new Error("Can only resume tbtc transfers");return{originTxs:[t],state:_.TransferState.Attested,from:n.emitterChain,to:n.payload.to.chain,attestation:{id:{chain:n.emitterChain,emitter:n.emitterAddress,sequence:n.sequence},attestation:n}}}async*track(t,n){if(_.isSourceInitiated(t)||_.isSourceFinalized(t)){const{txid:a}=t.originTxs[t.originTxs.length-1],c=await this.wh.getVaa(a,_.TBTCBridge.getTransferDiscriminator(),n);if(!c)throw new Error("No VAA found for transaction: "+a);const i={chain:c.emitterChain,emitter:c.emitterAddress,sequence:c.sequence};t={...t,state:_.TransferState.Attested,attestation:{id:i,attestation:c}},yield t}_.isAttested(t)&&await(await this.wh.getChain(t.to).getTokenBridge()).isTransferCompleted(t.attestation.attestation)&&(t={...t,state:_.TransferState.DestinationFinalized},yield t),yield t}static async isSourceTokenSupported(t,n){if(_.isNative(t.address))return!1;const a=_.TBTCBridge.getNativeTbtcToken(n.chain);if(a&&_.isSameToken(t,a))return!0;const c=await n.getTokenBridge();try{const i=await c.getOriginalAsset(t.address);return _.isSameToken(i,_.TBTCBridge.getNativeTbtcToken("Ethereum"))}catch(i){if(i.message.includes("not a wrapped asset"))return!1;throw i}}}yt(yd,"meta",{name:"ManualTBTC"});const Iv=Object.freeze(Object.defineProperty({__proto__:null,AutomaticCCTPRoute:r6,AutomaticPorticoRoute:e6,AutomaticRoute:_.AutomaticRoute,AutomaticTokenBridgeRoute:J5,BPS_PER_HUNDRED_PERCENT:Ps,CCTPRoute:t6,FinalizableRoute:_.FinalizableRoute,MAX_SLIPPAGE_BPS:K5,ManualRoute:_.ManualRoute,MinAmountError:Rn.MinAmountError,RelayFailedError:Rn.RelayFailedError,Route:_.Route,RouteResolver:_.RouteResolver,RouteTransferRequest:F0,SLIPPAGE_BPS:Nu,TBTCRoute:yd,TokenBridgeRoute:X5,UnavailableError:Rn.UnavailableError,checkAndCompleteTransfer:q5,isAutomatic:_.isAutomatic,isFinalizable:_.isFinalizable,isManual:_.isManual},Symbol.toStringTag,{value:"Module"}));function n6(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var i6={exports:{}},Rt={},ss={exports:{}},ph;function _o(){if(ph)return ss.exports;ph=1;var e=65536,t=4294967295;function n(){throw new Error(`Secure random number generation is not supported by this browser.
74
- Use Chrome, Firefox or Internet Explorer 11`)}var a=_.safeBufferExports.Buffer,c=_.commonjsGlobal.crypto||_.commonjsGlobal.msCrypto;c&&c.getRandomValues?ss.exports=i:ss.exports=n;function i(u,f){if(u>t)throw new RangeError("requested too many random bytes");var p=a.allocUnsafe(u);if(u>0)if(u>e)for(var h=0;h<u;h+=e)c.getRandomValues(p.slice(h,h+e));else c.getRandomValues(p);return typeof f=="function"?_.dist.process.nextTick(function(){f(null,p)}):p}return ss.exports}var ju={exports:{}};typeof Object.create=="function"?ju.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ju.exports=function(t,n){if(n){t.super_=n;var a=function(){};a.prototype=n.prototype,t.prototype=new a,t.prototype.constructor=t}};var zt=ju.exports,vd={exports:{}},vo=typeof Reflect=="object"?Reflect:null,gh=vo&&typeof vo.apply=="function"?vo.apply:function(t,n,a){return Function.prototype.apply.call(t,n,a)},Us;vo&&typeof vo.ownKeys=="function"?Us=vo.ownKeys:Object.getOwnPropertySymbols?Us=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Us=function(t){return Object.getOwnPropertyNames(t)};function Ev(e){console&&console.warn&&console.warn(e)}var o6=Number.isNaN||function(t){return t!==t};function ar(){ar.init.call(this)}vd.exports=ar;vd.exports.once=Ov;ar.EventEmitter=ar;ar.prototype._events=void 0;ar.prototype._eventsCount=0;ar.prototype._maxListeners=void 0;var mh=10;function R0(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ar,"defaultMaxListeners",{enumerable:!0,get:function(){return mh},set:function(e){if(typeof e!="number"||e<0||o6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mh=e}});ar.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ar.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||o6(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function a6(e){return e._maxListeners===void 0?ar.defaultMaxListeners:e._maxListeners}ar.prototype.getMaxListeners=function(){return a6(this)};ar.prototype.emit=function(t){for(var n=[],a=1;a<arguments.length;a++)n.push(arguments[a]);var c=t==="error",i=this._events;if(i!==void 0)c=c&&i.error===void 0;else if(!c)return!1;if(c){var u;if(n.length>0&&(u=n[0]),u instanceof Error)throw u;var f=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw f.context=u,f}var p=i[t];if(p===void 0)return!1;if(typeof p=="function")gh(p,this,n);else for(var h=p.length,g=u6(p,h),a=0;a<h;++a)gh(g[a],this,n);return!0};function s6(e,t,n,a){var c,i,u;if(R0(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),u=i[t]),u===void 0)u=i[t]=n,++e._eventsCount;else if(typeof u=="function"?u=i[t]=a?[n,u]:[u,n]:a?u.unshift(n):u.push(n),c=a6(e),c>0&&u.length>c&&!u.warned){u.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=u.length,Ev(f)}return e}ar.prototype.addListener=function(t,n){return s6(this,t,n,!1)};ar.prototype.on=ar.prototype.addListener;ar.prototype.prependListener=function(t,n){return s6(this,t,n,!0)};function Lv(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c6(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},c=Lv.bind(a);return c.listener=n,a.wrapFn=c,c}ar.prototype.once=function(t,n){return R0(n),this.on(t,c6(this,t,n)),this};ar.prototype.prependOnceListener=function(t,n){return R0(n),this.prependListener(t,c6(this,t,n)),this};ar.prototype.removeListener=function(t,n){var a,c,i,u,f;if(R0(n),c=this._events,c===void 0)return this;if(a=c[t],a===void 0)return this;if(a===n||a.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete c[t],c.removeListener&&this.emit("removeListener",t,a.listener||n));else if(typeof a!="function"){for(i=-1,u=a.length-1;u>=0;u--)if(a[u]===n||a[u].listener===n){f=a[u].listener,i=u;break}if(i<0)return this;i===0?a.shift():Sv(a,i),a.length===1&&(c[t]=a[0]),c.removeListener!==void 0&&this.emit("removeListener",t,f||n)}return this};ar.prototype.off=ar.prototype.removeListener;ar.prototype.removeAllListeners=function(t){var n,a,c;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[t]),this;if(arguments.length===0){var i=Object.keys(a),u;for(c=0;c<i.length;++c)u=i[c],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=a[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(c=n.length-1;c>=0;c--)this.removeListener(t,n[c]);return this};function l6(e,t,n){var a=e._events;if(a===void 0)return[];var c=a[t];return c===void 0?[]:typeof c=="function"?n?[c.listener||c]:[c]:n?Dv(c):u6(c,c.length)}ar.prototype.listeners=function(t){return l6(this,t,!0)};ar.prototype.rawListeners=function(t){return l6(this,t,!1)};ar.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):f6.call(e,t)};ar.prototype.listenerCount=f6;function f6(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}ar.prototype.eventNames=function(){return this._eventsCount>0?Us(this._events):[]};function u6(e,t){for(var n=new Array(t),a=0;a<t;++a)n[a]=e[a];return n}function Sv(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Dv(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function Ov(e,t){return new Promise(function(n,a){function c(u){e.removeListener(t,i),a(u)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",c),n([].slice.call(arguments))}d6(e,t,i,{once:!0}),t!=="error"&&zv(e,c,{once:!0})})}function zv(e,t,n){typeof e.on=="function"&&d6(e,"error",t,n)}function d6(e,t,n,a){if(typeof e.on=="function")a.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function c(i){a.once&&e.removeEventListener(t,c),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var oo=vd.exports;const kv=_.getDefaultExportFromCjs(oo);var Ec,Mh;function h6(){return Mh||(Mh=1,Ec=oo.EventEmitter),Ec}const _v={},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:_v},Symbol.toStringTag,{value:"Module"})),Bo=_.getAugmentedNamespace(Bv);var Lc,yh;function Fv(){if(yh)return Lc;yh=1;function e(I,T){var S=Object.keys(I);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(I);T&&(L=L.filter(function(E){return Object.getOwnPropertyDescriptor(I,E).enumerable})),S.push.apply(S,L)}return S}function t(I){for(var T=1;T<arguments.length;T++){var S=arguments[T]!=null?arguments[T]:{};T%2?e(Object(S),!0).forEach(function(L){n(I,L,S[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(S)):e(Object(S)).forEach(function(L){Object.defineProperty(I,L,Object.getOwnPropertyDescriptor(S,L))})}return I}function n(I,T,S){return T=u(T),T in I?Object.defineProperty(I,T,{value:S,enumerable:!0,configurable:!0,writable:!0}):I[T]=S,I}function a(I,T){if(!(I instanceof T))throw new TypeError("Cannot call a class as a function")}function c(I,T){for(var S=0;S<T.length;S++){var L=T[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,u(L.key),L)}}function i(I,T,S){return T&&c(I.prototype,T),Object.defineProperty(I,"prototype",{writable:!1}),I}function u(I){var T=f(I,"string");return typeof T=="symbol"?T:String(T)}function f(I,T){if(typeof I!="object"||I===null)return I;var S=I[Symbol.toPrimitive];if(S!==void 0){var L=S.call(I,T);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}var p=_.bufferPolyfill,h=p.Buffer,g=Bo,C=g.inspect,w=C&&C.custom||"inspect";function j(I,T,S){h.prototype.copy.call(I,T,S)}return Lc=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return i(I,[{key:"push",value:function(S){var L={data:S,next:null};this.length>0?this.tail.next=L:this.head=L,this.tail=L,++this.length}},{key:"unshift",value:function(S){var L={data:S,next:this.head};this.length===0&&(this.tail=L),this.head=L,++this.length}},{key:"shift",value:function(){if(this.length!==0){var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(S){if(this.length===0)return"";for(var L=this.head,E=""+L.data;L=L.next;)E+=S+L.data;return E}},{key:"concat",value:function(S){if(this.length===0)return h.alloc(0);for(var L=h.allocUnsafe(S>>>0),E=this.head,D=0;E;)j(E.data,L,D),D+=E.data.length,E=E.next;return L}},{key:"consume",value:function(S,L){var E;return S<this.head.data.length?(E=this.head.data.slice(0,S),this.head.data=this.head.data.slice(S)):S===this.head.data.length?E=this.shift():E=L?this._getString(S):this._getBuffer(S),E}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(S){var L=this.head,E=1,D=L.data;for(S-=D.length;L=L.next;){var O=L.data,F=S>O.length?O.length:S;if(F===O.length?D+=O:D+=O.slice(0,S),S-=F,S===0){F===O.length?(++E,L.next?this.head=L.next:this.head=this.tail=null):(this.head=L,L.data=O.slice(F));break}++E}return this.length-=E,D}},{key:"_getBuffer",value:function(S){var L=h.allocUnsafe(S),E=this.head,D=1;for(E.data.copy(L),S-=E.data.length;E=E.next;){var O=E.data,F=S>O.length?O.length:S;if(O.copy(L,L.length-S,0,F),S-=F,S===0){F===O.length?(++D,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=O.slice(F));break}++D}return this.length-=D,L}},{key:w,value:function(S,L){return C(this,t(t({},L),{},{depth:0,customInspect:!1}))}}]),I}(),Lc}var Sc,vh;function p6(){if(vh)return Sc;vh=1;function e(u,f){var p=this,h=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return h||g?(f?f(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,_.dist.process.nextTick(c,this,u)):_.dist.process.nextTick(c,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(C){!f&&C?p._writableState?p._writableState.errorEmitted?_.dist.process.nextTick(n,p):(p._writableState.errorEmitted=!0,_.dist.process.nextTick(t,p,C)):_.dist.process.nextTick(t,p,C):f?(_.dist.process.nextTick(n,p),f(C)):_.dist.process.nextTick(n,p)}),this)}function t(u,f){c(u,f),n(u)}function n(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function c(u,f){u.emit("error",f)}function i(u,f){var p=u._readableState,h=u._writableState;p&&p.autoDestroy||h&&h.autoDestroy?u.destroy(f):u.emit("error",f)}return Sc={destroy:e,undestroy:a,errorOrDestroy:i},Sc}var Dc={},xh;function Fo(){if(xh)return Dc;xh=1;function e(f,p){f.prototype=Object.create(p.prototype),f.prototype.constructor=f,f.__proto__=p}var t={};function n(f,p,h){h||(h=Error);function g(w,j,I){return typeof p=="string"?p:p(w,j,I)}var C=function(w){e(j,w);function j(I,T,S){return w.call(this,g(I,T,S))||this}return j}(h);C.prototype.name=h.name,C.prototype.code=f,t[f]=C}function a(f,p){if(Array.isArray(f)){var h=f.length;return f=f.map(function(g){return String(g)}),h>2?"one of ".concat(p," ").concat(f.slice(0,h-1).join(", "),", or ")+f[h-1]:h===2?"one of ".concat(p," ").concat(f[0]," or ").concat(f[1]):"of ".concat(p," ").concat(f[0])}else return"of ".concat(p," ").concat(String(f))}function c(f,p,h){return f.substr(0,p.length)===p}function i(f,p,h){return(h===void 0||h>f.length)&&(h=f.length),f.substring(h-p.length,h)===p}function u(f,p,h){return typeof h!="number"&&(h=0),h+p.length>f.length?!1:f.indexOf(p,h)!==-1}return n("ERR_INVALID_OPT_VALUE",function(f,p){return'The value "'+p+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,p,h){var g;typeof p=="string"&&c(p,"not ")?(g="must not be",p=p.replace(/^not /,"")):g="must be";var C;if(i(f," argument"))C="The ".concat(f," ").concat(g," ").concat(a(p,"type"));else{var w=u(f,".")?"property":"argument";C='The "'.concat(f,'" ').concat(w," ").concat(g," ").concat(a(p,"type"))}return C+=". Received type ".concat(typeof h),C},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Dc.codes=t,Dc}var Oc,bh;function g6(){if(bh)return Oc;bh=1;var e=Fo().codes.ERR_INVALID_OPT_VALUE;function t(a,c,i){return a.highWaterMark!=null?a.highWaterMark:c?a[i]:null}function n(a,c,i,u){var f=t(c,u,i);if(f!=null){if(!(isFinite(f)&&Math.floor(f)===f)||f<0){var p=u?i:"highWaterMark";throw new e(p,f)}return Math.floor(f)}return a.objectMode?16:16*1024}return Oc={getHighWaterMark:n},Oc}var zc,Ch;function xd(){if(Ch)return zc;Ch=1,zc=e;function e(n,a){if(t("noDeprecation"))return n;var c=!1;function i(){if(!c){if(t("throwDeprecation"))throw new Error(a);t("traceDeprecation")?console.trace(a):console.warn(a),c=!0}return n.apply(this,arguments)}return i}function t(n){try{if(!_.commonjsGlobal.localStorage)return!1}catch{return!1}var a=_.commonjsGlobal.localStorage[n];return a==null?!1:String(a).toLowerCase()==="true"}return zc}var kc,wh;function m6(){if(wh)return kc;wh=1,kc=B;function e(V){var P=this;this.next=null,this.entry=null,this.finish=function(){ee(P,V)}}var t;B.WritableState=R;var n={deprecate:xd()},a=h6(),c=_.bufferPolyfill.Buffer,i=(typeof _.commonjsGlobal<"u"?_.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(V){return c.from(V)}function f(V){return c.isBuffer(V)||V instanceof i}var p=p6(),h=g6(),g=h.getHighWaterMark,C=Fo().codes,w=C.ERR_INVALID_ARG_TYPE,j=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_MULTIPLE_CALLBACK,T=C.ERR_STREAM_CANNOT_PIPE,S=C.ERR_STREAM_DESTROYED,L=C.ERR_STREAM_NULL_VALUES,E=C.ERR_STREAM_WRITE_AFTER_END,D=C.ERR_UNKNOWN_ENCODING,O=p.errorOrDestroy;zt(B,a);function F(){}function R(V,P,H){t=t||jo(),V=V||{},typeof H!="boolean"&&(H=P instanceof t),this.objectMode=!!V.objectMode,H&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=g(this,V,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=V.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(X){M(P,X)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}R.prototype.getBuffer=function(){for(var P=this.bufferedRequest,H=[];P;)H.push(P),P=P.next;return H},function(){try{Object.defineProperty(R.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Q;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Q=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(P){return Q.call(this,P)?!0:this!==B?!1:P&&P._writableState instanceof R}})):Q=function(P){return P instanceof this};function B(V){t=t||jo();var P=this instanceof t;if(!P&&!Q.call(B,this))return new B(V);this._writableState=new R(V,this,P),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),a.call(this)}B.prototype.pipe=function(){O(this,new T)};function k(V,P){var H=new E;O(V,H),_.dist.process.nextTick(P,H)}function z(V,P,H,$){var X;return H===null?X=new L:typeof H!="string"&&!P.objectMode&&(X=new w("chunk",["string","Buffer"],H)),X?(O(V,X),_.dist.process.nextTick($,X),!1):!0}B.prototype.write=function(V,P,H){var $=this._writableState,X=!1,te=!$.objectMode&&f(V);return te&&!c.isBuffer(V)&&(V=u(V)),typeof P=="function"&&(H=P,P=null),te?P="buffer":P||(P=$.defaultEncoding),typeof H!="function"&&(H=F),$.ending?k(this,H):(te||z(this,$,V,H))&&($.pendingcb++,X=r(this,$,te,V,P,H)),X},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&m(this,V))},B.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new D(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function y(V,P,H){return!V.objectMode&&V.decodeStrings!==!1&&typeof P=="string"&&(P=c.from(P,H)),P}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(V,P,H,$,X,te){if(!H){var Y=y(P,$,X);$!==Y&&(H=!0,X="buffer",$=Y)}var ne=P.objectMode?1:$.length;P.length+=ne;var xe=P.length<P.highWaterMark;if(xe||(P.needDrain=!0),P.writing||P.corked){var le=P.lastBufferedRequest;P.lastBufferedRequest={chunk:$,encoding:X,isBuf:H,callback:te,next:null},le?le.next=P.lastBufferedRequest:P.bufferedRequest=P.lastBufferedRequest,P.bufferedRequestCount+=1}else s(V,P,!1,ne,$,X,te);return xe}function s(V,P,H,$,X,te,Y){P.writelen=$,P.writecb=Y,P.writing=!0,P.sync=!0,P.destroyed?P.onwrite(new S("write")):H?V._writev(X,P.onwrite):V._write(X,te,P.onwrite),P.sync=!1}function l(V,P,H,$,X){--P.pendingcb,H?(_.dist.process.nextTick(X,$),_.dist.process.nextTick(Z,V,P),V._writableState.errorEmitted=!0,O(V,$)):(X($),V._writableState.errorEmitted=!0,O(V,$),Z(V,P))}function d(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function M(V,P){var H=V._writableState,$=H.sync,X=H.writecb;if(typeof X!="function")throw new I;if(d(H),P)l(V,H,$,P,X);else{var te=o(H)||V.destroyed;!te&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&m(V,H),$?_.dist.process.nextTick(b,V,H,te,X):b(V,H,te,X)}}function b(V,P,H,$){H||N(V,P),P.pendingcb--,$(),Z(V,P)}function N(V,P){P.length===0&&P.needDrain&&(P.needDrain=!1,V.emit("drain"))}function m(V,P){P.bufferProcessing=!0;var H=P.bufferedRequest;if(V._writev&&H&&H.next){var $=P.bufferedRequestCount,X=new Array($),te=P.corkedRequestsFree;te.entry=H;for(var Y=0,ne=!0;H;)X[Y]=H,H.isBuf||(ne=!1),H=H.next,Y+=1;X.allBuffers=ne,s(V,P,!0,P.length,X,"",te.finish),P.pendingcb++,P.lastBufferedRequest=null,te.next?(P.corkedRequestsFree=te.next,te.next=null):P.corkedRequestsFree=new e(P),P.bufferedRequestCount=0}else{for(;H;){var xe=H.chunk,le=H.encoding,ue=H.callback,Ve=P.objectMode?1:xe.length;if(s(V,P,!1,Ve,xe,le,ue),H=H.next,P.bufferedRequestCount--,P.writing)break}H===null&&(P.lastBufferedRequest=null)}P.bufferedRequest=H,P.bufferProcessing=!1}B.prototype._write=function(V,P,H){H(new j("_write()"))},B.prototype._writev=null,B.prototype.end=function(V,P,H){var $=this._writableState;return typeof V=="function"?(H=V,V=null,P=null):typeof P=="function"&&(H=P,P=null),V!=null&&this.write(V,P),$.corked&&($.corked=1,this.uncork()),$.ending||G(this,$,H),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function o(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function x(V,P){V._final(function(H){P.pendingcb--,H&&O(V,H),P.prefinished=!0,V.emit("prefinish"),Z(V,P)})}function W(V,P){!P.prefinished&&!P.finalCalled&&(typeof V._final=="function"&&!P.destroyed?(P.pendingcb++,P.finalCalled=!0,_.dist.process.nextTick(x,V,P)):(P.prefinished=!0,V.emit("prefinish")))}function Z(V,P){var H=o(P);if(H&&(W(V,P),P.pendingcb===0&&(P.finished=!0,V.emit("finish"),P.autoDestroy))){var $=V._readableState;(!$||$.autoDestroy&&$.endEmitted)&&V.destroy()}return H}function G(V,P,H){P.ending=!0,Z(V,P),H&&(P.finished?_.dist.process.nextTick(H):V.once("finish",H)),P.ended=!0,V.writable=!1}function ee(V,P,H){var $=V.entry;for(V.entry=null;$;){var X=$.callback;P.pendingcb--,X(H),$=$.next}P.corkedRequestsFree.next=V}return Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(P){this._writableState&&(this._writableState.destroyed=P)}}),B.prototype.destroy=p.destroy,B.prototype._undestroy=p.undestroy,B.prototype._destroy=function(V,P){P(V)},kc}var _c,Nh;function jo(){if(Nh)return _c;Nh=1;var e=Object.keys||function(h){var g=[];for(var C in h)g.push(C);return g};_c=u;var t=M6(),n=m6();zt(u,t);for(var a=e(n.prototype),c=0;c<a.length;c++){var i=a[c];u.prototype[i]||(u.prototype[i]=n.prototype[i])}function u(h){if(!(this instanceof u))return new u(h);t.call(this,h),n.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(){this._writableState.ended||_.dist.process.nextTick(p,this)}function p(h){h.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),_c}var Bc={},jh;function a0(){if(jh)return Bc;jh=1;var e=_.safeBufferExports.Buffer,t=e.isEncoding||function(L){switch(L=""+L,L&&L.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(L){if(!L)return"utf8";for(var E;;)switch(L){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return L;default:if(E)return;L=(""+L).toLowerCase(),E=!0}}function a(L){var E=n(L);if(typeof E!="string"&&(e.isEncoding===t||!t(L)))throw new Error("Unknown encoding: "+L);return E||L}Bc.StringDecoder=c;function c(L){this.encoding=a(L);var E;switch(this.encoding){case"utf16le":this.text=C,this.end=w,E=4;break;case"utf8":this.fillLast=p,E=4;break;case"base64":this.text=j,this.end=I,E=3;break;default:this.write=T,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(E)}c.prototype.write=function(L){if(L.length===0)return"";var E,D;if(this.lastNeed){if(E=this.fillLast(L),E===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<L.length?E?E+this.text(L,D):this.text(L,D):E||""},c.prototype.end=g,c.prototype.text=h,c.prototype.fillLast=function(L){if(this.lastNeed<=L.length)return L.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);L.copy(this.lastChar,this.lastTotal-this.lastNeed,0,L.length),this.lastNeed-=L.length};function i(L){return L<=127?0:L>>5===6?2:L>>4===14?3:L>>3===30?4:L>>6===2?-1:-2}function u(L,E,D){var O=E.length-1;if(O<D)return 0;var F=i(E[O]);return F>=0?(F>0&&(L.lastNeed=F-1),F):--O<D||F===-2?0:(F=i(E[O]),F>=0?(F>0&&(L.lastNeed=F-2),F):--O<D||F===-2?0:(F=i(E[O]),F>=0?(F>0&&(F===2?F=0:L.lastNeed=F-3),F):0))}function f(L,E,D){if((E[0]&192)!==128)return L.lastNeed=0,"�";if(L.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return L.lastNeed=1,"�";if(L.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return L.lastNeed=2,"�"}}function p(L){var E=this.lastTotal-this.lastNeed,D=f(this,L);if(D!==void 0)return D;if(this.lastNeed<=L.length)return L.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);L.copy(this.lastChar,E,0,L.length),this.lastNeed-=L.length}function h(L,E){var D=u(this,L,E);if(!this.lastNeed)return L.toString("utf8",E);this.lastTotal=D;var O=L.length-(D-this.lastNeed);return L.copy(this.lastChar,0,O),L.toString("utf8",E,O)}function g(L){var E=L&&L.length?this.write(L):"";return this.lastNeed?E+"�":E}function C(L,E){if((L.length-E)%2===0){var D=L.toString("utf16le",E);if(D){var O=D.charCodeAt(D.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=L[L.length-2],this.lastChar[1]=L[L.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=L[L.length-1],L.toString("utf16le",E,L.length-1)}function w(L){var E=L&&L.length?this.write(L):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,D)}return E}function j(L,E){var D=(L.length-E)%3;return D===0?L.toString("base64",E):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=L[L.length-1]:(this.lastChar[0]=L[L.length-2],this.lastChar[1]=L[L.length-1]),L.toString("base64",E,L.length-D))}function I(L){var E=L&&L.length?this.write(L):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function T(L){return L.toString(this.encoding)}function S(L){return L&&L.length?this.write(L):""}return Bc}var Fc,Th;function bd(){if(Th)return Fc;Th=1;var e=Fo().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var u=!1;return function(){if(!u){u=!0;for(var f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];i.apply(this,p)}}}function n(){}function a(i){return i.setHeader&&typeof i.abort=="function"}function c(i,u,f){if(typeof u=="function")return c(i,null,u);u||(u={}),f=t(f||n);var p=u.readable||u.readable!==!1&&i.readable,h=u.writable||u.writable!==!1&&i.writable,g=function(){i.writable||w()},C=i._writableState&&i._writableState.finished,w=function(){h=!1,C=!0,p||f.call(i)},j=i._readableState&&i._readableState.endEmitted,I=function(){p=!1,j=!0,h||f.call(i)},T=function(D){f.call(i,D)},S=function(){var D;if(p&&!j)return(!i._readableState||!i._readableState.ended)&&(D=new e),f.call(i,D);if(h&&!C)return(!i._writableState||!i._writableState.ended)&&(D=new e),f.call(i,D)},L=function(){i.req.on("finish",w)};return a(i)?(i.on("complete",w),i.on("abort",S),i.req?L():i.on("request",L)):h&&!i._writableState&&(i.on("end",g),i.on("close",g)),i.on("end",I),i.on("finish",w),u.error!==!1&&i.on("error",T),i.on("close",S),function(){i.removeListener("complete",w),i.removeListener("abort",S),i.removeListener("request",L),i.req&&i.req.removeListener("finish",w),i.removeListener("end",g),i.removeListener("close",g),i.removeListener("finish",w),i.removeListener("end",I),i.removeListener("error",T),i.removeListener("close",S)}}return Fc=c,Fc}var Rc,Ah;function Rv(){if(Ah)return Rc;Ah=1;var e;function t(D,O,F){return O=n(O),O in D?Object.defineProperty(D,O,{value:F,enumerable:!0,configurable:!0,writable:!0}):D[O]=F,D}function n(D){var O=a(D,"string");return typeof O=="symbol"?O:String(O)}function a(D,O){if(typeof D!="object"||D===null)return D;var F=D[Symbol.toPrimitive];if(F!==void 0){var R=F.call(D,O);if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(D)}var c=bd(),i=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),p=Symbol("ended"),h=Symbol("lastPromise"),g=Symbol("handlePromise"),C=Symbol("stream");function w(D,O){return{value:D,done:O}}function j(D){var O=D[i];if(O!==null){var F=D[C].read();F!==null&&(D[h]=null,D[i]=null,D[u]=null,O(w(F,!1)))}}function I(D){_.dist.process.nextTick(j,D)}function T(D,O){return function(F,R){D.then(function(){if(O[p]){F(w(void 0,!0));return}O[g](F,R)},R)}}var S=Object.getPrototypeOf(function(){}),L=Object.setPrototypeOf((e={get stream(){return this[C]},next:function(){var O=this,F=this[f];if(F!==null)return Promise.reject(F);if(this[p])return Promise.resolve(w(void 0,!0));if(this[C].destroyed)return new Promise(function(k,z){_.dist.process.nextTick(function(){O[f]?z(O[f]):k(w(void 0,!0))})});var R=this[h],Q;if(R)Q=new Promise(T(R,this));else{var B=this[C].read();if(B!==null)return Promise.resolve(w(B,!1));Q=new Promise(this[g])}return this[h]=Q,Q}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var O=this;return new Promise(function(F,R){O[C].destroy(null,function(Q){if(Q){R(Q);return}F(w(void 0,!0))})})}),e),S),E=function(O){var F,R=Object.create(L,(F={},t(F,C,{value:O,writable:!0}),t(F,i,{value:null,writable:!0}),t(F,u,{value:null,writable:!0}),t(F,f,{value:null,writable:!0}),t(F,p,{value:O._readableState.endEmitted,writable:!0}),t(F,g,{value:function(B,k){var z=R[C].read();z?(R[h]=null,R[i]=null,R[u]=null,B(w(z,!1))):(R[i]=B,R[u]=k)},writable:!0}),F));return R[h]=null,c(O,function(Q){if(Q&&Q.code!=="ERR_STREAM_PREMATURE_CLOSE"){var B=R[u];B!==null&&(R[h]=null,R[i]=null,R[u]=null,B(Q)),R[f]=Q;return}var k=R[i];k!==null&&(R[h]=null,R[i]=null,R[u]=null,k(w(void 0,!0))),R[p]=!0}),O.on("readable",I.bind(null,R)),R};return Rc=E,Rc}var Pc,Ih;function Pv(){return Ih||(Ih=1,Pc=function(){throw new Error("Readable.from is not available in the browser")}),Pc}var Uc,Eh;function M6(){if(Eh)return Uc;Eh=1,Uc=k;var e;k.ReadableState=B,oo.EventEmitter;var t=function(Y,ne){return Y.listeners(ne).length},n=h6(),a=_.bufferPolyfill.Buffer,c=(typeof _.commonjsGlobal<"u"?_.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(te){return a.from(te)}function u(te){return a.isBuffer(te)||te instanceof c}var f=Bo,p;f&&f.debuglog?p=f.debuglog("stream"):p=function(){};var h=Fv(),g=p6(),C=g6(),w=C.getHighWaterMark,j=Fo().codes,I=j.ERR_INVALID_ARG_TYPE,T=j.ERR_STREAM_PUSH_AFTER_EOF,S=j.ERR_METHOD_NOT_IMPLEMENTED,L=j.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,D,O;zt(k,n);var F=g.errorOrDestroy,R=["error","close","destroy","pause","resume"];function Q(te,Y,ne){if(typeof te.prependListener=="function")return te.prependListener(Y,ne);!te._events||!te._events[Y]?te.on(Y,ne):Array.isArray(te._events[Y])?te._events[Y].unshift(ne):te._events[Y]=[ne,te._events[Y]]}function B(te,Y,ne){e=e||jo(),te=te||{},typeof ne!="boolean"&&(ne=Y instanceof e),this.objectMode=!!te.objectMode,ne&&(this.objectMode=this.objectMode||!!te.readableObjectMode),this.highWaterMark=w(this,te,"readableHighWaterMark",ne),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=te.emitClose!==!1,this.autoDestroy=!!te.autoDestroy,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(E||(E=a0().StringDecoder),this.decoder=new E(te.encoding),this.encoding=te.encoding)}function k(te){if(e=e||jo(),!(this instanceof k))return new k(te);var Y=this instanceof e;this._readableState=new B(te,this,Y),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),n.call(this)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Y){this._readableState&&(this._readableState.destroyed=Y)}}),k.prototype.destroy=g.destroy,k.prototype._undestroy=g.undestroy,k.prototype._destroy=function(te,Y){Y(te)},k.prototype.push=function(te,Y){var ne=this._readableState,xe;return ne.objectMode?xe=!0:typeof te=="string"&&(Y=Y||ne.defaultEncoding,Y!==ne.encoding&&(te=a.from(te,Y),Y=""),xe=!0),z(this,te,Y,!1,xe)},k.prototype.unshift=function(te){return z(this,te,null,!0,!1)};function z(te,Y,ne,xe,le){p("readableAddChunk",Y);var ue=te._readableState;if(Y===null)ue.reading=!1,M(te,ue);else{var Ve;if(le||(Ve=r(ue,Y)),Ve)F(te,Ve);else if(ue.objectMode||Y&&Y.length>0)if(typeof Y!="string"&&!ue.objectMode&&Object.getPrototypeOf(Y)!==a.prototype&&(Y=i(Y)),xe)ue.endEmitted?F(te,new L):y(te,ue,Y,!0);else if(ue.ended)F(te,new T);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!ne?(Y=ue.decoder.write(Y),ue.objectMode||Y.length!==0?y(te,ue,Y,!1):m(te,ue)):y(te,ue,Y,!1)}else xe||(ue.reading=!1,m(te,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function y(te,Y,ne,xe){Y.flowing&&Y.length===0&&!Y.sync?(Y.awaitDrain=0,te.emit("data",ne)):(Y.length+=Y.objectMode?1:ne.length,xe?Y.buffer.unshift(ne):Y.buffer.push(ne),Y.needReadable&&b(te)),m(te,Y)}function r(te,Y){var ne;return!u(Y)&&typeof Y!="string"&&Y!==void 0&&!te.objectMode&&(ne=new I("chunk",["string","Buffer","Uint8Array"],Y)),ne}k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(te){E||(E=a0().StringDecoder);var Y=new E(te);this._readableState.decoder=Y,this._readableState.encoding=this._readableState.decoder.encoding;for(var ne=this._readableState.buffer.head,xe="";ne!==null;)xe+=Y.write(ne.data),ne=ne.next;return this._readableState.buffer.clear(),xe!==""&&this._readableState.buffer.push(xe),this._readableState.length=xe.length,this};var s=1073741824;function l(te){return te>=s?te=s:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function d(te,Y){return te<=0||Y.length===0&&Y.ended?0:Y.objectMode?1:te!==te?Y.flowing&&Y.length?Y.buffer.head.data.length:Y.length:(te>Y.highWaterMark&&(Y.highWaterMark=l(te)),te<=Y.length?te:Y.ended?Y.length:(Y.needReadable=!0,0))}k.prototype.read=function(te){p("read",te),te=parseInt(te,10);var Y=this._readableState,ne=te;if(te!==0&&(Y.emittedReadable=!1),te===0&&Y.needReadable&&((Y.highWaterMark!==0?Y.length>=Y.highWaterMark:Y.length>0)||Y.ended))return p("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?H(this):b(this),null;if(te=d(te,Y),te===0&&Y.ended)return Y.length===0&&H(this),null;var xe=Y.needReadable;p("need readable",xe),(Y.length===0||Y.length-te<Y.highWaterMark)&&(xe=!0,p("length less than watermark",xe)),Y.ended||Y.reading?(xe=!1,p("reading or ended",xe)):xe&&(p("do read"),Y.reading=!0,Y.sync=!0,Y.length===0&&(Y.needReadable=!0),this._read(Y.highWaterMark),Y.sync=!1,Y.reading||(te=d(ne,Y)));var le;return te>0?le=P(te,Y):le=null,le===null?(Y.needReadable=Y.length<=Y.highWaterMark,te=0):(Y.length-=te,Y.awaitDrain=0),Y.length===0&&(Y.ended||(Y.needReadable=!0),ne!==te&&Y.ended&&H(this)),le!==null&&this.emit("data",le),le};function M(te,Y){if(p("onEofChunk"),!Y.ended){if(Y.decoder){var ne=Y.decoder.end();ne&&ne.length&&(Y.buffer.push(ne),Y.length+=Y.objectMode?1:ne.length)}Y.ended=!0,Y.sync?b(te):(Y.needReadable=!1,Y.emittedReadable||(Y.emittedReadable=!0,N(te)))}}function b(te){var Y=te._readableState;p("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(p("emitReadable",Y.flowing),Y.emittedReadable=!0,_.dist.process.nextTick(N,te))}function N(te){var Y=te._readableState;p("emitReadable_",Y.destroyed,Y.length,Y.ended),!Y.destroyed&&(Y.length||Y.ended)&&(te.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,V(te)}function m(te,Y){Y.readingMore||(Y.readingMore=!0,_.dist.process.nextTick(o,te,Y))}function o(te,Y){for(;!Y.reading&&!Y.ended&&(Y.length<Y.highWaterMark||Y.flowing&&Y.length===0);){var ne=Y.length;if(p("maybeReadMore read 0"),te.read(0),ne===Y.length)break}Y.readingMore=!1}k.prototype._read=function(te){F(this,new S("_read()"))},k.prototype.pipe=function(te,Y){var ne=this,xe=this._readableState;switch(xe.pipesCount){case 0:xe.pipes=te;break;case 1:xe.pipes=[xe.pipes,te];break;default:xe.pipes.push(te);break}xe.pipesCount+=1,p("pipe count=%d opts=%j",xe.pipesCount,Y);var le=(!Y||Y.end!==!1)&&te!==_.dist.process.stdout&&te!==_.dist.process.stderr,ue=le?he:mt;xe.endEmitted?_.dist.process.nextTick(ue):ne.once("end",ue),te.on("unpipe",Ve);function Ve(je,Ae){p("onunpipe"),je===ne&&Ae&&Ae.hasUnpiped===!1&&(Ae.hasUnpiped=!0,Me())}function he(){p("onend"),te.end()}var be=x(ne);te.on("drain",be);var st=!1;function Me(){p("cleanup"),te.removeListener("close",de),te.removeListener("finish",ye),te.removeListener("drain",be),te.removeListener("error",We),te.removeListener("unpipe",Ve),ne.removeListener("end",he),ne.removeListener("end",mt),ne.removeListener("data",oe),st=!0,xe.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&be()}ne.on("data",oe);function oe(je){p("ondata");var Ae=te.write(je);p("dest.write",Ae),Ae===!1&&((xe.pipesCount===1&&xe.pipes===te||xe.pipesCount>1&&X(xe.pipes,te)!==-1)&&!st&&(p("false write response, pause",xe.awaitDrain),xe.awaitDrain++),ne.pause())}function We(je){p("onerror",je),mt(),te.removeListener("error",We),t(te,"error")===0&&F(te,je)}Q(te,"error",We);function de(){te.removeListener("finish",ye),mt()}te.once("close",de);function ye(){p("onfinish"),te.removeListener("close",de),mt()}te.once("finish",ye);function mt(){p("unpipe"),ne.unpipe(te)}return te.emit("pipe",ne),xe.flowing||(p("pipe resume"),ne.resume()),te};function x(te){return function(){var ne=te._readableState;p("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&t(te,"data")&&(ne.flowing=!0,V(te))}}k.prototype.unpipe=function(te){var Y=this._readableState,ne={hasUnpiped:!1};if(Y.pipesCount===0)return this;if(Y.pipesCount===1)return te&&te!==Y.pipes?this:(te||(te=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,te&&te.emit("unpipe",this,ne),this);if(!te){var xe=Y.pipes,le=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var ue=0;ue<le;ue++)xe[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var Ve=X(Y.pipes,te);return Ve===-1?this:(Y.pipes.splice(Ve,1),Y.pipesCount-=1,Y.pipesCount===1&&(Y.pipes=Y.pipes[0]),te.emit("unpipe",this,ne),this)},k.prototype.on=function(te,Y){var ne=n.prototype.on.call(this,te,Y),xe=this._readableState;return te==="data"?(xe.readableListening=this.listenerCount("readable")>0,xe.flowing!==!1&&this.resume()):te==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,p("on readable",xe.length,xe.reading),xe.length?b(this):xe.reading||_.dist.process.nextTick(Z,this)),ne},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(te,Y){var ne=n.prototype.removeListener.call(this,te,Y);return te==="readable"&&_.dist.process.nextTick(W,this),ne},k.prototype.removeAllListeners=function(te){var Y=n.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&_.dist.process.nextTick(W,this),Y};function W(te){var Y=te._readableState;Y.readableListening=te.listenerCount("readable")>0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:te.listenerCount("data")>0&&te.resume()}function Z(te){p("readable nexttick read 0"),te.read(0)}k.prototype.resume=function(){var te=this._readableState;return te.flowing||(p("resume"),te.flowing=!te.readableListening,G(this,te)),te.paused=!1,this};function G(te,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,_.dist.process.nextTick(ee,te,Y))}function ee(te,Y){p("resume",Y.reading),Y.reading||te.read(0),Y.resumeScheduled=!1,te.emit("resume"),V(te),Y.flowing&&!Y.reading&&te.read(0)}k.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(te){var Y=te._readableState;for(p("flow",Y.flowing);Y.flowing&&te.read()!==null;);}k.prototype.wrap=function(te){var Y=this,ne=this._readableState,xe=!1;te.on("end",function(){if(p("wrapped end"),ne.decoder&&!ne.ended){var Ve=ne.decoder.end();Ve&&Ve.length&&Y.push(Ve)}Y.push(null)}),te.on("data",function(Ve){if(p("wrapped data"),ne.decoder&&(Ve=ne.decoder.write(Ve)),!(ne.objectMode&&Ve==null)&&!(!ne.objectMode&&(!Ve||!Ve.length))){var he=Y.push(Ve);he||(xe=!0,te.pause())}});for(var le in te)this[le]===void 0&&typeof te[le]=="function"&&(this[le]=function(he){return function(){return te[he].apply(te,arguments)}}(le));for(var ue=0;ue<R.length;ue++)te.on(R[ue],this.emit.bind(this,R[ue]));return this._read=function(Ve){p("wrapped _read",Ve),xe&&(xe=!1,te.resume())},this},typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return D===void 0&&(D=Rv()),D(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Y){this._readableState&&(this._readableState.flowing=Y)}}),k._fromList=P,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function P(te,Y){if(Y.length===0)return null;var ne;return Y.objectMode?ne=Y.buffer.shift():!te||te>=Y.length?(Y.decoder?ne=Y.buffer.join(""):Y.buffer.length===1?ne=Y.buffer.first():ne=Y.buffer.concat(Y.length),Y.buffer.clear()):ne=Y.buffer.consume(te,Y.decoder),ne}function H(te){var Y=te._readableState;p("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,_.dist.process.nextTick($,Y,te))}function $(te,Y){if(p("endReadableNT",te.endEmitted,te.length),!te.endEmitted&&te.length===0&&(te.endEmitted=!0,Y.readable=!1,Y.emit("end"),te.autoDestroy)){var ne=Y._writableState;(!ne||ne.autoDestroy&&ne.finished)&&Y.destroy()}}typeof Symbol=="function"&&(k.from=function(te,Y){return O===void 0&&(O=Pv()),O(k,te,Y)});function X(te,Y){for(var ne=0,xe=te.length;ne<xe;ne++)if(te[ne]===Y)return ne;return-1}return Uc}var Yc,Lh;function y6(){if(Lh)return Yc;Lh=1,Yc=f;var e=Fo().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,a=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=e.ERR_TRANSFORM_WITH_LENGTH_0,i=jo();zt(f,i);function u(g,C){var w=this._transformState;w.transforming=!1;var j=w.writecb;if(j===null)return this.emit("error",new n);w.writechunk=null,w.writecb=null,C!=null&&this.push(C),j(g);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function f(g){if(!(this instanceof f))return new f(g);i.call(this,g),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",p)}function p(){var g=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(C,w){h(g,C,w)}):h(this,null,null)}f.prototype.push=function(g,C){return this._transformState.needTransform=!1,i.prototype.push.call(this,g,C)},f.prototype._transform=function(g,C,w){w(new t("_transform()"))},f.prototype._write=function(g,C,w){var j=this._transformState;if(j.writecb=w,j.writechunk=g,j.writeencoding=C,!j.transforming){var I=this._readableState;(j.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},f.prototype._read=function(g){var C=this._transformState;C.writechunk!==null&&!C.transforming?(C.transforming=!0,this._transform(C.writechunk,C.writeencoding,C.afterTransform)):C.needTransform=!0},f.prototype._destroy=function(g,C){i.prototype._destroy.call(this,g,function(w){C(w)})};function h(g,C,w){if(C)return g.emit("error",C);if(w!=null&&g.push(w),g._writableState.length)throw new c;if(g._transformState.transforming)throw new a;return g.push(null)}return Yc}var Wc,Sh;function Uv(){if(Sh)return Wc;Sh=1,Wc=t;var e=y6();zt(t,e);function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return t.prototype._transform=function(n,a,c){c(null,n)},Wc}var Hc,Dh;function Yv(){if(Dh)return Hc;Dh=1;var e;function t(w){var j=!1;return function(){j||(j=!0,w.apply(void 0,arguments))}}var n=Fo().codes,a=n.ERR_MISSING_ARGS,c=n.ERR_STREAM_DESTROYED;function i(w){if(w)throw w}function u(w){return w.setHeader&&typeof w.abort=="function"}function f(w,j,I,T){T=t(T);var S=!1;w.on("close",function(){S=!0}),e===void 0&&(e=bd()),e(w,{readable:j,writable:I},function(E){if(E)return T(E);S=!0,T()});var L=!1;return function(E){if(!S&&!L){if(L=!0,u(w))return w.abort();if(typeof w.destroy=="function")return w.destroy();T(E||new c("pipe"))}}}function p(w){w()}function h(w,j){return w.pipe(j)}function g(w){return!w.length||typeof w[w.length-1]!="function"?i:w.pop()}function C(){for(var w=arguments.length,j=new Array(w),I=0;I<w;I++)j[I]=arguments[I];var T=g(j);if(Array.isArray(j[0])&&(j=j[0]),j.length<2)throw new a("streams");var S,L=j.map(function(E,D){var O=D<j.length-1,F=D>0;return f(E,O,F,function(R){S||(S=R),R&&L.forEach(p),!O&&(L.forEach(p),T(S))})});return j.reduce(h)}return Hc=C,Hc}var P0=Cn,Cd=oo.EventEmitter,Wv=zt;Wv(Cn,Cd);Cn.Readable=M6();Cn.Writable=m6();Cn.Duplex=jo();Cn.Transform=y6();Cn.PassThrough=Uv();Cn.finished=bd();Cn.pipeline=Yv();Cn.Stream=Cn;function Cn(){Cd.call(this)}Cn.prototype.pipe=function(e,t){var n=this;function a(g){e.writable&&e.write(g)===!1&&n.pause&&n.pause()}n.on("data",a);function c(){n.readable&&n.resume&&n.resume()}e.on("drain",c),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",u),n.on("close",f));var i=!1;function u(){i||(i=!0,e.end())}function f(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function p(g){if(h(),Cd.listenerCount(this,"error")===0)throw g}n.on("error",p),e.on("error",p);function h(){n.removeListener("data",a),e.removeListener("drain",c),n.removeListener("end",u),n.removeListener("close",f),n.removeListener("error",p),e.removeListener("error",p),n.removeListener("end",h),n.removeListener("close",h),e.removeListener("close",h)}return n.on("end",h),n.on("close",h),e.on("close",h),e.emit("pipe",n),e};const Hv=_.getDefaultExportFromCjs(P0);var Zc,Oh;function v6(){if(Oh)return Zc;Oh=1;var e=_.safeBufferExports.Buffer,t=P0.Transform,n=zt;function a(f){t.call(this),this._block=e.allocUnsafe(f),this._blockSize=f,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(a,t),a.prototype._transform=function(f,p,h){var g=null;try{this.update(f,p)}catch(C){g=C}h(g)},a.prototype._flush=function(f){var p=null;try{this.push(this.digest())}catch(h){p=h}f(p)};var c=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);function u(f,p){if(f instanceof e)return f;if(typeof f=="string")return e.from(f,p);if(i&&ArrayBuffer.isView(f)){if(f.byteLength===0)return e.alloc(0);var h=e.from(f.buffer,f.byteOffset,f.byteLength);if(h.byteLength===f.byteLength)return h}if(c&&f instanceof Uint8Array||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return a.prototype.update=function(f,p){if(this._finalized)throw new Error("Digest already called");f=u(f,p);for(var h=this._block,g=0;this._blockOffset+f.length-g>=this._blockSize;){for(var C=this._blockOffset;C<this._blockSize;)h[C++]=f[g++];this._update(),this._blockOffset=0}for(;g<f.length;)h[this._blockOffset++]=f[g++];for(var w=0,j=f.length*8;j>0;++w)this._length[w]+=j,j=this._length[w]/4294967296|0,j>0&&(this._length[w]-=4294967296*j);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(f){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var p=this._digest();f!==void 0&&(p=p.toString(f)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return p},a.prototype._digest=function(){throw new Error("_digest is not implemented")},Zc=a,Zc}var Qc,zh;function wd(){if(zh)return Qc;zh=1;var e=zt,t=v6(),n=_.safeBufferExports.Buffer,a=new Array(16);function c(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(c,t),c.prototype._update=function(){for(var g=a,C=0;C<16;++C)g[C]=this._block.readInt32LE(C*4);var w=this._a,j=this._b,I=this._c,T=this._d;w=u(w,j,I,T,g[0],3614090360,7),T=u(T,w,j,I,g[1],3905402710,12),I=u(I,T,w,j,g[2],606105819,17),j=u(j,I,T,w,g[3],3250441966,22),w=u(w,j,I,T,g[4],4118548399,7),T=u(T,w,j,I,g[5],1200080426,12),I=u(I,T,w,j,g[6],2821735955,17),j=u(j,I,T,w,g[7],4249261313,22),w=u(w,j,I,T,g[8],1770035416,7),T=u(T,w,j,I,g[9],2336552879,12),I=u(I,T,w,j,g[10],4294925233,17),j=u(j,I,T,w,g[11],2304563134,22),w=u(w,j,I,T,g[12],1804603682,7),T=u(T,w,j,I,g[13],4254626195,12),I=u(I,T,w,j,g[14],2792965006,17),j=u(j,I,T,w,g[15],1236535329,22),w=f(w,j,I,T,g[1],4129170786,5),T=f(T,w,j,I,g[6],3225465664,9),I=f(I,T,w,j,g[11],643717713,14),j=f(j,I,T,w,g[0],3921069994,20),w=f(w,j,I,T,g[5],3593408605,5),T=f(T,w,j,I,g[10],38016083,9),I=f(I,T,w,j,g[15],3634488961,14),j=f(j,I,T,w,g[4],3889429448,20),w=f(w,j,I,T,g[9],568446438,5),T=f(T,w,j,I,g[14],3275163606,9),I=f(I,T,w,j,g[3],4107603335,14),j=f(j,I,T,w,g[8],1163531501,20),w=f(w,j,I,T,g[13],2850285829,5),T=f(T,w,j,I,g[2],4243563512,9),I=f(I,T,w,j,g[7],1735328473,14),j=f(j,I,T,w,g[12],2368359562,20),w=p(w,j,I,T,g[5],4294588738,4),T=p(T,w,j,I,g[8],2272392833,11),I=p(I,T,w,j,g[11],1839030562,16),j=p(j,I,T,w,g[14],4259657740,23),w=p(w,j,I,T,g[1],2763975236,4),T=p(T,w,j,I,g[4],1272893353,11),I=p(I,T,w,j,g[7],4139469664,16),j=p(j,I,T,w,g[10],3200236656,23),w=p(w,j,I,T,g[13],681279174,4),T=p(T,w,j,I,g[0],3936430074,11),I=p(I,T,w,j,g[3],3572445317,16),j=p(j,I,T,w,g[6],76029189,23),w=p(w,j,I,T,g[9],3654602809,4),T=p(T,w,j,I,g[12],3873151461,11),I=p(I,T,w,j,g[15],530742520,16),j=p(j,I,T,w,g[2],3299628645,23),w=h(w,j,I,T,g[0],4096336452,6),T=h(T,w,j,I,g[7],1126891415,10),I=h(I,T,w,j,g[14],2878612391,15),j=h(j,I,T,w,g[5],4237533241,21),w=h(w,j,I,T,g[12],1700485571,6),T=h(T,w,j,I,g[3],2399980690,10),I=h(I,T,w,j,g[10],4293915773,15),j=h(j,I,T,w,g[1],2240044497,21),w=h(w,j,I,T,g[8],1873313359,6),T=h(T,w,j,I,g[15],4264355552,10),I=h(I,T,w,j,g[6],2734768916,15),j=h(j,I,T,w,g[13],1309151649,21),w=h(w,j,I,T,g[4],4149444226,6),T=h(T,w,j,I,g[11],3174756917,10),I=h(I,T,w,j,g[2],718787259,15),j=h(j,I,T,w,g[9],3951481745,21),this._a=this._a+w|0,this._b=this._b+j|0,this._c=this._c+I|0,this._d=this._d+T|0},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=n.allocUnsafe(16);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g};function i(g,C){return g<<C|g>>>32-C}function u(g,C,w,j,I,T,S){return i(g+(C&w|~C&j)+I+T|0,S)+C|0}function f(g,C,w,j,I,T,S){return i(g+(C&j|w&~j)+I+T|0,S)+C|0}function p(g,C,w,j,I,T,S){return i(g+(C^w^j)+I+T|0,S)+C|0}function h(g,C,w,j,I,T,S){return i(g+(w^(C|~j))+I+T|0,S)+C|0}return Qc=c,Qc}var Vc,kh;function Nd(){if(kh)return Vc;kh=1;var e=_.bufferPolyfill.Buffer,t=zt,n=v6(),a=new Array(16),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function g(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}t(g,n),g.prototype._update=function(){for(var L=a,E=0;E<16;++E)L[E]=this._block.readInt32LE(E*4);for(var D=this._a|0,O=this._b|0,F=this._c|0,R=this._d|0,Q=this._e|0,B=this._a|0,k=this._b|0,z=this._c|0,y=this._d|0,r=this._e|0,s=0;s<80;s+=1){var l,d;s<16?(l=w(D,O,F,R,Q,L[c[s]],p[0],u[s]),d=S(B,k,z,y,r,L[i[s]],h[0],f[s])):s<32?(l=j(D,O,F,R,Q,L[c[s]],p[1],u[s]),d=T(B,k,z,y,r,L[i[s]],h[1],f[s])):s<48?(l=I(D,O,F,R,Q,L[c[s]],p[2],u[s]),d=I(B,k,z,y,r,L[i[s]],h[2],f[s])):s<64?(l=T(D,O,F,R,Q,L[c[s]],p[3],u[s]),d=j(B,k,z,y,r,L[i[s]],h[3],f[s])):(l=S(D,O,F,R,Q,L[c[s]],p[4],u[s]),d=w(B,k,z,y,r,L[i[s]],h[4],f[s])),D=Q,Q=R,R=C(F,10),F=O,O=l,B=r,r=y,y=C(z,10),z=k,k=d}var M=this._b+F+y|0;this._b=this._c+R+r|0,this._c=this._d+Q+B|0,this._d=this._e+D+k|0,this._e=this._a+O+z|0,this._a=M},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var L=e.alloc?e.alloc(20):new e(20);return L.writeInt32LE(this._a,0),L.writeInt32LE(this._b,4),L.writeInt32LE(this._c,8),L.writeInt32LE(this._d,12),L.writeInt32LE(this._e,16),L};function C(L,E){return L<<E|L>>>32-E}function w(L,E,D,O,F,R,Q,B){return C(L+(E^D^O)+R+Q|0,B)+F|0}function j(L,E,D,O,F,R,Q,B){return C(L+(E&D|~E&O)+R+Q|0,B)+F|0}function I(L,E,D,O,F,R,Q,B){return C(L+((E|~D)^O)+R+Q|0,B)+F|0}function T(L,E,D,O,F,R,Q,B){return C(L+(E&O|D&~O)+R+Q|0,B)+F|0}function S(L,E,D,O,F,R,Q,B){return C(L+(E^(D|~O))+R+Q|0,B)+F|0}return Vc=g,Vc}var Gc={exports:{}},$c,_h;function Ro(){if(_h)return $c;_h=1;var e=_.safeBufferExports.Buffer;function t(n,a){this._block=e.alloc(n),this._finalSize=a,this._blockSize=n,this._len=0}return t.prototype.update=function(n,a){typeof n=="string"&&(a=a||"utf8",n=e.from(n,a));for(var c=this._block,i=this._blockSize,u=n.length,f=this._len,p=0;p<u;){for(var h=f%i,g=Math.min(u-p,i-h),C=0;C<g;C++)c[h+C]=n[p+C];f+=g,p+=g,f%i===0&&this._update(c)}return this._len+=u,this},t.prototype.digest=function(n){var a=this._len%this._blockSize;this._block[a]=128,this._block.fill(0,a+1),a>=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=this._len*8;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var i=(c&4294967295)>>>0,u=(c-i)/4294967296;this._block.writeUInt32BE(u,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var f=this._hash();return n?f.toString(n):f},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},$c=t,$c}var qc,Bh;function Zv(){if(Bh)return qc;Bh=1;var e=zt,t=Ro(),n=_.safeBufferExports.Buffer,a=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function i(){this.init(),this._w=c,t.call(this,64,56)}e(i,t),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(h){return h<<5|h>>>27}function f(h){return h<<30|h>>>2}function p(h,g,C,w){return h===0?g&C|~g&w:h===2?g&C|g&w|C&w:g^C^w}return i.prototype._update=function(h){for(var g=this._w,C=this._a|0,w=this._b|0,j=this._c|0,I=this._d|0,T=this._e|0,S=0;S<16;++S)g[S]=h.readInt32BE(S*4);for(;S<80;++S)g[S]=g[S-3]^g[S-8]^g[S-14]^g[S-16];for(var L=0;L<80;++L){var E=~~(L/20),D=u(C)+p(E,w,j,I)+T+g[L]+a[E]|0;T=I,I=j,j=f(w),w=C,C=D}this._a=C+this._a|0,this._b=w+this._b|0,this._c=j+this._c|0,this._d=I+this._d|0,this._e=T+this._e|0},i.prototype._hash=function(){var h=n.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},qc=i,qc}var Jc,Fh;function Qv(){if(Fh)return Jc;Fh=1;var e=zt,t=Ro(),n=_.safeBufferExports.Buffer,a=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function i(){this.init(),this._w=c,t.call(this,64,56)}e(i,t),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(g){return g<<1|g>>>31}function f(g){return g<<5|g>>>27}function p(g){return g<<30|g>>>2}function h(g,C,w,j){return g===0?C&w|~C&j:g===2?C&w|C&j|w&j:C^w^j}return i.prototype._update=function(g){for(var C=this._w,w=this._a|0,j=this._b|0,I=this._c|0,T=this._d|0,S=this._e|0,L=0;L<16;++L)C[L]=g.readInt32BE(L*4);for(;L<80;++L)C[L]=u(C[L-3]^C[L-8]^C[L-14]^C[L-16]);for(var E=0;E<80;++E){var D=~~(E/20),O=f(w)+h(D,j,I,T)+S+C[E]+a[D]|0;S=T,T=I,I=p(j),j=w,w=O}this._a=w+this._a|0,this._b=j+this._b|0,this._c=I+this._c|0,this._d=T+this._d|0,this._e=S+this._e|0},i.prototype._hash=function(){var g=n.allocUnsafe(20);return g.writeInt32BE(this._a|0,0),g.writeInt32BE(this._b|0,4),g.writeInt32BE(this._c|0,8),g.writeInt32BE(this._d|0,12),g.writeInt32BE(this._e|0,16),g},Jc=i,Jc}var Xc,Rh;function x6(){if(Rh)return Xc;Rh=1;var e=zt,t=Ro(),n=_.safeBufferExports.Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function i(){this.init(),this._w=c,t.call(this,64,56)}e(i,t),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function u(w,j,I){return I^w&(j^I)}function f(w,j,I){return w&j|I&(w|j)}function p(w){return(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10)}function h(w){return(w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7)}function g(w){return(w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3}function C(w){return(w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10}return i.prototype._update=function(w){for(var j=this._w,I=this._a|0,T=this._b|0,S=this._c|0,L=this._d|0,E=this._e|0,D=this._f|0,O=this._g|0,F=this._h|0,R=0;R<16;++R)j[R]=w.readInt32BE(R*4);for(;R<64;++R)j[R]=C(j[R-2])+j[R-7]+g(j[R-15])+j[R-16]|0;for(var Q=0;Q<64;++Q){var B=F+h(E)+u(E,D,O)+a[Q]+j[Q]|0,k=p(I)+f(I,T,S)|0;F=O,O=D,D=E,E=L+B|0,L=S,S=T,T=I,I=B+k|0}this._a=I+this._a|0,this._b=T+this._b|0,this._c=S+this._c|0,this._d=L+this._d|0,this._e=E+this._e|0,this._f=D+this._f|0,this._g=O+this._g|0,this._h=F+this._h|0},i.prototype._hash=function(){var w=n.allocUnsafe(32);return w.writeInt32BE(this._a,0),w.writeInt32BE(this._b,4),w.writeInt32BE(this._c,8),w.writeInt32BE(this._d,12),w.writeInt32BE(this._e,16),w.writeInt32BE(this._f,20),w.writeInt32BE(this._g,24),w.writeInt32BE(this._h,28),w},Xc=i,Xc}var Kc,Ph;function Vv(){if(Ph)return Kc;Ph=1;var e=zt,t=x6(),n=Ro(),a=_.safeBufferExports.Buffer,c=new Array(64);function i(){this.init(),this._w=c,n.call(this,64,56)}return e(i,t),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var u=a.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},Kc=i,Kc}var el,Uh;function b6(){if(Uh)return el;Uh=1;var e=zt,t=Ro(),n=_.safeBufferExports.Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function i(){this.init(),this._w=c,t.call(this,128,112)}e(i,t),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function u(T,S,L){return L^T&(S^L)}function f(T,S,L){return T&S|L&(T|S)}function p(T,S){return(T>>>28|S<<4)^(S>>>2|T<<30)^(S>>>7|T<<25)}function h(T,S){return(T>>>14|S<<18)^(T>>>18|S<<14)^(S>>>9|T<<23)}function g(T,S){return(T>>>1|S<<31)^(T>>>8|S<<24)^T>>>7}function C(T,S){return(T>>>1|S<<31)^(T>>>8|S<<24)^(T>>>7|S<<25)}function w(T,S){return(T>>>19|S<<13)^(S>>>29|T<<3)^T>>>6}function j(T,S){return(T>>>19|S<<13)^(S>>>29|T<<3)^(T>>>6|S<<26)}function I(T,S){return T>>>0<S>>>0?1:0}return i.prototype._update=function(T){for(var S=this._w,L=this._ah|0,E=this._bh|0,D=this._ch|0,O=this._dh|0,F=this._eh|0,R=this._fh|0,Q=this._gh|0,B=this._hh|0,k=this._al|0,z=this._bl|0,y=this._cl|0,r=this._dl|0,s=this._el|0,l=this._fl|0,d=this._gl|0,M=this._hl|0,b=0;b<32;b+=2)S[b]=T.readInt32BE(b*4),S[b+1]=T.readInt32BE(b*4+4);for(;b<160;b+=2){var N=S[b-30],m=S[b-15*2+1],o=g(N,m),x=C(m,N);N=S[b-2*2],m=S[b-2*2+1];var W=w(N,m),Z=j(m,N),G=S[b-7*2],ee=S[b-7*2+1],V=S[b-16*2],P=S[b-16*2+1],H=x+ee|0,$=o+G+I(H,x)|0;H=H+Z|0,$=$+W+I(H,Z)|0,H=H+P|0,$=$+V+I(H,P)|0,S[b]=$,S[b+1]=H}for(var X=0;X<160;X+=2){$=S[X],H=S[X+1];var te=f(L,E,D),Y=f(k,z,y),ne=p(L,k),xe=p(k,L),le=h(F,s),ue=h(s,F),Ve=a[X],he=a[X+1],be=u(F,R,Q),st=u(s,l,d),Me=M+ue|0,oe=B+le+I(Me,M)|0;Me=Me+st|0,oe=oe+be+I(Me,st)|0,Me=Me+he|0,oe=oe+Ve+I(Me,he)|0,Me=Me+H|0,oe=oe+$+I(Me,H)|0;var We=xe+Y|0,de=ne+te+I(We,xe)|0;B=Q,M=d,Q=R,d=l,R=F,l=s,s=r+Me|0,F=O+oe+I(s,r)|0,O=D,r=y,D=E,y=z,E=L,z=k,k=Me+We|0,L=oe+de+I(k,Me)|0}this._al=this._al+k|0,this._bl=this._bl+z|0,this._cl=this._cl+y|0,this._dl=this._dl+r|0,this._el=this._el+s|0,this._fl=this._fl+l|0,this._gl=this._gl+d|0,this._hl=this._hl+M|0,this._ah=this._ah+L+I(this._al,k)|0,this._bh=this._bh+E+I(this._bl,z)|0,this._ch=this._ch+D+I(this._cl,y)|0,this._dh=this._dh+O+I(this._dl,r)|0,this._eh=this._eh+F+I(this._el,s)|0,this._fh=this._fh+R+I(this._fl,l)|0,this._gh=this._gh+Q+I(this._gl,d)|0,this._hh=this._hh+B+I(this._hl,M)|0},i.prototype._hash=function(){var T=n.allocUnsafe(64);function S(L,E,D){T.writeInt32BE(L,D),T.writeInt32BE(E,D+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),T},el=i,el}var tl,Yh;function Gv(){if(Yh)return tl;Yh=1;var e=zt,t=b6(),n=Ro(),a=_.safeBufferExports.Buffer,c=new Array(160);function i(){this.init(),this._w=c,n.call(this,128,112)}return e(i,t),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var u=a.allocUnsafe(48);function f(p,h,g){u.writeInt32BE(p,g),u.writeInt32BE(h,g+4)}return f(this._ah,this._al,0),f(this._bh,this._bl,8),f(this._ch,this._cl,16),f(this._dh,this._dl,24),f(this._eh,this._el,32),f(this._fh,this._fl,40),u},tl=i,tl}var Wh;function jd(){if(Wh)return Gc.exports;Wh=1;var e=Gc.exports=function(n){n=n.toLowerCase();var a=e[n];if(!a)throw new Error(n+" is not supported (we accept pull requests)");return new a};return e.sha=Zv(),e.sha1=Qv(),e.sha224=Vv(),e.sha256=x6(),e.sha384=Gv(),e.sha512=b6(),Gc.exports}var rl,Hh;function wi(){if(Hh)return rl;Hh=1;var e=_.safeBufferExports.Buffer,t=P0.Transform,n=a0().StringDecoder,a=zt;function c(p){t.call(this),this.hashMode=typeof p=="string",this.hashMode?this[p]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(c,t);var i=typeof Uint8Array<"u",u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);function f(p,h){if(p instanceof e)return p;if(typeof p=="string")return e.from(p,h);if(u&&ArrayBuffer.isView(p)){if(p.byteLength===0)return e.alloc(0);var g=e.from(p.buffer,p.byteOffset,p.byteLength);if(g.byteLength===p.byteLength)return g}if(i&&p instanceof Uint8Array||e.isBuffer(p)&&p.constructor&&typeof p.constructor.isBuffer=="function"&&p.constructor.isBuffer(p))return e.from(p);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return c.prototype.update=function(p,h,g){var C=f(p,h),w=this._update(C);return this.hashMode?this:(g&&(w=this._toString(w,g)),w)},c.prototype.setAutoPadding=function(){},c.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},c.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},c.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},c.prototype._transform=function(p,h,g){var C;try{this.hashMode?this._update(p):this.push(this._update(p))}catch(w){C=w}finally{g(C)}},c.prototype._flush=function(p){var h;try{this.push(this.__final())}catch(g){h=g}p(h)},c.prototype._finalOrDigest=function(p){var h=this.__final()||e.alloc(0);return p&&(h=this._toString(h,p,!0)),h},c.prototype._toString=function(p,h,g){if(this._decoder||(this._decoder=new n(h),this._encoding=h),this._encoding!==h)throw new Error("can’t switch encodings");var C=this._decoder.write(p);return g&&(C+=this._decoder.end()),C},rl=c,rl}var nl,Zh;function Ha(){if(Zh)return nl;Zh=1;var e=zt,t=wd(),n=Nd(),a=jd(),c=wi();function i(u){c.call(this,"digest"),this._hash=u}return e(i,c),i.prototype._update=function(u){this._hash.update(u)},i.prototype._final=function(){return this._hash.digest()},nl=function(f){return f=f.toLowerCase(),f==="md5"?new t:f==="rmd160"||f==="ripemd160"?new n:new i(a(f))},nl}var il,Qh;function $v(){if(Qh)return il;Qh=1;var e=zt,t=_.safeBufferExports.Buffer,n=wi(),a=t.alloc(128),c=64;function i(u,f){n.call(this,"digest"),typeof f=="string"&&(f=t.from(f)),this._alg=u,this._key=f,f.length>c?f=u(f):f.length<c&&(f=t.concat([f,a],c));for(var p=this._ipad=t.allocUnsafe(c),h=this._opad=t.allocUnsafe(c),g=0;g<c;g++)p[g]=f[g]^54,h[g]=f[g]^92;this._hash=[p]}return e(i,n),i.prototype._update=function(u){this._hash.push(u)},i.prototype._final=function(){var u=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,u]))},il=i,il}var ol,Vh;function C6(){if(Vh)return ol;Vh=1;var e=wd();return ol=function(t){return new e().update(t).digest()},ol}var al,Gh;function w6(){if(Gh)return al;Gh=1;var e=zt,t=$v(),n=wi(),a=_.safeBufferExports.Buffer,c=C6(),i=Nd(),u=jd(),f=a.alloc(128);function p(h,g){n.call(this,"digest"),typeof g=="string"&&(g=a.from(g));var C=h==="sha512"||h==="sha384"?128:64;if(this._alg=h,this._key=g,g.length>C){var w=h==="rmd160"?new i:u(h);g=w.update(g).digest()}else g.length<C&&(g=a.concat([g,f],C));for(var j=this._ipad=a.allocUnsafe(C),I=this._opad=a.allocUnsafe(C),T=0;T<C;T++)j[T]=g[T]^54,I[T]=g[T]^92;this._hash=h==="rmd160"?new i:u(h),this._hash.update(j)}return e(p,n),p.prototype._update=function(h){this._hash.update(h)},p.prototype._final=function(){var h=this._hash.digest(),g=this._alg==="rmd160"?new i:u(this._alg);return g.update(this._opad).update(h).digest()},al=function(g,C){return g=g.toLowerCase(),g==="rmd160"||g==="ripemd160"?new p("rmd160",C):g==="md5"?new t(c,C):new p(g,C)},al}const qv={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},Jv={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},Xv={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},Kv={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},ex={sign:"ecdsa",hash:"sha256",id:""},tx={sign:"ecdsa",hash:"sha224",id:""},rx={sign:"ecdsa",hash:"sha384",id:""},nx={sign:"ecdsa",hash:"sha512",id:""},ix={sign:"dsa",hash:"sha1",id:""},ox={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},ax={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},N6={sha224WithRSAEncryption:qv,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:Jv,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:Xv,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:Kv,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:ex,sha224:tx,sha384:rx,sha512:nx,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:ix,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:ox,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:ax,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var sl,$h;function sx(){return $h||($h=1,sl=N6),sl}var cs={},cl,qh;function j6(){if(qh)return cl;qh=1;var e=Math.pow(2,30)-1;return cl=function(t,n){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>e||n!==n)throw new TypeError("Bad key length")},cl}var ll,Jh;function T6(){if(Jh)return ll;Jh=1;var e;if(_.commonjsGlobal.process&&_.commonjsGlobal.process.browser)e="utf-8";else if(_.commonjsGlobal.process&&_.commonjsGlobal.process.version){var t=parseInt(_.dist.process.version.split(".")[0].slice(1),10);e=t>=6?"utf-8":"binary"}else e="utf-8";return ll=e,ll}var fl,Xh;function A6(){if(Xh)return fl;Xh=1;var e=_.safeBufferExports.Buffer;return fl=function(t,n,a){if(e.isBuffer(t))return t;if(typeof t=="string")return e.from(t,n);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(a+" must be a string, a Buffer, a typed array or a DataView")},fl}var ul,Kh;function I6(){if(Kh)return ul;Kh=1;var e=C6(),t=Nd(),n=jd(),a=_.safeBufferExports.Buffer,c=j6(),i=T6(),u=A6(),f=a.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(w,j,I){var T=g(w),S=w==="sha512"||w==="sha384"?128:64;j.length>S?j=T(j):j.length<S&&(j=a.concat([j,f],S));for(var L=a.allocUnsafe(S+p[w]),E=a.allocUnsafe(S+p[w]),D=0;D<S;D++)L[D]=j[D]^54,E[D]=j[D]^92;var O=a.allocUnsafe(S+I+4);L.copy(O,0,0,S),this.ipad1=O,this.ipad2=L,this.opad=E,this.alg=w,this.blocksize=S,this.hash=T,this.size=p[w]}h.prototype.run=function(w,j){w.copy(j,this.blocksize);var I=this.hash(j);return I.copy(this.opad,this.blocksize),this.hash(this.opad)};function g(w){function j(T){return n(w).update(T).digest()}function I(T){return new t().update(T).digest()}return w==="rmd160"||w==="ripemd160"?I:w==="md5"?e:j}function C(w,j,I,T,S){c(I,T),w=u(w,i,"Password"),j=u(j,i,"Salt"),S=S||"sha1";var L=new h(S,w,j.length),E=a.allocUnsafe(T),D=a.allocUnsafe(j.length+4);j.copy(D,0,0,j.length);for(var O=0,F=p[S],R=Math.ceil(T/F),Q=1;Q<=R;Q++){D.writeUInt32BE(Q,j.length);for(var B=L.run(D,L.ipad1),k=B,z=1;z<I;z++){k=L.run(k,L.ipad2);for(var y=0;y<F;y++)B[y]^=k[y]}B.copy(E,O),O+=F}return E}return ul=C,ul}var dl,e2;function cx(){if(e2)return dl;e2=1;var e=_.safeBufferExports.Buffer,t=j6(),n=T6(),a=I6(),c=A6(),i,u=_.commonjsGlobal.crypto&&_.commonjsGlobal.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[];function h(I){if(_.commonjsGlobal.process&&!_.commonjsGlobal.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(p[I]!==void 0)return p[I];i=i||e.alloc(8);var T=w(i,i,10,128,I).then(function(){return!0}).catch(function(){return!1});return p[I]=T,T}var g;function C(){return g||(_.commonjsGlobal.process&&_.commonjsGlobal.process.nextTick?g=_.commonjsGlobal.process.nextTick:_.commonjsGlobal.queueMicrotask?g=_.commonjsGlobal.queueMicrotask:_.commonjsGlobal.setImmediate?g=_.commonjsGlobal.setImmediate:g=_.commonjsGlobal.setTimeout,g)}function w(I,T,S,L,E){return u.importKey("raw",I,{name:"PBKDF2"},!1,["deriveBits"]).then(function(D){return u.deriveBits({name:"PBKDF2",salt:T,iterations:S,hash:{name:E}},D,L<<3)}).then(function(D){return e.from(D)})}function j(I,T){I.then(function(S){C()(function(){T(null,S)})},function(S){C()(function(){T(S)})})}return dl=function(I,T,S,L,E,D){typeof E=="function"&&(D=E,E=void 0),E=E||"sha1";var O=f[E.toLowerCase()];if(!O||typeof _.commonjsGlobal.Promise!="function"){C()(function(){var F;try{F=a(I,T,S,L,E)}catch(R){return D(R)}D(null,F)});return}if(t(S,L),I=c(I,n,"Password"),T=c(T,n,"Salt"),typeof D!="function")throw new Error("No callback provided to pbkdf2");j(h(O).then(function(F){return F?w(I,T,S,L,O):a(I,T,S,L,E)}),D)},dl}var t2;function E6(){return t2||(t2=1,cs.pbkdf2=cx(),cs.pbkdf2Sync=I6()),cs}var cn={},Ei={},en={},r2;function L6(){if(r2)return en;r2=1,en.readUInt32BE=function(c,i){var u=c[0+i]<<24|c[1+i]<<16|c[2+i]<<8|c[3+i];return u>>>0},en.writeUInt32BE=function(c,i,u){c[0+u]=i>>>24,c[1+u]=i>>>16&255,c[2+u]=i>>>8&255,c[3+u]=i&255},en.ip=function(c,i,u,f){for(var p=0,h=0,g=6;g>=0;g-=2){for(var C=0;C<=24;C+=8)p<<=1,p|=i>>>C+g&1;for(var C=0;C<=24;C+=8)p<<=1,p|=c>>>C+g&1}for(var g=6;g>=0;g-=2){for(var C=1;C<=25;C+=8)h<<=1,h|=i>>>C+g&1;for(var C=1;C<=25;C+=8)h<<=1,h|=c>>>C+g&1}u[f+0]=p>>>0,u[f+1]=h>>>0},en.rip=function(c,i,u,f){for(var p=0,h=0,g=0;g<4;g++)for(var C=24;C>=0;C-=8)p<<=1,p|=i>>>C+g&1,p<<=1,p|=c>>>C+g&1;for(var g=4;g<8;g++)for(var C=24;C>=0;C-=8)h<<=1,h|=i>>>C+g&1,h<<=1,h|=c>>>C+g&1;u[f+0]=p>>>0,u[f+1]=h>>>0},en.pc1=function(c,i,u,f){for(var p=0,h=0,g=7;g>=5;g--){for(var C=0;C<=24;C+=8)p<<=1,p|=i>>C+g&1;for(var C=0;C<=24;C+=8)p<<=1,p|=c>>C+g&1}for(var C=0;C<=24;C+=8)p<<=1,p|=i>>C+g&1;for(var g=1;g<=3;g++){for(var C=0;C<=24;C+=8)h<<=1,h|=i>>C+g&1;for(var C=0;C<=24;C+=8)h<<=1,h|=c>>C+g&1}for(var C=0;C<=24;C+=8)h<<=1,h|=c>>C+g&1;u[f+0]=p>>>0,u[f+1]=h>>>0},en.r28shl=function(c,i){return c<<i&268435455|c>>>28-i};var e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];en.pc2=function(c,i,u,f){for(var p=0,h=0,g=e.length>>>1,C=0;C<g;C++)p<<=1,p|=c>>>e[C]&1;for(var C=g;C<e.length;C++)h<<=1,h|=i>>>e[C]&1;u[f+0]=p>>>0,u[f+1]=h>>>0},en.expand=function(c,i,u){var f=0,p=0;f=(c&1)<<5|c>>>27;for(var h=23;h>=15;h-=4)f<<=6,f|=c>>>h&63;for(var h=11;h>=3;h-=4)p|=c>>>h&63,p<<=6;p|=(c&31)<<1|c>>>31,i[u+0]=f>>>0,i[u+1]=p>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];en.substitute=function(c,i){for(var u=0,f=0;f<4;f++){var p=c>>>18-f*6&63,h=t[f*64+p];u<<=4,u|=h}for(var f=0;f<4;f++){var p=i>>>18-f*6&63,h=t[4*64+f*64+p];u<<=4,u|=h}return u>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return en.permute=function(c){for(var i=0,u=0;u<n.length;u++)i<<=1,i|=c>>>n[u]&1;return i>>>0},en.padSplit=function(c,i,u){for(var f=c.toString(2);f.length<i;)f="0"+f;for(var p=[],h=0;h<i;h+=u)p.push(f.slice(h,h+u));return p.join(" ")},en}var hl,n2;function Tn(){if(n2)return hl;n2=1,hl=e;function e(t,n){if(!t)throw new Error(n||"Assertion failed")}return e.equal=function(n,a,c){if(n!=a)throw new Error(c||"Assertion failed: "+n+" != "+a)},hl}var pl,i2;function Td(){if(i2)return pl;i2=1;var e=Tn();function t(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=n.padding!==!1}return pl=t,t.prototype._init=function(){},t.prototype.update=function(a){return a.length===0?[]:this.type==="decrypt"?this._updateDecrypt(a):this._updateEncrypt(a)},t.prototype._buffer=function(a,c){for(var i=Math.min(this.buffer.length-this.bufferOff,a.length-c),u=0;u<i;u++)this.buffer[this.bufferOff+u]=a[c+u];return this.bufferOff+=i,i},t.prototype._flushBuffer=function(a,c){return this._update(this.buffer,0,a,c),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(a){var c=0,i=0,u=(this.bufferOff+a.length)/this.blockSize|0,f=new Array(u*this.blockSize);this.bufferOff!==0&&(c+=this._buffer(a,c),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(f,i)));for(var p=a.length-(a.length-c)%this.blockSize;c<p;c+=this.blockSize)this._update(a,c,f,i),i+=this.blockSize;for(;c<a.length;c++,this.bufferOff++)this.buffer[this.bufferOff]=a[c];return f},t.prototype._updateDecrypt=function(a){for(var c=0,i=0,u=Math.ceil((this.bufferOff+a.length)/this.blockSize)-1,f=new Array(u*this.blockSize);u>0;u--)c+=this._buffer(a,c),i+=this._flushBuffer(f,i);return c+=this._buffer(a,c),f},t.prototype.final=function(a){var c;a&&(c=this.update(a));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),c?c.concat(i):i},t.prototype._pad=function(a,c){if(c===0)return!1;for(;c<a.length;)a[c++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var a=new Array(this.blockSize);return this._update(this.buffer,0,a,0),a},t.prototype._unpad=function(a){return a},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var a=new Array(this.blockSize);return this._flushBuffer(a,0),this._unpad(a)},pl}var gl,o2;function S6(){if(o2)return gl;o2=1;var e=Tn(),t=zt,n=L6(),a=Td();function c(){this.tmp=new Array(2),this.keys=null}function i(f){a.call(this,f);var p=new c;this._desState=p,this.deriveKeys(p,f.key)}t(i,a),gl=i,i.create=function(p){return new i(p)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return i.prototype.deriveKeys=function(p,h){p.keys=new Array(16*2),e.equal(h.length,this.blockSize,"Invalid key length");var g=n.readUInt32BE(h,0),C=n.readUInt32BE(h,4);n.pc1(g,C,p.tmp,0),g=p.tmp[0],C=p.tmp[1];for(var w=0;w<p.keys.length;w+=2){var j=u[w>>>1];g=n.r28shl(g,j),C=n.r28shl(C,j),n.pc2(g,C,p.keys,w)}},i.prototype._update=function(p,h,g,C){var w=this._desState,j=n.readUInt32BE(p,h),I=n.readUInt32BE(p,h+4);n.ip(j,I,w.tmp,0),j=w.tmp[0],I=w.tmp[1],this.type==="encrypt"?this._encrypt(w,j,I,w.tmp,0):this._decrypt(w,j,I,w.tmp,0),j=w.tmp[0],I=w.tmp[1],n.writeUInt32BE(g,j,C),n.writeUInt32BE(g,I,C+4)},i.prototype._pad=function(p,h){if(this.padding===!1)return!1;for(var g=p.length-h,C=h;C<p.length;C++)p[C]=g;return!0},i.prototype._unpad=function(p){if(this.padding===!1)return p;for(var h=p[p.length-1],g=p.length-h;g<p.length;g++)e.equal(p[g],h);return p.slice(0,p.length-h)},i.prototype._encrypt=function(p,h,g,C,w){for(var j=h,I=g,T=0;T<p.keys.length;T+=2){var S=p.keys[T],L=p.keys[T+1];n.expand(I,p.tmp,0),S^=p.tmp[0],L^=p.tmp[1];var E=n.substitute(S,L),D=n.permute(E),O=I;I=(j^D)>>>0,j=O}n.rip(I,j,C,w)},i.prototype._decrypt=function(p,h,g,C,w){for(var j=g,I=h,T=p.keys.length-2;T>=0;T-=2){var S=p.keys[T],L=p.keys[T+1];n.expand(j,p.tmp,0),S^=p.tmp[0],L^=p.tmp[1];var E=n.substitute(S,L),D=n.permute(E),O=j;j=(I^D)>>>0,I=O}n.rip(j,I,C,w)},gl}var ml={},a2;function lx(){if(a2)return ml;a2=1;var e=Tn(),t=zt,n={};function a(i){e.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var u=0;u<this.iv.length;u++)this.iv[u]=i[u]}function c(i){function u(g){i.call(this,g),this._cbcInit()}t(u,i);for(var f=Object.keys(n),p=0;p<f.length;p++){var h=f[p];u.prototype[h]=n[h]}return u.create=function(C){return new u(C)},u}return ml.instantiate=c,n._cbcInit=function(){var u=new a(this.options.iv);this._cbcState=u},n._update=function(u,f,p,h){var g=this._cbcState,C=this.constructor.super_.prototype,w=g.iv;if(this.type==="encrypt"){for(var j=0;j<this.blockSize;j++)w[j]^=u[f+j];C._update.call(this,w,0,p,h);for(var j=0;j<this.blockSize;j++)w[j]=p[h+j]}else{C._update.call(this,u,f,p,h);for(var j=0;j<this.blockSize;j++)p[h+j]^=w[j];for(var j=0;j<this.blockSize;j++)w[j]=u[f+j]}},ml}var Ml,s2;function fx(){if(s2)return Ml;s2=1;var e=Tn(),t=zt,n=Td(),a=S6();function c(u,f){e.equal(f.length,24,"Invalid key length");var p=f.slice(0,8),h=f.slice(8,16),g=f.slice(16,24);u==="encrypt"?this.ciphers=[a.create({type:"encrypt",key:p}),a.create({type:"decrypt",key:h}),a.create({type:"encrypt",key:g})]:this.ciphers=[a.create({type:"decrypt",key:g}),a.create({type:"encrypt",key:h}),a.create({type:"decrypt",key:p})]}function i(u){n.call(this,u);var f=new c(this.type,this.options.key);this._edeState=f}return t(i,n),Ml=i,i.create=function(f){return new i(f)},i.prototype._update=function(f,p,h,g){var C=this._edeState;C.ciphers[0]._update(f,p,h,g),C.ciphers[1]._update(h,g,h,g),C.ciphers[2]._update(h,g,h,g)},i.prototype._pad=a.prototype._pad,i.prototype._unpad=a.prototype._unpad,Ml}var c2;function ux(){return c2||(c2=1,Ei.utils=L6(),Ei.Cipher=Td(),Ei.DES=S6(),Ei.CBC=lx(),Ei.EDE=fx()),Ei}var yl,l2;function dx(){if(l2)return yl;l2=1;var e=wi(),t=ux(),n=zt,a=_.safeBufferExports.Buffer,c={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],yl=i,n(i,e);function i(u){e.call(this);var f=u.mode.toLowerCase(),p=c[f],h;u.decrypt?h="decrypt":h="encrypt";var g=u.key;a.isBuffer(g)||(g=a.from(g)),(f==="des-ede"||f==="des-ede-cbc")&&(g=a.concat([g,g.slice(0,8)]));var C=u.iv;a.isBuffer(C)||(C=a.from(C)),this._des=p.create({key:g,iv:C,type:h})}return i.prototype._update=function(u){return a.from(this._des.update(u))},i.prototype._final=function(){return a.from(this._des.final())},yl}var ln={},ls={},fs={},f2;function hx(){return f2||(f2=1,fs.encrypt=function(e,t){return e._cipher.encryptBlock(t)},fs.decrypt=function(e,t){return e._cipher.decryptBlock(t)}),fs}var us={},vl,u2;function Za(){return u2||(u2=1,vl=function(t,n){for(var a=Math.min(t.length,n.length),c=new _.dist.Buffer(a),i=0;i<a;++i)c[i]=t[i]^n[i];return c}),vl}var d2;function px(){if(d2)return us;d2=1;var e=Za();return us.encrypt=function(t,n){var a=e(n,t._prev);return t._prev=t._cipher.encryptBlock(a),t._prev},us.decrypt=function(t,n){var a=t._prev;t._prev=n;var c=t._cipher.decryptBlock(n);return e(c,a)},us}var xl={},h2;function gx(){if(h2)return xl;h2=1;var e=_.safeBufferExports.Buffer,t=Za();function n(a,c,i){var u=c.length,f=t(c,a._cache);return a._cache=a._cache.slice(u),a._prev=e.concat([a._prev,i?c:f]),f}return xl.encrypt=function(a,c,i){for(var u=e.allocUnsafe(0),f;c.length;)if(a._cache.length===0&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=e.allocUnsafe(0)),a._cache.length<=c.length)f=a._cache.length,u=e.concat([u,n(a,c.slice(0,f),i)]),c=c.slice(f);else{u=e.concat([u,n(a,c,i)]);break}return u},xl}var bl={},p2;function mx(){if(p2)return bl;p2=1;var e=_.safeBufferExports.Buffer;function t(n,a,c){var i=n._cipher.encryptBlock(n._prev),u=i[0]^a;return n._prev=e.concat([n._prev.slice(1),e.from([c?a:u])]),u}return bl.encrypt=function(n,a,c){for(var i=a.length,u=e.allocUnsafe(i),f=-1;++f<i;)u[f]=t(n,a[f],c);return u},bl}var Cl={},g2;function Mx(){if(g2)return Cl;g2=1;var e=_.safeBufferExports.Buffer;function t(a,c,i){for(var u,f=-1,p=8,h=0,g,C;++f<p;)u=a._cipher.encryptBlock(a._prev),g=c&1<<7-f?128:0,C=u[0]^g,h+=(C&128)>>f%8,a._prev=n(a._prev,i?g:C);return h}function n(a,c){var i=a.length,u=-1,f=e.allocUnsafe(a.length);for(a=e.concat([a,e.from([c])]);++u<i;)f[u]=a[u]<<1|a[u+1]>>7;return f}return Cl.encrypt=function(a,c,i){for(var u=c.length,f=e.allocUnsafe(u),p=-1;++p<u;)f[p]=t(a,c[p],i);return f},Cl}var wl={},m2;function yx(){if(m2)return wl;m2=1;var e=Za();function t(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}return wl.encrypt=function(n,a){for(;n._cache.length<a.length;)n._cache=_.dist.Buffer.concat([n._cache,t(n)]);var c=n._cache.slice(0,a.length);return n._cache=n._cache.slice(a.length),e(a,c)},wl}var Nl={},jl,M2;function D6(){if(M2)return jl;M2=1;function e(t){for(var n=t.length,a;n--;)if(a=t.readUInt8(n),a===255)t.writeUInt8(0,n);else{a++,t.writeUInt8(a,n);break}}return jl=e,jl}var y2;function v2(){if(y2)return Nl;y2=1;var e=Za(),t=_.safeBufferExports.Buffer,n=D6();function a(i){var u=i._cipher.encryptBlockRaw(i._prev);return n(i._prev),u}var c=16;return Nl.encrypt=function(i,u){var f=Math.ceil(u.length/c),p=i._cache.length;i._cache=t.concat([i._cache,t.allocUnsafe(f*c)]);for(var h=0;h<f;h++){var g=a(i),C=p+h*c;i._cache.writeUInt32BE(g[0],C+0),i._cache.writeUInt32BE(g[1],C+4),i._cache.writeUInt32BE(g[2],C+8),i._cache.writeUInt32BE(g[3],C+12)}var w=i._cache.slice(0,u.length);return i._cache=i._cache.slice(u.length),e(u,w)},Nl}const vx={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},xx={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},bx={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},O6={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:vx,aes192:xx,aes256:bx,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var Tl,x2;function Ad(){if(x2)return Tl;x2=1;var e={ECB:hx(),CBC:px(),CFB:gx(),CFB8:mx(),CFB1:Mx(),OFB:yx(),CTR:v2(),GCM:v2()},t=O6;for(var n in t)t[n].module=e[t[n].mode];return Tl=t,Tl}var Al={},b2;function U0(){if(b2)return Al;b2=1;var e=_.safeBufferExports.Buffer;function t(f){e.isBuffer(f)||(f=e.from(f));for(var p=f.length/4|0,h=new Array(p),g=0;g<p;g++)h[g]=f.readUInt32BE(g*4);return h}function n(f){for(var p=0;p<f.length;f++)f[p]=0}function a(f,p,h,g,C){for(var w=h[0],j=h[1],I=h[2],T=h[3],S=f[0]^p[0],L=f[1]^p[1],E=f[2]^p[2],D=f[3]^p[3],O,F,R,Q,B=4,k=1;k<C;k++)O=w[S>>>24]^j[L>>>16&255]^I[E>>>8&255]^T[D&255]^p[B++],F=w[L>>>24]^j[E>>>16&255]^I[D>>>8&255]^T[S&255]^p[B++],R=w[E>>>24]^j[D>>>16&255]^I[S>>>8&255]^T[L&255]^p[B++],Q=w[D>>>24]^j[S>>>16&255]^I[L>>>8&255]^T[E&255]^p[B++],S=O,L=F,E=R,D=Q;return O=(g[S>>>24]<<24|g[L>>>16&255]<<16|g[E>>>8&255]<<8|g[D&255])^p[B++],F=(g[L>>>24]<<24|g[E>>>16&255]<<16|g[D>>>8&255]<<8|g[S&255])^p[B++],R=(g[E>>>24]<<24|g[D>>>16&255]<<16|g[S>>>8&255]<<8|g[L&255])^p[B++],Q=(g[D>>>24]<<24|g[S>>>16&255]<<16|g[L>>>8&255]<<8|g[E&255])^p[B++],O=O>>>0,F=F>>>0,R=R>>>0,Q=Q>>>0,[O,F,R,Q]}var c=[0,1,2,4,8,16,32,64,128,27,54],i=function(){for(var f=new Array(256),p=0;p<256;p++)p<128?f[p]=p<<1:f[p]=p<<1^283;for(var h=[],g=[],C=[[],[],[],[]],w=[[],[],[],[]],j=0,I=0,T=0;T<256;++T){var S=I^I<<1^I<<2^I<<3^I<<4;S=S>>>8^S&255^99,h[j]=S,g[S]=j;var L=f[j],E=f[L],D=f[E],O=f[S]*257^S*16843008;C[0][j]=O<<24|O>>>8,C[1][j]=O<<16|O>>>16,C[2][j]=O<<8|O>>>24,C[3][j]=O,O=D*16843009^E*65537^L*257^j*16843008,w[0][S]=O<<24|O>>>8,w[1][S]=O<<16|O>>>16,w[2][S]=O<<8|O>>>24,w[3][S]=O,j===0?j=I=1:(j=L^f[f[f[D^L]]],I^=f[f[I]])}return{SBOX:h,INV_SBOX:g,SUB_MIX:C,INV_SUB_MIX:w}}();function u(f){this._key=t(f),this._reset()}return u.blockSize=4*4,u.keySize=256/8,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var f=this._key,p=f.length,h=p+6,g=(h+1)*4,C=[],w=0;w<p;w++)C[w]=f[w];for(w=p;w<g;w++){var j=C[w-1];w%p===0?(j=j<<8|j>>>24,j=i.SBOX[j>>>24]<<24|i.SBOX[j>>>16&255]<<16|i.SBOX[j>>>8&255]<<8|i.SBOX[j&255],j^=c[w/p|0]<<24):p>6&&w%p===4&&(j=i.SBOX[j>>>24]<<24|i.SBOX[j>>>16&255]<<16|i.SBOX[j>>>8&255]<<8|i.SBOX[j&255]),C[w]=C[w-p]^j}for(var I=[],T=0;T<g;T++){var S=g-T,L=C[S-(T%4?0:4)];T<4||S<=4?I[T]=L:I[T]=i.INV_SUB_MIX[0][i.SBOX[L>>>24]]^i.INV_SUB_MIX[1][i.SBOX[L>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[L>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[L&255]]}this._nRounds=h,this._keySchedule=C,this._invKeySchedule=I},u.prototype.encryptBlockRaw=function(f){return f=t(f),a(f,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},u.prototype.encryptBlock=function(f){var p=this.encryptBlockRaw(f),h=e.allocUnsafe(16);return h.writeUInt32BE(p[0],0),h.writeUInt32BE(p[1],4),h.writeUInt32BE(p[2],8),h.writeUInt32BE(p[3],12),h},u.prototype.decryptBlock=function(f){f=t(f);var p=f[1];f[1]=f[3],f[3]=p;var h=a(f,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),g=e.allocUnsafe(16);return g.writeUInt32BE(h[0],0),g.writeUInt32BE(h[3],4),g.writeUInt32BE(h[2],8),g.writeUInt32BE(h[1],12),g},u.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},Al.AES=u,Al}var Il,C2;function Cx(){if(C2)return Il;C2=1;var e=_.safeBufferExports.Buffer,t=e.alloc(16,0);function n(i){return[i.readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)]}function a(i){var u=e.allocUnsafe(16);return u.writeUInt32BE(i[0]>>>0,0),u.writeUInt32BE(i[1]>>>0,4),u.writeUInt32BE(i[2]>>>0,8),u.writeUInt32BE(i[3]>>>0,12),u}function c(i){this.h=i,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}return c.prototype.ghash=function(i){for(var u=-1;++u<i.length;)this.state[u]^=i[u];this._multiply()},c.prototype._multiply=function(){for(var i=n(this.h),u=[0,0,0,0],f,p,h,g=-1;++g<128;){for(p=(this.state[~~(g/8)]&1<<7-g%8)!==0,p&&(u[0]^=i[0],u[1]^=i[1],u[2]^=i[2],u[3]^=i[3]),h=(i[3]&1)!==0,f=3;f>0;f--)i[f]=i[f]>>>1|(i[f-1]&1)<<31;i[0]=i[0]>>>1,h&&(i[0]=i[0]^225<<24)}this.state=a(u)},c.prototype.update=function(i){this.cache=e.concat([this.cache,i]);for(var u;this.cache.length>=16;)u=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(u)},c.prototype.final=function(i,u){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(a([0,i,0,u])),this.state},Il=c,Il}var El,w2;function z6(){if(w2)return El;w2=1;var e=U0(),t=_.safeBufferExports.Buffer,n=wi(),a=zt,c=Cx(),i=Za(),u=D6();function f(g,C){var w=0;g.length!==C.length&&w++;for(var j=Math.min(g.length,C.length),I=0;I<j;++I)w+=g[I]^C[I];return w}function p(g,C,w){if(C.length===12)return g._finID=t.concat([C,t.from([0,0,0,1])]),t.concat([C,t.from([0,0,0,2])]);var j=new c(w),I=C.length,T=I%16;j.update(C),T&&(T=16-T,j.update(t.alloc(T,0))),j.update(t.alloc(8,0));var S=I*8,L=t.alloc(8);L.writeUIntBE(S,0,8),j.update(L),g._finID=j.state;var E=t.from(g._finID);return u(E),E}function h(g,C,w,j){n.call(this);var I=t.alloc(4,0);this._cipher=new e.AES(C);var T=this._cipher.encryptBlock(I);this._ghash=new c(T),w=p(this,w,T),this._prev=t.from(w),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=j,this._alen=0,this._len=0,this._mode=g,this._authTag=null,this._called=!1}return a(h,n),h.prototype._update=function(g){if(!this._called&&this._alen){var C=16-this._alen%16;C<16&&(C=t.alloc(C,0),this._ghash.update(C))}this._called=!0;var w=this._mode.encrypt(this,g);return this._decrypt?this._ghash.update(g):this._ghash.update(w),this._len+=g.length,w},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var g=i(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&f(g,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=g,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(C){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=C},h.prototype.setAAD=function(C){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(C),this._alen+=C.length},El=h,El}var Ll,N2;function k6(){if(N2)return Ll;N2=1;var e=U0(),t=_.safeBufferExports.Buffer,n=wi(),a=zt;function c(i,u,f,p){n.call(this),this._cipher=new e.AES(u),this._prev=t.from(f),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=p,this._mode=i}return a(c,n),c.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},c.prototype._final=function(){this._cipher.scrub()},Ll=c,Ll}var Sl,j2;function Y0(){if(j2)return Sl;j2=1;var e=_.safeBufferExports.Buffer,t=wd();function n(a,c,i,u){if(e.isBuffer(a)||(a=e.from(a,"binary")),c&&(e.isBuffer(c)||(c=e.from(c,"binary")),c.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var f=i/8,p=e.alloc(f),h=e.alloc(u||0),g=e.alloc(0);f>0||u>0;){var C=new t;C.update(g),C.update(a),c&&C.update(c),g=C.digest();var w=0;if(f>0){var j=p.length-f;w=Math.min(f,g.length),g.copy(p,j,0,w),f-=w}if(w<g.length&&u>0){var I=h.length-u,T=Math.min(u,g.length-w);g.copy(h,I,w,w+T),u-=T}}return g.fill(0),{key:p,iv:h}}return Sl=n,Sl}var T2;function wx(){if(T2)return ls;T2=1;var e=Ad(),t=z6(),n=_.safeBufferExports.Buffer,a=k6(),c=wi(),i=U0(),u=Y0(),f=zt;function p(j,I,T){c.call(this),this._cache=new g,this._cipher=new i.AES(I),this._prev=n.from(T),this._mode=j,this._autopadding=!0}f(p,c),p.prototype._update=function(j){this._cache.add(j);for(var I,T,S=[];I=this._cache.get();)T=this._mode.encrypt(this,I),S.push(T);return n.concat(S)};var h=n.alloc(16,16);p.prototype._final=function(){var j=this._cache.flush();if(this._autopadding)return j=this._mode.encrypt(this,j),this._cipher.scrub(),j;if(!j.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(j){return this._autopadding=!!j,this};function g(){this.cache=n.allocUnsafe(0)}g.prototype.add=function(j){this.cache=n.concat([this.cache,j])},g.prototype.get=function(){if(this.cache.length>15){var j=this.cache.slice(0,16);return this.cache=this.cache.slice(16),j}return null},g.prototype.flush=function(){for(var j=16-this.cache.length,I=n.allocUnsafe(j),T=-1;++T<j;)I.writeUInt8(j,T);return n.concat([this.cache,I])};function C(j,I,T){var S=e[j.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof I=="string"&&(I=n.from(I)),I.length!==S.key/8)throw new TypeError("invalid key length "+I.length);if(typeof T=="string"&&(T=n.from(T)),S.mode!=="GCM"&&T.length!==S.iv)throw new TypeError("invalid iv length "+T.length);return S.type==="stream"?new a(S.module,I,T):S.type==="auth"?new t(S.module,I,T):new p(S.module,I,T)}function w(j,I){var T=e[j.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var S=u(I,!1,T.key,T.iv);return C(j,S.key,S.iv)}return ls.createCipheriv=C,ls.createCipher=w,ls}var ds={},A2;function Nx(){if(A2)return ds;A2=1;var e=z6(),t=_.safeBufferExports.Buffer,n=Ad(),a=k6(),c=wi(),i=U0(),u=Y0(),f=zt;function p(j,I,T){c.call(this),this._cache=new h,this._last=void 0,this._cipher=new i.AES(I),this._prev=t.from(T),this._mode=j,this._autopadding=!0}f(p,c),p.prototype._update=function(j){this._cache.add(j);for(var I,T,S=[];I=this._cache.get(this._autopadding);)T=this._mode.decrypt(this,I),S.push(T);return t.concat(S)},p.prototype._final=function(){var j=this._cache.flush();if(this._autopadding)return g(this._mode.decrypt(this,j));if(j)throw new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(j){return this._autopadding=!!j,this};function h(){this.cache=t.allocUnsafe(0)}h.prototype.add=function(j){this.cache=t.concat([this.cache,j])},h.prototype.get=function(j){var I;if(j){if(this.cache.length>16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I}else if(this.cache.length>=16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache};function g(j){var I=j[15];if(I<1||I>16)throw new Error("unable to decrypt data");for(var T=-1;++T<I;)if(j[T+(16-I)]!==I)throw new Error("unable to decrypt data");if(I!==16)return j.slice(0,16-I)}function C(j,I,T){var S=n[j.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof T=="string"&&(T=t.from(T)),S.mode!=="GCM"&&T.length!==S.iv)throw new TypeError("invalid iv length "+T.length);if(typeof I=="string"&&(I=t.from(I)),I.length!==S.key/8)throw new TypeError("invalid key length "+I.length);return S.type==="stream"?new a(S.module,I,T,!0):S.type==="auth"?new e(S.module,I,T,!0):new p(S.module,I,T)}function w(j,I){var T=n[j.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var S=u(I,!1,T.key,T.iv);return C(j,S.key,S.iv)}return ds.createDecipher=w,ds.createDecipheriv=C,ds}var I2;function Id(){if(I2)return ln;I2=1;var e=wx(),t=Nx(),n=O6;function a(){return Object.keys(n)}return ln.createCipher=ln.Cipher=e.createCipher,ln.createCipheriv=ln.Cipheriv=e.createCipheriv,ln.createDecipher=ln.Decipher=t.createDecipher,ln.createDecipheriv=ln.Decipheriv=t.createDecipheriv,ln.listCiphers=ln.getCiphers=a,ln}var Dl={},E2;function jx(){return E2||(E2=1,function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}(Dl)),Dl}var L2;function Tx(){if(L2)return cn;L2=1;var e=dx(),t=Id(),n=Ad(),a=jx(),c=Y0();function i(g,C){g=g.toLowerCase();var w,j;if(n[g])w=n[g].key,j=n[g].iv;else if(a[g])w=a[g].key*8,j=a[g].iv;else throw new TypeError("invalid suite type");var I=c(C,!1,w,j);return f(g,I.key,I.iv)}function u(g,C){g=g.toLowerCase();var w,j;if(n[g])w=n[g].key,j=n[g].iv;else if(a[g])w=a[g].key*8,j=a[g].iv;else throw new TypeError("invalid suite type");var I=c(C,!1,w,j);return p(g,I.key,I.iv)}function f(g,C,w){if(g=g.toLowerCase(),n[g])return t.createCipheriv(g,C,w);if(a[g])return new e({key:C,iv:w,mode:g});throw new TypeError("invalid suite type")}function p(g,C,w){if(g=g.toLowerCase(),n[g])return t.createDecipheriv(g,C,w);if(a[g])return new e({key:C,iv:w,mode:g,decrypt:!0});throw new TypeError("invalid suite type")}function h(){return Object.keys(a).concat(t.getCiphers())}return cn.createCipher=cn.Cipher=i,cn.createCipheriv=cn.Cipheriv=f,cn.createDecipher=cn.Decipher=u,cn.createDecipheriv=cn.Decipheriv=p,cn.listCiphers=cn.getCiphers=h,cn}var Li={},Ys={exports:{}};Ys.exports;var S2;function _6(){return S2||(S2=1,function(e){(function(t,n){function a(y,r){if(!y)throw new Error(r||"Assertion failed")}function c(y,r){y.super_=r;var s=function(){};s.prototype=r.prototype,y.prototype=new s,y.prototype.constructor=y}function i(y,r,s){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((r==="le"||r==="be")&&(s=r,r=10),this._init(y||0,r||10,s||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=_.bufferPolyfill.Buffer}catch{}i.isBN=function(r){return r instanceof i?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===i.wordSize&&Array.isArray(r.words)},i.max=function(r,s){return r.cmp(s)>0?r:s},i.min=function(r,s){return r.cmp(s)<0?r:s},i.prototype._init=function(r,s,l){if(typeof r=="number")return this._initNumber(r,s,l);if(typeof r=="object")return this._initArray(r,s,l);s==="hex"&&(s=16),a(s===(s|0)&&s>=2&&s<=36),r=r.toString().replace(/\s+/g,"");var d=0;r[0]==="-"&&(d++,this.negative=1),d<r.length&&(s===16?this._parseHex(r,d,l):(this._parseBase(r,s,d),l==="le"&&this._initArray(this.toArray(),s,l)))},i.prototype._initNumber=function(r,s,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(r,s,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M,b,N=0;if(l==="be")for(d=r.length-1,M=0;d>=0;d-=3)b=r[d]|r[d-1]<<8|r[d-2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);else if(l==="le")for(d=0,M=0;d<r.length;d+=3)b=r[d]|r[d+1]<<8|r[d+2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);return this.strip()};function f(y,r){var s=y.charCodeAt(r);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function p(y,r,s){var l=f(y,s);return s-1>=r&&(l|=f(y,s-1)<<4),l}i.prototype._parseHex=function(r,s,l){this.length=Math.ceil((r.length-s)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M=0,b=0,N;if(l==="be")for(d=r.length-1;d>=s;d-=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8;else{var m=r.length-s;for(d=m%2===0?s+1:s;d<r.length;d+=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8}this.strip()};function h(y,r,s,l){for(var d=0,M=Math.min(y.length,s),b=r;b<M;b++){var N=y.charCodeAt(b)-48;d*=l,N>=49?d+=N-49+10:N>=17?d+=N-17+10:d+=N}return d}i.prototype._parseBase=function(r,s,l){this.words=[0],this.length=1;for(var d=0,M=1;M<=67108863;M*=s)d++;d--,M=M/s|0;for(var b=r.length-l,N=b%d,m=Math.min(b,b-N)+l,o=0,x=l;x<m;x+=d)o=h(r,x,x+d,s),this.imuln(M),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(N!==0){var W=1;for(o=h(r,x,r.length,s),x=0;x<N;x++)W*=s;this.imuln(W),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(r){r.words=new Array(this.length);for(var s=0;s<this.length;s++)r.words[s]=this.words[s];r.length=this.length,r.negative=this.negative,r.red=this.red},i.prototype.clone=function(){var r=new i(null);return this.copy(r),r},i.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(r,s){r=r||10,s=s|0||1;var l;if(r===16||r==="hex"){l="";for(var d=0,M=0,b=0;b<this.length;b++){var N=this.words[b],m=((N<<d|M)&16777215).toString(16);M=N>>>24-d&16777215,d+=2,d>=26&&(d-=26,b--),M!==0||b!==this.length-1?l=g[6-m.length]+m+l:l=m+l}for(M!==0&&(l=M.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var o=C[r],x=w[r];l="";var W=this.clone();for(W.negative=0;!W.isZero();){var Z=W.modn(x).toString(r);W=W.idivn(x),W.isZero()?l=Z+l:l=g[o-Z.length]+Z+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(r,s){return a(typeof u<"u"),this.toArrayLike(u,r,s)},i.prototype.toArray=function(r,s){return this.toArrayLike(Array,r,s)},i.prototype.toArrayLike=function(r,s,l){var d=this.byteLength(),M=l||Math.max(1,d);a(d<=M,"byte array longer than desired length"),a(M>0,"Requested array length <= 0"),this.strip();var b=s==="le",N=new r(M),m,o,x=this.clone();if(b){for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[o]=m;for(;o<M;o++)N[o]=0}else{for(o=0;o<M-d;o++)N[o]=0;for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[M-o-1]=m}return N},Math.clz32?i.prototype._countBits=function(r){return 32-Math.clz32(r)}:i.prototype._countBits=function(r){var s=r,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(r){if(r===0)return 26;var s=r,l=0;return s&8191||(l+=13,s>>>=13),s&127||(l+=7,s>>>=7),s&15||(l+=4,s>>>=4),s&3||(l+=2,s>>>=2),s&1||l++,l},i.prototype.bitLength=function(){var r=this.words[this.length-1],s=this._countBits(r);return(this.length-1)*26+s};function j(y){for(var r=new Array(y.bitLength()),s=0;s<r.length;s++){var l=s/26|0,d=s%26;r[s]=(y.words[l]&1<<d)>>>d}return r}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(r+=l,l!==26)break}return r},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},i.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var s=0;s<r.length;s++)this.words[s]=this.words[s]|r.words[s];return this.strip()},i.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},i.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},i.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},i.prototype.iuand=function(r){var s;this.length>r.length?s=r:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},i.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},i.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},i.prototype.iuxor=function(r){var s,l;this.length>r.length?(s=this,l=r):(s=r,l=this);for(var d=0;d<l.length;d++)this.words[d]=s.words[d]^l.words[d];if(this!==s)for(;d<s.length;d++)this.words[d]=s.words[d];return this.length=s.length,this.strip()},i.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},i.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},i.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},i.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var s=Math.ceil(r/26)|0,l=r%26;this._expand(s),l>0&&s--;for(var d=0;d<s;d++)this.words[d]=~this.words[d]&67108863;return l>0&&(this.words[d]=~this.words[d]&67108863>>26-l),this.strip()},i.prototype.notn=function(r){return this.clone().inotn(r)},i.prototype.setn=function(r,s){a(typeof r=="number"&&r>=0);var l=r/26|0,d=r%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<d:this.words[l]=this.words[l]&~(1<<d),this.strip()},i.prototype.iadd=function(r){var s;if(this.negative!==0&&r.negative===0)return this.negative=0,s=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,s=this.isub(r),r.negative=1,s._normSign();var l,d;this.length>r.length?(l=this,d=r):(l=r,d=this);for(var M=0,b=0;b<d.length;b++)s=(l.words[b]|0)+(d.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;for(;M!==0&&b<l.length;b++)s=(l.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;if(this.length=l.length,M!==0)this.words[this.length]=M,this.length++;else if(l!==this)for(;b<l.length;b++)this.words[b]=l.words[b];return this},i.prototype.add=function(r){var s;return r.negative!==0&&this.negative===0?(r.negative=0,s=this.sub(r),r.negative^=1,s):r.negative===0&&this.negative!==0?(this.negative=0,s=r.sub(this),this.negative=1,s):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},i.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var s=this.iadd(r);return r.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var d,M;l>0?(d=this,M=r):(d=r,M=this);for(var b=0,N=0;N<M.length;N++)s=(d.words[N]|0)-(M.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;for(;b!==0&&N<d.length;N++)s=(d.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;if(b===0&&N<d.length&&d!==this)for(;N<d.length;N++)this.words[N]=d.words[N];return this.length=Math.max(this.length,N),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(r){return this.clone().isub(r)};function I(y,r,s){s.negative=r.negative^y.negative;var l=y.length+r.length|0;s.length=l,l=l-1|0;var d=y.words[0]|0,M=r.words[0]|0,b=d*M,N=b&67108863,m=b/67108864|0;s.words[0]=N;for(var o=1;o<l;o++){for(var x=m>>>26,W=m&67108863,Z=Math.min(o,r.length-1),G=Math.max(0,o-y.length+1);G<=Z;G++){var ee=o-G|0;d=y.words[ee]|0,M=r.words[G]|0,b=d*M+W,x+=b/67108864|0,W=b&67108863}s.words[o]=W|0,m=x|0}return m!==0?s.words[o]=m|0:s.length--,s.strip()}var T=function(r,s,l){var d=r.words,M=s.words,b=l.words,N=0,m,o,x,W=d[0]|0,Z=W&8191,G=W>>>13,ee=d[1]|0,V=ee&8191,P=ee>>>13,H=d[2]|0,$=H&8191,X=H>>>13,te=d[3]|0,Y=te&8191,ne=te>>>13,xe=d[4]|0,le=xe&8191,ue=xe>>>13,Ve=d[5]|0,he=Ve&8191,be=Ve>>>13,st=d[6]|0,Me=st&8191,oe=st>>>13,We=d[7]|0,de=We&8191,ye=We>>>13,mt=d[8]|0,je=mt&8191,Ae=mt>>>13,Tt=d[9]|0,De=Tt&8191,ve=Tt>>>13,jt=M[0]|0,Ee=jt&8191,Le=jt>>>13,Ot=M[1]|0,me=Ot&8191,Ce=Ot>>>13,xt=M[2]|0,Se=xt&8191,Oe=xt>>>13,Wt=M[3]|0,ze=Wt&8191,ke=Wt>>>13,er=M[4]|0,Fe=er&8191,Re=er>>>13,Mt=M[5]|0,_e=Mt&8191,Pe=Mt>>>13,Tr=M[6]|0,Be=Tr&8191,Ue=Tr>>>13,q=M[7]|0,K=q&8191,J=q>>>13,U=M[8]|0,re=U&8191,se=U>>>13,we=M[9]|0,ce=we&8191,pe=we>>>13;l.negative=r.negative^s.negative,l.length=19,m=Math.imul(Z,Ee),o=Math.imul(Z,Le),o=o+Math.imul(G,Ee)|0,x=Math.imul(G,Le);var ot=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(V,Ee),o=Math.imul(V,Le),o=o+Math.imul(P,Ee)|0,x=Math.imul(P,Le),m=m+Math.imul(Z,me)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(G,me)|0,x=x+Math.imul(G,Ce)|0;var qe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul($,Ee),o=Math.imul($,Le),o=o+Math.imul(X,Ee)|0,x=Math.imul(X,Le),m=m+Math.imul(V,me)|0,o=o+Math.imul(V,Ce)|0,o=o+Math.imul(P,me)|0,x=x+Math.imul(P,Ce)|0,m=m+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Oe)|0,o=o+Math.imul(G,Se)|0,x=x+Math.imul(G,Oe)|0;var Ct=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,m=Math.imul(Y,Ee),o=Math.imul(Y,Le),o=o+Math.imul(ne,Ee)|0,x=Math.imul(ne,Le),m=m+Math.imul($,me)|0,o=o+Math.imul($,Ce)|0,o=o+Math.imul(X,me)|0,x=x+Math.imul(X,Ce)|0,m=m+Math.imul(V,Se)|0,o=o+Math.imul(V,Oe)|0,o=o+Math.imul(P,Se)|0,x=x+Math.imul(P,Oe)|0,m=m+Math.imul(Z,ze)|0,o=o+Math.imul(Z,ke)|0,o=o+Math.imul(G,ze)|0,x=x+Math.imul(G,ke)|0;var et=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(le,Ee),o=Math.imul(le,Le),o=o+Math.imul(ue,Ee)|0,x=Math.imul(ue,Le),m=m+Math.imul(Y,me)|0,o=o+Math.imul(Y,Ce)|0,o=o+Math.imul(ne,me)|0,x=x+Math.imul(ne,Ce)|0,m=m+Math.imul($,Se)|0,o=o+Math.imul($,Oe)|0,o=o+Math.imul(X,Se)|0,x=x+Math.imul(X,Oe)|0,m=m+Math.imul(V,ze)|0,o=o+Math.imul(V,ke)|0,o=o+Math.imul(P,ze)|0,x=x+Math.imul(P,ke)|0,m=m+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(G,Fe)|0,x=x+Math.imul(G,Re)|0;var lt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(he,Ee),o=Math.imul(he,Le),o=o+Math.imul(be,Ee)|0,x=Math.imul(be,Le),m=m+Math.imul(le,me)|0,o=o+Math.imul(le,Ce)|0,o=o+Math.imul(ue,me)|0,x=x+Math.imul(ue,Ce)|0,m=m+Math.imul(Y,Se)|0,o=o+Math.imul(Y,Oe)|0,o=o+Math.imul(ne,Se)|0,x=x+Math.imul(ne,Oe)|0,m=m+Math.imul($,ze)|0,o=o+Math.imul($,ke)|0,o=o+Math.imul(X,ze)|0,x=x+Math.imul(X,ke)|0,m=m+Math.imul(V,Fe)|0,o=o+Math.imul(V,Re)|0,o=o+Math.imul(P,Fe)|0,x=x+Math.imul(P,Re)|0,m=m+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Pe)|0,o=o+Math.imul(G,_e)|0,x=x+Math.imul(G,Pe)|0;var ft=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,m=Math.imul(Me,Ee),o=Math.imul(Me,Le),o=o+Math.imul(oe,Ee)|0,x=Math.imul(oe,Le),m=m+Math.imul(he,me)|0,o=o+Math.imul(he,Ce)|0,o=o+Math.imul(be,me)|0,x=x+Math.imul(be,Ce)|0,m=m+Math.imul(le,Se)|0,o=o+Math.imul(le,Oe)|0,o=o+Math.imul(ue,Se)|0,x=x+Math.imul(ue,Oe)|0,m=m+Math.imul(Y,ze)|0,o=o+Math.imul(Y,ke)|0,o=o+Math.imul(ne,ze)|0,x=x+Math.imul(ne,ke)|0,m=m+Math.imul($,Fe)|0,o=o+Math.imul($,Re)|0,o=o+Math.imul(X,Fe)|0,x=x+Math.imul(X,Re)|0,m=m+Math.imul(V,_e)|0,o=o+Math.imul(V,Pe)|0,o=o+Math.imul(P,_e)|0,x=x+Math.imul(P,Pe)|0,m=m+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ue)|0,o=o+Math.imul(G,Be)|0,x=x+Math.imul(G,Ue)|0;var gt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(de,Ee),o=Math.imul(de,Le),o=o+Math.imul(ye,Ee)|0,x=Math.imul(ye,Le),m=m+Math.imul(Me,me)|0,o=o+Math.imul(Me,Ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,Ce)|0,m=m+Math.imul(he,Se)|0,o=o+Math.imul(he,Oe)|0,o=o+Math.imul(be,Se)|0,x=x+Math.imul(be,Oe)|0,m=m+Math.imul(le,ze)|0,o=o+Math.imul(le,ke)|0,o=o+Math.imul(ue,ze)|0,x=x+Math.imul(ue,ke)|0,m=m+Math.imul(Y,Fe)|0,o=o+Math.imul(Y,Re)|0,o=o+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,Re)|0,m=m+Math.imul($,_e)|0,o=o+Math.imul($,Pe)|0,o=o+Math.imul(X,_e)|0,x=x+Math.imul(X,Pe)|0,m=m+Math.imul(V,Be)|0,o=o+Math.imul(V,Ue)|0,o=o+Math.imul(P,Be)|0,x=x+Math.imul(P,Ue)|0,m=m+Math.imul(Z,K)|0,o=o+Math.imul(Z,J)|0,o=o+Math.imul(G,K)|0,x=x+Math.imul(G,J)|0;var pt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(je,Ee),o=Math.imul(je,Le),o=o+Math.imul(Ae,Ee)|0,x=Math.imul(Ae,Le),m=m+Math.imul(de,me)|0,o=o+Math.imul(de,Ce)|0,o=o+Math.imul(ye,me)|0,x=x+Math.imul(ye,Ce)|0,m=m+Math.imul(Me,Se)|0,o=o+Math.imul(Me,Oe)|0,o=o+Math.imul(oe,Se)|0,x=x+Math.imul(oe,Oe)|0,m=m+Math.imul(he,ze)|0,o=o+Math.imul(he,ke)|0,o=o+Math.imul(be,ze)|0,x=x+Math.imul(be,ke)|0,m=m+Math.imul(le,Fe)|0,o=o+Math.imul(le,Re)|0,o=o+Math.imul(ue,Fe)|0,x=x+Math.imul(ue,Re)|0,m=m+Math.imul(Y,_e)|0,o=o+Math.imul(Y,Pe)|0,o=o+Math.imul(ne,_e)|0,x=x+Math.imul(ne,Pe)|0,m=m+Math.imul($,Be)|0,o=o+Math.imul($,Ue)|0,o=o+Math.imul(X,Be)|0,x=x+Math.imul(X,Ue)|0,m=m+Math.imul(V,K)|0,o=o+Math.imul(V,J)|0,o=o+Math.imul(P,K)|0,x=x+Math.imul(P,J)|0,m=m+Math.imul(Z,re)|0,o=o+Math.imul(Z,se)|0,o=o+Math.imul(G,re)|0,x=x+Math.imul(G,se)|0;var ut=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ut>>>26)|0,ut&=67108863,m=Math.imul(De,Ee),o=Math.imul(De,Le),o=o+Math.imul(ve,Ee)|0,x=Math.imul(ve,Le),m=m+Math.imul(je,me)|0,o=o+Math.imul(je,Ce)|0,o=o+Math.imul(Ae,me)|0,x=x+Math.imul(Ae,Ce)|0,m=m+Math.imul(de,Se)|0,o=o+Math.imul(de,Oe)|0,o=o+Math.imul(ye,Se)|0,x=x+Math.imul(ye,Oe)|0,m=m+Math.imul(Me,ze)|0,o=o+Math.imul(Me,ke)|0,o=o+Math.imul(oe,ze)|0,x=x+Math.imul(oe,ke)|0,m=m+Math.imul(he,Fe)|0,o=o+Math.imul(he,Re)|0,o=o+Math.imul(be,Fe)|0,x=x+Math.imul(be,Re)|0,m=m+Math.imul(le,_e)|0,o=o+Math.imul(le,Pe)|0,o=o+Math.imul(ue,_e)|0,x=x+Math.imul(ue,Pe)|0,m=m+Math.imul(Y,Be)|0,o=o+Math.imul(Y,Ue)|0,o=o+Math.imul(ne,Be)|0,x=x+Math.imul(ne,Ue)|0,m=m+Math.imul($,K)|0,o=o+Math.imul($,J)|0,o=o+Math.imul(X,K)|0,x=x+Math.imul(X,J)|0,m=m+Math.imul(V,re)|0,o=o+Math.imul(V,se)|0,o=o+Math.imul(P,re)|0,x=x+Math.imul(P,se)|0,m=m+Math.imul(Z,ce)|0,o=o+Math.imul(Z,pe)|0,o=o+Math.imul(G,ce)|0,x=x+Math.imul(G,pe)|0;var ht=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(De,me),o=Math.imul(De,Ce),o=o+Math.imul(ve,me)|0,x=Math.imul(ve,Ce),m=m+Math.imul(je,Se)|0,o=o+Math.imul(je,Oe)|0,o=o+Math.imul(Ae,Se)|0,x=x+Math.imul(Ae,Oe)|0,m=m+Math.imul(de,ze)|0,o=o+Math.imul(de,ke)|0,o=o+Math.imul(ye,ze)|0,x=x+Math.imul(ye,ke)|0,m=m+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Re)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Re)|0,m=m+Math.imul(he,_e)|0,o=o+Math.imul(he,Pe)|0,o=o+Math.imul(be,_e)|0,x=x+Math.imul(be,Pe)|0,m=m+Math.imul(le,Be)|0,o=o+Math.imul(le,Ue)|0,o=o+Math.imul(ue,Be)|0,x=x+Math.imul(ue,Ue)|0,m=m+Math.imul(Y,K)|0,o=o+Math.imul(Y,J)|0,o=o+Math.imul(ne,K)|0,x=x+Math.imul(ne,J)|0,m=m+Math.imul($,re)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(X,re)|0,x=x+Math.imul(X,se)|0,m=m+Math.imul(V,ce)|0,o=o+Math.imul(V,pe)|0,o=o+Math.imul(P,ce)|0,x=x+Math.imul(P,pe)|0;var dt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(De,Se),o=Math.imul(De,Oe),o=o+Math.imul(ve,Se)|0,x=Math.imul(ve,Oe),m=m+Math.imul(je,ze)|0,o=o+Math.imul(je,ke)|0,o=o+Math.imul(Ae,ze)|0,x=x+Math.imul(Ae,ke)|0,m=m+Math.imul(de,Fe)|0,o=o+Math.imul(de,Re)|0,o=o+Math.imul(ye,Fe)|0,x=x+Math.imul(ye,Re)|0,m=m+Math.imul(Me,_e)|0,o=o+Math.imul(Me,Pe)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Pe)|0,m=m+Math.imul(he,Be)|0,o=o+Math.imul(he,Ue)|0,o=o+Math.imul(be,Be)|0,x=x+Math.imul(be,Ue)|0,m=m+Math.imul(le,K)|0,o=o+Math.imul(le,J)|0,o=o+Math.imul(ue,K)|0,x=x+Math.imul(ue,J)|0,m=m+Math.imul(Y,re)|0,o=o+Math.imul(Y,se)|0,o=o+Math.imul(ne,re)|0,x=x+Math.imul(ne,se)|0,m=m+Math.imul($,ce)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(X,ce)|0,x=x+Math.imul(X,pe)|0;var rt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(De,ze),o=Math.imul(De,ke),o=o+Math.imul(ve,ze)|0,x=Math.imul(ve,ke),m=m+Math.imul(je,Fe)|0,o=o+Math.imul(je,Re)|0,o=o+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,Re)|0,m=m+Math.imul(de,_e)|0,o=o+Math.imul(de,Pe)|0,o=o+Math.imul(ye,_e)|0,x=x+Math.imul(ye,Pe)|0,m=m+Math.imul(Me,Be)|0,o=o+Math.imul(Me,Ue)|0,o=o+Math.imul(oe,Be)|0,x=x+Math.imul(oe,Ue)|0,m=m+Math.imul(he,K)|0,o=o+Math.imul(he,J)|0,o=o+Math.imul(be,K)|0,x=x+Math.imul(be,J)|0,m=m+Math.imul(le,re)|0,o=o+Math.imul(le,se)|0,o=o+Math.imul(ue,re)|0,x=x+Math.imul(ue,se)|0,m=m+Math.imul(Y,ce)|0,o=o+Math.imul(Y,pe)|0,o=o+Math.imul(ne,ce)|0,x=x+Math.imul(ne,pe)|0;var at=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(De,Fe),o=Math.imul(De,Re),o=o+Math.imul(ve,Fe)|0,x=Math.imul(ve,Re),m=m+Math.imul(je,_e)|0,o=o+Math.imul(je,Pe)|0,o=o+Math.imul(Ae,_e)|0,x=x+Math.imul(Ae,Pe)|0,m=m+Math.imul(de,Be)|0,o=o+Math.imul(de,Ue)|0,o=o+Math.imul(ye,Be)|0,x=x+Math.imul(ye,Ue)|0,m=m+Math.imul(Me,K)|0,o=o+Math.imul(Me,J)|0,o=o+Math.imul(oe,K)|0,x=x+Math.imul(oe,J)|0,m=m+Math.imul(he,re)|0,o=o+Math.imul(he,se)|0,o=o+Math.imul(be,re)|0,x=x+Math.imul(be,se)|0,m=m+Math.imul(le,ce)|0,o=o+Math.imul(le,pe)|0,o=o+Math.imul(ue,ce)|0,x=x+Math.imul(ue,pe)|0;var Xe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(De,_e),o=Math.imul(De,Pe),o=o+Math.imul(ve,_e)|0,x=Math.imul(ve,Pe),m=m+Math.imul(je,Be)|0,o=o+Math.imul(je,Ue)|0,o=o+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,Ue)|0,m=m+Math.imul(de,K)|0,o=o+Math.imul(de,J)|0,o=o+Math.imul(ye,K)|0,x=x+Math.imul(ye,J)|0,m=m+Math.imul(Me,re)|0,o=o+Math.imul(Me,se)|0,o=o+Math.imul(oe,re)|0,x=x+Math.imul(oe,se)|0,m=m+Math.imul(he,ce)|0,o=o+Math.imul(he,pe)|0,o=o+Math.imul(be,ce)|0,x=x+Math.imul(be,pe)|0;var nt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(De,Be),o=Math.imul(De,Ue),o=o+Math.imul(ve,Be)|0,x=Math.imul(ve,Ue),m=m+Math.imul(je,K)|0,o=o+Math.imul(je,J)|0,o=o+Math.imul(Ae,K)|0,x=x+Math.imul(Ae,J)|0,m=m+Math.imul(de,re)|0,o=o+Math.imul(de,se)|0,o=o+Math.imul(ye,re)|0,x=x+Math.imul(ye,se)|0,m=m+Math.imul(Me,ce)|0,o=o+Math.imul(Me,pe)|0,o=o+Math.imul(oe,ce)|0,x=x+Math.imul(oe,pe)|0;var it=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(De,K),o=Math.imul(De,J),o=o+Math.imul(ve,K)|0,x=Math.imul(ve,J),m=m+Math.imul(je,re)|0,o=o+Math.imul(je,se)|0,o=o+Math.imul(Ae,re)|0,x=x+Math.imul(Ae,se)|0,m=m+Math.imul(de,ce)|0,o=o+Math.imul(de,pe)|0,o=o+Math.imul(ye,ce)|0,x=x+Math.imul(ye,pe)|0;var Ge=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(De,re),o=Math.imul(De,se),o=o+Math.imul(ve,re)|0,x=Math.imul(ve,se),m=m+Math.imul(je,ce)|0,o=o+Math.imul(je,pe)|0,o=o+Math.imul(Ae,ce)|0,x=x+Math.imul(Ae,pe)|0;var Te=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,m=Math.imul(De,ce),o=Math.imul(De,pe),o=o+Math.imul(ve,ce)|0,x=Math.imul(ve,pe);var Ie=(N+m|0)+((o&8191)<<13)|0;return N=(x+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b[0]=ot,b[1]=qe,b[2]=Ct,b[3]=et,b[4]=lt,b[5]=ft,b[6]=gt,b[7]=pt,b[8]=ut,b[9]=ht,b[10]=dt,b[11]=rt,b[12]=at,b[13]=Xe,b[14]=nt,b[15]=it,b[16]=Ge,b[17]=Te,b[18]=Ie,N!==0&&(b[19]=N,l.length++),l};Math.imul||(T=I);function S(y,r,s){s.negative=r.negative^y.negative,s.length=y.length+r.length;for(var l=0,d=0,M=0;M<s.length-1;M++){var b=d;d=0;for(var N=l&67108863,m=Math.min(M,r.length-1),o=Math.max(0,M-y.length+1);o<=m;o++){var x=M-o,W=y.words[x]|0,Z=r.words[o]|0,G=W*Z,ee=G&67108863;b=b+(G/67108864|0)|0,ee=ee+N|0,N=ee&67108863,b=b+(ee>>>26)|0,d+=b>>>26,b&=67108863}s.words[M]=N,l=b,b=d}return l!==0?s.words[M]=l:s.length--,s.strip()}function L(y,r,s){var l=new E;return l.mulp(y,r,s)}i.prototype.mulTo=function(r,s){var l,d=this.length+r.length;return this.length===10&&r.length===10?l=T(this,r,s):d<63?l=I(this,r,s):d<1024?l=S(this,r,s):l=L(this,r,s),l};function E(y,r){this.x=y,this.y=r}E.prototype.makeRBT=function(r){for(var s=new Array(r),l=i.prototype._countBits(r)-1,d=0;d<r;d++)s[d]=this.revBin(d,l,r);return s},E.prototype.revBin=function(r,s,l){if(r===0||r===l-1)return r;for(var d=0,M=0;M<s;M++)d|=(r&1)<<s-M-1,r>>=1;return d},E.prototype.permute=function(r,s,l,d,M,b){for(var N=0;N<b;N++)d[N]=s[r[N]],M[N]=l[r[N]]},E.prototype.transform=function(r,s,l,d,M,b){this.permute(b,r,s,l,d,M);for(var N=1;N<M;N<<=1)for(var m=N<<1,o=Math.cos(2*Math.PI/m),x=Math.sin(2*Math.PI/m),W=0;W<M;W+=m)for(var Z=o,G=x,ee=0;ee<N;ee++){var V=l[W+ee],P=d[W+ee],H=l[W+ee+N],$=d[W+ee+N],X=Z*H-G*$;$=Z*$+G*H,H=X,l[W+ee]=V+H,d[W+ee]=P+$,l[W+ee+N]=V-H,d[W+ee+N]=P-$,ee!==m&&(X=o*Z-x*G,G=o*G+x*Z,Z=X)}},E.prototype.guessLen13b=function(r,s){var l=Math.max(s,r)|1,d=l&1,M=0;for(l=l/2|0;l;l=l>>>1)M++;return 1<<M+1+d},E.prototype.conjugate=function(r,s,l){if(!(l<=1))for(var d=0;d<l/2;d++){var M=r[d];r[d]=r[l-d-1],r[l-d-1]=M,M=s[d],s[d]=-s[l-d-1],s[l-d-1]=-M}},E.prototype.normalize13b=function(r,s){for(var l=0,d=0;d<s/2;d++){var M=Math.round(r[2*d+1]/s)*8192+Math.round(r[2*d]/s)+l;r[d]=M&67108863,M<67108864?l=0:l=M/67108864|0}return r},E.prototype.convert13b=function(r,s,l,d){for(var M=0,b=0;b<s;b++)M=M+(r[b]|0),l[2*b]=M&8191,M=M>>>13,l[2*b+1]=M&8191,M=M>>>13;for(b=2*s;b<d;++b)l[b]=0;a(M===0),a((M&-8192)===0)},E.prototype.stub=function(r){for(var s=new Array(r),l=0;l<r;l++)s[l]=0;return s},E.prototype.mulp=function(r,s,l){var d=2*this.guessLen13b(r.length,s.length),M=this.makeRBT(d),b=this.stub(d),N=new Array(d),m=new Array(d),o=new Array(d),x=new Array(d),W=new Array(d),Z=new Array(d),G=l.words;G.length=d,this.convert13b(r.words,r.length,N,d),this.convert13b(s.words,s.length,x,d),this.transform(N,b,m,o,d,M),this.transform(x,b,W,Z,d,M);for(var ee=0;ee<d;ee++){var V=m[ee]*W[ee]-o[ee]*Z[ee];o[ee]=m[ee]*Z[ee]+o[ee]*W[ee],m[ee]=V}return this.conjugate(m,o,d),this.transform(m,o,G,b,d,M),this.conjugate(G,b,d),this.normalize13b(G,d),l.negative=r.negative^s.negative,l.length=r.length+s.length,l.strip()},i.prototype.mul=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),this.mulTo(r,s)},i.prototype.mulf=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),L(this,r,s)},i.prototype.imul=function(r){return this.clone().mulTo(r,this)},i.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var s=0,l=0;l<this.length;l++){var d=(this.words[l]|0)*r,M=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=M>>>26,this.words[l]=M&67108863}return s!==0&&(this.words[l]=s,this.length++),this.length=r===0?1:this.length,this},i.prototype.muln=function(r){return this.clone().imuln(r)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(r){var s=j(r);if(s.length===0)return new i(1);for(var l=this,d=0;d<s.length&&s[d]===0;d++,l=l.sqr());if(++d<s.length)for(var M=l.sqr();d<s.length;d++,M=M.sqr())s[d]!==0&&(l=l.mul(M));return l},i.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=67108863>>>26-s<<26-s,M;if(s!==0){var b=0;for(M=0;M<this.length;M++){var N=this.words[M]&d,m=(this.words[M]|0)-N<<s;this.words[M]=m|b,b=N>>>26-s}b&&(this.words[M]=b,this.length++)}if(l!==0){for(M=this.length-1;M>=0;M--)this.words[M+l]=this.words[M];for(M=0;M<l;M++)this.words[M]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},i.prototype.iushrn=function(r,s,l){a(typeof r=="number"&&r>=0);var d;s?d=(s-s%26)/26:d=0;var M=r%26,b=Math.min((r-M)/26,this.length),N=67108863^67108863>>>M<<M,m=l;if(d-=b,d=Math.max(0,d),m){for(var o=0;o<b;o++)m.words[o]=this.words[o];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,o=0;o<this.length;o++)this.words[o]=this.words[o+b];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=d);o--){var W=this.words[o]|0;this.words[o]=x<<26-M|W>>>M,x=W&N}return m&&x!==0&&(m.words[m.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(r,s,l){return a(this.negative===0),this.iushrn(r,s,l)},i.prototype.shln=function(r){return this.clone().ishln(r)},i.prototype.ushln=function(r){return this.clone().iushln(r)},i.prototype.shrn=function(r){return this.clone().ishrn(r)},i.prototype.ushrn=function(r){return this.clone().iushrn(r)},i.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return!1;var M=this.words[l];return!!(M&d)},i.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var d=67108863^67108863>>>s<<s;this.words[this.length-1]&=d}return this.strip()},i.prototype.maskn=function(r){return this.clone().imaskn(r)},i.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},i.prototype._iaddn=function(r){this.words[0]+=r;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},i.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(r){return this.clone().iaddn(r)},i.prototype.subn=function(r){return this.clone().isubn(r)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(r,s,l){var d=r.length+l,M;this._expand(d);var b,N=0;for(M=0;M<r.length;M++){b=(this.words[M+l]|0)+N;var m=(r.words[M]|0)*s;b-=m&67108863,N=(b>>26)-(m/67108864|0),this.words[M+l]=b&67108863}for(;M<this.length-l;M++)b=(this.words[M+l]|0)+N,N=b>>26,this.words[M+l]=b&67108863;if(N===0)return this.strip();for(a(N===-1),N=0,M=0;M<this.length;M++)b=-(this.words[M]|0)+N,N=b>>26,this.words[M]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(r,s){var l=this.length-r.length,d=this.clone(),M=r,b=M.words[M.length-1]|0,N=this._countBits(b);l=26-N,l!==0&&(M=M.ushln(l),d.iushln(l),b=M.words[M.length-1]|0);var m=d.length-M.length,o;if(s!=="mod"){o=new i(null),o.length=m+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var W=d.clone()._ishlnsubmul(M,1,m);W.negative===0&&(d=W,o&&(o.words[m]=1));for(var Z=m-1;Z>=0;Z--){var G=(d.words[M.length+Z]|0)*67108864+(d.words[M.length+Z-1]|0);for(G=Math.min(G/b|0,67108863),d._ishlnsubmul(M,G,Z);d.negative!==0;)G--,d.negative=0,d._ishlnsubmul(M,1,Z),d.isZero()||(d.negative^=1);o&&(o.words[Z]=G)}return o&&o.strip(),d.strip(),s!=="div"&&l!==0&&d.iushrn(l),{div:o||null,mod:d}},i.prototype.divmod=function(r,s,l){if(a(!r.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var d,M,b;return this.negative!==0&&r.negative===0?(b=this.neg().divmod(r,s),s!=="mod"&&(d=b.div.neg()),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.iadd(r)),{div:d,mod:M}):this.negative===0&&r.negative!==0?(b=this.divmod(r.neg(),s),s!=="mod"&&(d=b.div.neg()),{div:d,mod:b.mod}):this.negative&r.negative?(b=this.neg().divmod(r.neg(),s),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.isub(r)),{div:b.div,mod:M}):r.length>this.length||this.cmp(r)<0?{div:new i(0),mod:this}:r.length===1?s==="div"?{div:this.divn(r.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new i(this.modn(r.words[0]))}:this._wordDiv(r,s)},i.prototype.div=function(r){return this.divmod(r,"div",!1).div},i.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},i.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},i.prototype.divRound=function(r){var s=this.divmod(r);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(r):s.mod,d=r.ushrn(1),M=r.andln(1),b=l.cmp(d);return b<0||M===1&&b===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(r){a(r<=67108863);for(var s=(1<<26)%r,l=0,d=this.length-1;d>=0;d--)l=(s*l+(this.words[d]|0))%r;return l},i.prototype.idivn=function(r){a(r<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var d=(this.words[l]|0)+s*67108864;this.words[l]=d/r|0,s=d%r}return this.strip()},i.prototype.divn=function(r){return this.clone().idivn(r)},i.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=new i(0),N=new i(1),m=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++m;for(var o=l.clone(),x=s.clone();!s.isZero();){for(var W=0,Z=1;!(s.words[0]&Z)&&W<26;++W,Z<<=1);if(W>0)for(s.iushrn(W);W-- >0;)(d.isOdd()||M.isOdd())&&(d.iadd(o),M.isub(x)),d.iushrn(1),M.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(b.isOdd()||N.isOdd())&&(b.iadd(o),N.isub(x)),b.iushrn(1),N.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(b),M.isub(N)):(l.isub(s),b.isub(d),N.isub(M))}return{a:b,b:N,gcd:l.iushln(m)}},i.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var N=0,m=1;!(s.words[0]&m)&&N<26;++N,m<<=1);if(N>0)for(s.iushrn(N);N-- >0;)d.isOdd()&&d.iadd(b),d.iushrn(1);for(var o=0,x=1;!(l.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(l.iushrn(o);o-- >0;)M.isOdd()&&M.iadd(b),M.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(M)):(l.isub(s),M.isub(d))}var W;return s.cmpn(1)===0?W=d:W=M,W.cmpn(0)<0&&W.iadd(r),W},i.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var s=this.clone(),l=r.clone();s.negative=0,l.negative=0;for(var d=0;s.isEven()&&l.isEven();d++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var M=s.cmp(l);if(M<0){var b=s;s=l,l=b}else if(M===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(d)},i.prototype.invm=function(r){return this.egcd(r).a.umod(r)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(r){return this.words[0]&r},i.prototype.bincn=function(r){a(typeof r=="number");var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=d,this;for(var M=d,b=l;M!==0&&b<this.length;b++){var N=this.words[b]|0;N+=M,M=N>>>26,N&=67108863,this.words[b]=N}return M!==0&&(this.words[b]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(r){var s=r<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(r=-r),a(r<=67108863,"Number is too big");var d=this.words[0]|0;l=d===r?0:d<r?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var s=this.ucmp(r);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var d=this.words[l]|0,M=r.words[l]|0;if(d!==M){d<M?s=-1:d>M&&(s=1);break}}return s},i.prototype.gtn=function(r){return this.cmpn(r)===1},i.prototype.gt=function(r){return this.cmp(r)===1},i.prototype.gten=function(r){return this.cmpn(r)>=0},i.prototype.gte=function(r){return this.cmp(r)>=0},i.prototype.ltn=function(r){return this.cmpn(r)===-1},i.prototype.lt=function(r){return this.cmp(r)===-1},i.prototype.lten=function(r){return this.cmpn(r)<=0},i.prototype.lte=function(r){return this.cmp(r)<=0},i.prototype.eqn=function(r){return this.cmpn(r)===0},i.prototype.eq=function(r){return this.cmp(r)===0},i.red=function(r){return new k(r)},i.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(r){return this.red=r,this},i.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},i.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},i.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},i.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},i.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},i.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},i.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},i.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var D={k256:null,p224:null,p192:null,p25519:null};function O(y,r){this.name=y,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var r=new i(null);return r.words=new Array(Math.ceil(this.n/13)),r},O.prototype.ireduce=function(r){var s=r,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var d=l<this.n?-1:s.ucmp(this.p);return d===0?(s.words[0]=0,s.length=1):d>0?s.isub(this.p):s.strip!==void 0?s.strip():s._strip(),s},O.prototype.split=function(r,s){r.iushrn(this.n,0,s)},O.prototype.imulK=function(r){return r.imul(this.k)};function F(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(F,O),F.prototype.split=function(r,s){for(var l=4194303,d=Math.min(r.length,9),M=0;M<d;M++)s.words[M]=r.words[M];if(s.length=d,r.length<=9){r.words[0]=0,r.length=1;return}var b=r.words[9];for(s.words[s.length++]=b&l,M=10;M<r.length;M++){var N=r.words[M]|0;r.words[M-10]=(N&l)<<4|b>>>22,b=N}b>>>=22,r.words[M-10]=b,b===0&&r.length>10?r.length-=10:r.length-=9},F.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var s=0,l=0;l<r.length;l++){var d=r.words[l]|0;s+=d*977,r.words[l]=s&67108863,s=d*64+(s/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function R(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(R,O);function Q(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,O);function B(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(B,O),B.prototype.imulK=function(r){for(var s=0,l=0;l<r.length;l++){var d=(r.words[l]|0)*19+s,M=d&67108863;d>>>=26,r.words[l]=M,s=d}return s!==0&&(r.words[r.length++]=s),r},i._prime=function(r){if(D[r])return D[r];var s;if(r==="k256")s=new F;else if(r==="p224")s=new R;else if(r==="p192")s=new Q;else if(r==="p25519")s=new B;else throw new Error("Unknown prime "+r);return D[r]=s,s};function k(y){if(typeof y=="string"){var r=i._prime(y);this.m=r.p,this.prime=r}else a(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}k.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},k.prototype._verify2=function(r,s){a((r.negative|s.negative)===0,"red works only with positives"),a(r.red&&r.red===s.red,"red works only with red numbers")},k.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},k.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},k.prototype.add=function(r,s){this._verify2(r,s);var l=r.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},k.prototype.iadd=function(r,s){this._verify2(r,s);var l=r.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},k.prototype.sub=function(r,s){this._verify2(r,s);var l=r.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},k.prototype.isub=function(r,s){this._verify2(r,s);var l=r.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},k.prototype.shl=function(r,s){return this._verify1(r),this.imod(r.ushln(s))},k.prototype.imul=function(r,s){return this._verify2(r,s),this.imod(r.imul(s))},k.prototype.mul=function(r,s){return this._verify2(r,s),this.imod(r.mul(s))},k.prototype.isqr=function(r){return this.imul(r,r.clone())},k.prototype.sqr=function(r){return this.mul(r,r)},k.prototype.sqrt=function(r){if(r.isZero())return r.clone();var s=this.m.andln(3);if(a(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(r,l)}for(var d=this.m.subn(1),M=0;!d.isZero()&&d.andln(1)===0;)M++,d.iushrn(1);a(!d.isZero());var b=new i(1).toRed(this),N=b.redNeg(),m=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,m).cmp(N)!==0;)o.redIAdd(N);for(var x=this.pow(o,d),W=this.pow(r,d.addn(1).iushrn(1)),Z=this.pow(r,d),G=M;Z.cmp(b)!==0;){for(var ee=Z,V=0;ee.cmp(b)!==0;V++)ee=ee.redSqr();a(V<G);var P=this.pow(x,new i(1).iushln(G-V-1));W=W.redMul(P),x=P.redSqr(),Z=Z.redMul(x),G=V}return W},k.prototype.invm=function(r){var s=r._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},k.prototype.pow=function(r,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return r.clone();var l=4,d=new Array(1<<l);d[0]=new i(1).toRed(this),d[1]=r;for(var M=2;M<d.length;M++)d[M]=this.mul(d[M-1],r);var b=d[0],N=0,m=0,o=s.bitLength()%26;for(o===0&&(o=26),M=s.length-1;M>=0;M--){for(var x=s.words[M],W=o-1;W>=0;W--){var Z=x>>W&1;if(b!==d[0]&&(b=this.sqr(b)),Z===0&&N===0){m=0;continue}N<<=1,N|=Z,m++,!(m!==l&&(M!==0||W!==0))&&(b=this.mul(b,d[N]),m=0,N=0)}o=26}return b},k.prototype.convertTo=function(r){var s=r.umod(this.m);return s===r?s.clone():s},k.prototype.convertFrom=function(r){var s=r.clone();return s.red=null,s},i.mont=function(r){return new z(r)};function z(y){k.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(z,k),z.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},z.prototype.convertFrom=function(r){var s=this.imod(r.mul(this.rinv));return s.red=null,s},z.prototype.imul=function(r,s){if(r.isZero()||s.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.mul=function(r,s){if(r.isZero()||s.isZero())return new i(0)._forceRed(this);var l=r.mul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.invm=function(r){var s=this.imod(r._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(e,_.commonjsGlobal)}(Ys)),Ys.exports}var Ws={exports:{}};Ws.exports;var D2;function Ax(){return D2||(D2=1,function(e){(function(t,n){function a(y,r){if(!y)throw new Error(r||"Assertion failed")}function c(y,r){y.super_=r;var s=function(){};s.prototype=r.prototype,y.prototype=new s,y.prototype.constructor=y}function i(y,r,s){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((r==="le"||r==="be")&&(s=r,r=10),this._init(y||0,r||10,s||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=_.bufferPolyfill.Buffer}catch{}i.isBN=function(r){return r instanceof i?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===i.wordSize&&Array.isArray(r.words)},i.max=function(r,s){return r.cmp(s)>0?r:s},i.min=function(r,s){return r.cmp(s)<0?r:s},i.prototype._init=function(r,s,l){if(typeof r=="number")return this._initNumber(r,s,l);if(typeof r=="object")return this._initArray(r,s,l);s==="hex"&&(s=16),a(s===(s|0)&&s>=2&&s<=36),r=r.toString().replace(/\s+/g,"");var d=0;r[0]==="-"&&(d++,this.negative=1),d<r.length&&(s===16?this._parseHex(r,d,l):(this._parseBase(r,s,d),l==="le"&&this._initArray(this.toArray(),s,l)))},i.prototype._initNumber=function(r,s,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(r,s,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M,b,N=0;if(l==="be")for(d=r.length-1,M=0;d>=0;d-=3)b=r[d]|r[d-1]<<8|r[d-2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);else if(l==="le")for(d=0,M=0;d<r.length;d+=3)b=r[d]|r[d+1]<<8|r[d+2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);return this.strip()};function f(y,r){var s=y.charCodeAt(r);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function p(y,r,s){var l=f(y,s);return s-1>=r&&(l|=f(y,s-1)<<4),l}i.prototype._parseHex=function(r,s,l){this.length=Math.ceil((r.length-s)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M=0,b=0,N;if(l==="be")for(d=r.length-1;d>=s;d-=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8;else{var m=r.length-s;for(d=m%2===0?s+1:s;d<r.length;d+=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8}this.strip()};function h(y,r,s,l){for(var d=0,M=Math.min(y.length,s),b=r;b<M;b++){var N=y.charCodeAt(b)-48;d*=l,N>=49?d+=N-49+10:N>=17?d+=N-17+10:d+=N}return d}i.prototype._parseBase=function(r,s,l){this.words=[0],this.length=1;for(var d=0,M=1;M<=67108863;M*=s)d++;d--,M=M/s|0;for(var b=r.length-l,N=b%d,m=Math.min(b,b-N)+l,o=0,x=l;x<m;x+=d)o=h(r,x,x+d,s),this.imuln(M),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(N!==0){var W=1;for(o=h(r,x,r.length,s),x=0;x<N;x++)W*=s;this.imuln(W),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(r){r.words=new Array(this.length);for(var s=0;s<this.length;s++)r.words[s]=this.words[s];r.length=this.length,r.negative=this.negative,r.red=this.red},i.prototype.clone=function(){var r=new i(null);return this.copy(r),r},i.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(r,s){r=r||10,s=s|0||1;var l;if(r===16||r==="hex"){l="";for(var d=0,M=0,b=0;b<this.length;b++){var N=this.words[b],m=((N<<d|M)&16777215).toString(16);M=N>>>24-d&16777215,d+=2,d>=26&&(d-=26,b--),M!==0||b!==this.length-1?l=g[6-m.length]+m+l:l=m+l}for(M!==0&&(l=M.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var o=C[r],x=w[r];l="";var W=this.clone();for(W.negative=0;!W.isZero();){var Z=W.modn(x).toString(r);W=W.idivn(x),W.isZero()?l=Z+l:l=g[o-Z.length]+Z+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(r,s){return a(typeof u<"u"),this.toArrayLike(u,r,s)},i.prototype.toArray=function(r,s){return this.toArrayLike(Array,r,s)},i.prototype.toArrayLike=function(r,s,l){var d=this.byteLength(),M=l||Math.max(1,d);a(d<=M,"byte array longer than desired length"),a(M>0,"Requested array length <= 0"),this.strip();var b=s==="le",N=new r(M),m,o,x=this.clone();if(b){for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[o]=m;for(;o<M;o++)N[o]=0}else{for(o=0;o<M-d;o++)N[o]=0;for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[M-o-1]=m}return N},Math.clz32?i.prototype._countBits=function(r){return 32-Math.clz32(r)}:i.prototype._countBits=function(r){var s=r,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(r){if(r===0)return 26;var s=r,l=0;return s&8191||(l+=13,s>>>=13),s&127||(l+=7,s>>>=7),s&15||(l+=4,s>>>=4),s&3||(l+=2,s>>>=2),s&1||l++,l},i.prototype.bitLength=function(){var r=this.words[this.length-1],s=this._countBits(r);return(this.length-1)*26+s};function j(y){for(var r=new Array(y.bitLength()),s=0;s<r.length;s++){var l=s/26|0,d=s%26;r[s]=(y.words[l]&1<<d)>>>d}return r}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(r+=l,l!==26)break}return r},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},i.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var s=0;s<r.length;s++)this.words[s]=this.words[s]|r.words[s];return this.strip()},i.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},i.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},i.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},i.prototype.iuand=function(r){var s;this.length>r.length?s=r:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},i.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},i.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},i.prototype.iuxor=function(r){var s,l;this.length>r.length?(s=this,l=r):(s=r,l=this);for(var d=0;d<l.length;d++)this.words[d]=s.words[d]^l.words[d];if(this!==s)for(;d<s.length;d++)this.words[d]=s.words[d];return this.length=s.length,this.strip()},i.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},i.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},i.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},i.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var s=Math.ceil(r/26)|0,l=r%26;this._expand(s),l>0&&s--;for(var d=0;d<s;d++)this.words[d]=~this.words[d]&67108863;return l>0&&(this.words[d]=~this.words[d]&67108863>>26-l),this.strip()},i.prototype.notn=function(r){return this.clone().inotn(r)},i.prototype.setn=function(r,s){a(typeof r=="number"&&r>=0);var l=r/26|0,d=r%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<d:this.words[l]=this.words[l]&~(1<<d),this.strip()},i.prototype.iadd=function(r){var s;if(this.negative!==0&&r.negative===0)return this.negative=0,s=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,s=this.isub(r),r.negative=1,s._normSign();var l,d;this.length>r.length?(l=this,d=r):(l=r,d=this);for(var M=0,b=0;b<d.length;b++)s=(l.words[b]|0)+(d.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;for(;M!==0&&b<l.length;b++)s=(l.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;if(this.length=l.length,M!==0)this.words[this.length]=M,this.length++;else if(l!==this)for(;b<l.length;b++)this.words[b]=l.words[b];return this},i.prototype.add=function(r){var s;return r.negative!==0&&this.negative===0?(r.negative=0,s=this.sub(r),r.negative^=1,s):r.negative===0&&this.negative!==0?(this.negative=0,s=r.sub(this),this.negative=1,s):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},i.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var s=this.iadd(r);return r.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var d,M;l>0?(d=this,M=r):(d=r,M=this);for(var b=0,N=0;N<M.length;N++)s=(d.words[N]|0)-(M.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;for(;b!==0&&N<d.length;N++)s=(d.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;if(b===0&&N<d.length&&d!==this)for(;N<d.length;N++)this.words[N]=d.words[N];return this.length=Math.max(this.length,N),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(r){return this.clone().isub(r)};function I(y,r,s){s.negative=r.negative^y.negative;var l=y.length+r.length|0;s.length=l,l=l-1|0;var d=y.words[0]|0,M=r.words[0]|0,b=d*M,N=b&67108863,m=b/67108864|0;s.words[0]=N;for(var o=1;o<l;o++){for(var x=m>>>26,W=m&67108863,Z=Math.min(o,r.length-1),G=Math.max(0,o-y.length+1);G<=Z;G++){var ee=o-G|0;d=y.words[ee]|0,M=r.words[G]|0,b=d*M+W,x+=b/67108864|0,W=b&67108863}s.words[o]=W|0,m=x|0}return m!==0?s.words[o]=m|0:s.length--,s.strip()}var T=function(r,s,l){var d=r.words,M=s.words,b=l.words,N=0,m,o,x,W=d[0]|0,Z=W&8191,G=W>>>13,ee=d[1]|0,V=ee&8191,P=ee>>>13,H=d[2]|0,$=H&8191,X=H>>>13,te=d[3]|0,Y=te&8191,ne=te>>>13,xe=d[4]|0,le=xe&8191,ue=xe>>>13,Ve=d[5]|0,he=Ve&8191,be=Ve>>>13,st=d[6]|0,Me=st&8191,oe=st>>>13,We=d[7]|0,de=We&8191,ye=We>>>13,mt=d[8]|0,je=mt&8191,Ae=mt>>>13,Tt=d[9]|0,De=Tt&8191,ve=Tt>>>13,jt=M[0]|0,Ee=jt&8191,Le=jt>>>13,Ot=M[1]|0,me=Ot&8191,Ce=Ot>>>13,xt=M[2]|0,Se=xt&8191,Oe=xt>>>13,Wt=M[3]|0,ze=Wt&8191,ke=Wt>>>13,er=M[4]|0,Fe=er&8191,Re=er>>>13,Mt=M[5]|0,_e=Mt&8191,Pe=Mt>>>13,Tr=M[6]|0,Be=Tr&8191,Ue=Tr>>>13,q=M[7]|0,K=q&8191,J=q>>>13,U=M[8]|0,re=U&8191,se=U>>>13,we=M[9]|0,ce=we&8191,pe=we>>>13;l.negative=r.negative^s.negative,l.length=19,m=Math.imul(Z,Ee),o=Math.imul(Z,Le),o=o+Math.imul(G,Ee)|0,x=Math.imul(G,Le);var ot=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(V,Ee),o=Math.imul(V,Le),o=o+Math.imul(P,Ee)|0,x=Math.imul(P,Le),m=m+Math.imul(Z,me)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(G,me)|0,x=x+Math.imul(G,Ce)|0;var qe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul($,Ee),o=Math.imul($,Le),o=o+Math.imul(X,Ee)|0,x=Math.imul(X,Le),m=m+Math.imul(V,me)|0,o=o+Math.imul(V,Ce)|0,o=o+Math.imul(P,me)|0,x=x+Math.imul(P,Ce)|0,m=m+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Oe)|0,o=o+Math.imul(G,Se)|0,x=x+Math.imul(G,Oe)|0;var Ct=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,m=Math.imul(Y,Ee),o=Math.imul(Y,Le),o=o+Math.imul(ne,Ee)|0,x=Math.imul(ne,Le),m=m+Math.imul($,me)|0,o=o+Math.imul($,Ce)|0,o=o+Math.imul(X,me)|0,x=x+Math.imul(X,Ce)|0,m=m+Math.imul(V,Se)|0,o=o+Math.imul(V,Oe)|0,o=o+Math.imul(P,Se)|0,x=x+Math.imul(P,Oe)|0,m=m+Math.imul(Z,ze)|0,o=o+Math.imul(Z,ke)|0,o=o+Math.imul(G,ze)|0,x=x+Math.imul(G,ke)|0;var et=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(le,Ee),o=Math.imul(le,Le),o=o+Math.imul(ue,Ee)|0,x=Math.imul(ue,Le),m=m+Math.imul(Y,me)|0,o=o+Math.imul(Y,Ce)|0,o=o+Math.imul(ne,me)|0,x=x+Math.imul(ne,Ce)|0,m=m+Math.imul($,Se)|0,o=o+Math.imul($,Oe)|0,o=o+Math.imul(X,Se)|0,x=x+Math.imul(X,Oe)|0,m=m+Math.imul(V,ze)|0,o=o+Math.imul(V,ke)|0,o=o+Math.imul(P,ze)|0,x=x+Math.imul(P,ke)|0,m=m+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(G,Fe)|0,x=x+Math.imul(G,Re)|0;var lt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(he,Ee),o=Math.imul(he,Le),o=o+Math.imul(be,Ee)|0,x=Math.imul(be,Le),m=m+Math.imul(le,me)|0,o=o+Math.imul(le,Ce)|0,o=o+Math.imul(ue,me)|0,x=x+Math.imul(ue,Ce)|0,m=m+Math.imul(Y,Se)|0,o=o+Math.imul(Y,Oe)|0,o=o+Math.imul(ne,Se)|0,x=x+Math.imul(ne,Oe)|0,m=m+Math.imul($,ze)|0,o=o+Math.imul($,ke)|0,o=o+Math.imul(X,ze)|0,x=x+Math.imul(X,ke)|0,m=m+Math.imul(V,Fe)|0,o=o+Math.imul(V,Re)|0,o=o+Math.imul(P,Fe)|0,x=x+Math.imul(P,Re)|0,m=m+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Pe)|0,o=o+Math.imul(G,_e)|0,x=x+Math.imul(G,Pe)|0;var ft=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,m=Math.imul(Me,Ee),o=Math.imul(Me,Le),o=o+Math.imul(oe,Ee)|0,x=Math.imul(oe,Le),m=m+Math.imul(he,me)|0,o=o+Math.imul(he,Ce)|0,o=o+Math.imul(be,me)|0,x=x+Math.imul(be,Ce)|0,m=m+Math.imul(le,Se)|0,o=o+Math.imul(le,Oe)|0,o=o+Math.imul(ue,Se)|0,x=x+Math.imul(ue,Oe)|0,m=m+Math.imul(Y,ze)|0,o=o+Math.imul(Y,ke)|0,o=o+Math.imul(ne,ze)|0,x=x+Math.imul(ne,ke)|0,m=m+Math.imul($,Fe)|0,o=o+Math.imul($,Re)|0,o=o+Math.imul(X,Fe)|0,x=x+Math.imul(X,Re)|0,m=m+Math.imul(V,_e)|0,o=o+Math.imul(V,Pe)|0,o=o+Math.imul(P,_e)|0,x=x+Math.imul(P,Pe)|0,m=m+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ue)|0,o=o+Math.imul(G,Be)|0,x=x+Math.imul(G,Ue)|0;var gt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(de,Ee),o=Math.imul(de,Le),o=o+Math.imul(ye,Ee)|0,x=Math.imul(ye,Le),m=m+Math.imul(Me,me)|0,o=o+Math.imul(Me,Ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,Ce)|0,m=m+Math.imul(he,Se)|0,o=o+Math.imul(he,Oe)|0,o=o+Math.imul(be,Se)|0,x=x+Math.imul(be,Oe)|0,m=m+Math.imul(le,ze)|0,o=o+Math.imul(le,ke)|0,o=o+Math.imul(ue,ze)|0,x=x+Math.imul(ue,ke)|0,m=m+Math.imul(Y,Fe)|0,o=o+Math.imul(Y,Re)|0,o=o+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,Re)|0,m=m+Math.imul($,_e)|0,o=o+Math.imul($,Pe)|0,o=o+Math.imul(X,_e)|0,x=x+Math.imul(X,Pe)|0,m=m+Math.imul(V,Be)|0,o=o+Math.imul(V,Ue)|0,o=o+Math.imul(P,Be)|0,x=x+Math.imul(P,Ue)|0,m=m+Math.imul(Z,K)|0,o=o+Math.imul(Z,J)|0,o=o+Math.imul(G,K)|0,x=x+Math.imul(G,J)|0;var pt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(je,Ee),o=Math.imul(je,Le),o=o+Math.imul(Ae,Ee)|0,x=Math.imul(Ae,Le),m=m+Math.imul(de,me)|0,o=o+Math.imul(de,Ce)|0,o=o+Math.imul(ye,me)|0,x=x+Math.imul(ye,Ce)|0,m=m+Math.imul(Me,Se)|0,o=o+Math.imul(Me,Oe)|0,o=o+Math.imul(oe,Se)|0,x=x+Math.imul(oe,Oe)|0,m=m+Math.imul(he,ze)|0,o=o+Math.imul(he,ke)|0,o=o+Math.imul(be,ze)|0,x=x+Math.imul(be,ke)|0,m=m+Math.imul(le,Fe)|0,o=o+Math.imul(le,Re)|0,o=o+Math.imul(ue,Fe)|0,x=x+Math.imul(ue,Re)|0,m=m+Math.imul(Y,_e)|0,o=o+Math.imul(Y,Pe)|0,o=o+Math.imul(ne,_e)|0,x=x+Math.imul(ne,Pe)|0,m=m+Math.imul($,Be)|0,o=o+Math.imul($,Ue)|0,o=o+Math.imul(X,Be)|0,x=x+Math.imul(X,Ue)|0,m=m+Math.imul(V,K)|0,o=o+Math.imul(V,J)|0,o=o+Math.imul(P,K)|0,x=x+Math.imul(P,J)|0,m=m+Math.imul(Z,re)|0,o=o+Math.imul(Z,se)|0,o=o+Math.imul(G,re)|0,x=x+Math.imul(G,se)|0;var ut=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ut>>>26)|0,ut&=67108863,m=Math.imul(De,Ee),o=Math.imul(De,Le),o=o+Math.imul(ve,Ee)|0,x=Math.imul(ve,Le),m=m+Math.imul(je,me)|0,o=o+Math.imul(je,Ce)|0,o=o+Math.imul(Ae,me)|0,x=x+Math.imul(Ae,Ce)|0,m=m+Math.imul(de,Se)|0,o=o+Math.imul(de,Oe)|0,o=o+Math.imul(ye,Se)|0,x=x+Math.imul(ye,Oe)|0,m=m+Math.imul(Me,ze)|0,o=o+Math.imul(Me,ke)|0,o=o+Math.imul(oe,ze)|0,x=x+Math.imul(oe,ke)|0,m=m+Math.imul(he,Fe)|0,o=o+Math.imul(he,Re)|0,o=o+Math.imul(be,Fe)|0,x=x+Math.imul(be,Re)|0,m=m+Math.imul(le,_e)|0,o=o+Math.imul(le,Pe)|0,o=o+Math.imul(ue,_e)|0,x=x+Math.imul(ue,Pe)|0,m=m+Math.imul(Y,Be)|0,o=o+Math.imul(Y,Ue)|0,o=o+Math.imul(ne,Be)|0,x=x+Math.imul(ne,Ue)|0,m=m+Math.imul($,K)|0,o=o+Math.imul($,J)|0,o=o+Math.imul(X,K)|0,x=x+Math.imul(X,J)|0,m=m+Math.imul(V,re)|0,o=o+Math.imul(V,se)|0,o=o+Math.imul(P,re)|0,x=x+Math.imul(P,se)|0,m=m+Math.imul(Z,ce)|0,o=o+Math.imul(Z,pe)|0,o=o+Math.imul(G,ce)|0,x=x+Math.imul(G,pe)|0;var ht=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(De,me),o=Math.imul(De,Ce),o=o+Math.imul(ve,me)|0,x=Math.imul(ve,Ce),m=m+Math.imul(je,Se)|0,o=o+Math.imul(je,Oe)|0,o=o+Math.imul(Ae,Se)|0,x=x+Math.imul(Ae,Oe)|0,m=m+Math.imul(de,ze)|0,o=o+Math.imul(de,ke)|0,o=o+Math.imul(ye,ze)|0,x=x+Math.imul(ye,ke)|0,m=m+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Re)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Re)|0,m=m+Math.imul(he,_e)|0,o=o+Math.imul(he,Pe)|0,o=o+Math.imul(be,_e)|0,x=x+Math.imul(be,Pe)|0,m=m+Math.imul(le,Be)|0,o=o+Math.imul(le,Ue)|0,o=o+Math.imul(ue,Be)|0,x=x+Math.imul(ue,Ue)|0,m=m+Math.imul(Y,K)|0,o=o+Math.imul(Y,J)|0,o=o+Math.imul(ne,K)|0,x=x+Math.imul(ne,J)|0,m=m+Math.imul($,re)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(X,re)|0,x=x+Math.imul(X,se)|0,m=m+Math.imul(V,ce)|0,o=o+Math.imul(V,pe)|0,o=o+Math.imul(P,ce)|0,x=x+Math.imul(P,pe)|0;var dt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(De,Se),o=Math.imul(De,Oe),o=o+Math.imul(ve,Se)|0,x=Math.imul(ve,Oe),m=m+Math.imul(je,ze)|0,o=o+Math.imul(je,ke)|0,o=o+Math.imul(Ae,ze)|0,x=x+Math.imul(Ae,ke)|0,m=m+Math.imul(de,Fe)|0,o=o+Math.imul(de,Re)|0,o=o+Math.imul(ye,Fe)|0,x=x+Math.imul(ye,Re)|0,m=m+Math.imul(Me,_e)|0,o=o+Math.imul(Me,Pe)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Pe)|0,m=m+Math.imul(he,Be)|0,o=o+Math.imul(he,Ue)|0,o=o+Math.imul(be,Be)|0,x=x+Math.imul(be,Ue)|0,m=m+Math.imul(le,K)|0,o=o+Math.imul(le,J)|0,o=o+Math.imul(ue,K)|0,x=x+Math.imul(ue,J)|0,m=m+Math.imul(Y,re)|0,o=o+Math.imul(Y,se)|0,o=o+Math.imul(ne,re)|0,x=x+Math.imul(ne,se)|0,m=m+Math.imul($,ce)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(X,ce)|0,x=x+Math.imul(X,pe)|0;var rt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(De,ze),o=Math.imul(De,ke),o=o+Math.imul(ve,ze)|0,x=Math.imul(ve,ke),m=m+Math.imul(je,Fe)|0,o=o+Math.imul(je,Re)|0,o=o+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,Re)|0,m=m+Math.imul(de,_e)|0,o=o+Math.imul(de,Pe)|0,o=o+Math.imul(ye,_e)|0,x=x+Math.imul(ye,Pe)|0,m=m+Math.imul(Me,Be)|0,o=o+Math.imul(Me,Ue)|0,o=o+Math.imul(oe,Be)|0,x=x+Math.imul(oe,Ue)|0,m=m+Math.imul(he,K)|0,o=o+Math.imul(he,J)|0,o=o+Math.imul(be,K)|0,x=x+Math.imul(be,J)|0,m=m+Math.imul(le,re)|0,o=o+Math.imul(le,se)|0,o=o+Math.imul(ue,re)|0,x=x+Math.imul(ue,se)|0,m=m+Math.imul(Y,ce)|0,o=o+Math.imul(Y,pe)|0,o=o+Math.imul(ne,ce)|0,x=x+Math.imul(ne,pe)|0;var at=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(De,Fe),o=Math.imul(De,Re),o=o+Math.imul(ve,Fe)|0,x=Math.imul(ve,Re),m=m+Math.imul(je,_e)|0,o=o+Math.imul(je,Pe)|0,o=o+Math.imul(Ae,_e)|0,x=x+Math.imul(Ae,Pe)|0,m=m+Math.imul(de,Be)|0,o=o+Math.imul(de,Ue)|0,o=o+Math.imul(ye,Be)|0,x=x+Math.imul(ye,Ue)|0,m=m+Math.imul(Me,K)|0,o=o+Math.imul(Me,J)|0,o=o+Math.imul(oe,K)|0,x=x+Math.imul(oe,J)|0,m=m+Math.imul(he,re)|0,o=o+Math.imul(he,se)|0,o=o+Math.imul(be,re)|0,x=x+Math.imul(be,se)|0,m=m+Math.imul(le,ce)|0,o=o+Math.imul(le,pe)|0,o=o+Math.imul(ue,ce)|0,x=x+Math.imul(ue,pe)|0;var Xe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(De,_e),o=Math.imul(De,Pe),o=o+Math.imul(ve,_e)|0,x=Math.imul(ve,Pe),m=m+Math.imul(je,Be)|0,o=o+Math.imul(je,Ue)|0,o=o+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,Ue)|0,m=m+Math.imul(de,K)|0,o=o+Math.imul(de,J)|0,o=o+Math.imul(ye,K)|0,x=x+Math.imul(ye,J)|0,m=m+Math.imul(Me,re)|0,o=o+Math.imul(Me,se)|0,o=o+Math.imul(oe,re)|0,x=x+Math.imul(oe,se)|0,m=m+Math.imul(he,ce)|0,o=o+Math.imul(he,pe)|0,o=o+Math.imul(be,ce)|0,x=x+Math.imul(be,pe)|0;var nt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(De,Be),o=Math.imul(De,Ue),o=o+Math.imul(ve,Be)|0,x=Math.imul(ve,Ue),m=m+Math.imul(je,K)|0,o=o+Math.imul(je,J)|0,o=o+Math.imul(Ae,K)|0,x=x+Math.imul(Ae,J)|0,m=m+Math.imul(de,re)|0,o=o+Math.imul(de,se)|0,o=o+Math.imul(ye,re)|0,x=x+Math.imul(ye,se)|0,m=m+Math.imul(Me,ce)|0,o=o+Math.imul(Me,pe)|0,o=o+Math.imul(oe,ce)|0,x=x+Math.imul(oe,pe)|0;var it=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(De,K),o=Math.imul(De,J),o=o+Math.imul(ve,K)|0,x=Math.imul(ve,J),m=m+Math.imul(je,re)|0,o=o+Math.imul(je,se)|0,o=o+Math.imul(Ae,re)|0,x=x+Math.imul(Ae,se)|0,m=m+Math.imul(de,ce)|0,o=o+Math.imul(de,pe)|0,o=o+Math.imul(ye,ce)|0,x=x+Math.imul(ye,pe)|0;var Ge=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(De,re),o=Math.imul(De,se),o=o+Math.imul(ve,re)|0,x=Math.imul(ve,se),m=m+Math.imul(je,ce)|0,o=o+Math.imul(je,pe)|0,o=o+Math.imul(Ae,ce)|0,x=x+Math.imul(Ae,pe)|0;var Te=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,m=Math.imul(De,ce),o=Math.imul(De,pe),o=o+Math.imul(ve,ce)|0,x=Math.imul(ve,pe);var Ie=(N+m|0)+((o&8191)<<13)|0;return N=(x+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b[0]=ot,b[1]=qe,b[2]=Ct,b[3]=et,b[4]=lt,b[5]=ft,b[6]=gt,b[7]=pt,b[8]=ut,b[9]=ht,b[10]=dt,b[11]=rt,b[12]=at,b[13]=Xe,b[14]=nt,b[15]=it,b[16]=Ge,b[17]=Te,b[18]=Ie,N!==0&&(b[19]=N,l.length++),l};Math.imul||(T=I);function S(y,r,s){s.negative=r.negative^y.negative,s.length=y.length+r.length;for(var l=0,d=0,M=0;M<s.length-1;M++){var b=d;d=0;for(var N=l&67108863,m=Math.min(M,r.length-1),o=Math.max(0,M-y.length+1);o<=m;o++){var x=M-o,W=y.words[x]|0,Z=r.words[o]|0,G=W*Z,ee=G&67108863;b=b+(G/67108864|0)|0,ee=ee+N|0,N=ee&67108863,b=b+(ee>>>26)|0,d+=b>>>26,b&=67108863}s.words[M]=N,l=b,b=d}return l!==0?s.words[M]=l:s.length--,s.strip()}function L(y,r,s){var l=new E;return l.mulp(y,r,s)}i.prototype.mulTo=function(r,s){var l,d=this.length+r.length;return this.length===10&&r.length===10?l=T(this,r,s):d<63?l=I(this,r,s):d<1024?l=S(this,r,s):l=L(this,r,s),l};function E(y,r){this.x=y,this.y=r}E.prototype.makeRBT=function(r){for(var s=new Array(r),l=i.prototype._countBits(r)-1,d=0;d<r;d++)s[d]=this.revBin(d,l,r);return s},E.prototype.revBin=function(r,s,l){if(r===0||r===l-1)return r;for(var d=0,M=0;M<s;M++)d|=(r&1)<<s-M-1,r>>=1;return d},E.prototype.permute=function(r,s,l,d,M,b){for(var N=0;N<b;N++)d[N]=s[r[N]],M[N]=l[r[N]]},E.prototype.transform=function(r,s,l,d,M,b){this.permute(b,r,s,l,d,M);for(var N=1;N<M;N<<=1)for(var m=N<<1,o=Math.cos(2*Math.PI/m),x=Math.sin(2*Math.PI/m),W=0;W<M;W+=m)for(var Z=o,G=x,ee=0;ee<N;ee++){var V=l[W+ee],P=d[W+ee],H=l[W+ee+N],$=d[W+ee+N],X=Z*H-G*$;$=Z*$+G*H,H=X,l[W+ee]=V+H,d[W+ee]=P+$,l[W+ee+N]=V-H,d[W+ee+N]=P-$,ee!==m&&(X=o*Z-x*G,G=o*G+x*Z,Z=X)}},E.prototype.guessLen13b=function(r,s){var l=Math.max(s,r)|1,d=l&1,M=0;for(l=l/2|0;l;l=l>>>1)M++;return 1<<M+1+d},E.prototype.conjugate=function(r,s,l){if(!(l<=1))for(var d=0;d<l/2;d++){var M=r[d];r[d]=r[l-d-1],r[l-d-1]=M,M=s[d],s[d]=-s[l-d-1],s[l-d-1]=-M}},E.prototype.normalize13b=function(r,s){for(var l=0,d=0;d<s/2;d++){var M=Math.round(r[2*d+1]/s)*8192+Math.round(r[2*d]/s)+l;r[d]=M&67108863,M<67108864?l=0:l=M/67108864|0}return r},E.prototype.convert13b=function(r,s,l,d){for(var M=0,b=0;b<s;b++)M=M+(r[b]|0),l[2*b]=M&8191,M=M>>>13,l[2*b+1]=M&8191,M=M>>>13;for(b=2*s;b<d;++b)l[b]=0;a(M===0),a((M&-8192)===0)},E.prototype.stub=function(r){for(var s=new Array(r),l=0;l<r;l++)s[l]=0;return s},E.prototype.mulp=function(r,s,l){var d=2*this.guessLen13b(r.length,s.length),M=this.makeRBT(d),b=this.stub(d),N=new Array(d),m=new Array(d),o=new Array(d),x=new Array(d),W=new Array(d),Z=new Array(d),G=l.words;G.length=d,this.convert13b(r.words,r.length,N,d),this.convert13b(s.words,s.length,x,d),this.transform(N,b,m,o,d,M),this.transform(x,b,W,Z,d,M);for(var ee=0;ee<d;ee++){var V=m[ee]*W[ee]-o[ee]*Z[ee];o[ee]=m[ee]*Z[ee]+o[ee]*W[ee],m[ee]=V}return this.conjugate(m,o,d),this.transform(m,o,G,b,d,M),this.conjugate(G,b,d),this.normalize13b(G,d),l.negative=r.negative^s.negative,l.length=r.length+s.length,l.strip()},i.prototype.mul=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),this.mulTo(r,s)},i.prototype.mulf=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),L(this,r,s)},i.prototype.imul=function(r){return this.clone().mulTo(r,this)},i.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var s=0,l=0;l<this.length;l++){var d=(this.words[l]|0)*r,M=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=M>>>26,this.words[l]=M&67108863}return s!==0&&(this.words[l]=s,this.length++),this.length=r===0?1:this.length,this},i.prototype.muln=function(r){return this.clone().imuln(r)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(r){var s=j(r);if(s.length===0)return new i(1);for(var l=this,d=0;d<s.length&&s[d]===0;d++,l=l.sqr());if(++d<s.length)for(var M=l.sqr();d<s.length;d++,M=M.sqr())s[d]!==0&&(l=l.mul(M));return l},i.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=67108863>>>26-s<<26-s,M;if(s!==0){var b=0;for(M=0;M<this.length;M++){var N=this.words[M]&d,m=(this.words[M]|0)-N<<s;this.words[M]=m|b,b=N>>>26-s}b&&(this.words[M]=b,this.length++)}if(l!==0){for(M=this.length-1;M>=0;M--)this.words[M+l]=this.words[M];for(M=0;M<l;M++)this.words[M]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},i.prototype.iushrn=function(r,s,l){a(typeof r=="number"&&r>=0);var d;s?d=(s-s%26)/26:d=0;var M=r%26,b=Math.min((r-M)/26,this.length),N=67108863^67108863>>>M<<M,m=l;if(d-=b,d=Math.max(0,d),m){for(var o=0;o<b;o++)m.words[o]=this.words[o];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,o=0;o<this.length;o++)this.words[o]=this.words[o+b];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=d);o--){var W=this.words[o]|0;this.words[o]=x<<26-M|W>>>M,x=W&N}return m&&x!==0&&(m.words[m.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(r,s,l){return a(this.negative===0),this.iushrn(r,s,l)},i.prototype.shln=function(r){return this.clone().ishln(r)},i.prototype.ushln=function(r){return this.clone().iushln(r)},i.prototype.shrn=function(r){return this.clone().ishrn(r)},i.prototype.ushrn=function(r){return this.clone().iushrn(r)},i.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return!1;var M=this.words[l];return!!(M&d)},i.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var d=67108863^67108863>>>s<<s;this.words[this.length-1]&=d}return this.strip()},i.prototype.maskn=function(r){return this.clone().imaskn(r)},i.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},i.prototype._iaddn=function(r){this.words[0]+=r;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},i.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(r){return this.clone().iaddn(r)},i.prototype.subn=function(r){return this.clone().isubn(r)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(r,s,l){var d=r.length+l,M;this._expand(d);var b,N=0;for(M=0;M<r.length;M++){b=(this.words[M+l]|0)+N;var m=(r.words[M]|0)*s;b-=m&67108863,N=(b>>26)-(m/67108864|0),this.words[M+l]=b&67108863}for(;M<this.length-l;M++)b=(this.words[M+l]|0)+N,N=b>>26,this.words[M+l]=b&67108863;if(N===0)return this.strip();for(a(N===-1),N=0,M=0;M<this.length;M++)b=-(this.words[M]|0)+N,N=b>>26,this.words[M]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(r,s){var l=this.length-r.length,d=this.clone(),M=r,b=M.words[M.length-1]|0,N=this._countBits(b);l=26-N,l!==0&&(M=M.ushln(l),d.iushln(l),b=M.words[M.length-1]|0);var m=d.length-M.length,o;if(s!=="mod"){o=new i(null),o.length=m+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var W=d.clone()._ishlnsubmul(M,1,m);W.negative===0&&(d=W,o&&(o.words[m]=1));for(var Z=m-1;Z>=0;Z--){var G=(d.words[M.length+Z]|0)*67108864+(d.words[M.length+Z-1]|0);for(G=Math.min(G/b|0,67108863),d._ishlnsubmul(M,G,Z);d.negative!==0;)G--,d.negative=0,d._ishlnsubmul(M,1,Z),d.isZero()||(d.negative^=1);o&&(o.words[Z]=G)}return o&&o.strip(),d.strip(),s!=="div"&&l!==0&&d.iushrn(l),{div:o||null,mod:d}},i.prototype.divmod=function(r,s,l){if(a(!r.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var d,M,b;return this.negative!==0&&r.negative===0?(b=this.neg().divmod(r,s),s!=="mod"&&(d=b.div.neg()),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.iadd(r)),{div:d,mod:M}):this.negative===0&&r.negative!==0?(b=this.divmod(r.neg(),s),s!=="mod"&&(d=b.div.neg()),{div:d,mod:b.mod}):this.negative&r.negative?(b=this.neg().divmod(r.neg(),s),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.isub(r)),{div:b.div,mod:M}):r.length>this.length||this.cmp(r)<0?{div:new i(0),mod:this}:r.length===1?s==="div"?{div:this.divn(r.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new i(this.modn(r.words[0]))}:this._wordDiv(r,s)},i.prototype.div=function(r){return this.divmod(r,"div",!1).div},i.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},i.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},i.prototype.divRound=function(r){var s=this.divmod(r);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(r):s.mod,d=r.ushrn(1),M=r.andln(1),b=l.cmp(d);return b<0||M===1&&b===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(r){a(r<=67108863);for(var s=(1<<26)%r,l=0,d=this.length-1;d>=0;d--)l=(s*l+(this.words[d]|0))%r;return l},i.prototype.idivn=function(r){a(r<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var d=(this.words[l]|0)+s*67108864;this.words[l]=d/r|0,s=d%r}return this.strip()},i.prototype.divn=function(r){return this.clone().idivn(r)},i.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=new i(0),N=new i(1),m=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++m;for(var o=l.clone(),x=s.clone();!s.isZero();){for(var W=0,Z=1;!(s.words[0]&Z)&&W<26;++W,Z<<=1);if(W>0)for(s.iushrn(W);W-- >0;)(d.isOdd()||M.isOdd())&&(d.iadd(o),M.isub(x)),d.iushrn(1),M.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(b.isOdd()||N.isOdd())&&(b.iadd(o),N.isub(x)),b.iushrn(1),N.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(b),M.isub(N)):(l.isub(s),b.isub(d),N.isub(M))}return{a:b,b:N,gcd:l.iushln(m)}},i.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var N=0,m=1;!(s.words[0]&m)&&N<26;++N,m<<=1);if(N>0)for(s.iushrn(N);N-- >0;)d.isOdd()&&d.iadd(b),d.iushrn(1);for(var o=0,x=1;!(l.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(l.iushrn(o);o-- >0;)M.isOdd()&&M.iadd(b),M.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(M)):(l.isub(s),M.isub(d))}var W;return s.cmpn(1)===0?W=d:W=M,W.cmpn(0)<0&&W.iadd(r),W},i.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var s=this.clone(),l=r.clone();s.negative=0,l.negative=0;for(var d=0;s.isEven()&&l.isEven();d++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var M=s.cmp(l);if(M<0){var b=s;s=l,l=b}else if(M===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(d)},i.prototype.invm=function(r){return this.egcd(r).a.umod(r)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(r){return this.words[0]&r},i.prototype.bincn=function(r){a(typeof r=="number");var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=d,this;for(var M=d,b=l;M!==0&&b<this.length;b++){var N=this.words[b]|0;N+=M,M=N>>>26,N&=67108863,this.words[b]=N}return M!==0&&(this.words[b]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(r){var s=r<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(r=-r),a(r<=67108863,"Number is too big");var d=this.words[0]|0;l=d===r?0:d<r?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var s=this.ucmp(r);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var d=this.words[l]|0,M=r.words[l]|0;if(d!==M){d<M?s=-1:d>M&&(s=1);break}}return s},i.prototype.gtn=function(r){return this.cmpn(r)===1},i.prototype.gt=function(r){return this.cmp(r)===1},i.prototype.gten=function(r){return this.cmpn(r)>=0},i.prototype.gte=function(r){return this.cmp(r)>=0},i.prototype.ltn=function(r){return this.cmpn(r)===-1},i.prototype.lt=function(r){return this.cmp(r)===-1},i.prototype.lten=function(r){return this.cmpn(r)<=0},i.prototype.lte=function(r){return this.cmp(r)<=0},i.prototype.eqn=function(r){return this.cmpn(r)===0},i.prototype.eq=function(r){return this.cmp(r)===0},i.red=function(r){return new k(r)},i.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(r){return this.red=r,this},i.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},i.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},i.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},i.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},i.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},i.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},i.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},i.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var D={k256:null,p224:null,p192:null,p25519:null};function O(y,r){this.name=y,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var r=new i(null);return r.words=new Array(Math.ceil(this.n/13)),r},O.prototype.ireduce=function(r){var s=r,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var d=l<this.n?-1:s.ucmp(this.p);return d===0?(s.words[0]=0,s.length=1):d>0?s.isub(this.p):s.strip!==void 0?s.strip():s._strip(),s},O.prototype.split=function(r,s){r.iushrn(this.n,0,s)},O.prototype.imulK=function(r){return r.imul(this.k)};function F(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(F,O),F.prototype.split=function(r,s){for(var l=4194303,d=Math.min(r.length,9),M=0;M<d;M++)s.words[M]=r.words[M];if(s.length=d,r.length<=9){r.words[0]=0,r.length=1;return}var b=r.words[9];for(s.words[s.length++]=b&l,M=10;M<r.length;M++){var N=r.words[M]|0;r.words[M-10]=(N&l)<<4|b>>>22,b=N}b>>>=22,r.words[M-10]=b,b===0&&r.length>10?r.length-=10:r.length-=9},F.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var s=0,l=0;l<r.length;l++){var d=r.words[l]|0;s+=d*977,r.words[l]=s&67108863,s=d*64+(s/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function R(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(R,O);function Q(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,O);function B(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(B,O),B.prototype.imulK=function(r){for(var s=0,l=0;l<r.length;l++){var d=(r.words[l]|0)*19+s,M=d&67108863;d>>>=26,r.words[l]=M,s=d}return s!==0&&(r.words[r.length++]=s),r},i._prime=function(r){if(D[r])return D[r];var s;if(r==="k256")s=new F;else if(r==="p224")s=new R;else if(r==="p192")s=new Q;else if(r==="p25519")s=new B;else throw new Error("Unknown prime "+r);return D[r]=s,s};function k(y){if(typeof y=="string"){var r=i._prime(y);this.m=r.p,this.prime=r}else a(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}k.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},k.prototype._verify2=function(r,s){a((r.negative|s.negative)===0,"red works only with positives"),a(r.red&&r.red===s.red,"red works only with red numbers")},k.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},k.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},k.prototype.add=function(r,s){this._verify2(r,s);var l=r.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},k.prototype.iadd=function(r,s){this._verify2(r,s);var l=r.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},k.prototype.sub=function(r,s){this._verify2(r,s);var l=r.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},k.prototype.isub=function(r,s){this._verify2(r,s);var l=r.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},k.prototype.shl=function(r,s){return this._verify1(r),this.imod(r.ushln(s))},k.prototype.imul=function(r,s){return this._verify2(r,s),this.imod(r.imul(s))},k.prototype.mul=function(r,s){return this._verify2(r,s),this.imod(r.mul(s))},k.prototype.isqr=function(r){return this.imul(r,r.clone())},k.prototype.sqr=function(r){return this.mul(r,r)},k.prototype.sqrt=function(r){if(r.isZero())return r.clone();var s=this.m.andln(3);if(a(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(r,l)}for(var d=this.m.subn(1),M=0;!d.isZero()&&d.andln(1)===0;)M++,d.iushrn(1);a(!d.isZero());var b=new i(1).toRed(this),N=b.redNeg(),m=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,m).cmp(N)!==0;)o.redIAdd(N);for(var x=this.pow(o,d),W=this.pow(r,d.addn(1).iushrn(1)),Z=this.pow(r,d),G=M;Z.cmp(b)!==0;){for(var ee=Z,V=0;ee.cmp(b)!==0;V++)ee=ee.redSqr();a(V<G);var P=this.pow(x,new i(1).iushln(G-V-1));W=W.redMul(P),x=P.redSqr(),Z=Z.redMul(x),G=V}return W},k.prototype.invm=function(r){var s=r._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},k.prototype.pow=function(r,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return r.clone();var l=4,d=new Array(1<<l);d[0]=new i(1).toRed(this),d[1]=r;for(var M=2;M<d.length;M++)d[M]=this.mul(d[M-1],r);var b=d[0],N=0,m=0,o=s.bitLength()%26;for(o===0&&(o=26),M=s.length-1;M>=0;M--){for(var x=s.words[M],W=o-1;W>=0;W--){var Z=x>>W&1;if(b!==d[0]&&(b=this.sqr(b)),Z===0&&N===0){m=0;continue}N<<=1,N|=Z,m++,!(m!==l&&(M!==0||W!==0))&&(b=this.mul(b,d[N]),m=0,N=0)}o=26}return b},k.prototype.convertTo=function(r){var s=r.umod(this.m);return s===r?s.clone():s},k.prototype.convertFrom=function(r){var s=r.clone();return s.red=null,s},i.mont=function(r){return new z(r)};function z(y){k.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(z,k),z.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},z.prototype.convertFrom=function(r){var s=this.imod(r.mul(this.rinv));return s.red=null,s},z.prototype.imul=function(r,s){if(r.isZero()||s.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.mul=function(r,s){if(r.isZero()||s.isZero())return new i(0)._forceRed(this);var l=r.mul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.invm=function(r){var s=this.imod(r._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(e,_.commonjsGlobal)}(Ws)),Ws.exports}var hs={exports:{}},O2;function Ed(){if(O2)return hs.exports;O2=1;var e;hs.exports=function(c){return e||(e=new t(null)),e.generate(c)};function t(a){this.rand=a}if(hs.exports.Rand=t,t.prototype.generate=function(c){return this._rand(c)},t.prototype._rand=function(c){if(this.rand.getBytes)return this.rand.getBytes(c);for(var i=new Uint8Array(c),u=0;u<i.length;u++)i[u]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(c){var i=new Uint8Array(c);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(c){var i=new Uint8Array(c);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=kd();if(typeof n.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(c){return n.randomBytes(c)}}catch{}return hs.exports}var Ol,z2;function B6(){if(z2)return Ol;z2=1;var e=Ax(),t=Ed();function n(a){this.rand=a||new t.Rand}return Ol=n,n.create=function(c){return new n(c)},n.prototype._randbelow=function(c){var i=c.bitLength(),u=Math.ceil(i/8);do var f=new e(this.rand.generate(u));while(f.cmp(c)>=0);return f},n.prototype._randrange=function(c,i){var u=i.sub(c);return c.add(this._randbelow(u))},n.prototype.test=function(c,i,u){var f=c.bitLength(),p=e.mont(c),h=new e(1).toRed(p);i||(i=Math.max(1,f/48|0));for(var g=c.subn(1),C=0;!g.testn(C);C++);for(var w=c.shrn(C),j=g.toRed(p),I=!0;i>0;i--){var T=this._randrange(new e(2),g);u&&u(T);var S=T.toRed(p).redPow(w);if(!(S.cmp(h)===0||S.cmp(j)===0)){for(var L=1;L<C;L++){if(S=S.redSqr(),S.cmp(h)===0)return!1;if(S.cmp(j)===0)break}if(L===C)return!1}}return I},n.prototype.getDivisor=function(c,i){var u=c.bitLength(),f=e.mont(c),p=new e(1).toRed(f);i||(i=Math.max(1,u/48|0));for(var h=c.subn(1),g=0;!h.testn(g);g++);for(var C=c.shrn(g),w=h.toRed(f);i>0;i--){var j=this._randrange(new e(2),h),I=c.gcd(j);if(I.cmpn(1)!==0)return I;var T=j.toRed(f).redPow(C);if(!(T.cmp(p)===0||T.cmp(w)===0)){for(var S=1;S<g;S++){if(T=T.redSqr(),T.cmp(p)===0)return T.fromRed().subn(1).gcd(c);if(T.cmp(w)===0)break}if(S===g)return T=T.redSqr(),T.fromRed().subn(1).gcd(c)}}return!1},Ol}var zl,k2;function F6(){if(k2)return zl;k2=1;var e=_o();zl=S,S.simpleSieve=I,S.fermatTest=T;var t=_6(),n=new t(24),a=B6(),c=new a,i=new t(1),u=new t(2),f=new t(5);new t(16),new t(8);var p=new t(10),h=new t(3);new t(7);var g=new t(11),C=new t(4);new t(12);var w=null;function j(){if(w!==null)return w;var L=1048576,E=[];E[0]=2;for(var D=1,O=3;O<L;O+=2){for(var F=Math.ceil(Math.sqrt(O)),R=0;R<D&&E[R]<=F&&O%E[R]!==0;R++);D!==R&&E[R]<=F||(E[D++]=O)}return w=E,E}function I(L){for(var E=j(),D=0;D<E.length;D++)if(L.modn(E[D])===0)return L.cmpn(E[D])===0;return!0}function T(L){var E=t.mont(L);return u.toRed(E).redPow(L.subn(1)).fromRed().cmpn(1)===0}function S(L,E){if(L<16)return E===2||E===5?new t([140,123]):new t([140,39]);E=new t(E);for(var D,O;;){for(D=new t(e(Math.ceil(L/8)));D.bitLength()>L;)D.ishrn(1);if(D.isEven()&&D.iadd(i),D.testn(1)||D.iadd(u),E.cmp(u)){if(!E.cmp(f))for(;D.mod(p).cmp(h);)D.iadd(C)}else for(;D.mod(n).cmp(g);)D.iadd(C);if(O=D.shrn(1),I(O)&&I(D)&&T(O)&&T(D)&&c.test(O)&&c.test(D))return D}}return zl}const Ix={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},Ex={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},Lx={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},Sx={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},Dx={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},Ox={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},zx={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},kx={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},_x={modp1:Ix,modp2:Ex,modp5:Lx,modp14:Sx,modp15:Dx,modp16:Ox,modp17:zx,modp18:kx};var kl,_2;function Bx(){if(_2)return kl;_2=1;var e=_6(),t=B6(),n=new t,a=new e(24),c=new e(11),i=new e(10),u=new e(3),f=new e(7),p=F6(),h=_o();kl=I;function g(S,L){return L=L||"utf8",_.dist.Buffer.isBuffer(S)||(S=new _.dist.Buffer(S,L)),this._pub=new e(S),this}function C(S,L){return L=L||"utf8",_.dist.Buffer.isBuffer(S)||(S=new _.dist.Buffer(S,L)),this._priv=new e(S),this}var w={};function j(S,L){var E=L.toString("hex"),D=[E,S.toString(16)].join("_");if(D in w)return w[D];var O=0;if(S.isEven()||!p.simpleSieve||!p.fermatTest(S)||!n.test(S))return O+=1,E==="02"||E==="05"?O+=8:O+=4,w[D]=O,O;n.test(S.shrn(1))||(O+=2);var F;switch(E){case"02":S.mod(a).cmp(c)&&(O+=8);break;case"05":F=S.mod(i),F.cmp(u)&&F.cmp(f)&&(O+=8);break;default:O+=4}return w[D]=O,O}function I(S,L,E){this.setGenerator(L),this.__prime=new e(S),this._prime=e.mont(this.__prime),this._primeLen=S.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,E?(this.setPublicKey=g,this.setPrivateKey=C):this._primeCode=8}Object.defineProperty(I.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=j(this.__prime,this.__gen)),this._primeCode}}),I.prototype.generateKeys=function(){return this._priv||(this._priv=new e(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},I.prototype.computeSecret=function(S){S=new e(S),S=S.toRed(this._prime);var L=S.redPow(this._priv).fromRed(),E=new _.dist.Buffer(L.toArray()),D=this.getPrime();if(E.length<D.length){var O=new _.dist.Buffer(D.length-E.length);O.fill(0),E=_.dist.Buffer.concat([O,E])}return E},I.prototype.getPublicKey=function(L){return T(this._pub,L)},I.prototype.getPrivateKey=function(L){return T(this._priv,L)},I.prototype.getPrime=function(S){return T(this.__prime,S)},I.prototype.getGenerator=function(S){return T(this._gen,S)},I.prototype.setGenerator=function(S,L){return L=L||"utf8",_.dist.Buffer.isBuffer(S)||(S=new _.dist.Buffer(S,L)),this.__gen=S,this._gen=new e(S),this};function T(S,L){var E=new _.dist.Buffer(S.toArray());return L?E.toString(L):E}return kl}var B2;function Fx(){if(B2)return Li;B2=1;var e=F6(),t=_x,n=Bx();function a(u){var f=new _.dist.Buffer(t[u].prime,"hex"),p=new _.dist.Buffer(t[u].gen,"hex");return new n(f,p)}var c={binary:!0,hex:!0,base64:!0};function i(u,f,p,h){return _.dist.Buffer.isBuffer(f)||c[f]===void 0?i(u,"binary",f,p):(f=f||"binary",h=h||"binary",p=p||new _.dist.Buffer([2]),_.dist.Buffer.isBuffer(p)||(p=new _.dist.Buffer(p,h)),typeof u=="number"?new n(e(u,p),p,!0):(_.dist.Buffer.isBuffer(u)||(u=new _.dist.Buffer(u,f)),new n(u,p,!0)))}return Li.DiffieHellmanGroup=Li.createDiffieHellmanGroup=Li.getDiffieHellman=a,Li.createDiffieHellman=Li.DiffieHellman=i,Li}var ps={exports:{}},gs={exports:{}},F2;function W0(){if(F2)return gs.exports;F2=1,typeof _.dist.process>"u"||!_.dist.process.version||_.dist.process.version.indexOf("v0.")===0||_.dist.process.version.indexOf("v1.")===0&&_.dist.process.version.indexOf("v1.8.")!==0?gs.exports={nextTick:e}:gs.exports=_.dist.process;function e(t,n,a,c){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,u,f;switch(i){case 0:case 1:return _.dist.process.nextTick(t);case 2:return _.dist.process.nextTick(function(){t.call(null,n)});case 3:return _.dist.process.nextTick(function(){t.call(null,n,a)});case 4:return _.dist.process.nextTick(function(){t.call(null,n,a,c)});default:for(u=new Array(i-1),f=0;f<u.length;)u[f++]=arguments[f];return _.dist.process.nextTick(function(){t.apply(null,u)})}}return gs.exports}var _l,R2;function Rx(){if(R2)return _l;R2=1;var e={}.toString;return _l=Array.isArray||function(t){return e.call(t)=="[object Array]"},_l}var Bl,P2;function R6(){return P2||(P2=1,Bl=oo.EventEmitter),Bl}var ms={exports:{}},U2;function Ld(){return U2||(U2=1,function(e,t){var n=_.bufferPolyfill,a=n.Buffer;function c(u,f){for(var p in u)f[p]=u[p]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=i);function i(u,f,p){return a(u,f,p)}c(a,i),i.from=function(u,f,p){if(typeof u=="number")throw new TypeError("Argument must not be a number");return a(u,f,p)},i.alloc=function(u,f,p){if(typeof u!="number")throw new TypeError("Argument must be a number");var h=a(u);return f!==void 0?typeof p=="string"?h.fill(f,p):h.fill(f):h.fill(0),h},i.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return a(u)},i.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(u)}}(ms,ms.exports)),ms.exports}var zr={},Y2;function Qa(){if(Y2)return zr;Y2=1;function e(T){return Array.isArray?Array.isArray(T):I(T)==="[object Array]"}zr.isArray=e;function t(T){return typeof T=="boolean"}zr.isBoolean=t;function n(T){return T===null}zr.isNull=n;function a(T){return T==null}zr.isNullOrUndefined=a;function c(T){return typeof T=="number"}zr.isNumber=c;function i(T){return typeof T=="string"}zr.isString=i;function u(T){return typeof T=="symbol"}zr.isSymbol=u;function f(T){return T===void 0}zr.isUndefined=f;function p(T){return I(T)==="[object RegExp]"}zr.isRegExp=p;function h(T){return typeof T=="object"&&T!==null}zr.isObject=h;function g(T){return I(T)==="[object Date]"}zr.isDate=g;function C(T){return I(T)==="[object Error]"||T instanceof Error}zr.isError=C;function w(T){return typeof T=="function"}zr.isFunction=w;function j(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}zr.isPrimitive=j,zr.isBuffer=_.bufferPolyfill.Buffer.isBuffer;function I(T){return Object.prototype.toString.call(T)}return zr}var Fl={exports:{}},W2;function Px(){return W2||(W2=1,function(e){function t(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}var n=Ld().Buffer,a=Bo;function c(i,u,f){i.copy(u,f)}e.exports=function(){function i(){t(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(f){var p={data:f,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length},i.prototype.unshift=function(f){var p={data:f,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length},i.prototype.shift=function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(f){if(this.length===0)return"";for(var p=this.head,h=""+p.data;p=p.next;)h+=f+p.data;return h},i.prototype.concat=function(f){if(this.length===0)return n.alloc(0);for(var p=n.allocUnsafe(f>>>0),h=this.head,g=0;h;)c(h.data,p,g),g+=h.data.length,h=h.next;return p},i}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var i=a.inspect({length:this.length});return this.constructor.name+" "+i})}(Fl)),Fl.exports}var Rl,H2;function P6(){if(H2)return Rl;H2=1;var e=W0();function t(c,i){var u=this,f=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return f||p?(i?i(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,c)):e.nextTick(a,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(h){!i&&h?u._writableState?u._writableState.errorEmitted||(u._writableState.errorEmitted=!0,e.nextTick(a,u,h)):e.nextTick(a,u,h):i&&i(h)}),this)}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(c,i){c.emit("error",i)}return Rl={destroy:t,undestroy:n},Rl}var Pl,Z2;function U6(){if(Z2)return Pl;Z2=1;var e=W0();Pl=T;function t(b){var N=this;this.next=null,this.entry=null,this.finish=function(){M(N,b)}}var n=!_.dist.process.browser&&["v0.10","v0.9."].indexOf(_.dist.process.version.slice(0,5))>-1?setImmediate:e.nextTick,a;T.WritableState=j;var c=Object.create(Qa());c.inherits=zt;var i={deprecate:xd()},u=R6(),f=Ld().Buffer,p=(typeof _.commonjsGlobal<"u"?_.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(b){return f.from(b)}function g(b){return f.isBuffer(b)||b instanceof p}var C=P6();c.inherits(T,u);function w(){}function j(b,N){a=a||To(),b=b||{};var m=N instanceof a;this.objectMode=!!b.objectMode,m&&(this.objectMode=this.objectMode||!!b.writableObjectMode);var o=b.highWaterMark,x=b.writableHighWaterMark,W=this.objectMode?16:16*1024;o||o===0?this.highWaterMark=o:m&&(x||x===0)?this.highWaterMark=x:this.highWaterMark=W,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=b.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(G){Q(N,G)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}j.prototype.getBuffer=function(){for(var N=this.bufferedRequest,m=[];N;)m.push(N),N=N.next;return m},function(){try{Object.defineProperty(j.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(b){return I.call(this,b)?!0:this!==T?!1:b&&b._writableState instanceof j}})):I=function(b){return b instanceof this};function T(b){if(a=a||To(),!I.call(T,this)&&!(this instanceof a))return new T(b);this._writableState=new j(b,this),this.writable=!0,b&&(typeof b.write=="function"&&(this._write=b.write),typeof b.writev=="function"&&(this._writev=b.writev),typeof b.destroy=="function"&&(this._destroy=b.destroy),typeof b.final=="function"&&(this._final=b.final)),u.call(this)}T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function S(b,N){var m=new Error("write after end");b.emit("error",m),e.nextTick(N,m)}function L(b,N,m,o){var x=!0,W=!1;return m===null?W=new TypeError("May not write null values to stream"):typeof m!="string"&&m!==void 0&&!N.objectMode&&(W=new TypeError("Invalid non-string/buffer chunk")),W&&(b.emit("error",W),e.nextTick(o,W),x=!1),x}T.prototype.write=function(b,N,m){var o=this._writableState,x=!1,W=!o.objectMode&&g(b);return W&&!f.isBuffer(b)&&(b=h(b)),typeof N=="function"&&(m=N,N=null),W?N="buffer":N||(N=o.defaultEncoding),typeof m!="function"&&(m=w),o.ended?S(this,m):(W||L(this,o,b,m))&&(o.pendingcb++,x=D(this,o,W,b,N,m)),x},T.prototype.cork=function(){var b=this._writableState;b.corked++},T.prototype.uncork=function(){var b=this._writableState;b.corked&&(b.corked--,!b.writing&&!b.corked&&!b.bufferProcessing&&b.bufferedRequest&&z(this,b))},T.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this};function E(b,N,m){return!b.objectMode&&b.decodeStrings!==!1&&typeof N=="string"&&(N=f.from(N,m)),N}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function D(b,N,m,o,x,W){if(!m){var Z=E(N,o,x);o!==Z&&(m=!0,x="buffer",o=Z)}var G=N.objectMode?1:o.length;N.length+=G;var ee=N.length<N.highWaterMark;if(ee||(N.needDrain=!0),N.writing||N.corked){var V=N.lastBufferedRequest;N.lastBufferedRequest={chunk:o,encoding:x,isBuf:m,callback:W,next:null},V?V.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else O(b,N,!1,G,o,x,W);return ee}function O(b,N,m,o,x,W,Z){N.writelen=o,N.writecb=Z,N.writing=!0,N.sync=!0,m?b._writev(x,N.onwrite):b._write(x,W,N.onwrite),N.sync=!1}function F(b,N,m,o,x){--N.pendingcb,m?(e.nextTick(x,o),e.nextTick(l,b,N),b._writableState.errorEmitted=!0,b.emit("error",o)):(x(o),b._writableState.errorEmitted=!0,b.emit("error",o),l(b,N))}function R(b){b.writing=!1,b.writecb=null,b.length-=b.writelen,b.writelen=0}function Q(b,N){var m=b._writableState,o=m.sync,x=m.writecb;if(R(m),N)F(b,m,o,N,x);else{var W=y(m);!W&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest&&z(b,m),o?n(B,b,m,W,x):B(b,m,W,x)}}function B(b,N,m,o){m||k(b,N),N.pendingcb--,o(),l(b,N)}function k(b,N){N.length===0&&N.needDrain&&(N.needDrain=!1,b.emit("drain"))}function z(b,N){N.bufferProcessing=!0;var m=N.bufferedRequest;if(b._writev&&m&&m.next){var o=N.bufferedRequestCount,x=new Array(o),W=N.corkedRequestsFree;W.entry=m;for(var Z=0,G=!0;m;)x[Z]=m,m.isBuf||(G=!1),m=m.next,Z+=1;x.allBuffers=G,O(b,N,!0,N.length,x,"",W.finish),N.pendingcb++,N.lastBufferedRequest=null,W.next?(N.corkedRequestsFree=W.next,W.next=null):N.corkedRequestsFree=new t(N),N.bufferedRequestCount=0}else{for(;m;){var ee=m.chunk,V=m.encoding,P=m.callback,H=N.objectMode?1:ee.length;if(O(b,N,!1,H,ee,V,P),m=m.next,N.bufferedRequestCount--,N.writing)break}m===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=m,N.bufferProcessing=!1}T.prototype._write=function(b,N,m){m(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(b,N,m){var o=this._writableState;typeof b=="function"?(m=b,b=null,N=null):typeof N=="function"&&(m=N,N=null),b!=null&&this.write(b,N),o.corked&&(o.corked=1,this.uncork()),o.ending||d(this,o,m)};function y(b){return b.ending&&b.length===0&&b.bufferedRequest===null&&!b.finished&&!b.writing}function r(b,N){b._final(function(m){N.pendingcb--,m&&b.emit("error",m),N.prefinished=!0,b.emit("prefinish"),l(b,N)})}function s(b,N){!N.prefinished&&!N.finalCalled&&(typeof b._final=="function"?(N.pendingcb++,N.finalCalled=!0,e.nextTick(r,b,N)):(N.prefinished=!0,b.emit("prefinish")))}function l(b,N){var m=y(N);return m&&(s(b,N),N.pendingcb===0&&(N.finished=!0,b.emit("finish"))),m}function d(b,N,m){N.ending=!0,l(b,N),m&&(N.finished?e.nextTick(m):b.once("finish",m)),N.ended=!0,b.writable=!1}function M(b,N,m){var o=b.entry;for(b.entry=null;o;){var x=o.callback;N.pendingcb--,x(m),o=o.next}N.corkedRequestsFree.next=b}return Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(b){this._writableState&&(this._writableState.destroyed=b)}}),T.prototype.destroy=C.destroy,T.prototype._undestroy=C.undestroy,T.prototype._destroy=function(b,N){this.end(),N(b)},Pl}var Ul,Q2;function To(){if(Q2)return Ul;Q2=1;var e=W0(),t=Object.keys||function(C){var w=[];for(var j in C)w.push(j);return w};Ul=p;var n=Object.create(Qa());n.inherits=zt;var a=Y6(),c=U6();n.inherits(p,a);for(var i=t(c.prototype),u=0;u<i.length;u++){var f=i[u];p.prototype[f]||(p.prototype[f]=c.prototype[f])}function p(C){if(!(this instanceof p))return new p(C);a.call(this,C),c.call(this,C),C&&C.readable===!1&&(this.readable=!1),C&&C.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,C&&C.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function h(){this.allowHalfOpen||this._writableState.ended||e.nextTick(g,this)}function g(C){C.end()}return Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),p.prototype._destroy=function(C,w){this.push(null),this.end(),e.nextTick(w,C)},Ul}var Yl={},Ms={exports:{}},V2;function Ux(){return V2||(V2=1,function(e,t){var n=_.bufferPolyfill,a=n.Buffer;function c(u,f){for(var p in u)f[p]=u[p]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=i);function i(u,f,p){return a(u,f,p)}c(a,i),i.from=function(u,f,p){if(typeof u=="number")throw new TypeError("Argument must not be a number");return a(u,f,p)},i.alloc=function(u,f,p){if(typeof u!="number")throw new TypeError("Argument must be a number");var h=a(u);return f!==void 0?typeof p=="string"?h.fill(f,p):h.fill(f):h.fill(0),h},i.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return a(u)},i.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(u)}}(Ms,Ms.exports)),Ms.exports}var G2;function $2(){if(G2)return Yl;G2=1;var e=Ux().Buffer,t=e.isEncoding||function(L){switch(L=""+L,L&&L.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(L){if(!L)return"utf8";for(var E;;)switch(L){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return L;default:if(E)return;L=(""+L).toLowerCase(),E=!0}}function a(L){var E=n(L);if(typeof E!="string"&&(e.isEncoding===t||!t(L)))throw new Error("Unknown encoding: "+L);return E||L}Yl.StringDecoder=c;function c(L){this.encoding=a(L);var E;switch(this.encoding){case"utf16le":this.text=C,this.end=w,E=4;break;case"utf8":this.fillLast=p,E=4;break;case"base64":this.text=j,this.end=I,E=3;break;default:this.write=T,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(E)}c.prototype.write=function(L){if(L.length===0)return"";var E,D;if(this.lastNeed){if(E=this.fillLast(L),E===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<L.length?E?E+this.text(L,D):this.text(L,D):E||""},c.prototype.end=g,c.prototype.text=h,c.prototype.fillLast=function(L){if(this.lastNeed<=L.length)return L.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);L.copy(this.lastChar,this.lastTotal-this.lastNeed,0,L.length),this.lastNeed-=L.length};function i(L){return L<=127?0:L>>5===6?2:L>>4===14?3:L>>3===30?4:L>>6===2?-1:-2}function u(L,E,D){var O=E.length-1;if(O<D)return 0;var F=i(E[O]);return F>=0?(F>0&&(L.lastNeed=F-1),F):--O<D||F===-2?0:(F=i(E[O]),F>=0?(F>0&&(L.lastNeed=F-2),F):--O<D||F===-2?0:(F=i(E[O]),F>=0?(F>0&&(F===2?F=0:L.lastNeed=F-3),F):0))}function f(L,E,D){if((E[0]&192)!==128)return L.lastNeed=0,"�";if(L.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return L.lastNeed=1,"�";if(L.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return L.lastNeed=2,"�"}}function p(L){var E=this.lastTotal-this.lastNeed,D=f(this,L);if(D!==void 0)return D;if(this.lastNeed<=L.length)return L.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);L.copy(this.lastChar,E,0,L.length),this.lastNeed-=L.length}function h(L,E){var D=u(this,L,E);if(!this.lastNeed)return L.toString("utf8",E);this.lastTotal=D;var O=L.length-(D-this.lastNeed);return L.copy(this.lastChar,0,O),L.toString("utf8",E,O)}function g(L){var E=L&&L.length?this.write(L):"";return this.lastNeed?E+"�":E}function C(L,E){if((L.length-E)%2===0){var D=L.toString("utf16le",E);if(D){var O=D.charCodeAt(D.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=L[L.length-2],this.lastChar[1]=L[L.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=L[L.length-1],L.toString("utf16le",E,L.length-1)}function w(L){var E=L&&L.length?this.write(L):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,D)}return E}function j(L,E){var D=(L.length-E)%3;return D===0?L.toString("base64",E):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=L[L.length-1]:(this.lastChar[0]=L[L.length-2],this.lastChar[1]=L[L.length-1]),L.toString("base64",E,L.length-D))}function I(L){var E=L&&L.length?this.write(L):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function T(L){return L.toString(this.encoding)}function S(L){return L&&L.length?this.write(L):""}return Yl}var Wl,q2;function Y6(){if(q2)return Wl;q2=1;var e=W0();Wl=E;var t=Rx(),n;E.ReadableState=L,oo.EventEmitter;var a=function(P,H){return P.listeners(H).length},c=R6(),i=Ld().Buffer,u=(typeof _.commonjsGlobal<"u"?_.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f(P){return i.from(P)}function p(P){return i.isBuffer(P)||P instanceof u}var h=Object.create(Qa());h.inherits=zt;var g=Bo,C=void 0;g&&g.debuglog?C=g.debuglog("stream"):C=function(){};var w=Px(),j=P6(),I;h.inherits(E,c);var T=["error","close","destroy","pause","resume"];function S(P,H,$){if(typeof P.prependListener=="function")return P.prependListener(H,$);!P._events||!P._events[H]?P.on(H,$):t(P._events[H])?P._events[H].unshift($):P._events[H]=[$,P._events[H]]}function L(P,H){n=n||To(),P=P||{};var $=H instanceof n;this.objectMode=!!P.objectMode,$&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var X=P.highWaterMark,te=P.readableHighWaterMark,Y=this.objectMode?16:16*1024;X||X===0?this.highWaterMark=X:$&&(te||te===0)?this.highWaterMark=te:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(I||(I=$2().StringDecoder),this.decoder=new I(P.encoding),this.encoding=P.encoding)}function E(P){if(n=n||To(),!(this instanceof E))return new E(P);this._readableState=new L(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),c.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),E.prototype.destroy=j.destroy,E.prototype._undestroy=j.undestroy,E.prototype._destroy=function(P,H){this.push(null),H(P)},E.prototype.push=function(P,H){var $=this._readableState,X;return $.objectMode?X=!0:typeof P=="string"&&(H=H||$.defaultEncoding,H!==$.encoding&&(P=i.from(P,H),H=""),X=!0),D(this,P,H,!1,X)},E.prototype.unshift=function(P){return D(this,P,null,!0,!1)};function D(P,H,$,X,te){var Y=P._readableState;if(H===null)Y.reading=!1,z(P,Y);else{var ne;te||(ne=F(Y,H)),ne?P.emit("error",ne):Y.objectMode||H&&H.length>0?(typeof H!="string"&&!Y.objectMode&&Object.getPrototypeOf(H)!==i.prototype&&(H=f(H)),X?Y.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):O(P,Y,H,!0):Y.ended?P.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!$?(H=Y.decoder.write(H),Y.objectMode||H.length!==0?O(P,Y,H,!1):s(P,Y)):O(P,Y,H,!1))):X||(Y.reading=!1)}return R(Y)}function O(P,H,$,X){H.flowing&&H.length===0&&!H.sync?(P.emit("data",$),P.read(0)):(H.length+=H.objectMode?1:$.length,X?H.buffer.unshift($):H.buffer.push($),H.needReadable&&y(P)),s(P,H)}function F(P,H){var $;return!p(H)&&typeof H!="string"&&H!==void 0&&!P.objectMode&&($=new TypeError("Invalid non-string/buffer chunk")),$}function R(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(P){return I||(I=$2().StringDecoder),this._readableState.decoder=new I(P),this._readableState.encoding=P,this};var Q=8388608;function B(P){return P>=Q?P=Q:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function k(P,H){return P<=0||H.length===0&&H.ended?0:H.objectMode?1:P!==P?H.flowing&&H.length?H.buffer.head.data.length:H.length:(P>H.highWaterMark&&(H.highWaterMark=B(P)),P<=H.length?P:H.ended?H.length:(H.needReadable=!0,0))}E.prototype.read=function(P){C("read",P),P=parseInt(P,10);var H=this._readableState,$=P;if(P!==0&&(H.emittedReadable=!1),P===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return C("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?G(this):y(this),null;if(P=k(P,H),P===0&&H.ended)return H.length===0&&G(this),null;var X=H.needReadable;C("need readable",X),(H.length===0||H.length-P<H.highWaterMark)&&(X=!0,C("length less than watermark",X)),H.ended||H.reading?(X=!1,C("reading or ended",X)):X&&(C("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(P=k($,H)));var te;return P>0?te=o(P,H):te=null,te===null?(H.needReadable=!0,P=0):H.length-=P,H.length===0&&(H.ended||(H.needReadable=!0),$!==P&&H.ended&&G(this)),te!==null&&this.emit("data",te),te};function z(P,H){if(!H.ended){if(H.decoder){var $=H.decoder.end();$&&$.length&&(H.buffer.push($),H.length+=H.objectMode?1:$.length)}H.ended=!0,y(P)}}function y(P){var H=P._readableState;H.needReadable=!1,H.emittedReadable||(C("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?e.nextTick(r,P):r(P))}function r(P){C("emit readable"),P.emit("readable"),m(P)}function s(P,H){H.readingMore||(H.readingMore=!0,e.nextTick(l,P,H))}function l(P,H){for(var $=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(C("maybeReadMore read 0"),P.read(0),$!==H.length);)$=H.length;H.readingMore=!1}E.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(P,H){var $=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=P;break;case 1:X.pipes=[X.pipes,P];break;default:X.pipes.push(P);break}X.pipesCount+=1,C("pipe count=%d opts=%j",X.pipesCount,H);var te=(!H||H.end!==!1)&&P!==_.dist.process.stdout&&P!==_.dist.process.stderr,Y=te?xe:We;X.endEmitted?e.nextTick(Y):$.once("end",Y),P.on("unpipe",ne);function ne(de,ye){C("onunpipe"),de===$&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,Ve())}function xe(){C("onend"),P.end()}var le=d($);P.on("drain",le);var ue=!1;function Ve(){C("cleanup"),P.removeListener("close",Me),P.removeListener("finish",oe),P.removeListener("drain",le),P.removeListener("error",st),P.removeListener("unpipe",ne),$.removeListener("end",xe),$.removeListener("end",We),$.removeListener("data",be),ue=!0,X.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&le()}var he=!1;$.on("data",be);function be(de){C("ondata"),he=!1;var ye=P.write(de);ye===!1&&!he&&((X.pipesCount===1&&X.pipes===P||X.pipesCount>1&&V(X.pipes,P)!==-1)&&!ue&&(C("false write response, pause",X.awaitDrain),X.awaitDrain++,he=!0),$.pause())}function st(de){C("onerror",de),We(),P.removeListener("error",st),a(P,"error")===0&&P.emit("error",de)}S(P,"error",st);function Me(){P.removeListener("finish",oe),We()}P.once("close",Me);function oe(){C("onfinish"),P.removeListener("close",Me),We()}P.once("finish",oe);function We(){C("unpipe"),$.unpipe(P)}return P.emit("pipe",$),X.flowing||(C("pipe resume"),$.resume()),P};function d(P){return function(){var H=P._readableState;C("pipeOnDrain",H.awaitDrain),H.awaitDrain&&H.awaitDrain--,H.awaitDrain===0&&a(P,"data")&&(H.flowing=!0,m(P))}}E.prototype.unpipe=function(P){var H=this._readableState,$={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return P&&P!==H.pipes?this:(P||(P=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,P&&P.emit("unpipe",this,$),this);if(!P){var X=H.pipes,te=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var Y=0;Y<te;Y++)X[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var ne=V(H.pipes,P);return ne===-1?this:(H.pipes.splice(ne,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),P.emit("unpipe",this,$),this)},E.prototype.on=function(P,H){var $=c.prototype.on.call(this,P,H);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var X=this._readableState;!X.endEmitted&&!X.readableListening&&(X.readableListening=X.needReadable=!0,X.emittedReadable=!1,X.reading?X.length&&y(this):e.nextTick(M,this))}return $},E.prototype.addListener=E.prototype.on;function M(P){C("readable nexttick read 0"),P.read(0)}E.prototype.resume=function(){var P=this._readableState;return P.flowing||(C("resume"),P.flowing=!0,b(this,P)),this};function b(P,H){H.resumeScheduled||(H.resumeScheduled=!0,e.nextTick(N,P,H))}function N(P,H){H.reading||(C("resume read 0"),P.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,P.emit("resume"),m(P),H.flowing&&!H.reading&&P.read(0)}E.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function m(P){var H=P._readableState;for(C("flow",H.flowing);H.flowing&&P.read()!==null;);}E.prototype.wrap=function(P){var H=this,$=this._readableState,X=!1;P.on("end",function(){if(C("wrapped end"),$.decoder&&!$.ended){var ne=$.decoder.end();ne&&ne.length&&H.push(ne)}H.push(null)}),P.on("data",function(ne){if(C("wrapped data"),$.decoder&&(ne=$.decoder.write(ne)),!($.objectMode&&ne==null)&&!(!$.objectMode&&(!ne||!ne.length))){var xe=H.push(ne);xe||(X=!0,P.pause())}});for(var te in P)this[te]===void 0&&typeof P[te]=="function"&&(this[te]=function(ne){return function(){return P[ne].apply(P,arguments)}}(te));for(var Y=0;Y<T.length;Y++)P.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(ne){C("wrapped _read",ne),X&&(X=!1,P.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=o;function o(P,H){if(H.length===0)return null;var $;return H.objectMode?$=H.buffer.shift():!P||P>=H.length?(H.decoder?$=H.buffer.join(""):H.buffer.length===1?$=H.buffer.head.data:$=H.buffer.concat(H.length),H.buffer.clear()):$=x(P,H.buffer,H.decoder),$}function x(P,H,$){var X;return P<H.head.data.length?(X=H.head.data.slice(0,P),H.head.data=H.head.data.slice(P)):P===H.head.data.length?X=H.shift():X=$?W(P,H):Z(P,H),X}function W(P,H){var $=H.head,X=1,te=$.data;for(P-=te.length;$=$.next;){var Y=$.data,ne=P>Y.length?Y.length:P;if(ne===Y.length?te+=Y:te+=Y.slice(0,P),P-=ne,P===0){ne===Y.length?(++X,$.next?H.head=$.next:H.head=H.tail=null):(H.head=$,$.data=Y.slice(ne));break}++X}return H.length-=X,te}function Z(P,H){var $=i.allocUnsafe(P),X=H.head,te=1;for(X.data.copy($),P-=X.data.length;X=X.next;){var Y=X.data,ne=P>Y.length?Y.length:P;if(Y.copy($,$.length-P,0,ne),P-=ne,P===0){ne===Y.length?(++te,X.next?H.head=X.next:H.head=H.tail=null):(H.head=X,X.data=Y.slice(ne));break}++te}return H.length-=te,$}function G(P){var H=P._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,e.nextTick(ee,H,P))}function ee(P,H){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,H.readable=!1,H.emit("end"))}function V(P,H){for(var $=0,X=P.length;$<X;$++)if(P[$]===H)return $;return-1}return Wl}var Hl,J2;function W6(){if(J2)return Hl;J2=1,Hl=a;var e=To(),t=Object.create(Qa());t.inherits=zt,t.inherits(a,e);function n(u,f){var p=this._transformState;p.transforming=!1;var h=p.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,f!=null&&this.push(f),h(u);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function a(u){if(!(this instanceof a))return new a(u);e.call(this,u),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",c)}function c(){var u=this;typeof this._flush=="function"?this._flush(function(f,p){i(u,f,p)}):i(this,null,null)}a.prototype.push=function(u,f){return this._transformState.needTransform=!1,e.prototype.push.call(this,u,f)},a.prototype._transform=function(u,f,p){throw new Error("_transform() is not implemented")},a.prototype._write=function(u,f,p){var h=this._transformState;if(h.writecb=p,h.writechunk=u,h.writeencoding=f,!h.transforming){var g=this._readableState;(h.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},a.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},a.prototype._destroy=function(u,f){var p=this;e.prototype._destroy.call(this,u,function(h){f(h),p.emit("close")})};function i(u,f,p){if(f)return u.emit("error",f);if(p!=null&&u.push(p),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}return Hl}var Zl,X2;function Yx(){if(X2)return Zl;X2=1,Zl=n;var e=W6(),t=Object.create(Qa());t.inherits=zt,t.inherits(n,e);function n(a){if(!(this instanceof n))return new n(a);e.call(this,a)}return n.prototype._transform=function(a,c,i){i(null,a)},Zl}var K2;function Wx(){return K2||(K2=1,function(e,t){t=e.exports=Y6(),t.Stream=t,t.Readable=t,t.Writable=U6(),t.Duplex=To(),t.Transform=W6(),t.PassThrough=Yx()}(ps,ps.exports)),ps.exports}var Qo={exports:{}},Ql,e4;function Sd(){if(e4)return Ql;e4=1;var e=_.bnExports,t=_o(),n=_.safeBufferExports.Buffer;function a(u){var f=u.modulus.byteLength(),p;do p=new e(t(f));while(p.cmp(u.modulus)>=0||!p.umod(u.prime1)||!p.umod(u.prime2));return p}function c(u){var f=a(u),p=f.toRed(e.mont(u.modulus)).redPow(new e(u.publicExponent)).fromRed();return{blinder:p,unblinder:f.invm(u.modulus)}}function i(u,f){var p=c(f),h=f.modulus.byteLength(),g=new e(u).mul(p.blinder).umod(f.modulus),C=g.toRed(e.mont(f.prime1)),w=g.toRed(e.mont(f.prime2)),j=f.coefficient,I=f.prime1,T=f.prime2,S=C.redPow(f.exponent1).fromRed(),L=w.redPow(f.exponent2).fromRed(),E=S.isub(L).imul(j).umod(I).imul(T);return L.iadd(E).imul(p.unblinder).umod(f.modulus).toArrayLike(n,"be",h)}return i.getr=a,Ql=i,Ql}var Vl={};const Hx="6.6.1",Zx={version:Hx};var Gl={},Hs={exports:{}};Hs.exports;var t4;function oi(){return t4||(t4=1,function(e){(function(t,n){function a(y,r){if(!y)throw new Error(r||"Assertion failed")}function c(y,r){y.super_=r;var s=function(){};s.prototype=r.prototype,y.prototype=new s,y.prototype.constructor=y}function i(y,r,s){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((r==="le"||r==="be")&&(s=r,r=10),this._init(y||0,r||10,s||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=_.bufferPolyfill.Buffer}catch{}i.isBN=function(r){return r instanceof i?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===i.wordSize&&Array.isArray(r.words)},i.max=function(r,s){return r.cmp(s)>0?r:s},i.min=function(r,s){return r.cmp(s)<0?r:s},i.prototype._init=function(r,s,l){if(typeof r=="number")return this._initNumber(r,s,l);if(typeof r=="object")return this._initArray(r,s,l);s==="hex"&&(s=16),a(s===(s|0)&&s>=2&&s<=36),r=r.toString().replace(/\s+/g,"");var d=0;r[0]==="-"&&(d++,this.negative=1),d<r.length&&(s===16?this._parseHex(r,d,l):(this._parseBase(r,s,d),l==="le"&&this._initArray(this.toArray(),s,l)))},i.prototype._initNumber=function(r,s,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(r,s,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M,b,N=0;if(l==="be")for(d=r.length-1,M=0;d>=0;d-=3)b=r[d]|r[d-1]<<8|r[d-2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);else if(l==="le")for(d=0,M=0;d<r.length;d+=3)b=r[d]|r[d+1]<<8|r[d+2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);return this.strip()};function f(y,r){var s=y.charCodeAt(r);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function p(y,r,s){var l=f(y,s);return s-1>=r&&(l|=f(y,s-1)<<4),l}i.prototype._parseHex=function(r,s,l){this.length=Math.ceil((r.length-s)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M=0,b=0,N;if(l==="be")for(d=r.length-1;d>=s;d-=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8;else{var m=r.length-s;for(d=m%2===0?s+1:s;d<r.length;d+=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8}this.strip()};function h(y,r,s,l){for(var d=0,M=Math.min(y.length,s),b=r;b<M;b++){var N=y.charCodeAt(b)-48;d*=l,N>=49?d+=N-49+10:N>=17?d+=N-17+10:d+=N}return d}i.prototype._parseBase=function(r,s,l){this.words=[0],this.length=1;for(var d=0,M=1;M<=67108863;M*=s)d++;d--,M=M/s|0;for(var b=r.length-l,N=b%d,m=Math.min(b,b-N)+l,o=0,x=l;x<m;x+=d)o=h(r,x,x+d,s),this.imuln(M),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(N!==0){var W=1;for(o=h(r,x,r.length,s),x=0;x<N;x++)W*=s;this.imuln(W),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(r){r.words=new Array(this.length);for(var s=0;s<this.length;s++)r.words[s]=this.words[s];r.length=this.length,r.negative=this.negative,r.red=this.red},i.prototype.clone=function(){var r=new i(null);return this.copy(r),r},i.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(r,s){r=r||10,s=s|0||1;var l;if(r===16||r==="hex"){l="";for(var d=0,M=0,b=0;b<this.length;b++){var N=this.words[b],m=((N<<d|M)&16777215).toString(16);M=N>>>24-d&16777215,d+=2,d>=26&&(d-=26,b--),M!==0||b!==this.length-1?l=g[6-m.length]+m+l:l=m+l}for(M!==0&&(l=M.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var o=C[r],x=w[r];l="";var W=this.clone();for(W.negative=0;!W.isZero();){var Z=W.modn(x).toString(r);W=W.idivn(x),W.isZero()?l=Z+l:l=g[o-Z.length]+Z+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(r,s){return a(typeof u<"u"),this.toArrayLike(u,r,s)},i.prototype.toArray=function(r,s){return this.toArrayLike(Array,r,s)},i.prototype.toArrayLike=function(r,s,l){var d=this.byteLength(),M=l||Math.max(1,d);a(d<=M,"byte array longer than desired length"),a(M>0,"Requested array length <= 0"),this.strip();var b=s==="le",N=new r(M),m,o,x=this.clone();if(b){for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[o]=m;for(;o<M;o++)N[o]=0}else{for(o=0;o<M-d;o++)N[o]=0;for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[M-o-1]=m}return N},Math.clz32?i.prototype._countBits=function(r){return 32-Math.clz32(r)}:i.prototype._countBits=function(r){var s=r,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(r){if(r===0)return 26;var s=r,l=0;return s&8191||(l+=13,s>>>=13),s&127||(l+=7,s>>>=7),s&15||(l+=4,s>>>=4),s&3||(l+=2,s>>>=2),s&1||l++,l},i.prototype.bitLength=function(){var r=this.words[this.length-1],s=this._countBits(r);return(this.length-1)*26+s};function j(y){for(var r=new Array(y.bitLength()),s=0;s<r.length;s++){var l=s/26|0,d=s%26;r[s]=(y.words[l]&1<<d)>>>d}return r}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(r+=l,l!==26)break}return r},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},i.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var s=0;s<r.length;s++)this.words[s]=this.words[s]|r.words[s];return this.strip()},i.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},i.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},i.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},i.prototype.iuand=function(r){var s;this.length>r.length?s=r:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},i.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},i.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},i.prototype.iuxor=function(r){var s,l;this.length>r.length?(s=this,l=r):(s=r,l=this);for(var d=0;d<l.length;d++)this.words[d]=s.words[d]^l.words[d];if(this!==s)for(;d<s.length;d++)this.words[d]=s.words[d];return this.length=s.length,this.strip()},i.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},i.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},i.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},i.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var s=Math.ceil(r/26)|0,l=r%26;this._expand(s),l>0&&s--;for(var d=0;d<s;d++)this.words[d]=~this.words[d]&67108863;return l>0&&(this.words[d]=~this.words[d]&67108863>>26-l),this.strip()},i.prototype.notn=function(r){return this.clone().inotn(r)},i.prototype.setn=function(r,s){a(typeof r=="number"&&r>=0);var l=r/26|0,d=r%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<d:this.words[l]=this.words[l]&~(1<<d),this.strip()},i.prototype.iadd=function(r){var s;if(this.negative!==0&&r.negative===0)return this.negative=0,s=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,s=this.isub(r),r.negative=1,s._normSign();var l,d;this.length>r.length?(l=this,d=r):(l=r,d=this);for(var M=0,b=0;b<d.length;b++)s=(l.words[b]|0)+(d.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;for(;M!==0&&b<l.length;b++)s=(l.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;if(this.length=l.length,M!==0)this.words[this.length]=M,this.length++;else if(l!==this)for(;b<l.length;b++)this.words[b]=l.words[b];return this},i.prototype.add=function(r){var s;return r.negative!==0&&this.negative===0?(r.negative=0,s=this.sub(r),r.negative^=1,s):r.negative===0&&this.negative!==0?(this.negative=0,s=r.sub(this),this.negative=1,s):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},i.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var s=this.iadd(r);return r.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var d,M;l>0?(d=this,M=r):(d=r,M=this);for(var b=0,N=0;N<M.length;N++)s=(d.words[N]|0)-(M.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;for(;b!==0&&N<d.length;N++)s=(d.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;if(b===0&&N<d.length&&d!==this)for(;N<d.length;N++)this.words[N]=d.words[N];return this.length=Math.max(this.length,N),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(r){return this.clone().isub(r)};function I(y,r,s){s.negative=r.negative^y.negative;var l=y.length+r.length|0;s.length=l,l=l-1|0;var d=y.words[0]|0,M=r.words[0]|0,b=d*M,N=b&67108863,m=b/67108864|0;s.words[0]=N;for(var o=1;o<l;o++){for(var x=m>>>26,W=m&67108863,Z=Math.min(o,r.length-1),G=Math.max(0,o-y.length+1);G<=Z;G++){var ee=o-G|0;d=y.words[ee]|0,M=r.words[G]|0,b=d*M+W,x+=b/67108864|0,W=b&67108863}s.words[o]=W|0,m=x|0}return m!==0?s.words[o]=m|0:s.length--,s.strip()}var T=function(r,s,l){var d=r.words,M=s.words,b=l.words,N=0,m,o,x,W=d[0]|0,Z=W&8191,G=W>>>13,ee=d[1]|0,V=ee&8191,P=ee>>>13,H=d[2]|0,$=H&8191,X=H>>>13,te=d[3]|0,Y=te&8191,ne=te>>>13,xe=d[4]|0,le=xe&8191,ue=xe>>>13,Ve=d[5]|0,he=Ve&8191,be=Ve>>>13,st=d[6]|0,Me=st&8191,oe=st>>>13,We=d[7]|0,de=We&8191,ye=We>>>13,mt=d[8]|0,je=mt&8191,Ae=mt>>>13,Tt=d[9]|0,De=Tt&8191,ve=Tt>>>13,jt=M[0]|0,Ee=jt&8191,Le=jt>>>13,Ot=M[1]|0,me=Ot&8191,Ce=Ot>>>13,xt=M[2]|0,Se=xt&8191,Oe=xt>>>13,Wt=M[3]|0,ze=Wt&8191,ke=Wt>>>13,er=M[4]|0,Fe=er&8191,Re=er>>>13,Mt=M[5]|0,_e=Mt&8191,Pe=Mt>>>13,Tr=M[6]|0,Be=Tr&8191,Ue=Tr>>>13,q=M[7]|0,K=q&8191,J=q>>>13,U=M[8]|0,re=U&8191,se=U>>>13,we=M[9]|0,ce=we&8191,pe=we>>>13;l.negative=r.negative^s.negative,l.length=19,m=Math.imul(Z,Ee),o=Math.imul(Z,Le),o=o+Math.imul(G,Ee)|0,x=Math.imul(G,Le);var ot=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(V,Ee),o=Math.imul(V,Le),o=o+Math.imul(P,Ee)|0,x=Math.imul(P,Le),m=m+Math.imul(Z,me)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(G,me)|0,x=x+Math.imul(G,Ce)|0;var qe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul($,Ee),o=Math.imul($,Le),o=o+Math.imul(X,Ee)|0,x=Math.imul(X,Le),m=m+Math.imul(V,me)|0,o=o+Math.imul(V,Ce)|0,o=o+Math.imul(P,me)|0,x=x+Math.imul(P,Ce)|0,m=m+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Oe)|0,o=o+Math.imul(G,Se)|0,x=x+Math.imul(G,Oe)|0;var Ct=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,m=Math.imul(Y,Ee),o=Math.imul(Y,Le),o=o+Math.imul(ne,Ee)|0,x=Math.imul(ne,Le),m=m+Math.imul($,me)|0,o=o+Math.imul($,Ce)|0,o=o+Math.imul(X,me)|0,x=x+Math.imul(X,Ce)|0,m=m+Math.imul(V,Se)|0,o=o+Math.imul(V,Oe)|0,o=o+Math.imul(P,Se)|0,x=x+Math.imul(P,Oe)|0,m=m+Math.imul(Z,ze)|0,o=o+Math.imul(Z,ke)|0,o=o+Math.imul(G,ze)|0,x=x+Math.imul(G,ke)|0;var et=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(le,Ee),o=Math.imul(le,Le),o=o+Math.imul(ue,Ee)|0,x=Math.imul(ue,Le),m=m+Math.imul(Y,me)|0,o=o+Math.imul(Y,Ce)|0,o=o+Math.imul(ne,me)|0,x=x+Math.imul(ne,Ce)|0,m=m+Math.imul($,Se)|0,o=o+Math.imul($,Oe)|0,o=o+Math.imul(X,Se)|0,x=x+Math.imul(X,Oe)|0,m=m+Math.imul(V,ze)|0,o=o+Math.imul(V,ke)|0,o=o+Math.imul(P,ze)|0,x=x+Math.imul(P,ke)|0,m=m+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(G,Fe)|0,x=x+Math.imul(G,Re)|0;var lt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(he,Ee),o=Math.imul(he,Le),o=o+Math.imul(be,Ee)|0,x=Math.imul(be,Le),m=m+Math.imul(le,me)|0,o=o+Math.imul(le,Ce)|0,o=o+Math.imul(ue,me)|0,x=x+Math.imul(ue,Ce)|0,m=m+Math.imul(Y,Se)|0,o=o+Math.imul(Y,Oe)|0,o=o+Math.imul(ne,Se)|0,x=x+Math.imul(ne,Oe)|0,m=m+Math.imul($,ze)|0,o=o+Math.imul($,ke)|0,o=o+Math.imul(X,ze)|0,x=x+Math.imul(X,ke)|0,m=m+Math.imul(V,Fe)|0,o=o+Math.imul(V,Re)|0,o=o+Math.imul(P,Fe)|0,x=x+Math.imul(P,Re)|0,m=m+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Pe)|0,o=o+Math.imul(G,_e)|0,x=x+Math.imul(G,Pe)|0;var ft=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,m=Math.imul(Me,Ee),o=Math.imul(Me,Le),o=o+Math.imul(oe,Ee)|0,x=Math.imul(oe,Le),m=m+Math.imul(he,me)|0,o=o+Math.imul(he,Ce)|0,o=o+Math.imul(be,me)|0,x=x+Math.imul(be,Ce)|0,m=m+Math.imul(le,Se)|0,o=o+Math.imul(le,Oe)|0,o=o+Math.imul(ue,Se)|0,x=x+Math.imul(ue,Oe)|0,m=m+Math.imul(Y,ze)|0,o=o+Math.imul(Y,ke)|0,o=o+Math.imul(ne,ze)|0,x=x+Math.imul(ne,ke)|0,m=m+Math.imul($,Fe)|0,o=o+Math.imul($,Re)|0,o=o+Math.imul(X,Fe)|0,x=x+Math.imul(X,Re)|0,m=m+Math.imul(V,_e)|0,o=o+Math.imul(V,Pe)|0,o=o+Math.imul(P,_e)|0,x=x+Math.imul(P,Pe)|0,m=m+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ue)|0,o=o+Math.imul(G,Be)|0,x=x+Math.imul(G,Ue)|0;var gt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(de,Ee),o=Math.imul(de,Le),o=o+Math.imul(ye,Ee)|0,x=Math.imul(ye,Le),m=m+Math.imul(Me,me)|0,o=o+Math.imul(Me,Ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,Ce)|0,m=m+Math.imul(he,Se)|0,o=o+Math.imul(he,Oe)|0,o=o+Math.imul(be,Se)|0,x=x+Math.imul(be,Oe)|0,m=m+Math.imul(le,ze)|0,o=o+Math.imul(le,ke)|0,o=o+Math.imul(ue,ze)|0,x=x+Math.imul(ue,ke)|0,m=m+Math.imul(Y,Fe)|0,o=o+Math.imul(Y,Re)|0,o=o+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,Re)|0,m=m+Math.imul($,_e)|0,o=o+Math.imul($,Pe)|0,o=o+Math.imul(X,_e)|0,x=x+Math.imul(X,Pe)|0,m=m+Math.imul(V,Be)|0,o=o+Math.imul(V,Ue)|0,o=o+Math.imul(P,Be)|0,x=x+Math.imul(P,Ue)|0,m=m+Math.imul(Z,K)|0,o=o+Math.imul(Z,J)|0,o=o+Math.imul(G,K)|0,x=x+Math.imul(G,J)|0;var pt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(je,Ee),o=Math.imul(je,Le),o=o+Math.imul(Ae,Ee)|0,x=Math.imul(Ae,Le),m=m+Math.imul(de,me)|0,o=o+Math.imul(de,Ce)|0,o=o+Math.imul(ye,me)|0,x=x+Math.imul(ye,Ce)|0,m=m+Math.imul(Me,Se)|0,o=o+Math.imul(Me,Oe)|0,o=o+Math.imul(oe,Se)|0,x=x+Math.imul(oe,Oe)|0,m=m+Math.imul(he,ze)|0,o=o+Math.imul(he,ke)|0,o=o+Math.imul(be,ze)|0,x=x+Math.imul(be,ke)|0,m=m+Math.imul(le,Fe)|0,o=o+Math.imul(le,Re)|0,o=o+Math.imul(ue,Fe)|0,x=x+Math.imul(ue,Re)|0,m=m+Math.imul(Y,_e)|0,o=o+Math.imul(Y,Pe)|0,o=o+Math.imul(ne,_e)|0,x=x+Math.imul(ne,Pe)|0,m=m+Math.imul($,Be)|0,o=o+Math.imul($,Ue)|0,o=o+Math.imul(X,Be)|0,x=x+Math.imul(X,Ue)|0,m=m+Math.imul(V,K)|0,o=o+Math.imul(V,J)|0,o=o+Math.imul(P,K)|0,x=x+Math.imul(P,J)|0,m=m+Math.imul(Z,re)|0,o=o+Math.imul(Z,se)|0,o=o+Math.imul(G,re)|0,x=x+Math.imul(G,se)|0;var ut=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ut>>>26)|0,ut&=67108863,m=Math.imul(De,Ee),o=Math.imul(De,Le),o=o+Math.imul(ve,Ee)|0,x=Math.imul(ve,Le),m=m+Math.imul(je,me)|0,o=o+Math.imul(je,Ce)|0,o=o+Math.imul(Ae,me)|0,x=x+Math.imul(Ae,Ce)|0,m=m+Math.imul(de,Se)|0,o=o+Math.imul(de,Oe)|0,o=o+Math.imul(ye,Se)|0,x=x+Math.imul(ye,Oe)|0,m=m+Math.imul(Me,ze)|0,o=o+Math.imul(Me,ke)|0,o=o+Math.imul(oe,ze)|0,x=x+Math.imul(oe,ke)|0,m=m+Math.imul(he,Fe)|0,o=o+Math.imul(he,Re)|0,o=o+Math.imul(be,Fe)|0,x=x+Math.imul(be,Re)|0,m=m+Math.imul(le,_e)|0,o=o+Math.imul(le,Pe)|0,o=o+Math.imul(ue,_e)|0,x=x+Math.imul(ue,Pe)|0,m=m+Math.imul(Y,Be)|0,o=o+Math.imul(Y,Ue)|0,o=o+Math.imul(ne,Be)|0,x=x+Math.imul(ne,Ue)|0,m=m+Math.imul($,K)|0,o=o+Math.imul($,J)|0,o=o+Math.imul(X,K)|0,x=x+Math.imul(X,J)|0,m=m+Math.imul(V,re)|0,o=o+Math.imul(V,se)|0,o=o+Math.imul(P,re)|0,x=x+Math.imul(P,se)|0,m=m+Math.imul(Z,ce)|0,o=o+Math.imul(Z,pe)|0,o=o+Math.imul(G,ce)|0,x=x+Math.imul(G,pe)|0;var ht=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(De,me),o=Math.imul(De,Ce),o=o+Math.imul(ve,me)|0,x=Math.imul(ve,Ce),m=m+Math.imul(je,Se)|0,o=o+Math.imul(je,Oe)|0,o=o+Math.imul(Ae,Se)|0,x=x+Math.imul(Ae,Oe)|0,m=m+Math.imul(de,ze)|0,o=o+Math.imul(de,ke)|0,o=o+Math.imul(ye,ze)|0,x=x+Math.imul(ye,ke)|0,m=m+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Re)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Re)|0,m=m+Math.imul(he,_e)|0,o=o+Math.imul(he,Pe)|0,o=o+Math.imul(be,_e)|0,x=x+Math.imul(be,Pe)|0,m=m+Math.imul(le,Be)|0,o=o+Math.imul(le,Ue)|0,o=o+Math.imul(ue,Be)|0,x=x+Math.imul(ue,Ue)|0,m=m+Math.imul(Y,K)|0,o=o+Math.imul(Y,J)|0,o=o+Math.imul(ne,K)|0,x=x+Math.imul(ne,J)|0,m=m+Math.imul($,re)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(X,re)|0,x=x+Math.imul(X,se)|0,m=m+Math.imul(V,ce)|0,o=o+Math.imul(V,pe)|0,o=o+Math.imul(P,ce)|0,x=x+Math.imul(P,pe)|0;var dt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(De,Se),o=Math.imul(De,Oe),o=o+Math.imul(ve,Se)|0,x=Math.imul(ve,Oe),m=m+Math.imul(je,ze)|0,o=o+Math.imul(je,ke)|0,o=o+Math.imul(Ae,ze)|0,x=x+Math.imul(Ae,ke)|0,m=m+Math.imul(de,Fe)|0,o=o+Math.imul(de,Re)|0,o=o+Math.imul(ye,Fe)|0,x=x+Math.imul(ye,Re)|0,m=m+Math.imul(Me,_e)|0,o=o+Math.imul(Me,Pe)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Pe)|0,m=m+Math.imul(he,Be)|0,o=o+Math.imul(he,Ue)|0,o=o+Math.imul(be,Be)|0,x=x+Math.imul(be,Ue)|0,m=m+Math.imul(le,K)|0,o=o+Math.imul(le,J)|0,o=o+Math.imul(ue,K)|0,x=x+Math.imul(ue,J)|0,m=m+Math.imul(Y,re)|0,o=o+Math.imul(Y,se)|0,o=o+Math.imul(ne,re)|0,x=x+Math.imul(ne,se)|0,m=m+Math.imul($,ce)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(X,ce)|0,x=x+Math.imul(X,pe)|0;var rt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(De,ze),o=Math.imul(De,ke),o=o+Math.imul(ve,ze)|0,x=Math.imul(ve,ke),m=m+Math.imul(je,Fe)|0,o=o+Math.imul(je,Re)|0,o=o+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,Re)|0,m=m+Math.imul(de,_e)|0,o=o+Math.imul(de,Pe)|0,o=o+Math.imul(ye,_e)|0,x=x+Math.imul(ye,Pe)|0,m=m+Math.imul(Me,Be)|0,o=o+Math.imul(Me,Ue)|0,o=o+Math.imul(oe,Be)|0,x=x+Math.imul(oe,Ue)|0,m=m+Math.imul(he,K)|0,o=o+Math.imul(he,J)|0,o=o+Math.imul(be,K)|0,x=x+Math.imul(be,J)|0,m=m+Math.imul(le,re)|0,o=o+Math.imul(le,se)|0,o=o+Math.imul(ue,re)|0,x=x+Math.imul(ue,se)|0,m=m+Math.imul(Y,ce)|0,o=o+Math.imul(Y,pe)|0,o=o+Math.imul(ne,ce)|0,x=x+Math.imul(ne,pe)|0;var at=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(De,Fe),o=Math.imul(De,Re),o=o+Math.imul(ve,Fe)|0,x=Math.imul(ve,Re),m=m+Math.imul(je,_e)|0,o=o+Math.imul(je,Pe)|0,o=o+Math.imul(Ae,_e)|0,x=x+Math.imul(Ae,Pe)|0,m=m+Math.imul(de,Be)|0,o=o+Math.imul(de,Ue)|0,o=o+Math.imul(ye,Be)|0,x=x+Math.imul(ye,Ue)|0,m=m+Math.imul(Me,K)|0,o=o+Math.imul(Me,J)|0,o=o+Math.imul(oe,K)|0,x=x+Math.imul(oe,J)|0,m=m+Math.imul(he,re)|0,o=o+Math.imul(he,se)|0,o=o+Math.imul(be,re)|0,x=x+Math.imul(be,se)|0,m=m+Math.imul(le,ce)|0,o=o+Math.imul(le,pe)|0,o=o+Math.imul(ue,ce)|0,x=x+Math.imul(ue,pe)|0;var Xe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(De,_e),o=Math.imul(De,Pe),o=o+Math.imul(ve,_e)|0,x=Math.imul(ve,Pe),m=m+Math.imul(je,Be)|0,o=o+Math.imul(je,Ue)|0,o=o+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,Ue)|0,m=m+Math.imul(de,K)|0,o=o+Math.imul(de,J)|0,o=o+Math.imul(ye,K)|0,x=x+Math.imul(ye,J)|0,m=m+Math.imul(Me,re)|0,o=o+Math.imul(Me,se)|0,o=o+Math.imul(oe,re)|0,x=x+Math.imul(oe,se)|0,m=m+Math.imul(he,ce)|0,o=o+Math.imul(he,pe)|0,o=o+Math.imul(be,ce)|0,x=x+Math.imul(be,pe)|0;var nt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(De,Be),o=Math.imul(De,Ue),o=o+Math.imul(ve,Be)|0,x=Math.imul(ve,Ue),m=m+Math.imul(je,K)|0,o=o+Math.imul(je,J)|0,o=o+Math.imul(Ae,K)|0,x=x+Math.imul(Ae,J)|0,m=m+Math.imul(de,re)|0,o=o+Math.imul(de,se)|0,o=o+Math.imul(ye,re)|0,x=x+Math.imul(ye,se)|0,m=m+Math.imul(Me,ce)|0,o=o+Math.imul(Me,pe)|0,o=o+Math.imul(oe,ce)|0,x=x+Math.imul(oe,pe)|0;var it=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(De,K),o=Math.imul(De,J),o=o+Math.imul(ve,K)|0,x=Math.imul(ve,J),m=m+Math.imul(je,re)|0,o=o+Math.imul(je,se)|0,o=o+Math.imul(Ae,re)|0,x=x+Math.imul(Ae,se)|0,m=m+Math.imul(de,ce)|0,o=o+Math.imul(de,pe)|0,o=o+Math.imul(ye,ce)|0,x=x+Math.imul(ye,pe)|0;var Ge=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(De,re),o=Math.imul(De,se),o=o+Math.imul(ve,re)|0,x=Math.imul(ve,se),m=m+Math.imul(je,ce)|0,o=o+Math.imul(je,pe)|0,o=o+Math.imul(Ae,ce)|0,x=x+Math.imul(Ae,pe)|0;var Te=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,m=Math.imul(De,ce),o=Math.imul(De,pe),o=o+Math.imul(ve,ce)|0,x=Math.imul(ve,pe);var Ie=(N+m|0)+((o&8191)<<13)|0;return N=(x+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b[0]=ot,b[1]=qe,b[2]=Ct,b[3]=et,b[4]=lt,b[5]=ft,b[6]=gt,b[7]=pt,b[8]=ut,b[9]=ht,b[10]=dt,b[11]=rt,b[12]=at,b[13]=Xe,b[14]=nt,b[15]=it,b[16]=Ge,b[17]=Te,b[18]=Ie,N!==0&&(b[19]=N,l.length++),l};Math.imul||(T=I);function S(y,r,s){s.negative=r.negative^y.negative,s.length=y.length+r.length;for(var l=0,d=0,M=0;M<s.length-1;M++){var b=d;d=0;for(var N=l&67108863,m=Math.min(M,r.length-1),o=Math.max(0,M-y.length+1);o<=m;o++){var x=M-o,W=y.words[x]|0,Z=r.words[o]|0,G=W*Z,ee=G&67108863;b=b+(G/67108864|0)|0,ee=ee+N|0,N=ee&67108863,b=b+(ee>>>26)|0,d+=b>>>26,b&=67108863}s.words[M]=N,l=b,b=d}return l!==0?s.words[M]=l:s.length--,s.strip()}function L(y,r,s){var l=new E;return l.mulp(y,r,s)}i.prototype.mulTo=function(r,s){var l,d=this.length+r.length;return this.length===10&&r.length===10?l=T(this,r,s):d<63?l=I(this,r,s):d<1024?l=S(this,r,s):l=L(this,r,s),l};function E(y,r){this.x=y,this.y=r}E.prototype.makeRBT=function(r){for(var s=new Array(r),l=i.prototype._countBits(r)-1,d=0;d<r;d++)s[d]=this.revBin(d,l,r);return s},E.prototype.revBin=function(r,s,l){if(r===0||r===l-1)return r;for(var d=0,M=0;M<s;M++)d|=(r&1)<<s-M-1,r>>=1;return d},E.prototype.permute=function(r,s,l,d,M,b){for(var N=0;N<b;N++)d[N]=s[r[N]],M[N]=l[r[N]]},E.prototype.transform=function(r,s,l,d,M,b){this.permute(b,r,s,l,d,M);for(var N=1;N<M;N<<=1)for(var m=N<<1,o=Math.cos(2*Math.PI/m),x=Math.sin(2*Math.PI/m),W=0;W<M;W+=m)for(var Z=o,G=x,ee=0;ee<N;ee++){var V=l[W+ee],P=d[W+ee],H=l[W+ee+N],$=d[W+ee+N],X=Z*H-G*$;$=Z*$+G*H,H=X,l[W+ee]=V+H,d[W+ee]=P+$,l[W+ee+N]=V-H,d[W+ee+N]=P-$,ee!==m&&(X=o*Z-x*G,G=o*G+x*Z,Z=X)}},E.prototype.guessLen13b=function(r,s){var l=Math.max(s,r)|1,d=l&1,M=0;for(l=l/2|0;l;l=l>>>1)M++;return 1<<M+1+d},E.prototype.conjugate=function(r,s,l){if(!(l<=1))for(var d=0;d<l/2;d++){var M=r[d];r[d]=r[l-d-1],r[l-d-1]=M,M=s[d],s[d]=-s[l-d-1],s[l-d-1]=-M}},E.prototype.normalize13b=function(r,s){for(var l=0,d=0;d<s/2;d++){var M=Math.round(r[2*d+1]/s)*8192+Math.round(r[2*d]/s)+l;r[d]=M&67108863,M<67108864?l=0:l=M/67108864|0}return r},E.prototype.convert13b=function(r,s,l,d){for(var M=0,b=0;b<s;b++)M=M+(r[b]|0),l[2*b]=M&8191,M=M>>>13,l[2*b+1]=M&8191,M=M>>>13;for(b=2*s;b<d;++b)l[b]=0;a(M===0),a((M&-8192)===0)},E.prototype.stub=function(r){for(var s=new Array(r),l=0;l<r;l++)s[l]=0;return s},E.prototype.mulp=function(r,s,l){var d=2*this.guessLen13b(r.length,s.length),M=this.makeRBT(d),b=this.stub(d),N=new Array(d),m=new Array(d),o=new Array(d),x=new Array(d),W=new Array(d),Z=new Array(d),G=l.words;G.length=d,this.convert13b(r.words,r.length,N,d),this.convert13b(s.words,s.length,x,d),this.transform(N,b,m,o,d,M),this.transform(x,b,W,Z,d,M);for(var ee=0;ee<d;ee++){var V=m[ee]*W[ee]-o[ee]*Z[ee];o[ee]=m[ee]*Z[ee]+o[ee]*W[ee],m[ee]=V}return this.conjugate(m,o,d),this.transform(m,o,G,b,d,M),this.conjugate(G,b,d),this.normalize13b(G,d),l.negative=r.negative^s.negative,l.length=r.length+s.length,l.strip()},i.prototype.mul=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),this.mulTo(r,s)},i.prototype.mulf=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),L(this,r,s)},i.prototype.imul=function(r){return this.clone().mulTo(r,this)},i.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var s=0,l=0;l<this.length;l++){var d=(this.words[l]|0)*r,M=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=M>>>26,this.words[l]=M&67108863}return s!==0&&(this.words[l]=s,this.length++),this.length=r===0?1:this.length,this},i.prototype.muln=function(r){return this.clone().imuln(r)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(r){var s=j(r);if(s.length===0)return new i(1);for(var l=this,d=0;d<s.length&&s[d]===0;d++,l=l.sqr());if(++d<s.length)for(var M=l.sqr();d<s.length;d++,M=M.sqr())s[d]!==0&&(l=l.mul(M));return l},i.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=67108863>>>26-s<<26-s,M;if(s!==0){var b=0;for(M=0;M<this.length;M++){var N=this.words[M]&d,m=(this.words[M]|0)-N<<s;this.words[M]=m|b,b=N>>>26-s}b&&(this.words[M]=b,this.length++)}if(l!==0){for(M=this.length-1;M>=0;M--)this.words[M+l]=this.words[M];for(M=0;M<l;M++)this.words[M]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},i.prototype.iushrn=function(r,s,l){a(typeof r=="number"&&r>=0);var d;s?d=(s-s%26)/26:d=0;var M=r%26,b=Math.min((r-M)/26,this.length),N=67108863^67108863>>>M<<M,m=l;if(d-=b,d=Math.max(0,d),m){for(var o=0;o<b;o++)m.words[o]=this.words[o];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,o=0;o<this.length;o++)this.words[o]=this.words[o+b];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=d);o--){var W=this.words[o]|0;this.words[o]=x<<26-M|W>>>M,x=W&N}return m&&x!==0&&(m.words[m.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(r,s,l){return a(this.negative===0),this.iushrn(r,s,l)},i.prototype.shln=function(r){return this.clone().ishln(r)},i.prototype.ushln=function(r){return this.clone().iushln(r)},i.prototype.shrn=function(r){return this.clone().ishrn(r)},i.prototype.ushrn=function(r){return this.clone().iushrn(r)},i.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return!1;var M=this.words[l];return!!(M&d)},i.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var d=67108863^67108863>>>s<<s;this.words[this.length-1]&=d}return this.strip()},i.prototype.maskn=function(r){return this.clone().imaskn(r)},i.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},i.prototype._iaddn=function(r){this.words[0]+=r;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},i.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(r){return this.clone().iaddn(r)},i.prototype.subn=function(r){return this.clone().isubn(r)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(r,s,l){var d=r.length+l,M;this._expand(d);var b,N=0;for(M=0;M<r.length;M++){b=(this.words[M+l]|0)+N;var m=(r.words[M]|0)*s;b-=m&67108863,N=(b>>26)-(m/67108864|0),this.words[M+l]=b&67108863}for(;M<this.length-l;M++)b=(this.words[M+l]|0)+N,N=b>>26,this.words[M+l]=b&67108863;if(N===0)return this.strip();for(a(N===-1),N=0,M=0;M<this.length;M++)b=-(this.words[M]|0)+N,N=b>>26,this.words[M]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(r,s){var l=this.length-r.length,d=this.clone(),M=r,b=M.words[M.length-1]|0,N=this._countBits(b);l=26-N,l!==0&&(M=M.ushln(l),d.iushln(l),b=M.words[M.length-1]|0);var m=d.length-M.length,o;if(s!=="mod"){o=new i(null),o.length=m+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var W=d.clone()._ishlnsubmul(M,1,m);W.negative===0&&(d=W,o&&(o.words[m]=1));for(var Z=m-1;Z>=0;Z--){var G=(d.words[M.length+Z]|0)*67108864+(d.words[M.length+Z-1]|0);for(G=Math.min(G/b|0,67108863),d._ishlnsubmul(M,G,Z);d.negative!==0;)G--,d.negative=0,d._ishlnsubmul(M,1,Z),d.isZero()||(d.negative^=1);o&&(o.words[Z]=G)}return o&&o.strip(),d.strip(),s!=="div"&&l!==0&&d.iushrn(l),{div:o||null,mod:d}},i.prototype.divmod=function(r,s,l){if(a(!r.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var d,M,b;return this.negative!==0&&r.negative===0?(b=this.neg().divmod(r,s),s!=="mod"&&(d=b.div.neg()),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.iadd(r)),{div:d,mod:M}):this.negative===0&&r.negative!==0?(b=this.divmod(r.neg(),s),s!=="mod"&&(d=b.div.neg()),{div:d,mod:b.mod}):this.negative&r.negative?(b=this.neg().divmod(r.neg(),s),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.isub(r)),{div:b.div,mod:M}):r.length>this.length||this.cmp(r)<0?{div:new i(0),mod:this}:r.length===1?s==="div"?{div:this.divn(r.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new i(this.modn(r.words[0]))}:this._wordDiv(r,s)},i.prototype.div=function(r){return this.divmod(r,"div",!1).div},i.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},i.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},i.prototype.divRound=function(r){var s=this.divmod(r);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(r):s.mod,d=r.ushrn(1),M=r.andln(1),b=l.cmp(d);return b<0||M===1&&b===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(r){a(r<=67108863);for(var s=(1<<26)%r,l=0,d=this.length-1;d>=0;d--)l=(s*l+(this.words[d]|0))%r;return l},i.prototype.idivn=function(r){a(r<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var d=(this.words[l]|0)+s*67108864;this.words[l]=d/r|0,s=d%r}return this.strip()},i.prototype.divn=function(r){return this.clone().idivn(r)},i.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=new i(0),N=new i(1),m=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++m;for(var o=l.clone(),x=s.clone();!s.isZero();){for(var W=0,Z=1;!(s.words[0]&Z)&&W<26;++W,Z<<=1);if(W>0)for(s.iushrn(W);W-- >0;)(d.isOdd()||M.isOdd())&&(d.iadd(o),M.isub(x)),d.iushrn(1),M.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(b.isOdd()||N.isOdd())&&(b.iadd(o),N.isub(x)),b.iushrn(1),N.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(b),M.isub(N)):(l.isub(s),b.isub(d),N.isub(M))}return{a:b,b:N,gcd:l.iushln(m)}},i.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var N=0,m=1;!(s.words[0]&m)&&N<26;++N,m<<=1);if(N>0)for(s.iushrn(N);N-- >0;)d.isOdd()&&d.iadd(b),d.iushrn(1);for(var o=0,x=1;!(l.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(l.iushrn(o);o-- >0;)M.isOdd()&&M.iadd(b),M.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(M)):(l.isub(s),M.isub(d))}var W;return s.cmpn(1)===0?W=d:W=M,W.cmpn(0)<0&&W.iadd(r),W},i.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var s=this.clone(),l=r.clone();s.negative=0,l.negative=0;for(var d=0;s.isEven()&&l.isEven();d++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var M=s.cmp(l);if(M<0){var b=s;s=l,l=b}else if(M===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(d)},i.prototype.invm=function(r){return this.egcd(r).a.umod(r)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(r){return this.words[0]&r},i.prototype.bincn=function(r){a(typeof r=="number");var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=d,this;for(var M=d,b=l;M!==0&&b<this.length;b++){var N=this.words[b]|0;N+=M,M=N>>>26,N&=67108863,this.words[b]=N}return M!==0&&(this.words[b]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(r){var s=r<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(r=-r),a(r<=67108863,"Number is too big");var d=this.words[0]|0;l=d===r?0:d<r?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var s=this.ucmp(r);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var d=this.words[l]|0,M=r.words[l]|0;if(d!==M){d<M?s=-1:d>M&&(s=1);break}}return s},i.prototype.gtn=function(r){return this.cmpn(r)===1},i.prototype.gt=function(r){return this.cmp(r)===1},i.prototype.gten=function(r){return this.cmpn(r)>=0},i.prototype.gte=function(r){return this.cmp(r)>=0},i.prototype.ltn=function(r){return this.cmpn(r)===-1},i.prototype.lt=function(r){return this.cmp(r)===-1},i.prototype.lten=function(r){return this.cmpn(r)<=0},i.prototype.lte=function(r){return this.cmp(r)<=0},i.prototype.eqn=function(r){return this.cmpn(r)===0},i.prototype.eq=function(r){return this.cmp(r)===0},i.red=function(r){return new k(r)},i.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(r){return this.red=r,this},i.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},i.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},i.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},i.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},i.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},i.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},i.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},i.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var D={k256:null,p224:null,p192:null,p25519:null};function O(y,r){this.name=y,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var r=new i(null);return r.words=new Array(Math.ceil(this.n/13)),r},O.prototype.ireduce=function(r){var s=r,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var d=l<this.n?-1:s.ucmp(this.p);return d===0?(s.words[0]=0,s.length=1):d>0?s.isub(this.p):s.strip!==void 0?s.strip():s._strip(),s},O.prototype.split=function(r,s){r.iushrn(this.n,0,s)},O.prototype.imulK=function(r){return r.imul(this.k)};function F(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(F,O),F.prototype.split=function(r,s){for(var l=4194303,d=Math.min(r.length,9),M=0;M<d;M++)s.words[M]=r.words[M];if(s.length=d,r.length<=9){r.words[0]=0,r.length=1;return}var b=r.words[9];for(s.words[s.length++]=b&l,M=10;M<r.length;M++){var N=r.words[M]|0;r.words[M-10]=(N&l)<<4|b>>>22,b=N}b>>>=22,r.words[M-10]=b,b===0&&r.length>10?r.length-=10:r.length-=9},F.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var s=0,l=0;l<r.length;l++){var d=r.words[l]|0;s+=d*977,r.words[l]=s&67108863,s=d*64+(s/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function R(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(R,O);function Q(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,O);function B(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(B,O),B.prototype.imulK=function(r){for(var s=0,l=0;l<r.length;l++){var d=(r.words[l]|0)*19+s,M=d&67108863;d>>>=26,r.words[l]=M,s=d}return s!==0&&(r.words[r.length++]=s),r},i._prime=function(r){if(D[r])return D[r];var s;if(r==="k256")s=new F;else if(r==="p224")s=new R;else if(r==="p192")s=new Q;else if(r==="p25519")s=new B;else throw new Error("Unknown prime "+r);return D[r]=s,s};function k(y){if(typeof y=="string"){var r=i._prime(y);this.m=r.p,this.prime=r}else a(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}k.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},k.prototype._verify2=function(r,s){a((r.negative|s.negative)===0,"red works only with positives"),a(r.red&&r.red===s.red,"red works only with red numbers")},k.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},k.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},k.prototype.add=function(r,s){this._verify2(r,s);var l=r.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},k.prototype.iadd=function(r,s){this._verify2(r,s);var l=r.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},k.prototype.sub=function(r,s){this._verify2(r,s);var l=r.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},k.prototype.isub=function(r,s){this._verify2(r,s);var l=r.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},k.prototype.shl=function(r,s){return this._verify1(r),this.imod(r.ushln(s))},k.prototype.imul=function(r,s){return this._verify2(r,s),this.imod(r.imul(s))},k.prototype.mul=function(r,s){return this._verify2(r,s),this.imod(r.mul(s))},k.prototype.isqr=function(r){return this.imul(r,r.clone())},k.prototype.sqr=function(r){return this.mul(r,r)},k.prototype.sqrt=function(r){if(r.isZero())return r.clone();var s=this.m.andln(3);if(a(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(r,l)}for(var d=this.m.subn(1),M=0;!d.isZero()&&d.andln(1)===0;)M++,d.iushrn(1);a(!d.isZero());var b=new i(1).toRed(this),N=b.redNeg(),m=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,m).cmp(N)!==0;)o.redIAdd(N);for(var x=this.pow(o,d),W=this.pow(r,d.addn(1).iushrn(1)),Z=this.pow(r,d),G=M;Z.cmp(b)!==0;){for(var ee=Z,V=0;ee.cmp(b)!==0;V++)ee=ee.redSqr();a(V<G);var P=this.pow(x,new i(1).iushln(G-V-1));W=W.redMul(P),x=P.redSqr(),Z=Z.redMul(x),G=V}return W},k.prototype.invm=function(r){var s=r._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},k.prototype.pow=function(r,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return r.clone();var l=4,d=new Array(1<<l);d[0]=new i(1).toRed(this),d[1]=r;for(var M=2;M<d.length;M++)d[M]=this.mul(d[M-1],r);var b=d[0],N=0,m=0,o=s.bitLength()%26;for(o===0&&(o=26),M=s.length-1;M>=0;M--){for(var x=s.words[M],W=o-1;W>=0;W--){var Z=x>>W&1;if(b!==d[0]&&(b=this.sqr(b)),Z===0&&N===0){m=0;continue}N<<=1,N|=Z,m++,!(m!==l&&(M!==0||W!==0))&&(b=this.mul(b,d[N]),m=0,N=0)}o=26}return b},k.prototype.convertTo=function(r){var s=r.umod(this.m);return s===r?s.clone():s},k.prototype.convertFrom=function(r){var s=r.clone();return s.red=null,s},i.mont=function(r){return new z(r)};function z(y){k.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(z,k),z.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},z.prototype.convertFrom=function(r){var s=this.imod(r.mul(this.rinv));return s.red=null,s},z.prototype.imul=function(r,s){if(r.isZero()||s.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.mul=function(r,s){if(r.isZero()||s.isZero())return new i(0)._forceRed(this);var l=r.mul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.invm=function(r){var s=this.imod(r._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(e,_.commonjsGlobal)}(Hs)),Hs.exports}var $l={},r4;function H6(){return r4||(r4=1,function(e){var t=e;function n(i,u){if(Array.isArray(i))return i.slice();if(!i)return[];var f=[];if(typeof i!="string"){for(var p=0;p<i.length;p++)f[p]=i[p]|0;return f}if(u==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var p=0;p<i.length;p+=2)f.push(parseInt(i[p]+i[p+1],16))}else for(var p=0;p<i.length;p++){var h=i.charCodeAt(p),g=h>>8,C=h&255;g?f.push(g,C):f.push(C)}return f}t.toArray=n;function a(i){return i.length===1?"0"+i:i}t.zero2=a;function c(i){for(var u="",f=0;f<i.length;f++)u+=a(i[f].toString(16));return u}t.toHex=c,t.encode=function(u,f){return f==="hex"?c(u):u}}($l)),$l}var n4;function An(){return n4||(n4=1,function(e){var t=e,n=oi(),a=Tn(),c=H6();t.assert=a,t.toArray=c.toArray,t.zero2=c.zero2,t.toHex=c.toHex,t.encode=c.encode;function i(g,C,w){var j=new Array(Math.max(g.bitLength(),w)+1),I;for(I=0;I<j.length;I+=1)j[I]=0;var T=1<<C+1,S=g.clone();for(I=0;I<j.length;I++){var L,E=S.andln(T-1);S.isOdd()?(E>(T>>1)-1?L=(T>>1)-E:L=E,S.isubn(L)):L=0,j[I]=L,S.iushrn(1)}return j}t.getNAF=i;function u(g,C){var w=[[],[]];g=g.clone(),C=C.clone();for(var j=0,I=0,T;g.cmpn(-j)>0||C.cmpn(-I)>0;){var S=g.andln(3)+j&3,L=C.andln(3)+I&3;S===3&&(S=-1),L===3&&(L=-1);var E;S&1?(T=g.andln(7)+j&7,(T===3||T===5)&&L===2?E=-S:E=S):E=0,w[0].push(E);var D;L&1?(T=C.andln(7)+I&7,(T===3||T===5)&&S===2?D=-L:D=L):D=0,w[1].push(D),2*j===E+1&&(j=1-j),2*I===D+1&&(I=1-I),g.iushrn(1),C.iushrn(1)}return w}t.getJSF=u;function f(g,C,w){var j="_"+C;g.prototype[C]=function(){return this[j]!==void 0?this[j]:this[j]=w.call(this)}}t.cachedProperty=f;function p(g){return typeof g=="string"?t.toArray(g,"hex"):g}t.parseBytes=p;function h(g){return new n(g,"hex","le")}t.intFromLE=h}(Gl)),Gl}var ql={},Jl,i4;function H0(){if(i4)return Jl;i4=1;var e=oi(),t=An(),n=t.getNAF,a=t.getJSF,c=t.assert;function i(f,p){this.type=f,this.p=new e(p.p,16),this.red=p.prime?e.red(p.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=p.n&&new e(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Jl=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(p,h){c(p.precomputed);var g=p._getDoubles(),C=n(h,1,this._bitLength),w=(1<<g.step+1)-(g.step%2===0?2:1);w/=3;var j=[],I,T;for(I=0;I<C.length;I+=g.step){T=0;for(var S=I+g.step-1;S>=I;S--)T=(T<<1)+C[S];j.push(T)}for(var L=this.jpoint(null,null,null),E=this.jpoint(null,null,null),D=w;D>0;D--){for(I=0;I<j.length;I++)T=j[I],T===D?E=E.mixedAdd(g.points[I]):T===-D&&(E=E.mixedAdd(g.points[I].neg()));L=L.add(E)}return L.toP()},i.prototype._wnafMul=function(p,h){var g=4,C=p._getNAFPoints(g);g=C.wnd;for(var w=C.points,j=n(h,g,this._bitLength),I=this.jpoint(null,null,null),T=j.length-1;T>=0;T--){for(var S=0;T>=0&&j[T]===0;T--)S++;if(T>=0&&S++,I=I.dblp(S),T<0)break;var L=j[T];c(L!==0),p.type==="affine"?L>0?I=I.mixedAdd(w[L-1>>1]):I=I.mixedAdd(w[-L-1>>1].neg()):L>0?I=I.add(w[L-1>>1]):I=I.add(w[-L-1>>1].neg())}return p.type==="affine"?I.toP():I},i.prototype._wnafMulAdd=function(p,h,g,C,w){var j=this._wnafT1,I=this._wnafT2,T=this._wnafT3,S=0,L,E,D;for(L=0;L<C;L++){D=h[L];var O=D._getNAFPoints(p);j[L]=O.wnd,I[L]=O.points}for(L=C-1;L>=1;L-=2){var F=L-1,R=L;if(j[F]!==1||j[R]!==1){T[F]=n(g[F],j[F],this._bitLength),T[R]=n(g[R],j[R],this._bitLength),S=Math.max(T[F].length,S),S=Math.max(T[R].length,S);continue}var Q=[h[F],null,null,h[R]];h[F].y.cmp(h[R].y)===0?(Q[1]=h[F].add(h[R]),Q[2]=h[F].toJ().mixedAdd(h[R].neg())):h[F].y.cmp(h[R].y.redNeg())===0?(Q[1]=h[F].toJ().mixedAdd(h[R]),Q[2]=h[F].add(h[R].neg())):(Q[1]=h[F].toJ().mixedAdd(h[R]),Q[2]=h[F].toJ().mixedAdd(h[R].neg()));var B=[-3,-1,-5,-7,0,7,5,1,3],k=a(g[F],g[R]);for(S=Math.max(k[0].length,S),T[F]=new Array(S),T[R]=new Array(S),E=0;E<S;E++){var z=k[0][E]|0,y=k[1][E]|0;T[F][E]=B[(z+1)*3+(y+1)],T[R][E]=0,I[F]=Q}}var r=this.jpoint(null,null,null),s=this._wnafT4;for(L=S;L>=0;L--){for(var l=0;L>=0;){var d=!0;for(E=0;E<C;E++)s[E]=T[E][L]|0,s[E]!==0&&(d=!1);if(!d)break;l++,L--}if(L>=0&&l++,r=r.dblp(l),L<0)break;for(E=0;E<C;E++){var M=s[E];M!==0&&(M>0?D=I[E][M-1>>1]:M<0&&(D=I[E][-M-1>>1].neg()),D.type==="affine"?r=r.mixedAdd(D):r=r.add(D))}}for(L=0;L<C;L++)I[L]=null;return w?r:r.toP()};function u(f,p){this.curve=f,this.type=p,this.precomputed=null}return i.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(p,h){p=t.toArray(p,h);var g=this.p.byteLength();if((p[0]===4||p[0]===6||p[0]===7)&&p.length-1===2*g){p[0]===6?c(p[p.length-1]%2===0):p[0]===7&&c(p[p.length-1]%2===1);var C=this.point(p.slice(1,1+g),p.slice(1+g,1+2*g));return C}else if((p[0]===2||p[0]===3)&&p.length-1===g)return this.pointFromX(p.slice(1,1+g),p[0]===3);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(p){return this.encode(p,!0)},u.prototype._encode=function(p){var h=this.curve.p.byteLength(),g=this.getX().toArray("be",h);return p?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",h))},u.prototype.encode=function(p,h){return t.encode(this._encode(h),p)},u.prototype.precompute=function(p){if(this.precomputed)return this;var h={doubles:null,naf:null,beta:null};return h.naf=this._getNAFPoints(8),h.doubles=this._getDoubles(4,p),h.beta=this._getBeta(),this.precomputed=h,this},u.prototype._hasDoubles=function(p){if(!this.precomputed)return!1;var h=this.precomputed.doubles;return h?h.points.length>=Math.ceil((p.bitLength()+1)/h.step):!1},u.prototype._getDoubles=function(p,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],C=this,w=0;w<h;w+=p){for(var j=0;j<p;j++)C=C.dbl();g.push(C)}return{step:p,points:g}},u.prototype._getNAFPoints=function(p){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var h=[this],g=(1<<p)-1,C=g===1?null:this.dbl(),w=1;w<g;w++)h[w]=h[w-1].add(C);return{wnd:p,points:h}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(p){for(var h=this,g=0;g<p;g++)h=h.dbl();return h},Jl}var Xl,o4;function Qx(){if(o4)return Xl;o4=1;var e=An(),t=oi(),n=zt,a=H0(),c=e.assert;function i(p){a.call(this,"short",p),this.a=new t(p.a,16).toRed(this.red),this.b=new t(p.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}n(i,a),Xl=i,i.prototype._getEndomorphism=function(h){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var g,C;if(h.beta)g=new t(h.beta,16).toRed(this.red);else{var w=this._getEndoRoots(this.p);g=w[0].cmp(w[1])<0?w[0]:w[1],g=g.toRed(this.red)}if(h.lambda)C=new t(h.lambda,16);else{var j=this._getEndoRoots(this.n);this.g.mul(j[0]).x.cmp(this.g.x.redMul(g))===0?C=j[0]:(C=j[1],c(this.g.mul(C).x.cmp(this.g.x.redMul(g))===0))}var I;return h.basis?I=h.basis.map(function(T){return{a:new t(T.a,16),b:new t(T.b,16)}}):I=this._getEndoBasis(C),{beta:g,lambda:C,basis:I}}},i.prototype._getEndoRoots=function(h){var g=h===this.p?this.red:t.mont(h),C=new t(2).toRed(g).redInvm(),w=C.redNeg(),j=new t(3).toRed(g).redNeg().redSqrt().redMul(C),I=w.redAdd(j).fromRed(),T=w.redSub(j).fromRed();return[I,T]},i.prototype._getEndoBasis=function(h){for(var g=this.n.ushrn(Math.floor(this.n.bitLength()/2)),C=h,w=this.n.clone(),j=new t(1),I=new t(0),T=new t(0),S=new t(1),L,E,D,O,F,R,Q,B=0,k,z;C.cmpn(0)!==0;){var y=w.div(C);k=w.sub(y.mul(C)),z=T.sub(y.mul(j));var r=S.sub(y.mul(I));if(!D&&k.cmp(g)<0)L=Q.neg(),E=j,D=k.neg(),O=z;else if(D&&++B===2)break;Q=k,w=C,C=k,T=j,j=z,S=I,I=r}F=k.neg(),R=z;var s=D.sqr().add(O.sqr()),l=F.sqr().add(R.sqr());return l.cmp(s)>=0&&(F=L,R=E),D.negative&&(D=D.neg(),O=O.neg()),F.negative&&(F=F.neg(),R=R.neg()),[{a:D,b:O},{a:F,b:R}]},i.prototype._endoSplit=function(h){var g=this.endo.basis,C=g[0],w=g[1],j=w.b.mul(h).divRound(this.n),I=C.b.neg().mul(h).divRound(this.n),T=j.mul(C.a),S=I.mul(w.a),L=j.mul(C.b),E=I.mul(w.b),D=h.sub(T).sub(S),O=L.add(E).neg();return{k1:D,k2:O}},i.prototype.pointFromX=function(h,g){h=new t(h,16),h.red||(h=h.toRed(this.red));var C=h.redSqr().redMul(h).redIAdd(h.redMul(this.a)).redIAdd(this.b),w=C.redSqrt();if(w.redSqr().redSub(C).cmp(this.zero)!==0)throw new Error("invalid point");var j=w.fromRed().isOdd();return(g&&!j||!g&&j)&&(w=w.redNeg()),this.point(h,w)},i.prototype.validate=function(h){if(h.inf)return!0;var g=h.x,C=h.y,w=this.a.redMul(g),j=g.redSqr().redMul(g).redIAdd(w).redIAdd(this.b);return C.redSqr().redISub(j).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(h,g,C){for(var w=this._endoWnafT1,j=this._endoWnafT2,I=0;I<h.length;I++){var T=this._endoSplit(g[I]),S=h[I],L=S._getBeta();T.k1.negative&&(T.k1.ineg(),S=S.neg(!0)),T.k2.negative&&(T.k2.ineg(),L=L.neg(!0)),w[I*2]=S,w[I*2+1]=L,j[I*2]=T.k1,j[I*2+1]=T.k2}for(var E=this._wnafMulAdd(1,w,j,I*2,C),D=0;D<I*2;D++)w[D]=null,j[D]=null;return E};function u(p,h,g,C){a.BasePoint.call(this,p,"affine"),h===null&&g===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(h,16),this.y=new t(g,16),C&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}n(u,a.BasePoint),i.prototype.point=function(h,g,C){return new u(this,h,g,C)},i.prototype.pointFromJSON=function(h,g){return u.fromJSON(this,h,g)},u.prototype._getBeta=function(){if(this.curve.endo){var h=this.precomputed;if(h&&h.beta)return h.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(h){var C=this.curve,w=function(j){return C.point(j.x.redMul(C.endo.beta),j.y)};h.beta=g,g.precomputed={beta:null,naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(w)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(w)}}}return g}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(h,g,C){typeof g=="string"&&(g=JSON.parse(g));var w=h.point(g[0],g[1],C);if(!g[2])return w;function j(T){return h.point(T[0],T[1],C)}var I=g[2];return w.precomputed={beta:null,doubles:I.doubles&&{step:I.doubles.step,points:[w].concat(I.doubles.points.map(j))},naf:I.naf&&{wnd:I.naf.wnd,points:[w].concat(I.naf.points.map(j))}},w},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(h){if(this.inf)return h;if(h.inf)return this;if(this.eq(h))return this.dbl();if(this.neg().eq(h))return this.curve.point(null,null);if(this.x.cmp(h.x)===0)return this.curve.point(null,null);var g=this.y.redSub(h.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(h.x).redInvm()));var C=g.redSqr().redISub(this.x).redISub(h.x),w=g.redMul(this.x.redSub(C)).redISub(this.y);return this.curve.point(C,w)},u.prototype.dbl=function(){if(this.inf)return this;var h=this.y.redAdd(this.y);if(h.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,C=this.x.redSqr(),w=h.redInvm(),j=C.redAdd(C).redIAdd(C).redIAdd(g).redMul(w),I=j.redSqr().redISub(this.x.redAdd(this.x)),T=j.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,T)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(h){return h=new t(h,16),this.isInfinity()?this:this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve.endo?this.curve._endoWnafMulAdd([this],[h]):this.curve._wnafMul(this,h)},u.prototype.mulAdd=function(h,g,C){var w=[this,g],j=[h,C];return this.curve.endo?this.curve._endoWnafMulAdd(w,j):this.curve._wnafMulAdd(1,w,j,2)},u.prototype.jmulAdd=function(h,g,C){var w=[this,g],j=[h,C];return this.curve.endo?this.curve._endoWnafMulAdd(w,j,!0):this.curve._wnafMulAdd(1,w,j,2,!0)},u.prototype.eq=function(h){return this===h||this.inf===h.inf&&(this.inf||this.x.cmp(h.x)===0&&this.y.cmp(h.y)===0)},u.prototype.neg=function(h){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(h&&this.precomputed){var C=this.precomputed,w=function(j){return j.neg()};g.precomputed={naf:C.naf&&{wnd:C.naf.wnd,points:C.naf.points.map(w)},doubles:C.doubles&&{step:C.doubles.step,points:C.doubles.points.map(w)}}}return g},u.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var h=this.curve.jpoint(this.x,this.y,this.curve.one);return h};function f(p,h,g,C){a.BasePoint.call(this,p,"jacobian"),h===null&&g===null&&C===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(h,16),this.y=new t(g,16),this.z=new t(C,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return n(f,a.BasePoint),i.prototype.jpoint=function(h,g,C){return new f(this,h,g,C)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var h=this.z.redInvm(),g=h.redSqr(),C=this.x.redMul(g),w=this.y.redMul(g).redMul(h);return this.curve.point(C,w)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(h){if(this.isInfinity())return h;if(h.isInfinity())return this;var g=h.z.redSqr(),C=this.z.redSqr(),w=this.x.redMul(g),j=h.x.redMul(C),I=this.y.redMul(g.redMul(h.z)),T=h.y.redMul(C.redMul(this.z)),S=w.redSub(j),L=I.redSub(T);if(S.cmpn(0)===0)return L.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var E=S.redSqr(),D=E.redMul(S),O=w.redMul(E),F=L.redSqr().redIAdd(D).redISub(O).redISub(O),R=L.redMul(O.redISub(F)).redISub(I.redMul(D)),Q=this.z.redMul(h.z).redMul(S);return this.curve.jpoint(F,R,Q)},f.prototype.mixedAdd=function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var g=this.z.redSqr(),C=this.x,w=h.x.redMul(g),j=this.y,I=h.y.redMul(g).redMul(this.z),T=C.redSub(w),S=j.redSub(I);if(T.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var L=T.redSqr(),E=L.redMul(T),D=C.redMul(L),O=S.redSqr().redIAdd(E).redISub(D).redISub(D),F=S.redMul(D.redISub(O)).redISub(j.redMul(E)),R=this.z.redMul(T);return this.curve.jpoint(O,F,R)},f.prototype.dblp=function(h){if(h===0)return this;if(this.isInfinity())return this;if(!h)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var C=this;for(g=0;g<h;g++)C=C.dbl();return C}var w=this.curve.a,j=this.curve.tinv,I=this.x,T=this.y,S=this.z,L=S.redSqr().redSqr(),E=T.redAdd(T);for(g=0;g<h;g++){var D=I.redSqr(),O=E.redSqr(),F=O.redSqr(),R=D.redAdd(D).redIAdd(D).redIAdd(w.redMul(L)),Q=I.redMul(O),B=R.redSqr().redISub(Q.redAdd(Q)),k=Q.redISub(B),z=R.redMul(k);z=z.redIAdd(z).redISub(F);var y=E.redMul(S);g+1<h&&(L=L.redMul(F)),I=B,S=y,E=z}return this.curve.jpoint(I,E.redMul(j),S)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var h,g,C;if(this.zOne){var w=this.x.redSqr(),j=this.y.redSqr(),I=j.redSqr(),T=this.x.redAdd(j).redSqr().redISub(w).redISub(I);T=T.redIAdd(T);var S=w.redAdd(w).redIAdd(w),L=S.redSqr().redISub(T).redISub(T),E=I.redIAdd(I);E=E.redIAdd(E),E=E.redIAdd(E),h=L,g=S.redMul(T.redISub(L)).redISub(E),C=this.y.redAdd(this.y)}else{var D=this.x.redSqr(),O=this.y.redSqr(),F=O.redSqr(),R=this.x.redAdd(O).redSqr().redISub(D).redISub(F);R=R.redIAdd(R);var Q=D.redAdd(D).redIAdd(D),B=Q.redSqr(),k=F.redIAdd(F);k=k.redIAdd(k),k=k.redIAdd(k),h=B.redISub(R).redISub(R),g=Q.redMul(R.redISub(h)).redISub(k),C=this.y.redMul(this.z),C=C.redIAdd(C)}return this.curve.jpoint(h,g,C)},f.prototype._threeDbl=function(){var h,g,C;if(this.zOne){var w=this.x.redSqr(),j=this.y.redSqr(),I=j.redSqr(),T=this.x.redAdd(j).redSqr().redISub(w).redISub(I);T=T.redIAdd(T);var S=w.redAdd(w).redIAdd(w).redIAdd(this.curve.a),L=S.redSqr().redISub(T).redISub(T);h=L;var E=I.redIAdd(I);E=E.redIAdd(E),E=E.redIAdd(E),g=S.redMul(T.redISub(L)).redISub(E),C=this.y.redAdd(this.y)}else{var D=this.z.redSqr(),O=this.y.redSqr(),F=this.x.redMul(O),R=this.x.redSub(D).redMul(this.x.redAdd(D));R=R.redAdd(R).redIAdd(R);var Q=F.redIAdd(F);Q=Q.redIAdd(Q);var B=Q.redAdd(Q);h=R.redSqr().redISub(B),C=this.y.redAdd(this.z).redSqr().redISub(O).redISub(D);var k=O.redSqr();k=k.redIAdd(k),k=k.redIAdd(k),k=k.redIAdd(k),g=R.redMul(Q.redISub(h)).redISub(k)}return this.curve.jpoint(h,g,C)},f.prototype._dbl=function(){var h=this.curve.a,g=this.x,C=this.y,w=this.z,j=w.redSqr().redSqr(),I=g.redSqr(),T=C.redSqr(),S=I.redAdd(I).redIAdd(I).redIAdd(h.redMul(j)),L=g.redAdd(g);L=L.redIAdd(L);var E=L.redMul(T),D=S.redSqr().redISub(E.redAdd(E)),O=E.redISub(D),F=T.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var R=S.redMul(O).redISub(F),Q=C.redAdd(C).redMul(w);return this.curve.jpoint(D,R,Q)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var h=this.x.redSqr(),g=this.y.redSqr(),C=this.z.redSqr(),w=g.redSqr(),j=h.redAdd(h).redIAdd(h),I=j.redSqr(),T=this.x.redAdd(g).redSqr().redISub(h).redISub(w);T=T.redIAdd(T),T=T.redAdd(T).redIAdd(T),T=T.redISub(I);var S=T.redSqr(),L=w.redIAdd(w);L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L);var E=j.redIAdd(T).redSqr().redISub(I).redISub(S).redISub(L),D=g.redMul(E);D=D.redIAdd(D),D=D.redIAdd(D);var O=this.x.redMul(S).redISub(D);O=O.redIAdd(O),O=O.redIAdd(O);var F=this.y.redMul(E.redMul(L.redISub(E)).redISub(T.redMul(S)));F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var R=this.z.redAdd(T).redSqr().redISub(C).redISub(S);return this.curve.jpoint(O,F,R)},f.prototype.mul=function(h,g){return h=new t(h,g),this.curve._wnafMul(this,h)},f.prototype.eq=function(h){if(h.type==="affine")return this.eq(h.toJ());if(this===h)return!0;var g=this.z.redSqr(),C=h.z.redSqr();if(this.x.redMul(C).redISub(h.x.redMul(g)).cmpn(0)!==0)return!1;var w=g.redMul(this.z),j=C.redMul(h.z);return this.y.redMul(j).redISub(h.y.redMul(w)).cmpn(0)===0},f.prototype.eqXToP=function(h){var g=this.z.redSqr(),C=h.toRed(this.curve.red).redMul(g);if(this.x.cmp(C)===0)return!0;for(var w=h.clone(),j=this.curve.redN.redMul(g);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(C.redIAdd(j),this.x.cmp(C)===0)return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Xl}var Kl,a4;function Vx(){if(a4)return Kl;a4=1;var e=oi(),t=zt,n=H0(),a=An();function c(u){n.call(this,"mont",u),this.a=new e(u.a,16).toRed(this.red),this.b=new e(u.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}t(c,n),Kl=c,c.prototype.validate=function(f){var p=f.normalize().x,h=p.redSqr(),g=h.redMul(p).redAdd(h.redMul(this.a)).redAdd(p),C=g.redSqrt();return C.redSqr().cmp(g)===0};function i(u,f,p){n.BasePoint.call(this,u,"projective"),f===null&&p===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(f,16),this.z=new e(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return t(i,n.BasePoint),c.prototype.decodePoint=function(f,p){return this.point(a.toArray(f,p),1)},c.prototype.point=function(f,p){return new i(this,f,p)},c.prototype.pointFromJSON=function(f){return i.fromJSON(this,f)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(f,p){return new i(f,p[0],p[1]||f.one)},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var f=this.x.redAdd(this.z),p=f.redSqr(),h=this.x.redSub(this.z),g=h.redSqr(),C=p.redSub(g),w=p.redMul(g),j=C.redMul(g.redAdd(this.curve.a24.redMul(C)));return this.curve.point(w,j)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(f,p){var h=this.x.redAdd(this.z),g=this.x.redSub(this.z),C=f.x.redAdd(f.z),w=f.x.redSub(f.z),j=w.redMul(h),I=C.redMul(g),T=p.z.redMul(j.redAdd(I).redSqr()),S=p.x.redMul(j.redISub(I).redSqr());return this.curve.point(T,S)},i.prototype.mul=function(f){for(var p=f.clone(),h=this,g=this.curve.point(null,null),C=this,w=[];p.cmpn(0)!==0;p.iushrn(1))w.push(p.andln(1));for(var j=w.length-1;j>=0;j--)w[j]===0?(h=h.diffAdd(g,C),g=g.dbl()):(g=h.diffAdd(g,C),h=h.dbl());return g},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(f){return this.getX().cmp(f.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Kl}var ef,s4;function Gx(){if(s4)return ef;s4=1;var e=An(),t=oi(),n=zt,a=H0(),c=e.assert;function i(f){this.twisted=(f.a|0)!==1,this.mOneA=this.twisted&&(f.a|0)===-1,this.extended=this.mOneA,a.call(this,"edwards",f),this.a=new t(f.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(f.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(f.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(f.c|0)===1}n(i,a),ef=i,i.prototype._mulA=function(p){return this.mOneA?p.redNeg():this.a.redMul(p)},i.prototype._mulC=function(p){return this.oneC?p:this.c.redMul(p)},i.prototype.jpoint=function(p,h,g,C){return this.point(p,h,g,C)},i.prototype.pointFromX=function(p,h){p=new t(p,16),p.red||(p=p.toRed(this.red));var g=p.redSqr(),C=this.c2.redSub(this.a.redMul(g)),w=this.one.redSub(this.c2.redMul(this.d).redMul(g)),j=C.redMul(w.redInvm()),I=j.redSqrt();if(I.redSqr().redSub(j).cmp(this.zero)!==0)throw new Error("invalid point");var T=I.fromRed().isOdd();return(h&&!T||!h&&T)&&(I=I.redNeg()),this.point(p,I)},i.prototype.pointFromY=function(p,h){p=new t(p,16),p.red||(p=p.toRed(this.red));var g=p.redSqr(),C=g.redSub(this.c2),w=g.redMul(this.d).redMul(this.c2).redSub(this.a),j=C.redMul(w.redInvm());if(j.cmp(this.zero)===0){if(h)throw new Error("invalid point");return this.point(this.zero,p)}var I=j.redSqrt();if(I.redSqr().redSub(j).cmp(this.zero)!==0)throw new Error("invalid point");return I.fromRed().isOdd()!==h&&(I=I.redNeg()),this.point(I,p)},i.prototype.validate=function(p){if(p.isInfinity())return!0;p.normalize();var h=p.x.redSqr(),g=p.y.redSqr(),C=h.redMul(this.a).redAdd(g),w=this.c2.redMul(this.one.redAdd(this.d.redMul(h).redMul(g)));return C.cmp(w)===0};function u(f,p,h,g,C){a.BasePoint.call(this,f,"projective"),p===null&&h===null&&g===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(p,16),this.y=new t(h,16),this.z=g?new t(g,16):this.curve.one,this.t=C&&new t(C,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return n(u,a.BasePoint),i.prototype.pointFromJSON=function(p){return u.fromJSON(this,p)},i.prototype.point=function(p,h,g,C){return new u(this,p,h,g,C)},u.fromJSON=function(p,h){return new u(p,h[0],h[1],h[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},u.prototype._extDbl=function(){var p=this.x.redSqr(),h=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var C=this.curve._mulA(p),w=this.x.redAdd(this.y).redSqr().redISub(p).redISub(h),j=C.redAdd(h),I=j.redSub(g),T=C.redSub(h),S=w.redMul(I),L=j.redMul(T),E=w.redMul(T),D=I.redMul(j);return this.curve.point(S,L,D,E)},u.prototype._projDbl=function(){var p=this.x.redAdd(this.y).redSqr(),h=this.x.redSqr(),g=this.y.redSqr(),C,w,j,I,T,S;if(this.curve.twisted){I=this.curve._mulA(h);var L=I.redAdd(g);this.zOne?(C=p.redSub(h).redSub(g).redMul(L.redSub(this.curve.two)),w=L.redMul(I.redSub(g)),j=L.redSqr().redSub(L).redSub(L)):(T=this.z.redSqr(),S=L.redSub(T).redISub(T),C=p.redSub(h).redISub(g).redMul(S),w=L.redMul(I.redSub(g)),j=L.redMul(S))}else I=h.redAdd(g),T=this.curve._mulC(this.z).redSqr(),S=I.redSub(T).redSub(T),C=this.curve._mulC(p.redISub(I)).redMul(S),w=this.curve._mulC(I).redMul(h.redISub(g)),j=I.redMul(S);return this.curve.point(C,w,j)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(p){var h=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),g=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),C=this.t.redMul(this.curve.dd).redMul(p.t),w=this.z.redMul(p.z.redAdd(p.z)),j=g.redSub(h),I=w.redSub(C),T=w.redAdd(C),S=g.redAdd(h),L=j.redMul(I),E=T.redMul(S),D=j.redMul(S),O=I.redMul(T);return this.curve.point(L,E,O,D)},u.prototype._projAdd=function(p){var h=this.z.redMul(p.z),g=h.redSqr(),C=this.x.redMul(p.x),w=this.y.redMul(p.y),j=this.curve.d.redMul(C).redMul(w),I=g.redSub(j),T=g.redAdd(j),S=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(C).redISub(w),L=h.redMul(I).redMul(S),E,D;return this.curve.twisted?(E=h.redMul(T).redMul(w.redSub(this.curve._mulA(C))),D=I.redMul(T)):(E=h.redMul(T).redMul(w.redSub(C)),D=this.curve._mulC(I).redMul(T)),this.curve.point(L,E,D)},u.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},u.prototype.mul=function(p){return this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve._wnafMul(this,p)},u.prototype.mulAdd=function(p,h,g){return this.curve._wnafMulAdd(1,[this,h],[p,g],2,!1)},u.prototype.jmulAdd=function(p,h,g){return this.curve._wnafMulAdd(1,[this,h],[p,g],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var p=this.z.redInvm();return this.x=this.x.redMul(p),this.y=this.y.redMul(p),this.t&&(this.t=this.t.redMul(p)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(p){return this===p||this.getX().cmp(p.getX())===0&&this.getY().cmp(p.getY())===0},u.prototype.eqXToP=function(p){var h=p.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(h)===0)return!0;for(var g=p.clone(),C=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(C),this.x.cmp(h)===0)return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add,ef}var c4;function Z6(){return c4||(c4=1,function(e){var t=e;t.base=H0(),t.short=Qx(),t.mont=Vx(),t.edwards=Gx()}(ql)),ql}var tf={},rf={},or={},l4;function Qn(){if(l4)return or;l4=1;var e=Tn(),t=zt;or.inherits=t;function n(r,s){return(r.charCodeAt(s)&64512)!==55296||s<0||s+1>=r.length?!1:(r.charCodeAt(s+1)&64512)===56320}function a(r,s){if(Array.isArray(r))return r.slice();if(!r)return[];var l=[];if(typeof r=="string")if(s){if(s==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),M=0;M<r.length;M+=2)l.push(parseInt(r[M]+r[M+1],16))}else for(var d=0,M=0;M<r.length;M++){var b=r.charCodeAt(M);b<128?l[d++]=b:b<2048?(l[d++]=b>>6|192,l[d++]=b&63|128):n(r,M)?(b=65536+((b&1023)<<10)+(r.charCodeAt(++M)&1023),l[d++]=b>>18|240,l[d++]=b>>12&63|128,l[d++]=b>>6&63|128,l[d++]=b&63|128):(l[d++]=b>>12|224,l[d++]=b>>6&63|128,l[d++]=b&63|128)}else for(M=0;M<r.length;M++)l[M]=r[M]|0;return l}or.toArray=a;function c(r){for(var s="",l=0;l<r.length;l++)s+=f(r[l].toString(16));return s}or.toHex=c;function i(r){var s=r>>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return s>>>0}or.htonl=i;function u(r,s){for(var l="",d=0;d<r.length;d++){var M=r[d];s==="little"&&(M=i(M)),l+=p(M.toString(16))}return l}or.toHex32=u;function f(r){return r.length===1?"0"+r:r}or.zero2=f;function p(r){return r.length===7?"0"+r:r.length===6?"00"+r:r.length===5?"000"+r:r.length===4?"0000"+r:r.length===3?"00000"+r:r.length===2?"000000"+r:r.length===1?"0000000"+r:r}or.zero8=p;function h(r,s,l,d){var M=l-s;e(M%4===0);for(var b=new Array(M/4),N=0,m=s;N<b.length;N++,m+=4){var o;d==="big"?o=r[m]<<24|r[m+1]<<16|r[m+2]<<8|r[m+3]:o=r[m+3]<<24|r[m+2]<<16|r[m+1]<<8|r[m],b[N]=o>>>0}return b}or.join32=h;function g(r,s){for(var l=new Array(r.length*4),d=0,M=0;d<r.length;d++,M+=4){var b=r[d];s==="big"?(l[M]=b>>>24,l[M+1]=b>>>16&255,l[M+2]=b>>>8&255,l[M+3]=b&255):(l[M+3]=b>>>24,l[M+2]=b>>>16&255,l[M+1]=b>>>8&255,l[M]=b&255)}return l}or.split32=g;function C(r,s){return r>>>s|r<<32-s}or.rotr32=C;function w(r,s){return r<<s|r>>>32-s}or.rotl32=w;function j(r,s){return r+s>>>0}or.sum32=j;function I(r,s,l){return r+s+l>>>0}or.sum32_3=I;function T(r,s,l,d){return r+s+l+d>>>0}or.sum32_4=T;function S(r,s,l,d,M){return r+s+l+d+M>>>0}or.sum32_5=S;function L(r,s,l,d){var M=r[s],b=r[s+1],N=d+b>>>0,m=(N<d?1:0)+l+M;r[s]=m>>>0,r[s+1]=N}or.sum64=L;function E(r,s,l,d){var M=s+d>>>0,b=(M<s?1:0)+r+l;return b>>>0}or.sum64_hi=E;function D(r,s,l,d){var M=s+d;return M>>>0}or.sum64_lo=D;function O(r,s,l,d,M,b,N,m){var o=0,x=s;x=x+d>>>0,o+=x<s?1:0,x=x+b>>>0,o+=x<b?1:0,x=x+m>>>0,o+=x<m?1:0;var W=r+l+M+N+o;return W>>>0}or.sum64_4_hi=O;function F(r,s,l,d,M,b,N,m){var o=s+d+b+m;return o>>>0}or.sum64_4_lo=F;function R(r,s,l,d,M,b,N,m,o,x){var W=0,Z=s;Z=Z+d>>>0,W+=Z<s?1:0,Z=Z+b>>>0,W+=Z<b?1:0,Z=Z+m>>>0,W+=Z<m?1:0,Z=Z+x>>>0,W+=Z<x?1:0;var G=r+l+M+N+o+W;return G>>>0}or.sum64_5_hi=R;function Q(r,s,l,d,M,b,N,m,o,x){var W=s+d+b+m+x;return W>>>0}or.sum64_5_lo=Q;function B(r,s,l){var d=s<<32-l|r>>>l;return d>>>0}or.rotr64_hi=B;function k(r,s,l){var d=r<<32-l|s>>>l;return d>>>0}or.rotr64_lo=k;function z(r,s,l){return r>>>l}or.shr64_hi=z;function y(r,s,l){var d=r<<32-l|s>>>l;return d>>>0}return or.shr64_lo=y,or}var nf={},f4;function Va(){if(f4)return nf;f4=1;var e=Qn(),t=Tn();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return nf.BlockHash=n,n.prototype.update=function(c,i){if(c=e.toArray(c,i),this.pending?this.pending=this.pending.concat(c):this.pending=c,this.pendingTotal+=c.length,this.pending.length>=this._delta8){c=this.pending;var u=c.length%this._delta8;this.pending=c.slice(c.length-u,c.length),this.pending.length===0&&(this.pending=null),c=e.join32(c,0,c.length-u,this.endian);for(var f=0;f<c.length;f+=this._delta32)this._update(c,f,f+this._delta32)}return this},n.prototype.digest=function(c){return this.update(this._pad()),t(this.pending===null),this._digest(c)},n.prototype._pad=function(){var c=this.pendingTotal,i=this._delta8,u=i-(c+this.padLength)%i,f=new Array(u+this.padLength);f[0]=128;for(var p=1;p<u;p++)f[p]=0;if(c<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)f[p++]=0;f[p++]=0,f[p++]=0,f[p++]=0,f[p++]=0,f[p++]=c>>>24&255,f[p++]=c>>>16&255,f[p++]=c>>>8&255,f[p++]=c&255}else for(f[p++]=c&255,f[p++]=c>>>8&255,f[p++]=c>>>16&255,f[p++]=c>>>24&255,f[p++]=0,f[p++]=0,f[p++]=0,f[p++]=0,h=8;h<this.padLength;h++)f[p++]=0;return f},nf}var Si={},kn={},u4;function Q6(){if(u4)return kn;u4=1;var e=Qn(),t=e.rotr32;function n(g,C,w,j){if(g===0)return a(C,w,j);if(g===1||g===3)return i(C,w,j);if(g===2)return c(C,w,j)}kn.ft_1=n;function a(g,C,w){return g&C^~g&w}kn.ch32=a;function c(g,C,w){return g&C^g&w^C&w}kn.maj32=c;function i(g,C,w){return g^C^w}kn.p32=i;function u(g){return t(g,2)^t(g,13)^t(g,22)}kn.s0_256=u;function f(g){return t(g,6)^t(g,11)^t(g,25)}kn.s1_256=f;function p(g){return t(g,7)^t(g,18)^g>>>3}kn.g0_256=p;function h(g){return t(g,17)^t(g,19)^g>>>10}return kn.g1_256=h,kn}var of,d4;function $x(){if(d4)return of;d4=1;var e=Qn(),t=Va(),n=Q6(),a=e.rotl32,c=e.sum32,i=e.sum32_5,u=n.ft_1,f=t.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(h,f),of=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(C,w){for(var j=this.W,I=0;I<16;I++)j[I]=C[w+I];for(;I<j.length;I++)j[I]=a(j[I-3]^j[I-8]^j[I-14]^j[I-16],1);var T=this.h[0],S=this.h[1],L=this.h[2],E=this.h[3],D=this.h[4];for(I=0;I<j.length;I++){var O=~~(I/20),F=i(a(T,5),u(O,S,L,E),D,j[I],p[O]);D=E,E=L,L=a(S,30),S=T,T=F}this.h[0]=c(this.h[0],T),this.h[1]=c(this.h[1],S),this.h[2]=c(this.h[2],L),this.h[3]=c(this.h[3],E),this.h[4]=c(this.h[4],D)},h.prototype._digest=function(C){return C==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},of}var af,h4;function V6(){if(h4)return af;h4=1;var e=Qn(),t=Va(),n=Q6(),a=Tn(),c=e.sum32,i=e.sum32_4,u=e.sum32_5,f=n.ch32,p=n.maj32,h=n.s0_256,g=n.s1_256,C=n.g0_256,w=n.g1_256,j=t.BlockHash,I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function T(){if(!(this instanceof T))return new T;j.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}return e.inherits(T,j),af=T,T.blockSize=512,T.outSize=256,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(L,E){for(var D=this.W,O=0;O<16;O++)D[O]=L[E+O];for(;O<D.length;O++)D[O]=i(w(D[O-2]),D[O-7],C(D[O-15]),D[O-16]);var F=this.h[0],R=this.h[1],Q=this.h[2],B=this.h[3],k=this.h[4],z=this.h[5],y=this.h[6],r=this.h[7];for(a(this.k.length===D.length),O=0;O<D.length;O++){var s=u(r,g(k),f(k,z,y),this.k[O],D[O]),l=c(h(F),p(F,R,Q));r=y,y=z,z=k,k=c(B,s),B=Q,Q=R,R=F,F=c(s,l)}this.h[0]=c(this.h[0],F),this.h[1]=c(this.h[1],R),this.h[2]=c(this.h[2],Q),this.h[3]=c(this.h[3],B),this.h[4]=c(this.h[4],k),this.h[5]=c(this.h[5],z),this.h[6]=c(this.h[6],y),this.h[7]=c(this.h[7],r)},T.prototype._digest=function(L){return L==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},af}var sf,p4;function qx(){if(p4)return sf;p4=1;var e=Qn(),t=V6();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(n,t),sf=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(c){return c==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},sf}var cf,g4;function G6(){if(g4)return cf;g4=1;var e=Qn(),t=Va(),n=Tn(),a=e.rotr64_hi,c=e.rotr64_lo,i=e.shr64_hi,u=e.shr64_lo,f=e.sum64,p=e.sum64_hi,h=e.sum64_lo,g=e.sum64_4_hi,C=e.sum64_4_lo,w=e.sum64_5_hi,j=e.sum64_5_lo,I=t.BlockHash,T=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function S(){if(!(this instanceof S))return new S;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=T,this.W=new Array(160)}e.inherits(S,I),cf=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.prototype._prepareBlock=function(l,d){for(var M=this.W,b=0;b<32;b++)M[b]=l[d+b];for(;b<M.length;b+=2){var N=y(M[b-4],M[b-3]),m=r(M[b-4],M[b-3]),o=M[b-14],x=M[b-13],W=k(M[b-30],M[b-29]),Z=z(M[b-30],M[b-29]),G=M[b-32],ee=M[b-31];M[b]=g(N,m,o,x,W,Z,G,ee),M[b+1]=C(N,m,o,x,W,Z,G,ee)}},S.prototype._update=function(l,d){this._prepareBlock(l,d);var M=this.W,b=this.h[0],N=this.h[1],m=this.h[2],o=this.h[3],x=this.h[4],W=this.h[5],Z=this.h[6],G=this.h[7],ee=this.h[8],V=this.h[9],P=this.h[10],H=this.h[11],$=this.h[12],X=this.h[13],te=this.h[14],Y=this.h[15];n(this.k.length===M.length);for(var ne=0;ne<M.length;ne+=2){var xe=te,le=Y,ue=Q(ee,V),Ve=B(ee,V),he=L(ee,V,P,H,$),be=E(ee,V,P,H,$,X),st=this.k[ne],Me=this.k[ne+1],oe=M[ne],We=M[ne+1],de=w(xe,le,ue,Ve,he,be,st,Me,oe,We),ye=j(xe,le,ue,Ve,he,be,st,Me,oe,We);xe=F(b,N),le=R(b,N),ue=D(b,N,m,o,x),Ve=O(b,N,m,o,x,W);var mt=p(xe,le,ue,Ve),je=h(xe,le,ue,Ve);te=$,Y=X,$=P,X=H,P=ee,H=V,ee=p(Z,G,de,ye),V=h(G,G,de,ye),Z=x,G=W,x=m,W=o,m=b,o=N,b=p(de,ye,mt,je),N=h(de,ye,mt,je)}f(this.h,0,b,N),f(this.h,2,m,o),f(this.h,4,x,W),f(this.h,6,Z,G),f(this.h,8,ee,V),f(this.h,10,P,H),f(this.h,12,$,X),f(this.h,14,te,Y)},S.prototype._digest=function(l){return l==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")};function L(s,l,d,M,b){var N=s&d^~s&b;return N<0&&(N+=4294967296),N}function E(s,l,d,M,b,N){var m=l&M^~l&N;return m<0&&(m+=4294967296),m}function D(s,l,d,M,b){var N=s&d^s&b^d&b;return N<0&&(N+=4294967296),N}function O(s,l,d,M,b,N){var m=l&M^l&N^M&N;return m<0&&(m+=4294967296),m}function F(s,l){var d=a(s,l,28),M=a(l,s,2),b=a(l,s,7),N=d^M^b;return N<0&&(N+=4294967296),N}function R(s,l){var d=c(s,l,28),M=c(l,s,2),b=c(l,s,7),N=d^M^b;return N<0&&(N+=4294967296),N}function Q(s,l){var d=a(s,l,14),M=a(s,l,18),b=a(l,s,9),N=d^M^b;return N<0&&(N+=4294967296),N}function B(s,l){var d=c(s,l,14),M=c(s,l,18),b=c(l,s,9),N=d^M^b;return N<0&&(N+=4294967296),N}function k(s,l){var d=a(s,l,1),M=a(s,l,8),b=i(s,l,7),N=d^M^b;return N<0&&(N+=4294967296),N}function z(s,l){var d=c(s,l,1),M=c(s,l,8),b=u(s,l,7),N=d^M^b;return N<0&&(N+=4294967296),N}function y(s,l){var d=a(s,l,19),M=a(l,s,29),b=i(s,l,6),N=d^M^b;return N<0&&(N+=4294967296),N}function r(s,l){var d=c(s,l,19),M=c(l,s,29),b=u(s,l,6),N=d^M^b;return N<0&&(N+=4294967296),N}return cf}var lf,m4;function Jx(){if(m4)return lf;m4=1;var e=Qn(),t=G6();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(n,t),lf=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(c){return c==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},lf}var M4;function Xx(){return M4||(M4=1,Si.sha1=$x(),Si.sha224=qx(),Si.sha256=V6(),Si.sha384=Jx(),Si.sha512=G6()),Si}var ff={},y4;function Kx(){if(y4)return ff;y4=1;var e=Qn(),t=Va(),n=e.rotl32,a=e.sum32,c=e.sum32_3,i=e.sum32_4,u=t.BlockHash;function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(f,u),ff.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(S,L){for(var E=this.h[0],D=this.h[1],O=this.h[2],F=this.h[3],R=this.h[4],Q=E,B=D,k=O,z=F,y=R,r=0;r<80;r++){var s=a(n(i(E,p(r,D,O,F),S[C[r]+L],h(r)),j[r]),R);E=R,R=F,F=n(O,10),O=D,D=s,s=a(n(i(Q,p(79-r,B,k,z),S[w[r]+L],g(r)),I[r]),y),Q=y,y=z,z=n(k,10),k=B,B=s}s=c(this.h[1],O,z),this.h[1]=c(this.h[2],F,y),this.h[2]=c(this.h[3],R,Q),this.h[3]=c(this.h[4],E,B),this.h[4]=c(this.h[0],D,k),this.h[0]=s},f.prototype._digest=function(S){return S==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function p(T,S,L,E){return T<=15?S^L^E:T<=31?S&L|~S&E:T<=47?(S|~L)^E:T<=63?S&E|L&~E:S^(L|~E)}function h(T){return T<=15?0:T<=31?1518500249:T<=47?1859775393:T<=63?2400959708:2840853838}function g(T){return T<=15?1352829926:T<=31?1548603684:T<=47?1836072691:T<=63?2053994217:0}var C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],j=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return ff}var uf,v4;function eb(){if(v4)return uf;v4=1;var e=Qn(),t=Tn();function n(a,c,i){if(!(this instanceof n))return new n(a,c,i);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(c,i))}return uf=n,n.prototype._init=function(c){c.length>this.blockSize&&(c=new this.Hash().update(c).digest()),t(c.length<=this.blockSize);for(var i=c.length;i<this.blockSize;i++)c.push(0);for(i=0;i<c.length;i++)c[i]^=54;for(this.inner=new this.Hash().update(c),i=0;i<c.length;i++)c[i]^=106;this.outer=new this.Hash().update(c)},n.prototype.update=function(c,i){return this.inner.update(c,i),this},n.prototype.digest=function(c){return this.outer.update(this.inner.digest()),this.outer.digest(c)},uf}var x4;function Dd(){return x4||(x4=1,function(e){var t=e;t.utils=Qn(),t.common=Va(),t.sha=Xx(),t.ripemd=Kx(),t.hmac=eb(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(rf)),rf}var df,b4;function tb(){return b4||(b4=1,df={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),df}var C4;function Od(){return C4||(C4=1,function(e){var t=e,n=Dd(),a=Z6(),c=An(),i=c.assert;function u(h){h.type==="short"?this.curve=new a.short(h):h.type==="edwards"?this.curve=new a.edwards(h):this.curve=new a.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=u;function f(h,g){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var C=new u(g);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:C}),C}})}f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var p;try{p=tb()}catch{p=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",p]})}(tf)),tf}var hf,w4;function rb(){if(w4)return hf;w4=1;var e=Dd(),t=H6(),n=Tn();function a(c){if(!(this instanceof a))return new a(c);this.hash=c.hash,this.predResist=!!c.predResist,this.outLen=this.hash.outSize,this.minEntropy=c.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var i=t.toArray(c.entropy,c.entropyEnc||"hex"),u=t.toArray(c.nonce,c.nonceEnc||"hex"),f=t.toArray(c.pers,c.persEnc||"hex");n(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,u,f)}return hf=a,a.prototype._init=function(i,u,f){var p=i.concat(u).concat(f);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(p),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},a.prototype._update=function(i){var u=this._hmac().update(this.V).update([0]);i&&(u=u.update(i)),this.K=u.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(i,u,f,p){typeof u!="string"&&(p=f,f=u,u=null),i=t.toArray(i,u),f=t.toArray(f,p),n(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(f||[])),this._reseed=1},a.prototype.generate=function(i,u,f,p){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof u!="string"&&(p=f,f=u,u=null),f&&(f=t.toArray(f,p||"hex"),this._update(f));for(var h=[];h.length<i;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var g=h.slice(0,i);return this._update(f),this._reseed++,t.encode(g,u)},hf}var pf,N4;function nb(){if(N4)return pf;N4=1;var e=oi(),t=An(),n=t.assert;function a(c,i){this.ec=c,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}return pf=a,a.fromPublic=function(i,u,f){return u instanceof a?u:new a(i,{pub:u,pubEnc:f})},a.fromPrivate=function(i,u,f){return u instanceof a?u:new a(i,{priv:u,privEnc:f})},a.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(i,u){return typeof i=="string"&&(u=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),u?this.pub.encode(u,i):this.pub},a.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(i,u){this.priv=new e(i,u||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(i,u){if(i.x||i.y){this.ec.curve.type==="mont"?n(i.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&n(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y);return}this.pub=this.ec.curve.decodePoint(i,u)},a.prototype.derive=function(i){return i.validate()||n(i.validate(),"public point not validated"),i.mul(this.priv).getX()},a.prototype.sign=function(i,u,f){return this.ec.sign(i,this,u,f)},a.prototype.verify=function(i,u,f){return this.ec.verify(i,u,this,void 0,f)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},pf}var gf,j4;function ib(){if(j4)return gf;j4=1;var e=oi(),t=An(),n=t.assert;function a(p,h){if(p instanceof a)return p;this._importDER(p,h)||(n(p.r&&p.s,"Signature without r or s"),this.r=new e(p.r,16),this.s=new e(p.s,16),p.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=p.recoveryParam)}gf=a;function c(){this.place=0}function i(p,h){var g=p[h.place++];if(!(g&128))return g;var C=g&15;if(C===0||C>4||p[h.place]===0)return!1;for(var w=0,j=0,I=h.place;j<C;j++,I++)w<<=8,w|=p[I],w>>>=0;return w<=127?!1:(h.place=I,w)}function u(p){for(var h=0,g=p.length-1;!p[h]&&!(p[h+1]&128)&&h<g;)h++;return h===0?p:p.slice(h)}a.prototype._importDER=function(h,g){h=t.toArray(h,g);var C=new c;if(h[C.place++]!==48)return!1;var w=i(h,C);if(w===!1||w+C.place!==h.length||h[C.place++]!==2)return!1;var j=i(h,C);if(j===!1||h[C.place]&128)return!1;var I=h.slice(C.place,j+C.place);if(C.place+=j,h[C.place++]!==2)return!1;var T=i(h,C);if(T===!1||h.length!==T+C.place||h[C.place]&128)return!1;var S=h.slice(C.place,T+C.place);if(I[0]===0)if(I[1]&128)I=I.slice(1);else return!1;if(S[0]===0)if(S[1]&128)S=S.slice(1);else return!1;return this.r=new e(I),this.s=new e(S),this.recoveryParam=null,!0};function f(p,h){if(h<128){p.push(h);return}var g=1+(Math.log(h)/Math.LN2>>>3);for(p.push(g|128);--g;)p.push(h>>>(g<<3)&255);p.push(h)}return a.prototype.toDER=function(h){var g=this.r.toArray(),C=this.s.toArray();for(g[0]&128&&(g=[0].concat(g)),C[0]&128&&(C=[0].concat(C)),g=u(g),C=u(C);!C[0]&&!(C[1]&128);)C=C.slice(1);var w=[2];f(w,g.length),w=w.concat(g),w.push(2),f(w,C.length);var j=w.concat(C),I=[48];return f(I,j.length),I=I.concat(j),t.encode(I,h)},gf}var mf,T4;function ob(){if(T4)return mf;T4=1;var e=oi(),t=rb(),n=An(),a=Od(),c=Ed(),i=n.assert,u=nb(),f=ib();function p(h){if(!(this instanceof p))return new p(h);typeof h=="string"&&(i(Object.prototype.hasOwnProperty.call(a,h),"Unknown curve "+h),h=a[h]),h instanceof a.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}return mf=p,p.prototype.keyPair=function(g){return new u(this,g)},p.prototype.keyFromPrivate=function(g,C){return u.fromPrivate(this,g,C)},p.prototype.keyFromPublic=function(g,C){return u.fromPublic(this,g,C)},p.prototype.genKeyPair=function(g){g||(g={});for(var C=new t({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||c(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),w=this.n.byteLength(),j=this.n.sub(new e(2));;){var I=new e(C.generate(w));if(!(I.cmp(j)>0))return I.iaddn(1),this.keyFromPrivate(I)}},p.prototype._truncateToN=function(g,C,w){var j;if(e.isBN(g)||typeof g=="number")g=new e(g,16),j=g.byteLength();else if(typeof g=="object")j=g.length,g=new e(g,16);else{var I=g.toString();j=I.length+1>>>1,g=new e(I,16)}typeof w!="number"&&(w=j*8);var T=w-this.n.bitLength();return T>0&&(g=g.ushrn(T)),!C&&g.cmp(this.n)>=0?g.sub(this.n):g},p.prototype.sign=function(g,C,w,j){if(typeof w=="object"&&(j=w,w=null),j||(j={}),typeof g!="string"&&typeof g!="number"&&!e.isBN(g)){i(typeof g=="object"&&g&&typeof g.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),i(g.length>>>0===g.length);for(var I=0;I<g.length;I++)i((g[I]&255)===g[I])}C=this.keyFromPrivate(C,w),g=this._truncateToN(g,!1,j.msgBitLength),i(!g.isNeg(),"Can not sign a negative message");var T=this.n.byteLength(),S=C.getPrivate().toArray("be",T),L=g.toArray("be",T);i(new e(L).eq(g),"Can not sign message");for(var E=new t({hash:this.hash,entropy:S,nonce:L,pers:j.pers,persEnc:j.persEnc||"utf8"}),D=this.n.sub(new e(1)),O=0;;O++){var F=j.k?j.k(O):new e(E.generate(this.n.byteLength()));if(F=this._truncateToN(F,!0),!(F.cmpn(1)<=0||F.cmp(D)>=0)){var R=this.g.mul(F);if(!R.isInfinity()){var Q=R.getX(),B=Q.umod(this.n);if(B.cmpn(0)!==0){var k=F.invm(this.n).mul(B.mul(C.getPrivate()).iadd(g));if(k=k.umod(this.n),k.cmpn(0)!==0){var z=(R.getY().isOdd()?1:0)|(Q.cmp(B)!==0?2:0);return j.canonical&&k.cmp(this.nh)>0&&(k=this.n.sub(k),z^=1),new f({r:B,s:k,recoveryParam:z})}}}}}},p.prototype.verify=function(g,C,w,j,I){I||(I={}),g=this._truncateToN(g,!1,I.msgBitLength),w=this.keyFromPublic(w,j),C=new f(C,"hex");var T=C.r,S=C.s;if(T.cmpn(1)<0||T.cmp(this.n)>=0||S.cmpn(1)<0||S.cmp(this.n)>=0)return!1;var L=S.invm(this.n),E=L.mul(g).umod(this.n),D=L.mul(T).umod(this.n),O;return this.curve._maxwellTrick?(O=this.g.jmulAdd(E,w.getPublic(),D),O.isInfinity()?!1:O.eqXToP(T)):(O=this.g.mulAdd(E,w.getPublic(),D),O.isInfinity()?!1:O.getX().umod(this.n).cmp(T)===0)},p.prototype.recoverPubKey=function(h,g,C,w){i((3&C)===C,"The recovery param is more than two bits"),g=new f(g,w);var j=this.n,I=new e(h),T=g.r,S=g.s,L=C&1,E=C>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&E)throw new Error("Unable to find sencond key candinate");E?T=this.curve.pointFromX(T.add(this.curve.n),L):T=this.curve.pointFromX(T,L);var D=g.r.invm(j),O=j.sub(I).mul(D).umod(j),F=S.mul(D).umod(j);return this.g.mulAdd(O,T,F)},p.prototype.getKeyRecoveryParam=function(h,g,C,w){if(g=new f(g,w),g.recoveryParam!==null)return g.recoveryParam;for(var j=0;j<4;j++){var I;try{I=this.recoverPubKey(h,g,j)}catch{continue}if(I.eq(C))return j}throw new Error("Unable to find valid recovery factor")},mf}var Mf,A4;function ab(){if(A4)return Mf;A4=1;var e=An(),t=e.assert,n=e.parseBytes,a=e.cachedProperty;function c(i,u){this.eddsa=i,this._secret=n(u.secret),i.isPoint(u.pub)?this._pub=u.pub:this._pubBytes=n(u.pub)}return c.fromPublic=function(u,f){return f instanceof c?f:new c(u,{pub:f})},c.fromSecret=function(u,f){return f instanceof c?f:new c(u,{secret:f})},c.prototype.secret=function(){return this._secret},a(c,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(c,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(c,"privBytes",function(){var u=this.eddsa,f=this.hash(),p=u.encodingLength-1,h=f.slice(0,u.encodingLength);return h[0]&=248,h[p]&=127,h[p]|=64,h}),a(c,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(c,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(c,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),c.prototype.sign=function(u){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)},c.prototype.verify=function(u,f){return this.eddsa.verify(u,f,this)},c.prototype.getSecret=function(u){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),u)},c.prototype.getPublic=function(u){return e.encode(this.pubBytes(),u)},Mf=c,Mf}var yf,I4;function sb(){if(I4)return yf;I4=1;var e=oi(),t=An(),n=t.assert,a=t.cachedProperty,c=t.parseBytes;function i(u,f){this.eddsa=u,typeof f!="object"&&(f=c(f)),Array.isArray(f)&&(n(f.length===u.encodingLength*2,"Signature has invalid size"),f={R:f.slice(0,u.encodingLength),S:f.slice(u.encodingLength)}),n(f.R&&f.S,"Signature without R or S"),u.isPoint(f.R)&&(this._R=f.R),f.S instanceof e&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}return a(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},yf=i,yf}var vf,E4;function cb(){if(E4)return vf;E4=1;var e=Dd(),t=Od(),n=An(),a=n.assert,c=n.parseBytes,i=ab(),u=sb();function f(p){if(a(p==="ed25519","only tested with ed25519 so far"),!(this instanceof f))return new f(p);p=t[p].curve,this.curve=p,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=e.sha512}return vf=f,f.prototype.sign=function(h,g){h=c(h);var C=this.keyFromSecret(g),w=this.hashInt(C.messagePrefix(),h),j=this.g.mul(w),I=this.encodePoint(j),T=this.hashInt(I,C.pubBytes(),h).mul(C.priv()),S=w.add(T).umod(this.curve.n);return this.makeSignature({R:j,S,Rencoded:I})},f.prototype.verify=function(h,g,C){if(h=c(h),g=this.makeSignature(g),g.S().gte(g.eddsa.curve.n)||g.S().isNeg())return!1;var w=this.keyFromPublic(C),j=this.hashInt(g.Rencoded(),w.pubBytes(),h),I=this.g.mul(g.S()),T=g.R().add(w.pub().mul(j));return T.eq(I)},f.prototype.hashInt=function(){for(var h=this.hash(),g=0;g<arguments.length;g++)h.update(arguments[g]);return n.intFromLE(h.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(h){return i.fromPublic(this,h)},f.prototype.keyFromSecret=function(h){return i.fromSecret(this,h)},f.prototype.makeSignature=function(h){return h instanceof u?h:new u(this,h)},f.prototype.encodePoint=function(h){var g=h.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=h.getX().isOdd()?128:0,g},f.prototype.decodePoint=function(h){h=n.parseBytes(h);var g=h.length-1,C=h.slice(0,g).concat(h[g]&-129),w=(h[g]&128)!==0,j=n.intFromLE(C);return this.curve.pointFromY(j,w)},f.prototype.encodeInt=function(h){return h.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(h){return n.intFromLE(h)},f.prototype.isPoint=function(h){return h instanceof this.pointClass},vf}var L4;function Z0(){return L4||(L4=1,function(e){var t=e;t.version=Zx.version,t.utils=An(),t.rand=Ed(),t.curve=Z6(),t.curves=Od(),t.ec=ob(),t.eddsa=cb()}(Vl)),Vl}var fn={},xf={},Zs={exports:{}};Zs.exports;var S4;function lb(){return S4||(S4=1,function(e){(function(t,n){function a(y,r){if(!y)throw new Error(r||"Assertion failed")}function c(y,r){y.super_=r;var s=function(){};s.prototype=r.prototype,y.prototype=new s,y.prototype.constructor=y}function i(y,r,s){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((r==="le"||r==="be")&&(s=r,r=10),this._init(y||0,r||10,s||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=_.bufferPolyfill.Buffer}catch{}i.isBN=function(r){return r instanceof i?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===i.wordSize&&Array.isArray(r.words)},i.max=function(r,s){return r.cmp(s)>0?r:s},i.min=function(r,s){return r.cmp(s)<0?r:s},i.prototype._init=function(r,s,l){if(typeof r=="number")return this._initNumber(r,s,l);if(typeof r=="object")return this._initArray(r,s,l);s==="hex"&&(s=16),a(s===(s|0)&&s>=2&&s<=36),r=r.toString().replace(/\s+/g,"");var d=0;r[0]==="-"&&(d++,this.negative=1),d<r.length&&(s===16?this._parseHex(r,d,l):(this._parseBase(r,s,d),l==="le"&&this._initArray(this.toArray(),s,l)))},i.prototype._initNumber=function(r,s,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(r,s,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M,b,N=0;if(l==="be")for(d=r.length-1,M=0;d>=0;d-=3)b=r[d]|r[d-1]<<8|r[d-2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);else if(l==="le")for(d=0,M=0;d<r.length;d+=3)b=r[d]|r[d+1]<<8|r[d+2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);return this.strip()};function f(y,r){var s=y.charCodeAt(r);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function p(y,r,s){var l=f(y,s);return s-1>=r&&(l|=f(y,s-1)<<4),l}i.prototype._parseHex=function(r,s,l){this.length=Math.ceil((r.length-s)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M=0,b=0,N;if(l==="be")for(d=r.length-1;d>=s;d-=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8;else{var m=r.length-s;for(d=m%2===0?s+1:s;d<r.length;d+=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8}this.strip()};function h(y,r,s,l){for(var d=0,M=Math.min(y.length,s),b=r;b<M;b++){var N=y.charCodeAt(b)-48;d*=l,N>=49?d+=N-49+10:N>=17?d+=N-17+10:d+=N}return d}i.prototype._parseBase=function(r,s,l){this.words=[0],this.length=1;for(var d=0,M=1;M<=67108863;M*=s)d++;d--,M=M/s|0;for(var b=r.length-l,N=b%d,m=Math.min(b,b-N)+l,o=0,x=l;x<m;x+=d)o=h(r,x,x+d,s),this.imuln(M),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(N!==0){var W=1;for(o=h(r,x,r.length,s),x=0;x<N;x++)W*=s;this.imuln(W),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(r){r.words=new Array(this.length);for(var s=0;s<this.length;s++)r.words[s]=this.words[s];r.length=this.length,r.negative=this.negative,r.red=this.red},i.prototype.clone=function(){var r=new i(null);return this.copy(r),r},i.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(r,s){r=r||10,s=s|0||1;var l;if(r===16||r==="hex"){l="";for(var d=0,M=0,b=0;b<this.length;b++){var N=this.words[b],m=((N<<d|M)&16777215).toString(16);M=N>>>24-d&16777215,d+=2,d>=26&&(d-=26,b--),M!==0||b!==this.length-1?l=g[6-m.length]+m+l:l=m+l}for(M!==0&&(l=M.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var o=C[r],x=w[r];l="";var W=this.clone();for(W.negative=0;!W.isZero();){var Z=W.modn(x).toString(r);W=W.idivn(x),W.isZero()?l=Z+l:l=g[o-Z.length]+Z+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(r,s){return a(typeof u<"u"),this.toArrayLike(u,r,s)},i.prototype.toArray=function(r,s){return this.toArrayLike(Array,r,s)},i.prototype.toArrayLike=function(r,s,l){var d=this.byteLength(),M=l||Math.max(1,d);a(d<=M,"byte array longer than desired length"),a(M>0,"Requested array length <= 0"),this.strip();var b=s==="le",N=new r(M),m,o,x=this.clone();if(b){for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[o]=m;for(;o<M;o++)N[o]=0}else{for(o=0;o<M-d;o++)N[o]=0;for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[M-o-1]=m}return N},Math.clz32?i.prototype._countBits=function(r){return 32-Math.clz32(r)}:i.prototype._countBits=function(r){var s=r,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(r){if(r===0)return 26;var s=r,l=0;return s&8191||(l+=13,s>>>=13),s&127||(l+=7,s>>>=7),s&15||(l+=4,s>>>=4),s&3||(l+=2,s>>>=2),s&1||l++,l},i.prototype.bitLength=function(){var r=this.words[this.length-1],s=this._countBits(r);return(this.length-1)*26+s};function j(y){for(var r=new Array(y.bitLength()),s=0;s<r.length;s++){var l=s/26|0,d=s%26;r[s]=(y.words[l]&1<<d)>>>d}return r}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(r+=l,l!==26)break}return r},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},i.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var s=0;s<r.length;s++)this.words[s]=this.words[s]|r.words[s];return this.strip()},i.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},i.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},i.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},i.prototype.iuand=function(r){var s;this.length>r.length?s=r:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},i.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},i.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},i.prototype.iuxor=function(r){var s,l;this.length>r.length?(s=this,l=r):(s=r,l=this);for(var d=0;d<l.length;d++)this.words[d]=s.words[d]^l.words[d];if(this!==s)for(;d<s.length;d++)this.words[d]=s.words[d];return this.length=s.length,this.strip()},i.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},i.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},i.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},i.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var s=Math.ceil(r/26)|0,l=r%26;this._expand(s),l>0&&s--;for(var d=0;d<s;d++)this.words[d]=~this.words[d]&67108863;return l>0&&(this.words[d]=~this.words[d]&67108863>>26-l),this.strip()},i.prototype.notn=function(r){return this.clone().inotn(r)},i.prototype.setn=function(r,s){a(typeof r=="number"&&r>=0);var l=r/26|0,d=r%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<d:this.words[l]=this.words[l]&~(1<<d),this.strip()},i.prototype.iadd=function(r){var s;if(this.negative!==0&&r.negative===0)return this.negative=0,s=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,s=this.isub(r),r.negative=1,s._normSign();var l,d;this.length>r.length?(l=this,d=r):(l=r,d=this);for(var M=0,b=0;b<d.length;b++)s=(l.words[b]|0)+(d.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;for(;M!==0&&b<l.length;b++)s=(l.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;if(this.length=l.length,M!==0)this.words[this.length]=M,this.length++;else if(l!==this)for(;b<l.length;b++)this.words[b]=l.words[b];return this},i.prototype.add=function(r){var s;return r.negative!==0&&this.negative===0?(r.negative=0,s=this.sub(r),r.negative^=1,s):r.negative===0&&this.negative!==0?(this.negative=0,s=r.sub(this),this.negative=1,s):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},i.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var s=this.iadd(r);return r.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var d,M;l>0?(d=this,M=r):(d=r,M=this);for(var b=0,N=0;N<M.length;N++)s=(d.words[N]|0)-(M.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;for(;b!==0&&N<d.length;N++)s=(d.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;if(b===0&&N<d.length&&d!==this)for(;N<d.length;N++)this.words[N]=d.words[N];return this.length=Math.max(this.length,N),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(r){return this.clone().isub(r)};function I(y,r,s){s.negative=r.negative^y.negative;var l=y.length+r.length|0;s.length=l,l=l-1|0;var d=y.words[0]|0,M=r.words[0]|0,b=d*M,N=b&67108863,m=b/67108864|0;s.words[0]=N;for(var o=1;o<l;o++){for(var x=m>>>26,W=m&67108863,Z=Math.min(o,r.length-1),G=Math.max(0,o-y.length+1);G<=Z;G++){var ee=o-G|0;d=y.words[ee]|0,M=r.words[G]|0,b=d*M+W,x+=b/67108864|0,W=b&67108863}s.words[o]=W|0,m=x|0}return m!==0?s.words[o]=m|0:s.length--,s.strip()}var T=function(r,s,l){var d=r.words,M=s.words,b=l.words,N=0,m,o,x,W=d[0]|0,Z=W&8191,G=W>>>13,ee=d[1]|0,V=ee&8191,P=ee>>>13,H=d[2]|0,$=H&8191,X=H>>>13,te=d[3]|0,Y=te&8191,ne=te>>>13,xe=d[4]|0,le=xe&8191,ue=xe>>>13,Ve=d[5]|0,he=Ve&8191,be=Ve>>>13,st=d[6]|0,Me=st&8191,oe=st>>>13,We=d[7]|0,de=We&8191,ye=We>>>13,mt=d[8]|0,je=mt&8191,Ae=mt>>>13,Tt=d[9]|0,De=Tt&8191,ve=Tt>>>13,jt=M[0]|0,Ee=jt&8191,Le=jt>>>13,Ot=M[1]|0,me=Ot&8191,Ce=Ot>>>13,xt=M[2]|0,Se=xt&8191,Oe=xt>>>13,Wt=M[3]|0,ze=Wt&8191,ke=Wt>>>13,er=M[4]|0,Fe=er&8191,Re=er>>>13,Mt=M[5]|0,_e=Mt&8191,Pe=Mt>>>13,Tr=M[6]|0,Be=Tr&8191,Ue=Tr>>>13,q=M[7]|0,K=q&8191,J=q>>>13,U=M[8]|0,re=U&8191,se=U>>>13,we=M[9]|0,ce=we&8191,pe=we>>>13;l.negative=r.negative^s.negative,l.length=19,m=Math.imul(Z,Ee),o=Math.imul(Z,Le),o=o+Math.imul(G,Ee)|0,x=Math.imul(G,Le);var ot=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(V,Ee),o=Math.imul(V,Le),o=o+Math.imul(P,Ee)|0,x=Math.imul(P,Le),m=m+Math.imul(Z,me)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(G,me)|0,x=x+Math.imul(G,Ce)|0;var qe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul($,Ee),o=Math.imul($,Le),o=o+Math.imul(X,Ee)|0,x=Math.imul(X,Le),m=m+Math.imul(V,me)|0,o=o+Math.imul(V,Ce)|0,o=o+Math.imul(P,me)|0,x=x+Math.imul(P,Ce)|0,m=m+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Oe)|0,o=o+Math.imul(G,Se)|0,x=x+Math.imul(G,Oe)|0;var Ct=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,m=Math.imul(Y,Ee),o=Math.imul(Y,Le),o=o+Math.imul(ne,Ee)|0,x=Math.imul(ne,Le),m=m+Math.imul($,me)|0,o=o+Math.imul($,Ce)|0,o=o+Math.imul(X,me)|0,x=x+Math.imul(X,Ce)|0,m=m+Math.imul(V,Se)|0,o=o+Math.imul(V,Oe)|0,o=o+Math.imul(P,Se)|0,x=x+Math.imul(P,Oe)|0,m=m+Math.imul(Z,ze)|0,o=o+Math.imul(Z,ke)|0,o=o+Math.imul(G,ze)|0,x=x+Math.imul(G,ke)|0;var et=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(le,Ee),o=Math.imul(le,Le),o=o+Math.imul(ue,Ee)|0,x=Math.imul(ue,Le),m=m+Math.imul(Y,me)|0,o=o+Math.imul(Y,Ce)|0,o=o+Math.imul(ne,me)|0,x=x+Math.imul(ne,Ce)|0,m=m+Math.imul($,Se)|0,o=o+Math.imul($,Oe)|0,o=o+Math.imul(X,Se)|0,x=x+Math.imul(X,Oe)|0,m=m+Math.imul(V,ze)|0,o=o+Math.imul(V,ke)|0,o=o+Math.imul(P,ze)|0,x=x+Math.imul(P,ke)|0,m=m+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(G,Fe)|0,x=x+Math.imul(G,Re)|0;var lt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(he,Ee),o=Math.imul(he,Le),o=o+Math.imul(be,Ee)|0,x=Math.imul(be,Le),m=m+Math.imul(le,me)|0,o=o+Math.imul(le,Ce)|0,o=o+Math.imul(ue,me)|0,x=x+Math.imul(ue,Ce)|0,m=m+Math.imul(Y,Se)|0,o=o+Math.imul(Y,Oe)|0,o=o+Math.imul(ne,Se)|0,x=x+Math.imul(ne,Oe)|0,m=m+Math.imul($,ze)|0,o=o+Math.imul($,ke)|0,o=o+Math.imul(X,ze)|0,x=x+Math.imul(X,ke)|0,m=m+Math.imul(V,Fe)|0,o=o+Math.imul(V,Re)|0,o=o+Math.imul(P,Fe)|0,x=x+Math.imul(P,Re)|0,m=m+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Pe)|0,o=o+Math.imul(G,_e)|0,x=x+Math.imul(G,Pe)|0;var ft=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,m=Math.imul(Me,Ee),o=Math.imul(Me,Le),o=o+Math.imul(oe,Ee)|0,x=Math.imul(oe,Le),m=m+Math.imul(he,me)|0,o=o+Math.imul(he,Ce)|0,o=o+Math.imul(be,me)|0,x=x+Math.imul(be,Ce)|0,m=m+Math.imul(le,Se)|0,o=o+Math.imul(le,Oe)|0,o=o+Math.imul(ue,Se)|0,x=x+Math.imul(ue,Oe)|0,m=m+Math.imul(Y,ze)|0,o=o+Math.imul(Y,ke)|0,o=o+Math.imul(ne,ze)|0,x=x+Math.imul(ne,ke)|0,m=m+Math.imul($,Fe)|0,o=o+Math.imul($,Re)|0,o=o+Math.imul(X,Fe)|0,x=x+Math.imul(X,Re)|0,m=m+Math.imul(V,_e)|0,o=o+Math.imul(V,Pe)|0,o=o+Math.imul(P,_e)|0,x=x+Math.imul(P,Pe)|0,m=m+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ue)|0,o=o+Math.imul(G,Be)|0,x=x+Math.imul(G,Ue)|0;var gt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(de,Ee),o=Math.imul(de,Le),o=o+Math.imul(ye,Ee)|0,x=Math.imul(ye,Le),m=m+Math.imul(Me,me)|0,o=o+Math.imul(Me,Ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,Ce)|0,m=m+Math.imul(he,Se)|0,o=o+Math.imul(he,Oe)|0,o=o+Math.imul(be,Se)|0,x=x+Math.imul(be,Oe)|0,m=m+Math.imul(le,ze)|0,o=o+Math.imul(le,ke)|0,o=o+Math.imul(ue,ze)|0,x=x+Math.imul(ue,ke)|0,m=m+Math.imul(Y,Fe)|0,o=o+Math.imul(Y,Re)|0,o=o+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,Re)|0,m=m+Math.imul($,_e)|0,o=o+Math.imul($,Pe)|0,o=o+Math.imul(X,_e)|0,x=x+Math.imul(X,Pe)|0,m=m+Math.imul(V,Be)|0,o=o+Math.imul(V,Ue)|0,o=o+Math.imul(P,Be)|0,x=x+Math.imul(P,Ue)|0,m=m+Math.imul(Z,K)|0,o=o+Math.imul(Z,J)|0,o=o+Math.imul(G,K)|0,x=x+Math.imul(G,J)|0;var pt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(je,Ee),o=Math.imul(je,Le),o=o+Math.imul(Ae,Ee)|0,x=Math.imul(Ae,Le),m=m+Math.imul(de,me)|0,o=o+Math.imul(de,Ce)|0,o=o+Math.imul(ye,me)|0,x=x+Math.imul(ye,Ce)|0,m=m+Math.imul(Me,Se)|0,o=o+Math.imul(Me,Oe)|0,o=o+Math.imul(oe,Se)|0,x=x+Math.imul(oe,Oe)|0,m=m+Math.imul(he,ze)|0,o=o+Math.imul(he,ke)|0,o=o+Math.imul(be,ze)|0,x=x+Math.imul(be,ke)|0,m=m+Math.imul(le,Fe)|0,o=o+Math.imul(le,Re)|0,o=o+Math.imul(ue,Fe)|0,x=x+Math.imul(ue,Re)|0,m=m+Math.imul(Y,_e)|0,o=o+Math.imul(Y,Pe)|0,o=o+Math.imul(ne,_e)|0,x=x+Math.imul(ne,Pe)|0,m=m+Math.imul($,Be)|0,o=o+Math.imul($,Ue)|0,o=o+Math.imul(X,Be)|0,x=x+Math.imul(X,Ue)|0,m=m+Math.imul(V,K)|0,o=o+Math.imul(V,J)|0,o=o+Math.imul(P,K)|0,x=x+Math.imul(P,J)|0,m=m+Math.imul(Z,re)|0,o=o+Math.imul(Z,se)|0,o=o+Math.imul(G,re)|0,x=x+Math.imul(G,se)|0;var ut=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ut>>>26)|0,ut&=67108863,m=Math.imul(De,Ee),o=Math.imul(De,Le),o=o+Math.imul(ve,Ee)|0,x=Math.imul(ve,Le),m=m+Math.imul(je,me)|0,o=o+Math.imul(je,Ce)|0,o=o+Math.imul(Ae,me)|0,x=x+Math.imul(Ae,Ce)|0,m=m+Math.imul(de,Se)|0,o=o+Math.imul(de,Oe)|0,o=o+Math.imul(ye,Se)|0,x=x+Math.imul(ye,Oe)|0,m=m+Math.imul(Me,ze)|0,o=o+Math.imul(Me,ke)|0,o=o+Math.imul(oe,ze)|0,x=x+Math.imul(oe,ke)|0,m=m+Math.imul(he,Fe)|0,o=o+Math.imul(he,Re)|0,o=o+Math.imul(be,Fe)|0,x=x+Math.imul(be,Re)|0,m=m+Math.imul(le,_e)|0,o=o+Math.imul(le,Pe)|0,o=o+Math.imul(ue,_e)|0,x=x+Math.imul(ue,Pe)|0,m=m+Math.imul(Y,Be)|0,o=o+Math.imul(Y,Ue)|0,o=o+Math.imul(ne,Be)|0,x=x+Math.imul(ne,Ue)|0,m=m+Math.imul($,K)|0,o=o+Math.imul($,J)|0,o=o+Math.imul(X,K)|0,x=x+Math.imul(X,J)|0,m=m+Math.imul(V,re)|0,o=o+Math.imul(V,se)|0,o=o+Math.imul(P,re)|0,x=x+Math.imul(P,se)|0,m=m+Math.imul(Z,ce)|0,o=o+Math.imul(Z,pe)|0,o=o+Math.imul(G,ce)|0,x=x+Math.imul(G,pe)|0;var ht=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(De,me),o=Math.imul(De,Ce),o=o+Math.imul(ve,me)|0,x=Math.imul(ve,Ce),m=m+Math.imul(je,Se)|0,o=o+Math.imul(je,Oe)|0,o=o+Math.imul(Ae,Se)|0,x=x+Math.imul(Ae,Oe)|0,m=m+Math.imul(de,ze)|0,o=o+Math.imul(de,ke)|0,o=o+Math.imul(ye,ze)|0,x=x+Math.imul(ye,ke)|0,m=m+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Re)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Re)|0,m=m+Math.imul(he,_e)|0,o=o+Math.imul(he,Pe)|0,o=o+Math.imul(be,_e)|0,x=x+Math.imul(be,Pe)|0,m=m+Math.imul(le,Be)|0,o=o+Math.imul(le,Ue)|0,o=o+Math.imul(ue,Be)|0,x=x+Math.imul(ue,Ue)|0,m=m+Math.imul(Y,K)|0,o=o+Math.imul(Y,J)|0,o=o+Math.imul(ne,K)|0,x=x+Math.imul(ne,J)|0,m=m+Math.imul($,re)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(X,re)|0,x=x+Math.imul(X,se)|0,m=m+Math.imul(V,ce)|0,o=o+Math.imul(V,pe)|0,o=o+Math.imul(P,ce)|0,x=x+Math.imul(P,pe)|0;var dt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(De,Se),o=Math.imul(De,Oe),o=o+Math.imul(ve,Se)|0,x=Math.imul(ve,Oe),m=m+Math.imul(je,ze)|0,o=o+Math.imul(je,ke)|0,o=o+Math.imul(Ae,ze)|0,x=x+Math.imul(Ae,ke)|0,m=m+Math.imul(de,Fe)|0,o=o+Math.imul(de,Re)|0,o=o+Math.imul(ye,Fe)|0,x=x+Math.imul(ye,Re)|0,m=m+Math.imul(Me,_e)|0,o=o+Math.imul(Me,Pe)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Pe)|0,m=m+Math.imul(he,Be)|0,o=o+Math.imul(he,Ue)|0,o=o+Math.imul(be,Be)|0,x=x+Math.imul(be,Ue)|0,m=m+Math.imul(le,K)|0,o=o+Math.imul(le,J)|0,o=o+Math.imul(ue,K)|0,x=x+Math.imul(ue,J)|0,m=m+Math.imul(Y,re)|0,o=o+Math.imul(Y,se)|0,o=o+Math.imul(ne,re)|0,x=x+Math.imul(ne,se)|0,m=m+Math.imul($,ce)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(X,ce)|0,x=x+Math.imul(X,pe)|0;var rt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(De,ze),o=Math.imul(De,ke),o=o+Math.imul(ve,ze)|0,x=Math.imul(ve,ke),m=m+Math.imul(je,Fe)|0,o=o+Math.imul(je,Re)|0,o=o+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,Re)|0,m=m+Math.imul(de,_e)|0,o=o+Math.imul(de,Pe)|0,o=o+Math.imul(ye,_e)|0,x=x+Math.imul(ye,Pe)|0,m=m+Math.imul(Me,Be)|0,o=o+Math.imul(Me,Ue)|0,o=o+Math.imul(oe,Be)|0,x=x+Math.imul(oe,Ue)|0,m=m+Math.imul(he,K)|0,o=o+Math.imul(he,J)|0,o=o+Math.imul(be,K)|0,x=x+Math.imul(be,J)|0,m=m+Math.imul(le,re)|0,o=o+Math.imul(le,se)|0,o=o+Math.imul(ue,re)|0,x=x+Math.imul(ue,se)|0,m=m+Math.imul(Y,ce)|0,o=o+Math.imul(Y,pe)|0,o=o+Math.imul(ne,ce)|0,x=x+Math.imul(ne,pe)|0;var at=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(De,Fe),o=Math.imul(De,Re),o=o+Math.imul(ve,Fe)|0,x=Math.imul(ve,Re),m=m+Math.imul(je,_e)|0,o=o+Math.imul(je,Pe)|0,o=o+Math.imul(Ae,_e)|0,x=x+Math.imul(Ae,Pe)|0,m=m+Math.imul(de,Be)|0,o=o+Math.imul(de,Ue)|0,o=o+Math.imul(ye,Be)|0,x=x+Math.imul(ye,Ue)|0,m=m+Math.imul(Me,K)|0,o=o+Math.imul(Me,J)|0,o=o+Math.imul(oe,K)|0,x=x+Math.imul(oe,J)|0,m=m+Math.imul(he,re)|0,o=o+Math.imul(he,se)|0,o=o+Math.imul(be,re)|0,x=x+Math.imul(be,se)|0,m=m+Math.imul(le,ce)|0,o=o+Math.imul(le,pe)|0,o=o+Math.imul(ue,ce)|0,x=x+Math.imul(ue,pe)|0;var Xe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(De,_e),o=Math.imul(De,Pe),o=o+Math.imul(ve,_e)|0,x=Math.imul(ve,Pe),m=m+Math.imul(je,Be)|0,o=o+Math.imul(je,Ue)|0,o=o+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,Ue)|0,m=m+Math.imul(de,K)|0,o=o+Math.imul(de,J)|0,o=o+Math.imul(ye,K)|0,x=x+Math.imul(ye,J)|0,m=m+Math.imul(Me,re)|0,o=o+Math.imul(Me,se)|0,o=o+Math.imul(oe,re)|0,x=x+Math.imul(oe,se)|0,m=m+Math.imul(he,ce)|0,o=o+Math.imul(he,pe)|0,o=o+Math.imul(be,ce)|0,x=x+Math.imul(be,pe)|0;var nt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(De,Be),o=Math.imul(De,Ue),o=o+Math.imul(ve,Be)|0,x=Math.imul(ve,Ue),m=m+Math.imul(je,K)|0,o=o+Math.imul(je,J)|0,o=o+Math.imul(Ae,K)|0,x=x+Math.imul(Ae,J)|0,m=m+Math.imul(de,re)|0,o=o+Math.imul(de,se)|0,o=o+Math.imul(ye,re)|0,x=x+Math.imul(ye,se)|0,m=m+Math.imul(Me,ce)|0,o=o+Math.imul(Me,pe)|0,o=o+Math.imul(oe,ce)|0,x=x+Math.imul(oe,pe)|0;var it=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(De,K),o=Math.imul(De,J),o=o+Math.imul(ve,K)|0,x=Math.imul(ve,J),m=m+Math.imul(je,re)|0,o=o+Math.imul(je,se)|0,o=o+Math.imul(Ae,re)|0,x=x+Math.imul(Ae,se)|0,m=m+Math.imul(de,ce)|0,o=o+Math.imul(de,pe)|0,o=o+Math.imul(ye,ce)|0,x=x+Math.imul(ye,pe)|0;var Ge=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(De,re),o=Math.imul(De,se),o=o+Math.imul(ve,re)|0,x=Math.imul(ve,se),m=m+Math.imul(je,ce)|0,o=o+Math.imul(je,pe)|0,o=o+Math.imul(Ae,ce)|0,x=x+Math.imul(Ae,pe)|0;var Te=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,m=Math.imul(De,ce),o=Math.imul(De,pe),o=o+Math.imul(ve,ce)|0,x=Math.imul(ve,pe);var Ie=(N+m|0)+((o&8191)<<13)|0;return N=(x+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b[0]=ot,b[1]=qe,b[2]=Ct,b[3]=et,b[4]=lt,b[5]=ft,b[6]=gt,b[7]=pt,b[8]=ut,b[9]=ht,b[10]=dt,b[11]=rt,b[12]=at,b[13]=Xe,b[14]=nt,b[15]=it,b[16]=Ge,b[17]=Te,b[18]=Ie,N!==0&&(b[19]=N,l.length++),l};Math.imul||(T=I);function S(y,r,s){s.negative=r.negative^y.negative,s.length=y.length+r.length;for(var l=0,d=0,M=0;M<s.length-1;M++){var b=d;d=0;for(var N=l&67108863,m=Math.min(M,r.length-1),o=Math.max(0,M-y.length+1);o<=m;o++){var x=M-o,W=y.words[x]|0,Z=r.words[o]|0,G=W*Z,ee=G&67108863;b=b+(G/67108864|0)|0,ee=ee+N|0,N=ee&67108863,b=b+(ee>>>26)|0,d+=b>>>26,b&=67108863}s.words[M]=N,l=b,b=d}return l!==0?s.words[M]=l:s.length--,s.strip()}function L(y,r,s){var l=new E;return l.mulp(y,r,s)}i.prototype.mulTo=function(r,s){var l,d=this.length+r.length;return this.length===10&&r.length===10?l=T(this,r,s):d<63?l=I(this,r,s):d<1024?l=S(this,r,s):l=L(this,r,s),l};function E(y,r){this.x=y,this.y=r}E.prototype.makeRBT=function(r){for(var s=new Array(r),l=i.prototype._countBits(r)-1,d=0;d<r;d++)s[d]=this.revBin(d,l,r);return s},E.prototype.revBin=function(r,s,l){if(r===0||r===l-1)return r;for(var d=0,M=0;M<s;M++)d|=(r&1)<<s-M-1,r>>=1;return d},E.prototype.permute=function(r,s,l,d,M,b){for(var N=0;N<b;N++)d[N]=s[r[N]],M[N]=l[r[N]]},E.prototype.transform=function(r,s,l,d,M,b){this.permute(b,r,s,l,d,M);for(var N=1;N<M;N<<=1)for(var m=N<<1,o=Math.cos(2*Math.PI/m),x=Math.sin(2*Math.PI/m),W=0;W<M;W+=m)for(var Z=o,G=x,ee=0;ee<N;ee++){var V=l[W+ee],P=d[W+ee],H=l[W+ee+N],$=d[W+ee+N],X=Z*H-G*$;$=Z*$+G*H,H=X,l[W+ee]=V+H,d[W+ee]=P+$,l[W+ee+N]=V-H,d[W+ee+N]=P-$,ee!==m&&(X=o*Z-x*G,G=o*G+x*Z,Z=X)}},E.prototype.guessLen13b=function(r,s){var l=Math.max(s,r)|1,d=l&1,M=0;for(l=l/2|0;l;l=l>>>1)M++;return 1<<M+1+d},E.prototype.conjugate=function(r,s,l){if(!(l<=1))for(var d=0;d<l/2;d++){var M=r[d];r[d]=r[l-d-1],r[l-d-1]=M,M=s[d],s[d]=-s[l-d-1],s[l-d-1]=-M}},E.prototype.normalize13b=function(r,s){for(var l=0,d=0;d<s/2;d++){var M=Math.round(r[2*d+1]/s)*8192+Math.round(r[2*d]/s)+l;r[d]=M&67108863,M<67108864?l=0:l=M/67108864|0}return r},E.prototype.convert13b=function(r,s,l,d){for(var M=0,b=0;b<s;b++)M=M+(r[b]|0),l[2*b]=M&8191,M=M>>>13,l[2*b+1]=M&8191,M=M>>>13;for(b=2*s;b<d;++b)l[b]=0;a(M===0),a((M&-8192)===0)},E.prototype.stub=function(r){for(var s=new Array(r),l=0;l<r;l++)s[l]=0;return s},E.prototype.mulp=function(r,s,l){var d=2*this.guessLen13b(r.length,s.length),M=this.makeRBT(d),b=this.stub(d),N=new Array(d),m=new Array(d),o=new Array(d),x=new Array(d),W=new Array(d),Z=new Array(d),G=l.words;G.length=d,this.convert13b(r.words,r.length,N,d),this.convert13b(s.words,s.length,x,d),this.transform(N,b,m,o,d,M),this.transform(x,b,W,Z,d,M);for(var ee=0;ee<d;ee++){var V=m[ee]*W[ee]-o[ee]*Z[ee];o[ee]=m[ee]*Z[ee]+o[ee]*W[ee],m[ee]=V}return this.conjugate(m,o,d),this.transform(m,o,G,b,d,M),this.conjugate(G,b,d),this.normalize13b(G,d),l.negative=r.negative^s.negative,l.length=r.length+s.length,l.strip()},i.prototype.mul=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),this.mulTo(r,s)},i.prototype.mulf=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),L(this,r,s)},i.prototype.imul=function(r){return this.clone().mulTo(r,this)},i.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var s=0,l=0;l<this.length;l++){var d=(this.words[l]|0)*r,M=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=M>>>26,this.words[l]=M&67108863}return s!==0&&(this.words[l]=s,this.length++),this.length=r===0?1:this.length,this},i.prototype.muln=function(r){return this.clone().imuln(r)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(r){var s=j(r);if(s.length===0)return new i(1);for(var l=this,d=0;d<s.length&&s[d]===0;d++,l=l.sqr());if(++d<s.length)for(var M=l.sqr();d<s.length;d++,M=M.sqr())s[d]!==0&&(l=l.mul(M));return l},i.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=67108863>>>26-s<<26-s,M;if(s!==0){var b=0;for(M=0;M<this.length;M++){var N=this.words[M]&d,m=(this.words[M]|0)-N<<s;this.words[M]=m|b,b=N>>>26-s}b&&(this.words[M]=b,this.length++)}if(l!==0){for(M=this.length-1;M>=0;M--)this.words[M+l]=this.words[M];for(M=0;M<l;M++)this.words[M]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},i.prototype.iushrn=function(r,s,l){a(typeof r=="number"&&r>=0);var d;s?d=(s-s%26)/26:d=0;var M=r%26,b=Math.min((r-M)/26,this.length),N=67108863^67108863>>>M<<M,m=l;if(d-=b,d=Math.max(0,d),m){for(var o=0;o<b;o++)m.words[o]=this.words[o];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,o=0;o<this.length;o++)this.words[o]=this.words[o+b];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=d);o--){var W=this.words[o]|0;this.words[o]=x<<26-M|W>>>M,x=W&N}return m&&x!==0&&(m.words[m.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(r,s,l){return a(this.negative===0),this.iushrn(r,s,l)},i.prototype.shln=function(r){return this.clone().ishln(r)},i.prototype.ushln=function(r){return this.clone().iushln(r)},i.prototype.shrn=function(r){return this.clone().ishrn(r)},i.prototype.ushrn=function(r){return this.clone().iushrn(r)},i.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return!1;var M=this.words[l];return!!(M&d)},i.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var d=67108863^67108863>>>s<<s;this.words[this.length-1]&=d}return this.strip()},i.prototype.maskn=function(r){return this.clone().imaskn(r)},i.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},i.prototype._iaddn=function(r){this.words[0]+=r;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},i.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(r){return this.clone().iaddn(r)},i.prototype.subn=function(r){return this.clone().isubn(r)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(r,s,l){var d=r.length+l,M;this._expand(d);var b,N=0;for(M=0;M<r.length;M++){b=(this.words[M+l]|0)+N;var m=(r.words[M]|0)*s;b-=m&67108863,N=(b>>26)-(m/67108864|0),this.words[M+l]=b&67108863}for(;M<this.length-l;M++)b=(this.words[M+l]|0)+N,N=b>>26,this.words[M+l]=b&67108863;if(N===0)return this.strip();for(a(N===-1),N=0,M=0;M<this.length;M++)b=-(this.words[M]|0)+N,N=b>>26,this.words[M]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(r,s){var l=this.length-r.length,d=this.clone(),M=r,b=M.words[M.length-1]|0,N=this._countBits(b);l=26-N,l!==0&&(M=M.ushln(l),d.iushln(l),b=M.words[M.length-1]|0);var m=d.length-M.length,o;if(s!=="mod"){o=new i(null),o.length=m+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var W=d.clone()._ishlnsubmul(M,1,m);W.negative===0&&(d=W,o&&(o.words[m]=1));for(var Z=m-1;Z>=0;Z--){var G=(d.words[M.length+Z]|0)*67108864+(d.words[M.length+Z-1]|0);for(G=Math.min(G/b|0,67108863),d._ishlnsubmul(M,G,Z);d.negative!==0;)G--,d.negative=0,d._ishlnsubmul(M,1,Z),d.isZero()||(d.negative^=1);o&&(o.words[Z]=G)}return o&&o.strip(),d.strip(),s!=="div"&&l!==0&&d.iushrn(l),{div:o||null,mod:d}},i.prototype.divmod=function(r,s,l){if(a(!r.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var d,M,b;return this.negative!==0&&r.negative===0?(b=this.neg().divmod(r,s),s!=="mod"&&(d=b.div.neg()),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.iadd(r)),{div:d,mod:M}):this.negative===0&&r.negative!==0?(b=this.divmod(r.neg(),s),s!=="mod"&&(d=b.div.neg()),{div:d,mod:b.mod}):this.negative&r.negative?(b=this.neg().divmod(r.neg(),s),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.isub(r)),{div:b.div,mod:M}):r.length>this.length||this.cmp(r)<0?{div:new i(0),mod:this}:r.length===1?s==="div"?{div:this.divn(r.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new i(this.modn(r.words[0]))}:this._wordDiv(r,s)},i.prototype.div=function(r){return this.divmod(r,"div",!1).div},i.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},i.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},i.prototype.divRound=function(r){var s=this.divmod(r);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(r):s.mod,d=r.ushrn(1),M=r.andln(1),b=l.cmp(d);return b<0||M===1&&b===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(r){a(r<=67108863);for(var s=(1<<26)%r,l=0,d=this.length-1;d>=0;d--)l=(s*l+(this.words[d]|0))%r;return l},i.prototype.idivn=function(r){a(r<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var d=(this.words[l]|0)+s*67108864;this.words[l]=d/r|0,s=d%r}return this.strip()},i.prototype.divn=function(r){return this.clone().idivn(r)},i.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=new i(0),N=new i(1),m=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++m;for(var o=l.clone(),x=s.clone();!s.isZero();){for(var W=0,Z=1;!(s.words[0]&Z)&&W<26;++W,Z<<=1);if(W>0)for(s.iushrn(W);W-- >0;)(d.isOdd()||M.isOdd())&&(d.iadd(o),M.isub(x)),d.iushrn(1),M.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(b.isOdd()||N.isOdd())&&(b.iadd(o),N.isub(x)),b.iushrn(1),N.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(b),M.isub(N)):(l.isub(s),b.isub(d),N.isub(M))}return{a:b,b:N,gcd:l.iushln(m)}},i.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var N=0,m=1;!(s.words[0]&m)&&N<26;++N,m<<=1);if(N>0)for(s.iushrn(N);N-- >0;)d.isOdd()&&d.iadd(b),d.iushrn(1);for(var o=0,x=1;!(l.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(l.iushrn(o);o-- >0;)M.isOdd()&&M.iadd(b),M.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(M)):(l.isub(s),M.isub(d))}var W;return s.cmpn(1)===0?W=d:W=M,W.cmpn(0)<0&&W.iadd(r),W},i.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var s=this.clone(),l=r.clone();s.negative=0,l.negative=0;for(var d=0;s.isEven()&&l.isEven();d++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var M=s.cmp(l);if(M<0){var b=s;s=l,l=b}else if(M===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(d)},i.prototype.invm=function(r){return this.egcd(r).a.umod(r)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(r){return this.words[0]&r},i.prototype.bincn=function(r){a(typeof r=="number");var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=d,this;for(var M=d,b=l;M!==0&&b<this.length;b++){var N=this.words[b]|0;N+=M,M=N>>>26,N&=67108863,this.words[b]=N}return M!==0&&(this.words[b]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(r){var s=r<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(r=-r),a(r<=67108863,"Number is too big");var d=this.words[0]|0;l=d===r?0:d<r?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var s=this.ucmp(r);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var d=this.words[l]|0,M=r.words[l]|0;if(d!==M){d<M?s=-1:d>M&&(s=1);break}}return s},i.prototype.gtn=function(r){return this.cmpn(r)===1},i.prototype.gt=function(r){return this.cmp(r)===1},i.prototype.gten=function(r){return this.cmpn(r)>=0},i.prototype.gte=function(r){return this.cmp(r)>=0},i.prototype.ltn=function(r){return this.cmpn(r)===-1},i.prototype.lt=function(r){return this.cmp(r)===-1},i.prototype.lten=function(r){return this.cmpn(r)<=0},i.prototype.lte=function(r){return this.cmp(r)<=0},i.prototype.eqn=function(r){return this.cmpn(r)===0},i.prototype.eq=function(r){return this.cmp(r)===0},i.red=function(r){return new k(r)},i.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(r){return this.red=r,this},i.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},i.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},i.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},i.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},i.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},i.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},i.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},i.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var D={k256:null,p224:null,p192:null,p25519:null};function O(y,r){this.name=y,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var r=new i(null);return r.words=new Array(Math.ceil(this.n/13)),r},O.prototype.ireduce=function(r){var s=r,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var d=l<this.n?-1:s.ucmp(this.p);return d===0?(s.words[0]=0,s.length=1):d>0?s.isub(this.p):s.strip!==void 0?s.strip():s._strip(),s},O.prototype.split=function(r,s){r.iushrn(this.n,0,s)},O.prototype.imulK=function(r){return r.imul(this.k)};function F(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(F,O),F.prototype.split=function(r,s){for(var l=4194303,d=Math.min(r.length,9),M=0;M<d;M++)s.words[M]=r.words[M];if(s.length=d,r.length<=9){r.words[0]=0,r.length=1;return}var b=r.words[9];for(s.words[s.length++]=b&l,M=10;M<r.length;M++){var N=r.words[M]|0;r.words[M-10]=(N&l)<<4|b>>>22,b=N}b>>>=22,r.words[M-10]=b,b===0&&r.length>10?r.length-=10:r.length-=9},F.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var s=0,l=0;l<r.length;l++){var d=r.words[l]|0;s+=d*977,r.words[l]=s&67108863,s=d*64+(s/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function R(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(R,O);function Q(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,O);function B(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(B,O),B.prototype.imulK=function(r){for(var s=0,l=0;l<r.length;l++){var d=(r.words[l]|0)*19+s,M=d&67108863;d>>>=26,r.words[l]=M,s=d}return s!==0&&(r.words[r.length++]=s),r},i._prime=function(r){if(D[r])return D[r];var s;if(r==="k256")s=new F;else if(r==="p224")s=new R;else if(r==="p192")s=new Q;else if(r==="p25519")s=new B;else throw new Error("Unknown prime "+r);return D[r]=s,s};function k(y){if(typeof y=="string"){var r=i._prime(y);this.m=r.p,this.prime=r}else a(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}k.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},k.prototype._verify2=function(r,s){a((r.negative|s.negative)===0,"red works only with positives"),a(r.red&&r.red===s.red,"red works only with red numbers")},k.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},k.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},k.prototype.add=function(r,s){this._verify2(r,s);var l=r.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},k.prototype.iadd=function(r,s){this._verify2(r,s);var l=r.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},k.prototype.sub=function(r,s){this._verify2(r,s);var l=r.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},k.prototype.isub=function(r,s){this._verify2(r,s);var l=r.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},k.prototype.shl=function(r,s){return this._verify1(r),this.imod(r.ushln(s))},k.prototype.imul=function(r,s){return this._verify2(r,s),this.imod(r.imul(s))},k.prototype.mul=function(r,s){return this._verify2(r,s),this.imod(r.mul(s))},k.prototype.isqr=function(r){return this.imul(r,r.clone())},k.prototype.sqr=function(r){return this.mul(r,r)},k.prototype.sqrt=function(r){if(r.isZero())return r.clone();var s=this.m.andln(3);if(a(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(r,l)}for(var d=this.m.subn(1),M=0;!d.isZero()&&d.andln(1)===0;)M++,d.iushrn(1);a(!d.isZero());var b=new i(1).toRed(this),N=b.redNeg(),m=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,m).cmp(N)!==0;)o.redIAdd(N);for(var x=this.pow(o,d),W=this.pow(r,d.addn(1).iushrn(1)),Z=this.pow(r,d),G=M;Z.cmp(b)!==0;){for(var ee=Z,V=0;ee.cmp(b)!==0;V++)ee=ee.redSqr();a(V<G);var P=this.pow(x,new i(1).iushln(G-V-1));W=W.redMul(P),x=P.redSqr(),Z=Z.redMul(x),G=V}return W},k.prototype.invm=function(r){var s=r._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},k.prototype.pow=function(r,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return r.clone();var l=4,d=new Array(1<<l);d[0]=new i(1).toRed(this),d[1]=r;for(var M=2;M<d.length;M++)d[M]=this.mul(d[M-1],r);var b=d[0],N=0,m=0,o=s.bitLength()%26;for(o===0&&(o=26),M=s.length-1;M>=0;M--){for(var x=s.words[M],W=o-1;W>=0;W--){var Z=x>>W&1;if(b!==d[0]&&(b=this.sqr(b)),Z===0&&N===0){m=0;continue}N<<=1,N|=Z,m++,!(m!==l&&(M!==0||W!==0))&&(b=this.mul(b,d[N]),m=0,N=0)}o=26}return b},k.prototype.convertTo=function(r){var s=r.umod(this.m);return s===r?s.clone():s},k.prototype.convertFrom=function(r){var s=r.clone();return s.red=null,s},i.mont=function(r){return new z(r)};function z(y){k.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(z,k),z.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},z.prototype.convertFrom=function(r){var s=this.imod(r.mul(this.rinv));return s.red=null,s},z.prototype.imul=function(r,s){if(r.isZero()||s.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.mul=function(r,s){if(r.isZero()||s.isZero())return new i(0)._forceRed(this);var l=r.mul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.invm=function(r){var s=this.imod(r._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(e,_.commonjsGlobal)}(Zs)),Zs.exports}var bf={},D4;function fb(){return D4||(D4=1,function(e){var t=Ga(),n=zt,a=e;a.define=function(u,f){return new c(u,f)};function c(i,u){this.name=i,this.body=u,this.decoders={},this.encoders={}}c.prototype._createNamed=function(u){var f;try{f=Bo.runInThisContext("(function "+this.name+`(entity) {
75
- this._initNamed(entity);
76
- })`)}catch{f=function(h){this._initNamed(h)}}return n(f,u),f.prototype._initNamed=function(h){u.call(this,h)},new f(this)},c.prototype._getDecoder=function(u){return u=u||"der",this.decoders.hasOwnProperty(u)||(this.decoders[u]=this._createNamed(t.decoders[u])),this.decoders[u]},c.prototype.decode=function(u,f,p){return this._getDecoder(f).decode(u,p)},c.prototype._getEncoder=function(u){return u=u||"der",this.encoders.hasOwnProperty(u)||(this.encoders[u]=this._createNamed(t.encoders[u])),this.encoders[u]},c.prototype.encode=function(u,f,p){return this._getEncoder(f).encode(u,p)}}(bf)),bf}var Cf={},wf={},O4;function ub(){if(O4)return wf;O4=1;var e=zt;function t(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}wf.Reporter=t,t.prototype.isError=function(c){return c instanceof n},t.prototype.save=function(){var c=this._reporterState;return{obj:c.obj,pathLen:c.path.length}},t.prototype.restore=function(c){var i=this._reporterState;i.obj=c.obj,i.path=i.path.slice(0,c.pathLen)},t.prototype.enterKey=function(c){return this._reporterState.path.push(c)},t.prototype.exitKey=function(c){var i=this._reporterState;i.path=i.path.slice(0,c-1)},t.prototype.leaveKey=function(c,i,u){var f=this._reporterState;this.exitKey(c),f.obj!==null&&(f.obj[i]=u)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){var c=this._reporterState,i=c.obj;return c.obj={},i},t.prototype.leaveObject=function(c){var i=this._reporterState,u=i.obj;return i.obj=c,u},t.prototype.error=function(c){var i,u=this._reporterState,f=c instanceof n;if(f?i=c:i=new n(u.path.map(function(p){return"["+JSON.stringify(p)+"]"}).join(""),c.message||c,c.stack),!u.options.partial)throw i;return f||u.errors.push(i),i},t.prototype.wrapResult=function(c){var i=this._reporterState;return i.options.partial?{result:this.isError(c)?null:c,errors:i.errors}:c};function n(a,c){this.path=a,this.rethrow(c)}return e(n,Error),n.prototype.rethrow=function(c){if(this.message=c+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this},wf}var ys={},z4;function k4(){if(z4)return ys;z4=1;var e=zt,t=fa().Reporter,n=_.bufferPolyfill.Buffer;function a(i,u){if(t.call(this,u),!n.isBuffer(i)){this.error("Input not Buffer");return}this.base=i,this.offset=0,this.length=i.length}e(a,t),ys.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},a.prototype.restore=function(u){var f=new a(this.base);return f.offset=u.offset,f.length=this.offset,this.offset=u.offset,t.prototype.restore.call(this,u.reporter),f},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(u){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(u||"DecoderBuffer overrun")},a.prototype.skip=function(u,f){if(!(this.offset+u<=this.length))return this.error(f||"DecoderBuffer overrun");var p=new a(this.base);return p._reporterState=this._reporterState,p.offset=this.offset,p.length=this.offset+u,this.offset+=u,p},a.prototype.raw=function(u){return this.base.slice(u?u.offset:this.offset,this.length)};function c(i,u){if(Array.isArray(i))this.length=0,this.value=i.map(function(f){return f instanceof c||(f=new c(f,u)),this.length+=f.length,f},this);else if(typeof i=="number"){if(!(0<=i&&i<=255))return u.error("non-byte EncoderBuffer value");this.value=i,this.length=1}else if(typeof i=="string")this.value=i,this.length=n.byteLength(i);else if(n.isBuffer(i))this.value=i,this.length=i.length;else return u.error("Unsupported type: "+typeof i)}return ys.EncoderBuffer=c,c.prototype.join=function(u,f){return u||(u=new n(this.length)),f||(f=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(p){p.join(u,f),f+=p.length}):(typeof this.value=="number"?u[f]=this.value:typeof this.value=="string"?u.write(this.value,f):n.isBuffer(this.value)&&this.value.copy(u,f),f+=this.length)),u},ys}var Nf,_4;function db(){if(_4)return Nf;_4=1;var e=fa().Reporter,t=fa().EncoderBuffer,n=fa().DecoderBuffer,a=Tn(),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],i=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function f(h,g){var C={};this._baseState=C,C.enc=h,C.parent=g||null,C.children=null,C.tag=null,C.args=null,C.reverseArgs=null,C.choice=null,C.optional=!1,C.any=!1,C.obj=!1,C.use=null,C.useDecoder=null,C.key=null,C.default=null,C.explicit=null,C.implicit=null,C.contains=null,C.parent||(C.children=[],this._wrap())}Nf=f;var p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return f.prototype.clone=function(){var g=this._baseState,C={};p.forEach(function(j){C[j]=g[j]});var w=new this.constructor(C.parent);return w._baseState=C,w},f.prototype._wrap=function(){var g=this._baseState;i.forEach(function(C){this[C]=function(){var j=new this.constructor(this);return g.children.push(j),j[C].apply(j,arguments)}},this)},f.prototype._init=function(g){var C=this._baseState;a(C.parent===null),g.call(this),C.children=C.children.filter(function(w){return w._baseState.parent===this},this),a.equal(C.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(g){var C=this._baseState,w=g.filter(function(j){return j instanceof this.constructor},this);g=g.filter(function(j){return!(j instanceof this.constructor)},this),w.length!==0&&(a(C.children===null),C.children=w,w.forEach(function(j){j._baseState.parent=this},this)),g.length!==0&&(a(C.args===null),C.args=g,C.reverseArgs=g.map(function(j){if(typeof j!="object"||j.constructor!==Object)return j;var I={};return Object.keys(j).forEach(function(T){T==(T|0)&&(T|=0);var S=j[T];I[S]=T}),I}))},u.forEach(function(h){f.prototype[h]=function(){var C=this._baseState;throw new Error(h+" not implemented for encoding: "+C.enc)}}),c.forEach(function(h){f.prototype[h]=function(){var C=this._baseState,w=Array.prototype.slice.call(arguments);return a(C.tag===null),C.tag=h,this._useArgs(w),this}}),f.prototype.use=function(g){a(g);var C=this._baseState;return a(C.use===null),C.use=g,this},f.prototype.optional=function(){var g=this._baseState;return g.optional=!0,this},f.prototype.def=function(g){var C=this._baseState;return a(C.default===null),C.default=g,C.optional=!0,this},f.prototype.explicit=function(g){var C=this._baseState;return a(C.explicit===null&&C.implicit===null),C.explicit=g,this},f.prototype.implicit=function(g){var C=this._baseState;return a(C.explicit===null&&C.implicit===null),C.implicit=g,this},f.prototype.obj=function(){var g=this._baseState,C=Array.prototype.slice.call(arguments);return g.obj=!0,C.length!==0&&this._useArgs(C),this},f.prototype.key=function(g){var C=this._baseState;return a(C.key===null),C.key=g,this},f.prototype.any=function(){var g=this._baseState;return g.any=!0,this},f.prototype.choice=function(g){var C=this._baseState;return a(C.choice===null),C.choice=g,this._useArgs(Object.keys(g).map(function(w){return g[w]})),this},f.prototype.contains=function(g){var C=this._baseState;return a(C.use===null),C.contains=g,this},f.prototype._decode=function(g,C){var w=this._baseState;if(w.parent===null)return g.wrapResult(w.children[0]._decode(g,C));var j=w.default,I=!0,T=null;if(w.key!==null&&(T=g.enterKey(w.key)),w.optional){var S=null;if(w.explicit!==null?S=w.explicit:w.implicit!==null?S=w.implicit:w.tag!==null&&(S=w.tag),S===null&&!w.any){var L=g.save();try{w.choice===null?this._decodeGeneric(w.tag,g,C):this._decodeChoice(g,C),I=!0}catch{I=!1}g.restore(L)}else if(I=this._peekTag(g,S,w.any),g.isError(I))return I}var E;if(w.obj&&I&&(E=g.enterObject()),I){if(w.explicit!==null){var D=this._decodeTag(g,w.explicit);if(g.isError(D))return D;g=D}var O=g.offset;if(w.use===null&&w.choice===null){if(w.any)var L=g.save();var F=this._decodeTag(g,w.implicit!==null?w.implicit:w.tag,w.any);if(g.isError(F))return F;w.any?j=g.raw(L):g=F}if(C&&C.track&&w.tag!==null&&C.track(g.path(),O,g.length,"tagged"),C&&C.track&&w.tag!==null&&C.track(g.path(),g.offset,g.length,"content"),w.any?j=j:w.choice===null?j=this._decodeGeneric(w.tag,g,C):j=this._decodeChoice(g,C),g.isError(j))return j;if(!w.any&&w.choice===null&&w.children!==null&&w.children.forEach(function(B){B._decode(g,C)}),w.contains&&(w.tag==="octstr"||w.tag==="bitstr")){var R=new n(j);j=this._getUse(w.contains,g._reporterState.obj)._decode(R,C)}}return w.obj&&I&&(j=g.leaveObject(E)),w.key!==null&&(j!==null||I===!0)?g.leaveKey(T,w.key,j):T!==null&&g.exitKey(T),j},f.prototype._decodeGeneric=function(g,C,w){var j=this._baseState;return g==="seq"||g==="set"?null:g==="seqof"||g==="setof"?this._decodeList(C,g,j.args[0],w):/str$/.test(g)?this._decodeStr(C,g,w):g==="objid"&&j.args?this._decodeObjid(C,j.args[0],j.args[1],w):g==="objid"?this._decodeObjid(C,null,null,w):g==="gentime"||g==="utctime"?this._decodeTime(C,g,w):g==="null_"?this._decodeNull(C,w):g==="bool"?this._decodeBool(C,w):g==="objDesc"?this._decodeStr(C,g,w):g==="int"||g==="enum"?this._decodeInt(C,j.args&&j.args[0],w):j.use!==null?this._getUse(j.use,C._reporterState.obj)._decode(C,w):C.error("unknown tag: "+g)},f.prototype._getUse=function(g,C){var w=this._baseState;return w.useDecoder=this._use(g,C),a(w.useDecoder._baseState.parent===null),w.useDecoder=w.useDecoder._baseState.children[0],w.implicit!==w.useDecoder._baseState.implicit&&(w.useDecoder=w.useDecoder.clone(),w.useDecoder._baseState.implicit=w.implicit),w.useDecoder},f.prototype._decodeChoice=function(g,C){var w=this._baseState,j=null,I=!1;return Object.keys(w.choice).some(function(T){var S=g.save(),L=w.choice[T];try{var E=L._decode(g,C);if(g.isError(E))return!1;j={type:T,value:E},I=!0}catch{return g.restore(S),!1}return!0},this),I?j:g.error("Choice not matched")},f.prototype._createEncoderBuffer=function(g){return new t(g,this.reporter)},f.prototype._encode=function(g,C,w){var j=this._baseState;if(!(j.default!==null&&j.default===g)){var I=this._encodeValue(g,C,w);if(I!==void 0&&!this._skipDefault(I,C,w))return I}},f.prototype._encodeValue=function(g,C,w){var j=this._baseState;if(j.parent===null)return j.children[0]._encode(g,C||new e);var L=null;if(this.reporter=C,j.optional&&g===void 0)if(j.default!==null)g=j.default;else return;var I=null,T=!1;if(j.any)L=this._createEncoderBuffer(g);else if(j.choice)L=this._encodeChoice(g,C);else if(j.contains)I=this._getUse(j.contains,w)._encode(g,C),T=!0;else if(j.children)I=j.children.map(function(O){if(O._baseState.tag==="null_")return O._encode(null,C,g);if(O._baseState.key===null)return C.error("Child should have a key");var F=C.enterKey(O._baseState.key);if(typeof g!="object")return C.error("Child expected, but input is not object");var R=O._encode(g[O._baseState.key],C,g);return C.leaveKey(F),R},this).filter(function(O){return O}),I=this._createEncoderBuffer(I);else if(j.tag==="seqof"||j.tag==="setof"){if(!(j.args&&j.args.length===1))return C.error("Too many args for : "+j.tag);if(!Array.isArray(g))return C.error("seqof/setof, but data is not Array");var S=this.clone();S._baseState.implicit=null,I=this._createEncoderBuffer(g.map(function(O){var F=this._baseState;return this._getUse(F.args[0],g)._encode(O,C)},S))}else j.use!==null?L=this._getUse(j.use,w)._encode(g,C):(I=this._encodePrimitive(j.tag,g),T=!0);var L;if(!j.any&&j.choice===null){var E=j.implicit!==null?j.implicit:j.tag,D=j.implicit===null?"universal":"context";E===null?j.use===null&&C.error("Tag could be omitted only for .use()"):j.use===null&&(L=this._encodeComposite(E,T,D,I))}return j.explicit!==null&&(L=this._encodeComposite(j.explicit,!1,"context",L)),L},f.prototype._encodeChoice=function(g,C){var w=this._baseState,j=w.choice[g.type];return j||a(!1,g.type+" not found in "+JSON.stringify(Object.keys(w.choice))),j._encode(g.value,C)},f.prototype._encodePrimitive=function(g,C){var w=this._baseState;if(/str$/.test(g))return this._encodeStr(C,g);if(g==="objid"&&w.args)return this._encodeObjid(C,w.reverseArgs[0],w.args[1]);if(g==="objid")return this._encodeObjid(C,null,null);if(g==="gentime"||g==="utctime")return this._encodeTime(C,g);if(g==="null_")return this._encodeNull();if(g==="int"||g==="enum")return this._encodeInt(C,w.args&&w.reverseArgs[0]);if(g==="bool")return this._encodeBool(C);if(g==="objDesc")return this._encodeStr(C,g);throw new Error("Unsupported tag: "+g)},f.prototype._isNumstr=function(g){return/^[0-9 ]*$/.test(g)},f.prototype._isPrintstr=function(g){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(g)},Nf}var B4;function fa(){return B4||(B4=1,function(e){var t=e;t.Reporter=ub().Reporter,t.DecoderBuffer=k4().DecoderBuffer,t.EncoderBuffer=k4().EncoderBuffer,t.Node=db()}(Cf)),Cf}var jf={},Tf={},F4;function hb(){return F4||(F4=1,function(e){var t=$6();e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t._reverse(e.tag)}(Tf)),Tf}var R4;function $6(){return R4||(R4=1,function(e){var t=e;t._reverse=function(a){var c={};return Object.keys(a).forEach(function(i){(i|0)==i&&(i=i|0);var u=a[i];c[u]=i}),c},t.der=hb()}(jf)),jf}var Af={},If,P4;function q6(){if(P4)return If;P4=1;var e=zt,t=Ga(),n=t.base,a=t.bignum,c=t.constants.der;function i(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new u,this.tree._init(h.body)}If=i,i.prototype.decode=function(g,C){return g instanceof n.DecoderBuffer||(g=new n.DecoderBuffer(g,C)),this.tree._decode(g,C)};function u(h){n.Node.call(this,"der",h)}e(u,n.Node),u.prototype._peekTag=function(g,C,w){if(g.isEmpty())return!1;var j=g.save(),I=f(g,'Failed to peek tag: "'+C+'"');return g.isError(I)?I:(g.restore(j),I.tag===C||I.tagStr===C||I.tagStr+"of"===C||w)},u.prototype._decodeTag=function(g,C,w){var j=f(g,'Failed to decode tag of "'+C+'"');if(g.isError(j))return j;var I=p(g,j.primitive,'Failed to get length of "'+C+'"');if(g.isError(I))return I;if(!w&&j.tag!==C&&j.tagStr!==C&&j.tagStr+"of"!==C)return g.error('Failed to match tag: "'+C+'"');if(j.primitive||I!==null)return g.skip(I,'Failed to match body of: "'+C+'"');var T=g.save(),S=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(S)?S:(I=g.offset-T.offset,g.restore(T),g.skip(I,'Failed to match body of: "'+C+'"'))},u.prototype._skipUntilEnd=function(g,C){for(;;){var w=f(g,C);if(g.isError(w))return w;var j=p(g,w.primitive,C);if(g.isError(j))return j;var I;if(w.primitive||j!==null?I=g.skip(j):I=this._skipUntilEnd(g,C),g.isError(I))return I;if(w.tagStr==="end")break}},u.prototype._decodeList=function(g,C,w,j){for(var I=[];!g.isEmpty();){var T=this._peekTag(g,"end");if(g.isError(T))return T;var S=w.decode(g,"der",j);if(g.isError(S)&&T)break;I.push(S)}return I},u.prototype._decodeStr=function(g,C){if(C==="bitstr"){var w=g.readUInt8();return g.isError(w)?w:{unused:w,data:g.raw()}}else if(C==="bmpstr"){var j=g.raw();if(j.length%2===1)return g.error("Decoding of string type: bmpstr length mismatch");for(var I="",T=0;T<j.length/2;T++)I+=String.fromCharCode(j.readUInt16BE(T*2));return I}else if(C==="numstr"){var S=g.raw().toString("ascii");return this._isNumstr(S)?S:g.error("Decoding of string type: numstr unsupported characters")}else{if(C==="octstr")return g.raw();if(C==="objDesc")return g.raw();if(C==="printstr"){var L=g.raw().toString("ascii");return this._isPrintstr(L)?L:g.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(C)?g.raw().toString():g.error("Decoding of string type: "+C+" unsupported")}},u.prototype._decodeObjid=function(g,C,w){for(var j,I=[],T=0;!g.isEmpty();){var S=g.readUInt8();T<<=7,T|=S&127,S&128||(I.push(T),T=0)}S&128&&I.push(T);var L=I[0]/40|0,E=I[0]%40;if(w?j=I:j=[L,E].concat(I.slice(1)),C){var D=C[j.join(" ")];D===void 0&&(D=C[j.join(".")]),D!==void 0&&(j=D)}return j},u.prototype._decodeTime=function(g,C){var w=g.raw().toString();if(C==="gentime")var j=w.slice(0,4)|0,I=w.slice(4,6)|0,T=w.slice(6,8)|0,S=w.slice(8,10)|0,L=w.slice(10,12)|0,E=w.slice(12,14)|0;else if(C==="utctime"){var j=w.slice(0,2)|0,I=w.slice(2,4)|0,T=w.slice(4,6)|0,S=w.slice(6,8)|0,L=w.slice(8,10)|0,E=w.slice(10,12)|0;j<70?j=2e3+j:j=1900+j}else return g.error("Decoding "+C+" time is not supported yet");return Date.UTC(j,I-1,T,S,L,E,0)},u.prototype._decodeNull=function(g){return null},u.prototype._decodeBool=function(g){var C=g.readUInt8();return g.isError(C)?C:C!==0},u.prototype._decodeInt=function(g,C){var w=g.raw(),j=new a(w);return C&&(j=C[j.toString(10)]||j),j},u.prototype._use=function(g,C){return typeof g=="function"&&(g=g(C)),g._getDecoder("der").tree};function f(h,g){var C=h.readUInt8(g);if(h.isError(C))return C;var w=c.tagClass[C>>6],j=(C&32)===0;if((C&31)===31){var I=C;for(C=0;(I&128)===128;){if(I=h.readUInt8(g),h.isError(I))return I;C<<=7,C|=I&127}}else C&=31;var T=c.tag[C];return{cls:w,primitive:j,tag:C,tagStr:T}}function p(h,g,C){var w=h.readUInt8(C);if(h.isError(w))return w;if(!g&&w===128)return null;if(!(w&128))return w;var j=w&127;if(j>4)return h.error("length octect is too long");w=0;for(var I=0;I<j;I++){w<<=8;var T=h.readUInt8(C);if(h.isError(T))return T;w|=T}return w}return If}var Ef,U4;function pb(){if(U4)return Ef;U4=1;var e=zt,t=_.bufferPolyfill.Buffer,n=q6();function a(c){n.call(this,c),this.enc="pem"}return e(a,n),Ef=a,a.prototype.decode=function(i,u){for(var f=i.toString().split(/[\r\n]+/g),p=u.label.toUpperCase(),h=/^-----(BEGIN|END) ([^-]+)-----$/,g=-1,C=-1,w=0;w<f.length;w++){var j=f[w].match(h);if(j!==null&&j[2]===p)if(g===-1){if(j[1]!=="BEGIN")break;g=w}else{if(j[1]!=="END")break;C=w;break}}if(g===-1||C===-1)throw new Error("PEM section not found for: "+p);var I=f.slice(g+1,C).join("");I.replace(/[^a-z0-9\+\/=]+/gi,"");var T=new t(I,"base64");return n.prototype.decode.call(this,T,u)},Ef}var Y4;function gb(){return Y4||(Y4=1,function(e){var t=e;t.der=q6(),t.pem=pb()}(Af)),Af}var Lf={},Sf,W4;function J6(){if(W4)return Sf;W4=1;var e=zt,t=_.bufferPolyfill.Buffer,n=Ga(),a=n.base,c=n.constants.der;function i(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new u,this.tree._init(h.body)}Sf=i,i.prototype.encode=function(g,C){return this.tree._encode(g,C).join()};function u(h){a.Node.call(this,"der",h)}e(u,a.Node),u.prototype._encodeComposite=function(g,C,w,j){var I=p(g,C,w,this.reporter);if(j.length<128){var L=new t(2);return L[0]=I,L[1]=j.length,this._createEncoderBuffer([L,j])}for(var T=1,S=j.length;S>=256;S>>=8)T++;var L=new t(2+T);L[0]=I,L[1]=128|T;for(var S=1+T,E=j.length;E>0;S--,E>>=8)L[S]=E&255;return this._createEncoderBuffer([L,j])},u.prototype._encodeStr=function(g,C){if(C==="bitstr")return this._createEncoderBuffer([g.unused|0,g.data]);if(C==="bmpstr"){for(var w=new t(g.length*2),j=0;j<g.length;j++)w.writeUInt16BE(g.charCodeAt(j),j*2);return this._createEncoderBuffer(w)}else return C==="numstr"?this._isNumstr(g)?this._createEncoderBuffer(g):this.reporter.error("Encoding of string type: numstr supports only digits and space"):C==="printstr"?this._isPrintstr(g)?this._createEncoderBuffer(g):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(C)?this._createEncoderBuffer(g):C==="objDesc"?this._createEncoderBuffer(g):this.reporter.error("Encoding of string type: "+C+" unsupported")},u.prototype._encodeObjid=function(g,C,w){if(typeof g=="string"){if(!C)return this.reporter.error("string objid given, but no values map found");if(!C.hasOwnProperty(g))return this.reporter.error("objid not found in values map");g=C[g].split(/[\s\.]+/g);for(var j=0;j<g.length;j++)g[j]|=0}else if(Array.isArray(g)){g=g.slice();for(var j=0;j<g.length;j++)g[j]|=0}if(!Array.isArray(g))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(g));if(!w){if(g[1]>=40)return this.reporter.error("Second objid identifier OOB");g.splice(0,2,g[0]*40+g[1])}for(var I=0,j=0;j<g.length;j++){var T=g[j];for(I++;T>=128;T>>=7)I++}for(var S=new t(I),L=S.length-1,j=g.length-1;j>=0;j--){var T=g[j];for(S[L--]=T&127;(T>>=7)>0;)S[L--]=128|T&127}return this._createEncoderBuffer(S)};function f(h){return h<10?"0"+h:h}u.prototype._encodeTime=function(g,C){var w,j=new Date(g);return C==="gentime"?w=[f(j.getFullYear()),f(j.getUTCMonth()+1),f(j.getUTCDate()),f(j.getUTCHours()),f(j.getUTCMinutes()),f(j.getUTCSeconds()),"Z"].join(""):C==="utctime"?w=[f(j.getFullYear()%100),f(j.getUTCMonth()+1),f(j.getUTCDate()),f(j.getUTCHours()),f(j.getUTCMinutes()),f(j.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+C+" time is not supported yet"),this._encodeStr(w,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(g,C){if(typeof g=="string"){if(!C)return this.reporter.error("String int or enum given, but no values map");if(!C.hasOwnProperty(g))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(g));g=C[g]}if(typeof g!="number"&&!t.isBuffer(g)){var w=g.toArray();!g.sign&&w[0]&128&&w.unshift(0),g=new t(w)}if(t.isBuffer(g)){var j=g.length;g.length===0&&j++;var T=new t(j);return g.copy(T),g.length===0&&(T[0]=0),this._createEncoderBuffer(T)}if(g<128)return this._createEncoderBuffer(g);if(g<256)return this._createEncoderBuffer([0,g]);for(var j=1,I=g;I>=256;I>>=8)j++;for(var T=new Array(j),I=T.length-1;I>=0;I--)T[I]=g&255,g>>=8;return T[0]&128&&T.unshift(0),this._createEncoderBuffer(new t(T))},u.prototype._encodeBool=function(g){return this._createEncoderBuffer(g?255:0)},u.prototype._use=function(g,C){return typeof g=="function"&&(g=g(C)),g._getEncoder("der").tree},u.prototype._skipDefault=function(g,C,w){var j=this._baseState,I;if(j.default===null)return!1;var T=g.join();if(j.defaultBuffer===void 0&&(j.defaultBuffer=this._encodeValue(j.default,C,w).join()),T.length!==j.defaultBuffer.length)return!1;for(I=0;I<T.length;I++)if(T[I]!==j.defaultBuffer[I])return!1;return!0};function p(h,g,C,w){var j;if(h==="seqof"?h="seq":h==="setof"&&(h="set"),c.tagByName.hasOwnProperty(h))j=c.tagByName[h];else if(typeof h=="number"&&(h|0)===h)j=h;else return w.error("Unknown tag: "+h);return j>=31?w.error("Multi-octet tag encoding unsupported"):(g||(j|=32),j|=c.tagClassByName[C||"universal"]<<6,j)}return Sf}var Df,H4;function mb(){if(H4)return Df;H4=1;var e=zt,t=J6();function n(a){t.call(this,a),this.enc="pem"}return e(n,t),Df=n,n.prototype.encode=function(c,i){for(var u=t.prototype.encode.call(this,c),f=u.toString("base64"),p=["-----BEGIN "+i.label+"-----"],h=0;h<f.length;h+=64)p.push(f.slice(h,h+64));return p.push("-----END "+i.label+"-----"),p.join(`
77
- `)},Df}var Z4;function Mb(){return Z4||(Z4=1,function(e){var t=e;t.der=J6(),t.pem=mb()}(Lf)),Lf}var Q4;function Ga(){return Q4||(Q4=1,function(e){var t=e;t.bignum=lb(),t.define=fb().define,t.base=fa(),t.constants=$6(),t.decoders=gb(),t.encoders=Mb()}(xf)),xf}var Of,V4;function yb(){if(V4)return Of;V4=1;var e=Ga(),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),n=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),i=e.define("RelativeDistinguishedName",function(){this.setof(n)}),u=e.define("RDNSequence",function(){this.seqof(i)}),f=e.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),p=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),h=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),g=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(p),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),C=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});return Of=C,Of}var G4;function vb(){if(G4)return fn;G4=1;var e=Ga();fn.certificate=yb();var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});fn.RSAPrivateKey=t;var n=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});fn.RSAPublicKey=n;var a=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});fn.PublicKey=c;var i=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});fn.PrivateKey=i;var u=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});fn.EncryptedPrivateKey=u;var f=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});fn.DSAPrivateKey=f,fn.DSAparam=e.define("DSAparam",function(){this.int()});var p=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),h=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())});return fn.ECPrivateKey=h,fn.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),fn}const xb={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var zf,$4;function bb(){if($4)return zf;$4=1;var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=Y0(),c=Id(),i=_.safeBufferExports.Buffer;return zf=function(u,f){var p=u.toString(),h=p.match(e),g;if(h){var w="aes"+h[1],j=i.from(h[2],"hex"),I=i.from(h[3].replace(/[\r\n]/g,""),"base64"),T=a(f,j.slice(0,8),parseInt(h[1],10)).key,S=[],L=c.createDecipheriv(w,T,j);S.push(L.update(I)),S.push(L.final()),g=i.concat(S)}else{var C=p.match(n);g=i.from(C[2].replace(/[\r\n]/g,""),"base64")}var E=p.match(t)[1];return{tag:E,data:g}},zf}var kf,q4;function Q0(){if(q4)return kf;q4=1;var e=vb(),t=xb,n=bb(),a=Id(),c=E6(),i=_.safeBufferExports.Buffer;function u(p,h){var g=p.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(p.algorithm.decrypt.kde.kdeparams.iters.toString(),10),w=t[p.algorithm.decrypt.cipher.algo.join(".")],j=p.algorithm.decrypt.cipher.iv,I=p.subjectPrivateKey,T=parseInt(w.split("-")[1],10)/8,S=c.pbkdf2Sync(h,g,C,T,"sha1"),L=a.createDecipheriv(w,S,j),E=[];return E.push(L.update(I)),E.push(L.final()),i.concat(E)}function f(p){var h;typeof p=="object"&&!i.isBuffer(p)&&(h=p.passphrase,p=p.key),typeof p=="string"&&(p=i.from(p));var g=n(p,h),C=g.tag,w=g.data,j,I;switch(C){case"CERTIFICATE":I=e.certificate.decode(w,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(I||(I=e.PublicKey.decode(w,"der")),j=I.algorithm.algorithm.join("."),j){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(I.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return I.subjectPrivateKey=I.subjectPublicKey,{type:"ec",data:I};case"1.2.840.10040.4.1":return I.algorithm.params.pub_key=e.DSAparam.decode(I.subjectPublicKey.data,"der"),{type:"dsa",data:I.algorithm.params};default:throw new Error("unknown key id "+j)}case"ENCRYPTED PRIVATE KEY":w=e.EncryptedPrivateKey.decode(w,"der"),w=u(w,h);case"PRIVATE KEY":switch(I=e.PrivateKey.decode(w,"der"),j=I.algorithm.algorithm.join("."),j){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(I.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:I.algorithm.curve,privateKey:e.ECPrivateKey.decode(I.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return I.algorithm.params.priv_key=e.DSAparam.decode(I.subjectPrivateKey,"der"),{type:"dsa",params:I.algorithm.params};default:throw new Error("unknown key id "+j)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(w,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(w,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(w,"der")};case"EC PRIVATE KEY":return w=e.ECPrivateKey.decode(w,"der"),{curve:w.parameters.value,privateKey:w.privateKey};default:throw new Error("unknown key type "+C)}}return f.signature=e.signature,kf=f,kf}const X6={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var J4;function Cb(){if(J4)return Qo.exports;J4=1;var e=_.safeBufferExports.Buffer,t=w6(),n=Sd(),a=Z0().ec,c=_.bnExports,i=Q0(),u=X6,f=1;function p(L,E,D,O,F){var R=i(E);if(R.curve){if(O!=="ecdsa"&&O!=="ecdsa/rsa")throw new Error("wrong private key type");return h(L,R)}else if(R.type==="dsa"){if(O!=="dsa")throw new Error("wrong private key type");return g(L,R,D)}if(O!=="rsa"&&O!=="ecdsa/rsa")throw new Error("wrong private key type");if(E.padding!==void 0&&E.padding!==f)throw new Error("illegal or unsupported padding mode");L=e.concat([F,L]);for(var Q=R.modulus.byteLength(),B=[0,1];L.length+B.length+1<Q;)B.push(255);B.push(0);for(var k=-1;++k<L.length;)B.push(L[k]);var z=n(B,R);return z}function h(L,E){var D=u[E.curve.join(".")];if(!D)throw new Error("unknown curve "+E.curve.join("."));var O=new a(D),F=O.keyFromPrivate(E.privateKey),R=F.sign(L);return e.from(R.toDER())}function g(L,E,D){for(var O=E.params.priv_key,F=E.params.p,R=E.params.q,Q=E.params.g,B=new c(0),k,z=j(L,R).mod(R),y=!1,r=w(O,R,L,D);y===!1;)k=T(R,r,D),B=S(Q,k,F,R),y=k.invm(R).imul(z.add(O.mul(B))).mod(R),y.cmpn(0)===0&&(y=!1,B=new c(0));return C(B,y)}function C(L,E){L=L.toArray(),E=E.toArray(),L[0]&128&&(L=[0].concat(L)),E[0]&128&&(E=[0].concat(E));var D=L.length+E.length+4,O=[48,D,2,L.length];return O=O.concat(L,[2,E.length],E),e.from(O)}function w(L,E,D,O){if(L=e.from(L.toArray()),L.length<E.byteLength()){var F=e.alloc(E.byteLength()-L.length);L=e.concat([F,L])}var R=D.length,Q=I(D,E),B=e.alloc(R);B.fill(1);var k=e.alloc(R);return k=t(O,k).update(B).update(e.from([0])).update(L).update(Q).digest(),B=t(O,k).update(B).digest(),k=t(O,k).update(B).update(e.from([1])).update(L).update(Q).digest(),B=t(O,k).update(B).digest(),{k,v:B}}function j(L,E){var D=new c(L),O=(L.length<<3)-E.bitLength();return O>0&&D.ishrn(O),D}function I(L,E){L=j(L,E),L=L.mod(E);var D=e.from(L.toArray());if(D.length<E.byteLength()){var O=e.alloc(E.byteLength()-D.length);D=e.concat([O,D])}return D}function T(L,E,D){var O,F;do{for(O=e.alloc(0);O.length*8<L.bitLength();)E.v=t(D,E.k).update(E.v).digest(),O=e.concat([O,E.v]);F=j(O,L),E.k=t(D,E.k).update(E.v).update(e.from([0])).digest(),E.v=t(D,E.k).update(E.v).digest()}while(F.cmp(L)!==-1);return F}function S(L,E,D,O){return L.toRed(c.mont(D)).redPow(E).fromRed().mod(O)}return Qo.exports=p,Qo.exports.getKey=w,Qo.exports.makeKey=T,Qo.exports}var _f,X4;function wb(){if(X4)return _f;X4=1;var e=_.safeBufferExports.Buffer,t=_.bnExports,n=Z0().ec,a=Q0(),c=X6;function i(h,g,C,w,j){var I=a(C);if(I.type==="ec"){if(w!=="ecdsa"&&w!=="ecdsa/rsa")throw new Error("wrong public key type");return u(h,g,I)}else if(I.type==="dsa"){if(w!=="dsa")throw new Error("wrong public key type");return f(h,g,I)}if(w!=="rsa"&&w!=="ecdsa/rsa")throw new Error("wrong public key type");g=e.concat([j,g]);for(var T=I.modulus.byteLength(),S=[1],L=0;g.length+S.length+2<T;)S.push(255),L+=1;S.push(0);for(var E=-1;++E<g.length;)S.push(g[E]);S=e.from(S);var D=t.mont(I.modulus);h=new t(h).toRed(D),h=h.redPow(new t(I.publicExponent)),h=e.from(h.fromRed().toArray());var O=L<8?1:0;for(T=Math.min(h.length,S.length),h.length!==S.length&&(O=1),E=-1;++E<T;)O|=h[E]^S[E];return O===0}function u(h,g,C){var w=c[C.data.algorithm.curve.join(".")];if(!w)throw new Error("unknown curve "+C.data.algorithm.curve.join("."));var j=new n(w),I=C.data.subjectPrivateKey.data;return j.verify(g,h,I)}function f(h,g,C){var w=C.data.p,j=C.data.q,I=C.data.g,T=C.data.pub_key,S=a.signature.decode(h,"der"),L=S.s,E=S.r;p(L,j),p(E,j);var D=t.mont(w),O=L.invm(j),F=I.toRed(D).redPow(new t(g).mul(O).mod(j)).fromRed().mul(T.toRed(D).redPow(E.mul(O).mod(j)).fromRed()).mod(w).mod(j);return F.cmp(E)===0}function p(h,g){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(g)>=0)throw new Error("invalid sig")}return _f=i,_f}var Bf,K4;function Nb(){if(K4)return Bf;K4=1;var e=_.safeBufferExports.Buffer,t=Ha(),n=Wx(),a=zt,c=Cb(),i=wb(),u=N6;Object.keys(u).forEach(function(C){u[C].id=e.from(u[C].id,"hex"),u[C.toLowerCase()]=u[C]});function f(C){n.Writable.call(this);var w=u[C];if(!w)throw new Error("Unknown message digest");this._hashType=w.hash,this._hash=t(w.hash),this._tag=w.id,this._signType=w.sign}a(f,n.Writable),f.prototype._write=function(w,j,I){this._hash.update(w),I()},f.prototype.update=function(w,j){return this._hash.update(typeof w=="string"?e.from(w,j):w),this},f.prototype.sign=function(w,j){this.end();var I=this._hash.digest(),T=c(I,w,this._hashType,this._signType,this._tag);return j?T.toString(j):T};function p(C){n.Writable.call(this);var w=u[C];if(!w)throw new Error("Unknown message digest");this._hash=t(w.hash),this._tag=w.id,this._signType=w.sign}a(p,n.Writable),p.prototype._write=function(w,j,I){this._hash.update(w),I()},p.prototype.update=function(w,j){return this._hash.update(typeof w=="string"?e.from(w,j):w),this},p.prototype.verify=function(w,j,I){var T=typeof j=="string"?e.from(j,I):j;this.end();var S=this._hash.digest();return i(T,S,w,this._signType,this._tag)};function h(C){return new f(C)}function g(C){return new p(C)}return Bf={Sign:h,Verify:g,createSign:h,createVerify:g},Bf}var Qs={exports:{}};Qs.exports;var e3;function jb(){return e3||(e3=1,function(e){(function(t,n){function a(y,r){if(!y)throw new Error(r||"Assertion failed")}function c(y,r){y.super_=r;var s=function(){};s.prototype=r.prototype,y.prototype=new s,y.prototype.constructor=y}function i(y,r,s){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((r==="le"||r==="be")&&(s=r,r=10),this._init(y||0,r||10,s||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=_.bufferPolyfill.Buffer}catch{}i.isBN=function(r){return r instanceof i?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===i.wordSize&&Array.isArray(r.words)},i.max=function(r,s){return r.cmp(s)>0?r:s},i.min=function(r,s){return r.cmp(s)<0?r:s},i.prototype._init=function(r,s,l){if(typeof r=="number")return this._initNumber(r,s,l);if(typeof r=="object")return this._initArray(r,s,l);s==="hex"&&(s=16),a(s===(s|0)&&s>=2&&s<=36),r=r.toString().replace(/\s+/g,"");var d=0;r[0]==="-"&&(d++,this.negative=1),d<r.length&&(s===16?this._parseHex(r,d,l):(this._parseBase(r,s,d),l==="le"&&this._initArray(this.toArray(),s,l)))},i.prototype._initNumber=function(r,s,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(r,s,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M,b,N=0;if(l==="be")for(d=r.length-1,M=0;d>=0;d-=3)b=r[d]|r[d-1]<<8|r[d-2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);else if(l==="le")for(d=0,M=0;d<r.length;d+=3)b=r[d]|r[d+1]<<8|r[d+2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);return this.strip()};function f(y,r){var s=y.charCodeAt(r);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function p(y,r,s){var l=f(y,s);return s-1>=r&&(l|=f(y,s-1)<<4),l}i.prototype._parseHex=function(r,s,l){this.length=Math.ceil((r.length-s)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M=0,b=0,N;if(l==="be")for(d=r.length-1;d>=s;d-=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8;else{var m=r.length-s;for(d=m%2===0?s+1:s;d<r.length;d+=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8}this.strip()};function h(y,r,s,l){for(var d=0,M=Math.min(y.length,s),b=r;b<M;b++){var N=y.charCodeAt(b)-48;d*=l,N>=49?d+=N-49+10:N>=17?d+=N-17+10:d+=N}return d}i.prototype._parseBase=function(r,s,l){this.words=[0],this.length=1;for(var d=0,M=1;M<=67108863;M*=s)d++;d--,M=M/s|0;for(var b=r.length-l,N=b%d,m=Math.min(b,b-N)+l,o=0,x=l;x<m;x+=d)o=h(r,x,x+d,s),this.imuln(M),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(N!==0){var W=1;for(o=h(r,x,r.length,s),x=0;x<N;x++)W*=s;this.imuln(W),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(r){r.words=new Array(this.length);for(var s=0;s<this.length;s++)r.words[s]=this.words[s];r.length=this.length,r.negative=this.negative,r.red=this.red},i.prototype.clone=function(){var r=new i(null);return this.copy(r),r},i.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(r,s){r=r||10,s=s|0||1;var l;if(r===16||r==="hex"){l="";for(var d=0,M=0,b=0;b<this.length;b++){var N=this.words[b],m=((N<<d|M)&16777215).toString(16);M=N>>>24-d&16777215,d+=2,d>=26&&(d-=26,b--),M!==0||b!==this.length-1?l=g[6-m.length]+m+l:l=m+l}for(M!==0&&(l=M.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var o=C[r],x=w[r];l="";var W=this.clone();for(W.negative=0;!W.isZero();){var Z=W.modn(x).toString(r);W=W.idivn(x),W.isZero()?l=Z+l:l=g[o-Z.length]+Z+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(r,s){return a(typeof u<"u"),this.toArrayLike(u,r,s)},i.prototype.toArray=function(r,s){return this.toArrayLike(Array,r,s)},i.prototype.toArrayLike=function(r,s,l){var d=this.byteLength(),M=l||Math.max(1,d);a(d<=M,"byte array longer than desired length"),a(M>0,"Requested array length <= 0"),this.strip();var b=s==="le",N=new r(M),m,o,x=this.clone();if(b){for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[o]=m;for(;o<M;o++)N[o]=0}else{for(o=0;o<M-d;o++)N[o]=0;for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[M-o-1]=m}return N},Math.clz32?i.prototype._countBits=function(r){return 32-Math.clz32(r)}:i.prototype._countBits=function(r){var s=r,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(r){if(r===0)return 26;var s=r,l=0;return s&8191||(l+=13,s>>>=13),s&127||(l+=7,s>>>=7),s&15||(l+=4,s>>>=4),s&3||(l+=2,s>>>=2),s&1||l++,l},i.prototype.bitLength=function(){var r=this.words[this.length-1],s=this._countBits(r);return(this.length-1)*26+s};function j(y){for(var r=new Array(y.bitLength()),s=0;s<r.length;s++){var l=s/26|0,d=s%26;r[s]=(y.words[l]&1<<d)>>>d}return r}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(r+=l,l!==26)break}return r},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},i.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var s=0;s<r.length;s++)this.words[s]=this.words[s]|r.words[s];return this.strip()},i.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},i.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},i.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},i.prototype.iuand=function(r){var s;this.length>r.length?s=r:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},i.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},i.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},i.prototype.iuxor=function(r){var s,l;this.length>r.length?(s=this,l=r):(s=r,l=this);for(var d=0;d<l.length;d++)this.words[d]=s.words[d]^l.words[d];if(this!==s)for(;d<s.length;d++)this.words[d]=s.words[d];return this.length=s.length,this.strip()},i.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},i.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},i.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},i.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var s=Math.ceil(r/26)|0,l=r%26;this._expand(s),l>0&&s--;for(var d=0;d<s;d++)this.words[d]=~this.words[d]&67108863;return l>0&&(this.words[d]=~this.words[d]&67108863>>26-l),this.strip()},i.prototype.notn=function(r){return this.clone().inotn(r)},i.prototype.setn=function(r,s){a(typeof r=="number"&&r>=0);var l=r/26|0,d=r%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<d:this.words[l]=this.words[l]&~(1<<d),this.strip()},i.prototype.iadd=function(r){var s;if(this.negative!==0&&r.negative===0)return this.negative=0,s=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,s=this.isub(r),r.negative=1,s._normSign();var l,d;this.length>r.length?(l=this,d=r):(l=r,d=this);for(var M=0,b=0;b<d.length;b++)s=(l.words[b]|0)+(d.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;for(;M!==0&&b<l.length;b++)s=(l.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;if(this.length=l.length,M!==0)this.words[this.length]=M,this.length++;else if(l!==this)for(;b<l.length;b++)this.words[b]=l.words[b];return this},i.prototype.add=function(r){var s;return r.negative!==0&&this.negative===0?(r.negative=0,s=this.sub(r),r.negative^=1,s):r.negative===0&&this.negative!==0?(this.negative=0,s=r.sub(this),this.negative=1,s):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},i.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var s=this.iadd(r);return r.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var d,M;l>0?(d=this,M=r):(d=r,M=this);for(var b=0,N=0;N<M.length;N++)s=(d.words[N]|0)-(M.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;for(;b!==0&&N<d.length;N++)s=(d.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;if(b===0&&N<d.length&&d!==this)for(;N<d.length;N++)this.words[N]=d.words[N];return this.length=Math.max(this.length,N),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(r){return this.clone().isub(r)};function I(y,r,s){s.negative=r.negative^y.negative;var l=y.length+r.length|0;s.length=l,l=l-1|0;var d=y.words[0]|0,M=r.words[0]|0,b=d*M,N=b&67108863,m=b/67108864|0;s.words[0]=N;for(var o=1;o<l;o++){for(var x=m>>>26,W=m&67108863,Z=Math.min(o,r.length-1),G=Math.max(0,o-y.length+1);G<=Z;G++){var ee=o-G|0;d=y.words[ee]|0,M=r.words[G]|0,b=d*M+W,x+=b/67108864|0,W=b&67108863}s.words[o]=W|0,m=x|0}return m!==0?s.words[o]=m|0:s.length--,s.strip()}var T=function(r,s,l){var d=r.words,M=s.words,b=l.words,N=0,m,o,x,W=d[0]|0,Z=W&8191,G=W>>>13,ee=d[1]|0,V=ee&8191,P=ee>>>13,H=d[2]|0,$=H&8191,X=H>>>13,te=d[3]|0,Y=te&8191,ne=te>>>13,xe=d[4]|0,le=xe&8191,ue=xe>>>13,Ve=d[5]|0,he=Ve&8191,be=Ve>>>13,st=d[6]|0,Me=st&8191,oe=st>>>13,We=d[7]|0,de=We&8191,ye=We>>>13,mt=d[8]|0,je=mt&8191,Ae=mt>>>13,Tt=d[9]|0,De=Tt&8191,ve=Tt>>>13,jt=M[0]|0,Ee=jt&8191,Le=jt>>>13,Ot=M[1]|0,me=Ot&8191,Ce=Ot>>>13,xt=M[2]|0,Se=xt&8191,Oe=xt>>>13,Wt=M[3]|0,ze=Wt&8191,ke=Wt>>>13,er=M[4]|0,Fe=er&8191,Re=er>>>13,Mt=M[5]|0,_e=Mt&8191,Pe=Mt>>>13,Tr=M[6]|0,Be=Tr&8191,Ue=Tr>>>13,q=M[7]|0,K=q&8191,J=q>>>13,U=M[8]|0,re=U&8191,se=U>>>13,we=M[9]|0,ce=we&8191,pe=we>>>13;l.negative=r.negative^s.negative,l.length=19,m=Math.imul(Z,Ee),o=Math.imul(Z,Le),o=o+Math.imul(G,Ee)|0,x=Math.imul(G,Le);var ot=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(V,Ee),o=Math.imul(V,Le),o=o+Math.imul(P,Ee)|0,x=Math.imul(P,Le),m=m+Math.imul(Z,me)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(G,me)|0,x=x+Math.imul(G,Ce)|0;var qe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul($,Ee),o=Math.imul($,Le),o=o+Math.imul(X,Ee)|0,x=Math.imul(X,Le),m=m+Math.imul(V,me)|0,o=o+Math.imul(V,Ce)|0,o=o+Math.imul(P,me)|0,x=x+Math.imul(P,Ce)|0,m=m+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Oe)|0,o=o+Math.imul(G,Se)|0,x=x+Math.imul(G,Oe)|0;var Ct=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,m=Math.imul(Y,Ee),o=Math.imul(Y,Le),o=o+Math.imul(ne,Ee)|0,x=Math.imul(ne,Le),m=m+Math.imul($,me)|0,o=o+Math.imul($,Ce)|0,o=o+Math.imul(X,me)|0,x=x+Math.imul(X,Ce)|0,m=m+Math.imul(V,Se)|0,o=o+Math.imul(V,Oe)|0,o=o+Math.imul(P,Se)|0,x=x+Math.imul(P,Oe)|0,m=m+Math.imul(Z,ze)|0,o=o+Math.imul(Z,ke)|0,o=o+Math.imul(G,ze)|0,x=x+Math.imul(G,ke)|0;var et=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(le,Ee),o=Math.imul(le,Le),o=o+Math.imul(ue,Ee)|0,x=Math.imul(ue,Le),m=m+Math.imul(Y,me)|0,o=o+Math.imul(Y,Ce)|0,o=o+Math.imul(ne,me)|0,x=x+Math.imul(ne,Ce)|0,m=m+Math.imul($,Se)|0,o=o+Math.imul($,Oe)|0,o=o+Math.imul(X,Se)|0,x=x+Math.imul(X,Oe)|0,m=m+Math.imul(V,ze)|0,o=o+Math.imul(V,ke)|0,o=o+Math.imul(P,ze)|0,x=x+Math.imul(P,ke)|0,m=m+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(G,Fe)|0,x=x+Math.imul(G,Re)|0;var lt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(he,Ee),o=Math.imul(he,Le),o=o+Math.imul(be,Ee)|0,x=Math.imul(be,Le),m=m+Math.imul(le,me)|0,o=o+Math.imul(le,Ce)|0,o=o+Math.imul(ue,me)|0,x=x+Math.imul(ue,Ce)|0,m=m+Math.imul(Y,Se)|0,o=o+Math.imul(Y,Oe)|0,o=o+Math.imul(ne,Se)|0,x=x+Math.imul(ne,Oe)|0,m=m+Math.imul($,ze)|0,o=o+Math.imul($,ke)|0,o=o+Math.imul(X,ze)|0,x=x+Math.imul(X,ke)|0,m=m+Math.imul(V,Fe)|0,o=o+Math.imul(V,Re)|0,o=o+Math.imul(P,Fe)|0,x=x+Math.imul(P,Re)|0,m=m+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Pe)|0,o=o+Math.imul(G,_e)|0,x=x+Math.imul(G,Pe)|0;var ft=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,m=Math.imul(Me,Ee),o=Math.imul(Me,Le),o=o+Math.imul(oe,Ee)|0,x=Math.imul(oe,Le),m=m+Math.imul(he,me)|0,o=o+Math.imul(he,Ce)|0,o=o+Math.imul(be,me)|0,x=x+Math.imul(be,Ce)|0,m=m+Math.imul(le,Se)|0,o=o+Math.imul(le,Oe)|0,o=o+Math.imul(ue,Se)|0,x=x+Math.imul(ue,Oe)|0,m=m+Math.imul(Y,ze)|0,o=o+Math.imul(Y,ke)|0,o=o+Math.imul(ne,ze)|0,x=x+Math.imul(ne,ke)|0,m=m+Math.imul($,Fe)|0,o=o+Math.imul($,Re)|0,o=o+Math.imul(X,Fe)|0,x=x+Math.imul(X,Re)|0,m=m+Math.imul(V,_e)|0,o=o+Math.imul(V,Pe)|0,o=o+Math.imul(P,_e)|0,x=x+Math.imul(P,Pe)|0,m=m+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ue)|0,o=o+Math.imul(G,Be)|0,x=x+Math.imul(G,Ue)|0;var gt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(de,Ee),o=Math.imul(de,Le),o=o+Math.imul(ye,Ee)|0,x=Math.imul(ye,Le),m=m+Math.imul(Me,me)|0,o=o+Math.imul(Me,Ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,Ce)|0,m=m+Math.imul(he,Se)|0,o=o+Math.imul(he,Oe)|0,o=o+Math.imul(be,Se)|0,x=x+Math.imul(be,Oe)|0,m=m+Math.imul(le,ze)|0,o=o+Math.imul(le,ke)|0,o=o+Math.imul(ue,ze)|0,x=x+Math.imul(ue,ke)|0,m=m+Math.imul(Y,Fe)|0,o=o+Math.imul(Y,Re)|0,o=o+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,Re)|0,m=m+Math.imul($,_e)|0,o=o+Math.imul($,Pe)|0,o=o+Math.imul(X,_e)|0,x=x+Math.imul(X,Pe)|0,m=m+Math.imul(V,Be)|0,o=o+Math.imul(V,Ue)|0,o=o+Math.imul(P,Be)|0,x=x+Math.imul(P,Ue)|0,m=m+Math.imul(Z,K)|0,o=o+Math.imul(Z,J)|0,o=o+Math.imul(G,K)|0,x=x+Math.imul(G,J)|0;var pt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(je,Ee),o=Math.imul(je,Le),o=o+Math.imul(Ae,Ee)|0,x=Math.imul(Ae,Le),m=m+Math.imul(de,me)|0,o=o+Math.imul(de,Ce)|0,o=o+Math.imul(ye,me)|0,x=x+Math.imul(ye,Ce)|0,m=m+Math.imul(Me,Se)|0,o=o+Math.imul(Me,Oe)|0,o=o+Math.imul(oe,Se)|0,x=x+Math.imul(oe,Oe)|0,m=m+Math.imul(he,ze)|0,o=o+Math.imul(he,ke)|0,o=o+Math.imul(be,ze)|0,x=x+Math.imul(be,ke)|0,m=m+Math.imul(le,Fe)|0,o=o+Math.imul(le,Re)|0,o=o+Math.imul(ue,Fe)|0,x=x+Math.imul(ue,Re)|0,m=m+Math.imul(Y,_e)|0,o=o+Math.imul(Y,Pe)|0,o=o+Math.imul(ne,_e)|0,x=x+Math.imul(ne,Pe)|0,m=m+Math.imul($,Be)|0,o=o+Math.imul($,Ue)|0,o=o+Math.imul(X,Be)|0,x=x+Math.imul(X,Ue)|0,m=m+Math.imul(V,K)|0,o=o+Math.imul(V,J)|0,o=o+Math.imul(P,K)|0,x=x+Math.imul(P,J)|0,m=m+Math.imul(Z,re)|0,o=o+Math.imul(Z,se)|0,o=o+Math.imul(G,re)|0,x=x+Math.imul(G,se)|0;var ut=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ut>>>26)|0,ut&=67108863,m=Math.imul(De,Ee),o=Math.imul(De,Le),o=o+Math.imul(ve,Ee)|0,x=Math.imul(ve,Le),m=m+Math.imul(je,me)|0,o=o+Math.imul(je,Ce)|0,o=o+Math.imul(Ae,me)|0,x=x+Math.imul(Ae,Ce)|0,m=m+Math.imul(de,Se)|0,o=o+Math.imul(de,Oe)|0,o=o+Math.imul(ye,Se)|0,x=x+Math.imul(ye,Oe)|0,m=m+Math.imul(Me,ze)|0,o=o+Math.imul(Me,ke)|0,o=o+Math.imul(oe,ze)|0,x=x+Math.imul(oe,ke)|0,m=m+Math.imul(he,Fe)|0,o=o+Math.imul(he,Re)|0,o=o+Math.imul(be,Fe)|0,x=x+Math.imul(be,Re)|0,m=m+Math.imul(le,_e)|0,o=o+Math.imul(le,Pe)|0,o=o+Math.imul(ue,_e)|0,x=x+Math.imul(ue,Pe)|0,m=m+Math.imul(Y,Be)|0,o=o+Math.imul(Y,Ue)|0,o=o+Math.imul(ne,Be)|0,x=x+Math.imul(ne,Ue)|0,m=m+Math.imul($,K)|0,o=o+Math.imul($,J)|0,o=o+Math.imul(X,K)|0,x=x+Math.imul(X,J)|0,m=m+Math.imul(V,re)|0,o=o+Math.imul(V,se)|0,o=o+Math.imul(P,re)|0,x=x+Math.imul(P,se)|0,m=m+Math.imul(Z,ce)|0,o=o+Math.imul(Z,pe)|0,o=o+Math.imul(G,ce)|0,x=x+Math.imul(G,pe)|0;var ht=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(De,me),o=Math.imul(De,Ce),o=o+Math.imul(ve,me)|0,x=Math.imul(ve,Ce),m=m+Math.imul(je,Se)|0,o=o+Math.imul(je,Oe)|0,o=o+Math.imul(Ae,Se)|0,x=x+Math.imul(Ae,Oe)|0,m=m+Math.imul(de,ze)|0,o=o+Math.imul(de,ke)|0,o=o+Math.imul(ye,ze)|0,x=x+Math.imul(ye,ke)|0,m=m+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Re)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Re)|0,m=m+Math.imul(he,_e)|0,o=o+Math.imul(he,Pe)|0,o=o+Math.imul(be,_e)|0,x=x+Math.imul(be,Pe)|0,m=m+Math.imul(le,Be)|0,o=o+Math.imul(le,Ue)|0,o=o+Math.imul(ue,Be)|0,x=x+Math.imul(ue,Ue)|0,m=m+Math.imul(Y,K)|0,o=o+Math.imul(Y,J)|0,o=o+Math.imul(ne,K)|0,x=x+Math.imul(ne,J)|0,m=m+Math.imul($,re)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(X,re)|0,x=x+Math.imul(X,se)|0,m=m+Math.imul(V,ce)|0,o=o+Math.imul(V,pe)|0,o=o+Math.imul(P,ce)|0,x=x+Math.imul(P,pe)|0;var dt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(De,Se),o=Math.imul(De,Oe),o=o+Math.imul(ve,Se)|0,x=Math.imul(ve,Oe),m=m+Math.imul(je,ze)|0,o=o+Math.imul(je,ke)|0,o=o+Math.imul(Ae,ze)|0,x=x+Math.imul(Ae,ke)|0,m=m+Math.imul(de,Fe)|0,o=o+Math.imul(de,Re)|0,o=o+Math.imul(ye,Fe)|0,x=x+Math.imul(ye,Re)|0,m=m+Math.imul(Me,_e)|0,o=o+Math.imul(Me,Pe)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Pe)|0,m=m+Math.imul(he,Be)|0,o=o+Math.imul(he,Ue)|0,o=o+Math.imul(be,Be)|0,x=x+Math.imul(be,Ue)|0,m=m+Math.imul(le,K)|0,o=o+Math.imul(le,J)|0,o=o+Math.imul(ue,K)|0,x=x+Math.imul(ue,J)|0,m=m+Math.imul(Y,re)|0,o=o+Math.imul(Y,se)|0,o=o+Math.imul(ne,re)|0,x=x+Math.imul(ne,se)|0,m=m+Math.imul($,ce)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(X,ce)|0,x=x+Math.imul(X,pe)|0;var rt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(De,ze),o=Math.imul(De,ke),o=o+Math.imul(ve,ze)|0,x=Math.imul(ve,ke),m=m+Math.imul(je,Fe)|0,o=o+Math.imul(je,Re)|0,o=o+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,Re)|0,m=m+Math.imul(de,_e)|0,o=o+Math.imul(de,Pe)|0,o=o+Math.imul(ye,_e)|0,x=x+Math.imul(ye,Pe)|0,m=m+Math.imul(Me,Be)|0,o=o+Math.imul(Me,Ue)|0,o=o+Math.imul(oe,Be)|0,x=x+Math.imul(oe,Ue)|0,m=m+Math.imul(he,K)|0,o=o+Math.imul(he,J)|0,o=o+Math.imul(be,K)|0,x=x+Math.imul(be,J)|0,m=m+Math.imul(le,re)|0,o=o+Math.imul(le,se)|0,o=o+Math.imul(ue,re)|0,x=x+Math.imul(ue,se)|0,m=m+Math.imul(Y,ce)|0,o=o+Math.imul(Y,pe)|0,o=o+Math.imul(ne,ce)|0,x=x+Math.imul(ne,pe)|0;var at=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(De,Fe),o=Math.imul(De,Re),o=o+Math.imul(ve,Fe)|0,x=Math.imul(ve,Re),m=m+Math.imul(je,_e)|0,o=o+Math.imul(je,Pe)|0,o=o+Math.imul(Ae,_e)|0,x=x+Math.imul(Ae,Pe)|0,m=m+Math.imul(de,Be)|0,o=o+Math.imul(de,Ue)|0,o=o+Math.imul(ye,Be)|0,x=x+Math.imul(ye,Ue)|0,m=m+Math.imul(Me,K)|0,o=o+Math.imul(Me,J)|0,o=o+Math.imul(oe,K)|0,x=x+Math.imul(oe,J)|0,m=m+Math.imul(he,re)|0,o=o+Math.imul(he,se)|0,o=o+Math.imul(be,re)|0,x=x+Math.imul(be,se)|0,m=m+Math.imul(le,ce)|0,o=o+Math.imul(le,pe)|0,o=o+Math.imul(ue,ce)|0,x=x+Math.imul(ue,pe)|0;var Xe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(De,_e),o=Math.imul(De,Pe),o=o+Math.imul(ve,_e)|0,x=Math.imul(ve,Pe),m=m+Math.imul(je,Be)|0,o=o+Math.imul(je,Ue)|0,o=o+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,Ue)|0,m=m+Math.imul(de,K)|0,o=o+Math.imul(de,J)|0,o=o+Math.imul(ye,K)|0,x=x+Math.imul(ye,J)|0,m=m+Math.imul(Me,re)|0,o=o+Math.imul(Me,se)|0,o=o+Math.imul(oe,re)|0,x=x+Math.imul(oe,se)|0,m=m+Math.imul(he,ce)|0,o=o+Math.imul(he,pe)|0,o=o+Math.imul(be,ce)|0,x=x+Math.imul(be,pe)|0;var nt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(De,Be),o=Math.imul(De,Ue),o=o+Math.imul(ve,Be)|0,x=Math.imul(ve,Ue),m=m+Math.imul(je,K)|0,o=o+Math.imul(je,J)|0,o=o+Math.imul(Ae,K)|0,x=x+Math.imul(Ae,J)|0,m=m+Math.imul(de,re)|0,o=o+Math.imul(de,se)|0,o=o+Math.imul(ye,re)|0,x=x+Math.imul(ye,se)|0,m=m+Math.imul(Me,ce)|0,o=o+Math.imul(Me,pe)|0,o=o+Math.imul(oe,ce)|0,x=x+Math.imul(oe,pe)|0;var it=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(De,K),o=Math.imul(De,J),o=o+Math.imul(ve,K)|0,x=Math.imul(ve,J),m=m+Math.imul(je,re)|0,o=o+Math.imul(je,se)|0,o=o+Math.imul(Ae,re)|0,x=x+Math.imul(Ae,se)|0,m=m+Math.imul(de,ce)|0,o=o+Math.imul(de,pe)|0,o=o+Math.imul(ye,ce)|0,x=x+Math.imul(ye,pe)|0;var Ge=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(De,re),o=Math.imul(De,se),o=o+Math.imul(ve,re)|0,x=Math.imul(ve,se),m=m+Math.imul(je,ce)|0,o=o+Math.imul(je,pe)|0,o=o+Math.imul(Ae,ce)|0,x=x+Math.imul(Ae,pe)|0;var Te=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,m=Math.imul(De,ce),o=Math.imul(De,pe),o=o+Math.imul(ve,ce)|0,x=Math.imul(ve,pe);var Ie=(N+m|0)+((o&8191)<<13)|0;return N=(x+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b[0]=ot,b[1]=qe,b[2]=Ct,b[3]=et,b[4]=lt,b[5]=ft,b[6]=gt,b[7]=pt,b[8]=ut,b[9]=ht,b[10]=dt,b[11]=rt,b[12]=at,b[13]=Xe,b[14]=nt,b[15]=it,b[16]=Ge,b[17]=Te,b[18]=Ie,N!==0&&(b[19]=N,l.length++),l};Math.imul||(T=I);function S(y,r,s){s.negative=r.negative^y.negative,s.length=y.length+r.length;for(var l=0,d=0,M=0;M<s.length-1;M++){var b=d;d=0;for(var N=l&67108863,m=Math.min(M,r.length-1),o=Math.max(0,M-y.length+1);o<=m;o++){var x=M-o,W=y.words[x]|0,Z=r.words[o]|0,G=W*Z,ee=G&67108863;b=b+(G/67108864|0)|0,ee=ee+N|0,N=ee&67108863,b=b+(ee>>>26)|0,d+=b>>>26,b&=67108863}s.words[M]=N,l=b,b=d}return l!==0?s.words[M]=l:s.length--,s.strip()}function L(y,r,s){var l=new E;return l.mulp(y,r,s)}i.prototype.mulTo=function(r,s){var l,d=this.length+r.length;return this.length===10&&r.length===10?l=T(this,r,s):d<63?l=I(this,r,s):d<1024?l=S(this,r,s):l=L(this,r,s),l};function E(y,r){this.x=y,this.y=r}E.prototype.makeRBT=function(r){for(var s=new Array(r),l=i.prototype._countBits(r)-1,d=0;d<r;d++)s[d]=this.revBin(d,l,r);return s},E.prototype.revBin=function(r,s,l){if(r===0||r===l-1)return r;for(var d=0,M=0;M<s;M++)d|=(r&1)<<s-M-1,r>>=1;return d},E.prototype.permute=function(r,s,l,d,M,b){for(var N=0;N<b;N++)d[N]=s[r[N]],M[N]=l[r[N]]},E.prototype.transform=function(r,s,l,d,M,b){this.permute(b,r,s,l,d,M);for(var N=1;N<M;N<<=1)for(var m=N<<1,o=Math.cos(2*Math.PI/m),x=Math.sin(2*Math.PI/m),W=0;W<M;W+=m)for(var Z=o,G=x,ee=0;ee<N;ee++){var V=l[W+ee],P=d[W+ee],H=l[W+ee+N],$=d[W+ee+N],X=Z*H-G*$;$=Z*$+G*H,H=X,l[W+ee]=V+H,d[W+ee]=P+$,l[W+ee+N]=V-H,d[W+ee+N]=P-$,ee!==m&&(X=o*Z-x*G,G=o*G+x*Z,Z=X)}},E.prototype.guessLen13b=function(r,s){var l=Math.max(s,r)|1,d=l&1,M=0;for(l=l/2|0;l;l=l>>>1)M++;return 1<<M+1+d},E.prototype.conjugate=function(r,s,l){if(!(l<=1))for(var d=0;d<l/2;d++){var M=r[d];r[d]=r[l-d-1],r[l-d-1]=M,M=s[d],s[d]=-s[l-d-1],s[l-d-1]=-M}},E.prototype.normalize13b=function(r,s){for(var l=0,d=0;d<s/2;d++){var M=Math.round(r[2*d+1]/s)*8192+Math.round(r[2*d]/s)+l;r[d]=M&67108863,M<67108864?l=0:l=M/67108864|0}return r},E.prototype.convert13b=function(r,s,l,d){for(var M=0,b=0;b<s;b++)M=M+(r[b]|0),l[2*b]=M&8191,M=M>>>13,l[2*b+1]=M&8191,M=M>>>13;for(b=2*s;b<d;++b)l[b]=0;a(M===0),a((M&-8192)===0)},E.prototype.stub=function(r){for(var s=new Array(r),l=0;l<r;l++)s[l]=0;return s},E.prototype.mulp=function(r,s,l){var d=2*this.guessLen13b(r.length,s.length),M=this.makeRBT(d),b=this.stub(d),N=new Array(d),m=new Array(d),o=new Array(d),x=new Array(d),W=new Array(d),Z=new Array(d),G=l.words;G.length=d,this.convert13b(r.words,r.length,N,d),this.convert13b(s.words,s.length,x,d),this.transform(N,b,m,o,d,M),this.transform(x,b,W,Z,d,M);for(var ee=0;ee<d;ee++){var V=m[ee]*W[ee]-o[ee]*Z[ee];o[ee]=m[ee]*Z[ee]+o[ee]*W[ee],m[ee]=V}return this.conjugate(m,o,d),this.transform(m,o,G,b,d,M),this.conjugate(G,b,d),this.normalize13b(G,d),l.negative=r.negative^s.negative,l.length=r.length+s.length,l.strip()},i.prototype.mul=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),this.mulTo(r,s)},i.prototype.mulf=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),L(this,r,s)},i.prototype.imul=function(r){return this.clone().mulTo(r,this)},i.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var s=0,l=0;l<this.length;l++){var d=(this.words[l]|0)*r,M=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=M>>>26,this.words[l]=M&67108863}return s!==0&&(this.words[l]=s,this.length++),this.length=r===0?1:this.length,this},i.prototype.muln=function(r){return this.clone().imuln(r)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(r){var s=j(r);if(s.length===0)return new i(1);for(var l=this,d=0;d<s.length&&s[d]===0;d++,l=l.sqr());if(++d<s.length)for(var M=l.sqr();d<s.length;d++,M=M.sqr())s[d]!==0&&(l=l.mul(M));return l},i.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=67108863>>>26-s<<26-s,M;if(s!==0){var b=0;for(M=0;M<this.length;M++){var N=this.words[M]&d,m=(this.words[M]|0)-N<<s;this.words[M]=m|b,b=N>>>26-s}b&&(this.words[M]=b,this.length++)}if(l!==0){for(M=this.length-1;M>=0;M--)this.words[M+l]=this.words[M];for(M=0;M<l;M++)this.words[M]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},i.prototype.iushrn=function(r,s,l){a(typeof r=="number"&&r>=0);var d;s?d=(s-s%26)/26:d=0;var M=r%26,b=Math.min((r-M)/26,this.length),N=67108863^67108863>>>M<<M,m=l;if(d-=b,d=Math.max(0,d),m){for(var o=0;o<b;o++)m.words[o]=this.words[o];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,o=0;o<this.length;o++)this.words[o]=this.words[o+b];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=d);o--){var W=this.words[o]|0;this.words[o]=x<<26-M|W>>>M,x=W&N}return m&&x!==0&&(m.words[m.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(r,s,l){return a(this.negative===0),this.iushrn(r,s,l)},i.prototype.shln=function(r){return this.clone().ishln(r)},i.prototype.ushln=function(r){return this.clone().iushln(r)},i.prototype.shrn=function(r){return this.clone().ishrn(r)},i.prototype.ushrn=function(r){return this.clone().iushrn(r)},i.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return!1;var M=this.words[l];return!!(M&d)},i.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var d=67108863^67108863>>>s<<s;this.words[this.length-1]&=d}return this.strip()},i.prototype.maskn=function(r){return this.clone().imaskn(r)},i.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},i.prototype._iaddn=function(r){this.words[0]+=r;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},i.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(r){return this.clone().iaddn(r)},i.prototype.subn=function(r){return this.clone().isubn(r)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(r,s,l){var d=r.length+l,M;this._expand(d);var b,N=0;for(M=0;M<r.length;M++){b=(this.words[M+l]|0)+N;var m=(r.words[M]|0)*s;b-=m&67108863,N=(b>>26)-(m/67108864|0),this.words[M+l]=b&67108863}for(;M<this.length-l;M++)b=(this.words[M+l]|0)+N,N=b>>26,this.words[M+l]=b&67108863;if(N===0)return this.strip();for(a(N===-1),N=0,M=0;M<this.length;M++)b=-(this.words[M]|0)+N,N=b>>26,this.words[M]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(r,s){var l=this.length-r.length,d=this.clone(),M=r,b=M.words[M.length-1]|0,N=this._countBits(b);l=26-N,l!==0&&(M=M.ushln(l),d.iushln(l),b=M.words[M.length-1]|0);var m=d.length-M.length,o;if(s!=="mod"){o=new i(null),o.length=m+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var W=d.clone()._ishlnsubmul(M,1,m);W.negative===0&&(d=W,o&&(o.words[m]=1));for(var Z=m-1;Z>=0;Z--){var G=(d.words[M.length+Z]|0)*67108864+(d.words[M.length+Z-1]|0);for(G=Math.min(G/b|0,67108863),d._ishlnsubmul(M,G,Z);d.negative!==0;)G--,d.negative=0,d._ishlnsubmul(M,1,Z),d.isZero()||(d.negative^=1);o&&(o.words[Z]=G)}return o&&o.strip(),d.strip(),s!=="div"&&l!==0&&d.iushrn(l),{div:o||null,mod:d}},i.prototype.divmod=function(r,s,l){if(a(!r.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var d,M,b;return this.negative!==0&&r.negative===0?(b=this.neg().divmod(r,s),s!=="mod"&&(d=b.div.neg()),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.iadd(r)),{div:d,mod:M}):this.negative===0&&r.negative!==0?(b=this.divmod(r.neg(),s),s!=="mod"&&(d=b.div.neg()),{div:d,mod:b.mod}):this.negative&r.negative?(b=this.neg().divmod(r.neg(),s),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.isub(r)),{div:b.div,mod:M}):r.length>this.length||this.cmp(r)<0?{div:new i(0),mod:this}:r.length===1?s==="div"?{div:this.divn(r.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new i(this.modn(r.words[0]))}:this._wordDiv(r,s)},i.prototype.div=function(r){return this.divmod(r,"div",!1).div},i.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},i.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},i.prototype.divRound=function(r){var s=this.divmod(r);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(r):s.mod,d=r.ushrn(1),M=r.andln(1),b=l.cmp(d);return b<0||M===1&&b===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(r){a(r<=67108863);for(var s=(1<<26)%r,l=0,d=this.length-1;d>=0;d--)l=(s*l+(this.words[d]|0))%r;return l},i.prototype.idivn=function(r){a(r<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var d=(this.words[l]|0)+s*67108864;this.words[l]=d/r|0,s=d%r}return this.strip()},i.prototype.divn=function(r){return this.clone().idivn(r)},i.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=new i(0),N=new i(1),m=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++m;for(var o=l.clone(),x=s.clone();!s.isZero();){for(var W=0,Z=1;!(s.words[0]&Z)&&W<26;++W,Z<<=1);if(W>0)for(s.iushrn(W);W-- >0;)(d.isOdd()||M.isOdd())&&(d.iadd(o),M.isub(x)),d.iushrn(1),M.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(b.isOdd()||N.isOdd())&&(b.iadd(o),N.isub(x)),b.iushrn(1),N.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(b),M.isub(N)):(l.isub(s),b.isub(d),N.isub(M))}return{a:b,b:N,gcd:l.iushln(m)}},i.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var N=0,m=1;!(s.words[0]&m)&&N<26;++N,m<<=1);if(N>0)for(s.iushrn(N);N-- >0;)d.isOdd()&&d.iadd(b),d.iushrn(1);for(var o=0,x=1;!(l.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(l.iushrn(o);o-- >0;)M.isOdd()&&M.iadd(b),M.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(M)):(l.isub(s),M.isub(d))}var W;return s.cmpn(1)===0?W=d:W=M,W.cmpn(0)<0&&W.iadd(r),W},i.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var s=this.clone(),l=r.clone();s.negative=0,l.negative=0;for(var d=0;s.isEven()&&l.isEven();d++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var M=s.cmp(l);if(M<0){var b=s;s=l,l=b}else if(M===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(d)},i.prototype.invm=function(r){return this.egcd(r).a.umod(r)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(r){return this.words[0]&r},i.prototype.bincn=function(r){a(typeof r=="number");var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=d,this;for(var M=d,b=l;M!==0&&b<this.length;b++){var N=this.words[b]|0;N+=M,M=N>>>26,N&=67108863,this.words[b]=N}return M!==0&&(this.words[b]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(r){var s=r<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(r=-r),a(r<=67108863,"Number is too big");var d=this.words[0]|0;l=d===r?0:d<r?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var s=this.ucmp(r);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var d=this.words[l]|0,M=r.words[l]|0;if(d!==M){d<M?s=-1:d>M&&(s=1);break}}return s},i.prototype.gtn=function(r){return this.cmpn(r)===1},i.prototype.gt=function(r){return this.cmp(r)===1},i.prototype.gten=function(r){return this.cmpn(r)>=0},i.prototype.gte=function(r){return this.cmp(r)>=0},i.prototype.ltn=function(r){return this.cmpn(r)===-1},i.prototype.lt=function(r){return this.cmp(r)===-1},i.prototype.lten=function(r){return this.cmpn(r)<=0},i.prototype.lte=function(r){return this.cmp(r)<=0},i.prototype.eqn=function(r){return this.cmpn(r)===0},i.prototype.eq=function(r){return this.cmp(r)===0},i.red=function(r){return new k(r)},i.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(r){return this.red=r,this},i.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},i.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},i.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},i.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},i.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},i.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},i.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},i.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var D={k256:null,p224:null,p192:null,p25519:null};function O(y,r){this.name=y,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var r=new i(null);return r.words=new Array(Math.ceil(this.n/13)),r},O.prototype.ireduce=function(r){var s=r,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var d=l<this.n?-1:s.ucmp(this.p);return d===0?(s.words[0]=0,s.length=1):d>0?s.isub(this.p):s.strip!==void 0?s.strip():s._strip(),s},O.prototype.split=function(r,s){r.iushrn(this.n,0,s)},O.prototype.imulK=function(r){return r.imul(this.k)};function F(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(F,O),F.prototype.split=function(r,s){for(var l=4194303,d=Math.min(r.length,9),M=0;M<d;M++)s.words[M]=r.words[M];if(s.length=d,r.length<=9){r.words[0]=0,r.length=1;return}var b=r.words[9];for(s.words[s.length++]=b&l,M=10;M<r.length;M++){var N=r.words[M]|0;r.words[M-10]=(N&l)<<4|b>>>22,b=N}b>>>=22,r.words[M-10]=b,b===0&&r.length>10?r.length-=10:r.length-=9},F.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var s=0,l=0;l<r.length;l++){var d=r.words[l]|0;s+=d*977,r.words[l]=s&67108863,s=d*64+(s/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function R(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(R,O);function Q(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,O);function B(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(B,O),B.prototype.imulK=function(r){for(var s=0,l=0;l<r.length;l++){var d=(r.words[l]|0)*19+s,M=d&67108863;d>>>=26,r.words[l]=M,s=d}return s!==0&&(r.words[r.length++]=s),r},i._prime=function(r){if(D[r])return D[r];var s;if(r==="k256")s=new F;else if(r==="p224")s=new R;else if(r==="p192")s=new Q;else if(r==="p25519")s=new B;else throw new Error("Unknown prime "+r);return D[r]=s,s};function k(y){if(typeof y=="string"){var r=i._prime(y);this.m=r.p,this.prime=r}else a(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}k.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},k.prototype._verify2=function(r,s){a((r.negative|s.negative)===0,"red works only with positives"),a(r.red&&r.red===s.red,"red works only with red numbers")},k.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},k.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},k.prototype.add=function(r,s){this._verify2(r,s);var l=r.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},k.prototype.iadd=function(r,s){this._verify2(r,s);var l=r.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},k.prototype.sub=function(r,s){this._verify2(r,s);var l=r.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},k.prototype.isub=function(r,s){this._verify2(r,s);var l=r.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},k.prototype.shl=function(r,s){return this._verify1(r),this.imod(r.ushln(s))},k.prototype.imul=function(r,s){return this._verify2(r,s),this.imod(r.imul(s))},k.prototype.mul=function(r,s){return this._verify2(r,s),this.imod(r.mul(s))},k.prototype.isqr=function(r){return this.imul(r,r.clone())},k.prototype.sqr=function(r){return this.mul(r,r)},k.prototype.sqrt=function(r){if(r.isZero())return r.clone();var s=this.m.andln(3);if(a(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(r,l)}for(var d=this.m.subn(1),M=0;!d.isZero()&&d.andln(1)===0;)M++,d.iushrn(1);a(!d.isZero());var b=new i(1).toRed(this),N=b.redNeg(),m=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,m).cmp(N)!==0;)o.redIAdd(N);for(var x=this.pow(o,d),W=this.pow(r,d.addn(1).iushrn(1)),Z=this.pow(r,d),G=M;Z.cmp(b)!==0;){for(var ee=Z,V=0;ee.cmp(b)!==0;V++)ee=ee.redSqr();a(V<G);var P=this.pow(x,new i(1).iushln(G-V-1));W=W.redMul(P),x=P.redSqr(),Z=Z.redMul(x),G=V}return W},k.prototype.invm=function(r){var s=r._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},k.prototype.pow=function(r,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return r.clone();var l=4,d=new Array(1<<l);d[0]=new i(1).toRed(this),d[1]=r;for(var M=2;M<d.length;M++)d[M]=this.mul(d[M-1],r);var b=d[0],N=0,m=0,o=s.bitLength()%26;for(o===0&&(o=26),M=s.length-1;M>=0;M--){for(var x=s.words[M],W=o-1;W>=0;W--){var Z=x>>W&1;if(b!==d[0]&&(b=this.sqr(b)),Z===0&&N===0){m=0;continue}N<<=1,N|=Z,m++,!(m!==l&&(M!==0||W!==0))&&(b=this.mul(b,d[N]),m=0,N=0)}o=26}return b},k.prototype.convertTo=function(r){var s=r.umod(this.m);return s===r?s.clone():s},k.prototype.convertFrom=function(r){var s=r.clone();return s.red=null,s},i.mont=function(r){return new z(r)};function z(y){k.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(z,k),z.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},z.prototype.convertFrom=function(r){var s=this.imod(r.mul(this.rinv));return s.red=null,s},z.prototype.imul=function(r,s){if(r.isZero()||s.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.mul=function(r,s){if(r.isZero()||s.isZero())return new i(0)._forceRed(this);var l=r.mul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.invm=function(r){var s=this.imod(r._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(e,_.commonjsGlobal)}(Qs)),Qs.exports}var Ff,t3;function Tb(){if(t3)return Ff;t3=1;var e=Z0(),t=jb();Ff=function(u){return new a(u)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1;function a(i){this.curveType=n[i],this.curveType||(this.curveType={name:i}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}a.prototype.generateKeys=function(i,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,u)},a.prototype.computeSecret=function(i,u,f){u=u||"utf8",_.dist.Buffer.isBuffer(i)||(i=new _.dist.Buffer(i,u));var p=this.curve.keyFromPublic(i).getPublic(),h=p.mul(this.keys.getPrivate()).getX();return c(h,f,this.curveType.byteLength)},a.prototype.getPublicKey=function(i,u){var f=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),c(f,i)},a.prototype.getPrivateKey=function(i){return c(this.keys.getPrivate(),i)},a.prototype.setPublicKey=function(i,u){return u=u||"utf8",_.dist.Buffer.isBuffer(i)||(i=new _.dist.Buffer(i,u)),this.keys._importPublic(i),this},a.prototype.setPrivateKey=function(i,u){u=u||"utf8",_.dist.Buffer.isBuffer(i)||(i=new _.dist.Buffer(i,u));var f=new t(i);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this};function c(i,u,f){Array.isArray(i)||(i=i.toArray());var p=new _.dist.Buffer(i);if(f&&p.length<f){var h=new _.dist.Buffer(f-p.length);h.fill(0),p=_.dist.Buffer.concat([h,p])}return u?p.toString(u):p}return Ff}var Rf={},Pf,r3;function K6(){if(r3)return Pf;r3=1;var e=Ha(),t=_.safeBufferExports.Buffer;Pf=function(a,c){for(var i=t.alloc(0),u=0,f;i.length<c;)f=n(u++),i=t.concat([i,e("sha1").update(a).update(f).digest()]);return i.slice(0,c)};function n(a){var c=t.allocUnsafe(4);return c.writeUInt32BE(a,0),c}return Pf}var Uf,n3;function eg(){return n3||(n3=1,Uf=function(t,n){for(var a=t.length,c=-1;++c<a;)t[c]^=n[c];return t}),Uf}var Vs={exports:{}};Vs.exports;var i3;function zd(){return i3||(i3=1,function(e){(function(t,n){function a(y,r){if(!y)throw new Error(r||"Assertion failed")}function c(y,r){y.super_=r;var s=function(){};s.prototype=r.prototype,y.prototype=new s,y.prototype.constructor=y}function i(y,r,s){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((r==="le"||r==="be")&&(s=r,r=10),this._init(y||0,r||10,s||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=_.bufferPolyfill.Buffer}catch{}i.isBN=function(r){return r instanceof i?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===i.wordSize&&Array.isArray(r.words)},i.max=function(r,s){return r.cmp(s)>0?r:s},i.min=function(r,s){return r.cmp(s)<0?r:s},i.prototype._init=function(r,s,l){if(typeof r=="number")return this._initNumber(r,s,l);if(typeof r=="object")return this._initArray(r,s,l);s==="hex"&&(s=16),a(s===(s|0)&&s>=2&&s<=36),r=r.toString().replace(/\s+/g,"");var d=0;r[0]==="-"&&(d++,this.negative=1),d<r.length&&(s===16?this._parseHex(r,d,l):(this._parseBase(r,s,d),l==="le"&&this._initArray(this.toArray(),s,l)))},i.prototype._initNumber=function(r,s,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),s,l)},i.prototype._initArray=function(r,s,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M,b,N=0;if(l==="be")for(d=r.length-1,M=0;d>=0;d-=3)b=r[d]|r[d-1]<<8|r[d-2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);else if(l==="le")for(d=0,M=0;d<r.length;d+=3)b=r[d]|r[d+1]<<8|r[d+2]<<16,this.words[M]|=b<<N&67108863,this.words[M+1]=b>>>26-N&67108863,N+=24,N>=26&&(N-=26,M++);return this.strip()};function f(y,r){var s=y.charCodeAt(r);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function p(y,r,s){var l=f(y,s);return s-1>=r&&(l|=f(y,s-1)<<4),l}i.prototype._parseHex=function(r,s,l){this.length=Math.ceil((r.length-s)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var M=0,b=0,N;if(l==="be")for(d=r.length-1;d>=s;d-=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8;else{var m=r.length-s;for(d=m%2===0?s+1:s;d<r.length;d+=2)N=p(r,s,d)<<M,this.words[b]|=N&67108863,M>=18?(M-=18,b+=1,this.words[b]|=N>>>26):M+=8}this.strip()};function h(y,r,s,l){for(var d=0,M=Math.min(y.length,s),b=r;b<M;b++){var N=y.charCodeAt(b)-48;d*=l,N>=49?d+=N-49+10:N>=17?d+=N-17+10:d+=N}return d}i.prototype._parseBase=function(r,s,l){this.words=[0],this.length=1;for(var d=0,M=1;M<=67108863;M*=s)d++;d--,M=M/s|0;for(var b=r.length-l,N=b%d,m=Math.min(b,b-N)+l,o=0,x=l;x<m;x+=d)o=h(r,x,x+d,s),this.imuln(M),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(N!==0){var W=1;for(o=h(r,x,r.length,s),x=0;x<N;x++)W*=s;this.imuln(W),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(r){r.words=new Array(this.length);for(var s=0;s<this.length;s++)r.words[s]=this.words[s];r.length=this.length,r.negative=this.negative,r.red=this.red},i.prototype.clone=function(){var r=new i(null);return this.copy(r),r},i.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(r,s){r=r||10,s=s|0||1;var l;if(r===16||r==="hex"){l="";for(var d=0,M=0,b=0;b<this.length;b++){var N=this.words[b],m=((N<<d|M)&16777215).toString(16);M=N>>>24-d&16777215,d+=2,d>=26&&(d-=26,b--),M!==0||b!==this.length-1?l=g[6-m.length]+m+l:l=m+l}for(M!==0&&(l=M.toString(16)+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var o=C[r],x=w[r];l="";var W=this.clone();for(W.negative=0;!W.isZero();){var Z=W.modn(x).toString(r);W=W.idivn(x),W.isZero()?l=Z+l:l=g[o-Z.length]+Z+l}for(this.isZero()&&(l="0"+l);l.length%s!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(r,s){return a(typeof u<"u"),this.toArrayLike(u,r,s)},i.prototype.toArray=function(r,s){return this.toArrayLike(Array,r,s)},i.prototype.toArrayLike=function(r,s,l){var d=this.byteLength(),M=l||Math.max(1,d);a(d<=M,"byte array longer than desired length"),a(M>0,"Requested array length <= 0"),this.strip();var b=s==="le",N=new r(M),m,o,x=this.clone();if(b){for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[o]=m;for(;o<M;o++)N[o]=0}else{for(o=0;o<M-d;o++)N[o]=0;for(o=0;!x.isZero();o++)m=x.andln(255),x.iushrn(8),N[M-o-1]=m}return N},Math.clz32?i.prototype._countBits=function(r){return 32-Math.clz32(r)}:i.prototype._countBits=function(r){var s=r,l=0;return s>=4096&&(l+=13,s>>>=13),s>=64&&(l+=7,s>>>=7),s>=8&&(l+=4,s>>>=4),s>=2&&(l+=2,s>>>=2),l+s},i.prototype._zeroBits=function(r){if(r===0)return 26;var s=r,l=0;return s&8191||(l+=13,s>>>=13),s&127||(l+=7,s>>>=7),s&15||(l+=4,s>>>=4),s&3||(l+=2,s>>>=2),s&1||l++,l},i.prototype.bitLength=function(){var r=this.words[this.length-1],s=this._countBits(r);return(this.length-1)*26+s};function j(y){for(var r=new Array(y.bitLength()),s=0;s<r.length;s++){var l=s/26|0,d=s%26;r[s]=(y.words[l]&1<<d)>>>d}return r}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,s=0;s<this.length;s++){var l=this._zeroBits(this.words[s]);if(r+=l,l!==26)break}return r},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},i.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var s=0;s<r.length;s++)this.words[s]=this.words[s]|r.words[s];return this.strip()},i.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},i.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},i.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},i.prototype.iuand=function(r){var s;this.length>r.length?s=r:s=this;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=s.length,this.strip()},i.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},i.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},i.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},i.prototype.iuxor=function(r){var s,l;this.length>r.length?(s=this,l=r):(s=r,l=this);for(var d=0;d<l.length;d++)this.words[d]=s.words[d]^l.words[d];if(this!==s)for(;d<s.length;d++)this.words[d]=s.words[d];return this.length=s.length,this.strip()},i.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},i.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},i.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},i.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var s=Math.ceil(r/26)|0,l=r%26;this._expand(s),l>0&&s--;for(var d=0;d<s;d++)this.words[d]=~this.words[d]&67108863;return l>0&&(this.words[d]=~this.words[d]&67108863>>26-l),this.strip()},i.prototype.notn=function(r){return this.clone().inotn(r)},i.prototype.setn=function(r,s){a(typeof r=="number"&&r>=0);var l=r/26|0,d=r%26;return this._expand(l+1),s?this.words[l]=this.words[l]|1<<d:this.words[l]=this.words[l]&~(1<<d),this.strip()},i.prototype.iadd=function(r){var s;if(this.negative!==0&&r.negative===0)return this.negative=0,s=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,s=this.isub(r),r.negative=1,s._normSign();var l,d;this.length>r.length?(l=this,d=r):(l=r,d=this);for(var M=0,b=0;b<d.length;b++)s=(l.words[b]|0)+(d.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;for(;M!==0&&b<l.length;b++)s=(l.words[b]|0)+M,this.words[b]=s&67108863,M=s>>>26;if(this.length=l.length,M!==0)this.words[this.length]=M,this.length++;else if(l!==this)for(;b<l.length;b++)this.words[b]=l.words[b];return this},i.prototype.add=function(r){var s;return r.negative!==0&&this.negative===0?(r.negative=0,s=this.sub(r),r.negative^=1,s):r.negative===0&&this.negative!==0?(this.negative=0,s=r.sub(this),this.negative=1,s):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},i.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var s=this.iadd(r);return r.negative=1,s._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var d,M;l>0?(d=this,M=r):(d=r,M=this);for(var b=0,N=0;N<M.length;N++)s=(d.words[N]|0)-(M.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;for(;b!==0&&N<d.length;N++)s=(d.words[N]|0)+b,b=s>>26,this.words[N]=s&67108863;if(b===0&&N<d.length&&d!==this)for(;N<d.length;N++)this.words[N]=d.words[N];return this.length=Math.max(this.length,N),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(r){return this.clone().isub(r)};function I(y,r,s){s.negative=r.negative^y.negative;var l=y.length+r.length|0;s.length=l,l=l-1|0;var d=y.words[0]|0,M=r.words[0]|0,b=d*M,N=b&67108863,m=b/67108864|0;s.words[0]=N;for(var o=1;o<l;o++){for(var x=m>>>26,W=m&67108863,Z=Math.min(o,r.length-1),G=Math.max(0,o-y.length+1);G<=Z;G++){var ee=o-G|0;d=y.words[ee]|0,M=r.words[G]|0,b=d*M+W,x+=b/67108864|0,W=b&67108863}s.words[o]=W|0,m=x|0}return m!==0?s.words[o]=m|0:s.length--,s.strip()}var T=function(r,s,l){var d=r.words,M=s.words,b=l.words,N=0,m,o,x,W=d[0]|0,Z=W&8191,G=W>>>13,ee=d[1]|0,V=ee&8191,P=ee>>>13,H=d[2]|0,$=H&8191,X=H>>>13,te=d[3]|0,Y=te&8191,ne=te>>>13,xe=d[4]|0,le=xe&8191,ue=xe>>>13,Ve=d[5]|0,he=Ve&8191,be=Ve>>>13,st=d[6]|0,Me=st&8191,oe=st>>>13,We=d[7]|0,de=We&8191,ye=We>>>13,mt=d[8]|0,je=mt&8191,Ae=mt>>>13,Tt=d[9]|0,De=Tt&8191,ve=Tt>>>13,jt=M[0]|0,Ee=jt&8191,Le=jt>>>13,Ot=M[1]|0,me=Ot&8191,Ce=Ot>>>13,xt=M[2]|0,Se=xt&8191,Oe=xt>>>13,Wt=M[3]|0,ze=Wt&8191,ke=Wt>>>13,er=M[4]|0,Fe=er&8191,Re=er>>>13,Mt=M[5]|0,_e=Mt&8191,Pe=Mt>>>13,Tr=M[6]|0,Be=Tr&8191,Ue=Tr>>>13,q=M[7]|0,K=q&8191,J=q>>>13,U=M[8]|0,re=U&8191,se=U>>>13,we=M[9]|0,ce=we&8191,pe=we>>>13;l.negative=r.negative^s.negative,l.length=19,m=Math.imul(Z,Ee),o=Math.imul(Z,Le),o=o+Math.imul(G,Ee)|0,x=Math.imul(G,Le);var ot=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(V,Ee),o=Math.imul(V,Le),o=o+Math.imul(P,Ee)|0,x=Math.imul(P,Le),m=m+Math.imul(Z,me)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(G,me)|0,x=x+Math.imul(G,Ce)|0;var qe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul($,Ee),o=Math.imul($,Le),o=o+Math.imul(X,Ee)|0,x=Math.imul(X,Le),m=m+Math.imul(V,me)|0,o=o+Math.imul(V,Ce)|0,o=o+Math.imul(P,me)|0,x=x+Math.imul(P,Ce)|0,m=m+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Oe)|0,o=o+Math.imul(G,Se)|0,x=x+Math.imul(G,Oe)|0;var Ct=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,m=Math.imul(Y,Ee),o=Math.imul(Y,Le),o=o+Math.imul(ne,Ee)|0,x=Math.imul(ne,Le),m=m+Math.imul($,me)|0,o=o+Math.imul($,Ce)|0,o=o+Math.imul(X,me)|0,x=x+Math.imul(X,Ce)|0,m=m+Math.imul(V,Se)|0,o=o+Math.imul(V,Oe)|0,o=o+Math.imul(P,Se)|0,x=x+Math.imul(P,Oe)|0,m=m+Math.imul(Z,ze)|0,o=o+Math.imul(Z,ke)|0,o=o+Math.imul(G,ze)|0,x=x+Math.imul(G,ke)|0;var et=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(le,Ee),o=Math.imul(le,Le),o=o+Math.imul(ue,Ee)|0,x=Math.imul(ue,Le),m=m+Math.imul(Y,me)|0,o=o+Math.imul(Y,Ce)|0,o=o+Math.imul(ne,me)|0,x=x+Math.imul(ne,Ce)|0,m=m+Math.imul($,Se)|0,o=o+Math.imul($,Oe)|0,o=o+Math.imul(X,Se)|0,x=x+Math.imul(X,Oe)|0,m=m+Math.imul(V,ze)|0,o=o+Math.imul(V,ke)|0,o=o+Math.imul(P,ze)|0,x=x+Math.imul(P,ke)|0,m=m+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(G,Fe)|0,x=x+Math.imul(G,Re)|0;var lt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(he,Ee),o=Math.imul(he,Le),o=o+Math.imul(be,Ee)|0,x=Math.imul(be,Le),m=m+Math.imul(le,me)|0,o=o+Math.imul(le,Ce)|0,o=o+Math.imul(ue,me)|0,x=x+Math.imul(ue,Ce)|0,m=m+Math.imul(Y,Se)|0,o=o+Math.imul(Y,Oe)|0,o=o+Math.imul(ne,Se)|0,x=x+Math.imul(ne,Oe)|0,m=m+Math.imul($,ze)|0,o=o+Math.imul($,ke)|0,o=o+Math.imul(X,ze)|0,x=x+Math.imul(X,ke)|0,m=m+Math.imul(V,Fe)|0,o=o+Math.imul(V,Re)|0,o=o+Math.imul(P,Fe)|0,x=x+Math.imul(P,Re)|0,m=m+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Pe)|0,o=o+Math.imul(G,_e)|0,x=x+Math.imul(G,Pe)|0;var ft=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,m=Math.imul(Me,Ee),o=Math.imul(Me,Le),o=o+Math.imul(oe,Ee)|0,x=Math.imul(oe,Le),m=m+Math.imul(he,me)|0,o=o+Math.imul(he,Ce)|0,o=o+Math.imul(be,me)|0,x=x+Math.imul(be,Ce)|0,m=m+Math.imul(le,Se)|0,o=o+Math.imul(le,Oe)|0,o=o+Math.imul(ue,Se)|0,x=x+Math.imul(ue,Oe)|0,m=m+Math.imul(Y,ze)|0,o=o+Math.imul(Y,ke)|0,o=o+Math.imul(ne,ze)|0,x=x+Math.imul(ne,ke)|0,m=m+Math.imul($,Fe)|0,o=o+Math.imul($,Re)|0,o=o+Math.imul(X,Fe)|0,x=x+Math.imul(X,Re)|0,m=m+Math.imul(V,_e)|0,o=o+Math.imul(V,Pe)|0,o=o+Math.imul(P,_e)|0,x=x+Math.imul(P,Pe)|0,m=m+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ue)|0,o=o+Math.imul(G,Be)|0,x=x+Math.imul(G,Ue)|0;var gt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(de,Ee),o=Math.imul(de,Le),o=o+Math.imul(ye,Ee)|0,x=Math.imul(ye,Le),m=m+Math.imul(Me,me)|0,o=o+Math.imul(Me,Ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,Ce)|0,m=m+Math.imul(he,Se)|0,o=o+Math.imul(he,Oe)|0,o=o+Math.imul(be,Se)|0,x=x+Math.imul(be,Oe)|0,m=m+Math.imul(le,ze)|0,o=o+Math.imul(le,ke)|0,o=o+Math.imul(ue,ze)|0,x=x+Math.imul(ue,ke)|0,m=m+Math.imul(Y,Fe)|0,o=o+Math.imul(Y,Re)|0,o=o+Math.imul(ne,Fe)|0,x=x+Math.imul(ne,Re)|0,m=m+Math.imul($,_e)|0,o=o+Math.imul($,Pe)|0,o=o+Math.imul(X,_e)|0,x=x+Math.imul(X,Pe)|0,m=m+Math.imul(V,Be)|0,o=o+Math.imul(V,Ue)|0,o=o+Math.imul(P,Be)|0,x=x+Math.imul(P,Ue)|0,m=m+Math.imul(Z,K)|0,o=o+Math.imul(Z,J)|0,o=o+Math.imul(G,K)|0,x=x+Math.imul(G,J)|0;var pt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(je,Ee),o=Math.imul(je,Le),o=o+Math.imul(Ae,Ee)|0,x=Math.imul(Ae,Le),m=m+Math.imul(de,me)|0,o=o+Math.imul(de,Ce)|0,o=o+Math.imul(ye,me)|0,x=x+Math.imul(ye,Ce)|0,m=m+Math.imul(Me,Se)|0,o=o+Math.imul(Me,Oe)|0,o=o+Math.imul(oe,Se)|0,x=x+Math.imul(oe,Oe)|0,m=m+Math.imul(he,ze)|0,o=o+Math.imul(he,ke)|0,o=o+Math.imul(be,ze)|0,x=x+Math.imul(be,ke)|0,m=m+Math.imul(le,Fe)|0,o=o+Math.imul(le,Re)|0,o=o+Math.imul(ue,Fe)|0,x=x+Math.imul(ue,Re)|0,m=m+Math.imul(Y,_e)|0,o=o+Math.imul(Y,Pe)|0,o=o+Math.imul(ne,_e)|0,x=x+Math.imul(ne,Pe)|0,m=m+Math.imul($,Be)|0,o=o+Math.imul($,Ue)|0,o=o+Math.imul(X,Be)|0,x=x+Math.imul(X,Ue)|0,m=m+Math.imul(V,K)|0,o=o+Math.imul(V,J)|0,o=o+Math.imul(P,K)|0,x=x+Math.imul(P,J)|0,m=m+Math.imul(Z,re)|0,o=o+Math.imul(Z,se)|0,o=o+Math.imul(G,re)|0,x=x+Math.imul(G,se)|0;var ut=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ut>>>26)|0,ut&=67108863,m=Math.imul(De,Ee),o=Math.imul(De,Le),o=o+Math.imul(ve,Ee)|0,x=Math.imul(ve,Le),m=m+Math.imul(je,me)|0,o=o+Math.imul(je,Ce)|0,o=o+Math.imul(Ae,me)|0,x=x+Math.imul(Ae,Ce)|0,m=m+Math.imul(de,Se)|0,o=o+Math.imul(de,Oe)|0,o=o+Math.imul(ye,Se)|0,x=x+Math.imul(ye,Oe)|0,m=m+Math.imul(Me,ze)|0,o=o+Math.imul(Me,ke)|0,o=o+Math.imul(oe,ze)|0,x=x+Math.imul(oe,ke)|0,m=m+Math.imul(he,Fe)|0,o=o+Math.imul(he,Re)|0,o=o+Math.imul(be,Fe)|0,x=x+Math.imul(be,Re)|0,m=m+Math.imul(le,_e)|0,o=o+Math.imul(le,Pe)|0,o=o+Math.imul(ue,_e)|0,x=x+Math.imul(ue,Pe)|0,m=m+Math.imul(Y,Be)|0,o=o+Math.imul(Y,Ue)|0,o=o+Math.imul(ne,Be)|0,x=x+Math.imul(ne,Ue)|0,m=m+Math.imul($,K)|0,o=o+Math.imul($,J)|0,o=o+Math.imul(X,K)|0,x=x+Math.imul(X,J)|0,m=m+Math.imul(V,re)|0,o=o+Math.imul(V,se)|0,o=o+Math.imul(P,re)|0,x=x+Math.imul(P,se)|0,m=m+Math.imul(Z,ce)|0,o=o+Math.imul(Z,pe)|0,o=o+Math.imul(G,ce)|0,x=x+Math.imul(G,pe)|0;var ht=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(De,me),o=Math.imul(De,Ce),o=o+Math.imul(ve,me)|0,x=Math.imul(ve,Ce),m=m+Math.imul(je,Se)|0,o=o+Math.imul(je,Oe)|0,o=o+Math.imul(Ae,Se)|0,x=x+Math.imul(Ae,Oe)|0,m=m+Math.imul(de,ze)|0,o=o+Math.imul(de,ke)|0,o=o+Math.imul(ye,ze)|0,x=x+Math.imul(ye,ke)|0,m=m+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Re)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Re)|0,m=m+Math.imul(he,_e)|0,o=o+Math.imul(he,Pe)|0,o=o+Math.imul(be,_e)|0,x=x+Math.imul(be,Pe)|0,m=m+Math.imul(le,Be)|0,o=o+Math.imul(le,Ue)|0,o=o+Math.imul(ue,Be)|0,x=x+Math.imul(ue,Ue)|0,m=m+Math.imul(Y,K)|0,o=o+Math.imul(Y,J)|0,o=o+Math.imul(ne,K)|0,x=x+Math.imul(ne,J)|0,m=m+Math.imul($,re)|0,o=o+Math.imul($,se)|0,o=o+Math.imul(X,re)|0,x=x+Math.imul(X,se)|0,m=m+Math.imul(V,ce)|0,o=o+Math.imul(V,pe)|0,o=o+Math.imul(P,ce)|0,x=x+Math.imul(P,pe)|0;var dt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(De,Se),o=Math.imul(De,Oe),o=o+Math.imul(ve,Se)|0,x=Math.imul(ve,Oe),m=m+Math.imul(je,ze)|0,o=o+Math.imul(je,ke)|0,o=o+Math.imul(Ae,ze)|0,x=x+Math.imul(Ae,ke)|0,m=m+Math.imul(de,Fe)|0,o=o+Math.imul(de,Re)|0,o=o+Math.imul(ye,Fe)|0,x=x+Math.imul(ye,Re)|0,m=m+Math.imul(Me,_e)|0,o=o+Math.imul(Me,Pe)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Pe)|0,m=m+Math.imul(he,Be)|0,o=o+Math.imul(he,Ue)|0,o=o+Math.imul(be,Be)|0,x=x+Math.imul(be,Ue)|0,m=m+Math.imul(le,K)|0,o=o+Math.imul(le,J)|0,o=o+Math.imul(ue,K)|0,x=x+Math.imul(ue,J)|0,m=m+Math.imul(Y,re)|0,o=o+Math.imul(Y,se)|0,o=o+Math.imul(ne,re)|0,x=x+Math.imul(ne,se)|0,m=m+Math.imul($,ce)|0,o=o+Math.imul($,pe)|0,o=o+Math.imul(X,ce)|0,x=x+Math.imul(X,pe)|0;var rt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(De,ze),o=Math.imul(De,ke),o=o+Math.imul(ve,ze)|0,x=Math.imul(ve,ke),m=m+Math.imul(je,Fe)|0,o=o+Math.imul(je,Re)|0,o=o+Math.imul(Ae,Fe)|0,x=x+Math.imul(Ae,Re)|0,m=m+Math.imul(de,_e)|0,o=o+Math.imul(de,Pe)|0,o=o+Math.imul(ye,_e)|0,x=x+Math.imul(ye,Pe)|0,m=m+Math.imul(Me,Be)|0,o=o+Math.imul(Me,Ue)|0,o=o+Math.imul(oe,Be)|0,x=x+Math.imul(oe,Ue)|0,m=m+Math.imul(he,K)|0,o=o+Math.imul(he,J)|0,o=o+Math.imul(be,K)|0,x=x+Math.imul(be,J)|0,m=m+Math.imul(le,re)|0,o=o+Math.imul(le,se)|0,o=o+Math.imul(ue,re)|0,x=x+Math.imul(ue,se)|0,m=m+Math.imul(Y,ce)|0,o=o+Math.imul(Y,pe)|0,o=o+Math.imul(ne,ce)|0,x=x+Math.imul(ne,pe)|0;var at=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(De,Fe),o=Math.imul(De,Re),o=o+Math.imul(ve,Fe)|0,x=Math.imul(ve,Re),m=m+Math.imul(je,_e)|0,o=o+Math.imul(je,Pe)|0,o=o+Math.imul(Ae,_e)|0,x=x+Math.imul(Ae,Pe)|0,m=m+Math.imul(de,Be)|0,o=o+Math.imul(de,Ue)|0,o=o+Math.imul(ye,Be)|0,x=x+Math.imul(ye,Ue)|0,m=m+Math.imul(Me,K)|0,o=o+Math.imul(Me,J)|0,o=o+Math.imul(oe,K)|0,x=x+Math.imul(oe,J)|0,m=m+Math.imul(he,re)|0,o=o+Math.imul(he,se)|0,o=o+Math.imul(be,re)|0,x=x+Math.imul(be,se)|0,m=m+Math.imul(le,ce)|0,o=o+Math.imul(le,pe)|0,o=o+Math.imul(ue,ce)|0,x=x+Math.imul(ue,pe)|0;var Xe=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(De,_e),o=Math.imul(De,Pe),o=o+Math.imul(ve,_e)|0,x=Math.imul(ve,Pe),m=m+Math.imul(je,Be)|0,o=o+Math.imul(je,Ue)|0,o=o+Math.imul(Ae,Be)|0,x=x+Math.imul(Ae,Ue)|0,m=m+Math.imul(de,K)|0,o=o+Math.imul(de,J)|0,o=o+Math.imul(ye,K)|0,x=x+Math.imul(ye,J)|0,m=m+Math.imul(Me,re)|0,o=o+Math.imul(Me,se)|0,o=o+Math.imul(oe,re)|0,x=x+Math.imul(oe,se)|0,m=m+Math.imul(he,ce)|0,o=o+Math.imul(he,pe)|0,o=o+Math.imul(be,ce)|0,x=x+Math.imul(be,pe)|0;var nt=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(De,Be),o=Math.imul(De,Ue),o=o+Math.imul(ve,Be)|0,x=Math.imul(ve,Ue),m=m+Math.imul(je,K)|0,o=o+Math.imul(je,J)|0,o=o+Math.imul(Ae,K)|0,x=x+Math.imul(Ae,J)|0,m=m+Math.imul(de,re)|0,o=o+Math.imul(de,se)|0,o=o+Math.imul(ye,re)|0,x=x+Math.imul(ye,se)|0,m=m+Math.imul(Me,ce)|0,o=o+Math.imul(Me,pe)|0,o=o+Math.imul(oe,ce)|0,x=x+Math.imul(oe,pe)|0;var it=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(De,K),o=Math.imul(De,J),o=o+Math.imul(ve,K)|0,x=Math.imul(ve,J),m=m+Math.imul(je,re)|0,o=o+Math.imul(je,se)|0,o=o+Math.imul(Ae,re)|0,x=x+Math.imul(Ae,se)|0,m=m+Math.imul(de,ce)|0,o=o+Math.imul(de,pe)|0,o=o+Math.imul(ye,ce)|0,x=x+Math.imul(ye,pe)|0;var Ge=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(De,re),o=Math.imul(De,se),o=o+Math.imul(ve,re)|0,x=Math.imul(ve,se),m=m+Math.imul(je,ce)|0,o=o+Math.imul(je,pe)|0,o=o+Math.imul(Ae,ce)|0,x=x+Math.imul(Ae,pe)|0;var Te=(N+m|0)+((o&8191)<<13)|0;N=(x+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,m=Math.imul(De,ce),o=Math.imul(De,pe),o=o+Math.imul(ve,ce)|0,x=Math.imul(ve,pe);var Ie=(N+m|0)+((o&8191)<<13)|0;return N=(x+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,b[0]=ot,b[1]=qe,b[2]=Ct,b[3]=et,b[4]=lt,b[5]=ft,b[6]=gt,b[7]=pt,b[8]=ut,b[9]=ht,b[10]=dt,b[11]=rt,b[12]=at,b[13]=Xe,b[14]=nt,b[15]=it,b[16]=Ge,b[17]=Te,b[18]=Ie,N!==0&&(b[19]=N,l.length++),l};Math.imul||(T=I);function S(y,r,s){s.negative=r.negative^y.negative,s.length=y.length+r.length;for(var l=0,d=0,M=0;M<s.length-1;M++){var b=d;d=0;for(var N=l&67108863,m=Math.min(M,r.length-1),o=Math.max(0,M-y.length+1);o<=m;o++){var x=M-o,W=y.words[x]|0,Z=r.words[o]|0,G=W*Z,ee=G&67108863;b=b+(G/67108864|0)|0,ee=ee+N|0,N=ee&67108863,b=b+(ee>>>26)|0,d+=b>>>26,b&=67108863}s.words[M]=N,l=b,b=d}return l!==0?s.words[M]=l:s.length--,s.strip()}function L(y,r,s){var l=new E;return l.mulp(y,r,s)}i.prototype.mulTo=function(r,s){var l,d=this.length+r.length;return this.length===10&&r.length===10?l=T(this,r,s):d<63?l=I(this,r,s):d<1024?l=S(this,r,s):l=L(this,r,s),l};function E(y,r){this.x=y,this.y=r}E.prototype.makeRBT=function(r){for(var s=new Array(r),l=i.prototype._countBits(r)-1,d=0;d<r;d++)s[d]=this.revBin(d,l,r);return s},E.prototype.revBin=function(r,s,l){if(r===0||r===l-1)return r;for(var d=0,M=0;M<s;M++)d|=(r&1)<<s-M-1,r>>=1;return d},E.prototype.permute=function(r,s,l,d,M,b){for(var N=0;N<b;N++)d[N]=s[r[N]],M[N]=l[r[N]]},E.prototype.transform=function(r,s,l,d,M,b){this.permute(b,r,s,l,d,M);for(var N=1;N<M;N<<=1)for(var m=N<<1,o=Math.cos(2*Math.PI/m),x=Math.sin(2*Math.PI/m),W=0;W<M;W+=m)for(var Z=o,G=x,ee=0;ee<N;ee++){var V=l[W+ee],P=d[W+ee],H=l[W+ee+N],$=d[W+ee+N],X=Z*H-G*$;$=Z*$+G*H,H=X,l[W+ee]=V+H,d[W+ee]=P+$,l[W+ee+N]=V-H,d[W+ee+N]=P-$,ee!==m&&(X=o*Z-x*G,G=o*G+x*Z,Z=X)}},E.prototype.guessLen13b=function(r,s){var l=Math.max(s,r)|1,d=l&1,M=0;for(l=l/2|0;l;l=l>>>1)M++;return 1<<M+1+d},E.prototype.conjugate=function(r,s,l){if(!(l<=1))for(var d=0;d<l/2;d++){var M=r[d];r[d]=r[l-d-1],r[l-d-1]=M,M=s[d],s[d]=-s[l-d-1],s[l-d-1]=-M}},E.prototype.normalize13b=function(r,s){for(var l=0,d=0;d<s/2;d++){var M=Math.round(r[2*d+1]/s)*8192+Math.round(r[2*d]/s)+l;r[d]=M&67108863,M<67108864?l=0:l=M/67108864|0}return r},E.prototype.convert13b=function(r,s,l,d){for(var M=0,b=0;b<s;b++)M=M+(r[b]|0),l[2*b]=M&8191,M=M>>>13,l[2*b+1]=M&8191,M=M>>>13;for(b=2*s;b<d;++b)l[b]=0;a(M===0),a((M&-8192)===0)},E.prototype.stub=function(r){for(var s=new Array(r),l=0;l<r;l++)s[l]=0;return s},E.prototype.mulp=function(r,s,l){var d=2*this.guessLen13b(r.length,s.length),M=this.makeRBT(d),b=this.stub(d),N=new Array(d),m=new Array(d),o=new Array(d),x=new Array(d),W=new Array(d),Z=new Array(d),G=l.words;G.length=d,this.convert13b(r.words,r.length,N,d),this.convert13b(s.words,s.length,x,d),this.transform(N,b,m,o,d,M),this.transform(x,b,W,Z,d,M);for(var ee=0;ee<d;ee++){var V=m[ee]*W[ee]-o[ee]*Z[ee];o[ee]=m[ee]*Z[ee]+o[ee]*W[ee],m[ee]=V}return this.conjugate(m,o,d),this.transform(m,o,G,b,d,M),this.conjugate(G,b,d),this.normalize13b(G,d),l.negative=r.negative^s.negative,l.length=r.length+s.length,l.strip()},i.prototype.mul=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),this.mulTo(r,s)},i.prototype.mulf=function(r){var s=new i(null);return s.words=new Array(this.length+r.length),L(this,r,s)},i.prototype.imul=function(r){return this.clone().mulTo(r,this)},i.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var s=0,l=0;l<this.length;l++){var d=(this.words[l]|0)*r,M=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=M>>>26,this.words[l]=M&67108863}return s!==0&&(this.words[l]=s,this.length++),this.length=r===0?1:this.length,this},i.prototype.muln=function(r){return this.clone().imuln(r)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(r){var s=j(r);if(s.length===0)return new i(1);for(var l=this,d=0;d<s.length&&s[d]===0;d++,l=l.sqr());if(++d<s.length)for(var M=l.sqr();d<s.length;d++,M=M.sqr())s[d]!==0&&(l=l.mul(M));return l},i.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=67108863>>>26-s<<26-s,M;if(s!==0){var b=0;for(M=0;M<this.length;M++){var N=this.words[M]&d,m=(this.words[M]|0)-N<<s;this.words[M]=m|b,b=N>>>26-s}b&&(this.words[M]=b,this.length++)}if(l!==0){for(M=this.length-1;M>=0;M--)this.words[M+l]=this.words[M];for(M=0;M<l;M++)this.words[M]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},i.prototype.iushrn=function(r,s,l){a(typeof r=="number"&&r>=0);var d;s?d=(s-s%26)/26:d=0;var M=r%26,b=Math.min((r-M)/26,this.length),N=67108863^67108863>>>M<<M,m=l;if(d-=b,d=Math.max(0,d),m){for(var o=0;o<b;o++)m.words[o]=this.words[o];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,o=0;o<this.length;o++)this.words[o]=this.words[o+b];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=d);o--){var W=this.words[o]|0;this.words[o]=x<<26-M|W>>>M,x=W&N}return m&&x!==0&&(m.words[m.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(r,s,l){return a(this.negative===0),this.iushrn(r,s,l)},i.prototype.shln=function(r){return this.clone().ishln(r)},i.prototype.ushln=function(r){return this.clone().iushln(r)},i.prototype.shrn=function(r){return this.clone().ishrn(r)},i.prototype.ushrn=function(r){return this.clone().iushrn(r)},i.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return!1;var M=this.words[l];return!!(M&d)},i.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var s=r%26,l=(r-s)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(s!==0&&l++,this.length=Math.min(l,this.length),s!==0){var d=67108863^67108863>>>s<<s;this.words[this.length-1]&=d}return this.strip()},i.prototype.maskn=function(r){return this.clone().imaskn(r)},i.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},i.prototype._iaddn=function(r){this.words[0]+=r;for(var s=0;s<this.length&&this.words[s]>=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},i.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s<this.length&&this.words[s]<0;s++)this.words[s]+=67108864,this.words[s+1]-=1;return this.strip()},i.prototype.addn=function(r){return this.clone().iaddn(r)},i.prototype.subn=function(r){return this.clone().isubn(r)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(r,s,l){var d=r.length+l,M;this._expand(d);var b,N=0;for(M=0;M<r.length;M++){b=(this.words[M+l]|0)+N;var m=(r.words[M]|0)*s;b-=m&67108863,N=(b>>26)-(m/67108864|0),this.words[M+l]=b&67108863}for(;M<this.length-l;M++)b=(this.words[M+l]|0)+N,N=b>>26,this.words[M+l]=b&67108863;if(N===0)return this.strip();for(a(N===-1),N=0,M=0;M<this.length;M++)b=-(this.words[M]|0)+N,N=b>>26,this.words[M]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(r,s){var l=this.length-r.length,d=this.clone(),M=r,b=M.words[M.length-1]|0,N=this._countBits(b);l=26-N,l!==0&&(M=M.ushln(l),d.iushln(l),b=M.words[M.length-1]|0);var m=d.length-M.length,o;if(s!=="mod"){o=new i(null),o.length=m+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var W=d.clone()._ishlnsubmul(M,1,m);W.negative===0&&(d=W,o&&(o.words[m]=1));for(var Z=m-1;Z>=0;Z--){var G=(d.words[M.length+Z]|0)*67108864+(d.words[M.length+Z-1]|0);for(G=Math.min(G/b|0,67108863),d._ishlnsubmul(M,G,Z);d.negative!==0;)G--,d.negative=0,d._ishlnsubmul(M,1,Z),d.isZero()||(d.negative^=1);o&&(o.words[Z]=G)}return o&&o.strip(),d.strip(),s!=="div"&&l!==0&&d.iushrn(l),{div:o||null,mod:d}},i.prototype.divmod=function(r,s,l){if(a(!r.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var d,M,b;return this.negative!==0&&r.negative===0?(b=this.neg().divmod(r,s),s!=="mod"&&(d=b.div.neg()),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.iadd(r)),{div:d,mod:M}):this.negative===0&&r.negative!==0?(b=this.divmod(r.neg(),s),s!=="mod"&&(d=b.div.neg()),{div:d,mod:b.mod}):this.negative&r.negative?(b=this.neg().divmod(r.neg(),s),s!=="div"&&(M=b.mod.neg(),l&&M.negative!==0&&M.isub(r)),{div:b.div,mod:M}):r.length>this.length||this.cmp(r)<0?{div:new i(0),mod:this}:r.length===1?s==="div"?{div:this.divn(r.words[0]),mod:null}:s==="mod"?{div:null,mod:new i(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new i(this.modn(r.words[0]))}:this._wordDiv(r,s)},i.prototype.div=function(r){return this.divmod(r,"div",!1).div},i.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},i.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},i.prototype.divRound=function(r){var s=this.divmod(r);if(s.mod.isZero())return s.div;var l=s.div.negative!==0?s.mod.isub(r):s.mod,d=r.ushrn(1),M=r.andln(1),b=l.cmp(d);return b<0||M===1&&b===0?s.div:s.div.negative!==0?s.div.isubn(1):s.div.iaddn(1)},i.prototype.modn=function(r){a(r<=67108863);for(var s=(1<<26)%r,l=0,d=this.length-1;d>=0;d--)l=(s*l+(this.words[d]|0))%r;return l},i.prototype.idivn=function(r){a(r<=67108863);for(var s=0,l=this.length-1;l>=0;l--){var d=(this.words[l]|0)+s*67108864;this.words[l]=d/r|0,s=d%r}return this.strip()},i.prototype.divn=function(r){return this.clone().idivn(r)},i.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=new i(0),N=new i(1),m=0;s.isEven()&&l.isEven();)s.iushrn(1),l.iushrn(1),++m;for(var o=l.clone(),x=s.clone();!s.isZero();){for(var W=0,Z=1;!(s.words[0]&Z)&&W<26;++W,Z<<=1);if(W>0)for(s.iushrn(W);W-- >0;)(d.isOdd()||M.isOdd())&&(d.iadd(o),M.isub(x)),d.iushrn(1),M.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(b.isOdd()||N.isOdd())&&(b.iadd(o),N.isub(x)),b.iushrn(1),N.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(b),M.isub(N)):(l.isub(s),b.isub(d),N.isub(M))}return{a:b,b:N,gcd:l.iushln(m)}},i.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var s=this,l=r.clone();s.negative!==0?s=s.umod(r):s=s.clone();for(var d=new i(1),M=new i(0),b=l.clone();s.cmpn(1)>0&&l.cmpn(1)>0;){for(var N=0,m=1;!(s.words[0]&m)&&N<26;++N,m<<=1);if(N>0)for(s.iushrn(N);N-- >0;)d.isOdd()&&d.iadd(b),d.iushrn(1);for(var o=0,x=1;!(l.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(l.iushrn(o);o-- >0;)M.isOdd()&&M.iadd(b),M.iushrn(1);s.cmp(l)>=0?(s.isub(l),d.isub(M)):(l.isub(s),M.isub(d))}var W;return s.cmpn(1)===0?W=d:W=M,W.cmpn(0)<0&&W.iadd(r),W},i.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var s=this.clone(),l=r.clone();s.negative=0,l.negative=0;for(var d=0;s.isEven()&&l.isEven();d++)s.iushrn(1),l.iushrn(1);do{for(;s.isEven();)s.iushrn(1);for(;l.isEven();)l.iushrn(1);var M=s.cmp(l);if(M<0){var b=s;s=l,l=b}else if(M===0||l.cmpn(1)===0)break;s.isub(l)}while(!0);return l.iushln(d)},i.prototype.invm=function(r){return this.egcd(r).a.umod(r)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(r){return this.words[0]&r},i.prototype.bincn=function(r){a(typeof r=="number");var s=r%26,l=(r-s)/26,d=1<<s;if(this.length<=l)return this._expand(l+1),this.words[l]|=d,this;for(var M=d,b=l;M!==0&&b<this.length;b++){var N=this.words[b]|0;N+=M,M=N>>>26,N&=67108863,this.words[b]=N}return M!==0&&(this.words[b]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(r){var s=r<0;if(this.negative!==0&&!s)return-1;if(this.negative===0&&s)return 1;this.strip();var l;if(this.length>1)l=1;else{s&&(r=-r),a(r<=67108863,"Number is too big");var d=this.words[0]|0;l=d===r?0:d<r?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var s=this.ucmp(r);return this.negative!==0?-s|0:s},i.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var s=0,l=this.length-1;l>=0;l--){var d=this.words[l]|0,M=r.words[l]|0;if(d!==M){d<M?s=-1:d>M&&(s=1);break}}return s},i.prototype.gtn=function(r){return this.cmpn(r)===1},i.prototype.gt=function(r){return this.cmp(r)===1},i.prototype.gten=function(r){return this.cmpn(r)>=0},i.prototype.gte=function(r){return this.cmp(r)>=0},i.prototype.ltn=function(r){return this.cmpn(r)===-1},i.prototype.lt=function(r){return this.cmp(r)===-1},i.prototype.lten=function(r){return this.cmpn(r)<=0},i.prototype.lte=function(r){return this.cmp(r)<=0},i.prototype.eqn=function(r){return this.cmpn(r)===0},i.prototype.eq=function(r){return this.cmp(r)===0},i.red=function(r){return new k(r)},i.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(r){return this.red=r,this},i.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},i.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},i.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},i.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},i.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},i.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},i.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},i.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var D={k256:null,p224:null,p192:null,p25519:null};function O(y,r){this.name=y,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var r=new i(null);return r.words=new Array(Math.ceil(this.n/13)),r},O.prototype.ireduce=function(r){var s=r,l;do this.split(s,this.tmp),s=this.imulK(s),s=s.iadd(this.tmp),l=s.bitLength();while(l>this.n);var d=l<this.n?-1:s.ucmp(this.p);return d===0?(s.words[0]=0,s.length=1):d>0?s.isub(this.p):s.strip!==void 0?s.strip():s._strip(),s},O.prototype.split=function(r,s){r.iushrn(this.n,0,s)},O.prototype.imulK=function(r){return r.imul(this.k)};function F(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(F,O),F.prototype.split=function(r,s){for(var l=4194303,d=Math.min(r.length,9),M=0;M<d;M++)s.words[M]=r.words[M];if(s.length=d,r.length<=9){r.words[0]=0,r.length=1;return}var b=r.words[9];for(s.words[s.length++]=b&l,M=10;M<r.length;M++){var N=r.words[M]|0;r.words[M-10]=(N&l)<<4|b>>>22,b=N}b>>>=22,r.words[M-10]=b,b===0&&r.length>10?r.length-=10:r.length-=9},F.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var s=0,l=0;l<r.length;l++){var d=r.words[l]|0;s+=d*977,r.words[l]=s&67108863,s=d*64+(s/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function R(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(R,O);function Q(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,O);function B(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(B,O),B.prototype.imulK=function(r){for(var s=0,l=0;l<r.length;l++){var d=(r.words[l]|0)*19+s,M=d&67108863;d>>>=26,r.words[l]=M,s=d}return s!==0&&(r.words[r.length++]=s),r},i._prime=function(r){if(D[r])return D[r];var s;if(r==="k256")s=new F;else if(r==="p224")s=new R;else if(r==="p192")s=new Q;else if(r==="p25519")s=new B;else throw new Error("Unknown prime "+r);return D[r]=s,s};function k(y){if(typeof y=="string"){var r=i._prime(y);this.m=r.p,this.prime=r}else a(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}k.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},k.prototype._verify2=function(r,s){a((r.negative|s.negative)===0,"red works only with positives"),a(r.red&&r.red===s.red,"red works only with red numbers")},k.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},k.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},k.prototype.add=function(r,s){this._verify2(r,s);var l=r.add(s);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},k.prototype.iadd=function(r,s){this._verify2(r,s);var l=r.iadd(s);return l.cmp(this.m)>=0&&l.isub(this.m),l},k.prototype.sub=function(r,s){this._verify2(r,s);var l=r.sub(s);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},k.prototype.isub=function(r,s){this._verify2(r,s);var l=r.isub(s);return l.cmpn(0)<0&&l.iadd(this.m),l},k.prototype.shl=function(r,s){return this._verify1(r),this.imod(r.ushln(s))},k.prototype.imul=function(r,s){return this._verify2(r,s),this.imod(r.imul(s))},k.prototype.mul=function(r,s){return this._verify2(r,s),this.imod(r.mul(s))},k.prototype.isqr=function(r){return this.imul(r,r.clone())},k.prototype.sqr=function(r){return this.mul(r,r)},k.prototype.sqrt=function(r){if(r.isZero())return r.clone();var s=this.m.andln(3);if(a(s%2===1),s===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(r,l)}for(var d=this.m.subn(1),M=0;!d.isZero()&&d.andln(1)===0;)M++,d.iushrn(1);a(!d.isZero());var b=new i(1).toRed(this),N=b.redNeg(),m=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,m).cmp(N)!==0;)o.redIAdd(N);for(var x=this.pow(o,d),W=this.pow(r,d.addn(1).iushrn(1)),Z=this.pow(r,d),G=M;Z.cmp(b)!==0;){for(var ee=Z,V=0;ee.cmp(b)!==0;V++)ee=ee.redSqr();a(V<G);var P=this.pow(x,new i(1).iushln(G-V-1));W=W.redMul(P),x=P.redSqr(),Z=Z.redMul(x),G=V}return W},k.prototype.invm=function(r){var s=r._invmp(this.m);return s.negative!==0?(s.negative=0,this.imod(s).redNeg()):this.imod(s)},k.prototype.pow=function(r,s){if(s.isZero())return new i(1).toRed(this);if(s.cmpn(1)===0)return r.clone();var l=4,d=new Array(1<<l);d[0]=new i(1).toRed(this),d[1]=r;for(var M=2;M<d.length;M++)d[M]=this.mul(d[M-1],r);var b=d[0],N=0,m=0,o=s.bitLength()%26;for(o===0&&(o=26),M=s.length-1;M>=0;M--){for(var x=s.words[M],W=o-1;W>=0;W--){var Z=x>>W&1;if(b!==d[0]&&(b=this.sqr(b)),Z===0&&N===0){m=0;continue}N<<=1,N|=Z,m++,!(m!==l&&(M!==0||W!==0))&&(b=this.mul(b,d[N]),m=0,N=0)}o=26}return b},k.prototype.convertTo=function(r){var s=r.umod(this.m);return s===r?s.clone():s},k.prototype.convertFrom=function(r){var s=r.clone();return s.red=null,s},i.mont=function(r){return new z(r)};function z(y){k.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(z,k),z.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},z.prototype.convertFrom=function(r){var s=this.imod(r.mul(this.rinv));return s.red=null,s},z.prototype.imul=function(r,s){if(r.isZero()||s.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.mul=function(r,s){if(r.isZero()||s.isZero())return new i(0)._forceRed(this);var l=r.mul(s),d=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=l.isub(d).iushrn(this.shift),b=M;return M.cmp(this.m)>=0?b=M.isub(this.m):M.cmpn(0)<0&&(b=M.iadd(this.m)),b._forceRed(this)},z.prototype.invm=function(r){var s=this.imod(r._invmp(this.m).mul(this.r2));return s._forceRed(this)}})(e,_.commonjsGlobal)}(Vs)),Vs.exports}var Yf,o3;function tg(){if(o3)return Yf;o3=1;var e=zd(),t=_.safeBufferExports.Buffer;function n(a,c){return t.from(a.toRed(e.mont(c.modulus)).redPow(new e(c.publicExponent)).fromRed().toArray())}return Yf=n,Yf}var Wf,a3;function Ab(){if(a3)return Wf;a3=1;var e=Q0(),t=_o(),n=Ha(),a=K6(),c=eg(),i=zd(),u=tg(),f=Sd(),p=_.safeBufferExports.Buffer;Wf=function(j,I,T){var S;j.padding?S=j.padding:T?S=1:S=4;var L=e(j),E;if(S===4)E=h(L,I);else if(S===1)E=g(L,I,T);else if(S===3){if(E=new i(I),E.cmp(L.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return T?f(E,L):u(E,L)};function h(w,j){var I=w.modulus.byteLength(),T=j.length,S=n("sha1").update(p.alloc(0)).digest(),L=S.length,E=2*L;if(T>I-E-2)throw new Error("message too long");var D=p.alloc(I-T-E-2),O=I-L-1,F=t(L),R=c(p.concat([S,D,p.alloc(1,1),j],O),a(F,O)),Q=c(F,a(R,L));return new i(p.concat([p.alloc(1),Q,R],I))}function g(w,j,I){var T=j.length,S=w.modulus.byteLength();if(T>S-11)throw new Error("message too long");var L;return I?L=p.alloc(S-T-3,255):L=C(S-T-3),new i(p.concat([p.from([0,I?1:2]),L,p.alloc(1),j],S))}function C(w){for(var j=p.allocUnsafe(w),I=0,T=t(w*2),S=0,L;I<w;)S===T.length&&(T=t(w*2),S=0),L=T[S++],L&&(j[I++]=L);return j}return Wf}var Hf,s3;function Ib(){if(s3)return Hf;s3=1;var e=Q0(),t=K6(),n=eg(),a=zd(),c=Sd(),i=Ha(),u=tg(),f=_.safeBufferExports.Buffer;Hf=function(w,j,I){var T;w.padding?T=w.padding:I?T=1:T=4;var S=e(w),L=S.modulus.byteLength();if(j.length>L||new a(j).cmp(S.modulus)>=0)throw new Error("decryption error");var E;I?E=u(new a(j),S):E=c(j,S);var D=f.alloc(L-E.length);if(E=f.concat([D,E],L),T===4)return p(S,E);if(T===1)return h(S,E,I);if(T===3)return E;throw new Error("unknown padding")};function p(C,w){var j=C.modulus.byteLength(),I=i("sha1").update(f.alloc(0)).digest(),T=I.length;if(w[0]!==0)throw new Error("decryption error");var S=w.slice(1,T+1),L=w.slice(T+1),E=n(S,t(L,T)),D=n(L,t(E,j-T-1));if(g(I,D.slice(0,T)))throw new Error("decryption error");for(var O=T;D[O]===0;)O++;if(D[O++]!==1)throw new Error("decryption error");return D.slice(O)}function h(C,w,j){for(var I=w.slice(0,2),T=2,S=0;w[T++]!==0;)if(T>=w.length){S++;break}var L=w.slice(2,T-1);if((I.toString("hex")!=="0002"&&!j||I.toString("hex")!=="0001"&&j)&&S++,L.length<8&&S++,S)throw new Error("decryption error");return w.slice(T)}function g(C,w){C=f.from(C),w=f.from(w);var j=0,I=C.length;C.length!==w.length&&(j++,I=Math.min(C.length,w.length));for(var T=-1;++T<I;)j+=C[T]^w[T];return j}return Hf}var c3;function Eb(){return c3||(c3=1,function(e){e.publicEncrypt=Ab(),e.privateDecrypt=Ib(),e.privateEncrypt=function(n,a){return e.publicEncrypt(n,a,!0)},e.publicDecrypt=function(n,a){return e.privateDecrypt(n,a,!0)}}(Rf)),Rf}var po={},l3;function Lb(){if(l3)return po;l3=1;function e(){throw new Error(`secure random number generation not supported by this browser
78
- use chrome, FireFox or Internet Explorer 11`)}var t=_.safeBufferExports,n=_o(),a=t.Buffer,c=t.kMaxLength,i=_.commonjsGlobal.crypto||_.commonjsGlobal.msCrypto,u=Math.pow(2,32)-1;function f(w,j){if(typeof w!="number"||w!==w)throw new TypeError("offset must be a number");if(w>u||w<0)throw new TypeError("offset must be a uint32");if(w>c||w>j)throw new RangeError("offset out of range")}function p(w,j,I){if(typeof w!="number"||w!==w)throw new TypeError("size must be a number");if(w>u||w<0)throw new TypeError("size must be a uint32");if(w+j>I||w>c)throw new RangeError("buffer too small")}i&&i.getRandomValues||!_.dist.process.browser?(po.randomFill=h,po.randomFillSync=C):(po.randomFill=e,po.randomFillSync=e);function h(w,j,I,T){if(!a.isBuffer(w)&&!(w instanceof _.commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof j=="function")T=j,j=0,I=w.length;else if(typeof I=="function")T=I,I=w.length-j;else if(typeof T!="function")throw new TypeError('"cb" argument must be a function');return f(j,w.length),p(I,j,w.length),g(w,j,I,T)}function g(w,j,I,T){if(_.dist.process.browser){var S=w.buffer,L=new Uint8Array(S,j,I);if(i.getRandomValues(L),T){_.dist.process.nextTick(function(){T(null,w)});return}return w}if(T){n(I,function(D,O){if(D)return T(D);O.copy(w,j),T(null,w)});return}var E=n(I);return E.copy(w,j),w}function C(w,j,I){if(typeof j>"u"&&(j=0),!a.isBuffer(w)&&!(w instanceof _.commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(j,w.length),I===void 0&&(I=w.length-j),p(I,j,w.length),g(w,j,I)}return po}var f3;function kd(){if(f3)return Rt;f3=1,Rt.randomBytes=Rt.rng=Rt.pseudoRandomBytes=Rt.prng=_o(),Rt.createHash=Rt.Hash=Ha(),Rt.createHmac=Rt.Hmac=w6();var e=sx(),t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Rt.getHashes=function(){return n};var a=E6();Rt.pbkdf2=a.pbkdf2,Rt.pbkdf2Sync=a.pbkdf2Sync;var c=Tx();Rt.Cipher=c.Cipher,Rt.createCipher=c.createCipher,Rt.Cipheriv=c.Cipheriv,Rt.createCipheriv=c.createCipheriv,Rt.Decipher=c.Decipher,Rt.createDecipher=c.createDecipher,Rt.Decipheriv=c.Decipheriv,Rt.createDecipheriv=c.createDecipheriv,Rt.getCiphers=c.getCiphers,Rt.listCiphers=c.listCiphers;var i=Fx();Rt.DiffieHellmanGroup=i.DiffieHellmanGroup,Rt.createDiffieHellmanGroup=i.createDiffieHellmanGroup,Rt.getDiffieHellman=i.getDiffieHellman,Rt.createDiffieHellman=i.createDiffieHellman,Rt.DiffieHellman=i.DiffieHellman;var u=Nb();Rt.createSign=u.createSign,Rt.Sign=u.Sign,Rt.createVerify=u.createVerify,Rt.Verify=u.Verify,Rt.createECDH=Tb();var f=Eb();Rt.publicEncrypt=f.publicEncrypt,Rt.privateEncrypt=f.privateEncrypt,Rt.publicDecrypt=f.publicDecrypt,Rt.privateDecrypt=f.privateDecrypt;var p=Lb();return Rt.randomFill=p.randomFill,Rt.randomFillSync=p.randomFillSync,Rt.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
79
- we accept pull requests
80
- https://github.com/browserify/crypto-browserify`)},Rt.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Rt}(function(e){(function(t){var n=function(q){var K,J=new Float64Array(16);if(q)for(K=0;K<q.length;K++)J[K]=q[K];return J},a=function(){throw new Error("no PRNG")},c=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var u=n(),f=n([1]),p=n([56129,1]),h=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),g=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),C=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),w=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),j=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function I(q,K,J,U){q[K]=J>>24&255,q[K+1]=J>>16&255,q[K+2]=J>>8&255,q[K+3]=J&255,q[K+4]=U>>24&255,q[K+5]=U>>16&255,q[K+6]=U>>8&255,q[K+7]=U&255}function T(q,K,J,U,re){var se,we=0;for(se=0;se<re;se++)we|=q[K+se]^J[U+se];return(1&we-1>>>8)-1}function S(q,K,J,U){return T(q,K,J,U,16)}function L(q,K,J,U){return T(q,K,J,U,32)}function E(q,K,J,U){for(var re=U[0]&255|(U[1]&255)<<8|(U[2]&255)<<16|(U[3]&255)<<24,se=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,we=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,ce=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,pe=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,ot=U[4]&255|(U[5]&255)<<8|(U[6]&255)<<16|(U[7]&255)<<24,qe=K[0]&255|(K[1]&255)<<8|(K[2]&255)<<16|(K[3]&255)<<24,Ct=K[4]&255|(K[5]&255)<<8|(K[6]&255)<<16|(K[7]&255)<<24,et=K[8]&255|(K[9]&255)<<8|(K[10]&255)<<16|(K[11]&255)<<24,lt=K[12]&255|(K[13]&255)<<8|(K[14]&255)<<16|(K[15]&255)<<24,ft=U[8]&255|(U[9]&255)<<8|(U[10]&255)<<16|(U[11]&255)<<24,gt=J[16]&255|(J[17]&255)<<8|(J[18]&255)<<16|(J[19]&255)<<24,pt=J[20]&255|(J[21]&255)<<8|(J[22]&255)<<16|(J[23]&255)<<24,ut=J[24]&255|(J[25]&255)<<8|(J[26]&255)<<16|(J[27]&255)<<24,ht=J[28]&255|(J[29]&255)<<8|(J[30]&255)<<16|(J[31]&255)<<24,dt=U[12]&255|(U[13]&255)<<8|(U[14]&255)<<16|(U[15]&255)<<24,rt=re,at=se,Xe=we,nt=ce,it=pe,Ge=ot,Te=qe,Ie=Ct,Qe=et,He=lt,Ze=ft,Je=gt,Nt=pt,_t=ut,Ft=ht,Bt=dt,fe,Ut=0;Ut<20;Ut+=2)fe=rt+Nt|0,it^=fe<<7|fe>>>25,fe=it+rt|0,Qe^=fe<<9|fe>>>23,fe=Qe+it|0,Nt^=fe<<13|fe>>>19,fe=Nt+Qe|0,rt^=fe<<18|fe>>>14,fe=Ge+at|0,He^=fe<<7|fe>>>25,fe=He+Ge|0,_t^=fe<<9|fe>>>23,fe=_t+He|0,at^=fe<<13|fe>>>19,fe=at+_t|0,Ge^=fe<<18|fe>>>14,fe=Ze+Te|0,Ft^=fe<<7|fe>>>25,fe=Ft+Ze|0,Xe^=fe<<9|fe>>>23,fe=Xe+Ft|0,Te^=fe<<13|fe>>>19,fe=Te+Xe|0,Ze^=fe<<18|fe>>>14,fe=Bt+Je|0,nt^=fe<<7|fe>>>25,fe=nt+Bt|0,Ie^=fe<<9|fe>>>23,fe=Ie+nt|0,Je^=fe<<13|fe>>>19,fe=Je+Ie|0,Bt^=fe<<18|fe>>>14,fe=rt+nt|0,at^=fe<<7|fe>>>25,fe=at+rt|0,Xe^=fe<<9|fe>>>23,fe=Xe+at|0,nt^=fe<<13|fe>>>19,fe=nt+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[33]=Qe>>>8&255,q[34]=Qe>>>16&255,q[35]=Qe>>>24&255,q[36]=He>>>0&255,q[37]=He>>>8&255,q[38]=He>>>16&255,q[39]=He>>>24&255,q[40]=Ze>>>0&255,q[41]=Ze>>>8&255,q[42]=Ze>>>16&255,q[43]=Ze>>>24&255,q[44]=Je>>>0&255,q[45]=Je>>>8&255,q[46]=Je>>>16&255,q[47]=Je>>>24&255,q[48]=Nt>>>0&255,q[49]=Nt>>>8&255,q[50]=Nt>>>16&255,q[51]=Nt>>>24&255,q[52]=_t>>>0&255,q[53]=_t>>>8&255,q[54]=_t>>>16&255,q[55]=_t>>>24&255,q[56]=Ft>>>0&255,q[57]=Ft>>>8&255,q[58]=Ft>>>16&255,q[59]=Ft>>>24&255,q[60]=Bt>>>0&255,q[61]=Bt>>>8&255,q[62]=Bt>>>16&255,q[63]=Bt>>>24&255}function D(q,K,J,U){for(var re=U[0]&255|(U[1]&255)<<8|(U[2]&255)<<16|(U[3]&255)<<24,se=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,we=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,ce=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,pe=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,ot=U[4]&255|(U[5]&255)<<8|(U[6]&255)<<16|(U[7]&255)<<24,qe=K[0]&255|(K[1]&255)<<8|(K[2]&255)<<16|(K[3]&255)<<24,Ct=K[4]&255|(K[5]&255)<<8|(K[6]&255)<<16|(K[7]&255)<<24,et=K[8]&255|(K[9]&255)<<8|(K[10]&255)<<16|(K[11]&255)<<24,lt=K[12]&255|(K[13]&255)<<8|(K[14]&255)<<16|(K[15]&255)<<24,ft=U[8]&255|(U[9]&255)<<8|(U[10]&255)<<16|(U[11]&255)<<24,gt=J[16]&255|(J[17]&255)<<8|(J[18]&255)<<16|(J[19]&255)<<24,pt=J[20]&255|(J[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^=fe<<9|fe>>>23,fe=Qe+Je|0,He^=fe<<13|fe>>>19,fe=He+Qe|0,Ze^=fe<<18|fe>>>14,fe=Bt+Ft|0,Nt^=fe<<7|fe>>>25,fe=Nt+Bt|0,_t^=fe<<9|fe>>>23,fe=_t+Nt|0,Ft^=fe<<13|fe>>>19,fe=Ft+_t|0,Bt^=fe<<18|fe>>>14;q[0]=rt>>>0&255,q[1]=rt>>>8&255,q[2]=rt>>>16&255,q[3]=rt>>>24&255,q[4]=Ge>>>0&255,q[5]=Ge>>>8&255,q[6]=Ge>>>16&255,q[7]=Ge>>>24&255,q[8]=Ze>>>0&255,q[9]=Ze>>>8&255,q[10]=Ze>>>16&255,q[11]=Ze>>>24&255,q[12]=Bt>>>0&255,q[13]=Bt>>>8&255,q[14]=Bt>>>16&255,q[15]=Bt>>>24&255,q[16]=Te>>>0&255,q[17]=Te>>>8&255,q[18]=Te>>>16&255,q[19]=Te>>>24&255,q[20]=Ie>>>0&255,q[21]=Ie>>>8&255,q[22]=Ie>>>16&255,q[23]=Ie>>>24&255,q[24]=Qe>>>0&255,q[25]=Qe>>>8&255,q[26]=Qe>>>16&255,q[27]=Qe>>>24&255,q[28]=He>>>0&255,q[29]=He>>>8&255,q[30]=He>>>16&255,q[31]=He>>>24&255}function O(q,K,J,U){E(q,K,J,U)}function F(q,K,J,U){D(q,K,J,U)}var R=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Q(q,K,J,U,re,se,we){var ce=new Uint8Array(16),pe=new Uint8Array(64),ot,qe;for(qe=0;qe<16;qe++)ce[qe]=0;for(qe=0;qe<8;qe++)ce[qe]=se[qe];for(;re>=64;){for(O(pe,ce,we,R),qe=0;qe<64;qe++)q[K+qe]=J[U+qe]^pe[qe];for(ot=1,qe=8;qe<16;qe++)ot=ot+(ce[qe]&255)|0,ce[qe]=ot&255,ot>>>=8;re-=64,K+=64,U+=64}if(re>0)for(O(pe,ce,we,R),qe=0;qe<re;qe++)q[K+qe]=J[U+qe]^pe[qe];return 0}function B(q,K,J,U,re){var se=new Uint8Array(16),we=new Uint8Array(64),ce,pe;for(pe=0;pe<16;pe++)se[pe]=0;for(pe=0;pe<8;pe++)se[pe]=U[pe];for(;J>=64;){for(O(we,se,re,R),pe=0;pe<64;pe++)q[K+pe]=we[pe];for(ce=1,pe=8;pe<16;pe++)ce=ce+(se[pe]&255)|0,se[pe]=ce&255,ce>>>=8;J-=64,K+=64}if(J>0)for(O(we,se,re,R),pe=0;pe<J;pe++)q[K+pe]=we[pe];return 0}function k(q,K,J,U,re){var se=new Uint8Array(32);F(se,U,re,R);for(var we=new Uint8Array(8),ce=0;ce<8;ce++)we[ce]=U[ce+16];return B(q,K,J,we,se)}function z(q,K,J,U,re,se,we){var ce=new Uint8Array(32);F(ce,se,we,R);for(var pe=new Uint8Array(8),ot=0;ot<8;ot++)pe[ot]=se[ot+16];return Q(q,K,J,U,re,pe,ce)}var y=function(q){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var K,J,U,re,se,we,ce,pe;K=q[0]&255|(q[1]&255)<<8,this.r[0]=K&8191,J=q[2]&255|(q[3]&255)<<8,this.r[1]=(K>>>13|J<<3)&8191,U=q[4]&255|(q[5]&255)<<8,this.r[2]=(J>>>10|U<<6)&7939,re=q[6]&255|(q[7]&255)<<8,this.r[3]=(U>>>7|re<<9)&8191,se=q[8]&255|(q[9]&255)<<8,this.r[4]=(re>>>4|se<<12)&255,this.r[5]=se>>>1&8190,we=q[10]&255|(q[11]&255)<<8,this.r[6]=(se>>>14|we<<2)&8191,ce=q[12]&255|(q[13]&255)<<8,this.r[7]=(we>>>11|ce<<5)&8065,pe=q[14]&255|(q[15]&255)<<8,this.r[8]=(ce>>>8|pe<<8)&8191,this.r[9]=pe>>>5&127,this.pad[0]=q[16]&255|(q[17]&255)<<8,this.pad[1]=q[18]&255|(q[19]&255)<<8,this.pad[2]=q[20]&255|(q[21]&255)<<8,this.pad[3]=q[22]&255|(q[23]&255)<<8,this.pad[4]=q[24]&255|(q[25]&255)<<8,this.pad[5]=q[26]&255|(q[27]&255)<<8,this.pad[6]=q[28]&255|(q[29]&255)<<8,this.pad[7]=q[30]&255|(q[31]&255)<<8};y.prototype.blocks=function(q,K,J){for(var U=this.fin?0:2048,re,se,we,ce,pe,ot,qe,Ct,et,lt,ft,gt,pt,ut,ht,dt,rt,at,Xe,nt=this.h[0],it=this.h[1],Ge=this.h[2],Te=this.h[3],Ie=this.h[4],Qe=this.h[5],He=this.h[6],Ze=this.h[7],Je=this.h[8],Nt=this.h[9],_t=this.r[0],Ft=this.r[1],Bt=this.r[2],fe=this.r[3],Ut=this.r[4],Gt=this.r[5],$t=this.r[6],Pt=this.r[7],Qt=this.r[8],Vt=this.r[9];J>=16;)re=q[K+0]&255|(q[K+1]&255)<<8,nt+=re&8191,se=q[K+2]&255|(q[K+3]&255)<<8,it+=(re>>>13|se<<3)&8191,we=q[K+4]&255|(q[K+5]&255)<<8,Ge+=(se>>>10|we<<6)&8191,ce=q[K+6]&255|(q[K+7]&255)<<8,Te+=(we>>>7|ce<<9)&8191,pe=q[K+8]&255|(q[K+9]&255)<<8,Ie+=(ce>>>4|pe<<12)&8191,Qe+=pe>>>1&8191,ot=q[K+10]&255|(q[K+11]&255)<<8,He+=(pe>>>14|ot<<2)&8191,qe=q[K+12]&255|(q[K+13]&255)<<8,Ze+=(ot>>>11|qe<<5)&8191,Ct=q[K+14]&255|(q[K+15]&255)<<8,Je+=(qe>>>8|Ct<<8)&8191,Nt+=Ct>>>5|U,et=0,lt=et,lt+=nt*_t,lt+=it*(5*Vt),lt+=Ge*(5*Qt),lt+=Te*(5*Pt),lt+=Ie*(5*$t),et=lt>>>13,lt&=8191,lt+=Qe*(5*Gt),lt+=He*(5*Ut),lt+=Ze*(5*fe),lt+=Je*(5*Bt),lt+=Nt*(5*Ft),et+=lt>>>13,lt&=8191,ft=et,ft+=nt*Ft,ft+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fe,et=rt>>>13,rt&=8191,rt+=Qe*Bt,rt+=He*Ft,rt+=Ze*_t,rt+=Je*(5*Vt),rt+=Nt*(5*Qt),et+=rt>>>13,rt&=8191,at=et,at+=nt*Qt,at+=it*Pt,at+=Ge*$t,at+=Te*Gt,at+=Ie*Ut,et=at>>>13,at&=8191,at+=Qe*fe,at+=He*Bt,at+=Ze*Ft,at+=Je*_t,at+=Nt*(5*Vt),et+=at>>>13,at&=8191,Xe=et,Xe+=nt*Vt,Xe+=it*Qt,Xe+=Ge*Pt,Xe+=Te*$t,Xe+=Ie*Gt,et=Xe>>>13,Xe&=8191,Xe+=Qe*Ut,Xe+=He*fe,Xe+=Ze*Bt,Xe+=Je*Ft,Xe+=Nt*_t,et+=Xe>>>13,Xe&=8191,et=(et<<2)+et|0,et=et+lt|0,lt=et&8191,et=et>>>13,ft+=et,nt=lt,it=ft,Ge=gt,Te=pt,Ie=ut,Qe=ht,He=dt,Ze=rt,Je=at,Nt=Xe,K+=16,J-=16;this.h[0]=nt,this.h[1]=it,this.h[2]=Ge,this.h[3]=Te,this.h[4]=Ie,this.h[5]=Qe,this.h[6]=He,this.h[7]=Ze,this.h[8]=Je,this.h[9]=Nt},y.prototype.finish=function(q,K){var J=new Uint16Array(10),U,re,se,we;if(this.leftover){for(we=this.leftover,this.buffer[we++]=1;we<16;we++)this.buffer[we]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(U=this.h[1]>>>13,this.h[1]&=8191,we=2;we<10;we++)this.h[we]+=U,U=this.h[we]>>>13,this.h[we]&=8191;for(this.h[0]+=U*5,U=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=U,U=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=U,J[0]=this.h[0]+5,U=J[0]>>>13,J[0]&=8191,we=1;we<10;we++)J[we]=this.h[we]+U,U=J[we]>>>13,J[we]&=8191;for(J[9]-=8192,re=(U^1)-1,we=0;we<10;we++)J[we]&=re;for(re=~re,we=0;we<10;we++)this.h[we]=this.h[we]&re|J[we];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,se=this.h[0]+this.pad[0],this.h[0]=se&65535,we=1;we<8;we++)se=(this.h[we]+this.pad[we]|0)+(se>>>16)|0,this.h[we]=se&65535;q[K+0]=this.h[0]>>>0&255,q[K+1]=this.h[0]>>>8&255,q[K+2]=this.h[1]>>>0&255,q[K+3]=this.h[1]>>>8&255,q[K+4]=this.h[2]>>>0&255,q[K+5]=this.h[2]>>>8&255,q[K+6]=this.h[3]>>>0&255,q[K+7]=this.h[3]>>>8&255,q[K+8]=this.h[4]>>>0&255,q[K+9]=this.h[4]>>>8&255,q[K+10]=this.h[5]>>>0&255,q[K+11]=this.h[5]>>>8&255,q[K+12]=this.h[6]>>>0&255,q[K+13]=this.h[6]>>>8&255,q[K+14]=this.h[7]>>>0&255,q[K+15]=this.h[7]>>>8&255},y.prototype.update=function(q,K,J){var U,re;if(this.leftover){for(re=16-this.leftover,re>J&&(re=J),U=0;U<re;U++)this.buffer[this.leftover+U]=q[K+U];if(J-=re,K+=re,this.leftover+=re,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(J>=16&&(re=J-J%16,this.blocks(q,K,re),K+=re,J-=re),J){for(U=0;U<J;U++)this.buffer[this.leftover+U]=q[K+U];this.leftover+=J}};function r(q,K,J,U,re,se){var we=new y(se);return we.update(J,U,re),we.finish(q,K),0}function s(q,K,J,U,re,se){var we=new Uint8Array(16);return r(we,0,J,U,re,se),S(q,K,we,0)}function l(q,K,J,U,re){var se;if(J<32)return-1;for(z(q,0,K,0,J,U,re),r(q,16,q,32,J-32,q),se=0;se<16;se++)q[se]=0;return 0}function d(q,K,J,U,re){var se,we=new Uint8Array(32);if(J<32||(k(we,0,32,U,re),s(K,16,K,32,J-32,we)!==0))return-1;for(z(q,0,K,0,J,U,re),se=0;se<32;se++)q[se]=0;return 0}function M(q,K){var J;for(J=0;J<16;J++)q[J]=K[J]|0}function b(q){var K,J,U=1;for(K=0;K<16;K++)J=q[K]+U+65535,U=Math.floor(J/65536),q[K]=J-U*65536;q[0]+=U-1+37*(U-1)}function N(q,K,J){for(var U,re=~(J-1),se=0;se<16;se++)U=re&(q[se]^K[se]),q[se]^=U,K[se]^=U}function m(q,K){var J,U,re,se=n(),we=n();for(J=0;J<16;J++)we[J]=K[J];for(b(we),b(we),b(we),U=0;U<2;U++){for(se[0]=we[0]-65517,J=1;J<15;J++)se[J]=we[J]-65535-(se[J-1]>>16&1),se[J-1]&=65535;se[15]=we[15]-32767-(se[14]>>16&1),re=se[15]>>16&1,se[14]&=65535,N(we,se,1-re)}for(J=0;J<16;J++)q[2*J]=we[J]&255,q[2*J+1]=we[J]>>8}function o(q,K){var J=new Uint8Array(32),U=new Uint8Array(32);return m(J,q),m(U,K),L(J,0,U,0)}function x(q){var K=new Uint8Array(32);return m(K,q),K[0]&1}function W(q,K){var J;for(J=0;J<16;J++)q[J]=K[2*J]+(K[2*J+1]<<8);q[15]&=32767}function Z(q,K,J){for(var U=0;U<16;U++)q[U]=K[U]+J[U]}function G(q,K,J){for(var U=0;U<16;U++)q[U]=K[U]-J[U]}function ee(q,K,J){var U,re,se=0,we=0,ce=0,pe=0,ot=0,qe=0,Ct=0,et=0,lt=0,ft=0,gt=0,pt=0,ut=0,ht=0,dt=0,rt=0,at=0,Xe=0,nt=0,it=0,Ge=0,Te=0,Ie=0,Qe=0,He=0,Ze=0,Je=0,Nt=0,_t=0,Ft=0,Bt=0,fe=J[0],Ut=J[1],Gt=J[2],$t=J[3],Pt=J[4],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+=U*Qt,nt+=U*Vt,it+=U*wr,Ge+=U*tr,Te+=U*hr,Ie+=U*pr,Qe+=U*gr,He+=U*Ar,Ze+=U*Fr,Je+=U*Rr,Nt+=U*Pr,U=K[13],ht+=U*fe,dt+=U*Ut,rt+=U*Gt,at+=U*$t,Xe+=U*Pt,nt+=U*Qt,it+=U*Vt,Ge+=U*wr,Te+=U*tr,Ie+=U*hr,Qe+=U*pr,He+=U*gr,Ze+=U*Ar,Je+=U*Fr,Nt+=U*Rr,_t+=U*Pr,U=K[14],dt+=U*fe,rt+=U*Ut,at+=U*Gt,Xe+=U*$t,nt+=U*Pt,it+=U*Qt,Ge+=U*Vt,Te+=U*wr,Ie+=U*tr,Qe+=U*hr,He+=U*pr,Ze+=U*gr,Je+=U*Ar,Nt+=U*Fr,_t+=U*Rr,Ft+=U*Pr,U=K[15],rt+=U*fe,at+=U*Ut,Xe+=U*Gt,nt+=U*$t,it+=U*Pt,Ge+=U*Qt,Te+=U*Vt,Ie+=U*wr,Qe+=U*tr,He+=U*hr,Ze+=U*pr,Je+=U*gr,Nt+=U*Ar,_t+=U*Fr,Ft+=U*Rr,Bt+=U*Pr,se+=38*at,we+=38*Xe,ce+=38*nt,pe+=38*it,ot+=38*Ge,qe+=38*Te,Ct+=38*Ie,et+=38*Qe,lt+=38*He,ft+=38*Ze,gt+=38*Je,pt+=38*Nt,ut+=38*_t,ht+=38*Ft,dt+=38*Bt,re=1,U=se+re+65535,re=Math.floor(U/65536),se=U-re*65536,U=we+re+65535,re=Math.floor(U/65536),we=U-re*65536,U=ce+re+65535,re=Math.floor(U/65536),ce=U-re*65536,U=pe+re+65535,re=Math.floor(U/65536),pe=U-re*65536,U=ot+re+65535,re=Math.floor(U/65536),ot=U-re*65536,U=qe+re+65535,re=Math.floor(U/65536),qe=U-re*65536,U=Ct+re+65535,re=Math.floor(U/65536),Ct=U-re*65536,U=et+re+65535,re=Math.floor(U/65536),et=U-re*65536,U=lt+re+65535,re=Math.floor(U/65536),lt=U-re*65536,U=ft+re+65535,re=Math.floor(U/65536),ft=U-re*65536,U=gt+re+65535,re=Math.floor(U/65536),gt=U-re*65536,U=pt+re+65535,re=Math.floor(U/65536),pt=U-re*65536,U=ut+re+65535,re=Math.floor(U/65536),ut=U-re*65536,U=ht+re+65535,re=Math.floor(U/65536),ht=U-re*65536,U=dt+re+65535,re=Math.floor(U/65536),dt=U-re*65536,U=rt+re+65535,re=Math.floor(U/65536),rt=U-re*65536,se+=re-1+37*(re-1),re=1,U=se+re+65535,re=Math.floor(U/65536),se=U-re*65536,U=we+re+65535,re=Math.floor(U/65536),we=U-re*65536,U=ce+re+65535,re=Math.floor(U/65536),ce=U-re*65536,U=pe+re+65535,re=Math.floor(U/65536),pe=U-re*65536,U=ot+re+65535,re=Math.floor(U/65536),ot=U-re*65536,U=qe+re+65535,re=Math.floor(U/65536),qe=U-re*65536,U=Ct+re+65535,re=Math.floor(U/65536),Ct=U-re*65536,U=et+re+65535,re=Math.floor(U/65536),et=U-re*65536,U=lt+re+65535,re=Math.floor(U/65536),lt=U-re*65536,U=ft+re+65535,re=Math.floor(U/65536),ft=U-re*65536,U=gt+re+65535,re=Math.floor(U/65536),gt=U-re*65536,U=pt+re+65535,re=Math.floor(U/65536),pt=U-re*65536,U=ut+re+65535,re=Math.floor(U/65536),ut=U-re*65536,U=ht+re+65535,re=Math.floor(U/65536),ht=U-re*65536,U=dt+re+65535,re=Math.floor(U/65536),dt=U-re*65536,U=rt+re+65535,re=Math.floor(U/65536),rt=U-re*65536,se+=re-1+37*(re-1),q[0]=se,q[1]=we,q[2]=ce,q[3]=pe,q[4]=ot,q[5]=qe,q[6]=Ct,q[7]=et,q[8]=lt,q[9]=ft,q[10]=gt,q[11]=pt,q[12]=ut,q[13]=ht,q[14]=dt,q[15]=rt}function V(q,K){ee(q,K,K)}function P(q,K){var J=n(),U;for(U=0;U<16;U++)J[U]=K[U];for(U=253;U>=0;U--)V(J,J),U!==2&&U!==4&&ee(J,J,K);for(U=0;U<16;U++)q[U]=J[U]}function H(q,K){var J=n(),U;for(U=0;U<16;U++)J[U]=K[U];for(U=250;U>=0;U--)V(J,J),U!==1&&ee(J,J,K);for(U=0;U<16;U++)q[U]=J[U]}function $(q,K,J){var U=new Uint8Array(32),re=new Float64Array(80),se,we,ce=n(),pe=n(),ot=n(),qe=n(),Ct=n(),et=n();for(we=0;we<31;we++)U[we]=K[we];for(U[31]=K[31]&127|64,U[0]&=248,W(re,J),we=0;we<16;we++)pe[we]=re[we],qe[we]=ce[we]=ot[we]=0;for(ce[0]=qe[0]=1,we=254;we>=0;--we)se=U[we>>>3]>>>(we&7)&1,N(ce,pe,se),N(ot,qe,se),Z(Ct,ce,ot),G(ce,ce,ot),Z(ot,pe,qe),G(pe,pe,qe),V(qe,Ct),V(et,ce),ee(ce,ot,ce),ee(ot,pe,Ct),Z(Ct,ce,ot),G(ce,ce,ot),V(pe,ce),G(ot,qe,et),ee(ce,ot,p),Z(ce,ce,qe),ee(ot,ot,ce),ee(ce,qe,et),ee(qe,pe,re),V(pe,Ct),N(ce,pe,se),N(ot,qe,se);for(we=0;we<16;we++)re[we+16]=ce[we],re[we+32]=ot[we],re[we+48]=pe[we],re[we+64]=qe[we];var lt=re.subarray(32),ft=re.subarray(16);return P(lt,lt),ee(ft,ft,lt),m(q,ft),0}function X(q,K){return $(q,K,i)}function te(q,K){return a(K,32),X(q,K)}function Y(q,K,J){var U=new Uint8Array(32);return $(U,J,K),F(q,c,U,R)}var ne=l,xe=d;function le(q,K,J,U,re,se){var we=new Uint8Array(32);return Y(we,re,se),ne(q,K,J,U,we)}function ue(q,K,J,U,re,se){var we=new Uint8Array(32);return Y(we,re,se),xe(q,K,J,U,we)}var Ve=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function he(q,K,J,U){for(var re=new Int32Array(16),se=new Int32Array(16),we,ce,pe,ot,qe,Ct,et,lt,ft,gt,pt,ut,ht,dt,rt,at,Xe,nt,it,Ge,Te,Ie,Qe,He,Ze,Je,Nt=q[0],_t=q[1],Ft=q[2],Bt=q[3],fe=q[4],Ut=q[5],Gt=q[6],$t=q[7],Pt=K[0],Qt=K[1],Vt=K[2],wr=K[3],tr=K[4],hr=K[5],pr=K[6],gr=K[7],Ar=0;U>=128;){for(it=0;it<16;it++)Ge=8*it+Ar,re[it]=J[Ge+0]<<24|J[Ge+1]<<16|J[Ge+2]<<8|J[Ge+3],se[it]=J[Ge+4]<<24|J[Ge+5]<<16|J[Ge+6]<<8|J[Ge+7];for(it=0;it<80;it++)if(we=Nt,ce=_t,pe=Ft,ot=Bt,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6]=Gt=Ze&65535|Je<<16,K[6]=pr=Qe&65535|He<<16,Te=$t,Ie=gr,Qe=Ie&65535,He=Ie>>>16,Ze=Te&65535,Je=Te>>>16,Te=q[7],Ie=K[7],Qe+=Ie&65535,He+=Ie>>>16,Ze+=Te&65535,Je+=Te>>>16,He+=Qe>>>16,Ze+=He>>>16,Je+=Ze>>>16,q[7]=$t=Ze&65535|Je<<16,K[7]=gr=Qe&65535|He<<16,Ar+=128,U-=128}return U}function be(q,K,J){var U=new Int32Array(8),re=new Int32Array(8),se=new Uint8Array(256),we,ce=J;for(U[0]=1779033703,U[1]=3144134277,U[2]=1013904242,U[3]=2773480762,U[4]=1359893119,U[5]=2600822924,U[6]=528734635,U[7]=1541459225,re[0]=4089235720,re[1]=2227873595,re[2]=4271175723,re[3]=1595750129,re[4]=2917565137,re[5]=725511199,re[6]=4215389547,re[7]=327033209,he(U,re,K,J),J%=128,we=0;we<J;we++)se[we]=K[ce-J+we];for(se[J]=128,J=256-128*(J<112?1:0),se[J-9]=0,I(se,J-8,ce/536870912|0,ce<<3),he(U,re,se,J),we=0;we<8;we++)I(q,8*we,U[we],re[we]);return 0}function st(q,K){var J=n(),U=n(),re=n(),se=n(),we=n(),ce=n(),pe=n(),ot=n(),qe=n();G(J,q[1],q[0]),G(qe,K[1],K[0]),ee(J,J,qe),Z(U,q[0],q[1]),Z(qe,K[0],K[1]),ee(U,U,qe),ee(re,q[3],K[3]),ee(re,re,g),ee(se,q[2],K[2]),Z(se,se,se),G(we,U,J),G(ce,se,re),Z(pe,se,re),Z(ot,U,J),ee(q[0],we,ce),ee(q[1],ot,pe),ee(q[2],pe,ce),ee(q[3],we,ot)}function Me(q,K,J){var U;for(U=0;U<4;U++)N(q[U],K[U],J)}function oe(q,K){var J=n(),U=n(),re=n();P(re,K[2]),ee(J,K[0],re),ee(U,K[1],re),m(q,U),q[31]^=x(J)<<7}function We(q,K,J){var U,re;for(M(q[0],u),M(q[1],f),M(q[2],f),M(q[3],u),re=255;re>=0;--re)U=J[re/8|0]>>(re&7)&1,Me(q,K,U),st(K,q),st(q,q),Me(q,K,U)}function de(q,K){var J=[n(),n(),n(),n()];M(J[0],C),M(J[1],w),M(J[2],f),ee(J[3],C,w),We(q,J,K)}function ye(q,K,J){var U=new Uint8Array(64),re=[n(),n(),n(),n()],se;for(J||a(K,32),be(U,K,32),U[0]&=248,U[31]&=127,U[31]|=64,de(re,U),oe(q,re),se=0;se<32;se++)K[se+32]=q[se];return 0}var mt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function je(q,K){var J,U,re,se;for(U=63;U>=32;--U){for(J=0,re=U-32,se=U-12;re<se;++re)K[re]+=J-16*K[U]*mt[re-(U-32)],J=Math.floor((K[re]+128)/256),K[re]-=J*256;K[re]+=J,K[U]=0}for(J=0,re=0;re<32;re++)K[re]+=J-(K[31]>>4)*mt[re],J=K[re]>>8,K[re]&=255;for(re=0;re<32;re++)K[re]-=J*mt[re];for(U=0;U<32;U++)K[U+1]+=K[U]>>8,q[U]=K[U]&255}function Ae(q){var K=new Float64Array(64),J;for(J=0;J<64;J++)K[J]=q[J];for(J=0;J<64;J++)q[J]=0;je(q,K)}function Tt(q,K,J,U){var re=new Uint8Array(64),se=new Uint8Array(64),we=new Uint8Array(64),ce,pe,ot=new Float64Array(64),qe=[n(),n(),n(),n()];be(re,U,32),re[0]&=248,re[31]&=127,re[31]|=64;var Ct=J+64;for(ce=0;ce<J;ce++)q[64+ce]=K[ce];for(ce=0;ce<32;ce++)q[32+ce]=re[32+ce];for(be(we,q.subarray(32),J+32),Ae(we),de(qe,we),oe(q,qe),ce=32;ce<64;ce++)q[ce]=U[ce];for(be(se,q,J+64),Ae(se),ce=0;ce<64;ce++)ot[ce]=0;for(ce=0;ce<32;ce++)ot[ce]=we[ce];for(ce=0;ce<32;ce++)for(pe=0;pe<32;pe++)ot[ce+pe]+=se[ce]*re[pe];return je(q.subarray(32),ot),Ct}function De(q,K){var J=n(),U=n(),re=n(),se=n(),we=n(),ce=n(),pe=n();return M(q[2],f),W(q[1],K),V(re,q[1]),ee(se,re,h),G(re,re,q[2]),Z(se,q[2],se),V(we,se),V(ce,we),ee(pe,ce,we),ee(J,pe,re),ee(J,J,se),H(J,J),ee(J,J,re),ee(J,J,se),ee(J,J,se),ee(q[0],J,se),V(U,q[0]),ee(U,U,se),o(U,re)&&ee(q[0],q[0],j),V(U,q[0]),ee(U,U,se),o(U,re)?-1:(x(q[0])===K[31]>>7&&G(q[0],u,q[0]),ee(q[3],q[0],q[1]),0)}function ve(q,K,J,U){var re,se=new Uint8Array(32),we=new Uint8Array(64),ce=[n(),n(),n(),n()],pe=[n(),n(),n(),n()];if(J<64||De(pe,U))return-1;for(re=0;re<J;re++)q[re]=K[re];for(re=0;re<32;re++)q[re+32]=U[re];if(be(we,q,J),Ae(we),We(ce,pe,we),de(pe,K.subarray(32)),st(ce,pe),oe(se,ce),J-=64,L(K,0,se,0)){for(re=0;re<J;re++)q[re]=0;return-1}for(re=0;re<J;re++)q[re]=K[re+64];return J}var jt=32,Ee=24,Le=32,Ot=16,me=32,Ce=32,xt=32,Se=32,Oe=32,Wt=Ee,ze=Le,ke=Ot,er=64,Fe=32,Re=64,Mt=32,_e=64;t.lowlevel={crypto_core_hsalsa20:F,crypto_stream_xor:z,crypto_stream:k,crypto_stream_salsa20_xor:Q,crypto_stream_salsa20:B,crypto_onetimeauth:r,crypto_onetimeauth_verify:s,crypto_verify_16:S,crypto_verify_32:L,crypto_secretbox:l,crypto_secretbox_open:d,crypto_scalarmult:$,crypto_scalarmult_base:X,crypto_box_beforenm:Y,crypto_box_afternm:ne,crypto_box:le,crypto_box_open:ue,crypto_box_keypair:te,crypto_hash:be,crypto_sign:Tt,crypto_sign_keypair:ye,crypto_sign_open:ve,crypto_secretbox_KEYBYTES:jt,crypto_secretbox_NONCEBYTES:Ee,crypto_secretbox_ZEROBYTES:Le,crypto_secretbox_BOXZEROBYTES:Ot,crypto_scalarmult_BYTES:me,crypto_scalarmult_SCALARBYTES:Ce,crypto_box_PUBLICKEYBYTES:xt,crypto_box_SECRETKEYBYTES:Se,crypto_box_BEFORENMBYTES:Oe,crypto_box_NONCEBYTES:Wt,crypto_box_ZEROBYTES:ze,crypto_box_BOXZEROBYTES:ke,crypto_sign_BYTES:er,crypto_sign_PUBLICKEYBYTES:Fe,crypto_sign_SECRETKEYBYTES:Re,crypto_sign_SEEDBYTES:Mt,crypto_hash_BYTES:_e,gf:n,D:h,L:mt,pack25519:m,unpack25519:W,M:ee,A:Z,S:V,Z:G,pow2523:H,add:st,set25519:M,modL:je,scalarmult:We,scalarbase:de};function Pe(q,K){if(q.length!==jt)throw new Error("bad key size");if(K.length!==Ee)throw new Error("bad nonce size")}function Tr(q,K){if(q.length!==xt)throw new Error("bad public key size");if(K.length!==Se)throw new Error("bad secret key size")}function Be(){for(var q=0;q<arguments.length;q++)if(!(arguments[q]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ue(q){for(var K=0;K<q.length;K++)q[K]=0}t.randomBytes=function(q){var K=new Uint8Array(q);return a(K,q),K},t.secretbox=function(q,K,J){Be(q,K,J),Pe(J,K);for(var U=new Uint8Array(Le+q.length),re=new Uint8Array(U.length),se=0;se<q.length;se++)U[se+Le]=q[se];return l(re,U,U.length,K,J),re.subarray(Ot)},t.secretbox.open=function(q,K,J){Be(q,K,J),Pe(J,K);for(var U=new Uint8Array(Ot+q.length),re=new Uint8Array(U.length),se=0;se<q.length;se++)U[se+Ot]=q[se];return U.length<32||d(re,U,U.length,K,J)!==0?null:re.subarray(Le)},t.secretbox.keyLength=jt,t.secretbox.nonceLength=Ee,t.secretbox.overheadLength=Ot,t.scalarMult=function(q,K){if(Be(q,K),q.length!==Ce)throw new Error("bad n size");if(K.length!==me)throw new Error("bad p size");var J=new Uint8Array(me);return $(J,q,K),J},t.scalarMult.base=function(q){if(Be(q),q.length!==Ce)throw new Error("bad n size");var K=new Uint8Array(me);return X(K,q),K},t.scalarMult.scalarLength=Ce,t.scalarMult.groupElementLength=me,t.box=function(q,K,J,U){var re=t.box.before(J,U);return t.secretbox(q,K,re)},t.box.before=function(q,K){Be(q,K),Tr(q,K);var J=new Uint8Array(Oe);return Y(J,q,K),J},t.box.after=t.secretbox,t.box.open=function(q,K,J,U){var re=t.box.before(J,U);return t.secretbox.open(q,K,re)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var q=new Uint8Array(xt),K=new Uint8Array(Se);return te(q,K),{publicKey:q,secretKey:K}},t.box.keyPair.fromSecretKey=function(q){if(Be(q),q.length!==Se)throw new Error("bad secret key size");var K=new Uint8Array(xt);return X(K,q),{publicKey:K,secretKey:new Uint8Array(q)}},t.box.publicKeyLength=xt,t.box.secretKeyLength=Se,t.box.sharedKeyLength=Oe,t.box.nonceLength=Wt,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(q,K){if(Be(q,K),K.length!==Re)throw new Error("bad secret key size");var J=new Uint8Array(er+q.length);return Tt(J,q,q.length,K),J},t.sign.open=function(q,K){if(Be(q,K),K.length!==Fe)throw new Error("bad public key size");var J=new Uint8Array(q.length),U=ve(J,q,q.length,K);if(U<0)return null;for(var re=new Uint8Array(U),se=0;se<re.length;se++)re[se]=J[se];return re},t.sign.detached=function(q,K){for(var J=t.sign(q,K),U=new Uint8Array(er),re=0;re<U.length;re++)U[re]=J[re];return U},t.sign.detached.verify=function(q,K,J){if(Be(q,K,J),K.length!==er)throw new Error("bad signature size");if(J.length!==Fe)throw new Error("bad public key size");var U=new Uint8Array(er+q.length),re=new Uint8Array(er+q.length),se;for(se=0;se<er;se++)U[se]=K[se];for(se=0;se<q.length;se++)U[se+er]=q[se];return ve(re,U,U.length,J)>=0},t.sign.keyPair=function(){var q=new Uint8Array(Fe),K=new Uint8Array(Re);return ye(q,K),{publicKey:q,secretKey:K}},t.sign.keyPair.fromSecretKey=function(q){if(Be(q),q.length!==Re)throw new Error("bad secret key size");for(var K=new Uint8Array(Fe),J=0;J<K.length;J++)K[J]=q[32+J];return{publicKey:K,secretKey:new Uint8Array(q)}},t.sign.keyPair.fromSeed=function(q){if(Be(q),q.length!==Mt)throw new Error("bad seed size");for(var K=new Uint8Array(Fe),J=new Uint8Array(Re),U=0;U<32;U++)J[U]=q[U];return ye(K,J,!0),{publicKey:K,secretKey:J}},t.sign.publicKeyLength=Fe,t.sign.secretKeyLength=Re,t.sign.seedLength=Mt,t.sign.signatureLength=er,t.hash=function(q){Be(q);var K=new Uint8Array(_e);return be(K,q,q.length),K},t.hash.hashLength=_e,t.verify=function(q,K){return Be(q,K),q.length===0||K.length===0||q.length!==K.length?!1:T(q,0,K,0,q.length)===0},t.setPRNG=function(q){a=q},function(){var q=typeof self<"u"?self.crypto||self.msCrypto:null;if(q&&q.getRandomValues){var K=65536;t.setPRNG(function(J,U){var re,se=new Uint8Array(U);for(re=0;re<U;re+=K)q.getRandomValues(se.subarray(re,re+Math.min(U-re,K)));for(re=0;re<U;re++)J[re]=se[re];Ue(se)})}else typeof n6<"u"&&(q=kd(),q&&q.randomBytes&&t.setPRNG(function(J,U){var re,se=q.randomBytes(U);for(re=0;re<U;re++)J[re]=se[re];Ue(se)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(i6);var rg=i6.exports;const _d=_.getDefaultExportFromCjs(rg);var ng={exports:{}};(function(e){(function(){var t="input is invalid type",n="finalize already called",a=typeof window=="object",c=a?window:{};c.JS_SHA512_NO_WINDOW&&(a=!1);var i=!a&&typeof self=="object",u=!c.JS_SHA512_NO_NODE_JS&&typeof _.dist.process=="object"&&_.dist.process.versions&&_.dist.process.versions.node;u?c=_.commonjsGlobal:i&&(c=self);var f=!c.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,p=!c.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),g=[-2147483648,8388608,32768,128],C=[24,16,8,0],w=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],j=["hex","array","digest","arrayBuffer"],I=[];(c.JS_SHA512_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(R){return Object.prototype.toString.call(R)==="[object Array]"}),p&&(c.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(R){return typeof R=="object"&&R.buffer&&R.buffer.constructor===ArrayBuffer});var T=function(R,Q){return function(B){return new D(Q,!0).update(B)[R]()}},S=function(R){var Q=T("hex",R);Q.create=function(){return new D(R)},Q.update=function(z){return Q.create().update(z)};for(var B=0;B<j.length;++B){var k=j[B];Q[k]=T(k,R)}return Q},L=function(R,Q){return function(B,k){return new O(B,Q,!0).update(k)[R]()}},E=function(R){var Q=L("hex",R);Q.create=function(z){return new O(z,R)},Q.update=function(z,y){return Q.create(z).update(y)};for(var B=0;B<j.length;++B){var k=j[B];Q[k]=L(k,R)}return Q};function D(R,Q){Q?(I[0]=I[1]=I[2]=I[3]=I[4]=I[5]=I[6]=I[7]=I[8]=I[9]=I[10]=I[11]=I[12]=I[13]=I[14]=I[15]=I[16]=I[17]=I[18]=I[19]=I[20]=I[21]=I[22]=I[23]=I[24]=I[25]=I[26]=I[27]=I[28]=I[29]=I[30]=I[31]=I[32]=0,this.blocks=I):this.blocks=[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],R==384?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):R==256?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):R==224?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=R,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}D.prototype.update=function(R){if(this.finalized)throw new Error(n);var Q,B=typeof R;if(B!=="string"){if(B==="object"){if(R===null)throw new Error(t);if(p&&R.constructor===ArrayBuffer)R=new Uint8Array(R);else if(!Array.isArray(R)&&(!p||!ArrayBuffer.isView(R)))throw new Error(t)}else throw new Error(t);Q=!0}for(var k,z=0,y,r=R.length,s=this.blocks;z<r;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=s[16]=s[17]=s[18]=s[19]=s[20]=s[21]=s[22]=s[23]=s[24]=s[25]=s[26]=s[27]=s[28]=s[29]=s[30]=s[31]=s[32]=0),Q)for(y=this.start;z<r&&y<128;++z)s[y>>2]|=R[z]<<C[y++&3];else for(y=this.start;z<r&&y<128;++z)k=R.charCodeAt(z),k<128?s[y>>2]|=k<<C[y++&3]:k<2048?(s[y>>2]|=(192|k>>6)<<C[y++&3],s[y>>2]|=(128|k&63)<<C[y++&3]):k<55296||k>=57344?(s[y>>2]|=(224|k>>12)<<C[y++&3],s[y>>2]|=(128|k>>6&63)<<C[y++&3],s[y>>2]|=(128|k&63)<<C[y++&3]):(k=65536+((k&1023)<<10|R.charCodeAt(++z)&1023),s[y>>2]|=(240|k>>18)<<C[y++&3],s[y>>2]|=(128|k>>12&63)<<C[y++&3],s[y>>2]|=(128|k>>6&63)<<C[y++&3],s[y>>2]|=(128|k&63)<<C[y++&3]);this.lastByteIndex=y,this.bytes+=y-this.start,y>=128?(this.block=s[32],this.start=y-128,this.hash(),this.hashed=!0):this.start=y}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},D.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var R=this.blocks,Q=this.lastByteIndex;R[32]=this.block,R[Q>>2]|=g[Q&3],this.block=R[32],Q>=112&&(this.hashed||this.hash(),R[0]=this.block,R[1]=R[2]=R[3]=R[4]=R[5]=R[6]=R[7]=R[8]=R[9]=R[10]=R[11]=R[12]=R[13]=R[14]=R[15]=R[16]=R[17]=R[18]=R[19]=R[20]=R[21]=R[22]=R[23]=R[24]=R[25]=R[26]=R[27]=R[28]=R[29]=R[30]=R[31]=R[32]=0),R[30]=this.hBytes<<3|this.bytes>>>29,R[31]=this.bytes<<3,this.hash()}},D.prototype.hash=function(){var R=this.h0h,Q=this.h0l,B=this.h1h,k=this.h1l,z=this.h2h,y=this.h2l,r=this.h3h,s=this.h3l,l=this.h4h,d=this.h4l,M=this.h5h,b=this.h5l,N=this.h6h,m=this.h6l,o=this.h7h,x=this.h7l,W=this.blocks,Z,G,ee,V,P,H,$,X,te,Y,ne,xe,le,ue,Ve,he,be,st,Me,oe,We,de,ye,mt,je;for(Z=32;Z<160;Z+=2)oe=W[Z-30],We=W[Z-29],G=(oe>>>1|We<<31)^(oe>>>8|We<<24)^oe>>>7,ee=(We>>>1|oe<<31)^(We>>>8|oe<<24)^(We>>>7|oe<<25),oe=W[Z-4],We=W[Z-3],V=(oe>>>19|We<<13)^(We>>>29|oe<<3)^oe>>>6,P=(We>>>19|oe<<13)^(oe>>>29|We<<3)^(We>>>6|oe<<26),oe=W[Z-32],We=W[Z-31],de=W[Z-14],ye=W[Z-13],H=(ye&65535)+(We&65535)+(ee&65535)+(P&65535),$=(ye>>>16)+(We>>>16)+(ee>>>16)+(P>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+(G&65535)+(V&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(G>>>16)+(V>>>16)+(X>>>16),W[Z]=te<<16|X&65535,W[Z+1]=$<<16|H&65535;var Ae=R,Tt=Q,De=B,ve=k,jt=z,Ee=y,Le=r,Ot=s,me=l,Ce=d,xt=M,Se=b,Oe=N,Wt=m,ze=o,ke=x;for(he=De&jt,be=ve&Ee,Z=0;Z<160;Z+=8)G=(Ae>>>28|Tt<<4)^(Tt>>>2|Ae<<30)^(Tt>>>7|Ae<<25),ee=(Tt>>>28|Ae<<4)^(Ae>>>2|Tt<<30)^(Ae>>>7|Tt<<25),V=(me>>>14|Ce<<18)^(me>>>18|Ce<<14)^(Ce>>>9|me<<23),P=(Ce>>>14|me<<18)^(Ce>>>18|me<<14)^(me>>>9|Ce<<23),Y=Ae&De,ne=Tt&ve,st=Y^Ae&jt^he,Me=ne^Tt&Ee^be,mt=me&xt^~me&Oe,je=Ce&Se^~Ce&Wt,oe=W[Z],We=W[Z+1],de=w[Z],ye=w[Z+1],H=(ye&65535)+(We&65535)+(je&65535)+(P&65535)+(ke&65535),$=(ye>>>16)+(We>>>16)+(je>>>16)+(P>>>16)+(ke>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+(mt&65535)+(V&65535)+(ze&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(mt>>>16)+(V>>>16)+(ze>>>16)+(X>>>16),oe=te<<16|X&65535,We=$<<16|H&65535,H=(Me&65535)+(ee&65535),$=(Me>>>16)+(ee>>>16)+(H>>>16),X=(st&65535)+(G&65535)+($>>>16),te=(st>>>16)+(G>>>16)+(X>>>16),de=te<<16|X&65535,ye=$<<16|H&65535,H=(Ot&65535)+(We&65535),$=(Ot>>>16)+(We>>>16)+(H>>>16),X=(Le&65535)+(oe&65535)+($>>>16),te=(Le>>>16)+(oe>>>16)+(X>>>16),ze=te<<16|X&65535,ke=$<<16|H&65535,H=(ye&65535)+(We&65535),$=(ye>>>16)+(We>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(X>>>16),Le=te<<16|X&65535,Ot=$<<16|H&65535,G=(Le>>>28|Ot<<4)^(Ot>>>2|Le<<30)^(Ot>>>7|Le<<25),ee=(Ot>>>28|Le<<4)^(Le>>>2|Ot<<30)^(Le>>>7|Ot<<25),V=(ze>>>14|ke<<18)^(ze>>>18|ke<<14)^(ke>>>9|ze<<23),P=(ke>>>14|ze<<18)^(ke>>>18|ze<<14)^(ze>>>9|ke<<23),xe=Le&Ae,le=Ot&Tt,st=xe^Le&De^Y,Me=le^Ot&ve^ne,mt=ze&me^~ze&xt,je=ke&Ce^~ke&Se,oe=W[Z+2],We=W[Z+3],de=w[Z+2],ye=w[Z+3],H=(ye&65535)+(We&65535)+(je&65535)+(P&65535)+(Wt&65535),$=(ye>>>16)+(We>>>16)+(je>>>16)+(P>>>16)+(Wt>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+(mt&65535)+(V&65535)+(Oe&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(mt>>>16)+(V>>>16)+(Oe>>>16)+(X>>>16),oe=te<<16|X&65535,We=$<<16|H&65535,H=(Me&65535)+(ee&65535),$=(Me>>>16)+(ee>>>16)+(H>>>16),X=(st&65535)+(G&65535)+($>>>16),te=(st>>>16)+(G>>>16)+(X>>>16),de=te<<16|X&65535,ye=$<<16|H&65535,H=(Ee&65535)+(We&65535),$=(Ee>>>16)+(We>>>16)+(H>>>16),X=(jt&65535)+(oe&65535)+($>>>16),te=(jt>>>16)+(oe>>>16)+(X>>>16),Oe=te<<16|X&65535,Wt=$<<16|H&65535,H=(ye&65535)+(We&65535),$=(ye>>>16)+(We>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(X>>>16),jt=te<<16|X&65535,Ee=$<<16|H&65535,G=(jt>>>28|Ee<<4)^(Ee>>>2|jt<<30)^(Ee>>>7|jt<<25),ee=(Ee>>>28|jt<<4)^(jt>>>2|Ee<<30)^(jt>>>7|Ee<<25),V=(Oe>>>14|Wt<<18)^(Oe>>>18|Wt<<14)^(Wt>>>9|Oe<<23),P=(Wt>>>14|Oe<<18)^(Wt>>>18|Oe<<14)^(Oe>>>9|Wt<<23),ue=jt&Le,Ve=Ee&Ot,st=ue^jt&Ae^xe,Me=Ve^Ee&Tt^le,mt=Oe&ze^~Oe&me,je=Wt&ke^~Wt&Ce,oe=W[Z+4],We=W[Z+5],de=w[Z+4],ye=w[Z+5],H=(ye&65535)+(We&65535)+(je&65535)+(P&65535)+(Se&65535),$=(ye>>>16)+(We>>>16)+(je>>>16)+(P>>>16)+(Se>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+(mt&65535)+(V&65535)+(xt&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(mt>>>16)+(V>>>16)+(xt>>>16)+(X>>>16),oe=te<<16|X&65535,We=$<<16|H&65535,H=(Me&65535)+(ee&65535),$=(Me>>>16)+(ee>>>16)+(H>>>16),X=(st&65535)+(G&65535)+($>>>16),te=(st>>>16)+(G>>>16)+(X>>>16),de=te<<16|X&65535,ye=$<<16|H&65535,H=(ve&65535)+(We&65535),$=(ve>>>16)+(We>>>16)+(H>>>16),X=(De&65535)+(oe&65535)+($>>>16),te=(De>>>16)+(oe>>>16)+(X>>>16),xt=te<<16|X&65535,Se=$<<16|H&65535,H=(ye&65535)+(We&65535),$=(ye>>>16)+(We>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(X>>>16),De=te<<16|X&65535,ve=$<<16|H&65535,G=(De>>>28|ve<<4)^(ve>>>2|De<<30)^(ve>>>7|De<<25),ee=(ve>>>28|De<<4)^(De>>>2|ve<<30)^(De>>>7|ve<<25),V=(xt>>>14|Se<<18)^(xt>>>18|Se<<14)^(Se>>>9|xt<<23),P=(Se>>>14|xt<<18)^(Se>>>18|xt<<14)^(xt>>>9|Se<<23),he=De&jt,be=ve&Ee,st=he^De&Le^ue,Me=be^ve&Ot^Ve,mt=xt&Oe^~xt&ze,je=Se&Wt^~Se&ke,oe=W[Z+6],We=W[Z+7],de=w[Z+6],ye=w[Z+7],H=(ye&65535)+(We&65535)+(je&65535)+(P&65535)+(Ce&65535),$=(ye>>>16)+(We>>>16)+(je>>>16)+(P>>>16)+(Ce>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+(mt&65535)+(V&65535)+(me&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(mt>>>16)+(V>>>16)+(me>>>16)+(X>>>16),oe=te<<16|X&65535,We=$<<16|H&65535,H=(Me&65535)+(ee&65535),$=(Me>>>16)+(ee>>>16)+(H>>>16),X=(st&65535)+(G&65535)+($>>>16),te=(st>>>16)+(G>>>16)+(X>>>16),de=te<<16|X&65535,ye=$<<16|H&65535,H=(Tt&65535)+(We&65535),$=(Tt>>>16)+(We>>>16)+(H>>>16),X=(Ae&65535)+(oe&65535)+($>>>16),te=(Ae>>>16)+(oe>>>16)+(X>>>16),me=te<<16|X&65535,Ce=$<<16|H&65535,H=(ye&65535)+(We&65535),$=(ye>>>16)+(We>>>16)+(H>>>16),X=(de&65535)+(oe&65535)+($>>>16),te=(de>>>16)+(oe>>>16)+(X>>>16),Ae=te<<16|X&65535,Tt=$<<16|H&65535;H=(Q&65535)+(Tt&65535),$=(Q>>>16)+(Tt>>>16)+(H>>>16),X=(R&65535)+(Ae&65535)+($>>>16),te=(R>>>16)+(Ae>>>16)+(X>>>16),this.h0h=te<<16|X&65535,this.h0l=$<<16|H&65535,H=(k&65535)+(ve&65535),$=(k>>>16)+(ve>>>16)+(H>>>16),X=(B&65535)+(De&65535)+($>>>16),te=(B>>>16)+(De>>>16)+(X>>>16),this.h1h=te<<16|X&65535,this.h1l=$<<16|H&65535,H=(y&65535)+(Ee&65535),$=(y>>>16)+(Ee>>>16)+(H>>>16),X=(z&65535)+(jt&65535)+($>>>16),te=(z>>>16)+(jt>>>16)+(X>>>16),this.h2h=te<<16|X&65535,this.h2l=$<<16|H&65535,H=(s&65535)+(Ot&65535),$=(s>>>16)+(Ot>>>16)+(H>>>16),X=(r&65535)+(Le&65535)+($>>>16),te=(r>>>16)+(Le>>>16)+(X>>>16),this.h3h=te<<16|X&65535,this.h3l=$<<16|H&65535,H=(d&65535)+(Ce&65535),$=(d>>>16)+(Ce>>>16)+(H>>>16),X=(l&65535)+(me&65535)+($>>>16),te=(l>>>16)+(me>>>16)+(X>>>16),this.h4h=te<<16|X&65535,this.h4l=$<<16|H&65535,H=(b&65535)+(Se&65535),$=(b>>>16)+(Se>>>16)+(H>>>16),X=(M&65535)+(xt&65535)+($>>>16),te=(M>>>16)+(xt>>>16)+(X>>>16),this.h5h=te<<16|X&65535,this.h5l=$<<16|H&65535,H=(m&65535)+(Wt&65535),$=(m>>>16)+(Wt>>>16)+(H>>>16),X=(N&65535)+(Oe&65535)+($>>>16),te=(N>>>16)+(Oe>>>16)+(X>>>16),this.h6h=te<<16|X&65535,this.h6l=$<<16|H&65535,H=(x&65535)+(ke&65535),$=(x>>>16)+(ke>>>16)+(H>>>16),X=(o&65535)+(ze&65535)+($>>>16),te=(o>>>16)+(ze>>>16)+(X>>>16),this.h7h=te<<16|X&65535,this.h7l=$<<16|H&65535},D.prototype.hex=function(){this.finalize();var R=this.h0h,Q=this.h0l,B=this.h1h,k=this.h1l,z=this.h2h,y=this.h2l,r=this.h3h,s=this.h3l,l=this.h4h,d=this.h4l,M=this.h5h,b=this.h5l,N=this.h6h,m=this.h6l,o=this.h7h,x=this.h7l,W=this.bits,Z=h[R>>28&15]+h[R>>24&15]+h[R>>20&15]+h[R>>16&15]+h[R>>12&15]+h[R>>8&15]+h[R>>4&15]+h[R&15]+h[Q>>28&15]+h[Q>>24&15]+h[Q>>20&15]+h[Q>>16&15]+h[Q>>12&15]+h[Q>>8&15]+h[Q>>4&15]+h[Q&15]+h[B>>28&15]+h[B>>24&15]+h[B>>20&15]+h[B>>16&15]+h[B>>12&15]+h[B>>8&15]+h[B>>4&15]+h[B&15]+h[k>>28&15]+h[k>>24&15]+h[k>>20&15]+h[k>>16&15]+h[k>>12&15]+h[k>>8&15]+h[k>>4&15]+h[k&15]+h[z>>28&15]+h[z>>24&15]+h[z>>20&15]+h[z>>16&15]+h[z>>12&15]+h[z>>8&15]+h[z>>4&15]+h[z&15]+h[y>>28&15]+h[y>>24&15]+h[y>>20&15]+h[y>>16&15]+h[y>>12&15]+h[y>>8&15]+h[y>>4&15]+h[y&15]+h[r>>28&15]+h[r>>24&15]+h[r>>20&15]+h[r>>16&15]+h[r>>12&15]+h[r>>8&15]+h[r>>4&15]+h[r&15];return W>=256&&(Z+=h[s>>28&15]+h[s>>24&15]+h[s>>20&15]+h[s>>16&15]+h[s>>12&15]+h[s>>8&15]+h[s>>4&15]+h[s&15]),W>=384&&(Z+=h[l>>28&15]+h[l>>24&15]+h[l>>20&15]+h[l>>16&15]+h[l>>12&15]+h[l>>8&15]+h[l>>4&15]+h[l&15]+h[d>>28&15]+h[d>>24&15]+h[d>>20&15]+h[d>>16&15]+h[d>>12&15]+h[d>>8&15]+h[d>>4&15]+h[d&15]+h[M>>28&15]+h[M>>24&15]+h[M>>20&15]+h[M>>16&15]+h[M>>12&15]+h[M>>8&15]+h[M>>4&15]+h[M&15]+h[b>>28&15]+h[b>>24&15]+h[b>>20&15]+h[b>>16&15]+h[b>>12&15]+h[b>>8&15]+h[b>>4&15]+h[b&15]),W==512&&(Z+=h[N>>28&15]+h[N>>24&15]+h[N>>20&15]+h[N>>16&15]+h[N>>12&15]+h[N>>8&15]+h[N>>4&15]+h[N&15]+h[m>>28&15]+h[m>>24&15]+h[m>>20&15]+h[m>>16&15]+h[m>>12&15]+h[m>>8&15]+h[m>>4&15]+h[m&15]+h[o>>28&15]+h[o>>24&15]+h[o>>20&15]+h[o>>16&15]+h[o>>12&15]+h[o>>8&15]+h[o>>4&15]+h[o&15]+h[x>>28&15]+h[x>>24&15]+h[x>>20&15]+h[x>>16&15]+h[x>>12&15]+h[x>>8&15]+h[x>>4&15]+h[x&15]),Z},D.prototype.toString=D.prototype.hex,D.prototype.digest=function(){this.finalize();var R=this.h0h,Q=this.h0l,B=this.h1h,k=this.h1l,z=this.h2h,y=this.h2l,r=this.h3h,s=this.h3l,l=this.h4h,d=this.h4l,M=this.h5h,b=this.h5l,N=this.h6h,m=this.h6l,o=this.h7h,x=this.h7l,W=this.bits,Z=[R>>24&255,R>>16&255,R>>8&255,R&255,Q>>24&255,Q>>16&255,Q>>8&255,Q&255,B>>24&255,B>>16&255,B>>8&255,B&255,k>>24&255,k>>16&255,k>>8&255,k&255,z>>24&255,z>>16&255,z>>8&255,z&255,y>>24&255,y>>16&255,y>>8&255,y&255,r>>24&255,r>>16&255,r>>8&255,r&255];return W>=256&&Z.push(s>>24&255,s>>16&255,s>>8&255,s&255),W>=384&&Z.push(l>>24&255,l>>16&255,l>>8&255,l&255,d>>24&255,d>>16&255,d>>8&255,d&255,M>>24&255,M>>16&255,M>>8&255,M&255,b>>24&255,b>>16&255,b>>8&255,b&255),W==512&&Z.push(N>>24&255,N>>16&255,N>>8&255,N&255,m>>24&255,m>>16&255,m>>8&255,m&255,o>>24&255,o>>16&255,o>>8&255,o&255,x>>24&255,x>>16&255,x>>8&255,x&255),Z},D.prototype.array=D.prototype.digest,D.prototype.arrayBuffer=function(){this.finalize();var R=this.bits,Q=new ArrayBuffer(R/8),B=new DataView(Q);return B.setUint32(0,this.h0h),B.setUint32(4,this.h0l),B.setUint32(8,this.h1h),B.setUint32(12,this.h1l),B.setUint32(16,this.h2h),B.setUint32(20,this.h2l),B.setUint32(24,this.h3h),R>=256&&B.setUint32(28,this.h3l),R>=384&&(B.setUint32(32,this.h4h),B.setUint32(36,this.h4l),B.setUint32(40,this.h5h),B.setUint32(44,this.h5l)),R==512&&(B.setUint32(48,this.h6h),B.setUint32(52,this.h6l),B.setUint32(56,this.h7h),B.setUint32(60,this.h7l)),Q},D.prototype.clone=function(){var R=new D(this.bits,!1);return this.copyTo(R),R},D.prototype.copyTo=function(R){var Q=0,B=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(Q=0;Q<B.length;++Q)R[B[Q]]=this[B[Q]];for(Q=0;Q<this.blocks.length;++Q)R.blocks[Q]=this.blocks[Q]};function O(R,Q,B){var k,z=typeof R;if(z!=="string"){if(z==="object"){if(R===null)throw new Error(t);if(p&&R.constructor===ArrayBuffer)R=new Uint8Array(R);else if(!Array.isArray(R)&&(!p||!ArrayBuffer.isView(R)))throw new Error(t)}else throw new Error(t);k=!0}var y=R.length;if(!k){for(var r=[],y=R.length,s=0,l,d=0;d<y;++d)l=R.charCodeAt(d),l<128?r[s++]=l:l<2048?(r[s++]=192|l>>6,r[s++]=128|l&63):l<55296||l>=57344?(r[s++]=224|l>>12,r[s++]=128|l>>6&63,r[s++]=128|l&63):(l=65536+((l&1023)<<10|R.charCodeAt(++d)&1023),r[s++]=240|l>>18,r[s++]=128|l>>12&63,r[s++]=128|l>>6&63,r[s++]=128|l&63);R=r}R.length>128&&(R=new D(Q,!0).update(R).array());for(var M=[],b=[],d=0;d<128;++d){var N=R[d]||0;M[d]=92^N,b[d]=54^N}D.call(this,Q,B),this.update(b),this.oKeyPad=M,this.inner=!0,this.sharedMemory=B}O.prototype=new D,O.prototype.finalize=function(){if(D.prototype.finalize.call(this),this.inner){this.inner=!1;var R=this.array();D.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(R),D.prototype.finalize.call(this)}},O.prototype.clone=function(){var R=new O([],this.bits,!1);this.copyTo(R),R.inner=this.inner;for(var Q=0;Q<this.oKeyPad.length;++Q)R.oKeyPad[Q]=this.oKeyPad[Q];return R};var F=S(512);F.sha512=F,F.sha384=S(384),F.sha512_256=S(256),F.sha512_224=S(224),F.sha512.hmac=E(512),F.sha384.hmac=E(384),F.sha512_256.hmac=E(256),F.sha512_224.hmac=E(224),f?e.exports=F:(c.sha512=F.sha512,c.sha384=F.sha384,c.sha512_256=F.sha512_256,c.sha512_224=F.sha512_224)})()})(ng);var Sb=ng.exports;const Db=_.getDefaultExportFromCjs(Sb);var V0={exports:{}},ig={exports:{}},Ob=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Zf=Math.ceil,dn=Math.floor,Vr="[BigNumber Error] ",u3=Vr+"Number primitive has more than 15 significant digits: ",En=1e14,kt=14,d3=9007199254740991,Qf=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],ai=1e7,tn=1e9;function og(e){var t,n,a,c=E.prototype={constructor:E,toString:null,valueOf:null},i=new E(1),u=20,f=4,p=-7,h=21,g=-1e7,C=1e7,w=!1,j=1,I=0,T={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},S="0123456789abcdefghijklmnopqrstuvwxyz",L=!0;function E(B,k){var z,y,r,s,l,d,M,b,N=this;if(!(N instanceof E))return new E(B,k);if(k==null){if(B&&B._isBigNumber===!0){N.s=B.s,!B.c||B.e>C?N.c=N.e=null:B.e<g?N.c=[N.e=0]:(N.e=B.e,N.c=B.c.slice());return}if((d=typeof B=="number")&&B*0==0){if(N.s=1/B<0?(B=-B,-1):1,B===~~B){for(s=0,l=B;l>=10;l/=10,s++);s>C?N.c=N.e=null:(N.e=s,N.c=[B]);return}b=String(B)}else{if(!Ob.test(b=String(B)))return a(N,b,d);N.s=b.charCodeAt(0)==45?(b=b.slice(1),-1):1}(s=b.indexOf("."))>-1&&(b=b.replace(".","")),(l=b.search(/e/i))>0?(s<0&&(s=l),s+=+b.slice(l+1),b=b.substring(0,l)):s<0&&(s=b.length)}else{if(dr(k,2,S.length,"Base"),k==10&&L)return N=new E(B),R(N,u+N.e+1,f);if(b=String(B),d=typeof B=="number"){if(B*0!=0)return a(N,b,d,k);if(N.s=1/B<0?(b=b.slice(1),-1):1,E.DEBUG&&b.replace(/^0\.0*|\./,"").length>15)throw Error(u3+B)}else N.s=b.charCodeAt(0)===45?(b=b.slice(1),-1):1;for(z=S.slice(0,k),s=l=0,M=b.length;l<M;l++)if(z.indexOf(y=b.charAt(l))<0){if(y=="."){if(l>s){s=M;continue}}else if(!r&&(b==b.toUpperCase()&&(b=b.toLowerCase())||b==b.toLowerCase()&&(b=b.toUpperCase()))){r=!0,l=-1,s=0;continue}return a(N,String(B),d,k)}d=!1,b=n(b,k,10,N.s),(s=b.indexOf("."))>-1?b=b.replace(".",""):s=b.length}for(l=0;b.charCodeAt(l)===48;l++);for(M=b.length;b.charCodeAt(--M)===48;);if(b=b.slice(l,++M)){if(M-=l,d&&E.DEBUG&&M>15&&(B>d3||B!==dn(B)))throw Error(u3+N.s*B);if((s=s-l-1)>C)N.c=N.e=null;else if(s<g)N.c=[N.e=0];else{if(N.e=s,N.c=[],l=(s+1)%kt,s<0&&(l+=kt),l<M){for(l&&N.c.push(+b.slice(0,l)),M-=kt;l<M;)N.c.push(+b.slice(l,l+=kt));l=kt-(b=b.slice(l)).length}else l-=M;for(;l--;b+="0");N.c.push(+b)}}else N.c=[N.e=0]}E.clone=og,E.ROUND_UP=0,E.ROUND_DOWN=1,E.ROUND_CEIL=2,E.ROUND_FLOOR=3,E.ROUND_HALF_UP=4,E.ROUND_HALF_DOWN=5,E.ROUND_HALF_EVEN=6,E.ROUND_HALF_CEIL=7,E.ROUND_HALF_FLOOR=8,E.EUCLID=9,E.config=E.set=function(B){var k,z;if(B!=null)if(typeof B=="object"){if(B.hasOwnProperty(k="DECIMAL_PLACES")&&(z=B[k],dr(z,0,tn,k),u=z),B.hasOwnProperty(k="ROUNDING_MODE")&&(z=B[k],dr(z,0,8,k),f=z),B.hasOwnProperty(k="EXPONENTIAL_AT")&&(z=B[k],z&&z.pop?(dr(z[0],-1e9,0,k),dr(z[1],0,tn,k),p=z[0],h=z[1]):(dr(z,-1e9,tn,k),p=-(h=z<0?-z:z))),B.hasOwnProperty(k="RANGE"))if(z=B[k],z&&z.pop)dr(z[0],-1e9,-1,k),dr(z[1],1,tn,k),g=z[0],C=z[1];else if(dr(z,-1e9,tn,k),z)g=-(C=z<0?-z:z);else throw Error(Vr+k+" cannot be zero: "+z);if(B.hasOwnProperty(k="CRYPTO"))if(z=B[k],z===!!z)if(z)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))w=z;else throw w=!z,Error(Vr+"crypto unavailable");else w=z;else throw Error(Vr+k+" not true or false: "+z);if(B.hasOwnProperty(k="MODULO_MODE")&&(z=B[k],dr(z,0,9,k),j=z),B.hasOwnProperty(k="POW_PRECISION")&&(z=B[k],dr(z,0,tn,k),I=z),B.hasOwnProperty(k="FORMAT"))if(z=B[k],typeof z=="object")T=z;else throw Error(Vr+k+" not an object: "+z);if(B.hasOwnProperty(k="ALPHABET"))if(z=B[k],typeof z=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(z))L=z.slice(0,10)=="0123456789",S=z;else throw Error(Vr+k+" invalid: "+z)}else throw Error(Vr+"Object expected: "+B);return{DECIMAL_PLACES:u,ROUNDING_MODE:f,EXPONENTIAL_AT:[p,h],RANGE:[g,C],CRYPTO:w,MODULO_MODE:j,POW_PRECISION:I,FORMAT:T,ALPHABET:S}},E.isBigNumber=function(B){if(!B||B._isBigNumber!==!0)return!1;if(!E.DEBUG)return!0;var k,z,y=B.c,r=B.e,s=B.s;e:if({}.toString.call(y)=="[object Array]"){if((s===1||s===-1)&&r>=-1e9&&r<=tn&&r===dn(r)){if(y[0]===0){if(r===0&&y.length===1)return!0;break e}if(k=(r+1)%kt,k<1&&(k+=kt),String(y[0]).length==k){for(k=0;k<y.length;k++)if(z=y[k],z<0||z>=En||z!==dn(z))break e;if(z!==0)return!0}}}else if(y===null&&r===null&&(s===null||s===1||s===-1))return!0;throw Error(Vr+"Invalid BigNumber: "+B)},E.maximum=E.max=function(){return O(arguments,-1)},E.minimum=E.min=function(){return O(arguments,1)},E.random=function(){var B=9007199254740992,k=Math.random()*B&2097151?function(){return dn(Math.random()*B)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(z){var y,r,s,l,d,M=0,b=[],N=new E(i);if(z==null?z=u:dr(z,0,tn),l=Zf(z/kt),w)if(crypto.getRandomValues){for(y=crypto.getRandomValues(new Uint32Array(l*=2));M<l;)d=y[M]*131072+(y[M+1]>>>11),d>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),y[M]=r[0],y[M+1]=r[1]):(b.push(d%1e14),M+=2);M=l/2}else if(crypto.randomBytes){for(y=crypto.randomBytes(l*=7);M<l;)d=(y[M]&31)*281474976710656+y[M+1]*1099511627776+y[M+2]*4294967296+y[M+3]*16777216+(y[M+4]<<16)+(y[M+5]<<8)+y[M+6],d>=9e15?crypto.randomBytes(7).copy(y,M):(b.push(d%1e14),M+=7);M=l/7}else throw w=!1,Error(Vr+"crypto unavailable");if(!w)for(;M<l;)d=k(),d<9e15&&(b[M++]=d%1e14);for(l=b[--M],z%=kt,l&&z&&(d=Qf[kt-z],b[M]=dn(l/d)*d);b[M]===0;b.pop(),M--);if(M<0)b=[s=0];else{for(s=-1;b[0]===0;b.splice(0,1),s-=kt);for(M=1,d=b[0];d>=10;d/=10,M++);M<kt&&(s-=kt-M)}return N.e=s,N.c=b,N}}(),E.sum=function(){for(var B=1,k=arguments,z=new E(k[0]);B<k.length;)z=z.plus(k[B++]);return z},n=function(){var B="0123456789";function k(z,y,r,s){for(var l,d=[0],M,b=0,N=z.length;b<N;){for(M=d.length;M--;d[M]*=y);for(d[0]+=s.indexOf(z.charAt(b++)),l=0;l<d.length;l++)d[l]>r-1&&(d[l+1]==null&&(d[l+1]=0),d[l+1]+=d[l]/r|0,d[l]%=r)}return d.reverse()}return function(z,y,r,s,l){var d,M,b,N,m,o,x,W,Z=z.indexOf("."),G=u,ee=f;for(Z>=0&&(N=I,I=0,z=z.replace(".",""),W=new E(y),o=W.pow(z.length-Z),I=N,W.c=k(Gn(un(o.c),o.e,"0"),10,r,B),W.e=W.c.length),x=k(z,y,r,l?(d=S,B):(d=B,S)),b=N=x.length;x[--N]==0;x.pop());if(!x[0])return d.charAt(0);if(Z<0?--b:(o.c=x,o.e=b,o.s=s,o=t(o,W,G,ee,r),x=o.c,m=o.r,b=o.e),M=b+G+1,Z=x[M],N=r/2,m=m||M<0||x[M+1]!=null,m=ee<4?(Z!=null||m)&&(ee==0||ee==(o.s<0?3:2)):Z>N||Z==N&&(ee==4||m||ee==6&&x[M-1]&1||ee==(o.s<0?8:7)),M<1||!x[0])z=m?Gn(d.charAt(1),-G,d.charAt(0)):d.charAt(0);else{if(x.length=M,m)for(--r;++x[--M]>r;)x[M]=0,M||(++b,x=[1].concat(x));for(N=x.length;!x[--N];);for(Z=0,z="";Z<=N;z+=d.charAt(x[Z++]));z=Gn(z,b,d.charAt(0))}return z}}(),t=function(){function B(y,r,s){var l,d,M,b,N=0,m=y.length,o=r%ai,x=r/ai|0;for(y=y.slice();m--;)M=y[m]%ai,b=y[m]/ai|0,l=x*M+b*o,d=o*M+l%ai*ai+N,N=(d/s|0)+(l/ai|0)+x*b,y[m]=d%s;return N&&(y=[N].concat(y)),y}function k(y,r,s,l){var d,M;if(s!=l)M=s>l?1:-1;else for(d=M=0;d<s;d++)if(y[d]!=r[d]){M=y[d]>r[d]?1:-1;break}return M}function z(y,r,s,l){for(var d=0;s--;)y[s]-=d,d=y[s]<r[s]?1:0,y[s]=d*l+y[s]-r[s];for(;!y[0]&&y.length>1;y.splice(0,1));}return function(y,r,s,l,d){var M,b,N,m,o,x,W,Z,G,ee,V,P,H,$,X,te,Y,ne=y.s==r.s?1:-1,xe=y.c,le=r.c;if(!xe||!xe[0]||!le||!le[0])return new E(!y.s||!r.s||(xe?le&&xe[0]==le[0]:!le)?NaN:xe&&xe[0]==0||!le?ne*0:ne/0);for(Z=new E(ne),G=Z.c=[],b=y.e-r.e,ne=s+b+1,d||(d=En,b=hn(y.e/kt)-hn(r.e/kt),ne=ne/kt|0),N=0;le[N]==(xe[N]||0);N++);if(le[N]>(xe[N]||0)&&b--,ne<0)G.push(1),m=!0;else{for($=xe.length,te=le.length,N=0,ne+=2,o=dn(d/(le[0]+1)),o>1&&(le=B(le,o,d),xe=B(xe,o,d),te=le.length,$=xe.length),H=te,ee=xe.slice(0,te),V=ee.length;V<te;ee[V++]=0);Y=le.slice(),Y=[0].concat(Y),X=le[0],le[1]>=d/2&&X++;do{if(o=0,M=k(le,ee,te,V),M<0){if(P=ee[0],te!=V&&(P=P*d+(ee[1]||0)),o=dn(P/X),o>1)for(o>=d&&(o=d-1),x=B(le,o,d),W=x.length,V=ee.length;k(x,ee,W,V)==1;)o--,z(x,te<W?Y:le,W,d),W=x.length,M=1;else o==0&&(M=o=1),x=le.slice(),W=x.length;if(W<V&&(x=[0].concat(x)),z(ee,x,V,d),V=ee.length,M==-1)for(;k(le,ee,te,V)<1;)o++,z(ee,te<V?Y:le,V,d),V=ee.length}else M===0&&(o++,ee=[0]);G[N++]=o,ee[0]?ee[V++]=xe[H]||0:(ee=[xe[H]],V=1)}while((H++<$||ee[0]!=null)&&ne--);m=ee[0]!=null,G[0]||G.splice(0,1)}if(d==En){for(N=1,ne=G[0];ne>=10;ne/=10,N++);R(Z,s+(Z.e=N+b*kt-1)+1,l,m)}else Z.e=b,Z.r=+m;return Z}}();function D(B,k,z,y){var r,s,l,d,M;if(z==null?z=f:dr(z,0,8),!B.c)return B.toString();if(r=B.c[0],l=B.e,k==null)M=un(B.c),M=y==1||y==2&&(l<=p||l>=h)?xs(M,l):Gn(M,l,"0");else if(B=R(new E(B),k,z),s=B.e,M=un(B.c),d=M.length,y==1||y==2&&(k<=s||s<=p)){for(;d<k;M+="0",d++);M=xs(M,s)}else if(k-=l,M=Gn(M,s,"0"),s+1>d){if(--k>0)for(M+=".";k--;M+="0");}else if(k+=s-d,k>0)for(s+1==d&&(M+=".");k--;M+="0");return B.s<0&&r?"-"+M:M}function O(B,k){for(var z,y,r=1,s=new E(B[0]);r<B.length;r++)y=new E(B[r]),(!y.s||(z=Di(s,y))===k||z===0&&s.s===k)&&(s=y);return s}function F(B,k,z){for(var y=1,r=k.length;!k[--r];k.pop());for(r=k[0];r>=10;r/=10,y++);return(z=y+z*kt-1)>C?B.c=B.e=null:z<g?B.c=[B.e=0]:(B.e=z,B.c=k),B}a=function(){var B=/^(-?)0([xbo])(?=\w[\w.]*$)/i,k=/^([^.]+)\.$/,z=/^\.([^.]+)$/,y=/^-?(Infinity|NaN)$/,r=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(s,l,d,M){var b,N=d?l:l.replace(r,"");if(y.test(N))s.s=isNaN(N)?null:N<0?-1:1;else{if(!d&&(N=N.replace(B,function(m,o,x){return b=(x=x.toLowerCase())=="x"?16:x=="b"?2:8,!M||M==b?o:m}),M&&(b=M,N=N.replace(k,"$1").replace(z,"0.$1")),l!=N))return new E(N,b);if(E.DEBUG)throw Error(Vr+"Not a"+(M?" base "+M:"")+" number: "+l);s.s=null}s.c=s.e=null}}();function R(B,k,z,y){var r,s,l,d,M,b,N,m=B.c,o=Qf;if(m){e:{for(r=1,d=m[0];d>=10;d/=10,r++);if(s=k-r,s<0)s+=kt,l=k,M=m[b=0],N=dn(M/o[r-l-1]%10);else if(b=Zf((s+1)/kt),b>=m.length)if(y){for(;m.length<=b;m.push(0));M=N=0,r=1,s%=kt,l=s-kt+1}else break e;else{for(M=d=m[b],r=1;d>=10;d/=10,r++);s%=kt,l=s-kt+r,N=l<0?0:dn(M/o[r-l-1]%10)}if(y=y||k<0||m[b+1]!=null||(l<0?M:M%o[r-l-1]),y=z<4?(N||y)&&(z==0||z==(B.s<0?3:2)):N>5||N==5&&(z==4||y||z==6&&(s>0?l>0?M/o[r-l]:0:m[b-1])%10&1||z==(B.s<0?8:7)),k<1||!m[0])return m.length=0,y?(k-=B.e+1,m[0]=o[(kt-k%kt)%kt],B.e=-k||0):m[0]=B.e=0,B;if(s==0?(m.length=b,d=1,b--):(m.length=b+1,d=o[kt-s],m[b]=l>0?dn(M/o[r-l]%o[l])*d:0),y)for(;;)if(b==0){for(s=1,l=m[0];l>=10;l/=10,s++);for(l=m[0]+=d,d=1;l>=10;l/=10,d++);s!=d&&(B.e++,m[0]==En&&(m[0]=1));break}else{if(m[b]+=d,m[b]!=En)break;m[b--]=0,d=1}for(s=m.length;m[--s]===0;m.pop());}B.e>C?B.c=B.e=null:B.e<g&&(B.c=[B.e=0])}return B}function Q(B){var k,z=B.e;return z===null?B.toString():(k=un(B.c),k=z<=p||z>=h?xs(k,z):Gn(k,z,"0"),B.s<0?"-"+k:k)}return c.absoluteValue=c.abs=function(){var B=new E(this);return B.s<0&&(B.s=1),B},c.comparedTo=function(B,k){return Di(this,new E(B,k))},c.decimalPlaces=c.dp=function(B,k){var z,y,r,s=this;if(B!=null)return dr(B,0,tn),k==null?k=f:dr(k,0,8),R(new E(s),B+s.e+1,k);if(!(z=s.c))return null;if(y=((r=z.length-1)-hn(this.e/kt))*kt,r=z[r])for(;r%10==0;r/=10,y--);return y<0&&(y=0),y},c.dividedBy=c.div=function(B,k){return t(this,new E(B,k),u,f)},c.dividedToIntegerBy=c.idiv=function(B,k){return t(this,new E(B,k),0,1)},c.exponentiatedBy=c.pow=function(B,k){var z,y,r,s,l,d,M,b,N,m=this;if(B=new E(B),B.c&&!B.isInteger())throw Error(Vr+"Exponent not an integer: "+Q(B));if(k!=null&&(k=new E(k)),d=B.e>14,!m.c||!m.c[0]||m.c[0]==1&&!m.e&&m.c.length==1||!B.c||!B.c[0])return N=new E(Math.pow(+Q(m),d?B.s*(2-vs(B)):+Q(B))),k?N.mod(k):N;if(M=B.s<0,k){if(k.c?!k.c[0]:!k.s)return new E(NaN);y=!M&&m.isInteger()&&k.isInteger(),y&&(m=m.mod(k))}else{if(B.e>9&&(m.e>0||m.e<-1||(m.e==0?m.c[0]>1||d&&m.c[1]>=24e7:m.c[0]<8e13||d&&m.c[0]<=9999975e7)))return s=m.s<0&&vs(B)?-0:0,m.e>-1&&(s=1/s),new E(M?1/s:s);I&&(s=Zf(I/kt+2))}for(d?(z=new E(.5),M&&(B.s=1),b=vs(B)):(r=Math.abs(+Q(B)),b=r%2),N=new E(i);;){if(b){if(N=N.times(m),!N.c)break;s?N.c.length>s&&(N.c.length=s):y&&(N=N.mod(k))}if(r){if(r=dn(r/2),r===0)break;b=r%2}else if(B=B.times(z),R(B,B.e+1,1),B.e>14)b=vs(B);else{if(r=+Q(B),r===0)break;b=r%2}m=m.times(m),s?m.c&&m.c.length>s&&(m.c.length=s):y&&(m=m.mod(k))}return y?N:(M&&(N=i.div(N)),k?N.mod(k):s?R(N,I,f,l):N)},c.integerValue=function(B){var k=new E(this);return B==null?B=f:dr(B,0,8),R(k,k.e+1,B)},c.isEqualTo=c.eq=function(B,k){return Di(this,new E(B,k))===0},c.isFinite=function(){return!!this.c},c.isGreaterThan=c.gt=function(B,k){return Di(this,new E(B,k))>0},c.isGreaterThanOrEqualTo=c.gte=function(B,k){return(k=Di(this,new E(B,k)))===1||k===0},c.isInteger=function(){return!!this.c&&hn(this.e/kt)>this.c.length-2},c.isLessThan=c.lt=function(B,k){return Di(this,new E(B,k))<0},c.isLessThanOrEqualTo=c.lte=function(B,k){return(k=Di(this,new E(B,k)))===-1||k===0},c.isNaN=function(){return!this.s},c.isNegative=function(){return this.s<0},c.isPositive=function(){return this.s>0},c.isZero=function(){return!!this.c&&this.c[0]==0},c.minus=function(B,k){var z,y,r,s,l=this,d=l.s;if(B=new E(B,k),k=B.s,!d||!k)return new E(NaN);if(d!=k)return B.s=-k,l.plus(B);var M=l.e/kt,b=B.e/kt,N=l.c,m=B.c;if(!M||!b){if(!N||!m)return N?(B.s=-k,B):new E(m?l:NaN);if(!N[0]||!m[0])return m[0]?(B.s=-k,B):new E(N[0]?l:f==3?-0:0)}if(M=hn(M),b=hn(b),N=N.slice(),d=M-b){for((s=d<0)?(d=-d,r=N):(b=M,r=m),r.reverse(),k=d;k--;r.push(0));r.reverse()}else for(y=(s=(d=N.length)<(k=m.length))?d:k,d=k=0;k<y;k++)if(N[k]!=m[k]){s=N[k]<m[k];break}if(s&&(r=N,N=m,m=r,B.s=-B.s),k=(y=m.length)-(z=N.length),k>0)for(;k--;N[z++]=0);for(k=En-1;y>d;){if(N[--y]<m[y]){for(z=y;z&&!N[--z];N[z]=k);--N[z],N[y]+=En}N[y]-=m[y]}for(;N[0]==0;N.splice(0,1),--b);return N[0]?F(B,N,b):(B.s=f==3?-1:1,B.c=[B.e=0],B)},c.modulo=c.mod=function(B,k){var z,y,r=this;return B=new E(B,k),!r.c||!B.s||B.c&&!B.c[0]?new E(NaN):!B.c||r.c&&!r.c[0]?new E(r):(j==9?(y=B.s,B.s=1,z=t(r,B,0,3),B.s=y,z.s*=y):z=t(r,B,0,j),B=r.minus(z.times(B)),!B.c[0]&&j==1&&(B.s=r.s),B)},c.multipliedBy=c.times=function(B,k){var z,y,r,s,l,d,M,b,N,m,o,x,W,Z,G,ee=this,V=ee.c,P=(B=new E(B,k)).c;if(!V||!P||!V[0]||!P[0])return!ee.s||!B.s||V&&!V[0]&&!P||P&&!P[0]&&!V?B.c=B.e=B.s=null:(B.s*=ee.s,!V||!P?B.c=B.e=null:(B.c=[0],B.e=0)),B;for(y=hn(ee.e/kt)+hn(B.e/kt),B.s*=ee.s,M=V.length,m=P.length,M<m&&(W=V,V=P,P=W,r=M,M=m,m=r),r=M+m,W=[];r--;W.push(0));for(Z=En,G=ai,r=m;--r>=0;){for(z=0,o=P[r]%G,x=P[r]/G|0,l=M,s=r+l;s>r;)b=V[--l]%G,N=V[l]/G|0,d=x*b+N*o,b=o*b+d%G*G+W[s]+z,z=(b/Z|0)+(d/G|0)+x*N,W[s--]=b%Z;W[s]=z}return z?++y:W.splice(0,1),F(B,W,y)},c.negated=function(){var B=new E(this);return B.s=-B.s||null,B},c.plus=function(B,k){var z,y=this,r=y.s;if(B=new E(B,k),k=B.s,!r||!k)return new E(NaN);if(r!=k)return B.s=-k,y.minus(B);var s=y.e/kt,l=B.e/kt,d=y.c,M=B.c;if(!s||!l){if(!d||!M)return new E(r/0);if(!d[0]||!M[0])return M[0]?B:new E(d[0]?y:r*0)}if(s=hn(s),l=hn(l),d=d.slice(),r=s-l){for(r>0?(l=s,z=M):(r=-r,z=d),z.reverse();r--;z.push(0));z.reverse()}for(r=d.length,k=M.length,r-k<0&&(z=M,M=d,d=z,k=r),r=0;k;)r=(d[--k]=d[k]+M[k]+r)/En|0,d[k]=En===d[k]?0:d[k]%En;return r&&(d=[r].concat(d),++l),F(B,d,l)},c.precision=c.sd=function(B,k){var z,y,r,s=this;if(B!=null&&B!==!!B)return dr(B,1,tn),k==null?k=f:dr(k,0,8),R(new E(s),B,k);if(!(z=s.c))return null;if(r=z.length-1,y=r*kt+1,r=z[r]){for(;r%10==0;r/=10,y--);for(r=z[0];r>=10;r/=10,y++);}return B&&s.e+1>y&&(y=s.e+1),y},c.shiftedBy=function(B){return dr(B,-9007199254740991,d3),this.times("1e"+B)},c.squareRoot=c.sqrt=function(){var B,k,z,y,r,s=this,l=s.c,d=s.s,M=s.e,b=u+4,N=new E("0.5");if(d!==1||!l||!l[0])return new E(!d||d<0&&(!l||l[0])?NaN:l?s:1/0);if(d=Math.sqrt(+Q(s)),d==0||d==1/0?(k=un(l),(k.length+M)%2==0&&(k+="0"),d=Math.sqrt(+k),M=hn((M+1)/2)-(M<0||M%2),d==1/0?k="5e"+M:(k=d.toExponential(),k=k.slice(0,k.indexOf("e")+1)+M),z=new E(k)):z=new E(d+""),z.c[0]){for(M=z.e,d=M+b,d<3&&(d=0);;)if(r=z,z=N.times(r.plus(t(s,r,b,1))),un(r.c).slice(0,d)===(k=un(z.c)).slice(0,d))if(z.e<M&&--d,k=k.slice(d-3,d+1),k=="9999"||!y&&k=="4999"){if(!y&&(R(r,r.e+u+2,0),r.times(r).eq(s))){z=r;break}b+=4,d+=4,y=1}else{(!+k||!+k.slice(1)&&k.charAt(0)=="5")&&(R(z,z.e+u+2,1),B=!z.times(z).eq(s));break}}return R(z,z.e+u+1,f,B)},c.toExponential=function(B,k){return B!=null&&(dr(B,0,tn),B++),D(this,B,k,1)},c.toFixed=function(B,k){return B!=null&&(dr(B,0,tn),B=B+this.e+1),D(this,B,k)},c.toFormat=function(B,k,z){var y,r=this;if(z==null)B!=null&&k&&typeof k=="object"?(z=k,k=null):B&&typeof B=="object"?(z=B,B=k=null):z=T;else if(typeof z!="object")throw Error(Vr+"Argument not an object: "+z);if(y=r.toFixed(B,k),r.c){var s,l=y.split("."),d=+z.groupSize,M=+z.secondaryGroupSize,b=z.groupSeparator||"",N=l[0],m=l[1],o=r.s<0,x=o?N.slice(1):N,W=x.length;if(M&&(s=d,d=M,M=s,W-=s),d>0&&W>0){for(s=W%d||d,N=x.substr(0,s);s<W;s+=d)N+=b+x.substr(s,d);M>0&&(N+=b+x.slice(s)),o&&(N="-"+N)}y=m?N+(z.decimalSeparator||"")+((M=+z.fractionGroupSize)?m.replace(new RegExp("\\d{"+M+"}\\B","g"),"$&"+(z.fractionGroupSeparator||"")):m):N}return(z.prefix||"")+y+(z.suffix||"")},c.toFraction=function(B){var k,z,y,r,s,l,d,M,b,N,m,o,x=this,W=x.c;if(B!=null&&(d=new E(B),!d.isInteger()&&(d.c||d.s!==1)||d.lt(i)))throw Error(Vr+"Argument "+(d.isInteger()?"out of range: ":"not an integer: ")+Q(d));if(!W)return new E(x);for(k=new E(i),b=z=new E(i),y=M=new E(i),o=un(W),s=k.e=o.length-x.e-1,k.c[0]=Qf[(l=s%kt)<0?kt+l:l],B=!B||d.comparedTo(k)>0?s>0?k:b:d,l=C,C=1/0,d=new E(o),M.c[0]=0;N=t(d,k,0,1),r=z.plus(N.times(y)),r.comparedTo(B)!=1;)z=y,y=r,b=M.plus(N.times(r=b)),M=r,k=d.minus(N.times(r=k)),d=r;return r=t(B.minus(z),y,0,1),M=M.plus(r.times(b)),z=z.plus(r.times(y)),M.s=b.s=x.s,s=s*2,m=t(b,y,s,f).minus(x).abs().comparedTo(t(M,z,s,f).minus(x).abs())<1?[b,y]:[M,z],C=l,m},c.toNumber=function(){return+Q(this)},c.toPrecision=function(B,k){return B!=null&&dr(B,1,tn),D(this,B,k,2)},c.toString=function(B){var k,z=this,y=z.s,r=z.e;return r===null?y?(k="Infinity",y<0&&(k="-"+k)):k="NaN":(B==null?k=r<=p||r>=h?xs(un(z.c),r):Gn(un(z.c),r,"0"):B===10&&L?(z=R(new E(z),u+r+1,f),k=Gn(un(z.c),z.e,"0")):(dr(B,2,S.length,"Base"),k=n(Gn(un(z.c),r,"0"),10,B,y,!0)),y<0&&z.c[0]&&(k="-"+k)),k},c.valueOf=c.toJSON=function(){return Q(this)},c._isBigNumber=!0,c[Symbol.toStringTag]="BigNumber",c[Symbol.for("nodejs.util.inspect.custom")]=c.valueOf,e!=null&&E.set(e),E}function hn(e){var t=e|0;return e>0||e===t?t:t-1}function un(e){for(var t,n,a=1,c=e.length,i=e[0]+"";a<c;){for(t=e[a++]+"",n=kt-t.length;n--;t="0"+t);i+=t}for(c=i.length;i.charCodeAt(--c)===48;);return i.slice(0,c+1||1)}function Di(e,t){var n,a,c=e.c,i=t.c,u=e.s,f=t.s,p=e.e,h=t.e;if(!u||!f)return null;if(n=c&&!c[0],a=i&&!i[0],n||a)return n?a?0:-f:u;if(u!=f)return u;if(n=u<0,a=p==h,!c||!i)return a?0:!c^n?1:-1;if(!a)return p>h^n?1:-1;for(f=(p=c.length)<(h=i.length)?p:h,u=0;u<f;u++)if(c[u]!=i[u])return c[u]>i[u]^n?1:-1;return p==h?0:p>h^n?1:-1}function dr(e,t,n,a){if(e<t||e>n||e!==dn(e))throw Error(Vr+(a||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function vs(e){var t=e.c.length-1;return hn(e.e/kt)==t&&e.c[t]%2!=0}function xs(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Gn(e,t,n){var a,c;if(t<0){for(c=n+".";++t;c+=n);e=c+e}else if(a=e.length,++t>a){for(c=n,t-=a;--t;c+=n);e+=c}else t<a&&(e=e.slice(0,t)+"."+e.slice(t));return e}var h3=og();const zb=Object.freeze(Object.defineProperty({__proto__:null,BigNumber:h3,default:h3},Symbol.toStringTag,{value:"Module"})),ag=_.getAugmentedNamespace(zb);(function(e){var t=ag,n=e.exports;(function(){var a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,i,u={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},f;function p(g){return a.lastIndex=0,a.test(g)?'"'+g.replace(a,function(C){var w=u[C];return typeof w=="string"?w:"\\u"+("0000"+C.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+g+'"'}function h(g,C){var w,j,I,T,S=c,L,E=C[g],D=E!=null&&(E instanceof t||t.isBigNumber(E));switch(E&&typeof E=="object"&&typeof E.toJSON=="function"&&(E=E.toJSON(g)),typeof f=="function"&&(E=f.call(C,g,E)),typeof E){case"string":return D?E:p(E);case"number":return isFinite(E)?String(E):"null";case"boolean":case"null":case"bigint":return String(E);case"object":if(!E)return"null";if(c+=i,L=[],Object.prototype.toString.apply(E)==="[object Array]"){for(T=E.length,w=0;w<T;w+=1)L[w]=h(w,E)||"null";return I=L.length===0?"[]":c?`[
81
- `+c+L.join(`,
82
- `+c)+`
83
- `+S+"]":"["+L.join(",")+"]",c=S,I}if(f&&typeof f=="object")for(T=f.length,w=0;w<T;w+=1)typeof f[w]=="string"&&(j=f[w],I=h(j,E),I&&L.push(p(j)+(c?": ":":")+I));else Object.keys(E).forEach(function(O){var F=h(O,E);F&&L.push(p(O)+(c?": ":":")+F)});return I=L.length===0?"{}":c?`{
84
- `+c+L.join(`,
85
- `+c)+`
86
- `+S+"}":"{"+L.join(",")+"}",c=S,I}}typeof n.stringify!="function"&&(n.stringify=function(g,C,w){var j;if(c="",i="",typeof w=="number")for(j=0;j<w;j+=1)i+=" ";else typeof w=="string"&&(i=w);if(f=C,C&&typeof C!="function"&&(typeof C!="object"||typeof C.length!="number"))throw new Error("JSON.stringify");return h("",{"":g})})})()})(ig);var kb=ig.exports,bs=null;const _b=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,Bb=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var Fb=function(e){var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(e!=null){if(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0),t.alwaysParseAsBig=e.alwaysParseAsBig===!0?e.alwaysParseAsBig:!1,t.useNativeBigInt=e.useNativeBigInt===!0?e.useNativeBigInt:!1,typeof e.constructorAction<"u")if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve")t.constructorAction=e.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);if(typeof e.protoAction<"u")if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve")t.protoAction=e.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}var n,a,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
87
- `,r:"\r",t:" "},i,u=function(T){throw{name:"SyntaxError",message:T,at:n,text:i}},f=function(T){return T&&T!==a&&u("Expected '"+T+"' instead of '"+a+"'"),a=i.charAt(n),n+=1,a},p=function(){var T,S="";for(a==="-"&&(S="-",f("-"));a>="0"&&a<="9";)S+=a,f();if(a===".")for(S+=".";f()&&a>="0"&&a<="9";)S+=a;if(a==="e"||a==="E")for(S+=a,f(),(a==="-"||a==="+")&&(S+=a,f());a>="0"&&a<="9";)S+=a,f();if(T=+S,!isFinite(T))u("Bad number");else return bs==null&&(bs=ag),S.length>15?t.storeAsString?S:t.useNativeBigInt?BigInt(S):new bs(S):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(T):new bs(T):T},h=function(){var T,S,L="",E;if(a==='"')for(var D=n;f();){if(a==='"')return n-1>D&&(L+=i.substring(D,n-1)),f(),L;if(a==="\\"){if(n-1>D&&(L+=i.substring(D,n-1)),f(),a==="u"){for(E=0,S=0;S<4&&(T=parseInt(f(),16),!!isFinite(T));S+=1)E=E*16+T;L+=String.fromCharCode(E)}else if(typeof c[a]=="string")L+=c[a];else break;D=n}}u("Bad string")},g=function(){for(;a&&a<=" ";)f()},C=function(){switch(a){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null}u("Unexpected '"+a+"'")},w,j=function(){var T=[];if(a==="["){if(f("["),g(),a==="]")return f("]"),T;for(;a;){if(T.push(w()),g(),a==="]")return f("]"),T;f(","),g()}}u("Bad array")},I=function(){var T,S=Object.create(null);if(a==="{"){if(f("{"),g(),a==="}")return f("}"),S;for(;a;){if(T=h(),g(),f(":"),t.strict===!0&&Object.hasOwnProperty.call(S,T)&&u('Duplicate key "'+T+'"'),_b.test(T)===!0?t.protoAction==="error"?u("Object contains forbidden prototype property"):t.protoAction==="ignore"?w():S[T]=w():Bb.test(T)===!0?t.constructorAction==="error"?u("Object contains forbidden constructor property"):t.constructorAction==="ignore"?w():S[T]=w():S[T]=w(),g(),a==="}")return f("}"),S;f(","),g()}}u("Bad object")};return w=function(){switch(g(),a){case"{":return I();case"[":return j();case'"':return h();case"-":return p();default:return a>="0"&&a<="9"?p():C()}},function(T,S){var L;return i=T+"",n=0,a=" ",L=w(),g(),a&&u("Syntax error"),typeof S=="function"?function E(D,O){var F,R=D[O];return R&&typeof R=="object"&&Object.keys(R).forEach(function(Q){F=E(R,Q),F!==void 0?R[Q]=F:delete R[Q]}),S.call(D,O,R)}({"":L},""):L}},Rb=Fb,sg=kb.stringify,cg=Rb;V0.exports=function(e){return{parse:cg(e),stringify:sg}};V0.exports.parse=cg();V0.exports.stringify=sg;var Pb=V0.exports;const Ub=_.getDefaultExportFromCjs(Pb);var p3;(function(e){e.DEFAULT="default",e.SAFE="safe",e.MIXED="mixed",e.BIGINT="bigint"})(p3||(p3={}));Ub({useNativeBigInt:!0,strict:!0});function Yb(e,t){return e.length!==t.length?!1:Array.from(e).every((n,a)=>n===t[a])}function Wb(...e){const t=e.reduce((c,i)=>c+i.length,0),n=new Uint8Array(t);let a=0;for(let c=0;c<e.length;c++)n.set(e[c],a),a+=e[c].length;return n}function lg(e){return Db.sha512_256.array(e)}const Tu=_d.sign.publicKeyLength;_d.sign.secretKeyLength;const g3=32;var fg={exports:{}};(function(e){(function(){var t=typeof window=="object"?window:{},n=!t.HI_BASE32_NO_NODE_JS&&typeof _.dist.process=="object"&&_.dist.process.versions&&_.dist.process.versions.node;n&&(t=_.commonjsGlobal);var a=!t.HI_BASE32_NO_COMMON_JS&&!0&&e.exports,c="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),i={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},u=[0,0,0,0,0,0,0,0],f=function(S,L){L.length>10&&(L="..."+L.substr(-10));var E=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+S+" bytes: "+L+" <-");throw E.position=S,E},p=function(S){for(var L="",E=S.length,D=0,O=0,F,R;D<E;){if(F=S[D++],F<=127){L+=String.fromCharCode(F);continue}else F>191&&F<=223?(R=F&31,O=1):F<=239?(R=F&15,O=2):F<=247?(R=F&7,O=3):f(D,L);for(var Q=0;Q<O;++Q)F=S[D++],(F<128||F>191)&&f(D,L),R<<=6,R+=F&63;R>=55296&&R<=57343&&f(D,L),R>1114111&&f(D,L),R<=65535?L+=String.fromCharCode(R):(R-=65536,L+=String.fromCharCode((R>>10)+55296),L+=String.fromCharCode((R&1023)+56320))}return L},h=function(S){if(S==="")return[];if(!/^[A-Z2-7=]+$/.test(S))throw new Error("Invalid base32 characters");S=S.replace(/=/g,"");for(var L,E,D,O,F,R,Q,B,k=[],z=0,y=S.length,r=0,s=y>>3<<3;r<s;)L=i[S.charAt(r++)],E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],R=i[S.charAt(r++)],Q=i[S.charAt(r++)],B=i[S.charAt(r++)],k[z++]=(L<<3|E>>>2)&255,k[z++]=(E<<6|D<<1|O>>>4)&255,k[z++]=(O<<4|F>>>1)&255,k[z++]=(F<<7|R<<2|Q>>>3)&255,k[z++]=(Q<<5|B)&255;var l=y-s;return l===2?(L=i[S.charAt(r++)],E=i[S.charAt(r++)],k[z++]=(L<<3|E>>>2)&255):l===4?(L=i[S.charAt(r++)],E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],k[z++]=(L<<3|E>>>2)&255,k[z++]=(E<<6|D<<1|O>>>4)&255):l===5?(L=i[S.charAt(r++)],E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],k[z++]=(L<<3|E>>>2)&255,k[z++]=(E<<6|D<<1|O>>>4)&255,k[z++]=(O<<4|F>>>1)&255):l===7&&(L=i[S.charAt(r++)],E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],R=i[S.charAt(r++)],Q=i[S.charAt(r++)],k[z++]=(L<<3|E>>>2)&255,k[z++]=(E<<6|D<<1|O>>>4)&255,k[z++]=(O<<4|F>>>1)&255,k[z++]=(F<<7|R<<2|Q>>>3)&255),k},g=function(S){for(var L,E,D,O,F,R="",Q=S.length,B=0,k=parseInt(Q/5)*5;B<k;)L=S.charCodeAt(B++),E=S.charCodeAt(B++),D=S.charCodeAt(B++),O=S.charCodeAt(B++),F=S.charCodeAt(B++),R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[(D<<1|O>>>7)&31]+c[O>>>2&31]+c[(O<<3|F>>>5)&31]+c[F&31];var z=Q-k;return z===1?(L=S.charCodeAt(B),R+=c[L>>>3]+c[L<<2&31]+"======"):z===2?(L=S.charCodeAt(B++),E=S.charCodeAt(B),R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[E<<4&31]+"===="):z===3?(L=S.charCodeAt(B++),E=S.charCodeAt(B++),D=S.charCodeAt(B),R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[D<<1&31]+"==="):z===4&&(L=S.charCodeAt(B++),E=S.charCodeAt(B++),D=S.charCodeAt(B++),O=S.charCodeAt(B),R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[(D<<1|O>>>7)&31]+c[O>>>2&31]+c[O<<3&31]+"="),R},C=function(S){var L,E,D,O,F,R,Q=!1,B="",k=0,z,y=0,r=S.length;if(S==="")return B;do{for(u[0]=u[5],u[1]=u[6],u[2]=u[7],z=y;k<r&&z<5;++k)R=S.charCodeAt(k),R<128?u[z++]=R:R<2048?(u[z++]=192|R>>6,u[z++]=128|R&63):R<55296||R>=57344?(u[z++]=224|R>>12,u[z++]=128|R>>6&63,u[z++]=128|R&63):(R=65536+((R&1023)<<10|S.charCodeAt(++k)&1023),u[z++]=240|R>>18,u[z++]=128|R>>12&63,u[z++]=128|R>>6&63,u[z++]=128|R&63);y=z-5,k===r&&++k,k>r&&z<6&&(Q=!0),L=u[0],z>4?(E=u[1],D=u[2],O=u[3],F=u[4],B+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[(D<<1|O>>>7)&31]+c[O>>>2&31]+c[(O<<3|F>>>5)&31]+c[F&31]):z===1?B+=c[L>>>3]+c[L<<2&31]+"======":z===2?(E=u[1],B+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[E<<4&31]+"===="):z===3?(E=u[1],D=u[2],B+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[D<<1&31]+"==="):(E=u[1],D=u[2],O=u[3],B+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[(D<<1|O>>>7)&31]+c[O>>>2&31]+c[O<<3&31]+"=")}while(!Q);return B},w=function(S){for(var L,E,D,O,F,R="",Q=S.length,B=0,k=parseInt(Q/5)*5;B<k;)L=S[B++],E=S[B++],D=S[B++],O=S[B++],F=S[B++],R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[(D<<1|O>>>7)&31]+c[O>>>2&31]+c[(O<<3|F>>>5)&31]+c[F&31];var z=Q-k;return z===1?(L=S[B],R+=c[L>>>3]+c[L<<2&31]+"======"):z===2?(L=S[B++],E=S[B],R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[E<<4&31]+"===="):z===3?(L=S[B++],E=S[B++],D=S[B],R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[D<<1&31]+"==="):z===4&&(L=S[B++],E=S[B++],D=S[B++],O=S[B],R+=c[L>>>3]+c[(L<<2|E>>>6)&31]+c[E>>>1&31]+c[(E<<4|D>>>4)&31]+c[(D<<1|O>>>7)&31]+c[O>>>2&31]+c[O<<3&31]+"="),R},j=function(S,L){var E=typeof S!="string";return E&&S.constructor===ArrayBuffer&&(S=new Uint8Array(S)),E?w(S):L?g(S):C(S)},I=function(S,L){if(!L)return p(h(S));if(S==="")return"";if(!/^[A-Z2-7=]+$/.test(S))throw new Error("Invalid base32 characters");var E,D,O,F,R,Q,B,k,z="",y=S.indexOf("=");y===-1&&(y=S.length);for(var r=0,s=y>>3<<3;r<s;)E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],R=i[S.charAt(r++)],Q=i[S.charAt(r++)],B=i[S.charAt(r++)],k=i[S.charAt(r++)],z+=String.fromCharCode((E<<3|D>>>2)&255)+String.fromCharCode((D<<6|O<<1|F>>>4)&255)+String.fromCharCode((F<<4|R>>>1)&255)+String.fromCharCode((R<<7|Q<<2|B>>>3)&255)+String.fromCharCode((B<<5|k)&255);var l=y-s;return l===2?(E=i[S.charAt(r++)],D=i[S.charAt(r++)],z+=String.fromCharCode((E<<3|D>>>2)&255)):l===4?(E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],z+=String.fromCharCode((E<<3|D>>>2)&255)+String.fromCharCode((D<<6|O<<1|F>>>4)&255)):l===5?(E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],R=i[S.charAt(r++)],z+=String.fromCharCode((E<<3|D>>>2)&255)+String.fromCharCode((D<<6|O<<1|F>>>4)&255)+String.fromCharCode((F<<4|R>>>1)&255)):l===7&&(E=i[S.charAt(r++)],D=i[S.charAt(r++)],O=i[S.charAt(r++)],F=i[S.charAt(r++)],R=i[S.charAt(r++)],Q=i[S.charAt(r++)],B=i[S.charAt(r++)],z+=String.fromCharCode((E<<3|D>>>2)&255)+String.fromCharCode((D<<6|O<<1|F>>>4)&255)+String.fromCharCode((F<<4|R>>>1)&255)+String.fromCharCode((R<<7|Q<<2|B>>>3)&255)),z},T={encode:j,decode:I};I.asBytes=h,a?e.exports=T:t.base32=T})()})(fg);var Hb=fg.exports;const ug=_.getDefaultExportFromCjs(Hb),Vf=36,Au=4,dg=58;_.bufferPolyfill.Buffer.from("appID");const m3="address seems to be malformed",Zb="wrong checksum for address";function hg(e){if(typeof e!="string"||e.length!==dg)throw new Error(m3);const t=ug.decode.asBytes(e.toString());if(t.length!==Vf)throw new Error(m3);const n=new Uint8Array(t.slice(0,Vf-Au)),a=new Uint8Array(t.slice(Tu,Vf)),c=lg(n).slice(g3-Au,g3);if(!Yb(c,a))throw new Error(Zb);return{publicKey:n,checksum:a}}function Qb(e){try{hg(e)}catch{return!1}return!0}function Vb(e){const t=lg(e).slice(Tu-Au,Tu);return ug.encode(Wb(e,t)).toString().slice(0,dg)}var M3;(function(e){e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl",e.stpf="stpf"})(M3||(M3={}));var y3;(function(e){e[e.NoOpOC=0]="NoOpOC",e[e.OptInOC=1]="OptInOC",e[e.CloseOutOC=2]="CloseOutOC",e[e.ClearStateOC=3]="ClearStateOC",e[e.UpdateApplicationOC=4]="UpdateApplicationOC",e[e.DeleteApplicationOC=5]="DeleteApplicationOC"})(y3||(y3={}));_.bufferPolyfill.Buffer.from("ProgData");"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){});var v3;(function(e){e.any="txn",e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl"})(v3||(v3={}));var x3;(function(e){e.account="account",e.application="application",e.asset="asset"})(x3||(x3={}));_.bufferPolyfill.Buffer.from([21,31,124,117]);var b3;(function(e){e[e.BUILDING=0]="BUILDING",e[e.BUILT=1]="BUILT",e[e.SIGNED=2]="SIGNED",e[e.SUBMITTED=3]="SUBMITTED",e[e.COMMITTED=4]="COMMITTED"})(b3||(b3={}));_.bufferPolyfill.Buffer.from([77,88]);const Iu="Algorand";function Gb(e){if(e<BigInt(Number.MIN_SAFE_INTEGER)||e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Integer is unsafe");return Number(e)}const Bn=class Bn{constructor(t){yt(this,"type","Native");yt(this,"address");if(Bn.instanceof(t))this.address=t.address;else if(_.UniversalAddress.instanceof(t))this.address=t.toUint8Array();else if(t instanceof Uint8Array&&t.byteLength===Bn.byteSize)this.address=t;else if(typeof t=="string"&&Qb(t))this.address=hg(t).publicKey;else if(typeof t=="string"&&!isNaN(parseInt(t)))this.address=_.bytes.zpad(_.bignum.toBytes(BigInt(t),8),Bn.byteSize);else if(typeof t=="bigint")this.address=_.bytes.zpad(_.bignum.toBytes(t,8),Bn.byteSize);else if(t instanceof Uint8Array&&t.byteLength===8)this.address=_.bytes.zpad(t,Bn.byteSize);else throw new Error(`Invalid Algorand address or ASA ID: ${t}`)}unwrap(){return this.toString()}toString(){return Vb(this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new _.UniversalAddress(this.toUint8Array())}toBigInt(){return _.bignum.decode(this.toUint8Array().slice(24,32))}toInt(){return Gb(this.toBigInt())}equals(t){return Bn.instanceof(t)?t.address===this.address:this.toUniversalAddress().equals(t)}static instanceof(t){return t.constructor.platform===Iu}};yt(Bn,"byteSize",32),yt(Bn,"platform",Iu);let Eu=Bn;_.registerNative(Iu,Eu);const pg=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Terra","terra"],["Terra2","terra"],["Wormchain","wormhole"],["Xpla","xpla"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"],["Noble","noble"]],$b=_.constMap(pg);_.constMap(pg,[1,[0]]);const gg=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"],["Noble","uusdc"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"]]]];_.constMap(gg);_.constMap(gg,[[0,2],[1]]);const qb=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Injective:"channel-15",Kujira:"channel-16",Stargaze:"channel-17",Osmosis:"channel-19",Dymension:"channel-18",Evmos:"channel-20"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Injective",{Wormchain:"channel-76973"}],["Kujira",{Wormchain:"channel-114"}],["Osmosis",{Wormchain:"channel-7904"}],["Stargaze",{Wormchain:"channel-949"}],["Evmos",{Wormchain:"channel-240"}],["Dymension",{Wormchain:"channel-23"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]];_.constMap(qb);const Jb=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]];_.constMap(Jb);const Xb=[["Mainnet",[["Terra","28.325"],["Terra2","0.015"],["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Xpla","1147500000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"],["Noble","0.1"]]]];_.constMap(Xb);const mg="Cosmwasm";function C3(e){try{const t=_.bech32.decodeToBytes(e);return{data:t.bytes,prefix:t.prefix}}catch{}try{return{data:_.hex.decode(e)}}catch{}try{return{data:_.b64.decode(e)}}catch{}throw new Error(`Cannot decode: ${e}`)}const kr=class kr{constructor(t){yt(this,"address");yt(this,"domain");yt(this,"denom");yt(this,"denomType");if(kr.instanceof(t)){const n=t;this.address=n.address,this.domain=n.domain,this.denom=n.denom,this.denomType=n.denomType;return}if(typeof t=="string"){if(t.length<=8){this.address=new Uint8Array(0),this.denom=t,this.denomType="native";return}if(t.indexOf("/")!==-1){const n=t.split("/");if(n.length>=3){const{data:a,prefix:c}=C3(n[n.length-2]);this.address=a,this.domain=c,this.denom=n[n.length-1],this.denomType=n.slice(0,n.length-2).join("/")}else{const{data:a}=C3(n[1]);this.address=a,this.denomType=n[0]}}else{if(!kr.isValidAddress(t))throw new Error(`Invalid Cosmwasm address: ${t}`);const{bytes:n,prefix:a}=_.bech32.decodeToBytes(t);this.address=n,this.domain=a}}else if(t instanceof Uint8Array)this.address=t;else if(_.UniversalAddress.instanceof(t))this.address=t.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${t}`);if(!kr.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${_.hex.encode(this.address).toUpperCase()}`:`${this.denomType}/${kr.encode(this.domain,this.address)}/${this.denom}`:kr.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const t=new Uint8Array(_.UniversalAddress.byteSize);return t.set(this.address,_.UniversalAddress.byteSize-this.address.length),new _.UniversalAddress(t)}setChain(t){this.domain=$b.get(t)}static isValidAddress(t){try{const n=_.bech32.decodeToBytes(t);return kr.validAddressLength(n.bytes)}catch{}return!1}static encode(t,n){return _.bech32.encode(t,_.bech32.toWords(n))}static validAddressLength(t){if(t.length!==kr.contractAddressByteSize&&t.length!==kr.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${kr.contractAddressByteSize} or ${kr.accountAddressByteSize} bytes but got ${t.length}`);return!0}static instanceof(t){return t.constructor.platform===kr.platform}equals(t){return kr.instanceof(t)?this.toString()===t.toString():t.equals(this.toUniversalAddress())}};yt(kr,"contractAddressByteSize",32),yt(kr,"accountAddressByteSize",20),yt(kr,"platform",mg);let Lu=kr;_.registerNative(mg,Lu);async function Kb(e){try{const t=await Promise.all(e.map(async n=>n()));return await Promise.all(t.map(async n=>await eC(n))),t}catch(t){throw console.error("Failed to load required packages",t),t}}async function eC(e,t){try{let n=Object.entries(e.protocols);await Promise.all(n.map(([,a])=>a()))}catch(n){throw console.error("Failed to load required packages",n),n}}async function tC(e,t,n){const a=(await Kb(t)).map(c=>c.Platform);return new _.Wormhole(e,a,n)}const rC=async()=>(await Promise.resolve().then(()=>require("./evm-BmUWgBnJ.js"))).default,nC=async()=>(await Promise.resolve().then(()=>require("./solana-Dohpdke6.js"))).default,iC=async()=>(await Promise.resolve().then(()=>require("./aptos-7NDR_C5e.js"))).default,oC=async()=>(await Promise.resolve().then(()=>require("./sui-BCJA_cYx.js"))).default,aC="https://api.coingecko.com",sC="https://pro-api.coingecko.com",w3={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Blast:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum"},cC={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer"},Su=async(e,t)=>{var c,i,u,f;const n=new Headers({...(c=ge.coingecko)!=null&&c.apiKey?{"x-cg-pro-api-key":ge.coingecko.apiKey}:{}}),a=(i=ge.coingecko)!=null&&i.customUrl?ge.coingecko.customUrl:(u=ge.coingecko)!=null&&u.apiKey?sC:aC;return fetch(`${a}${e}`,{signal:(f=t==null?void 0:t.abort)==null?void 0:f.signal,headers:n}).then(p=>p.json()).catch(p=>(console.error("Error fetching from Coingecko",p),null))},lC=async(e,t)=>ge.network!=="Mainnet"?null:Su(`/api/v3/coins/${e.chain.toLowerCase()}/contract/${e.address.toString()}`,t),fC=async(e,t)=>{const n=new Bd;if(ge.network!=="Mainnet")return n;const a={},c=[];for(const f of e)_.isNative(f.address)?c.push(f):(a[f.chain]===void 0&&(a[f.chain]=[]),a[f.chain].push(f.address.toString()));const i=Object.keys(a).map(f=>{const p=a[f];return new Promise((h,g)=>{const C=p.join(","),w=cC[f]||f.toLowerCase();Su(`/api/v3/simple/token_price/${w}?contract_addresses=${C}&vs_currencies=usd`,t).then(j=>{j.error!==void 0||j.error_code!==void 0?g(j.error):h(Object.keys(j).map(I=>{try{const T=_.Wormhole.tokenId(f,I);return j[I]?{tokenId:T,price:j[I].usd}:null}catch(T){return console.error("Coingecko error",T),null}}).filter(I=>I!==null))}).catch(g)})});c.length>0&&i.push(new Promise((f,p)=>{const h=[];for(const g of c){const C=w3[g.chain];C?h.push(C):console.error(`Don't know a coingecko ID for native token for chain ${g.chain}`)}Su(`/api/v3/simple/price?ids=${h.join(",")}&vs_currencies=usd`,t).then(g=>f(c.map(C=>{const w=w3[C.chain];if(w){const{usd:j}=g[w];return{tokenId:C,price:j}}else return null}).filter(C=>!!C))).catch(p)}));const u=(await Promise.allSettled(i)).map(f=>f.status==="fulfilled"?f.value:null).filter(f=>!!f).flat();for(const{tokenId:f,price:p}of u)n.add(f,p);return n},uC=1,N3=typeof localStorage<"u";class Xi{constructor(t,n){yt(this,"chain");yt(this,"addressString");yt(this,"_address");this.chain=t,this.addressString=n}get address(){return _.isNative(this.addressString)?this.addressString:(this._address||(this._address=_.toNative(this.chain,this.addressString)),this._address)}static fromTokenTuple(t){return new Xi(t[0],t[1])}}class Ki extends Xi{constructor(n,a,c,i,u,f,p){super(n,a);yt(this,"decimals");yt(this,"symbol");yt(this,"name");yt(this,"icon");yt(this,"tokenBridgeOriginalTokenId");this.decimals=c,this.symbol=i,this.name=u,this.icon=f,this.tokenBridgeOriginalTokenId=p}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const n=this.addressString;return`${n.substring(0,5)}...${n.substring(n.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return pi(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return _.isNative(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){var n;return((n=this.tokenBridgeOriginalTokenId)==null?void 0:n.chain)||this.chain}equals(n){return Ou(this,n)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?Mg(this.tokenBridgeOriginalTokenId):void 0}}static fromJson({chain:n,address:a,decimals:c,symbol:i,name:u,icon:f,tokenBridgeOriginalTokenId:p}){return new Ki(n,a,c,i,u,f===""?void 0:f,p?G0(p):void 0)}}class Bd{constructor(){yt(this,"lastUpdate");yt(this,"_localStorageKey");yt(this,"_mapping");yt(this,"size");this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(t,n){this._mapping.has(t.chain)||this._mapping.set(t.chain,new Map),this._mapping.get(t.chain).set(Du(t).toLowerCase(),n),this.lastUpdate=new Date,this.size+=1}get(t,n){var a,c,i,u,f;if(typeof t=="string"&&typeof n=="string"&&_.isChain(t))return(a=this._mapping.get(t))==null?void 0:a.get(n.toLowerCase());if(t instanceof Xi)return(c=this._mapping.get(t.chain))==null?void 0:c.get(t.addressString.toLowerCase());if(_.isTokenId(t))return(i=this._mapping.get(t.chain))==null?void 0:i.get(t.address.toString().toLowerCase());if(Fd(t))return(u=this._mapping.get(t[0]))==null?void 0:u.get(t[1].toLowerCase());{const p=yg(t);return(f=this._mapping.get(p.chain))==null?void 0:f.get(Du(p).toLowerCase())}}mustGet(t,n){const a=this.get(t,n);if(!a)throw new Error("Failed to get token");return a}getList(t){return t.map(n=>this.get(n)).filter(n=>n!==void 0)}getAllForChain(t){const n=this._mapping.get(t);return n?Array.from(n.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(t=>Array.from(t.values()))}get chains(){return Array.from(this._mapping.keys())}merge(t){t.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(t){this._mapping.forEach((n,a)=>{n.forEach((c,i)=>{const u=new Xi(a,i);t(u,c)})})}get empty(){return this.size===0}}class s0 extends Bd{add(t){if(t.tokenBridgeOriginalTokenId){const n=this.get(t.tokenBridgeOriginalTokenId);n&&(t.icon=n.icon,t.name=n.name,t.symbol=n.symbol)}super.add(t,t)}getGasToken(t){return t==="Celo"?this.findBySymbol("Celo","CELO"):this.get(t,"native")}findByAddressOrSymbol(t,n){const a=this.get(t,n);if(a)return a;const c=this.findBySymbol(t,n);if(c)return c}queryBySymbol(t,n){return this.getAllForChain(t).filter(a=>{var c;return a.symbol.toLowerCase().startsWith(n.toLowerCase())||((c=a.name)==null?void 0:c.toLowerCase().startsWith(n.toLowerCase()))})}findBySymbol(t,n){let a=this.getAllForChain(t).filter(c=>c.symbol.toLowerCase()===n.toLowerCase());if(a.length>1&&(a=a.filter(c=>!c.isTokenBridgeWrappedToken)),a.length===1)return a[0];a.length>1&&console.error(`Ambiguous token symbol: ${n}`)}setLocalStorageKey(t){this._localStorageKey=t}async addFromTokenId(t){var w,j;if(t.chain==="Sui"&&!Rn.isValidSuiType(t.address.toString()))throw new Error(`Not a valid Sui token address: ${t.address.toString()}`);const n=await qr(),a=n.getChain(t.chain),c=await a.getDecimals(t.address),i=await lC(t);let u=((w=i==null?void 0:i.symbol)==null?void 0:w.toUpperCase())||"",f=(i==null?void 0:i.name)||"",p=((j=i==null?void 0:i.image)==null?void 0:j.large)||null;if(!u){const{getTokenMetadataFromRpc:I}=await Promise.resolve().then(()=>require("./tokens-BUz0LqoV.js")),T=await I(t);T&&(console.info("Got metadata from RPC",T),u=T.symbol,f=T.name,p=T.icon)}let h;const g=await a.getTokenBridge();if(await g.isWrappedAsset(t.address)&&(h=await g.getOriginalAsset(t.address),_.UniversalAddress.instanceof(h.address)&&(h.address=await n.getTokenNativeAddress(h.chain,h.chain,h.address)),h)){const I=this.get(h);I&&I.icon&&(p=I.icon,u=I.symbol)}const C=new Ki(t.chain,_.canonicalAddress(t),c,u,f,p,h);return this.add(C),C}persist(){if(N3&&this._localStorageKey){const t={version:uC,tokens:{}};this.forEach((a,c)=>{t.tokens[pi(a)]=c.toJson()});const n=JSON.stringify(t);localStorage.setItem(this._localStorageKey,n)}}static load(t){if(N3){const a=localStorage.getItem(t);if(a)try{const c=JSON.parse(a),i=new s0;i.setLocalStorageKey(t);for(const[,u]of Object.entries(c.tokens)){const f=Ki.fromJson(u);i.add(f)}return i}catch(c){console.error("Error parsing cached TokenCache",c)}}const n=new s0;return n.setLocalStorageKey(t),n}}function dC(e,t,n,a){const c=s0.load(`wormhole-connect:token-cache:${e}`);for(const{tokenId:i,symbol:u,name:f,icon:p,decimals:h}of t){const g=new Ki(i.chain,i.address.toString(),h,u,f,p);c.add(g)}for(const i in n)for(const u in n[i]){const f=n[i][u];for(const p in f){const h=c.get(i,u);if(h){const g=f[p];let C=_.chainToPlatform(p)==="Evm"?18:8;C=Math.min(C,h.decimals);const w=new Ki(p,g,C,h.symbol,h.name,h.icon,h);c.add(w)}}}return c.persist(),c}function Fd(e){return Array.isArray(e)&&e.length==2&&_.isChain(e[0])}function Mg(e){return[e.chain,Du(e)]}function G0(e){return Xi.fromTokenTuple(e)}function pi(e){return JSON.stringify(Mg(e))}function yg(e){const t=JSON.parse(e);if(Fd(t))return G0(t);throw new Error(`Invalid token key "${e}"; couldn't parse`)}function Du(e){return e instanceof Xi?e.addressString:e.address.toString()}function Ou(e,t){return e.chain===t.chain&&e.addressString===t.addressString}const vg="insufficient_allowance",hC="swap_failed",pC="source_contract_paused",gC="destination_contract_paused",mC="unsupported_abi_version",zu="insufficient_gas",xg="amount_too_large",bg="amount_too_small",Rd="user_rejected",Cg="user_timeout",wg="unknown",Ng="relay_failed",MC=/insufficient token allowance/im,j3=/insufficient lamports.*?(\d+).*?(\d+)/im,yC=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature","mi"),vC=new RegExp("AmountInTooSmall","m");function ku(e,t){let n="Error with transfer, please try again",a=wg;if(e.message){if(e instanceof Rn.RelayFailedError)n=e.message,a=Ng;else if(MC.test(e==null?void 0:e.message))n="Error with transfer, please try again",a=vg;else if(e.name==="TransactionExpiredTimeoutError"||e.name==="TransactionExpiredBlockheightExceededError")n="Transfer timed out, please try again",a=Cg;else if(Cu.MESSAGE_REGEX.test(e==null?void 0:e.message))n="Insufficient funds",a=zu;else if(yC.test(e==null?void 0:e.message))n="Transfer rejected in wallet, please try again",a=Rd;else if(vC.test(e==null?void 0:e.message))n="Amount is too small for the selected route",a=bg;else if(t.route.includes("CCTP")&&/burn.*exceed/i.test(e==null?void 0:e.toString())){const{amount:i}=t;n=`Amount exceeds Circle limit${i!==void 0&&_.whole(i)>1e6?" of 1,000,000":""}. Please reduce transfer amount.`,a=xg}else if(j3.test(e==null?void 0:e.message)){const c=e==null?void 0:e.message.match(j3),i=c==null?void 0:c[1],u=c==null?void 0:c[2];if(n="Insufficient funds for gas.",i&&u){const f=_.fromBaseUnits(i,9),p=_.fromBaseUnits(u,9);n+=` Current balance is ${_.display(f)} SOL, but required ${_.display(p)} SOL`}a=zu}}return[n,{type:a,original:e}]}function jg(e,t){e instanceof Error&&e.message.startsWith("No protocols registered for")||console.error(t?`${t}: ${e}`:e)}class xC extends Error{constructor(){super("Not supported")}}class bC extends Error{constructor(){super("Not connected")}}exports.BaseFeatures=void 0;(function(e){e.SignTransaction="SignTransaction",e.SendTransaction="SendTransaction",e.SignAndSendTransaction="SignAndSendTransaction",e.SignMessage="SignMessage"})(exports.BaseFeatures||(exports.BaseFeatures={}));exports.WalletState=void 0;(function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"})(exports.WalletState||(exports.WalletState={}));class Tg extends _.EventEmitter{getWalletState(){return exports.WalletState.Installed}supportsFeature(t){const n=this.getFeatures();return Array.isArray(t)?t.every(a=>n.includes(a)):n.includes(t)}}const rr={unset:0,solana:1,ethereum:2,terra:3,bsc:4,polygon:5,avalanche:6,oasis:7,algorand:8,aurora:9,fantom:10,karura:11,acala:12,klaytn:13,celo:14,near:15,moonbeam:16,neon:17,terra2:18,injective:19,osmosis:20,sui:21,aptos:22,arbitrum:23,optimism:24,gnosis:25,pythnet:26,xpla:28,btc:29,base:30,sei:32,rootstock:33,scroll:34,mantle:35,blast:36,xlayer:37,linea:38,berachain:39,seievm:40,unichain:44,worldchain:45,monad:48,wormchain:3104,cosmoshub:4e3,evmos:4001,kujira:4002,neutron:4003,celestia:4004,stargaze:4005,seda:4006,dymension:4007,provenance:4008,sepolia:10002,arbitrum_sepolia:10003,base_sepolia:10004,optimism_sepolia:10005,holesky:10006,polygon_sepolia:10007};Object.entries(rr).reduce((e,[t,n])=>(e[n]=t,e),{});const CC=rr.solana,Ag=rr.ethereum,wC=rr.bsc,NC=rr.polygon,jC=rr.avalanche,TC=rr.oasis,AC=rr.aurora,IC=rr.fantom,EC=rr.karura,LC=rr.acala,SC=rr.klaytn,DC=rr.celo,OC=rr.moonbeam,zC=rr.neon,kC=rr.sui,_C=rr.aptos,BC=rr.arbitrum,FC=rr.optimism,RC=rr.gnosis,PC=rr.base,UC=rr.scroll,YC=rr.mantle,WC=rr.blast,HC=rr.xlayer,ZC=rr.worldchain,QC=rr.unichain,VC=rr.monad;function GC(e){return e===Ag||e===wC||e===jC||e===NC||e===TC||e===AC||e===IC||e===EC||e===LC||e===SC||e===DC||e===OC||e===zC||e===BC||e===FC||e===RC||e===PC||e===UC||e===ZC||e===WC||e===HC||e===YC||e===QC||e===VC}const C0=class C0 extends Tg{constructor(n,a){super();yt(this,"_isConnected",!0);this._address=n,this._chain=a}getName(){return C0.NAME}getUrl(){return""}async connect(){return this._isConnected=!0,this.emit("connect"),[this._address.toString()]}async disconnect(){this._isConnected=!1,this.emit("disconnect")}getChainId(){return _.chainToChainId(this._chain)}getNetworkInfo(){throw new Error("Method not implemented.")}getAddress(){return this._address.toString()}getAddresses(){return[this.getAddress()]}setMainAddress(n){}async getBalance(){throw new Error("Address only wallet cannot fetch balance")}isConnected(){return this._isConnected}getIcon(){return""}async signTransaction(n){throw new Error("Address only wallet cannot sign transactions")}async sendTransaction(n){throw new Error("Address only wallet cannot send transactions")}async signMessage(n){throw new Error("Address only wallet cannot sign messages")}async signAndSendTransaction(n){throw new Error("Address only wallet cannot sign or send transactions")}getFeatures(){return[]}supportsChain(n){return this.getChainId()===n}};yt(C0,"NAME","ReadyOnlyWallet");let Ao=C0;const ua={address:"",type:void 0,currentAddress:"",error:"",icon:void 0,name:""},T3={sending:ua,receiving:ua},Ig=ko({name:"wallet",initialState:T3,reducers:{connectWallet:(e,{payload:t})=>{e.sending.address=t.address,e.sending.currentAddress=t.address,e.sending.type=t.type,e.sending.name=t.name,e.sending.error="",e.sending.icon=t.icon},connectReceivingWallet:(e,{payload:t})=>{e.receiving.address=t.address,e.receiving.currentAddress=t.address,e.receiving.type=t.type,e.receiving.name=t.name,e.receiving.error="",e.receiving.icon=t.icon},clearWallet:(e,{payload:t})=>{e[t]=ua},disconnectWallet:(e,{payload:t})=>{I3(t),e[t]=ua},setWalletError:(e,{payload:t})=>{const{type:n,error:a}=t;e[n].error=a},setAddress:(e,{payload:t})=>{const{type:n,address:a}=t;e[n].address=a,e[n].currentAddress=a},clearWallets:e=>{Object.keys(e).forEach(t=>{e[t]=T3[t]})},swapWallets:e=>{const t=e.sending;e.sending=e.receiving,e.receiving=t,nw(),e.sending.name===Ao.NAME&&(I3(jr.SENDING),e[jr.SENDING]=ua)}}}),{connectWallet:$C,connectReceivingWallet:qC,clearWallet:c0,setAddress:wz,setWalletError:JC,clearWallets:XC,disconnectWallet:KC,swapWallets:ew}=Ig.actions,tw=Ig.reducer;var jr=(e=>(e.SENDING="sending",e.RECEIVING="receiving",e))(jr||{});const Ui={sending:void 0,receiving:void 0},Eg=e=>e?ge.chainsArr.filter(t=>_.chainToPlatform(t.sdkName)===e).map(t=>t.sdkName):ge.chainsArr.map(t=>t.sdkName),rw=(e,t)=>{Ui[e]=t},_u=async(e,t,n,a)=>{const{wallet:c,name:i}=n;if(rw(e,c),!ge.chains[t])throw new Error(`Unable to find wallets for chain ${t}`);const f=_.chainToPlatform(t),p=_.networkChainToNativeChainId.get(ge.network,t);try{const C=typeof p=="bigint"?Number(p):p;await c.connect({chainId:C})}catch(C){if(C.message&&C.message.toLowerCase().includes("rejected"))return console.info("User rejected wallet connection"),!1;throw C}ge.triggerEvent({type:"wallet.connect",details:{side:e,chain:t,wallet:n.name.toLowerCase()}});const h=c.getAddress(),g={address:h,type:n.type,icon:c.getIcon(),name:c.getName()};return a(e==="sending"?$C(g):qC(g)),c.on("disconnect",()=>{c.removeAllListeners(),setTimeout(()=>{a(c0(e))},0),localStorage.removeItem(`wormhole-connect:wallet:${f}`)}),c.on("accountsChanged",C=>{(C.length===0||C.length&&h&&C[0]!==h)&&c.disconnect()}),i!==Ao.NAME&&localStorage.setItem(`wormhole-connect:wallet:${f}`,i),!0},A3=async(e,t,n)=>{const a=ge.chains[t],c=`wormhole-connect:wallet:${_.chainToPlatform(a.sdkName)}`,i=localStorage.getItem(c);if(i&&i!=="WalletConnect"){const f=(await Sg(a)).find(p=>p.name===i);if(f)try{await _u(e,t,f,n)||localStorage.removeItem(c)}catch(p){throw localStorage.removeItem(c),new Error(`Failed to autoconnect to wallet ${i} for ${t}: ${p.message}`)}}},Lg=()=>{const e=Sr(),{toChain:t,fromChain:n}=qt(a=>a.transferInput);ie.useEffect(()=>{let a=!1;return(async()=>{n&&!a&&await A3("sending",n,e),t&&!a&&await A3("receiving",t,e)})(),()=>{a=!0}},[n,t])},nw=()=>{const e=Ui.sending;Ui.sending=Ui.receiving,Ui.receiving=e},I3=async e=>{const t=Ui[e];t&&await t.disconnect()},iw=async(e,t,n,a={})=>{const c=ge.chains[e],i=Ui[n];if(!i)throw new Error("wallet is undefined");const u=_.chainToPlatform(c.sdkName);if(u==="Evm")return await(await Promise.resolve().then(()=>require("./evm-BwVzzPhr.js")).then(h=>h.evm)).signAndSendTransaction(t,i,e);if(u==="Solana")return await(await Promise.resolve().then(()=>require("./solana-DLlqlTiO.js")).then(h=>h.solana)).signAndSendTransaction(t,i,a);if(u==="Sui")return(await(await Promise.resolve().then(()=>require("./sui-CBgZojMi.js"))).signAndSendTransaction(t,i)).id;if(u==="Aptos")return(await(await Promise.resolve().then(()=>require("./aptos-BYM651I5.js"))).signAndSendTransaction(t,i)).id;throw new Error("unimplemented")},ow=e=>{const t=e.getWalletState();return t!==exports.WalletState.Unsupported&&t!==exports.WalletState.NotDetected},Cs=(e,t,n=[])=>Object.values(e).filter((a,c,i)=>c===i.findIndex(u=>u.getName()===a.getName())).filter(a=>!n.includes(a.getName())).map(a=>({wallet:a,type:t,name:a.getName(),icon:a.getIcon(),isReady:ow(a)})),Sg=async e=>{if(e===void 0)return[];const t=_.chainToPlatform(e.sdkName);if(t==="Evm"){const n=await Promise.resolve().then(()=>require("./evm-BwVzzPhr.js")).then(a=>a.evm);return Object.values(Cs(n.getWallets(),t))}else if(t==="Solana"){const a=(await Promise.resolve().then(()=>require("./solana-DLlqlTiO.js")).then(c=>c.solana)).fetchOptions();return Object.values(Cs(a,t))}else if(t==="Sui"){const a=await(await Promise.resolve().then(()=>require("./sui-CBgZojMi.js"))).fetchOptions();return Object.values(Cs(a,t))}else if(t==="Aptos"){const a=(await Promise.resolve().then(()=>require("./aptos-BYM651I5.js"))).fetchOptions();return Object.values(Cs(a,t))}return[]};class ja{constructor(t,n,a,c,i){yt(this,"_chain");yt(this,"_chainContextV2");yt(this,"_address");yt(this,"_options");yt(this,"_walletType");this._chain=t,this._chainContextV2=n,this._address=a,this._options=c,this._walletType=i}static async fromChain(t,n,a,c){const u=(await qr()).getPlatform(_.chainToPlatform(t)).getChain(t);return new ja(t,u,n,a,c)}static async fromPrivateKey(t){const c=(await qr()).getPlatform(_.chainToPlatform(t)).getChain(t).platform.utils()._platform;switch(c){case"Evm":throw new Error("Missing Ethereum private key");case"Solana":throw new Error("Missing Solana private key");case"Sui":throw new Error("Missing Sui private key");default:throw new Error(`Unrecognized platform: ${c}`)}}async signAndSend(t){const n=[];for(const a of t){const c=await iw(this._chain,a,this._walletType,this._options);n.push(c)}return n}chain(){return this._chainContextV2.chain}address(){return this._address}}class aw{constructor(t){yt(this,"cache",new Map);yt(this,"pendingRequests",new Map);this.TTLms=t}async requestWithCache(t,n){const a=Date.now(),c=this.cache.get(t);if(c&&a-c.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),c.isError)throw c.value;return c.value}let i=this.pendingRequests.get(t);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=n().then(u=>(this.cache.set(t,{value:u,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(t),u)).catch(u=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(t,{value:u,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(t),u}),this.pendingRequests.set(t,i)),i}}function sw(e){return e.length===22?e:`0x${e.slice(e.length-40,e.length)}`}function Vi(e,t=6){return e.slice(0,t)+"..."+e.slice(e.length-4,e.length)}function cw(e,t=6,n=4){const a=e.slice(0,t),c=e.slice(e.length-n,e.length);return`${a}...${c}`}function Dg(e,t){return e?e==="Evm"?Vi(sw(t)):e==="Solana"?Vi(t,4):Vi(t):""}function E3(e){const t=ge.tokens.getGasToken(e);if(!t)throw new Error(`gas token not found for ${e}`);return t}function lw(e){const t=ge.chains[e];return t?t.displayName:e}function L3(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(t)}}function Og(e){return navigator.clipboard&&navigator.clipboard.writeText(e).then(function(){return!0},function(){return L3(e)}),L3(e)}function fw(e){return e.startsWith("0x")?e:`0x${e}`}function uw(e,t){return e==="Sui"?Rn.isValidTransactionDigest(t):e==="Sei"?_.isHexString(fw(t),32):t.startsWith("0x")&&t.length===66?!0:t.length>70&&t.length<100}function dw(e){const t=ie.useRef(void 0);return ie.useEffect(()=>{t.current=e}),t.current}async function l0(e){return new Promise(t=>setTimeout(t,e))}const zg=e=>typeof e>"u"?"":e===0?"$0":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(e),Yi=(e,t,n)=>{if(typeof t>"u"||!n)return;const a=e(n);if(a)return typeof t=="number"?t*a:_.whole(t)*a},Xn=(e,t,n)=>zg(Yi(e,t,n)),Pd=e=>{if(e==null)return!0;for(const t in e)if(e.hasOwnProperty.call(e,t))return!1;return!0},da=(e,t,n)=>{const c=ge.chains[e].explorerUrl;switch(n){case"wallet":return e==="Aptos"?`${c}account/${t}`:`${c}address/${t}`;case"tx":return e==="Aptos"?`${c}txn/${t}`:`${c}tx/${t}`;default:switch(e){case"Sui":return`${c}coin/${t}`;case"Aptos":return`${c}${_.isHexString(t)?"fungible_asset":"coin"}/${t}`;case"Fantom":case"Solana":return`${c}address/${t}`;default:return`${c}token/${t}`}}},kg=(e,t)=>{if(!e.isTokenBridgeWrappedToken)return!1;const{nativeChain:n,symbol:a}=e;return a==="USDC"&&n==="Ethereum"&&t==="Fantom"||e.symbol==="tBTC"?!0:!["Ethereum","Sepolia"].includes(n)&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(a)},_g=e=>e>=2*6e4?`~${Math.ceil(e/6e4)} min`:`~${Math.ceil(e/1e3)} sec`,hw=e=>{if(e>864e5){const c=Math.floor(e/864e5);return`~${c} ${c===1?"day":"days"} ago`}else if(e>36e5){const c=Math.floor(e/36e5);return`~${c} ${c===1?"hour":"hours"} ago`}else if(e>6e4){const c=Math.floor(e/6e4);return`~${c} ${c===1?"minute":"minutes"} ago`}else return"~1 minute ago"},pw=e=>{if(e<60)return e===1?`${e} second`:`${e} seconds`;if(e<3600){const t=Math.floor(e/60);return t===1?`${t} minute`:`${t} minutes`}else{const t=Math.floor(e/3600);return t===1?`${t} hour`:`${t} hours`}},ha=e=>e?e.endsWith("ExecutorRoute"):!1;class gw{constructor(t){yt(this,"IS_TOKEN_BRIDGE_ROUTE",!1);yt(this,"tokenCache",new aw(24*60*60*1e3));this.rc=t,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","CosmosGateway"].includes(t.meta.name)}get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(t){const a=(await qr()).getPlatform(_.chainToPlatform(t)).getChain(t);return{chain:t,context:a}}async isRouteSupported(t,n,a,c){const i=await this.getV2ChainContext(a),u=await this.getV2ChainContext(c),f=this.rc.supportedChains(ge.network),p=f.includes(i.chain),h=f.includes(u.chain);if(!p||!h)return!1;try{return!!(await this.supportedDestTokens(t,a,c)).find(C=>_.isSameToken(C,n))}catch(g){return console.error("Error checking route support:",g),!1}}isSupportedChain(t){return this.rc.supportedChains(ge.network).includes(t)}async supportedDestTokens(t,n,a){if(!n||!a||!t)return[];const c=await this.getV2ChainContext(n),i=await this.getV2ChainContext(a);if(await this.isIlliquidDestToken(t,c.context,i.context))return[];const f=`supportedDestTokens-${t.address}-${n}-${a}`;return(await this.tokenCache.requestWithCache(f,()=>this.rc.supportedDestinationTokens(t.tokenId,c.context,i.context))).filter(h=>{const g=ge.tokens.get(h);return!(g&&kg(g,i.chain))})}async getQuote(t,n,a,c,i,u,f){const p=await this.createRequest(n,a,c,i,f),h=await qr(),g=new this.rc(h),C=await g.validate(p,{amount:_.display(t),options:u});if(!C.valid)throw C.error;const w=await g.quote(p,C.params);return[g,w,p]}async createRequest(t,n,a,c,i){const u=(await this.getV2ChainContext(a)).context,f=(await this.getV2ChainContext(c)).context,p=await qr();return await F0.create(p,{source:t.tokenId,destination:n.tokenId,recipient:i?_.Wormhole.chainAddress(c,i):void 0},u,f)}async computeQuote(t,n,a,c,i,u,f){if(!c||!i)throw new Error("Need both chains to get a quote from SDKv2");const[,p]=await this.getQuote(t,n,a,c,i,u,f);if(!p.success)throw p.error;return p}async send(t,n,a,c,i,u,f,p){var L;const[h,g,C]=await this.getQuote(n,t,f,a,i,p,u);if(!g.success)throw g.error;let w;(L=ge.ui.testOptions)!=null&&L.enableHeadlessSigner?w=await ja.fromPrivateKey(a):w=await ja.fromChain(a,c,{},jr.SENDING);let j=await h.initiate(C,w,g,_.Wormhole.chainAddress(i,u));if(j.state===_.TransferState.SourceInitiated||j.state===_.TransferState.SourceFinalized)return[h,j];let I=0;const T=5,S=1e3;for(;I<T;)try{for await(j of h.track(j,120*1e3))if(j.state>=_.TransferState.SourceInitiated)return[h,j]}catch(E){console.error(`Error tracking transfer (attempt ${I+1} / ${T}):`,E);const D=S*Math.pow(2,I);await l0(D),I++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(t){const n=await qr(),a=new this.rc(n);return _.isManual(a)||_.isFinalizable(a)?a.resume(t):null}async isIlliquidDestToken(t,n,a){if(!this.IS_TOKEN_BRIDGE_ROUTE)return!1;const{symbol:c,nativeChain:i}=t;return!!(await mw(t,n,a)||["ETH","WETH"].includes(c)&&i==="Ethereum"&&["Scroll","Blast","Xlayer","Mantle","Unichain"].includes(a.chain))}}const mw=async(e,t,n)=>{const a=async f=>{const p=ge.routes.get(f);if(!p)return!1;try{return(await p.rc.supportedDestinationTokens(e,t,n)).length>0}catch{return!1}},[c,i,u]=await Promise.all([a("ManualNtt"),a("AutomaticNtt"),a("M0AutomaticRoute")]);return c||i||u},Bg=[r6,t6,J5,X5,e6,yd];class Mw{constructor(t=Bg){yt(this,"preference");yt(this,"routes");yt(this,"quoteCache");const n={},a=[];for(const c of t){const i=c.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in n)throw new Error(`Route has duplicate meta.name: ${i}`);a.push(i),n[i]=new gw(c)}this.routes=n,this.preference=a,this.quoteCache=new yw}get(t){return this.routes[t]}async forEach(t){return Promise.all(this.preference.map(n=>t(n,this.routes[n])))}async resumeFromTx(t){return new Promise((n,a)=>{const c=Object.keys(this.routes).length;let i=0;this.forEach((u,f)=>{f.resumeIfManual(t).then(p=>{p!==null?n({route:u,receipt:p}):i+=1}).catch(p=>{i+=1}).finally(()=>{i===c&&n(null)})})})}allSupportedChains(){const t=new Set;for(const n in ge.chains){const a=n;this.forEach(async(c,i)=>{t.has(a)||i.isSupportedChain(a)&&t.add(a)})}return Array.from(t)}async allSupportedDestTokens(t,n,a){const c=new Set;return await this.forEach(async(i,u)=>{try{if(i.includes("Mayan")){c.add(pi(_.Wormhole.tokenId(a,"native")));const f=_.usdcContract.get(ge.network,a);f&&c.add(pi(_.Wormhole.tokenId(a,f)))}else{const f=await u.supportedDestTokens(t,n,a);for(const p of f)c.add(pi(p))}}catch(f){jg(f)}}),Array.from(c).map(yg)}async getQuotes(t,n){const a=await Promise.allSettled(t.map(i=>{const u=this.quoteCache.get(i,n);return u||this.quoteCache.fetch(i,n,this.get(i))})),c={};for(let i=0;i<t.length;i++){const u=t[i],f=a[i];f.status==="rejected"?c[u]={success:!1,error:f.reason}:c[u]=f.value}return c}}class yw{constructor(){yt(this,"cache");yt(this,"pending");this.cache={},this.pending={}}quoteParamsKey(t,n){return`${t}:${n.sourceChain}:${n.sourceToken.address.toString()}:${n.destChain}:${n.destToken.address.toString()}:${_.units(n.amount)}:${n.nativeGas}:${n.recipient}`}get(t,n){const a=this.quoteParamsKey(t,n),c=this.cache[a];if(c){if(c.ttl()>5)return c.result;delete this.cache[a]}return null}async fetch(t,n,a){console.debug("Fetching quote",t,n);const c=this.quoteParamsKey(t,n),i=this.pending[c];if(i)return new Promise((u,f)=>{i.push({resolve:u,reject:f})});{const u=new Promise((f,p)=>{this.pending[c]=[{resolve:f,reject:p}]});return a.computeQuote(n.amount,n.sourceToken,n.destToken,n.sourceChain,n.destChain,{nativeGas:n.nativeGas},n.recipient).then(f=>{const p=this.pending[c];for(const{resolve:h}of p)h(f);delete this.pending[c],f.success&&f.expires===void 0&&(f.expires=new Date(Date.now()+6e4)),console.debug("Fetched quote",t,f),this.cache[c]=new S3(f)}).catch(f=>{console.debug("Error fetching quote",t,f);const p=this.pending[c];for(const{reject:h}of p)h(f);delete this.pending[c],this.cache[c]=new S3({success:!1,error:f})}),u}}nextExpiry(t,n){const a=t.map(c=>{const i=this.quoteParamsKey(c,n);if(this.cache[i])return this.cache[i].expires()}).filter(c=>c!==void 0).sort((c,i)=>c.valueOf()-i.valueOf());if(a.length>0)return a[0]}}class S3{constructor(t){yt(this,"result");yt(this,"timestamp");this.result=t,this.timestamp=new Date}expires(){return this.result.success?this.result.expires??new Date(this.timestamp.valueOf()+6e4):new Date(this.timestamp.valueOf()+12e4)}ttl(){return(this.expires().valueOf()-Date.now().valueOf())/1e3}}function Ud(e={}){var p;const t=v7(e.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(t))throw new Error(`Invalid env "${t}": Use "Testnet", "Devnet", or "Mainnet"`);const n={MAINNET:G5,DEVNET:Tv,TESTNET:$5}[t.toUpperCase()],a=M7(n.wrappedTokens,e.wrappedTokens),c=dC(t,[...n.tokens,...e.tokensConfig?Object.values(e.tokensConfig):[]],a),i=g7[t.toUpperCase()],u=Object.assign({},i.rpcs,n.rpcs,e.rpcs);(p=e.ui)!=null&&p.defaultInputs&&y7(e.ui.defaultInputs,n.chains,c);const f=wu(e.ui??{});return e.tokens&&e.tokens.length>0&&f.disableUserInputtedTokens===void 0&&(f.disableUserInputtedTokens=!0),{sdkConfig:i,network:t,isMainnet:t==="Mainnet",rpcs:u,mayanApi:"https://explorer-api.mayan.finance",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[t],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[t],coingecko:e.coingecko,triggerEvent:Av(e.eventHandler),validateTransfer:e.validateTransferHandler,isRouteSupportedHandler:e.isRouteSupportedHandler,isTokenSupportedHandler:e.isTokenSupportedHandler,filterRoutes:e.filterRoutes,chains:n.chains,chainsArr:Object.values(n.chains).filter(h=>e.chains?e.chains.includes(h.sdkName):!0).sort((h,g)=>{const C=Co.CHAIN_ORDER.indexOf(h.sdkName),w=Co.CHAIN_ORDER.indexOf(g.sdkName);return C>=0&&w>=0?C-w:C===-1?1:w===-1?-1:0}),tokens:c,tokenWhitelist:e.tokens,routes:new Mw(e.routes),ui:wu({...e.ui}),guardianSet:n.guardianSet,transactionSettings:(e==null?void 0:e.transactionSettings)||{}}}const ge=Ud();async function qr(){return ge._v2Wormhole||(ge._v2Wormhole=await xw()),ge._v2Wormhole}async function vw(){delete ge._v2Wormhole}async function xw(){const e={chains:{}};for(const t in ge.chains){const n=t,a=ge.rpcs[n],c={};for(const i of ge.tokens.getAllForChain(n)){const u={key:i.key,chain:n,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};c[i.address.toString()]=u}e.chains[n]={rpc:a,tokenMap:c}}return await tC(ge.network,[rC,nC,iC,oC],e)}function bw(e={}){const t=Ud(e);for(const n in t)ge[n]=t[n];typeof window<"u"&&(window._connectConfig=ge)}function Cw(){return{data:null,error:null,isFetching:!1,receivedAt:null}}function ww(e){return{data:e,error:null,isFetching:!1,receivedAt:new Date().toISOString()}}function Nw(e){return{data:null,error:e,isFetching:!1,receivedAt:null}}function jw(){return{data:null,error:null,isFetching:!0,receivedAt:null}}const Tw=(e,t,n)=>{if(!n||!e||!t)return;const a=e[t];if(!a)return;const c=a[n];if(c)return c},Fg=(e,t,n,a)=>{const c=Tw(e,t,n);if(c)return c.balances[a.key]};function D3(){var u,f,p;const{fromChain:e,toChain:t,fromToken:n,toToken:a}=ge.ui.defaultInputs||{},c=e&&n?(u=ge.tokens.findByAddressOrSymbol(e,n))==null?void 0:u.tuple:void 0,i=t&&a?(f=ge.tokens.findByAddressOrSymbol(t,a))==null?void 0:f.tuple:void 0;return{showValidationState:!1,validations:{fromChain:"",toChain:"",amount:"",toNativeToken:"",sendingWallet:"",receivingWallet:"",relayerFee:"",receiveAmount:""},fromChain:e,toChain:t,token:c,destToken:i,amount:void 0,receiveAmount:Cw(),preferredRouteName:(p=ge.ui.defaultInputs)==null?void 0:p.preferredRouteName,route:void 0,balances:{},foreignAsset:"",associatedTokenAddress:"",gasEst:{send:"",claim:""},isTransactionInProgress:!1,receiverNativeBalance:""}}const O3=e=>{const{fromChain:t}=e;if(e.token){const n=ge.tokens.get(e.token);if(n&&t&&n.chain!==t&&n.symbol){const a=ge.tokens.findBySymbol(t,n.symbol);a&&(e.token=a.tuple)}}},z3=e=>{const{toChain:t}=e;if(e.destToken){const n=ge.tokens.get(e.destToken);if(n&&t&&n.chain!==t&&n.symbol){const a=ge.tokens.findBySymbol(t,n.symbol);a&&(e.destToken=a.tuple)}}},Rg=ko({name:"transfer",initialState:D3(),reducers:{setValidations:(e,{payload:{showValidationState:t,validations:n}})=>{Object.keys(n).forEach(a=>{e.validations[a]=n[a]}),e.showValidationState=t},setToken:(e,{payload:t})=>{e.token=t},clearToken:e=>{e.token=void 0},setDestToken:(e,{payload:t})=>{e.destToken=t},clearDestToken:e=>{e.destToken=void 0},setFromChain:(e,{payload:t})=>{e.fromChain=t,O3(e)},setToChain:(e,{payload:t})=>{e.toChain=t,z3(e)},setAmount:(e,{payload:t})=>{if(e.token&&e.fromChain){const n=ge.tokens.get(e.token);if(n){const{decimals:a}=n,c=_.parse(t,a);_.units(c)===0n?e.amount=void 0:e.amount=c}}else console.warn("Can't call setAmount without a fromChain and token")},setReceiveAmount:(e,{payload:t})=>{e.receiveAmount=ww(t)},setFetchingReceiveAmount:e=>{e.receiveAmount=jw()},setReceiveAmountError:(e,{payload:t})=>{e.receiveAmount=Nw(t)},updateBalances:(e,{payload:t})=>{var i,u;const{chain:n,balances:a,address:c}=t;c&&((i=e.balances)[c]??(i[c]={}),(u=e.balances[c])[n]??(u[n]={balances:{}}),e.balances[c][n].balances={...e.balances[c][n].balances,...a})},setTransferRoute:(e,{payload:t})=>{if(!t){e.route=void 0;return}e.route=t},clearTransfer:e=>{const t=D3();Object.keys(e).forEach(n=>{e[n]=t[n]})},setIsTransactionInProgress:(e,{payload:t})=>{e.isTransactionInProgress=t},swapInputs:e=>{const t=e.fromChain;e.fromChain=e.toChain,e.toChain=t;const n=e.token;e.token=e.destToken,e.destToken=n,O3(e),z3(e)}}}),Pg=(e,t)=>t.name==="OKX Wallet"&&e==="Evmos"?!0:!Eg(t.type).includes(e),Aw=async(e,t,n)=>{Ug(jr.SENDING,e,t,n)},Iw=async(e,t,n)=>{Ug(jr.RECEIVING,e,t,n)},Ug=async(e,t,n,a)=>{Pg(n,a)&&(t(c0(e)),t(JC({type:e,error:"Wallet disconnected, please connect a supported wallet"}))),ge.chains[n]&&t(e===jr.SENDING?Ow(n):Yd(n))},{setValidations:Ew,setToken:Lw,clearToken:Sw,setDestToken:Yg,clearDestToken:Dw,setFromChain:Ow,setToChain:Yd,setAmount:Wd,setTransferRoute:ws,updateBalances:zw,clearTransfer:k3,setIsTransactionInProgress:_3,swapInputs:kw}=Rg.actions,_w=Rg.reducer,B3={maxSwapAmt:void 0,toNativeToken:0,receiveNativeAmt:void 0,relayerFee:void 0,receiverNativeBalance:""},Wg=ko({name:"transfer",initialState:B3,reducers:{setToNativeToken:(e,{payload:t})=>{e.toNativeToken=t},clearRelay:e=>{Object.keys(e).forEach(t=>{e[t]=B3[t]})}}}),{setToNativeToken:Bw}=Wg.actions,Fw=Wg.reducer,Rw={route:"bridge",showFromChainsModal:!1,showToChainsModal:!1,showTokensModal:!1,showWalletModal:!1},Hg=ko({name:"router",initialState:Rw,reducers:{setRoute:(e,{payload:t})=>{e.route=t}}}),{setRoute:Mn}=Hg.actions,Pw=Hg.reducer,Uw={txHash:void 0,chain:void 0},Zg=ko({name:"search",initialState:Uw,reducers:{setSearch(e,t){e.txHash=t.payload.txHash,e.chain=t.payload.chain},clearSearch(e){e.txHash=void 0,e.chain=void 0}}}),{setSearch:Qg,clearSearch:Vg}=Zg.actions,Yw=Zg.reducer,F3=Xy({reducer:{redeem:u7,transferInput:_w,router:Pw,wallet:tw,relay:Fw,search:Yw}}),Gg=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(n=>{const[a,c]=e[n];t[a]=c}),t};function xi(e){return Object.keys(e)}function Wi(e,t){if(!e)throw new Error(t)}function Hd(e,t){return t}const Zd=e=>{const t=e.length;let n=0,a="";for(;n<t;n++){const c=e[n];if(c==null)continue;let i;switch(typeof c){case"boolean":break;case"object":{if(Array.isArray(c))i=Zd(c);else{Wi(!Hd(c,!1)),_.dist.process.env.NODE_ENV!=="production"&&c.styles!==void 0&&c.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(const u in c)c[u]&&u&&(i&&(i+=" "),i+=u)}break}default:i=c}i&&(a&&(a+=" "),a+=i)}return a};function Ww(e){for(var t=0,n,a=0,c=e.length;c>=4;++a,c-=4)n=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(c){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Zw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Qw=/[A-Z]|^ms/g,Vw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$g=function(t){return t.charCodeAt(1)===45},R3=function(t){return t!=null&&typeof t!="boolean"},Gf=Zw(function(e){return $g(e)?e:e.replace(Qw,"-$&").toLowerCase()}),P3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vw,function(a,c,i){return hi={name:c,styles:i,next:hi},c})}return Hw[t]!==1&&!$g(t)&&typeof n=="number"&&n!==0?n+"px":n};function f0(e,t,n){if(n==null)return"";var a=n;if(a.__emotion_styles!==void 0)return a;switch(typeof n){case"boolean":return"";case"object":{var c=n;if(c.anim===1)return hi={name:c.name,styles:c.styles,next:hi},c.name;var i=n;if(i.styles!==void 0){var u=i.next;if(u!==void 0)for(;u!==void 0;)hi={name:u.name,styles:u.styles,next:hi},u=u.next;var f=i.styles+";";return f}return Gw(e,t,n)}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function Gw(e,t,n){var a="";if(Array.isArray(n))for(var c=0;c<n.length;c++)a+=f0(e,t,n[c])+";";else for(var i in n){var u=n[i];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?a+=i+"{"+t[f]+"}":R3(f)&&(a+=Gf(i)+":"+P3(i,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var p=0;p<u.length;p++)R3(u[p])&&(a+=Gf(i)+":"+P3(i,u[p])+";");else{var h=f0(e,t,u);switch(i){case"animation":case"animationName":{a+=Gf(i)+":"+h+";";break}default:a+=i+"{"+h+"}"}}}return a}var U3=/label:\s*([^\s;{]+)\s*(;|$)/g,hi;function $w(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,c="";hi=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,c+=f0(n,t,i);else{var u=i;c+=u[0]}for(var f=1;f<e.length;f++)if(c+=f0(n,t,e[f]),a){var p=i;c+=p[f]}U3.lastIndex=0;for(var h="",g;(g=U3.exec(c))!==null;)h+="-"+g[1];var C=Ww(c)+h;return{name:C,styles:c,next:hi}}function qw(e,t,n){var a="";return n.split(" ").forEach(function(c){e[c]!==void 0?t.push(e[c]+";"):c&&(a+=c+" ")}),a}var Jw=function(t,n,a){var c=t.key+"-"+n.name;t.registered[c]===void 0&&(t.registered[c]=n.styles)},Xw=function(t,n,a){Jw(t,n);var c=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+c:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Kw(e,t){var n;const a=ie.useRef();return(!a.current||t.length!==((n=a.current.prevDeps)===null||n===void 0?void 0:n.length)||a.current.prevDeps.map((c,i)=>c===t[i]).indexOf(!1)>=0)&&(a.current={v:e(),prevDeps:[...t]}),a.current.v}function eN(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}const{createCssAndCx:tN}=(()=>{function e(n,a,c){const i=[],u=qw(n,i,c);return i.length<2?c:u+a(i)}function t(n){const{cache:a}=n,c=(...u)=>{const f=$w(u,a.registered);Xw(a,f);const p=`${a.key}-${f.name}`;e:{const h=u[0];if(!eN(h))break e;Y3.saveClassNameCSSObjectMapping(a,p,h)}return p};return{css:c,cx:(...u)=>{const f=Zd(u),p=Y3.fixClassName(a,f,c);return e(a.registered,c,p)}}}return{createCssAndCx:t}})();function qg(e){const{useCache:t}=e;function n(){const a=t(),{css:c,cx:i}=Kw(()=>tN({cache:a}),[a]);return{css:c,cx:i}}return{useCssAndCx:n}}const Y3=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,a)=>{let c=e.get(t);c===void 0&&(c=new Map,e.set(t,c)),c.set(n,a)},fixClassName:(()=>{function t(n){let a=!1;return n.map(([c,i])=>{if(i===void 0)return c;let u;if(a)u={"&&":i};else{u=c;for(const f in i)if(f.startsWith("@media")){a=!0;break}}return u})}return(n,a,c)=>{const i=e.get(n);return Zd(t(a.split(" ").map(u=>[u,i==null?void 0:i.get(u)])).map(u=>typeof u=="string"?u:c(u)))}})()}})();function bi(e){if(!(e instanceof Object)||typeof e=="function")return e;const t=[];for(const n in e){const a=e[n],c=typeof a;if(!(c==="string"||c==="number"&&!isNaN(a)||c==="boolean"||a===void 0||a===null))return e;t.push(`${n}:${c}_${a}`)}return"xSqLiJdLMd9s"+t.join("|")}function Qd(e,t,n){if(!(t instanceof Object))return e;const a={};return xi(e).forEach(c=>a[c]=n(e[c],t[c])),xi(t).forEach(c=>{if(c in e)return;const i=t[c];typeof i=="string"&&(a[c]=i)}),a}const Jg=({classes:e,theme:t,muiStyleOverridesParams:n,css:a,cx:c,name:i})=>{var u,f;e:{if(i==="makeStyle no name"){i=void 0;break e}if(n!==void 0&&i===void 0)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}let p;try{p=i===void 0?void 0:((f=(u=t.components)===null||u===void 0?void 0:u[i])===null||f===void 0?void 0:f.styleOverrides)||void 0}catch{}const h=ie.useMemo(()=>{if(p===void 0)return;const g={};for(const C in p){const w=p[C];w instanceof Object&&(g[C]=a(typeof w=="function"?w({theme:t,ownerState:n==null?void 0:n.ownerState,...n==null?void 0:n.props}):w))}return g},[p,bi(n==null?void 0:n.props),bi(n==null?void 0:n.ownerState),a]);return e=ie.useMemo(()=>Qd(e,h,c),[e,h,c]),{classes:e}},rN=v9.__unsafe_useEmotionCache;let nN=0;function Xg(e){const{useTheme:t,cache:n}=e,{useCache:a}=Kg({cacheProvidedAtInception:n}),{useCssAndCx:c}=qg({useCache:a});function i(f){const{name:p,uniqId:h=`${nN++}`}=f??{},g=typeof p!="object"?p:Object.keys(p)[0];return function(C){const w=typeof C=="function"?C:()=>C;return function(I,T){const S=t();let{css:L,cx:E}=c();const D=a();let O=ie.useMemo(()=>{const F={},R=typeof Proxy<"u"&&new Proxy({},{get:(k,z)=>(typeof z=="symbol"&&Wi(!1),F[z]=`${D.key}-${h}${g!==void 0?`-${g}`:""}-${z}-ref`)}),Q=w(S,I,R||{}),B=Gg(xi(Q).map(k=>{const z=Q[k];return z.label||(z.label=`${g!==void 0?`${g}-`:""}${k}`),[k,`${L(z)}${Hd(k,k in F)?` ${F[k]}`:""}`]}));return xi(F).forEach(k=>{k in B||(B[k]=F[k])}),B},[D,L,E,S,bi(I)]);{const F=T==null?void 0:T.props.classes;O=ie.useMemo(()=>Qd(O,F,E),[O,bi(F),E])}{const F=Jg({classes:O,css:L,cx:E,name:g??"makeStyle no name",muiStyleOverridesParams:T,theme:S});F.classes!==void 0&&(O=F.classes),F.css!==void 0&&(L=F.css),F.cx!==void 0&&(E=F.cx)}return{classes:O,theme:S,css:L,cx:E}}}}function u(){const f=t(),{css:p,cx:h}=c();return{theme:f,css:p,cx:h}}return{makeStyles:i,useStyles:u}}const iN=ie.createContext(void 0),{createUseCache:Kg}=(()=>{function e(){return ie.useContext(iN)}function t(n){const{cacheProvidedAtInception:a}=n;function c(){var i;const u=rN(),f=e(),p=(i=a??f)!==null&&i!==void 0?i:u;if(p===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(`
88
- `));return p}return{useCache:c}}return{createUseCache:t}})();function W3(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oN(e){const{useTheme:t,cache:n}=e,{makeStyles:a}=Xg({useTheme:t,cache:n});function c(i,u,f){const p=typeof i=="string"?(()=>{const j=i,I=function({children:T,...S}){return ie.createElement(j,S,T)};return Object.defineProperty(I,"name",{value:W3(j)}),I})():i,h=(()=>{{const{name:I}=f??{};if(I!==void 0)return typeof I!="object"?I:Object.keys(I)[0]}let j;e:{const I=p.displayName;if(typeof I!="string"||I==="")break e;j=I}e:{if(j!==void 0)break e;const I=p.name;if(typeof I!="string"||I==="")break e;j=I}if(j!==void 0)return j=j.replace(/\$/g,"usd"),j=j.replace(/\(/g,"_").replace(/\)/g,"_"),j=j.replace(/[^a-zA-Z0-9-_]/g,"_"),j})(),g=a({...f,name:h})(typeof u=="function"?(j,I,T)=>Z3(u(j,I,T)):Z3(u));function C(j){for(const I in j)if(I!=="root")return!0;return!1}const w=ie.forwardRef(function(j,I){const{className:T,classes:S,...L}=j,{classes:E,cx:D}=g(j,{props:j}),O=D(E.root,T);return e8.set(E,{...E,root:O}),ie.createElement(p,{ref:I,className:C(E)?T:O,...typeof i=="string"?{}:{classes:E},...L})});return h!==void 0&&(w.displayName=`${W3(h)}WithStyles`,Object.defineProperty(w,"name",{value:w.displayName})),w}return c.getClasses=aN,{withStyles:c}}const e8=new WeakMap,H3="getClasses should only be used in conjunction with withStyles";function aN(e){const t=e.classes;if(t===void 0)throw new Error(H3);const n=e8.get(t);if(n===void 0)throw new Error(H3);return n}function Z3(e){const t={},n={};return Object.keys(e).forEach(a=>(a.startsWith("@media")?n:t)[a]=e[a]),Object.keys(n).forEach(a=>{const c=n[a];Object.keys(c).forEach(i=>{var u;return t[i]={...(u=t[i])!==null&&u!==void 0?u:{},[a]:c[i]}})}),t}const sN=!(typeof document=="object"&&typeof(document==null?void 0:document.getElementById)=="function")&&!(typeof jest<"u")&&!(typeof mocha<"u")&&!(typeof __vitest_worker__<"u");function t8(e){r8=0,fi.splice(0,fi.length);const{useContext:t,usePlugin:n,cache:a}=e,{useCache:c}=Kg({cacheProvidedAtInception:a}),{useCssAndCx:i}=qg({useCache:c});return{tss:Gs({useContext:t,useCache:c,useCssAndCx:i,usePlugin:n??(({classes:p,cx:h,css:g})=>({classes:p,cx:h,css:g})),name:void 0,doesUseNestedSelectors:!1})}}let r8=0;const fi=[];function Gs(e){const{useContext:t,useCache:n,useCssAndCx:a,usePlugin:c,name:i,doesUseNestedSelectors:u}=e;return{withParams:()=>Gs({...e}),withName:f=>Gs({...e,name:typeof f!="object"?f:Object.keys(f)[0]}),withNestedSelectors:()=>Gs({...e,doesUseNestedSelectors:!0}),create:f=>{const p=`x${r8++}`;if(i!==void 0)for(;;){const g=fi.find(C=>C.name===i);if(g===void 0)break;fi.splice(fi.indexOf(g),1)}const h=typeof f=="function"?f:()=>f;return function(C){var w,j,I;const{classesOverrides:T,...S}=C??{},L=t(),{css:E,cx:D}=a(),O=n(),F=()=>{const B={},k=h({...C,...L,...u?{classes:typeof Proxy>"u"?{}:new Proxy({},{get:(y,r)=>{if(typeof r=="symbol"&&Wi(!1),sN&&i===void 0)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join(`
89
- `));e:{if(i===void 0)break e;let s=fi.find(l=>l.name===i&&l.idOfUseStyles===p);s===void 0&&(s={name:i,idOfUseStyles:p,nestedSelectorRuleNames:new Set},fi.push(s)),s.nestedSelectorRuleNames.add(r)}e:{if(i===void 0||!(fi.find(l=>l.name===i&&l.idOfUseStyles!==p&&l.nestedSelectorRuleNames.has(r))!==void 0))break e;throw new Error([`tss-react: There are in your codebase two different useStyles named "${i}" that`,`both use use the nested selector ${r}.
90
- `,`This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope.
91
- `,`Solution: Ensure each useStyles using nested selectors has a unique name.
92
- `,'Use: tss.withName("UniqueName").withNestedSelectors<...>()...'].join(" "))}return B[r]=`${O.key}-${i!==void 0?i:p}-${r}-ref`}})}:{}});let z=Gg(xi(k).map(y=>{const r=k[y];return r.label||(r.label=`${i!==void 0?`${i}-`:""}${y}`),[y,`${E(r)}${Hd(y,y in B)?` ${B[y]}`:""}`]}));return xi(B).forEach(y=>{y in z||(z[y]=B[y])}),z=Qd(z,T,D),z},R=cN({cache:O,cssObjectByRuleNameOrGetCssObjectByRuleName:f,classesOverridesRef:bi(T),paramsAndPluginParamsRef:bi(S),idOfUseStyles:p,context:L,getClasses:F}),Q=c({classes:R,css:E,cx:D,idOfUseStyles:p,name:i,...L,...S});return{classes:(w=Q.classes)!==null&&w!==void 0?w:R,css:(j=Q.css)!==null&&j!==void 0?j:E,cx:(I=Q.cx)!==null&&I!==void 0?I:D,...L}}}}}const Ns=new WeakMap;function cN(e){const{cache:t,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:a,paramsAndPluginParamsRef:c,idOfUseStyles:i,context:u,getClasses:f}=e;e:{const h=Ns.get(t);if(h===void 0)break e;const g=h.get(n);if(g===void 0)break e;const C=g.get(a);if(C===void 0)break e;const w=C.get(c);if(w===void 0)break e;const j=w.find(({context:I})=>{if(I===u)return!0;if(xi(I).length!==xi(u).length)return!1;for(const T in I)if(bi(I[T])!==bi(u[T]))return!1;return!0});if(j===void 0)break e;if((j==null?void 0:j.idOfUseStyles)!==i){w.splice(w.indexOf(j),1);break e}return j.result}const p=f();{Ns.has(t)||Ns.set(t,new WeakMap);const h=Ns.get(t);Wi(h!==void 0),h.has(n)||h.set(n,new Map);const g=h.get(n);Wi(g!==void 0),g.has(a)||(g.size>200&&g.clear(),g.set(a,new Map));const C=g.get(a);if(Wi(C!==void 0),!C.has(c)){e:{const j=typeof c=="string"?257:5;if(C.size<j)break e;C.clear()}C.set(c,[])}let w=C.get(c);Wi(w!==void 0),w.length>5&&(w=[]),w.push({idOfUseStyles:i,context:u,result:p})}return p}function lN(e){return{...Xg(e),...oN(e)}}const{tss:fN}=t8({useContext:()=>({})});fN.create({});const{makeStyles:Ht}=lN({useTheme:Dn}),{tss:uN}=t8({useContext:function(){return{theme:Dn()}},usePlugin:Jg});uN.create({});const dN=Ht()((e,{align:t,fontSize:n})=>({title:{fontSize:`${n}px`,width:"100%",textAlign:t,fontFamily:e.typography.fontFamily,[e.breakpoints.down("sm")]:{fontSize:"24px"}}}));function Vd(e){const t={align:e.align||"center",fontSize:e.size||42},{classes:n}=dN(t);return A.jsx("div",{className:n.title,"data-testid":e.testId,children:e.text})}const hN=bt.createSvgIcon(A.jsx("path",{d:"M7 9L12 14L17 9",fill:"none",stroke:"currentColor",strokeOpacity:"0.9",strokeLinecap:"round",strokeLinejoin:"round"}),"Down"),pN=Ht()((e,{align:t})=>({container:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",marginBottom:"0px",[e.breakpoints.down("sm")]:{marginBottom:"20px"}},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},left:{display:"flex",flexGrow:1,alignItems:"center",textAlign:t},arrowBack:{transform:"rotate(90deg)",marginRight:"16px",cursor:"pointer"},description:{fontWeight:"300",fontSize:"14px",opacity:"0.6",marginBottom:"40px"}}));function $a({back:e,title:t,align:n="left",description:a,testId:c}){const{classes:i}=pN({align:n}),u=Sr();function f(){u(Mn("bridge"))}return A.jsxs("div",{className:i.container,children:[A.jsx("div",{className:i.header,children:A.jsxs("div",{className:i.left,children:[e&&A.jsx(hN,{className:i.arrowBack,fontSize:"large",onClick:f}),A.jsx(Vd,{text:t,align:n,testId:c})]})}),a&&A.jsx("div",{className:i.description,children:a})]})}const yn=e=>e.filter(t=>!!t).join(" "),Gr={0:"00",5:"0C",7:"0F",10:"19",15:"26",20:"33",25:"3F",30:"4C",35:"59",40:"66",45:"72",50:"7F",55:"8C",60:"99",65:"A5",70:"B2",75:"BF",80:"CC",85:"D8",90:"E5",95:"F2",100:"FF"},$0={display:"flex",alignItems:"center",justifyContent:"center"},gN={width:"40px",height:"40px",...$0,cursor:"pointer"},mN=(e,t)=>e.length===7?e+Gr[t]:e.length===9?e.slice(0,7)+Gr[t]:e,MN=Ht()(e=>({scrollbar:{"&::-webkit-scrollbar":{display:"none"},"&::-webkit-scrollbar-track":{display:"none",backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{display:"none",backgroundColor:"transparent"},"&:hover::-webkit-scrollbar-thumb":{display:"none",backgroundColor:`${e.palette.text.primary}1a`},"&::-webkit-scrollbar-button":{display:"none"}}})),yN=()=>MN().classes.scrollbar,vN=Ht()(e=>({menuIcon:gN,menu:{display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"},flexDirection:"row",gap:"8px",padding:"8px",width:"100%"},menuItem:{padding:"16px 0",textAlign:"center",fontSize:"14px",margin:"auto",cursor:"pointer","&:hover":{textDecoration:"underline"}}}));function xN(e,t){const{order:n=e.length,target:a="_black",href:c,label:i}=t;return e.splice(n,0,{label:i,handleClick:()=>window.open(c,a)}),e}function bN(e){return[{label:"Resume Transaction",handleClick:()=>e("search")},{label:"Terms of Service",handleClick:()=>e("terms")}]}function Gd(){var c;const{classes:e}=vN(),t=Sr(),n=ie.useCallback(i=>{t(Mn(i))},[t]),a=(((c=ge.ui)==null?void 0:c.menu)??[]).reduce(xN,bN(n));return A.jsx("div",{className:e.menu,children:a.map(({label:i,handleClick:u},f)=>A.jsx("div",{className:e.menuItem,onClick:u,children:i},`${i.toLowerCase()}_${f}`))})}const CN=Ht()(()=>({terms:{width:"100%",maxWidth:"700px",display:"flex",flexDirection:"column",alignItems:"center"},body:{textAlign:"left",display:"flex",flexDirection:"column",fontWeight:"300",ol:{marginBottom:"8px"},li:{marginBottom:"8px"}}}));function wN(){const{classes:e}=CN();return A.jsxs("div",{className:e.terms,children:[A.jsx($a,{title:"Terms of Service",back:!0}),A.jsxs("div",{className:e.body,children:[A.jsx("p",{children:"Last Updated: April 18, 2025"}),A.jsxs("p",{children:["These Terms of Service (the “Agreement”) explain the terms and conditions by which you may access and use the Services provided by W7, LLC (d.b.a. Wormhole Labs) (the “Company,” “we,” “us,” or “our”). The “Services” shall include, but not limited to, the website located at"," ",A.jsx("a",{href:"https://portalbridge.com",target:"_blank",style:{whiteSpace:"nowrap"},children:"https://portalbridge.com"})," ","(the “Interface”), and any app, content, functionality, and services offered on or through the Interface, and all technologies made available from the Interface, together with all of the existing and any updated or new features, functionalities and technologies."]}),A.jsx("p",{children:"You assume all risks associated with using the SDK, the Wormhole protocol, and digital assets and decentralized systems generally, including but not limited to, that: (a) digital assets are highly volatile; (b) using digital assets is inherently risky due to both features of such assets and the potential unauthorized acts of third parties; (c) you may not have ready access to assets; and (d) you may lose some or all of your tokens or other assets. You agree that you will have no recourse against anyone else for any losses due to the use of the SDK or the Wormhole protocol. For example, these losses may arise from or relate to: (i) incorrect information; (ii) software or network failures; (iii) corrupted cryptocurrency wallet files; (iv) unauthorized access; (v) errors, mistakes, or inaccuracies; or (vi) third-party activities."}),A.jsx("p",{children:"You must read this Agreement carefully as it governs your use of the Services. By accessing or using any of the Services, you (on behalf of yourself or the entity that you represent) signify that you have read, understand, and agree to be bound by, this Agreement and our Privacy Policy in its entirety, and you represent and warrant that you have the willingness, right, authority, and capacity lawfully to enter into this Agreement (on behalf of yourself or the entity that you represent). If you do not agree, you are not authorized to access or use any of our Services and should not use our Services."}),A.jsx("p",{children:"To access or use any of our Services, you must be able to form a legally binding contract with us. Accordingly, you represent that you are at least the age of majority in your jurisdiction (e.g., 18 years old in the United States) and have the full right, power, and authority to enter into and comply with the terms and conditions of this Agreement on behalf of yourself and any company or legal entity for which you may access or use the Interface. If you are entering into this Agreement on behalf of an entity, you represent to us that you have the legal authority to bind such entity."}),A.jsx("p",{children:"You further represent that you are not (a) the subject of economic or trade sanctions administered or enforced by any governmental authority or otherwise designated on any list of prohibited or restricted parties (including but not limited to the list maintained by the Office of Foreign Assets Control of the U.S. Department of the Treasury) or (b) a citizen, resident, or organized in a jurisdiction or territory that is the subject of comprehensive country-wide, territory-wide, or regional economic sanctions by the United States. Finally, you represent that your access and use of any of our Services will fully comply with all applicable laws and regulations, and that you will not access or use any of our Services to conduct, promote, or otherwise facilitate any illegal activity."}),A.jsx("p",{children:"NOTICE: This Agreement contains important information, including a binding arbitration provision and a class action waiver, both of which impact your rights as to how disputes are resolved. Our Services are only available to you — and you should only access any of our Services — if you agree completely with these terms."}),A.jsxs("ol",{children:[A.jsxs("li",{children:["Modifications of this Agreement or our Services"," ",A.jsxs("ol",{type:"a",children:[A.jsx("li",{children:"Modifications of this Agreement. We reserve the right, in our sole discretion, to modify this Agreement from time to time. If we make any material modifications, we will notify you by updating the date at the top of the Agreement and by maintaining a current version of the Agreement at https://portalbridge.com/terms-of-use. All modifications will be effective when they are posted, and your continued accessing or use of any of the Services will serve as confirmation of your acceptance of those modifications. If you do not agree with any modifications to this Agreement, you must immediately stop accessing and using all of our Services."}),A.jsx("li",{children:"Modifications of our Services. We reserve the following rights, which do not constitute obligations of ours: (a) with or without notice to you, to modify, substitute, eliminate or add to any of the Services; (b) to review, modify, filter, disable, delete, and remove any and all content and information from any of the Services."})]})]}),A.jsxs("li",{children:["Intellectual Property Rights",A.jsxs("ol",{type:"a",children:[A.jsxs("li",{children:["General",A.jsxs("ol",{type:"i",children:[A.jsx("li",{children:"The Services and their entire contents, features, and functionality (including but not limited to all information, software, text, displays, images, video and audio, and the design, selection, and arrangement thereof), are owned by us, our licensors or other providers of such material and are protected by copyright, trademark, patent, trade secret, and other intellectual property or proprietary rights laws. Neither the Agreement (nor your use of the Services) transfers to you or any third party any rights, title, or interest in or to such intellectual property rights, except as indicated otherwise."}),A.jsx("li",{children:"Subject to the terms of this Agreement, we grant you a limited, revocable, non-exclusive, non-sublicensable, non-transferable license to access and use our Services solely in accordance with this Agreement. You agree that you will not use, modify, distribute, tamper with, reverse engineer, disassemble or decompile any of our Services for any purpose other than as expressly permitted pursuant to this Agreement. Except as set forth in this Agreement, we grant you no rights to any of our Services, including any intellectual property rights."})]})]}),A.jsx("li",{children:"Feedback. If you provide us with any feedback or suggestions regarding the Services (“Feedback”), you hereby assign to us all rights in such Feedback and agree that we have the right to use and fully exploit such Feedback and related information in any manner we deem appropriate. Any Feedback you provide will be treated as non-confidential and non-proprietary, and we will be entitled to the unrestricted use and dissemination of such Feedback for any purpose, commercial or otherwise, without acknowledgment, attribution, or compensation to you."})]})]}),A.jsxs("li",{children:["Your Use of the Services",A.jsxs("ol",{type:"a",children:[A.jsxs("li",{children:["Prohibited Uses. You may use the Services only for lawful purposes and in accordance with the Agreement. You agree not to:",A.jsxs("ol",{type:"i",children:[A.jsx("li",{children:"use the Services in any way that violates any applicable federal, state, local, or international law or regulation, including, without limitation, any applicable sanctions laws, export control laws, securities or other financial regulatory laws, anti-money laundering laws, or privacy laws;"}),A.jsx("li",{children:"use any device, software or routine that interferes with the proper working of any Service;"}),A.jsx("li",{children:"attempt to probe, scan or test the vulnerability of the Services, or otherwise seek to interfere with or compromise the integrity, security, or proper functioning of the Services;"}),A.jsx("li",{children:"attempt to interfere with the proper working of the Services, or interfere with, damage, or disrupt any parts of the Services, the server(s) on which the Services is stored, or any server, computer or database connected to the Services;"}),A.jsx("li",{children:"engage in any other conduct that restricts or inhibits anyone's use or enjoyment of the Services, or which, as determined by us, may harm us or users of the Services or expose them to liability; or"}),A.jsx("li",{children:"encourage or enable any other individual to do any of the foregoing."})]})]}),A.jsxs("li",{children:["Your Responsibilities. By using the Services, you agree and understand that:",A.jsxs("ol",{type:"i",children:[A.jsx("li",{children:"You are solely responsible for your use of the Services and interactions with the Protocol, including all of your transfers of digital assets; all transactions you submit to the Protocol are considered unsolicited, which means that they are solely initiated by you;"}),A.jsx("li",{children:"to the fullest extent not prohibited by applicable laws, we owe no fiduciary duties or liabilities to you or any other party, and that to the extent any such duties or liabilities may exist at law or in equity, you hereby irrevocably disclaim, waive, and eliminate those duties and liabilities;"}),A.jsx("li",{children:"You are solely responsible for reporting and paying any taxes applicable to your use of the Services;"}),A.jsx("li",{children:"We have no control over, or liability for, the delivery, quality, safety, legality, or any other aspect of any digital assets that you may transfer to or from a third party, and we are not responsible for ensuring that a counterparty with whom you transact completes the transaction or is authorized to do so;"}),A.jsx("li",{children:"The Services are non-custodial application, meaning we do not ever have custody, possession, or control of your digital assets at any time; we accept no responsibility for, or liability to you, in connection with your use of a wallet and make no representations or warranties regarding how any of our Services will operate with any specific wallet; likewise, you are solely responsible for any associated wallet and we are not liable for any acts or omissions by you in connection with or as a result of your wallet being compromised; and"}),A.jsx("li",{children:"Transactions that take place on a blockchain network require the payment of transaction fees to the validators or node operators of the relevant network (“Gas Fees”); you will be solely responsible to pay the Gas Fees for any transaction that you initiate via any of our Services."})]})]}),A.jsx("li",{children:"Release of Claims. You expressly agree that you assume all risks in connection with your use of the Services. You further expressly waive and release us, as well as its affiliates and service providers, and each of their respective past, present and future officers, directors, members, employees, consultants, representatives and agents, and each of their respective successors and assigns from any and all liability, claims, causes of action, or damages arising from or in any way relating to your use of the Services."})]})]}),A.jsxs("li",{children:["Disclaimers",A.jsxs("ol",{type:"a",children:[A.jsx("li",{children:"EACH OF OUR SERVICES IS PROVIDED ON AN “AS IS” AND “AS AVAILABLE” BASIS. TO THE FULLEST EXTENT PERMITTED BY LAW, WE DISCLAIM ANY REPRESENTATIONS AND WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. YOU ACKNOWLEDGE AND AGREE THAT YOUR USE OF EACH OF OUR SERVICES IS AT YOUR OWN RISK. WE DO NOT REPRESENT OR WARRANT THAT ACCESS TO ANY OF OUR SERVICES WILL BE CONTINUOUS, UNINTERRUPTED, TIMELY, OR SECURE; THAT THE INFORMATION CONTAINED IN ANY OF OUR SERVICES WILL BE ACCURATE, RELIABLE, COMPLETE, OR CURRENT; OR THAT ANY OF OUR SERVICES WILL BE FREE FROM ERRORS, DEFECTS, VIRUSES, OR OTHER HARMFUL ELEMENTS. NO ADVICE, INFORMATION, OR STATEMENT THAT WE MAKE SHOULD BE TREATED AS CREATING ANY WARRANTY CONCERNING ANY OF OUR SERVICES."}),A.jsx("li",{children:"SIMILARLY, THE PROTOCOL IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. WE DO NOT PROVIDE, OWN OR CONTROL THE PROTOCOL, WHICH OPERATES AUTONOMOUSLY ON BLOCKCHAINS SUBJECT TO GOVERNANCE BY A DECENTRALIZED SET OF VALIDATORS. NO DEVELOPER OR ENTITY INVOLVED IN CREATING THE PROTOCOL WILL BE LIABLE FOR ANY CLAIMS OR DAMAGES WHATSOEVER ASSOCIATED WITH YOUR USE, INABILITY TO USE, OR YOUR INTERACTION WITH OTHER USERS OF, THE PROTOCOL, INCLUDING ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR LOSS OF PROFITS, CRYPTOCURRENCIES, TOKENS, OR ANYTHING ELSE OF VALUE. WE DO NOT ENDORSE, GUARANTEE, OR ASSUME RESPONSIBILITY FOR ANY ADVERTISEMENTS, OFFERS, OR STATEMENTS MADE BY THIRD PARTIES CONCERNING ANY OF OUR SERVICES."}),A.jsx("li",{children:"Information Only. You agree that the information presented on or through the Services are for general informational purposes only. We do not warrant the accuracy, completeness or usefulness of this information. Any reliance you place on such information is strictly at your own risk. We disclaim all liability and responsibility arising from any reliance placed on such materials by you or any other visitor to our Services, or by anyone who may be informed of any of its contents."}),A.jsx("li",{children:"Third Party Information. The Services may include content provided by third parties, including materials provided by other users, bloggers and third-party licensors, syndicators, aggregators, and/or reporting services. All statements and/or opinions expressed in these materials, and all articles and responses to questions and other content are solely the opinions and the responsibility of the person or entity providing those materials. These materials do not necessarily reflect our opinion. We are not responsible, or liable to you or any third party, for the content or accuracy of any materials provided by any third parties."})]})]}),A.jsxs("li",{children:["Indemnification",A.jsx("ol",{type:"a",children:A.jsx("li",{children:"To the fullest extent permitted by applicable laws, you agree to indemnify, defend and hold harmless us, as well as its affiliates and service providers, and each of their respective past, present and future officers, directors, members, employees, consultants, representatives and agents, and each of their respective successors and assigns (the “Indemnified Parties”) from and against all actual or alleged third party claims, damages, awards, judgments, losses, liabilities, obligations, taxes, penalties, interest, fees, expenses (including, without limitation, attorneys’ fees and expenses) and costs (including, without limitation, court costs, costs of settlement and costs of pursuing indemnification and insurance), of every kind and nature whatsoever, whether known or unknown, foreseen or unforeseen, matured or unmatured, or suspected or unsuspected, in law or equity, whether in tort, contract or otherwise (collectively, “Claims”), including, but not limited to, damages to property or personal injury, that are caused by, arise out of or are related to: (a) your access and use of any of our Services; (b) your violation of any term or condition of this Agreement, the right of any third party, or any other applicable law, rule, or regulation; (c) any other party’s access and use of any of our Services with your assistance or using any device or account that you own or control; (d) any dispute between you and (i) any other user of any of the Services or (ii) any of your own customers or users; and (e) your negligence or willful misconduct. You agree to promptly notify us of any third-party Claims and cooperate with the Indemnified Parties in defending such Claims. You further agree that the Indemnified Parties shall have the right to control the defense or settlement of any third-party Claims as they relate to us, if it so chooses."})})]}),A.jsxs("li",{children:["LIMITATION OF LIABILITY",A.jsx("ol",{type:"a",children:A.jsx("li",{children:"TO THE FULLEST EXTENT ALLOWED BY APPLICABLE LAW, UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, TORT, CONTRACT, STRICT LIABILITY, OR OTHERWISE) SHALL THE INDEMNIFIED PARTIES OR ANY OF THEM BE LIABLE TO YOU OR TO ANY OTHER PERSON FOR: (A) ANY INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND, INCLUDING DAMAGES FOR LOST PROFITS, BUSINESS INTERRUPTION, LOSS OF DATA, LOSS OF GOODWILL, WORK STOPPAGE, ACCURACY OF RESULTS, OR COMPUTER FAILURE OR MALFUNCTION; (B) ANY SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY; (C) ANY AMOUNT, IN THE AGGREGATE, IN EXCESS OF ONE-HUNDRED ($100) DOLLARS; OR (D) ANY MATTER BEYOND THE REASONABLE CONTROL OF THE INDEMNIFIED PARTIES OR ANY OF THEM. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL OR CERTAIN OTHER DAMAGES, SO THE ABOVE LIMITATIONS AND EXCLUSIONS MAY NOT APPLY TO YOU."})})]}),A.jsxs("li",{children:["Governing Law, Dispute Resolution and Class Action Waivers",A.jsxs("ol",{type:"a",children:[A.jsx("li",{children:"Governing Law: You agree that the laws of the State of New York, without regard to principles of conflict of laws, govern this Agreement and any Dispute between you and us. You further agree that each of our Service shall be deemed to be based solely in the State of New York, and that although Service may be available in other jurisdictions, its availability does not give rise to general or specific personal jurisdiction in any forum outside the State of New York. The parties acknowledge that this Agreement evidences interstate commerce. Any arbitration conducted pursuant to this Agreement shall be governed by the Federal Arbitration Act. You agree that the federal and state courts of New York County, New York are the proper forum for any appeals of an arbitration award or for court proceedings in the event that this Agreement’s binding arbitration clause is found to be unenforceable."}),A.jsx("li",{children:"Dispute Resolution: Any claim or controversy arising out of or relating to any of our Services, this Agreement, or any other acts or omissions for which you may contend that we are liable, including, but not limited to, any claim or controversy as to arbitrability (“**Dispute**”), shall be finally and exclusively settled by arbitration under the JAMS Optional Expedited Arbitration Procedures. You understand that you are required to resolve all Disputes by binding arbitration. The arbitration shall be held on a confidential basis before a single arbitrator, who shall be selected pursuant to JAMS rules, including where applicable the JAMS’ Mass Arbitration Procedures and Guidelines. The arbitration will be held in New York, New York, unless you and we both agree to hold it elsewhere. Unless we agree otherwise, the arbitrator may not consolidate your claims with those of any other party. Any judgment on the award rendered by the arbitrator may be entered in any court of competent jurisdiction. If for any reason a claim by law or equity must proceed in court rather than in arbitration you agree to waive any right to a jury trial and any claim may be brought only in a Federal District Court or a New York state court located in New York County, New York."}),A.jsx("li",{children:"Class Action and Jury Trial Waiver: You must bring any and all Disputes against us in your individual capacity and not as a plaintiff in or member of any purported class action, collective action, private attorney general action, or other representative proceeding. This provision applies to class arbitration. You and we both agree to waive the right to demand a trial by jury."})]})]}),A.jsxs("li",{children:["Miscellaneous",A.jsxs("ol",{type:"a",children:[A.jsx("li",{children:"Entire Agreement. These terms, together with the Privacy Policy, constitute the entire agreement between you and us with respect to the subject matter hereof. This Agreement supersedes any and all prior or contemporaneous written and oral agreements, communications and other understandings (if any) relating to the subject matter of the terms."}),A.jsx("li",{children:"Assignment. You may not assign or transfer this Agreement, by operation of law or otherwise, without our prior written consent. Any attempt by you to assign or transfer this Agreement without our prior written consent shall be null and void. We may freely assign or transfer this Agreement. Subject to the foregoing, this Agreement will bind and inure to the benefit of the parties, their successors and permitted assigns."}),A.jsx("li",{children:"Not Registered with Any Governmental Agency. We are not registered with any governmental agency in any other capacity. You understand and acknowledge that we do not broker trading orders on your behalf. We also do not facilitate the execution or settlement of your trades, which occur entirely on public distributed blockchains like Ethereum. As a result, we do not (and cannot) guarantee market best pricing or best execution through our Services."}),A.jsx("li",{children:"Notice. We may provide any notice to you under this Agreement using commercially reasonable means, including using public communication channels. Notices we provide by using public communication channels will be effective upon posting. You can contact us at contact@wormholelabs.xyz."}),A.jsx("li",{children:"Severability. If any provision of this Agreement shall be determined to be invalid or unenforceable under any rule, law, or regulation of any local, state, or federal government agency, such provision will be changed and interpreted to accomplish the objectives of the provision to the greatest extent possible under any applicable law and the validity or enforceability of any other provision of this Agreement shall not be affected."})]})]})]})]}),A.jsx(Gd,{})]})}const NN=Ht()((e,{align:t})=>({input:{width:"100%",border:"none",backgroundImage:"none",backgroundColor:"transparent",background:"transparent",fontSize:"inherit",boxShadow:"none",webkitBoxShadow:"none",moxBoxShadow:"none",outline:"none",flexGrow:"1",textAlign:t||"left"}})),jN=/^\d*\.?\d*$/,TN=/[^0-9.]/g;function AN(e){const{classes:t}=NN({align:e.align}),n=c=>{e.type==="number"&&!jN.test(c.target.value)&&(c.target.value=c.target.value.replace(TN,"")),e.onChange&&e.onChange(c)},a=c=>{c.key==="Enter"&&e.onEnter&&e.onEnter(c)};return A.jsx("input",{ref:e.inputRef,id:e.id,className:t.input,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,onChange:n,onKeyDown:a,readOnly:e.disabled,value:e.value,"data-testid":e.testId})}const n8=bt.createSvgIcon(A.jsx("path",{d:"M21.0008 21.0008L15.8038 15.8038M15.8038 15.8038C17.2104 14.3972 18.0006 12.4895 18.0006 10.5003C18.0006 8.51108 17.2104 6.60336 15.8038 5.19678C14.3972 3.79021 12.4895 3 10.5003 3C8.51108 3 6.60336 3.79021 5.19678 5.19678C3.79021 6.60336 3 8.51108 3 10.5003C3 12.4895 3.79021 14.3972 5.19678 15.8038C6.60336 17.2104 8.51108 18.0006 10.5003 18.0006C12.4895 18.0006 14.3972 17.2104 15.8038 15.8038V15.8038Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),"Search"),IN=Ht()(e=>({searchContent:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},container:{width:"100%",padding:"16px",borderRadius:"8px",backgroundColor:e.palette.card.secondary},input:{flexGrow:1},searchBorder:{border:`1px solid ${mN(e.palette.divider,50)}`,borderRadius:"8px"},clickable:{cursor:"pointer"}}));function EN(e){const{classes:t}=IN(),n=ie.useRef(null),a=()=>{n.current&&n.current.focus()};return ie.useEffect(()=>{a()},[]),A.jsx("div",{className:t.searchBorder,children:A.jsx("div",{className:t.container,onClick:a,children:A.jsxs("div",{className:t.searchContent,children:[A.jsx("div",{className:t.input,children:A.jsx(AN,{value:e.value,inputRef:n,placeholder:e.placeholder,onChange:e.onChange,onEnter:e.onSearch})}),A.jsx("div",{onClick:e.onSearch,className:e.onSearch&&t.clickable,children:A.jsx(n8,{})})]})})})}const LN=Ht()(e=>({button:{width:"100%",backgroundColor:e.palette.button.primary,color:e.palette.button.primaryText,borderRadius:"8px",display:"flex",justifyContent:"center",alignItems:"center",padding:"12px 64px",cursor:"pointer",textAlign:"center"},disabled:{cursor:"not-allowed",pointerEvents:"none",backgroundColor:e.palette.button.disabled+" !important",color:e.palette.button.disabledText+" !important"},elevated:{boxShadow:e.palette.card.elevation},action:{backgroundColor:e.palette.button.action,color:e.palette.button.actionText},link:{backgroundColor:"transparent"}}));function SN(e){const{classes:t}=LN(),n=a=>{e.onClick&&!e.disabled&&e.onClick(a)};return A.jsx("div",{className:yn([t.button,!!e.elevated&&t.elevated,!!e.action&&t.action,!!e.link&&t.link,!!e.disabled&&t.disabled]),onClick:n,"data-testid":e.testId,children:e.children})}function DN(e){return A.jsx("div",{style:{height:`${e.height||24}px`}})}const ON=bt.createSvgIcon(A.jsx("path",{d:"M12.0003 9.99993V13.7499M2.69731 17.1259C1.83131 18.6259 2.91431 20.4999 4.64531 20.4999H19.3553C21.0853 20.4999 22.1683 18.6259 21.3033 17.1259L13.9493 4.37793C13.0833 2.87793 10.9173 2.87793 10.0513 4.37793L2.69731 17.1259ZM12.0003 16.7499H12.0073V16.7579H12.0003V16.7499Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),"Alert"),zN=Ht()(e=>({base:{width:"100%",padding:"8px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"10px",borderRadius:"8px"},error:{backgroundColor:e.palette.error[500]+Gr[25]},warning:{backgroundColor:e.palette.warning[500]+Gr[25]}}));function kN(e){const{classes:t}=zN();return A.jsx(bt.Collapse,{in:e.show&&!!e.content,unmountOnExit:!0,children:A.jsxs("div",{className:yn([t.base,!!e.warning&&t.warning,!!e.error&&t.error]),style:{margin:e.margin||0},"data-testid":e.testId,children:[A.jsx(ON,{}),e.content]})})}const ao=ie.createContext({route:null,receipt:null,setRoute:()=>{},setReceipt:()=>{},clear:()=>{}}),_N=({children:e})=>{const[t,n]=ie.useState(null),[a,c]=ie.useState(null),i=ie.useCallback(()=>{n(null),c(null)},[]);return A.jsx(ao.Provider,{value:{route:t,receipt:a,setRoute:n,setReceipt:c,clear:i},children:e})},Q3=["Linea","Sonic"];function BN(e,t,n,a){const c=typeof e=="string"?e:e.constructor.meta.name;return c.startsWith("MayanSwap")?{url:`https://explorer.mayan.finance/swap/${t}`,name:"Mayan Explorer"}:ha(c)&&(Q3.includes(n)||Q3.includes(a))?{url:ge.isMainnet?`https://usdc.range.org/usdc/status/${t}`:"",name:"USDC.range Explorer"}:{url:`${Co.WORMSCAN}tx/${t}${ge.isMainnet?"":"?network=TESTNET"}`,name:"Wormholescan"}}async function FN(e,t){switch(e){case"ManualTokenBridge":return await RN(t);case"ManualCCTP":return await PN(t);case"ManualNtt":return V3(t);case"AutomaticNtt":return V3(t);case"ManualTBTC":return UN(t);case"CCTPv2StandardExecutorRoute":case"CCTPv2FastExecutorRoute":return YN(t);default:throw new Error(`Unknown route type ${e}`)}}const RN=async e=>{const t={toChain:e.to,fromChain:e.from};if("originTxs"in e&&e.originTxs.length>0)t.sendTx=e.originTxs[e.originTxs.length-1].txid;else throw new Error("Can't find txid in receipt");const{payload:n}=e.attestation.attestation;if(!n.token)throw new Error("Attestation is missing token.");if(n.token){const a=await qr(),c=a.getChain(e.from),i=a.getChain(e.to),u=await Bu(c,n.token);if(!u)throw new Error("Unknown source token");const f=await Bu(i,n.token);if(!f)throw new Error("Unknown destination token");t.tokenDecimals=u.decimals,t.amount=_.fromBaseUnits(n.token.amount,Math.min(8,u.decimals)),t.tokenAddress=u.address.toString(),t.token=u.tuple,t.receivedToken=f.tuple,t.receiveAmount=t.amount}if(n.to)if(e.to==="Solana"){if(!ge.rpcs.Solana)throw new Error("Missing Solana RPC");const a=n.to.address.toNative(e.to).toString(),c=new _.Connection(ge.rpcs.Solana);try{const i=await ui.getAccount(c,new _.PublicKey(a));t.recipient=i.owner.toBase58()}catch(i){console.error(i),t.recipient=a}}else t.recipient=n.to.address.toNative(e.to).toString();return t},PN=async e=>{const t={toChain:e.to,fromChain:e.from};if("originTxs"in e&&e.originTxs.length>0)t.sendTx=e.originTxs[e.originTxs.length-1].txid;else throw new Error("Can't find txid in receipt");if(!e.attestation.attestation)throw new Error("Missing Circle attestation");const{payload:n}=e.attestation.attestation.message,a=_.Wormhole.tokenId(e.from,e.from==="Sui"?_.usdcContract.get(ge.network,e.from):n.burnToken.toNative(e.from).toString()),c=ge.tokens.get(a);if(!c)throw new Error("Couldn't find USDC for source chain");if(t.tokenAddress=a.address.toString(),t.token=c.tuple,t.tokenDecimals=c.decimals,t.amount=_.fromBaseUnits(n.amount,c.decimals),t.receiveAmount=t.amount,t.sender=n.messageSender.toNative(e.from).toString(),e.to==="Solana"){if(!ge.rpcs.Solana)throw new Error("Missing Solana RPC");const i=n.mintRecipient.toNative(e.to).toString(),u=new _.Connection(ge.rpcs.Solana);try{const f=await ui.getAccount(u,new _.PublicKey(i));t.recipient=f.owner.toBase58()}catch(f){console.error(f),t.recipient=i}}else t.recipient=n.mintRecipient.toNative(e.to).toString();if(t.toChain){const i=_.usdcContract.get(ge.network,t.toChain);if(!i)throw new Error("Couldn't find USDC for destination chain");const u=ge.tokens.get(t.toChain,i);if(!u)throw new Error("Couldn't find USDC for destination chain");t.receivedToken=u.tuple}return t},V3=e=>{let t="";if("originTxs"in e&&e.originTxs.length>0)t=e.originTxs[e.originTxs.length-1].txid;else throw new Error("Can't find txid in receipt");const n=_.Wormhole.tokenId(e.from,e.params.normalizedParams.sourceContracts.token),a=ge.tokens.get(n);if(!a)throw new Error("Unknown src token");const c=_.Wormhole.tokenId(e.to,e.params.normalizedParams.destinationContracts.token),i=ge.tokens.get(c);if(!i)throw new Error("Unknown dst token");const{attestation:u}=e.attestation,{payload:f}=u.payloadName==="WormholeTransfer"?u:u.payload,{trimmedAmount:p}=f.nttManagerPayload.payload,h=_.fromBaseUnits(p.amount,p.decimals);return{toChain:e.to,fromChain:e.from,sendTx:t,sender:f.nttManagerPayload.sender.toNative(e.from).toString(),recipient:f.nttManagerPayload.payload.recipientAddress.toNative(e.to).toString(),amount:h,tokenAddress:a.tokenId.address.toString(),token:a.tuple,tokenDecimals:p.decimals,receivedToken:i.tuple,receiveAmount:h,relayerFee:void 0}},UN=async e=>{var h;const t={toChain:e.to,fromChain:e.from};if("originTxs"in e&&e.originTxs.length>0)t.sendTx=e.originTxs[e.originTxs.length-1].txid;else throw new Error("Can't find txid in receipt");const{payload:n}=e.attestation.attestation;if(!n.token)throw new Error("Attestation is missing token.");const a=await qr(),c=a.getChain(e.from),i=a.getChain(e.to),u=async(g,C)=>{const w=_.TBTCBridge.getNativeTbtcToken(g.chain);return w?ge.tokens.get(w):await Bu(g,C)},f=await u(c,n.token);if(!f)throw new Error("Unknown source token");const p=await u(i,n.token);if(!p)throw new Error("Unknown destination token");return t.tokenDecimals=f.decimals,t.amount=_.fromBaseUnits(n.token.amount,Math.min(8,f.decimals)),t.tokenAddress=f.address.toString(),t.token=f.tuple,t.receivedToken=p.tuple,t.receiveAmount=t.amount,t.recipient=(((h=n.payload)==null?void 0:h.recipient)??n.to.address).toNative(e.to).toString(),t},YN=async e=>{const t={toChain:e.to,fromChain:e.from};if("originTxs"in e&&e.originTxs.length>0)t.sendTx=e.originTxs[e.originTxs.length-1].txid;else throw new Error("Can't find txid in receipt");if(!e.attestation.attestation)throw new Error("Missing Circle attestation");const{messageBody:n}=e.attestation.attestation.message,a=_.Wormhole.tokenId(e.from,n.burnToken.toNative(e.from).toString()),c=ge.tokens.get(a);if(!c)throw new Error("Couldn't find USDC for source chain");if(t.tokenAddress=a.address.toString(),t.token=c.tuple,t.tokenDecimals=c.decimals,t.amount=_.fromBaseUnits(n.amount,c.decimals),t.receiveAmount=t.amount,t.recipient=n.mintRecipient.toNative(e.to).toString(),t.toChain){const i=_.usdcContract.get(ge.network,t.toChain);if(!i)throw new Error("Couldn't find USDC for destination chain");const u=ge.tokens.get(t.toChain,i);if(!u)throw new Error("Couldn't find USDC for destination chain");t.receivedToken=u.tuple}return t},WN=e=>typeof e=="object"&&typeof e.amount=="string"&&typeof e.decimals=="number",HN=e=>{const t=e;return WN(t==null?void 0:t.min)},Bu=async(e,t)=>{const n=await e.getTokenBridge(),{chain:a}=e,c=t.chain===a?await n.getTokenNativeAddress(t.chain,t.address):await n.getWrappedAsset({chain:t.chain,address:t.address}),u=(await n.getWrappedNative()).toString()===c.toString()?_.nativeTokenId(a):_.Wormhole.tokenId(a,c.toString());return ge.tokens.get(u)};function ZN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"white"}),A.jsx("path",{d:"M29.8809 18.0146C29.8809 11.5195 24.5917 6.25427 18.0682 6.25427C11.5446 6.25427 6.25415 11.5195 6.25415 18.0146C6.25415 19.3574 6.4807 20.6472 6.89662 21.8493C6.8992 21.8547 6.92193 21.9236 6.92193 21.9236C7.08986 22.4557 6.25673 22.664 6.25673 22.9825C6.25673 23.4814 8.01354 23.4138 8.01354 23.9936C8.01354 24.4992 6.27541 24.6558 6.27541 25.1652C6.27541 25.8699 10.1237 25.6244 10.173 26.2294C10.2104 26.6965 8.84943 26.7257 8.84142 27.2246C8.82808 28.0221 14.0933 27.7607 14.0933 28.2914C14.0933 28.6935 11.6979 28.5475 11.6979 29.0226C11.6979 29.4976 14.8504 29.7975 18.3254 29.7975C21.8005 29.7975 24.1971 29.4127 24.1971 28.9973C24.1971 28.582 21.9604 28.667 22.0071 28.2927C22.087 27.6386 27.0523 27.973 27.0523 27.2153C27.0523 26.8159 25.6874 26.723 25.7314 26.2931C25.7941 25.6854 29.8809 25.7756 29.8809 25.1441C29.8809 24.6478 27.8548 24.5257 27.8588 24.0095C27.8615 23.4827 29.8809 23.5054 29.8675 23.0117C29.8569 22.6322 28.9638 22.6415 29.2437 21.8374C29.668 20.6075 29.8843 19.3155 29.8835 18.0146H29.8809ZM26.1273 21.3544C25.7167 22.2793 24.7943 22.0935 24.6903 22.4823C24.5824 22.8843 25.8274 22.9427 25.8274 23.3633C25.8274 23.8742 22.0324 23.6698 22.0697 24.3439C22.0938 24.7685 24.765 24.8401 24.7143 25.2833C24.641 25.9256 20.5755 25.6045 20.5355 26.2202C20.5062 26.6713 22.5203 26.6872 22.5243 27.0986C22.5283 27.4449 20.9434 27.6333 17.9069 27.6333C14.4492 27.6333 12.767 27.4476 12.9589 27.0614C13.1376 26.7005 16.1994 26.7669 16.1687 26.1989C16.1381 25.6324 10.7316 25.7982 10.5689 25.2475C10.433 24.7898 12.3457 24.6955 12.3338 24.2603C12.3217 23.8171 9.88509 23.918 9.83181 23.3806C9.79712 23.0289 11.1048 23.0502 11.0488 22.607C11.0074 22.2845 10.4676 22.3296 10.1477 21.6649C9.61569 20.5211 9.3404 19.2747 9.34118 18.0133C9.34118 13.2152 13.2495 9.32477 18.0695 9.32477C22.8895 9.32477 26.7977 13.2152 26.7977 18.0133C26.7977 19.1969 26.5591 20.3248 26.1286 21.3531L26.1273 21.3544Z",fill:"black"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.89666 21.8493C6.48075 20.6472 6.25419 19.3574 6.25419 18.0145C6.25419 11.5194 11.5447 6.25422 18.0682 6.25422C24.5917 6.25422 29.8809 11.5194 29.8809 18.0145H29.8836C29.8843 19.3155 29.6681 20.6075 29.2438 21.8373C29.0703 22.336 29.3477 22.5218 29.586 22.6816C29.7321 22.7794 29.8635 22.8675 29.8676 23.0117C29.8742 23.2549 29.387 23.3728 28.8909 23.4929C28.3803 23.6164 27.8602 23.7424 27.8588 24.0095C27.8569 24.2703 28.373 24.4304 28.8843 24.5891C29.385 24.7445 29.8809 24.8984 29.8809 25.144C29.8809 25.4639 28.8325 25.5986 27.7896 25.7326C26.7734 25.8633 25.7624 25.9932 25.7315 26.293C25.7088 26.514 26.0584 26.646 26.4035 26.7762C26.7299 26.8995 27.0524 27.0212 27.0524 27.2153C27.0524 27.6089 25.7124 27.7078 24.4135 27.8036C23.212 27.8923 22.0455 27.9784 22.0071 28.2927C21.9843 28.4758 22.5077 28.5489 23.0486 28.6245C23.6134 28.7035 24.1972 28.7851 24.1972 28.9973C24.1972 29.4126 21.8005 29.7975 18.3255 29.7975C14.8504 29.7975 11.698 29.4976 11.698 29.0225C11.698 28.7751 12.3478 28.6961 12.9704 28.6205C13.5434 28.5509 14.0933 28.484 14.0933 28.2914C14.0933 28.053 13.0312 27.9745 11.8623 27.8879C10.4285 27.7818 8.83415 27.6639 8.84146 27.2246C8.84542 26.9732 9.19283 26.8411 9.53179 26.7121C9.86577 26.5851 10.1916 26.4612 10.1731 26.2293C10.1494 25.939 9.25084 25.8445 8.32243 25.7469C7.31646 25.6411 6.27554 25.5317 6.27554 25.1652C6.27554 24.91 6.71169 24.7432 7.14715 24.5769C7.5808 24.4113 8.01367 24.2458 8.01367 23.9935C8.01367 23.6928 7.54086 23.5662 7.08577 23.4444C6.66366 23.3314 6.25686 23.2225 6.25686 22.9825C6.25686 22.8523 6.39587 22.7406 6.549 22.6176C6.77056 22.4397 7.0213 22.2383 6.92197 21.9236C6.92197 21.9236 6.89933 21.8546 6.89666 21.8493ZM6.83176 21.9528C6.86499 22.0584 6.84898 22.1443 6.80585 22.223C6.76023 22.3063 6.6832 22.3829 6.59127 22.4606C6.56131 22.4859 6.52843 22.5123 6.49512 22.5392C6.43315 22.589 6.36928 22.6404 6.31866 22.689C6.24085 22.7639 6.16201 22.8609 6.16201 22.9825C6.16201 23.0764 6.20453 23.1531 6.26607 23.2132C6.32581 23.2718 6.40612 23.3178 6.49305 23.3562C6.65247 23.4268 6.85888 23.482 7.05943 23.5356L7.11074 23.5494C7.33229 23.6089 7.54206 23.6681 7.69657 23.7459C7.85478 23.8257 7.9189 23.9062 7.9189 23.9935C7.9189 24.0271 7.90513 24.0633 7.86812 24.1052C7.83024 24.1479 7.77214 24.1915 7.69485 24.2359C7.53974 24.3252 7.3304 24.4053 7.11082 24.4892L7.10798 24.4903C6.89382 24.5721 6.66985 24.6577 6.49968 24.7561C6.41395 24.8057 6.33614 24.8616 6.27907 24.9266C6.22105 24.9925 6.18068 25.0721 6.18068 25.1652C6.18068 25.3039 6.277 25.4022 6.39295 25.4703C6.51061 25.5395 6.67218 25.5926 6.85578 25.636C7.22427 25.7232 7.71318 25.7781 8.19581 25.829L8.31141 25.8412C8.75763 25.8881 9.19111 25.9338 9.52482 26C9.70653 26.0362 9.85157 26.0772 9.95064 26.1245C10.0558 26.1748 10.0769 26.2163 10.0786 26.2371C10.0835 26.298 10.0468 26.3596 9.93187 26.4311C9.81903 26.5014 9.66237 26.5609 9.49134 26.626L9.49056 26.6262C9.3247 26.6894 9.14548 26.7577 9.00794 26.8438C8.87185 26.9289 8.74954 27.0485 8.7467 27.223C8.74403 27.3829 8.87417 27.4904 9.02145 27.5628C9.17561 27.6387 9.3902 27.6978 9.63827 27.7463C10.1363 27.8434 10.7986 27.9023 11.4552 27.9527C11.5897 27.9629 11.7241 27.9729 11.8568 27.9827C12.3748 28.021 12.8686 28.0576 13.259 28.1071C13.5046 28.1383 13.7033 28.1739 13.8388 28.2165C13.9071 28.2379 13.9527 28.2591 13.9793 28.2781C13.9898 28.2856 13.9951 28.291 13.9976 28.2941C13.9964 28.2962 13.9951 28.2981 13.9935 28.2999C13.9865 28.3084 13.972 28.3208 13.9453 28.3352C13.8916 28.3643 13.8084 28.3911 13.6984 28.4158C13.4974 28.4608 13.2335 28.4929 12.9579 28.5264L12.8842 28.5353C12.5863 28.5717 12.2801 28.6112 12.0481 28.6726C11.9326 28.7032 11.8276 28.741 11.7496 28.7914C11.6718 28.8416 11.6032 28.9165 11.6032 29.0225C11.6032 29.1379 11.6966 29.2189 11.7929 29.2745C11.8964 29.3342 12.0424 29.3874 12.22 29.4356C12.577 29.5324 13.0854 29.6151 13.6982 29.6825C14.9252 29.8173 16.5858 29.8923 18.3255 29.8923C20.0659 29.8923 21.5385 29.796 22.5779 29.6471C23.0968 29.5727 23.5116 29.4847 23.7988 29.3875C23.9417 29.3391 24.0585 29.2866 24.1415 29.2289C24.2206 29.1739 24.2919 29.0977 24.2919 28.9973C24.2919 28.8963 24.2227 28.8272 24.1514 28.7826C24.0783 28.7369 23.9803 28.7019 23.8731 28.673C23.6573 28.6148 23.3728 28.5741 23.0978 28.5356L23.0647 28.5309C22.7976 28.4936 22.5419 28.4579 22.3527 28.4102C22.2535 28.3852 22.1811 28.3589 22.1368 28.3321C22.115 28.3189 22.1055 28.3088 22.102 28.3038L22.1014 28.3028C22.1029 28.2936 22.1096 28.2773 22.1373 28.2544C22.1669 28.2299 22.2138 28.204 22.2808 28.1784C22.4144 28.1272 22.6067 28.0848 22.8434 28.0488C23.2792 27.9825 23.8438 27.9409 24.4216 27.8982L24.5668 27.8875C25.1912 27.8411 25.8197 27.7912 26.2923 27.7047C26.5279 27.6616 26.7321 27.6081 26.8795 27.538C27.0203 27.4711 27.1472 27.37 27.1472 27.2153C27.1472 27.1357 27.1125 27.0689 27.0644 27.0152C27.0173 26.9626 26.9541 26.9186 26.8863 26.8803C26.7595 26.8091 26.5955 26.7472 26.4394 26.6883L26.4089 26.6768C26.2389 26.6126 26.0816 26.5513 25.9691 26.4816C25.8517 26.4089 25.8208 26.351 25.8257 26.3028C25.828 26.2813 25.8535 26.2364 25.9689 26.1806C26.0766 26.1286 26.2328 26.0816 26.4267 26.0387C26.8042 25.955 27.3008 25.8912 27.8047 25.8264L27.8418 25.8216C28.355 25.7557 28.8731 25.6882 29.263 25.597C29.4572 25.5515 29.6267 25.4987 29.7495 25.4338C29.8659 25.3721 29.9757 25.2804 29.9757 25.144C29.9757 25.0463 29.9251 24.9668 29.8586 24.9046C29.7927 24.8428 29.7033 24.7904 29.6047 24.744C29.4128 24.6537 29.1608 24.5756 28.9163 24.4997L28.8965 24.4935C28.6413 24.4144 28.396 24.3373 28.2144 24.2493C28.1236 24.2053 28.0552 24.1615 28.0108 24.1181C27.967 24.0755 27.9533 24.0404 27.9536 24.0102V24.01C27.9538 23.9784 27.968 23.9445 28.0104 23.9057C28.0542 23.8655 28.1219 23.8264 28.2124 23.7883C28.3934 23.7121 28.6376 23.6519 28.8915 23.5904L28.917 23.5842C29.1582 23.5259 29.4064 23.4658 29.5952 23.3898C29.6928 23.3505 29.7821 23.304 29.848 23.2459C29.9152 23.1864 29.965 23.1079 29.9624 23.0091V23.009C29.9585 22.8714 29.8729 22.7774 29.7856 22.7071C29.7415 22.6716 29.6918 22.6382 29.6445 22.6064L29.6397 22.6032C29.5928 22.5718 29.5475 22.5414 29.5044 22.5084C29.4154 22.4401 29.3458 22.3672 29.3103 22.2732C29.2756 22.1809 29.2686 22.0544 29.3333 21.8686L29.3334 21.8683C29.7611 20.6285 29.979 19.326 29.9784 18.0145V17.9197H29.9754C29.9241 11.4152 24.6117 6.15936 18.0682 6.15936C11.4929 6.15936 6.15942 11.4664 6.15942 18.0145C6.15942 19.3681 6.38778 20.6684 6.80706 21.8804L6.80913 21.8863L6.80999 21.888L6.81214 21.8943C6.81455 21.901 6.81747 21.9098 6.82049 21.9187L6.82841 21.9426L6.83099 21.9503L6.83159 21.9522M13.9997 28.2972C13.9997 28.2972 13.9994 28.2971 13.9992 28.2964L13.9997 28.2972ZM26.1286 21.3531C26.5592 20.3247 26.7978 19.1969 26.7978 18.0132C26.7978 13.2152 22.8896 9.32472 18.0696 9.32472C13.2496 9.32472 9.34131 13.2152 9.34131 18.0132C9.34131 19.3175 9.6319 20.5543 10.1478 21.6648C10.3259 22.0351 10.5724 22.1852 10.7629 22.3012C10.9143 22.3934 11.0305 22.4641 11.0488 22.6069C11.0785 22.8418 10.7252 22.9462 10.3918 23.0449C10.0959 23.1323 9.8155 23.2152 9.83186 23.3806C9.85966 23.6614 10.5386 23.7679 11.1821 23.8689C11.7699 23.9612 12.3281 24.0487 12.3338 24.2603C12.3396 24.471 11.8941 24.6018 11.4484 24.7327C10.9737 24.872 10.4989 25.0114 10.5689 25.2475C10.6493 25.5197 12.0108 25.6167 13.371 25.7138C14.7627 25.8131 16.1533 25.9123 16.1688 26.1989C16.1861 26.5197 15.2165 26.6381 14.3373 26.7455C13.6602 26.8282 13.0366 26.9044 12.959 27.0614C12.767 27.4475 14.4492 27.6332 17.9069 27.6332C20.9434 27.6332 22.5283 27.4448 22.5244 27.0985C22.5224 26.8984 22.0449 26.7919 21.5583 26.6833C21.0445 26.5687 20.5205 26.4519 20.5356 26.2201C20.5554 25.9153 21.5623 25.84 22.5827 25.7639C23.623 25.6862 24.6774 25.6075 24.7144 25.2833C24.7402 25.0576 24.0597 24.9282 23.3826 24.7995C22.7305 24.6755 22.0816 24.5522 22.0698 24.3439C22.0498 23.983 23.1279 23.8739 24.1342 23.7721C25.0079 23.6837 25.8274 23.6007 25.8274 23.3633C25.8274 23.1559 25.5247 23.0365 25.2308 22.9207C24.9286 22.8015 24.6356 22.686 24.6904 22.4822C24.7322 22.3259 24.9064 22.2625 25.1264 22.1823C25.4535 22.0632 25.8819 21.9072 26.1273 21.3544L26.1286 21.3531ZM26.0485 21.299C26.4697 20.2867 26.703 19.1773 26.703 18.0132C26.703 13.2681 22.8378 9.41966 18.0696 9.41966C13.3013 9.41966 9.43608 13.2681 9.43608 18.0132C9.43526 19.2606 9.7074 20.4931 10.2334 21.6242C10.3822 21.9331 10.58 22.0761 10.7528 22.1837C10.7709 22.195 10.7894 22.2062 10.8079 22.2174C10.8751 22.2583 10.9429 22.2996 10.9964 22.3444C11.0695 22.4057 11.1285 22.4832 11.1428 22.5949L11.1429 22.5951C11.1643 22.7648 11.0486 22.8762 10.9247 22.9476C10.7993 23.0199 10.6313 23.0726 10.4754 23.1191L10.4186 23.1359C10.2788 23.1773 10.1512 23.2151 10.0551 23.2597C10.001 23.2849 9.96536 23.3087 9.94504 23.3301C9.92705 23.3489 9.92516 23.361 9.92611 23.3711C9.92895 23.3992 9.94763 23.4346 10.008 23.4763C10.068 23.5178 10.157 23.5563 10.2715 23.5917C10.5 23.6624 10.803 23.7131 11.113 23.762L11.1977 23.7752C11.4762 23.819 11.7544 23.8626 11.9696 23.9197C12.0876 23.9509 12.1943 23.9882 12.2737 24.0358C12.3509 24.0821 12.4257 24.1529 12.4285 24.2577M12.4285 24.2577C12.4311 24.351 12.3807 24.4249 12.3187 24.4799C12.2569 24.5347 12.1732 24.5806 12.0821 24.6207C11.9118 24.6956 11.6905 24.7606 11.477 24.8231L11.4316 24.8365C11.1994 24.9047 10.9823 24.9707 10.8314 25.0462C10.7555 25.0842 10.7059 25.12 10.6791 25.1522C10.6559 25.1802 10.6536 25.1995 10.6598 25.2205C10.6597 25.2201 10.6607 25.2241 10.668 25.2317C10.6755 25.2396 10.6878 25.2497 10.7071 25.2613C10.746 25.2847 10.804 25.3087 10.8823 25.3324C11.0384 25.3793 11.2569 25.4195 11.5208 25.4547C12.0358 25.5234 12.7058 25.5712 13.3797 25.6192L13.4251 25.6225C14.1119 25.6715 14.7993 25.7213 15.317 25.7947C15.5751 25.8312 15.7965 25.8743 15.9562 25.9279C16.0354 25.9546 16.1056 25.9858 16.1583 26.0241C16.2101 26.0617 16.2592 26.1172 16.2634 26.1937C16.2699 26.3148 16.1912 26.403 16.0989 26.4636C16.0054 26.5249 15.8764 26.5735 15.7306 26.6139C15.4376 26.6953 15.0456 26.7523 14.6543 26.8019C14.5511 26.815 14.4481 26.8276 14.3466 26.84C14.0593 26.8751 13.7845 26.9087 13.5561 26.9477C13.4017 26.9743 13.2733 27.0025 13.1795 27.034C13.1326 27.0497 13.0977 27.0652 13.0737 27.0797C13.0484 27.095 13.0435 27.1042 13.0439 27.1035L13.0438 27.1037C13.0384 27.1144 13.0389 27.1193 13.039 27.1204C13.0392 27.1216 13.04 27.1269 13.0479 27.1366C13.0665 27.1593 13.1112 27.191 13.1991 27.2251C13.3718 27.2921 13.6618 27.3506 14.0751 27.3977C14.8982 27.4918 16.1787 27.5383 17.9069 27.5383C19.4242 27.5383 20.5751 27.4912 21.3449 27.4014C21.7307 27.3565 22.0153 27.3013 22.2011 27.2382C22.2945 27.2066 22.3565 27.1749 22.3933 27.1461C22.4297 27.1176 22.4296 27.1018 22.4296 27.0996V27.0994C22.4295 27.0915 22.4253 27.0707 22.3804 27.0377C22.3364 27.0053 22.2679 26.9729 22.1764 26.9408C22.0033 26.8799 21.774 26.8288 21.5351 26.7754L21.4968 26.7669C21.2485 26.7114 20.9919 26.6528 20.7992 26.5784C20.7032 26.5414 20.6154 26.4975 20.5511 26.4429C20.4857 26.3873 20.4346 26.3111 20.441 26.2139C20.4498 26.079 20.5661 25.9957 20.685 25.9427C20.8112 25.8863 20.983 25.8443 21.1791 25.8108C21.564 25.7447 22.0697 25.707 22.5724 25.6694L22.6054 25.667C23.1222 25.6284 23.6332 25.5894 24.0196 25.5206C24.2133 25.4861 24.3689 25.4452 24.4762 25.3963C24.5896 25.3446 24.6172 25.299 24.6202 25.2725C24.6204 25.2706 24.6209 25.2667 24.6147 25.2574C24.6073 25.2464 24.5922 25.231 24.564 25.2123C24.5072 25.1747 24.4173 25.137 24.2979 25.0999C24.0604 25.0262 23.7362 24.9634 23.4024 24.8999L23.3626 24.8923C23.0449 24.8319 22.7218 24.7705 22.4739 24.6987C22.3452 24.6613 22.2303 24.6195 22.145 24.5702C22.0657 24.5244 21.9811 24.4543 21.9752 24.3492V24.3491C21.9675 24.2116 22.0608 24.1141 22.172 24.0477C22.2847 23.9802 22.4412 23.9282 22.6192 23.8858C22.9769 23.8005 23.4541 23.7463 23.9249 23.6979L24.1252 23.6775C24.5293 23.6367 24.9172 23.5974 25.2184 23.5438C25.3945 23.5124 25.5337 23.4773 25.6271 23.4372C25.6738 23.4171 25.703 23.3982 25.7192 23.3826C25.7241 23.3783 25.7283 23.373 25.7315 23.3672C25.7326 23.3649 25.7327 23.364 25.7327 23.3633C25.7327 23.3111 25.6947 23.2532 25.5849 23.1855C25.4803 23.1211 25.34 23.0658 25.1911 23.007L25.1837 23.0041C25.0378 22.9466 24.8815 22.8847 24.7695 22.809C24.7129 22.7709 24.6602 22.7243 24.6263 22.666C24.6079 22.6349 24.5959 22.6004 24.5912 22.5646C24.5865 22.5288 24.5891 22.4924 24.5989 22.4576C24.6359 22.3194 24.745 22.2418 24.86 22.1864C24.9183 22.1585 24.9835 22.1336 25.0499 22.1092L25.0948 22.0928C25.1498 22.0731 25.2045 22.0525 25.2588 22.0312C25.5424 21.9179 25.8496 21.7463 26.0407 21.3158L26.048 21.2995L26.0485 21.299",fill:"black"})]})}function QN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#E84142"}),A.jsx("ellipse",{cx:"18.2683",cy:"18.2682",rx:"12.0875",ry:"12.0875",fill:"white"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.5131 18.2567C35.5131 27.7873 27.7873 35.5131 18.2567 35.5131C8.72631 35.5131 1.00037 27.7873 1.00037 18.2567C1.00037 8.72631 8.72631 1.00037 18.2567 1.00037C27.7873 1.00037 35.5131 8.72631 35.5131 18.2567ZM13.3668 25.1239H10.0178C9.31408 25.1239 8.96647 25.1239 8.75452 24.9883C8.52559 24.8399 8.3857 24.594 8.36875 24.3227C8.35602 24.0727 8.52984 23.7673 8.87745 23.1569L17.1465 8.58157C17.4984 7.96264 17.6764 7.65317 17.9011 7.53872C18.1427 7.41579 18.431 7.41579 18.6726 7.53872C18.8973 7.65317 19.0754 7.96264 19.4272 8.58157L21.1271 11.549L21.1358 11.5642C21.5158 12.2282 21.7085 12.5649 21.7927 12.9183C21.8859 13.304 21.8859 13.711 21.7927 14.0968C21.7079 14.4529 21.5171 14.792 21.1314 15.4661L16.7878 23.1442L16.7766 23.1639C16.3941 23.8333 16.2002 24.1726 15.9315 24.4286C15.639 24.7085 15.2872 24.9118 14.9014 25.0265C14.5495 25.1239 14.1553 25.1239 13.3668 25.1239ZM21.8241 25.1239H26.6228C27.3307 25.1239 27.6869 25.1239 27.8989 24.9842C28.1278 24.8358 28.2719 24.5855 28.2847 24.3144C28.2969 24.0724 28.1269 23.779 27.7937 23.204C27.7822 23.1845 27.7707 23.1645 27.759 23.1443L25.3553 19.0322L25.328 18.9859C24.9902 18.4148 24.8197 18.1263 24.6007 18.0148C24.3592 17.8919 24.075 17.8919 23.8334 18.0148C23.613 18.1293 23.435 18.4303 23.0831 19.0365L20.6879 23.1485L20.6797 23.1627C20.3291 23.7679 20.1539 24.0704 20.1665 24.3185C20.1835 24.5899 20.3234 24.8399 20.5523 24.9883C20.76 25.1239 21.1161 25.1239 21.8241 25.1239Z",fill:"#E84142"})]})}function VN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#FCFF52"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.9986 8H8V28H28V21.0184H24.6812C23.5373 23.5658 20.962 25.3389 18.015 25.3389C13.9527 25.3389 10.6625 22.02 10.6625 17.9865C10.6625 13.9516 13.9527 10.6611 18.015 10.6611C21.0192 10.6611 23.5945 12.4924 24.7384 15.0953H28V8H27.9986Z",fill:"black"})]})}function GN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"white"}),A.jsx("path",{d:"M17.8051 5L17.6345 5.5795V22.3938L17.8051 22.564L25.61 17.9505L17.8051 5Z",fill:"#343434"}),A.jsx("path",{d:"M17.805 5L10 17.9505L17.805 22.564V14.4028V5Z",fill:"#8C8C8C"}),A.jsx("path",{d:"M17.8051 24.0417L17.709 24.1589V30.1484L17.8051 30.4291L25.6148 19.4306L17.8051 24.0417Z",fill:"#3C3C3B"}),A.jsx("path",{d:"M17.805 30.4291V24.0417L10 19.4306L17.805 30.4291Z",fill:"#8C8C8C"}),A.jsx("path",{d:"M17.8051 22.564L25.6099 17.9505L17.8051 14.4028V22.564Z",fill:"#141414"}),A.jsx("path",{d:"M10 17.9505L17.805 22.564V14.4028L10 17.9505Z",fill:"#393939"})]})}function $N(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#13B5EC"}),A.jsx("path",{d:"M16.7073 6.23963C17.3111 5.92012 18.2345 5.92012 18.8384 6.23963L25.0178 9.49782C25.3829 9.69093 25.583 9.97532 25.6181 10.2738H25.6252V26.649C25.6181 26.972 25.4145 27.2915 25.0178 27.5022L18.8384 30.7604C18.2345 31.0799 17.3111 31.0799 16.7073 30.7604L10.5279 27.5022C10.1347 27.295 9.94509 26.972 9.93456 26.649C9.93456 26.6174 9.93456 26.5893 9.93456 26.5683V10.3861C9.93456 10.365 9.93456 10.3405 9.93456 10.3194V10.2773H9.93807C9.96615 9.97883 10.1557 9.69795 10.5279 9.50133L16.7073 6.23963ZM24.6421 19.3777L18.8349 22.4499C18.231 22.7694 17.3111 22.7694 16.7037 22.4499L10.9106 19.3848V26.5999L16.7037 29.6474C17.0478 29.83 17.4024 30.009 17.75 30.016H17.7711C18.1187 30.016 18.4522 29.8405 18.7928 29.6755L24.6421 26.5718V19.3777ZM8.96201 26.2944C8.96201 26.9229 9.03574 27.3337 9.17618 27.6251C9.29556 27.8673 9.47462 28.0499 9.80114 28.2746L9.81869 28.2886C9.88891 28.3378 9.96966 28.3869 10.0645 28.4466L10.1768 28.5169L10.5244 28.7275L10.0294 29.5596L9.63963 29.3244L9.57292 29.2822C9.46057 29.212 9.36577 29.1523 9.28151 29.0927C8.3511 28.4607 8.00702 27.7725 8 26.3365V26.2944H8.96201ZM17.3041 15.0241C17.2585 15.0382 17.2163 15.0592 17.1777 15.0768L11.0089 18.3455C11.0019 18.349 10.9949 18.3525 10.9914 18.356L10.9843 18.3596L10.9949 18.3666L11.0089 18.3736L17.1777 21.6423C17.2163 21.6634 17.2585 21.681 17.3041 21.695V15.0241ZM18.2872 15.0241V21.695C18.3328 21.681 18.375 21.6599 18.4136 21.6423L24.5824 18.3736C24.5894 18.3701 24.5964 18.3666 24.6 18.3631L24.6035 18.3596L24.5929 18.3525L24.5789 18.3455L18.4101 15.0768C18.375 15.0592 18.3328 15.0382 18.2872 15.0241ZM24.6421 11.4429L19.0947 14.357L24.6421 17.2712V11.4429ZM10.9141 11.4429V17.2712L16.4615 14.357L10.9141 11.4429ZM18.4066 7.11035C18.0871 6.94182 17.5042 6.94182 17.1847 7.11035L11.0089 10.3756C11.0019 10.3791 10.9949 10.3826 10.9914 10.3861L10.9843 10.3896L10.9949 10.3966L11.0089 10.4037L17.1847 13.6689C17.5042 13.8374 18.0871 13.8374 18.4066 13.6689L24.5824 10.4037C24.5894 10.4001 24.5964 10.3966 24.6 10.3931L24.6035 10.3896L24.5929 10.3826L24.5789 10.3756L18.4066 7.11035ZM25.562 7.44038L25.9517 7.67562L26.0184 7.71775C26.1307 7.78797 26.2255 7.84766 26.3098 7.90735C27.2402 8.53932 27.5843 9.22748 27.5913 10.6635V10.7056H26.6293C26.6293 10.0771 26.5556 9.66635 26.4151 9.37494C26.2958 9.13268 26.1167 8.95011 25.7902 8.72541L25.7726 8.71136C25.7024 8.66221 25.6217 8.61305 25.5269 8.55337L25.4145 8.48315L25.0669 8.27249L25.562 7.44038Z",fill:"white"})]})}function qN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"black"}),A.jsx("path",{d:"M10.4854 22.4808C10.6216 22.3449 10.8064 22.2687 10.999 22.2687H28.7693C29.093 22.2687 29.255 22.6593 29.026 22.8877L25.5147 26.3893C25.3784 26.5252 25.1937 26.6015 25.0011 26.6015H7.23081C6.9071 26.6015 6.74507 26.2108 6.97406 25.9825L10.4854 22.4808Z",fill:"url(#linearGradient_icons_chains_sol_0)"}),A.jsx("path",{d:"M10.4854 9.39895C10.6216 9.26308 10.8064 9.18677 10.999 9.18677H28.7693C29.093 9.18677 29.255 9.57744 29.026 9.80581L25.5147 13.3074C25.3784 13.4433 25.1937 13.5196 25.0011 13.5196H7.23081C6.9071 13.5196 6.74507 13.129 6.97406 12.9006L10.4854 9.39895Z",fill:"url(#linearGradient_icons_chains_sol_1)"}),A.jsx("path",{d:"M25.5147 15.8982C25.3784 15.7624 25.1937 15.686 25.0011 15.686H7.23081C6.9071 15.686 6.74507 16.0767 6.97406 16.305L10.4854 19.8067C10.6216 19.9425 10.8064 20.0189 10.999 20.0189H28.7693C29.093 20.0189 29.255 19.6282 29.026 19.3998L25.5147 15.8982Z",fill:"url(#linearGradient_icons_chains_sol_2)"})]})}function JN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"white"}),A.jsxs("g",{clipPath:"url(#icons_chains_apt_clipPath_0)",children:[A.jsx("path",{d:"M36 18C36 8.05887 27.9411 0 18 0C8.05887 0 0 8.05887 0 18C0 27.9411 8.05887 36 18 36C27.9411 36 36 27.9411 36 18Z",fill:"white"}),A.jsx("path",{d:"M6 16.9982L6.65314 14.2624C6.696 14.1538 6.97886 14.021 7.15371 14.021H17.7497C18.468 14.0434 19.0337 13.8245 19.4897 13.2332C20.2954 12.2264 20.5337 12.2264 21.3617 13.2108C21.5667 13.4867 21.8379 13.7058 22.15 13.8475C22.4621 13.9892 22.8049 14.0489 23.1463 14.021L28.8463 13.9986C29.1943 13.9986 29.3897 14.0865 29.4549 14.4365L30 16.9775H29.3263C26.6709 16.9775 24.0394 16.9551 21.384 17C21.1328 17.0156 20.8816 16.9679 20.6535 16.861C20.4253 16.7541 20.2274 16.5915 20.0777 16.388C19.272 15.3588 18.9686 15.0761 17.9246 16.3225C17.4891 16.8483 17.0109 17 16.38 16.9793L6.76286 16.9569C6.588 17 6.39257 17 6.00171 17L6 16.9982ZM6.17486 20.2375H13.5514C14.2251 20.2375 14.7909 20.0841 15.2057 19.4928C15.3137 19.3393 15.4457 19.2307 15.576 19.0773C16.0337 18.5739 16.4469 18.5308 16.8377 19.0773C17.4909 20.041 18.3171 20.2582 19.428 20.2375L29.088 20.2151H29.8714L28.8703 23.0372C28.8274 23.1251 28.6097 23.1906 28.4571 23.1906H16.7726C16.512 23.1906 16.2291 23.0147 16.032 22.8406C15.7491 22.5993 15.5314 22.2717 15.2709 22.0097C14.9451 21.6821 14.5749 21.6597 14.2269 21.9873L14.184 22.0304C13.488 23.1906 12.4217 23.3216 11.1806 23.2561C10.0269 23.1682 8.87486 23.213 7.69886 23.2561C7.32857 23.2561 7.13314 23.1251 7.02514 22.7958L6.17657 20.2358L6.17486 20.2375ZM8.48229 10.8059C13.0303 4.50492 22.7554 4.30667 27.5211 10.7628C26.6726 10.7628 25.8463 10.8507 25.0406 10.7197C24.6926 10.6766 24.3874 10.2387 24.1269 9.93185C23.3657 9.10091 23.148 9.05609 22.4297 9.90944C21.864 10.5663 21.2554 10.8283 20.3623 10.8283L9.17829 10.8059H8.48229ZM9.31029 26.1661C10.0286 26.1437 10.3543 25.6196 10.7469 25.1817C11.3554 24.4818 11.7257 24.4387 12.2691 25.1817C12.8349 25.992 13.5531 26.1885 14.4891 26.1661L26.064 26.1437H26.6726C22.8 30.9138 14.1823 31.6361 9.30857 26.1661H9.31029Z",fill:"black"})]})]})}function XN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#4DA2FF"}),A.jsx("g",{clipPath:"url(#icons_chains_sui_clipPath_0)",children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.406 16.0068C24.342 17.2334 24.906 18.7916 24.906 20.4813C24.906 22.171 24.33 23.7731 23.364 25.0122L23.28 25.1186L23.256 24.9809C23.238 24.8683 23.214 24.7494 23.19 24.6305C22.71 22.4214 21.138 20.5251 18.546 18.9856C16.8 17.953 15.798 16.7077 15.534 15.2933C15.366 14.3796 15.492 13.4597 15.732 12.6712C15.978 11.8826 16.338 11.2255 16.644 10.8313L17.652 9.54835C17.826 9.32306 18.162 9.32306 18.336 9.54835L23.406 16.0068ZM24.996 14.7238L18.252 6.12515C18.126 5.96243 17.88 5.96243 17.754 6.12515L11.004 14.7238L10.98 14.7551C9.744 16.3635 9 18.4036 9 20.6253C9 25.8008 13.032 30 18 30C22.968 30 27 25.8008 27 20.6253C27 18.4036 26.256 16.3635 25.014 14.7551L24.996 14.7238ZM12.618 15.9817L13.218 15.212L13.236 15.3559C13.248 15.4686 13.266 15.5812 13.29 15.6939C13.68 17.8279 15.078 19.6115 17.406 20.9882C19.434 22.1898 20.61 23.5729 20.952 25.0936C21.096 25.7257 21.12 26.3515 21.06 26.8959L21.054 26.9272L21.024 26.9398C20.112 27.4029 19.08 27.6657 17.994 27.6657C14.184 27.6657 11.094 24.449 11.094 20.4813C11.094 18.7791 11.664 17.2083 12.618 15.9817Z",fill:"white"})})]})}function KN(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#0052FF"}),A.jsx("path",{d:"M17.9773 31C25.1695 31 31 25.1797 31 18C31 10.8203 25.1695 5 17.9773 5C11.1537 5 5.55599 10.2388 5 16.9072H22.2131V19.0928H5C5.55599 25.761 11.1537 31 17.9773 31Z",fill:"white"})]})}function ej(){return A.jsxs("svg",{width:"360",height:"360",viewBox:"0 0 360 360",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"360",height:"360",rx:"30",fill:"#6C00F6"}),A.jsx("path",{d:"M218.804 99.5819L168.572 128.432V218.473L140.856 234.539L112.97 218.46V186.313L140.856 170.39L158.786 180.788V154.779L140.699 144.511L90.4795 173.687V231.399L140.869 260.418L191.088 231.399V141.371L218.974 125.291L246.846 141.371V173.374L218.974 189.597L200.887 179.107V204.986L218.804 215.319L269.519 186.47V128.432L218.804 99.5819Z",fill:"white"})]})}function tj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#F0B90B"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0C27.9418 0 36 8.05817 36 18C36 27.9418 27.9418 36 18 36C8.05817 36 0 27.9418 0 18C0 8.05817 8.05817 0 18 0Z",fill:"#F0B90B"}),A.jsx("path",{d:"M9.89289 18L9.90587 22.7596L13.9501 25.1394V27.9259L7.53904 24.1658V16.6081L9.89289 18ZM9.89289 13.2403V16.0139L7.5376 14.6206V11.8471L9.89289 10.4538L12.2597 11.8471L9.89289 13.2403ZM15.639 11.8471L17.9943 10.4538L20.3612 11.8471L17.9943 13.2403L15.639 11.8471Z",fill:"white"}),A.jsx("path",{d:"M11.5948 21.773V18.9865L13.9501 20.3798V23.1533L11.5948 21.773ZM15.6391 26.1374L17.9944 27.5307L20.3612 26.1374V28.911L17.9944 30.3043L15.6391 28.911V26.1374ZM23.7391 11.8471L26.0944 10.4538L28.4612 11.8471V14.6206L26.0944 16.0139V13.2403L23.7391 11.8471ZM26.0944 22.7596L26.1073 18L28.4626 16.6067V24.1644L22.0516 27.9245V25.1379L26.0944 22.7596Z",fill:"white"}),A.jsx("path",{d:"M24.4053 21.7731L22.05 23.1534V20.3798L24.4053 18.9865V21.7731Z",fill:"white"}),A.jsx("path",{d:"M24.4054 14.227L24.4184 17.0135L20.3626 19.3933V24.1645L18.0073 25.5447L15.6521 24.1645V19.3933L11.5963 17.0135V14.227L13.9617 12.8337L17.9929 15.225L22.0487 12.8337L24.4155 14.227H24.4054ZM11.5948 9.46879L17.9944 5.69571L24.4054 9.46879L22.0501 10.8621L17.9944 8.47071L13.9501 10.8621L11.5948 9.46879Z",fill:"white"})]})}function rj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#213147"}),A.jsx("path",{d:"M7.35034 12.904V23.096C7.35034 23.7512 7.69354 24.344 8.26554 24.6768L17.0951 29.7728C17.6567 30.0952 18.3535 30.0952 18.9151 29.7728L27.7447 24.6768C28.3063 24.3544 28.6599 23.7512 28.6599 23.096V12.904C28.6599 12.2488 28.3167 11.656 27.7447 11.3232L18.9151 6.2272C18.3535 5.9048 17.6567 5.9048 17.0951 6.2272L8.26554 11.3232C7.70394 11.6456 7.36074 12.2488 7.36074 12.904H7.35034Z",fill:"#213147"}),A.jsx("path",{d:"M19.924 19.976L18.6656 23.4288C18.6344 23.5224 18.6344 23.6264 18.6656 23.7304L20.8288 29.6688L23.3352 28.2232L20.3296 19.976C20.2568 19.7888 19.9968 19.7888 19.924 19.976Z",fill:"#12AAFF"}),A.jsx("path",{d:"M22.4512 14.1728C22.3784 13.9856 22.1184 13.9856 22.0456 14.1728L20.7872 17.6256C20.756 17.7192 20.756 17.8232 20.7872 17.9272L24.3336 27.6512L26.84 26.2056L22.4512 14.1832V14.1728Z",fill:"#12AAFF"}),A.jsx("path",{d:"M18 6.612C18.0624 6.612 18.1248 6.6328 18.1768 6.664L27.724 12.176C27.8384 12.2384 27.9008 12.3632 27.9008 12.488V23.512C27.9008 23.6368 27.828 23.7616 27.724 23.824L18.1768 29.336C18.1248 29.3672 18.0624 29.388 18 29.388C17.9376 29.388 17.8752 29.3672 17.8232 29.336L8.27601 23.824C8.16161 23.7616 8.09921 23.6368 8.09921 23.512V12.4776C8.09921 12.3528 8.17201 12.228 8.27601 12.1656L17.8232 6.6536C17.8752 6.6224 17.9376 6.6016 18 6.6016V6.612ZM18 5C17.6568 5 17.324 5.0832 17.012 5.26L7.46481 10.772C6.85121 11.1256 6.47681 11.7704 6.47681 12.4776V23.5016C6.47681 24.2088 6.85121 24.8536 7.46481 25.2072L17.012 30.7192C17.3136 30.896 17.6568 30.9792 18 30.9792C18.3432 30.9792 18.676 30.896 18.988 30.7192L28.5352 25.2072C29.1488 24.8536 29.5232 24.2088 29.5232 23.5016V12.4776C29.5232 11.7704 29.1488 11.1256 28.5352 10.772L18.9776 5.26C18.676 5.0832 18.3328 5 17.9896 5H18Z",fill:"#9DCCED"}),A.jsx("path",{d:"M11.6768 27.6616L12.5608 25.2488L14.3288 26.7152L12.6752 28.2336L11.6768 27.6616Z",fill:"#213147"}),A.jsx("path",{d:"M17.1888 11.6976H14.7656C14.5888 11.6976 14.4224 11.812 14.36 11.9784L9.17041 26.2056L11.6768 27.6512L17.3968 11.9784C17.4488 11.8328 17.3448 11.6872 17.1992 11.6872L17.1888 11.6976Z",fill:"white"}),A.jsx("path",{d:"M21.4321 11.6976H19.0089C18.8321 11.6976 18.6657 11.812 18.6033 11.9784L12.6753 28.2232L15.1817 29.6688L21.6297 11.9784C21.6817 11.8328 21.5777 11.6872 21.4321 11.6872V11.6976Z",fill:"white"})]})}function nj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"7",fill:"#FF0420"}),A.jsx("path",{d:"M11.4903 24C10.1707 24 9.09018 23.6891 8.24879 23.0674C7.41626 22.4367 7 21.5307 7 20.3671C7 20.1184 7.02657 19.8253 7.07971 19.47C7.22142 18.6706 7.42512 17.7113 7.69082 16.5833C8.44364 13.5278 10.3921 12 13.5274 12C14.3776 12 15.1481 12.1421 15.8213 12.4352C16.4944 12.7106 17.0258 13.1369 17.4155 13.7054C17.8052 14.265 18 14.9312 18 15.7039C18 15.9349 17.9734 16.228 17.9203 16.5833C17.752 17.5692 17.5572 18.5374 17.318 19.47C16.9283 20.9889 16.2641 22.1347 15.3076 22.8897C14.3599 23.6358 13.0845 24 11.4903 24ZM11.7295 21.6018C12.3494 21.6018 12.872 21.4152 13.306 21.0511C13.7488 20.6869 14.0676 20.1273 14.2536 19.3634C14.5105 18.3153 14.7053 17.4093 14.8382 16.6277C14.8824 16.3967 14.909 16.1569 14.909 15.9082C14.909 14.8956 14.3865 14.3893 13.3325 14.3893C12.7126 14.3893 12.1812 14.5759 11.7383 14.94C11.3043 15.3042 10.9944 15.8638 10.8084 16.6277C10.6047 17.3738 10.4098 18.2798 10.2061 19.3634C10.1618 19.5855 10.1353 19.8164 10.1353 20.0651C10.1264 21.0955 10.6667 21.6018 11.7295 21.6018Z",fill:"white"}),A.jsx("path",{d:"M18.3639 24C18.2324 24 18.1385 23.9635 18.0634 23.8813C18.007 23.79 17.9883 23.6895 18.007 23.5708L20.4394 12.4292C20.4582 12.3014 20.524 12.2009 20.6367 12.1187C20.74 12.0365 20.8527 12 20.9748 12H25.6611C26.9665 12 28.009 12.2648 28.7979 12.7854C29.5962 13.3151 30 14.0731 30 15.0685C30 15.3516 29.9624 15.653 29.8967 15.9635C29.6056 17.2785 29.0139 18.2466 28.1123 18.8767C27.2295 19.5068 26.018 19.8174 24.4778 19.8174H22.1017L21.2941 23.5708C21.2659 23.6986 21.2095 23.7991 21.0968 23.8813C20.9935 23.9635 20.8808 24 20.7588 24H18.3639ZM24.5999 17.4521C25.0976 17.4521 25.5202 17.3242 25.8865 17.0594C26.2622 16.7945 26.5064 16.4201 26.6284 15.9269C26.666 15.7352 26.6848 15.5616 26.6848 15.4155C26.6848 15.0868 26.5815 14.8311 26.3843 14.6575C26.187 14.4749 25.8396 14.3836 25.3606 14.3836H23.2475L22.5807 17.4521H24.5999Z",fill:"white"})]})}function ij(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"black"}),A.jsx("path",{d:"M17.7211 11.2061C17.7211 10.2099 18.5249 9.39834 19.5117 9.39834H22.7158V5H19.5117C16.117 5 13.3643 7.77901 13.3643 11.2061C13.3643 12.1004 13.553 12.9505 13.8901 13.7178C11.2538 14.8429 9.50303 17.2334 9.09538 20.2586C8.61909 23.5799 9.93735 27.1628 12.8082 28.8937C15.3703 30.5226 19.3765 30.4149 21.5404 28.1552V29.6553H26V13.0139H19.5136C18.5268 13.0139 17.7229 12.2023 17.7229 11.2061H17.7211ZM21.6394 17.4142V21.5913C21.6394 23.8992 19.786 25.7686 17.5019 25.7686C15.218 25.7686 13.3643 23.8972 13.3643 21.5913C13.3643 19.2854 15.218 17.4142 17.5019 17.4142H21.6394Z",fill:"#BFF009"})]})}function oj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#FFEEDA"}),A.jsx("path",{d:"M27.4 21.6933V8.92C27.3733 7.85333 26.52 7 25.4533 7H12.1733C9.29333 7.05333 7 9.4 7 12.28C7 13.24 7.26667 14.0933 7.66667 14.8133C8.01333 15.4267 8.54667 15.9867 9.05333 16.4133C9.21333 16.5467 9.13333 16.4933 9.58667 16.76C10.2 17.1333 10.92 17.32 10.92 17.32V24.9467C10.9467 25.32 10.9733 25.6667 11.08 25.9867C11.3733 27.0533 12.12 27.88 13.1333 28.28C13.56 28.44 14.04 28.5467 14.5467 28.5733L25.1333 28.6267C27.24 28.6267 28.9733 26.92 28.9733 24.7867C28.9733 23.5333 28.36 22.3867 27.4 21.6933Z",fill:"#FFEEDA"}),A.jsx("path",{d:"M27.6667 24.8666C27.6133 26.2266 26.4933 27.3199 25.1333 27.3199L17.8267 27.2932C18.4133 26.6266 18.76 25.7466 18.76 24.7866C18.76 23.2932 17.88 22.2532 17.88 22.2532H25.16C26.5467 22.2532 27.6933 23.3999 27.6933 24.7866L27.6667 24.8666Z",fill:"#EBC28E"}),A.jsx("path",{d:"M9.74667 15.3467C8.89333 14.5467 8.30667 13.5067 8.30667 12.28V12.1467C8.38667 10.0667 10.0933 8.36 12.1733 8.30667H25.48C25.8267 8.33333 26.0933 8.57333 26.0933 8.92V20.2C26.3867 20.2533 26.5467 20.3067 26.84 20.3867C27.08 20.4667 27.4 20.6533 27.4 20.6533V8.92C27.3733 7.85333 26.52 7 25.4533 7H12.1733C9.29333 7.05333 7 9.4 7 12.28C7 13.96 7.77333 15.4 9 16.3867C9.08 16.4667 9.16 16.5467 9.4 16.5467C9.8 16.5467 10.0667 16.2267 10.04 15.9067C10.04 15.6133 9.93333 15.5067 9.74667 15.3467Z",fill:"#101010"}),A.jsx("path",{d:"M25.1333 20.9466H14.7066C14.0133 20.9466 13.4533 21.5066 13.4533 22.2266V23.7199C13.4799 24.4133 14.0666 24.9999 14.7599 24.9999H15.5333V23.7199H14.7599V22.2533C14.7599 22.2533 14.9466 22.2533 15.1866 22.2533C16.4933 22.2533 17.4799 23.4799 17.4799 24.7866C17.4799 25.9599 16.4133 27.4266 14.6533 27.3199C13.0799 27.2133 12.2266 25.8266 12.2266 24.7866V12.0666C12.2266 11.5066 11.7466 11.0266 11.1866 11.0266H10.1466V12.3333H10.9199V24.8133C10.8666 27.3466 12.7333 28.6266 14.6533 28.6266L25.1599 28.6533C27.2666 28.6533 28.9999 26.9466 28.9999 24.8133C28.9733 22.6799 27.2666 20.9466 25.1333 20.9466ZM27.6666 24.8666C27.6133 26.2266 26.4933 27.3199 25.1333 27.3199L17.8266 27.2933C18.4133 26.6266 18.7599 25.7466 18.7599 24.7866C18.7599 23.2933 17.8799 22.2533 17.8799 22.2533H25.1599C26.5466 22.2533 27.6933 23.3999 27.6933 24.7866L27.6666 24.8666Z",fill:"#101010"}),A.jsx("path",{d:"M22.3335 12.5467H14.4668V11.2667H22.3335C22.6801 11.2667 22.9735 11.56 22.9735 11.9067C22.9735 12.2533 22.7068 12.5467 22.3335 12.5467Z",fill:"#101010"}),A.jsx("path",{d:"M22.3335 18.6801H14.4668V17.3734H22.3335C22.6801 17.3734 22.9735 17.6667 22.9735 18.0134C22.9735 18.3867 22.7068 18.6801 22.3335 18.6801Z",fill:"#101010"}),A.jsx("path",{d:"M23.7201 15.6134H14.4668V14.3067H23.7201C24.0668 14.3067 24.3601 14.6 24.3601 14.9467C24.3601 15.32 24.0668 15.6134 23.7201 15.6134Z",fill:"#101010"})]})}function aj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"black"}),A.jsx("path",{d:"M26.2139 17.3414L30.4386 15.2363L31.8949 10.7665L28.9823 8.64699H9.58929L5.1051 11.9777H27.9009L26.6898 15.7265H17.5484L16.6688 18.466H25.8102L23.2437 26.353L27.526 24.2335L29.0544 19.5042L26.1851 17.3991L26.2139 17.3414Z",fill:"#FCFC03"}),A.jsx("path",{d:"M11.5502 22.9646L14.1888 14.7461L11.2618 12.5544L6.86414 26.353H23.2437L24.3395 22.9646H11.5502Z",fill:"#FCFC03"})]})}function sj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"black"}),A.jsx("path",{d:"M18.0484 31V26.573C17.6028 26.573 17.1475 26.5343 16.7019 26.4665L16.0045 30.8353C16.6826 30.9516 17.3703 31 18.0484 31ZM20.0827 30.845C20.7608 30.7385 21.4292 30.5835 22.0782 30.3703L20.7124 26.1565C20.2861 26.2921 19.8405 26.3987 19.3949 26.4665L20.0827 30.845ZM14.0186 30.3703L15.3845 26.1662C14.9583 26.0306 14.5417 25.8562 14.1349 25.6528L12.12 29.5954C12.7303 29.8957 13.3696 30.1572 14.0186 30.3703ZM23.9672 29.5954C24.5775 29.2854 25.1587 28.927 25.7109 28.5298L23.0954 24.9553C22.737 25.2168 22.3495 25.459 21.9426 25.6528L23.9672 29.5954ZM10.3763 28.5201L12.9918 24.9456C12.6334 24.6841 12.2846 24.3934 11.965 24.0738L8.82638 27.2027C9.31073 27.6773 9.83383 28.123 10.3763 28.5201ZM27.2511 27.2221L27.2802 27.193C27.7645 26.7183 28.2101 26.1952 28.6073 25.6528L25.0231 23.0469C24.7616 23.4054 24.4613 23.7541 24.1513 24.0641L24.1028 24.1125L25.614 25.5365L27.2511 27.2221ZM7.49925 25.6431L11.0835 23.0373C10.8219 22.6788 10.5797 22.2914 10.3763 21.8942L6.42399 23.8994C6.73398 24.5097 7.0924 25.0909 7.49925 25.6431ZM29.6729 23.9091C29.9829 23.3085 30.2444 22.6692 30.4575 22.0201L26.234 20.6639C26.0984 21.0902 25.924 21.5067 25.7206 21.9039L29.6729 23.9091ZM5.63934 22.0201L9.86289 20.6542C9.72727 20.228 9.62072 19.7921 9.55291 19.3465L5.16468 20.0343C5.27124 20.7027 5.43592 21.3711 5.63934 22.0201ZM30.9322 20.044C31.0388 19.3756 31.0969 18.6878 31.0969 18.0097H26.6602C26.6602 18.4553 26.6215 18.9106 26.5537 19.3562L30.9322 20.044ZM9.44635 18C9.44635 17.5544 9.4851 17.0991 9.55291 16.6535L5.16468 15.9657C5.05812 16.6341 5.00969 17.3219 5 18H9.44635ZM26.5537 16.6632L30.9419 15.9754C30.8353 15.307 30.6803 14.6386 30.4672 13.9896L26.2437 15.3458C26.3793 15.7817 26.4858 16.2176 26.5537 16.6632ZM9.86289 15.3458C9.99851 14.9195 10.1729 14.503 10.3763 14.1058L6.42399 12.1006C6.11401 12.7012 5.85246 13.3405 5.63934 13.9896L9.86289 15.3458ZM25.7303 14.1155L29.6923 12.1103C29.3823 11.5 29.0238 10.9188 28.617 10.3666L25.0231 12.9724C25.2847 13.3309 25.5268 13.7183 25.7303 14.1155ZM11.0835 12.9627C11.345 12.6043 11.6453 12.2556 11.965 11.9359L11.9747 11.9262L8.83607 8.79732L8.82638 8.807C8.34203 9.29136 7.89642 9.80477 7.49925 10.3569L11.0835 12.9627ZM24.1513 11.9553L25.1006 10.9963L27.2802 8.82638L27.2705 8.81669C26.7861 8.34203 26.2727 7.89642 25.7303 7.49925L23.1148 11.0738C23.4732 11.3353 23.8219 11.6259 24.1319 11.9456L24.1513 11.9553ZM13.0015 11.0544C13.3599 10.7928 13.7474 10.5604 14.1542 10.3569L12.1393 6.41431C11.5291 6.72429 10.9478 7.08271 10.3957 7.47988L13.0015 11.0544ZM21.9717 10.3666L23.9963 6.42399C23.386 6.11401 22.7563 5.85246 22.1073 5.63934L20.7317 9.84352C21.1483 9.98882 21.5648 10.1632 21.9717 10.3666ZM15.4039 9.84352C15.8301 9.7079 16.2757 9.60134 16.7213 9.53353L16.0335 5.16468C15.3651 5.27124 14.687 5.42623 14.038 5.63934L15.4039 9.84352ZM19.4046 9.53353L20.1021 5.16468C19.4337 5.05812 18.7459 5 18.0678 5V9.42697C18.5134 9.42697 18.9687 9.46572 19.4046 9.53353Z",fill:"white"}),A.jsx("path",{d:"M18.0483 26.7765V22.3302C17.6705 22.3302 17.3024 22.2818 16.9343 22.1849L15.7719 26.4762C16.5178 26.67 17.283 26.7765 18.0483 26.7765ZM20.3248 26.4762C21.0707 26.2825 21.7778 25.9919 22.4462 25.6044L20.1988 21.7586C19.8792 21.9427 19.5304 22.088 19.172 22.1849L20.3248 26.4762ZM13.6601 25.6044L15.9075 21.7586C15.5878 21.5746 15.2875 21.3421 15.0163 21.0806L14.9775 21.0418L13.5632 22.5239L11.8195 24.1998L11.8486 24.2288C12.3911 24.7616 13.0014 25.2266 13.6601 25.6044ZM24.2577 24.2288C24.8002 23.6864 25.2748 23.0858 25.6526 22.4271L21.7681 20.199C21.5841 20.5187 21.3516 20.8093 21.0803 21.0806L24.2577 24.2288ZM10.444 22.4174L14.3285 20.199C14.1444 19.8794 13.9991 19.5403 13.9023 19.1819L9.57215 20.325C9.76589 21.0515 10.0662 21.7587 10.444 22.4174ZM26.5341 20.3347C26.7279 19.5984 26.8344 18.8429 26.8344 18.0873H22.3493C22.3493 18.4554 22.3009 18.8332 22.204 19.1916L26.5341 20.3347ZM13.7666 18.0776C13.7666 17.7095 13.8151 17.3317 13.9119 16.9733L9.57215 15.8302C9.37841 16.5664 9.27185 17.322 9.27185 18.0776H13.7666ZM22.1944 16.9829L26.5341 15.8399C26.3404 15.1037 26.0401 14.3965 25.6623 13.7378L21.7778 15.9561C21.9522 16.2855 22.0975 16.6245 22.1944 16.9829ZM14.3382 15.9561C14.5222 15.6461 14.745 15.3458 15.0163 15.0843L15.0259 15.0746L13.4179 13.4859L11.8777 11.9069L11.8486 11.936C11.3061 12.4688 10.8411 13.0791 10.4537 13.7281L14.3382 15.9561ZM21.0803 15.0843L22.669 13.5053L24.2964 11.9747L24.2577 11.936C23.7152 11.3935 23.1049 10.9382 22.4462 10.5507L20.1988 14.3965C20.5185 14.5806 20.8091 14.8034 21.0803 15.0649V15.0843ZM15.9075 14.3965C16.2271 14.2124 16.5759 14.0671 16.9343 13.9703L15.7912 9.67892C15.0453 9.87266 14.3382 10.1633 13.6698 10.5507L15.9075 14.3965ZM19.1623 13.98L20.3248 9.6886C19.5885 9.49486 18.8233 9.38831 18.058 9.38831V13.8347C18.4261 13.8347 18.8039 13.8831 19.1623 13.98Z",fill:"white"})]})}function cj(){return A.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{y:"0.999573",width:"36",height:"36",rx:"6",fill:"url(#icons_chains_xlayer_linearGradient_0)"}),A.jsx("path",{d:"M27.1921 22.667V29.2442H28.9861C29.1021 29.2437 29.2132 29.1974 29.2952 29.1151C29.3771 29.0329 29.4231 28.9216 29.4231 28.8056V23.1056C29.4231 22.9895 29.3771 22.8782 29.2952 22.796C29.2132 22.7138 29.1021 22.6674 28.9861 22.667H27.1921ZM27.1921 9.5V16.0772H28.9861C29.1021 16.0767 29.2132 16.0304 29.2952 15.9481C29.3771 15.8659 29.4231 15.7546 29.4231 15.6386V9.93858C29.4231 9.82254 29.3771 9.71122 29.2952 9.62902C29.2132 9.54681 29.1021 9.50042 28.9861 9.5H27.1921Z",fill:"#898989"}),A.jsx("path",{d:"M30.5536 9.5V16.0772H31.2249C31.341 16.0767 31.4521 16.0304 31.534 15.9481C31.6159 15.8659 31.6619 15.7546 31.6619 15.6386V9.93858C31.6619 9.82281 31.6162 9.71173 31.5346 9.62957C31.453 9.54741 31.3423 9.50084 31.2265 9.5H30.5536ZM30.5583 22.667V29.2442H31.2281C31.2857 29.2442 31.3427 29.2328 31.3959 29.2108C31.4491 29.1887 31.4975 29.1564 31.5382 29.1157C31.5789 29.075 31.6112 29.0266 31.6333 28.9734C31.6553 28.9202 31.6667 28.8632 31.6667 28.8056V23.1056C31.6667 23.048 31.6553 22.991 31.6333 22.9377C31.6112 22.8845 31.5789 22.8362 31.5382 22.7955C31.4975 22.7547 31.4491 22.7224 31.3959 22.7004C31.3427 22.6783 31.2857 22.667 31.2281 22.667H30.5583Z",fill:"#575757"}),A.jsx("path",{d:"M19.038 16.0914H13.3634C13.3062 16.0912 13.2495 16.1023 13.1966 16.124C13.1437 16.1456 13.0956 16.1775 13.055 16.2178C13.0144 16.2581 12.9822 16.306 12.9601 16.3587C12.938 16.4115 12.9266 16.4681 12.9264 16.5253V22.1572C12.9264 22.3963 13.1227 22.591 13.3634 22.591H19.0349C19.0921 22.5912 19.1487 22.5802 19.2016 22.5585C19.2545 22.5368 19.3026 22.5049 19.3432 22.4646C19.3838 22.4243 19.4161 22.3764 19.4381 22.3237C19.4602 22.2709 19.4717 22.2143 19.4719 22.1572V16.5253C19.4715 16.41 19.4254 16.2997 19.3438 16.2184C19.2622 16.1371 19.1517 16.0914 19.0365 16.0914M12.472 9.5H6.77196C6.65564 9.5 6.54408 9.54621 6.46183 9.62846C6.37958 9.71071 6.33337 9.82226 6.33337 9.93858V15.6386C6.33337 15.8808 6.52971 16.0772 6.77196 16.0772H12.472C12.5883 16.0772 12.6998 16.031 12.7821 15.9487C12.8643 15.8665 12.9105 15.7549 12.9105 15.6386V9.93858C12.9105 9.82226 12.8643 9.71071 12.7821 9.62846C12.6998 9.54621 12.5883 9.5 12.472 9.5ZM25.6215 9.5H19.9215C19.8052 9.5 19.6937 9.54621 19.6114 9.62846C19.5292 9.71071 19.483 9.82226 19.483 9.93858V15.6386C19.483 15.8808 19.6809 16.0772 19.9215 16.0772H25.6215C25.7379 16.0772 25.8494 16.031 25.9317 15.9487C26.0139 15.8665 26.0601 15.7549 26.0601 15.6386V9.93858C26.0601 9.82226 26.0139 9.71071 25.9317 9.62846C25.8494 9.54621 25.7379 9.5 25.6215 9.5ZM12.472 22.6528H6.77196C6.65564 22.6528 6.54408 22.699 6.46183 22.7812C6.37958 22.8635 6.33337 22.975 6.33337 23.0913V28.7913C6.33337 29.0336 6.52971 29.2283 6.77196 29.2283H12.472C12.588 29.2283 12.6993 29.1823 12.7815 29.1004C12.8637 29.0185 12.9101 28.9074 12.9105 28.7913V23.0913C12.9105 22.975 12.8643 22.8635 12.7821 22.7812C12.6998 22.699 12.5883 22.6528 12.472 22.6528ZM25.6215 22.6528H19.9215C19.8052 22.6528 19.6937 22.699 19.6114 22.7812C19.5292 22.8635 19.483 22.975 19.483 23.0913V28.7913C19.483 29.0336 19.6809 29.2283 19.9215 29.2283H25.6215C25.7376 29.2283 25.8489 29.1823 25.9311 29.1004C26.0133 29.0185 26.0597 28.9074 26.0601 28.7913V23.0913C26.0601 22.975 26.0139 22.8635 25.9317 22.7812C25.8494 22.699 25.7379 22.6528 25.6215 22.6528Z",fill:"white"})]})}function lj(){return A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{maxHeight:"100%",maxWidth:"100%"},width:"256",height:"256",fill:"none",viewBox:"0 0 800 800",children:A.jsxs("g",{clipPath:"url(#icons_chains_osmo_clipPath_0)",children:[A.jsx("path",{fill:"#5E12A0",d:"M673.964 193.237C667.62 168.805 647.227 144.373 610.519 117.174C581.062 95.5081 549.792 83.0615 524.867 83.0615C519.882 83.0615 515.35 83.5225 510.819 84.4445C499.489 86.7494 489.519 95.0471 483.174 107.494C475.47 122.245 473.658 142.068 478.643 154.053C480.455 157.741 482.721 162.351 485.44 166.5C461.422 181.251 447.826 185.4 446.013 185.861C508.553 207.067 560.669 251.321 593.298 308.944L593.751 303.413C595.111 288.2 599.642 270.683 605.987 252.704C612.332 254.548 618.676 255.47 625.021 255.47C641.788 255.47 656.29 248.555 665.354 236.109C674.418 223.662 678.043 207.067 673.964 193.237Z"}),A.jsx("path",{fill:"url(#icons_chains_osmo_radialGradient_0)",d:"M608.706 239.342C649.945 250.867 666.713 218.598 661.275 196.932C655.383 175.265 636.35 153.138 602.814 128.245C569.279 103.352 535.29 93.2098 513.537 97.8197C491.784 102.43 485.44 136.081 490.878 148.989C493.144 154.06 498.129 161.436 504.927 169.733C496.316 175.726 488.159 180.336 481.361 184.485C523.054 203.385 559.309 232.888 586.5 269.767C589.672 257.321 594.204 246.257 598.282 236.576C601.455 237.037 605.08 237.959 608.706 239.342Z"}),A.jsx("path",{fill:"url(#icons_chains_osmo_radialGradient_1)",d:"M372.594 691.101C512.504 691.101 625.924 575.729 625.924 433.41C625.924 291.091 512.504 175.719 372.594 175.719C232.685 175.719 119.265 291.091 119.265 433.41C119.265 575.729 232.685 691.101 372.594 691.101Z"}),A.jsx("path",{fill:"#A98698",d:"M640.427 175.721C605.985 138.842 576.982 129.161 542.087 121.325C514.896 114.871 522.146 99.1973 555.229 102.424C539.367 96.8924 524.412 95.5094 513.536 97.8143C491.783 102.424 485.439 136.076 490.877 148.984C493.143 154.055 498.128 161.43 504.925 169.728C492.69 178.026 482.266 184.019 473.656 188.629C477.735 190.472 482.72 192.777 488.611 196.004C504.019 204.302 520.787 218.132 520.787 218.132C495.409 196.004 500.847 185.863 535.742 160.969C546.618 153.133 566.558 154.055 585.139 163.735C603.719 173.416 625.472 197.848 625.472 197.848L604.626 238.415C605.985 238.876 607.345 239.337 608.704 239.798C621.847 243.486 632.27 242.564 640.427 239.337C649.944 233.344 674.869 213.061 640.427 175.721Z",opacity:".6"}),A.jsx("path",{fill:"#5E12A0",d:"M541.631 143.45C550.695 147.138 562.478 153.592 576.979 163.273C594.2 174.797 609.155 187.705 618.672 197.847C602.811 219.052 592.388 248.094 586.043 268.377C589.215 272.987 592.841 277.597 596.013 282.207C599.185 270.682 604.624 253.626 611.875 236.569C613.687 237.03 615.953 237.03 618.219 237.03C623.657 237.03 630.002 236.108 634.987 231.96C638.612 229.194 642.691 224.123 642.238 214.903C642.238 206.144 635.44 195.081 621.391 181.712C611.421 172.031 597.826 161.429 584.23 151.748C545.257 125.472 518.066 118.096 505.83 130.543C497.672 138.84 498.579 148.982 501.298 156.358C486.796 166.039 474.56 172.953 466.403 177.563C471.841 179.407 476.826 181.712 482.264 184.017C496.766 176.18 517.613 162.812 541.631 143.45ZM627.283 209.371C628.642 211.676 629.095 213.981 629.095 215.364C629.095 219.513 627.736 220.896 626.83 221.818C625.017 223.201 621.391 224.123 618.219 224.123C620.938 218.591 624.11 213.981 627.283 209.371ZM515.347 140.684C516.706 139.301 520.332 138.379 526.223 139.301C521.691 142.989 517.159 146.216 512.628 149.443C512.174 146.216 512.627 142.989 515.347 140.684Z"}),A.jsx("path",{fill:"#5E12A0",d:"M372.596 160.503C224.405 160.503 104.311 282.664 104.311 433.406C104.311 584.149 224.405 706.31 372.596 706.31C520.786 706.31 640.88 584.149 640.88 433.406C640.88 282.664 520.333 160.503 372.596 160.503ZM372.596 691.098C232.562 691.098 119.266 575.851 119.266 433.406C119.266 290.962 232.562 175.715 372.596 175.715C512.629 175.715 625.925 290.962 625.925 433.406C625.925 575.851 512.176 691.098 372.596 691.098Z"}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_0)",d:"M372.594 691.101C512.504 691.101 625.924 575.729 625.924 433.41C625.924 291.091 512.504 175.719 372.594 175.719C232.685 175.719 119.265 291.091 119.265 433.41C119.265 575.729 232.685 691.101 372.594 691.101Z",opacity:".6"}),A.jsx("path",{fill:"#A98698",d:"M370.783 659.75C232.562 637.161 138.754 504.858 161.413 364.258C171.383 302.025 202.199 249.011 245.705 210.75C182.259 248.089 135.128 313.088 122.439 392.378C100.233 532.978 194.042 665.281 331.809 687.87C408.851 700.777 483.173 676.345 538.008 628.403C489.517 656.984 430.603 669.43 370.783 659.75Z",opacity:".6"}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_1)",d:"M412.93 179.411C349.031 168.808 286.945 183.56 236.189 216.29C235.282 217.212 234.376 218.133 234.376 218.133C253.863 206.148 282.413 195.545 282.413 195.545C208.998 238.878 186.339 288.203 186.339 288.203C214.889 231.963 298.728 192.318 364.439 189.552C430.151 186.786 473.203 206.609 525.772 249.481C578.342 292.813 610.064 381.322 606.892 451.392C604.173 521.462 567.918 578.163 567.918 578.163C592.844 545.433 607.799 521.462 617.315 497.03C619.128 489.654 620.941 482.278 621.847 474.441C644.506 334.302 551.151 201.999 412.93 179.411Z",opacity:".6"}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_2)",d:"M613.235 431.104C613.235 566.173 505.377 675.887 372.595 675.887C239.812 675.887 131.501 566.173 131.501 431.104H613.235Z"}),A.jsx("g",{opacity:".6",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_3)",d:"M594.201 431.104C594.201 562.946 491.781 670.817 363.077 675.887C366.25 675.887 369.422 675.887 372.594 675.887C505.377 675.887 613.234 566.173 613.234 431.104H594.201Z",opacity:".6"})}),A.jsx("g",{opacity:".7",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_4)",d:"M165.49 431.104H131.501C131.501 566.173 239.359 675.887 372.142 675.887C378.033 675.887 383.471 675.887 388.909 675.426C264.284 666.207 165.49 560.18 165.49 431.104Z",opacity:".7"})}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_5)",d:"M612.781 433.407C612.781 405.287 564.744 389.153 500.845 383.621C454.621 379.933 407.943 384.543 354.467 401.138C308.243 414.968 266.55 412.663 236.187 408.975C168.662 401.138 131.501 400.216 131.501 433.407C131.501 481.35 227.576 541.278 371.688 520.533C444.651 509.931 482.265 488.264 525.317 473.513C571.995 457.839 612.781 458.3 612.781 433.407Z"}),A.jsx("path",{fill:"#fff",d:"M451.448 317.236C473.974 317.236 492.234 298.661 492.234 275.747C492.234 252.833 473.974 234.258 451.448 234.258C428.922 234.258 410.661 252.833 410.661 275.747C410.661 298.661 428.922 317.236 451.448 317.236Z"}),A.jsx("path",{fill:"#fff",d:"M518.067 348.13C527.578 348.13 535.288 340.287 535.288 330.612C535.288 320.938 527.578 313.095 518.067 313.095C508.556 313.095 500.846 320.938 500.846 330.612C500.846 340.287 508.556 348.13 518.067 348.13Z"}),A.jsx("g",{opacity:".6",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_6)",d:"M579.703 242.563C579.25 242.563 578.796 242.563 578.796 242.563C576.077 242.102 574.265 239.336 574.718 236.109C578.796 214.904 596.017 194.62 596.924 193.698C598.736 191.393 602.362 191.393 604.175 193.237C606.441 195.081 606.44 198.769 604.628 200.613C604.175 201.074 588.313 219.975 584.688 238.414C584.235 241.18 581.969 242.563 579.703 242.563Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M355.905 625.64C362.913 625.64 368.594 619.861 368.594 612.732C368.594 605.604 362.913 599.825 355.905 599.825C348.897 599.825 343.216 605.604 343.216 612.732C343.216 619.861 348.897 625.64 355.905 625.64Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_7)",d:"M348.577 621.135C343.592 616.065 343.592 607.767 348.577 602.696C349.484 601.774 350.39 601.313 351.296 600.391C349.484 600.852 348.124 601.774 346.765 603.157C341.78 608.228 341.78 616.526 346.765 621.596C350.843 625.745 357.188 626.667 362.173 623.901C357.641 625.745 352.203 624.823 348.577 621.135Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M360.361 609.042C361.863 609.042 363.08 607.804 363.08 606.276C363.08 604.749 361.863 603.51 360.361 603.51C358.859 603.51 357.642 604.749 357.642 606.276C357.642 607.804 358.859 609.042 360.361 609.042Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M422.07 619.19C429.078 619.19 434.759 613.411 434.759 606.282C434.759 599.153 429.078 593.375 422.07 593.375C415.062 593.375 409.381 599.153 409.381 606.282C409.381 613.411 415.062 619.19 422.07 619.19Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_8)",d:"M414.742 614.685C409.757 609.614 409.757 601.317 414.742 596.246C415.648 595.324 416.555 594.863 417.461 593.941C415.648 594.402 414.289 595.324 412.929 596.707C407.944 601.778 407.944 610.075 412.929 615.146C417.008 619.295 423.352 620.217 428.337 617.451C423.806 619.295 418.367 618.373 414.742 614.685Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M426.526 602.592C428.027 602.592 429.245 601.354 429.245 599.826C429.245 598.298 428.027 597.06 426.526 597.06C425.024 597.06 423.806 598.298 423.806 599.826C423.806 601.354 425.024 602.592 426.526 602.592Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M389.361 649.153C394.617 649.153 398.878 644.819 398.878 639.472C398.878 634.126 394.617 629.792 389.361 629.792C384.105 629.792 379.845 634.126 379.845 639.472C379.845 644.819 384.105 649.153 389.361 649.153Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_9)",d:"M383.923 645.57C380.298 641.882 380.298 635.429 383.923 631.741C384.376 631.28 385.283 630.819 385.736 630.358C384.376 630.819 383.47 631.741 382.564 632.663C378.938 636.351 378.938 642.805 382.564 646.492C385.736 649.719 390.268 650.18 394.346 647.875C390.721 649.258 386.642 648.336 383.923 645.57Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M392.532 636.243C393.534 636.243 394.345 635.418 394.345 634.4C394.345 633.381 393.534 632.556 392.532 632.556C391.531 632.556 390.72 633.381 390.72 634.4C390.72 635.418 391.531 636.243 392.532 636.243Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M447.825 642.238C453.081 642.238 457.342 637.904 457.342 632.558C457.342 627.211 453.081 622.877 447.825 622.877C442.569 622.877 438.308 627.211 438.308 632.558C438.308 637.904 442.569 642.238 447.825 642.238Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_10)",d:"M442.387 638.656C438.761 634.968 438.761 628.514 442.387 624.826C442.84 624.365 443.746 623.904 444.199 623.443C442.84 623.904 441.934 624.826 441.027 625.748C437.402 629.436 437.402 635.89 441.027 639.578C444.199 642.805 448.731 643.266 452.81 640.961C449.184 642.344 445.106 641.422 442.387 638.656Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M450.996 629.338C451.997 629.338 452.809 628.512 452.809 627.494C452.809 626.475 451.997 625.65 450.996 625.65C449.995 625.65 449.183 626.475 449.183 627.494C449.183 628.512 449.995 629.338 450.996 629.338Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M301.896 621.034C313.41 621.034 322.743 611.54 322.743 599.829C322.743 588.118 313.41 578.624 301.896 578.624C290.383 578.624 281.05 588.118 281.05 599.829C281.05 611.54 290.383 621.034 301.896 621.034Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_11)",d:"M290.128 613.192C281.971 604.895 281.971 591.526 290.128 583.228C291.488 581.845 292.847 580.923 294.66 580.001C291.941 580.923 289.675 582.767 287.409 584.611C279.252 592.909 279.252 606.278 287.409 614.575C294.207 621.49 304.63 622.873 312.787 617.802C305.083 621.029 296.019 619.646 290.128 613.192Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M309.15 593.372C311.653 593.372 313.682 591.308 313.682 588.762C313.682 586.216 311.653 584.152 309.15 584.152C306.647 584.152 304.618 586.216 304.618 588.762C304.618 591.308 306.647 593.372 309.15 593.372Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M488.23 568.936C499.743 568.936 509.076 559.442 509.076 547.731C509.076 536.019 499.743 526.525 488.23 526.525C476.717 526.525 467.383 536.019 467.383 547.731C467.383 559.442 476.717 568.936 488.23 568.936Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_12)",d:"M475.92 561.103C467.763 552.805 467.763 539.436 475.92 531.139C477.28 529.756 478.639 528.834 480.452 527.912C477.733 528.834 475.467 530.678 473.201 532.521C465.044 540.819 465.044 554.188 473.201 562.486C479.999 569.4 490.422 570.783 498.579 565.713C490.875 568.939 482.265 567.556 475.92 561.103Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M495.407 541.282C497.91 541.282 499.939 539.218 499.939 536.672C499.939 534.126 497.91 532.062 495.407 532.062C492.904 532.062 490.875 534.126 490.875 536.672C490.875 539.218 492.904 541.282 495.407 541.282Z",opacity:".3"})]})})}function fj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"black"}),A.jsx("path",{d:"M29.1239 11.0384L18.375 11.0554C14.8158 11.0554 11.9303 13.9408 11.9303 17.5C11.9303 21.0592 14.8158 23.9447 18.375 23.9447H28.726",stroke:"white",strokeWidth:"2.25944",strokeMiterlimit:"10",strokeLinecap:"round"}),A.jsx("path",{d:"M6.17065 17.5H31.0001",stroke:"white",strokeWidth:"2.25944",strokeMiterlimit:"10",strokeLinecap:"round"}),A.jsx("path",{d:"M18.5 5C25.4036 5 31 10.5964 31 17.5C31 24.4036 25.4036 30 18.5 30C11.5964 30 6 24.4036 6 17.5C6 10.5964 11.5964 5 18.5 5Z",stroke:"white",strokeWidth:"2.25944",strokeMiterlimit:"10",strokeLinecap:"round"})]})}function uj(){return A.jsx("svg",{width:"37",height:"36",viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsxs("g",{clipPath:"url(#icons_chains_uni_clipPath_0)",children:[A.jsx("path",{d:"M30.3597 0H6.49976C3.18605 0 0.499756 2.68629 0.499756 6V30C0.499756 33.3137 3.18605 36 6.49976 36H30.3597C33.6734 36 36.3597 33.3137 36.3597 30V6C36.3597 2.68629 33.6734 0 30.3597 0Z",fill:"url(#icons_chains_uni_radialGradient_0)"}),A.jsx("path",{d:"M33.3037 17.7159C25.2415 17.7159 18.7127 11.155 18.7127 3.06787H18.1467V17.7159H3.55566V18.2841C11.6179 18.2841 18.1467 24.8449 18.1467 32.9321H18.7127V18.2841H33.3037V17.7159Z",fill:"white"})]})})}function dj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#814625"}),A.jsx("path",{d:"M24.0394 22.037V20.5602C24.9485 20.2484 25.6104 19.2803 25.6104 18.1344C25.6104 16.9884 24.9485 16.0176 24.0394 15.7085V14.2317C24.8955 13.939 25.5339 13.0611 25.6045 12H24.5631V12.4513C24.5631 12.7986 24.3513 13.1049 24.0394 13.258V13.0474C24.0394 12.7385 23.7688 12.4868 23.4364 12.4868H23.3835C23.0511 12.4868 22.7804 12.7385 22.7804 13.0474V13.258C22.4686 13.1049 22.2567 12.8013 22.2567 12.4513V12H21.2154C21.286 13.0611 21.9243 13.939 22.7804 14.2317V15.7085C21.8743 16.0176 21.2095 16.9857 21.2095 18.1344C21.2095 19.283 21.8713 20.2511 22.7804 20.5602V22.037C21.9243 22.3297 21.286 23.2076 21.2154 24.2687H22.2567V23.8174C22.2567 23.4701 22.4686 23.1638 22.7804 23.0107V23.2213C22.7804 23.5303 23.0511 23.7819 23.3835 23.7819H23.4364C23.7688 23.7819 24.0394 23.5303 24.0394 23.2213V23.0107C24.3513 23.1638 24.5631 23.4674 24.5631 23.8174V24.2687H25.6045C25.5339 23.2076 24.8955 22.3297 24.0394 22.037ZM22.2567 18.7798V17.4862C22.2567 17.1389 22.4686 16.8326 22.7804 16.6794V16.89C22.7804 17.199 23.0511 17.4507 23.3835 17.4507H23.4364C23.7688 17.4507 24.0394 17.199 24.0394 16.89V16.6794C24.3513 16.8326 24.5631 17.1362 24.5631 17.4862V18.7798C24.5631 19.1271 24.3513 19.4334 24.0394 19.5865V19.376C24.0394 19.067 23.7688 18.8154 23.4364 18.8154H23.3835C23.0511 18.8154 22.7804 19.067 22.7804 19.376V19.5865C22.4715 19.4334 22.2567 19.1298 22.2567 18.7798Z",fill:"white"}),A.jsx("path",{d:"M30.4291 18.9193V17.3468C31.3381 17.035 32.0001 16.0668 32.0001 14.9209C32.0001 13.775 31.3381 12.804 30.4291 12.495V12H29.1729V12.495C28.2639 12.8068 27.6021 13.775 27.6021 14.9209C27.6021 16.0668 28.2639 17.0377 29.1729 17.3468V18.9193C28.2639 19.231 27.6021 20.1992 27.6021 21.3451C27.6021 22.491 28.2639 23.4619 29.1729 23.771V24.266H30.4291V23.771C31.3381 23.4592 32.0001 22.491 32.0001 21.3451C32.0001 20.1992 31.3381 19.231 30.4291 18.9193ZM28.6463 15.5663V14.2727C28.6463 13.9253 28.8582 13.619 29.17 13.4659V13.6765C29.17 13.9856 29.4407 14.2371 29.7731 14.2371H29.8231C30.1555 14.2371 30.4261 13.9856 30.4261 13.6765V13.4659C30.738 13.619 30.9498 13.9226 30.9498 14.2727V15.5663C30.9498 15.9136 30.738 16.22 30.4261 16.3731V16.1625C30.4261 15.8534 30.1555 15.6018 29.8231 15.6018H29.7702C29.4378 15.6018 29.167 15.8534 29.167 16.1625V16.3731C28.8611 16.22 28.6463 15.9164 28.6463 15.5663ZM30.9527 21.9933C30.9527 22.3406 30.741 22.647 30.4291 22.8001V22.491C30.4291 22.182 30.1585 21.9303 29.8261 21.9303H29.776C29.4436 21.9303 29.1729 22.182 29.1729 22.491V22.8001C28.8611 22.647 28.6493 22.3434 28.6493 21.9933V20.6996C28.6493 20.3523 28.8611 20.0461 29.1729 19.8929V20.005C29.1729 20.3141 29.4436 20.5657 29.776 20.5657H29.829C30.1614 20.5657 30.432 20.3141 30.432 20.005V19.8929C30.7439 20.0461 30.9557 20.3496 30.9557 20.6996V21.9933H30.9527Z",fill:"white"}),A.jsx("path",{d:"M16.841 16.8815C16.8292 16.8187 16.8145 16.7585 16.791 16.7011C16.7998 16.6874 18.7531 14.1576 16.944 12.5932C15.1377 11.0289 13.0284 13.0692 13.0166 13.0801C12.6813 12.9816 12.343 12.9214 12.0076 12.8941C12.0076 12.8941 12.0076 12.8941 12.0047 12.8941C11.3162 12.7874 10.3514 12.8941 10.3514 12.8941C10.0189 12.9214 9.68358 12.9816 9.35115 13.0774C9.33938 13.0663 7.2301 11.0261 5.42384 12.5905C3.61757 14.1549 5.56798 16.6874 5.57681 16.6983C5.55622 16.7585 5.53857 16.8187 5.5268 16.8788C5.33264 17.9618 4 18.2955 4 20.1826C4 22.1052 5.39147 23.6203 8.23327 23.6203H9.39822C9.4041 23.6258 9.8542 24.222 10.7838 24.2575C10.7838 24.2575 10.9986 24.2794 11.4928 24.263C12.4783 24.263 12.9578 23.6312 12.9608 23.623H14.1257C16.9674 23.623 18.3589 22.1079 18.3589 20.1853C18.3678 18.301 17.0351 17.9646 16.841 16.8815Z",fill:"white"})]})}function hj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#FF004D"}),A.jsx("path",{d:"M10.0747 20.8363L13.0093 18.0058V17.9933L15.93 20.8238C16.774 21.6379 17.8062 22 18.8245 22C20.9551 22 23.0047 20.3979 23.0047 17.9933L25.9253 20.8238C26.7693 21.6379 27.8015 22 28.8198 22C30.9504 22 33 20.3979 33 17.9933H30.494L27.5733 15.1762C26.7293 14.3621 25.6841 14 24.6657 14C22.5351 14 20.4986 15.5896 20.4986 17.9933L17.578 15.1762C16.734 14.3621 15.6887 14 14.6704 14C12.5398 14 10.5033 15.5896 10.5033 17.9933L3 18.0058C3 20.423 5.07658 21.9865 7.2072 21.9865C8.22545 21.9865 9.25769 21.6244 10.0747 20.8363Z",fill:"white"})]})}function pj(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#0052FF"}),A.jsx("path",{fill:"#fff",d:"M25.7,29.9H6.8V10h4.3v16.1h14.6v3.9h0Z"}),A.jsx("path",{fill:"#fff",d:"M25.7,13.8c2.1,0,3.9-1.7,3.9-3.9s-1.7-3.9-3.9-3.9-3.9,1.7-3.9,3.9,1.7,3.9,3.9,3.9Z"})]})}function i8(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",ry:"6",fill:"#000"}),A.jsx("path",{fill:"#fff",d:"M20.85,21.39h0s0,0,0,0h0,0Z"}),A.jsx("path",{fill:"#fff",d:"M20.85,21.39c-5.28,1.59-9.65,3.9-12.38,6.61l-.12.12c.73.69,1.52,1.3,2.39,1.83l.18-.23c.75-.91,1.55-1.79,2.38-2.62,2.24-2.23,4.79-4.16,7.55-5.71h0Z"}),A.jsx("path",{fill:"#fff",d:"M21.46,19.04H4.03c.21,2.83,1.26,5.42,2.91,7.53l.08-.08c1.69-1.67,3.9-3.19,6.56-4.51,2.33-1.16,5.01-2.16,7.89-2.94Z"}),A.jsx("path",{fill:"#fff",d:"M14.78,7.42c4.72,4.71,10.67,7.82,17.19,9-.79-6.98-6.73-12.41-13.95-12.41-1.91,0-3.72.38-5.38,1.07.67.81,1.39,1.6,2.13,2.34h0Z"}),A.jsx("path",{fill:"#fff",d:"M8.47,8c2.74,2.71,7.1,5.02,12.38,6.61-2.76-1.55-5.32-3.48-7.55-5.71-.83-.83-1.63-1.71-2.38-2.62l-.18-.23c-.86.52-1.66,1.14-2.38,1.83l.12.12s0,0,0,0Z"}),A.jsx("path",{fill:"#fff",d:"M14.78,28.58c-.74.74-1.46,1.53-2.13,2.34,1.66.69,3.48,1.07,5.38,1.07,7.22,0,13.16-5.43,13.95-12.41-6.52,1.18-12.47,4.29-17.19,9h0s0,0,0,0Z"}),A.jsx("path",{fill:"#fff",d:"M13.56,14.01h0c-2.66-1.32-4.86-2.84-6.55-4.51l-.08-.08c-1.65,2.11-2.7,4.7-2.91,7.53h17.43c-2.88-.79-5.56-1.78-7.89-2.95h0Z"})]})}const o8=Ht()((e,{size:t})=>({container:{height:t,width:t,...$0},iconImage:{width:t,height:t},icon:{maxHeight:"100%",maxWidth:"100%"},emptyIcon:{width:t,height:t,background:`color-mix(in hsl, ${e.palette.text.secondary}, ${e.palette.input.background} 80%)`,borderRadius:"3px"}})),Fu={Moonbeam:ZN(),Avalanche:QN(),Bsc:tj(),Celo:VN(),Ethereum:GN(),Fantom:$N(),Polygon:ej(),Solana:qN(),Sui:XN(),Aptos:JN(),Arbitrum:rj(),Optimism:nj(),Base:KN(),Klaytn:ij(),Scroll:oj(),Blast:aj(),Xlayer:cj(),Mantle:sj(),Osmosis:lj(),Worldchain:fj(),Unichain:uj(),Berachain:dj(),Mezo:hj(),Linea:pj(),Sonic:i8()};function gj(e){return Object.keys(Fu).includes(e)}function mj(e){const{classes:t}=o8(e);return A.jsx("div",{className:t.emptyIcon})}function eo(e){const t=e.height||36,{classes:n}=o8({size:t});let a=A.jsx(mj,{size:t});return gj(e.icon)&&Fu[e.icon]?a=Fu[e.icon]:typeof e.icon=="string"&&(a=A.jsx("img",{className:n.iconImage,src:e.icon})),A.jsx("div",{className:n.container,children:a})}const Mj=Ht()(e=>({container:{maxWidth:"650px"},chain:{width:"175px",[e.breakpoints.down("sm")]:{width:"100%"}},inputs:{display:"flex",flexDirection:"row",gap:"16px",[e.breakpoints.down("sm")]:{flexDirection:"column"}},search:{flexGrow:1},footerNavBar:{width:"100%",maxWidth:"700px",display:"flex",flexDirection:"column",alignItems:"center",marginTop:"20px"}})),js="";function yj(){const{classes:e}=Mj(),t=Sr(),[n,a]=ie.useState({chain:js,tx:js,autoSearch:!1}),[c,i]=ie.useState(""),[u,f]=ie.useState(!1),p=qt(S=>S.search),h=bt.useTheme(),g=ie.useContext(ao);function C(S){a(L=>({...L,chain:S.target.value}))}function w(S){a(L=>({...L,tx:S.target.value}))}async function j(){if(!n.tx||!n.chain)return i("Enter the source chain and transaction ID");if(!uw(n.chain,n.tx))return i("Invalid transaction ID");f(!0);const S=await ge.routes.resumeFromTx({chain:n.chain,txid:n.tx});if(S===null){i("Transfer not found, check that you have the correct chain and transaction ID"),f(!1);return}const{route:L}=S;let{receipt:E}=S;const D=await qr(),O=new(ge.routes.get(L)).rc(D);if(i(""),E.state<_.TransferState.Attested){for await(E of O.track(E))if(E.state>=_.TransferState.Attested)break}const F=await FN(L,E);F?(t(md(F)),t(Q5(!0)),t(Md(L)),t(Mn("redeem")),t(Yd(E.to)),g.setRoute(O),g.setReceipt(E)):console.error("Failed to parse receipt",E),f(!1)}ie.useEffect(()=>{p.chain&&p.txHash&&(a({chain:p.chain,tx:p.txHash,autoSearch:!0}),t(Vg()))},[p]);const I=ie.useCallback(()=>j(),[n]);ie.useEffect(()=>{const{chain:S,tx:L,autoSearch:E}=n;E&&S!==js&&L!==js&&!u&&(a(D=>({...D,autoSearch:!1})),I())},[I,n,u]);const T=ie.useMemo(()=>[...ge.chainsArr].sort((S,L)=>S.displayName<L.displayName?-1:S.displayName>L.displayName?1:0),[ge.chainsArr]);return A.jsxs("div",{className:e.container,children:[A.jsx($a,{title:"Resume transaction",description:"Bridging can require a manual redemption process on the designation chain. If you did not complete the redemption during your initial transaction, you may do so here.",back:!0}),A.jsxs("div",{className:e.inputs,children:[A.jsx("div",{className:e.chain,children:A.jsxs(bt.Select,{sx:{width:"100%",height:"100%",minHeight:"64.5px"},value:n.chain,displayEmpty:!0,onChange:S=>C(S),children:[A.jsx(bt.MenuItem,{disabled:!0,value:"",children:A.jsx("em",{children:"Select Network"})},0),T.map(S=>A.jsx(bt.MenuItem,{value:S.sdkName,children:A.jsxs(bt.Box,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[A.jsx(eo,{icon:S.sdkName,height:24}),S.displayName]})},S.sdkName))]})}),A.jsx("div",{className:e.search,children:A.jsx(EN,{placeholder:"Source chain transaction hash",onChange:w,onSearch:j,value:n.tx})})]}),A.jsx(DN,{}),A.jsx(kN,{show:!!c,content:c,error:!0,margin:"0 0 16px 0"}),A.jsx(SN,{disabled:!n.chain||!n.tx,elevated:!0,onClick:j,children:u?A.jsx(bt.CircularProgress,{size:24,sx:{color:h.palette.primary.contrastText}}):"Search"}),A.jsx("div",{className:e.footerNavBar,children:A.jsx(Gd,{})})]})}function vj(){const e=Sr(),{txHash:t,chain:n}=qt(a=>a.search);return ie.useEffect(()=>{var a,c;if((a=ge.ui.searchTx)!=null&&a.chainName&&((c=ge.ui.searchTx)!=null&&c.txHash)){const i=ge.ui.searchTx.chainName.toLowerCase(),u=ge.chainsArr.find(f=>f.sdkName.toLowerCase()===i);u&&e(Qg({txHash:ge.ui.searchTx.txHash,chain:u.sdkName}))}},[e]),{hasExternalSearch:!!(t&&n),txHash:t,chain:n,clear:()=>{e(Vg()),ge.ui.searchTx&&(ge.ui.searchTx.chainName=void 0,ge.ui.searchTx.txHash=void 0)}}}const xj=Et("MuiBox",["root"]),bj=O0(),vn=Cr.createBox({themeId:Pn,defaultTheme:bj,defaultClassName:xj.root,generateClassName:d5.generate});_.dist.process.env.NODE_ENV!=="production"&&(vn.propTypes={children:v.node,component:v.elementType,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Cj(e){return typeof e.main=="string"}function wj(e,t=[]){if(!Cj(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Or(e=[]){return([,t])=>t&&wj(t,e)}function Nj(e){return It("MuiCircularProgress",e)}Et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const si=44,Ru=Cr.keyframes`
93
- 0% {
94
- transform: rotate(0deg);
95
- }
96
-
97
- 100% {
98
- transform: rotate(360deg);
99
- }
100
- `,Pu=Cr.keyframes`
101
- 0% {
102
- stroke-dasharray: 1px, 200px;
103
- stroke-dashoffset: 0;
104
- }
105
-
106
- 50% {
107
- stroke-dasharray: 100px, 200px;
108
- stroke-dashoffset: -15px;
109
- }
110
-
111
- 100% {
112
- stroke-dasharray: 1px, 200px;
113
- stroke-dashoffset: -126px;
114
- }
115
- `,jj=typeof Ru!="string"?Cr.css`
116
- animation: ${Ru} 1.4s linear infinite;
117
- `:null,Tj=typeof Pu!="string"?Cr.css`
118
- animation: ${Pu} 1.4s ease-in-out infinite;
119
- `:null,Aj=e=>{const{classes:t,variant:n,color:a,disableShrink:c}=e,i={root:["root",n,`color${tt(a)}`],svg:["svg"],circle:["circle",`circle${tt(n)}`,c&&"circleDisableShrink"]};return St(i,Nj,t)},Ij=$e("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${tt(n.color)}`]]}})(At(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:jj||{animation:`${Ru} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ej=$e("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Lj=$e("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${tt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(At(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Tj||{animation:`${Pu} 1.4s ease-in-out infinite`}}]}))),Lr=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiCircularProgress"}),{className:c,color:i="primary",disableShrink:u=!1,size:f=40,style:p,thickness:h=3.6,value:g=0,variant:C="indeterminate",...w}=a,j={...a,color:i,disableShrink:u,size:f,thickness:h,value:g,variant:C},I=Aj(j),T={},S={},L={};if(C==="determinate"){const E=2*Math.PI*((si-h)/2);T.strokeDasharray=E.toFixed(3),L["aria-valuenow"]=Math.round(g),T.strokeDashoffset=`${((100-g)/100*E).toFixed(3)}px`,S.transform="rotate(-90deg)"}return A.jsx(Ij,{className:vt(I.root,c),style:{width:f,height:f,...S,...p},ownerState:j,ref:n,role:"progressbar",...L,...w,children:A.jsx(Ej,{className:I.svg,ownerState:j,viewBox:`${si/2} ${si/2} ${si} ${si}`,children:A.jsx(Lj,{className:I.circle,style:T,ownerState:j,cx:si,cy:si,r:(si-h)/2,fill:"none",strokeWidth:h})})})});_.dist.process.env.NODE_ENV!=="production"&&(Lr.propTypes={classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","primary","secondary","error","info","success","warning"]),v.string]),disableShrink:Sn(v.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:v.oneOfType([v.number,v.string]),style:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),thickness:v.number,value:v.number,variant:v.oneOf(["determinate","indeterminate"])});function Sj(e){return It("MuiSvgIcon",e)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Dj=e=>{const{color:t,fontSize:n,classes:a}=e,c={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return St(c,Sj,a)},Oj=$e("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${tt(n.color)}`],t[`fontSize${tt(n.fontSize)}`]]}})(At(({theme:e})=>{var t,n,a,c,i,u,f,p,h,g,C,w,j,I;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(c=(t=e.transitions)==null?void 0:t.create)==null?void 0:c.call(t,"fill",{duration:(a=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:a.shorter}),variants:[{props:T=>!T.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:u.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:p.call(f,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,T])=>T&&T.main).map(([T])=>{var S,L;return{props:{color:T},style:{color:(L=(S=(e.vars??e).palette)==null?void 0:S[T])==null?void 0:L.main}}}),{props:{color:"action"},style:{color:(w=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:w.active}},{props:{color:"disabled"},style:{color:(I=(j=(e.vars??e).palette)==null?void 0:j.action)==null?void 0:I.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),u0=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiSvgIcon"}),{children:c,className:i,color:u="inherit",component:f="svg",fontSize:p="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:C,viewBox:w="0 0 24 24",...j}=a,I=ae.isValidElement(c)&&c.type==="svg",T={...a,color:u,component:f,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:w,hasSvgAsChild:I},S={};g||(S.viewBox=w);const L=Dj(T);return A.jsxs(Oj,{as:f,className:vt(L.root,i),focusable:"false",color:h,"aria-hidden":C?void 0:!0,role:C?"img":void 0,ref:n,...S,...j,...I&&c.props,ownerState:T,children:[I?c.props.children:c,C?A.jsx("title",{children:C}):null]})});_.dist.process.env.NODE_ENV!=="production"&&(u0.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),v.string]),component:v.elementType,fontSize:v.oneOfType([v.oneOf(["inherit","large","medium","small"]),v.string]),htmlColor:v.string,inheritViewBox:v.bool,shapeRendering:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),titleAccess:v.string,viewBox:v.string});u0.muiName="SvgIcon";function Kr(e,t){function n(a,c){return A.jsx(u0,{"data-testid":`${t}Icon`,ref:c,...a,children:e})}return _.dist.process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=u0.muiName,ae.memo(ae.forwardRef(n))}function d0(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return c=>{const i=typeof t=="function"?t(c):t,u=typeof e=="function"?e({...c,...i}):e,f=vt(c==null?void 0:c.className,i==null?void 0:i.className,u==null?void 0:u.className);return{...i,...u,...!!f&&{className:f},...(i==null?void 0:i.style)&&(u==null?void 0:u.style)&&{style:{...i.style,...u.style}},...(i==null?void 0:i.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const n=t,a=vt(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...!!a&&{className:a},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}class h0{constructor(){yt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new h0}static use(){const t=s5(h0.create).current,[n,a]=ae.useState(!1);return t.shouldMount=n,t.setShouldMount=a,ae.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=kj(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function zj(){return h0.use()}function kj(){let e,t;const n=new Promise((a,c)=>{e=a,t=c});return n.resolve=e,n.reject=t,n}function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Uu.apply(null,arguments)}function a8(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Yu(e,t){return Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Yu(e,t)}function s8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yu(e,t)}var Wu={exports:{}},Ur={};/**
120
- * @license React
121
- * react-dom.production.js
122
- *
123
- * Copyright (c) Meta Platforms, Inc. and affiliates.
124
- *
125
- * This source code is licensed under the MIT license found in the
126
- * LICENSE file in the root directory of this source tree.
127
- */var G3;function _j(){if(G3)return Ur;G3=1;var e=ie;function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},c=Symbol.for("react.portal");function i(p,h,g){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:C==null?null:""+C,children:p,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ur.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ur.createPortal=function(p,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return i(p,h,null,g)},Ur.flushSync=function(p){var h=u.T,g=a.p;try{if(u.T=null,a.p=2,p)return p()}finally{u.T=h,a.p=g,a.d.f()}},Ur.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(p,h))},Ur.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},Ur.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var g=h.as,C=f(g,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,j=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?a.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:C,integrity:w,fetchPriority:j}):g==="script"&&a.d.X(p,{crossOrigin:C,integrity:w,fetchPriority:j,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ur.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);a.d.M(p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(p)},Ur.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,C=f(g,h.crossOrigin);a.d.L(p,g,{crossOrigin:C,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ur.preloadModule=function(p,h){if(typeof p=="string")if(h){var g=f(h.as,h.crossOrigin);a.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(p)},Ur.requestFormReset=function(p){a.d.r(p)},Ur.unstable_batchedUpdates=function(p,h){return p(h)},Ur.useFormState=function(p,h,g){return u.H.useFormState(p,h,g)},Ur.useFormStatus=function(){return u.H.useHostTransitionStatus()},Ur.version="19.1.0",Ur}var Yr={},$3;function Bj(){return $3||($3=1,_.dist.process.env.NODE_ENV!=="production"&&function(){function e(){}function t(C){return""+C}function n(C,w,j){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(I);var T=!1}catch{T=!0}return T&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),t(I)),{$$typeof:h,key:I==null?null:""+I,children:C,containerInfo:w,implementation:j}}function a(C,w){if(C==="font")return"";if(typeof w=="string")return w==="use-credentials"?w:""}function c(C){return C===null?"`null`":C===void 0?"`undefined`":C===""?"an empty string":'something with type "'+typeof C+'"'}function i(C){return C===null?"`null`":C===void 0?"`undefined`":C===""?"an empty string":typeof C=="string"?JSON.stringify(C):typeof C=="number"?"`"+C+"`":'something with type "'+typeof C+'"'}function u(){var C=g.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
128
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
129
- 2. You might be breaking the Rules of Hooks
130
- 3. You might have more than one copy of React in the same app
131
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=ie,p={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},h=Symbol.for("react.portal"),g=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Yr.createPortal=function(C,w){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)throw Error("Target container is not a DOM element.");return n(C,w,null,j)},Yr.flushSync=function(C){var w=g.T,j=p.p;try{if(g.T=null,p.p=2,C)return C()}finally{g.T=w,p.p=j,p.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Yr.preconnect=function(C,w){typeof C=="string"&&C?w!=null&&typeof w!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(w)):w!=null&&typeof w.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",c(w.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(C)),typeof C=="string"&&(w?(w=w.crossOrigin,w=typeof w=="string"?w==="use-credentials"?w:"":void 0):w=null,p.d.C(C,w))},Yr.prefetchDNS=function(C){if(typeof C!="string"||!C)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(C));else if(1<arguments.length){var w=arguments[1];typeof w=="object"&&w.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(w)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(w))}typeof C=="string"&&p.d.D(C)},Yr.preinit=function(C,w){if(typeof C=="string"&&C?w==null||typeof w!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(w)):w.as!=="style"&&w.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(w.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(C)),typeof C=="string"&&w&&typeof w.as=="string"){var j=w.as,I=a(j,w.crossOrigin),T=typeof w.integrity=="string"?w.integrity:void 0,S=typeof w.fetchPriority=="string"?w.fetchPriority:void 0;j==="style"?p.d.S(C,typeof w.precedence=="string"?w.precedence:void 0,{crossOrigin:I,integrity:T,fetchPriority:S}):j==="script"&&p.d.X(C,{crossOrigin:I,integrity:T,fetchPriority:S,nonce:typeof w.nonce=="string"?w.nonce:void 0})}},Yr.preinitModule=function(C,w){var j="";if(typeof C=="string"&&C||(j+=" The `href` argument encountered was "+c(C)+"."),w!==void 0&&typeof w!="object"?j+=" The `options` argument encountered was "+c(w)+".":w&&"as"in w&&w.as!=="script"&&(j+=" The `as` option encountered was "+i(w.as)+"."),j)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",j);else switch(j=w&&typeof w.as=="string"?w.as:"script",j){case"script":break;default:j=i(j),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',j,C)}typeof C=="string"&&(typeof w=="object"&&w!==null?(w.as==null||w.as==="script")&&(j=a(w.as,w.crossOrigin),p.d.M(C,{crossOrigin:j,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0})):w==null&&p.d.M(C))},Yr.preload=function(C,w){var j="";if(typeof C=="string"&&C||(j+=" The `href` argument encountered was "+c(C)+"."),w==null||typeof w!="object"?j+=" The `options` argument encountered was "+c(w)+".":typeof w.as=="string"&&w.as||(j+=" The `as` option encountered was "+c(w.as)+"."),j&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',j),typeof C=="string"&&typeof w=="object"&&w!==null&&typeof w.as=="string"){j=w.as;var I=a(j,w.crossOrigin);p.d.L(C,j,{crossOrigin:I,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0,type:typeof w.type=="string"?w.type:void 0,fetchPriority:typeof w.fetchPriority=="string"?w.fetchPriority:void 0,referrerPolicy:typeof w.referrerPolicy=="string"?w.referrerPolicy:void 0,imageSrcSet:typeof w.imageSrcSet=="string"?w.imageSrcSet:void 0,imageSizes:typeof w.imageSizes=="string"?w.imageSizes:void 0,media:typeof w.media=="string"?w.media:void 0})}},Yr.preloadModule=function(C,w){var j="";typeof C=="string"&&C||(j+=" The `href` argument encountered was "+c(C)+"."),w!==void 0&&typeof w!="object"?j+=" The `options` argument encountered was "+c(w)+".":w&&"as"in w&&typeof w.as!="string"&&(j+=" The `as` option encountered was "+c(w.as)+"."),j&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',j),typeof C=="string"&&(w?(j=a(w.as,w.crossOrigin),p.d.m(C,{as:typeof w.as=="string"&&w.as!=="script"?w.as:void 0,crossOrigin:j,integrity:typeof w.integrity=="string"?w.integrity:void 0})):p.d.m(C))},Yr.requestFormReset=function(C){p.d.r(C)},Yr.unstable_batchedUpdates=function(C,w){return C(w)},Yr.useFormState=function(C,w,j){return u().useFormState(C,w,j)},Yr.useFormStatus=function(){return u().useHostTransitionStatus()},Yr.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Yr}function c8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(_.dist.process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c8)}catch(e){console.error(e)}}}_.dist.process.env.NODE_ENV==="production"?(c8(),Wu.exports=_j()):Wu.exports=Bj();var p0=Wu.exports;const Ts=_.getDefaultExportFromCjs(p0),q3={disabled:!1};var Fj=_.dist.process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.shape({enter:v.number,exit:v.number,appear:v.number}).isRequired]):null;_.dist.process.env.NODE_ENV!=="production"&&v.oneOfType([v.string,v.shape({enter:v.string,exit:v.string,active:v.string}),v.shape({enter:v.string,enterDone:v.string,enterActive:v.string,exit:v.string,exitDone:v.string,exitActive:v.string})]);const g0=ie.createContext(null);var Rj=function(t){return t.scrollTop},ia="unmounted",_i="exited",Bi="entering",mo="entered",Hu="exiting",In=function(e){s8(t,e);function t(a,c){var i;i=e.call(this,a,c)||this;var u=c,f=u&&!u.isMounting?a.enter:a.appear,p;return i.appearStatus=null,a.in?f?(p=_i,i.appearStatus=Bi):p=mo:a.unmountOnExit||a.mountOnEnter?p=ia:p=_i,i.state={status:p},i.nextCallback=null,i}t.getDerivedStateFromProps=function(c,i){var u=c.in;return u&&i.status===ia?{status:_i}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(c){var i=null;if(c!==this.props){var u=this.state.status;this.props.in?u!==Bi&&u!==mo&&(i=Bi):(u===Bi||u===mo)&&(i=Hu)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var c=this.props.timeout,i,u,f;return i=u=f=c,c!=null&&typeof c!="number"&&(i=c.exit,u=c.enter,f=c.appear!==void 0?c.appear:u),{exit:i,enter:u,appear:f}},n.updateStatus=function(c,i){if(c===void 0&&(c=!1),i!==null)if(this.cancelNextCallback(),i===Bi){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this);u&&Rj(u)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_i&&this.setState({status:ia})},n.performEnter=function(c){var i=this,u=this.props.enter,f=this.context?this.context.isMounting:c,p=this.props.nodeRef?[f]:[Ts.findDOMNode(this),f],h=p[0],g=p[1],C=this.getTimeouts(),w=f?C.appear:C.enter;if(!c&&!u||q3.disabled){this.safeSetState({status:mo},function(){i.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:Bi},function(){i.props.onEntering(h,g),i.onTransitionEnd(w,function(){i.safeSetState({status:mo},function(){i.props.onEntered(h,g)})})})},n.performExit=function(){var c=this,i=this.props.exit,u=this.getTimeouts(),f=this.props.nodeRef?void 0:Ts.findDOMNode(this);if(!i||q3.disabled){this.safeSetState({status:_i},function(){c.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Hu},function(){c.props.onExiting(f),c.onTransitionEnd(u.exit,function(){c.safeSetState({status:_i},function(){c.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(c,i){i=this.setNextCallback(i),this.setState(c,i)},n.setNextCallback=function(c){var i=this,u=!0;return this.nextCallback=function(f){u&&(u=!1,i.nextCallback=null,c(f))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(c,i){this.setNextCallback(i);var u=this.props.nodeRef?this.props.nodeRef.current:Ts.findDOMNode(this),f=c==null&&!this.props.addEndListener;if(!u||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],h=p[0],g=p[1];this.props.addEndListener(h,g)}c!=null&&setTimeout(this.nextCallback,c)},n.render=function(){var c=this.state.status;if(c===ia)return null;var i=this.props,u=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var f=a8(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(g0.Provider,{value:null},typeof u=="function"?u(c,f):ie.cloneElement(ie.Children.only(u),f))},t}(ie.Component);In.contextType=g0;In.propTypes=_.dist.process.env.NODE_ENV!=="production"?{nodeRef:v.shape({current:typeof Element>"u"?v.any:function(e,t,n,a,c,i){var u=e[t];return v.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,a,c,i)}}),children:v.oneOfType([v.func.isRequired,v.element.isRequired]).isRequired,in:v.bool,mountOnEnter:v.bool,unmountOnExit:v.bool,appear:v.bool,enter:v.bool,exit:v.bool,timeout:function(t){var n=Fj;t.addEndListener||(n=n.isRequired);for(var a=arguments.length,c=new Array(a>1?a-1:0),i=1;i<a;i++)c[i-1]=arguments[i];return n.apply(void 0,[t].concat(c))},addEndListener:v.func,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}:{};function go(){}In.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:go,onEntering:go,onEntered:go,onExit:go,onExiting:go,onExited:go};In.UNMOUNTED=ia;In.EXITED=_i;In.ENTERING=Bi;In.ENTERED=mo;In.EXITING=Hu;function Pj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $d(e,t){var n=function(i){return t&&ie.isValidElement(i)?t(i):i},a=Object.create(null);return e&&ie.Children.map(e,function(c){return c}).forEach(function(c){a[c.key]=n(c)}),a}function Uj(e,t){e=e||{},t=t||{};function n(g){return g in t?t[g]:e[g]}var a=Object.create(null),c=[];for(var i in e)i in t?c.length&&(a[i]=c,c=[]):c.push(i);var u,f={};for(var p in t){if(a[p])for(u=0;u<a[p].length;u++){var h=a[p][u];f[a[p][u]]=n(h)}f[p]=n(p)}for(u=0;u<c.length;u++)f[c[u]]=n(c[u]);return f}function Hi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Yj(e,t){return $d(e.children,function(n){return ie.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Hi(n,"appear",e),enter:Hi(n,"enter",e),exit:Hi(n,"exit",e)})})}function Wj(e,t,n){var a=$d(e.children),c=Uj(t,a);return Object.keys(c).forEach(function(i){var u=c[i];if(ie.isValidElement(u)){var f=i in t,p=i in a,h=t[i],g=ie.isValidElement(h)&&!h.props.in;p&&(!f||g)?c[i]=ie.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:Hi(u,"exit",e),enter:Hi(u,"enter",e)}):!p&&f&&!g?c[i]=ie.cloneElement(u,{in:!1}):p&&f&&ie.isValidElement(h)&&(c[i]=ie.cloneElement(u,{onExited:n.bind(null,u),in:h.props.in,exit:Hi(u,"exit",e),enter:Hi(u,"enter",e)}))}}),c}var Hj=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zj={component:"div",childFactory:function(t){return t}},qd=function(e){s8(t,e);function t(a,c){var i;i=e.call(this,a,c)||this;var u=i.handleExited.bind(Pj(i));return i.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(c,i){var u=i.children,f=i.handleExited,p=i.firstRender;return{children:p?Yj(c,f):Wj(c,u,f),firstRender:!1}},n.handleExited=function(c,i){var u=$d(this.props.children);c.key in u||(c.props.onExited&&c.props.onExited(i),this.mounted&&this.setState(function(f){var p=Uu({},f.children);return delete p[c.key],{children:p}}))},n.render=function(){var c=this.props,i=c.component,u=c.childFactory,f=a8(c,["component","childFactory"]),p=this.state.contextValue,h=Hj(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,i===null?ie.createElement(g0.Provider,{value:p},h):ie.createElement(g0.Provider,{value:p},ie.createElement(i,f,h))},t}(ie.Component);qd.propTypes=_.dist.process.env.NODE_ENV!=="production"?{component:v.any,children:v.node,appear:v.bool,enter:v.bool,exit:v.bool,childFactory:v.func}:{};qd.defaultProps=Zj;function l8(e){const{className:t,classes:n,pulsate:a=!1,rippleX:c,rippleY:i,rippleSize:u,in:f,onExited:p,timeout:h}=e,[g,C]=ae.useState(!1),w=vt(t,n.ripple,n.rippleVisible,a&&n.ripplePulsate),j={width:u,height:u,top:-(u/2)+i,left:-(u/2)+c},I=vt(n.child,g&&n.childLeaving,a&&n.childPulsate);return!f&&!g&&C(!0),ae.useEffect(()=>{if(!f&&p!=null){const T=setTimeout(p,h);return()=>{clearTimeout(T)}}},[p,f,h]),A.jsx("span",{className:w,style:j,children:A.jsx("span",{className:I})})}_.dist.process.env.NODE_ENV!=="production"&&(l8.propTypes={classes:v.object.isRequired,className:v.string,in:v.bool,onExited:v.func,pulsate:v.bool,rippleSize:v.number,rippleX:v.number,rippleY:v.number,timeout:v.number.isRequired});const pn=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zu=550,Qj=80,Vj=Cr.keyframes`
132
- 0% {
133
- transform: scale(0);
134
- opacity: 0.1;
135
- }
136
-
137
- 100% {
138
- transform: scale(1);
139
- opacity: 0.3;
140
- }
141
- `,Gj=Cr.keyframes`
142
- 0% {
143
- opacity: 1;
144
- }
145
-
146
- 100% {
147
- opacity: 0;
148
- }
149
- `,$j=Cr.keyframes`
150
- 0% {
151
- transform: scale(1);
152
- }
153
-
154
- 50% {
155
- transform: scale(0.92);
156
- }
157
-
158
- 100% {
159
- transform: scale(1);
160
- }
161
- `,qj=$e("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Jj=$e(l8,{name:"MuiTouchRipple",slot:"Ripple"})`
162
- opacity: 0;
163
- position: absolute;
164
-
165
- &.${pn.rippleVisible} {
166
- opacity: 0.3;
167
- transform: scale(1);
168
- animation-name: ${Vj};
169
- animation-duration: ${Zu}ms;
170
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
- }
172
-
173
- &.${pn.ripplePulsate} {
174
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
175
- }
176
-
177
- & .${pn.child} {
178
- opacity: 1;
179
- display: block;
180
- width: 100%;
181
- height: 100%;
182
- border-radius: 50%;
183
- background-color: currentColor;
184
- }
185
-
186
- & .${pn.childLeaving} {
187
- opacity: 0;
188
- animation-name: ${Gj};
189
- animation-duration: ${Zu}ms;
190
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
191
- }
192
-
193
- & .${pn.childPulsate} {
194
- position: absolute;
195
- /* @noflip */
196
- left: 0px;
197
- top: 0;
198
- animation-name: ${$j};
199
- animation-duration: 2500ms;
200
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
201
- animation-iteration-count: infinite;
202
- animation-delay: 200ms;
203
- }
204
- `,f8=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiTouchRipple"}),{center:c=!1,classes:i={},className:u,...f}=a,[p,h]=ae.useState([]),g=ae.useRef(0),C=ae.useRef(null);ae.useEffect(()=>{C.current&&(C.current(),C.current=null)},[p]);const w=ae.useRef(!1),j=Pi(),I=ae.useRef(null),T=ae.useRef(null),S=ae.useCallback(O=>{const{pulsate:F,rippleX:R,rippleY:Q,rippleSize:B,cb:k}=O;h(z=>[...z,A.jsx(Jj,{classes:{ripple:vt(i.ripple,pn.ripple),rippleVisible:vt(i.rippleVisible,pn.rippleVisible),ripplePulsate:vt(i.ripplePulsate,pn.ripplePulsate),child:vt(i.child,pn.child),childLeaving:vt(i.childLeaving,pn.childLeaving),childPulsate:vt(i.childPulsate,pn.childPulsate)},timeout:Zu,pulsate:F,rippleX:R,rippleY:Q,rippleSize:B},g.current)]),g.current+=1,C.current=k},[i]),L=ae.useCallback((O={},F={},R=()=>{})=>{const{pulsate:Q=!1,center:B=c||F.pulsate,fakeElement:k=!1}=F;if((O==null?void 0:O.type)==="mousedown"&&w.current){w.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(w.current=!0);const z=k?null:T.current,y=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let r,s,l;if(B||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)r=Math.round(y.width/2),s=Math.round(y.height/2);else{const{clientX:d,clientY:M}=O.touches&&O.touches.length>0?O.touches[0]:O;r=Math.round(d-y.left),s=Math.round(M-y.top)}if(B)l=Math.sqrt((2*y.width**2+y.height**2)/3),l%2===0&&(l+=1);else{const d=Math.max(Math.abs((z?z.clientWidth:0)-r),r)*2+2,M=Math.max(Math.abs((z?z.clientHeight:0)-s),s)*2+2;l=Math.sqrt(d**2+M**2)}O!=null&&O.touches?I.current===null&&(I.current=()=>{S({pulsate:Q,rippleX:r,rippleY:s,rippleSize:l,cb:R})},j.start(Qj,()=>{I.current&&(I.current(),I.current=null)})):S({pulsate:Q,rippleX:r,rippleY:s,rippleSize:l,cb:R})},[c,S,j]),E=ae.useCallback(()=>{L({},{pulsate:!0})},[L]),D=ae.useCallback((O,F)=>{if(j.clear(),(O==null?void 0:O.type)==="touchend"&&I.current){I.current(),I.current=null,j.start(0,()=>{D(O,F)});return}I.current=null,h(R=>R.length>0?R.slice(1):R),C.current=F},[j]);return ae.useImperativeHandle(n,()=>({pulsate:E,start:L,stop:D}),[E,L,D]),A.jsx(qj,{className:vt(pn.root,i.root,u),ref:T,...f,children:A.jsx(qd,{component:null,exit:!0,children:p})})});_.dist.process.env.NODE_ENV!=="production"&&(f8.propTypes={center:v.bool,classes:v.object,className:v.string});function Xj(e){return It("MuiButtonBase",e)}const Kj=Et("MuiButtonBase",["root","disabled","focusVisible"]),eT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:a,classes:c}=e,u=St({root:["root",t&&"disabled",n&&"focusVisible"]},Xj,c);return n&&a&&(u.root+=` ${a}`),u},tT=$e("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Kj.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),so=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiButtonBase"}),{action:c,centerRipple:i=!1,children:u,className:f,component:p="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:C=!1,focusRipple:w=!1,focusVisibleClassName:j,LinkComponent:I="a",onBlur:T,onClick:S,onContextMenu:L,onDragLeave:E,onFocus:D,onFocusVisible:O,onKeyDown:F,onKeyUp:R,onMouseDown:Q,onMouseLeave:B,onMouseUp:k,onTouchEnd:z,onTouchMove:y,onTouchStart:r,tabIndex:s=0,TouchRippleProps:l,touchRippleRef:d,type:M,...b}=a,N=ae.useRef(null),m=zj(),o=br(m.ref,d),[x,W]=ae.useState(!1);h&&x&&W(!1),ae.useImperativeHandle(c,()=>({focusVisible:()=>{W(!0),N.current.focus()}}),[]);const Z=m.shouldMount&&!g&&!h;ae.useEffect(()=>{x&&w&&!g&&m.pulsate()},[g,w,x,m]);const G=$n(m,"start",Q,C),ee=$n(m,"stop",L,C),V=$n(m,"stop",E,C),P=$n(m,"stop",k,C),H=$n(m,"stop",oe=>{x&&oe.preventDefault(),B&&B(oe)},C),$=$n(m,"start",r,C),X=$n(m,"stop",z,C),te=$n(m,"stop",y,C),Y=$n(m,"stop",oe=>{wo(oe.target)||W(!1),T&&T(oe)},!1),ne=mn(oe=>{N.current||(N.current=oe.currentTarget),wo(oe.target)&&(W(!0),O&&O(oe)),D&&D(oe)}),xe=()=>{const oe=N.current;return p&&p!=="button"&&!(oe.tagName==="A"&&oe.href)},le=mn(oe=>{w&&!oe.repeat&&x&&oe.key===" "&&m.stop(oe,()=>{m.start(oe)}),oe.target===oe.currentTarget&&xe()&&oe.key===" "&&oe.preventDefault(),F&&F(oe),oe.target===oe.currentTarget&&xe()&&oe.key==="Enter"&&!h&&(oe.preventDefault(),S&&S(oe))}),ue=mn(oe=>{w&&oe.key===" "&&x&&!oe.defaultPrevented&&m.stop(oe,()=>{m.pulsate(oe)}),R&&R(oe),S&&oe.target===oe.currentTarget&&xe()&&oe.key===" "&&!oe.defaultPrevented&&S(oe)});let Ve=p;Ve==="button"&&(b.href||b.to)&&(Ve=I);const he={};Ve==="button"?(he.type=M===void 0?"button":M,he.disabled=h):(!b.href&&!b.to&&(he.role="button"),h&&(he["aria-disabled"]=h));const be=br(n,N),st={...a,centerRipple:i,component:p,disabled:h,disableRipple:g,disableTouchRipple:C,focusRipple:w,tabIndex:s,focusVisible:x},Me=eT(st);return A.jsxs(tT,{as:Ve,className:vt(Me.root,f),ownerState:st,onBlur:Y,onClick:S,onContextMenu:ee,onFocus:ne,onKeyDown:le,onKeyUp:ue,onMouseDown:G,onMouseLeave:H,onMouseUp:P,onDragLeave:V,onTouchEnd:X,onTouchMove:te,onTouchStart:$,ref:be,tabIndex:h?-1:s,type:M,...he,...b,children:[u,Z?A.jsx(f8,{ref:o,center:i,...l}):null]})});function $n(e,t,n,a=!1){return mn(c=>(n&&n(c),a||e[t](c),!0))}_.dist.process.env.NODE_ENV!=="production"&&(so.propTypes={action:sn,centerRipple:v.bool,children:v.node,classes:v.object,className:v.string,component:yi,disabled:v.bool,disableRipple:v.bool,disableTouchRipple:v.bool,focusRipple:v.bool,focusVisibleClassName:v.string,href:v.any,LinkComponent:v.elementType,onBlur:v.func,onClick:v.func,onContextMenu:v.func,onDragLeave:v.func,onFocus:v.func,onFocusVisible:v.func,onKeyDown:v.func,onKeyUp:v.func,onMouseDown:v.func,onMouseLeave:v.func,onMouseUp:v.func,onTouchEnd:v.func,onTouchMove:v.func,onTouchStart:v.func,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number,TouchRippleProps:v.object,touchRippleRef:v.oneOfType([v.func,v.shape({current:v.shape({pulsate:v.func.isRequired,start:v.func.isRequired,stop:v.func.isRequired})})]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string])});function rT(e){return It("MuiIconButton",e)}const J3=Et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),nT=e=>{const{classes:t,disabled:n,color:a,edge:c,size:i,loading:u}=e,f={root:["root",u&&"loading",n&&"disabled",a!=="default"&&`color${tt(a)}`,c&&`edge${tt(c)}`,`size${tt(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return St(f,rT,t)},iT=$e(so,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${tt(n.color)}`],n.edge&&t[`edge${tt(n.edge)}`],t[`size${tt(n.size)}`]]}})(At(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),At(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${J3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${J3.loading}`]:{color:"transparent"}}))),oT=$e("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Po=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiIconButton"}),{edge:c=!1,children:i,className:u,color:f="default",disabled:p=!1,disableFocusRipple:h=!1,size:g="medium",id:C,loading:w=null,loadingIndicator:j,...I}=a,T=Ua(C),S=j??A.jsx(Lr,{"aria-labelledby":T,color:"inherit",size:16}),L={...a,edge:c,color:f,disabled:p,disableFocusRipple:h,loading:w,loadingIndicator:S,size:g},E=nT(L);return A.jsxs(iT,{id:w?T:C,className:vt(E.root,u),centerRipple:!0,focusRipple:!h,disabled:p||w,ref:n,...I,ownerState:L,children:[typeof w=="boolean"&&A.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:A.jsx(oT,{className:E.loadingIndicator,ownerState:L,children:w&&S})}),i]})});_.dist.process.env.NODE_ENV!=="production"&&(Po.propTypes={children:Sn(v.node,e=>ae.Children.toArray(e.children).some(n=>ae.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
205
- `)):null),classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),v.string]),disabled:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,edge:v.oneOf(["end","start",!1]),id:v.string,loading:v.bool,loadingIndicator:v.node,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const Jd=e=>e.scrollTop;function ni(e,t){const{timeout:n,easing:a,style:c={}}=e;return{duration:c.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:c.transitionTimingFunction??(typeof a=="object"?a[t.mode]:a),delay:c.transitionDelay}}function Qu(e){return`scale(${e}, ${e**2})`}const aT={entering:{opacity:1,transform:Qu(1)},entered:{opacity:1,transform:"none"}},$f=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ta=ae.forwardRef(function(t,n){const{addEndListener:a,appear:c=!0,children:i,easing:u,in:f,onEnter:p,onEntered:h,onEntering:g,onExit:C,onExited:w,onExiting:j,style:I,timeout:T="auto",TransitionComponent:S=In,...L}=t,E=Pi(),D=ae.useRef(),O=Dn(),F=ae.useRef(null),R=br(F,io(i),n),Q=d=>M=>{if(d){const b=F.current;M===void 0?d(b):d(b,M)}},B=Q(g),k=Q((d,M)=>{Jd(d);const{duration:b,delay:N,easing:m}=ni({style:I,timeout:T,easing:u},{mode:"enter"});let o;T==="auto"?(o=O.transitions.getAutoHeightDuration(d.clientHeight),D.current=o):o=b,d.style.transition=[O.transitions.create("opacity",{duration:o,delay:N}),O.transitions.create("transform",{duration:$f?o:o*.666,delay:N,easing:m})].join(","),p&&p(d,M)}),z=Q(h),y=Q(j),r=Q(d=>{const{duration:M,delay:b,easing:N}=ni({style:I,timeout:T,easing:u},{mode:"exit"});let m;T==="auto"?(m=O.transitions.getAutoHeightDuration(d.clientHeight),D.current=m):m=M,d.style.transition=[O.transitions.create("opacity",{duration:m,delay:b}),O.transitions.create("transform",{duration:$f?m:m*.666,delay:$f?b:b||m*.333,easing:N})].join(","),d.style.opacity=0,d.style.transform=Qu(.75),C&&C(d)}),s=Q(w),l=d=>{T==="auto"&&E.start(D.current||0,d),a&&a(F.current,d)};return A.jsx(S,{appear:c,in:f,nodeRef:F,onEnter:k,onEntered:z,onEntering:B,onExit:r,onExited:s,onExiting:y,addEndListener:l,timeout:T==="auto"?null:T,...L,children:(d,{ownerState:M,...b})=>ae.cloneElement(i,{style:{opacity:0,transform:Qu(.75),visibility:d==="exited"&&!f?"hidden":void 0,...aT[d],...I,...i.props.style},ref:R,...b})})});_.dist.process.env.NODE_ENV!=="production"&&(Ta.propTypes={addEndListener:v.func,appear:v.bool,children:no.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});Ta&&(Ta.muiSupportAuto=!0);var Jr="top",wn="bottom",Nn="right",Xr="left",Xd="auto",qa=[Jr,wn,Nn,Xr],Io="start",Aa="end",sT="clippingParents",u8="viewport",Vo="popper",cT="reference",X3=qa.reduce(function(e,t){return e.concat([t+"-"+Io,t+"-"+Aa])},[]),d8=[].concat(qa,[Xd]).reduce(function(e,t){return e.concat([t,t+"-"+Io,t+"-"+Aa])},[]),lT="beforeRead",fT="read",uT="afterRead",dT="beforeMain",hT="main",pT="afterMain",gT="beforeWrite",mT="write",MT="afterWrite",yT=[lT,fT,uT,dT,hT,pT,gT,mT,MT];function Zn(e){return e?(e.nodeName||"").toLowerCase():null}function an(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function to(e){var t=an(e).Element;return e instanceof t||e instanceof Element}function xn(e){var t=an(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kd(e){if(typeof ShadowRoot>"u")return!1;var t=an(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},c=t.attributes[n]||{},i=t.elements[n];!xn(i)||!Zn(i)||(Object.assign(i.style,a),Object.keys(c).forEach(function(u){var f=c[u];f===!1?i.removeAttribute(u):i.setAttribute(u,f===!0?"":f)}))})}function xT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var c=t.elements[a],i=t.attributes[a]||{},u=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),f=u.reduce(function(p,h){return p[h]="",p},{});!xn(c)||!Zn(c)||(Object.assign(c.style,f),Object.keys(i).forEach(function(p){c.removeAttribute(p)}))})}}const bT={name:"applyStyles",enabled:!0,phase:"write",fn:vT,effect:xT,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Gi=Math.max,m0=Math.min,Eo=Math.round;function Vu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function h8(){return!/^((?!chrome|android).)*safari/i.test(Vu())}function Lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),c=1,i=1;t&&xn(e)&&(c=e.offsetWidth>0&&Eo(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Eo(a.height)/e.offsetHeight||1);var u=to(e)?an(e):window,f=u.visualViewport,p=!h8()&&n,h=(a.left+(p&&f?f.offsetLeft:0))/c,g=(a.top+(p&&f?f.offsetTop:0))/i,C=a.width/c,w=a.height/i;return{width:C,height:w,top:g,right:h+C,bottom:g+w,left:h,x:h,y:g}}function e1(e){var t=Lo(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function p8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kd(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ii(e){return an(e).getComputedStyle(e)}function CT(e){return["table","td","th"].indexOf(Zn(e))>=0}function Ni(e){return((to(e)?e.ownerDocument:e.document)||window.document).documentElement}function q0(e){return Zn(e)==="html"?e:e.assignedSlot||e.parentNode||(Kd(e)?e.host:null)||Ni(e)}function K3(e){return!xn(e)||ii(e).position==="fixed"?null:e.offsetParent}function wT(e){var t=/firefox/i.test(Vu()),n=/Trident/i.test(Vu());if(n&&xn(e)){var a=ii(e);if(a.position==="fixed")return null}var c=q0(e);for(Kd(c)&&(c=c.host);xn(c)&&["html","body"].indexOf(Zn(c))<0;){var i=ii(c);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return c;c=c.parentNode}return null}function Ja(e){for(var t=an(e),n=K3(e);n&&CT(n)&&ii(n).position==="static";)n=K3(n);return n&&(Zn(n)==="html"||Zn(n)==="body"&&ii(n).position==="static")?t:n||wT(e)||t}function t1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pa(e,t,n){return Gi(e,m0(t,n))}function NT(e,t,n){var a=pa(e,t,n);return a>n?n:a}function g8(){return{top:0,right:0,bottom:0,left:0}}function m8(e){return Object.assign({},g8(),e)}function M8(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var jT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,m8(typeof t!="number"?t:M8(t,qa))};function TT(e){var t,n=e.state,a=e.name,c=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,f=Un(n.placement),p=t1(f),h=[Xr,Nn].indexOf(f)>=0,g=h?"height":"width";if(!(!i||!u)){var C=jT(c.padding,n),w=e1(i),j=p==="y"?Jr:Xr,I=p==="y"?wn:Nn,T=n.rects.reference[g]+n.rects.reference[p]-u[p]-n.rects.popper[g],S=u[p]-n.rects.reference[p],L=Ja(i),E=L?p==="y"?L.clientHeight||0:L.clientWidth||0:0,D=T/2-S/2,O=C[j],F=E-w[g]-C[I],R=E/2-w[g]/2+D,Q=pa(O,R,F),B=p;n.modifiersData[a]=(t={},t[B]=Q,t.centerOffset=Q-R,t)}}function AT(e){var t=e.state,n=e.options,a=n.element,c=a===void 0?"[data-popper-arrow]":a;c!=null&&(typeof c=="string"&&(c=t.elements.popper.querySelector(c),!c)||p8(t.elements.popper,c)&&(t.elements.arrow=c))}const IT={name:"arrow",enabled:!0,phase:"main",fn:TT,effect:AT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function So(e){return e.split("-")[1]}var ET={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LT(e,t){var n=e.x,a=e.y,c=t.devicePixelRatio||1;return{x:Eo(n*c)/c||0,y:Eo(a*c)/c||0}}function ep(e){var t,n=e.popper,a=e.popperRect,c=e.placement,i=e.variation,u=e.offsets,f=e.position,p=e.gpuAcceleration,h=e.adaptive,g=e.roundOffsets,C=e.isFixed,w=u.x,j=w===void 0?0:w,I=u.y,T=I===void 0?0:I,S=typeof g=="function"?g({x:j,y:T}):{x:j,y:T};j=S.x,T=S.y;var L=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),D=Xr,O=Jr,F=window;if(h){var R=Ja(n),Q="clientHeight",B="clientWidth";if(R===an(n)&&(R=Ni(n),ii(R).position!=="static"&&f==="absolute"&&(Q="scrollHeight",B="scrollWidth")),R=R,c===Jr||(c===Xr||c===Nn)&&i===Aa){O=wn;var k=C&&R===F&&F.visualViewport?F.visualViewport.height:R[Q];T-=k-a.height,T*=p?1:-1}if(c===Xr||(c===Jr||c===wn)&&i===Aa){D=Nn;var z=C&&R===F&&F.visualViewport?F.visualViewport.width:R[B];j-=z-a.width,j*=p?1:-1}}var y=Object.assign({position:f},h&&ET),r=g===!0?LT({x:j,y:T},an(n)):{x:j,y:T};if(j=r.x,T=r.y,p){var s;return Object.assign({},y,(s={},s[O]=E?"0":"",s[D]=L?"0":"",s.transform=(F.devicePixelRatio||1)<=1?"translate("+j+"px, "+T+"px)":"translate3d("+j+"px, "+T+"px, 0)",s))}return Object.assign({},y,(t={},t[O]=E?T+"px":"",t[D]=L?j+"px":"",t.transform="",t))}function ST(e){var t=e.state,n=e.options,a=n.gpuAcceleration,c=a===void 0?!0:a,i=n.adaptive,u=i===void 0?!0:i,f=n.roundOffsets,p=f===void 0?!0:f,h={placement:Un(t.placement),variation:So(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ep(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ep(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ST,data:{}};var As={passive:!0};function OT(e){var t=e.state,n=e.instance,a=e.options,c=a.scroll,i=c===void 0?!0:c,u=a.resize,f=u===void 0?!0:u,p=an(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&h.forEach(function(g){g.addEventListener("scroll",n.update,As)}),f&&p.addEventListener("resize",n.update,As),function(){i&&h.forEach(function(g){g.removeEventListener("scroll",n.update,As)}),f&&p.removeEventListener("resize",n.update,As)}}const zT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OT,data:{}};var kT={left:"right",right:"left",bottom:"top",top:"bottom"};function $s(e){return e.replace(/left|right|bottom|top/g,function(t){return kT[t]})}var _T={start:"end",end:"start"};function tp(e){return e.replace(/start|end/g,function(t){return _T[t]})}function r1(e){var t=an(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function n1(e){return Lo(Ni(e)).left+r1(e).scrollLeft}function BT(e,t){var n=an(e),a=Ni(e),c=n.visualViewport,i=a.clientWidth,u=a.clientHeight,f=0,p=0;if(c){i=c.width,u=c.height;var h=h8();(h||!h&&t==="fixed")&&(f=c.offsetLeft,p=c.offsetTop)}return{width:i,height:u,x:f+n1(e),y:p}}function FT(e){var t,n=Ni(e),a=r1(e),c=(t=e.ownerDocument)==null?void 0:t.body,i=Gi(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=Gi(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),f=-a.scrollLeft+n1(e),p=-a.scrollTop;return ii(c||n).direction==="rtl"&&(f+=Gi(n.clientWidth,c?c.clientWidth:0)-i),{width:i,height:u,x:f,y:p}}function i1(e){var t=ii(e),n=t.overflow,a=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+a)}function y8(e){return["html","body","#document"].indexOf(Zn(e))>=0?e.ownerDocument.body:xn(e)&&i1(e)?e:y8(q0(e))}function ga(e,t){var n;t===void 0&&(t=[]);var a=y8(e),c=a===((n=e.ownerDocument)==null?void 0:n.body),i=an(a),u=c?[i].concat(i.visualViewport||[],i1(a)?a:[]):a,f=t.concat(u);return c?f:f.concat(ga(q0(u)))}function Gu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function RT(e,t){var n=Lo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rp(e,t,n){return t===u8?Gu(BT(e,n)):to(t)?RT(t,n):Gu(FT(Ni(e)))}function PT(e){var t=ga(q0(e)),n=["absolute","fixed"].indexOf(ii(e).position)>=0,a=n&&xn(e)?Ja(e):e;return to(a)?t.filter(function(c){return to(c)&&p8(c,a)&&Zn(c)!=="body"}):[]}function UT(e,t,n,a){var c=t==="clippingParents"?PT(e):[].concat(t),i=[].concat(c,[n]),u=i[0],f=i.reduce(function(p,h){var g=rp(e,h,a);return p.top=Gi(g.top,p.top),p.right=m0(g.right,p.right),p.bottom=m0(g.bottom,p.bottom),p.left=Gi(g.left,p.left),p},rp(e,u,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function v8(e){var t=e.reference,n=e.element,a=e.placement,c=a?Un(a):null,i=a?So(a):null,u=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,p;switch(c){case Jr:p={x:u,y:t.y-n.height};break;case wn:p={x:u,y:t.y+t.height};break;case Nn:p={x:t.x+t.width,y:f};break;case Xr:p={x:t.x-n.width,y:f};break;default:p={x:t.x,y:t.y}}var h=c?t1(c):null;if(h!=null){var g=h==="y"?"height":"width";switch(i){case Io:p[h]=p[h]-(t[g]/2-n[g]/2);break;case Aa:p[h]=p[h]+(t[g]/2-n[g]/2);break}}return p}function Ia(e,t){t===void 0&&(t={});var n=t,a=n.placement,c=a===void 0?e.placement:a,i=n.strategy,u=i===void 0?e.strategy:i,f=n.boundary,p=f===void 0?sT:f,h=n.rootBoundary,g=h===void 0?u8:h,C=n.elementContext,w=C===void 0?Vo:C,j=n.altBoundary,I=j===void 0?!1:j,T=n.padding,S=T===void 0?0:T,L=m8(typeof S!="number"?S:M8(S,qa)),E=w===Vo?cT:Vo,D=e.rects.popper,O=e.elements[I?E:w],F=UT(to(O)?O:O.contextElement||Ni(e.elements.popper),p,g,u),R=Lo(e.elements.reference),Q=v8({reference:R,element:D,placement:c}),B=Gu(Object.assign({},D,Q)),k=w===Vo?B:R,z={top:F.top-k.top+L.top,bottom:k.bottom-F.bottom+L.bottom,left:F.left-k.left+L.left,right:k.right-F.right+L.right},y=e.modifiersData.offset;if(w===Vo&&y){var r=y[c];Object.keys(z).forEach(function(s){var l=[Nn,wn].indexOf(s)>=0?1:-1,d=[Jr,wn].indexOf(s)>=0?"y":"x";z[s]+=r[d]*l})}return z}function YT(e,t){t===void 0&&(t={});var n=t,a=n.placement,c=n.boundary,i=n.rootBoundary,u=n.padding,f=n.flipVariations,p=n.allowedAutoPlacements,h=p===void 0?d8:p,g=So(a),C=g?f?X3:X3.filter(function(I){return So(I)===g}):qa,w=C.filter(function(I){return h.indexOf(I)>=0});w.length===0&&(w=C);var j=w.reduce(function(I,T){return I[T]=Ia(e,{placement:T,boundary:c,rootBoundary:i,padding:u})[Un(T)],I},{});return Object.keys(j).sort(function(I,T){return j[I]-j[T]})}function WT(e){if(Un(e)===Xd)return[];var t=$s(e);return[tp(e),t,tp(t)]}function HT(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var c=n.mainAxis,i=c===void 0?!0:c,u=n.altAxis,f=u===void 0?!0:u,p=n.fallbackPlacements,h=n.padding,g=n.boundary,C=n.rootBoundary,w=n.altBoundary,j=n.flipVariations,I=j===void 0?!0:j,T=n.allowedAutoPlacements,S=t.options.placement,L=Un(S),E=L===S,D=p||(E||!I?[$s(S)]:WT(S)),O=[S].concat(D).reduce(function(G,ee){return G.concat(Un(ee)===Xd?YT(t,{placement:ee,boundary:g,rootBoundary:C,padding:h,flipVariations:I,allowedAutoPlacements:T}):ee)},[]),F=t.rects.reference,R=t.rects.popper,Q=new Map,B=!0,k=O[0],z=0;z<O.length;z++){var y=O[z],r=Un(y),s=So(y)===Io,l=[Jr,wn].indexOf(r)>=0,d=l?"width":"height",M=Ia(t,{placement:y,boundary:g,rootBoundary:C,altBoundary:w,padding:h}),b=l?s?Nn:Xr:s?wn:Jr;F[d]>R[d]&&(b=$s(b));var N=$s(b),m=[];if(i&&m.push(M[r]<=0),f&&m.push(M[b]<=0,M[N]<=0),m.every(function(G){return G})){k=y,B=!1;break}Q.set(y,m)}if(B)for(var o=I?3:1,x=function(ee){var V=O.find(function(P){var H=Q.get(P);if(H)return H.slice(0,ee).every(function($){return $})});if(V)return k=V,"break"},W=o;W>0;W--){var Z=x(W);if(Z==="break")break}t.placement!==k&&(t.modifiersData[a]._skip=!0,t.placement=k,t.reset=!0)}}const ZT={name:"flip",enabled:!0,phase:"main",fn:HT,requiresIfExists:["offset"],data:{_skip:!1}};function np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ip(e){return[Jr,Nn,wn,Xr].some(function(t){return e[t]>=0})}function QT(e){var t=e.state,n=e.name,a=t.rects.reference,c=t.rects.popper,i=t.modifiersData.preventOverflow,u=Ia(t,{elementContext:"reference"}),f=Ia(t,{altBoundary:!0}),p=np(u,a),h=np(f,c,i),g=ip(p),C=ip(h);t.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:C},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":C})}const VT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QT};function GT(e,t,n){var a=Un(e),c=[Xr,Jr].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],f=i[1];return u=u||0,f=(f||0)*c,[Xr,Nn].indexOf(a)>=0?{x:f,y:u}:{x:u,y:f}}function $T(e){var t=e.state,n=e.options,a=e.name,c=n.offset,i=c===void 0?[0,0]:c,u=d8.reduce(function(g,C){return g[C]=GT(C,t.rects,i),g},{}),f=u[t.placement],p=f.x,h=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=h),t.modifiersData[a]=u}const qT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$T};function JT(e){var t=e.state,n=e.name;t.modifiersData[n]=v8({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const XT={name:"popperOffsets",enabled:!0,phase:"read",fn:JT,data:{}};function KT(e){return e==="x"?"y":"x"}function eA(e){var t=e.state,n=e.options,a=e.name,c=n.mainAxis,i=c===void 0?!0:c,u=n.altAxis,f=u===void 0?!1:u,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,C=n.padding,w=n.tether,j=w===void 0?!0:w,I=n.tetherOffset,T=I===void 0?0:I,S=Ia(t,{boundary:p,rootBoundary:h,padding:C,altBoundary:g}),L=Un(t.placement),E=So(t.placement),D=!E,O=t1(L),F=KT(O),R=t.modifiersData.popperOffsets,Q=t.rects.reference,B=t.rects.popper,k=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,z=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,r={x:0,y:0};if(R){if(i){var s,l=O==="y"?Jr:Xr,d=O==="y"?wn:Nn,M=O==="y"?"height":"width",b=R[O],N=b+S[l],m=b-S[d],o=j?-B[M]/2:0,x=E===Io?Q[M]:B[M],W=E===Io?-B[M]:-Q[M],Z=t.elements.arrow,G=j&&Z?e1(Z):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:g8(),V=ee[l],P=ee[d],H=pa(0,Q[M],G[M]),$=D?Q[M]/2-o-H-V-z.mainAxis:x-H-V-z.mainAxis,X=D?-Q[M]/2+o+H+P+z.mainAxis:W+H+P+z.mainAxis,te=t.elements.arrow&&Ja(t.elements.arrow),Y=te?O==="y"?te.clientTop||0:te.clientLeft||0:0,ne=(s=y==null?void 0:y[O])!=null?s:0,xe=b+$-ne-Y,le=b+X-ne,ue=pa(j?m0(N,xe):N,b,j?Gi(m,le):m);R[O]=ue,r[O]=ue-b}if(f){var Ve,he=O==="x"?Jr:Xr,be=O==="x"?wn:Nn,st=R[F],Me=F==="y"?"height":"width",oe=st+S[he],We=st-S[be],de=[Jr,Xr].indexOf(L)!==-1,ye=(Ve=y==null?void 0:y[F])!=null?Ve:0,mt=de?oe:st-Q[Me]-B[Me]-ye+z.altAxis,je=de?st+Q[Me]+B[Me]-ye-z.altAxis:We,Ae=j&&de?NT(mt,st,je):pa(j?mt:oe,st,j?je:We);R[F]=Ae,r[F]=Ae-st}t.modifiersData[a]=r}}const tA={name:"preventOverflow",enabled:!0,phase:"main",fn:eA,requiresIfExists:["offset"]};function rA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nA(e){return e===an(e)||!xn(e)?r1(e):rA(e)}function iA(e){var t=e.getBoundingClientRect(),n=Eo(t.width)/e.offsetWidth||1,a=Eo(t.height)/e.offsetHeight||1;return n!==1||a!==1}function oA(e,t,n){n===void 0&&(n=!1);var a=xn(t),c=xn(t)&&iA(t),i=Ni(t),u=Lo(e,c,n),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(a||!a&&!n)&&((Zn(t)!=="body"||i1(i))&&(f=nA(t)),xn(t)?(p=Lo(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):i&&(p.x=n1(i))),{x:u.left+f.scrollLeft-p.x,y:u.top+f.scrollTop-p.y,width:u.width,height:u.height}}function aA(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function c(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(f){if(!n.has(f)){var p=t.get(f);p&&c(p)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||c(i)}),a}function sA(e){var t=aA(e);return yT.reduce(function(n,a){return n.concat(t.filter(function(c){return c.phase===a}))},[])}function cA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lA(e){var t=e.reduce(function(n,a){var c=n[a.name];return n[a.name]=c?Object.assign({},c,a,{options:Object.assign({},c.options,a.options),data:Object.assign({},c.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var op={placement:"bottom",modifiers:[],strategy:"absolute"};function ap(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function fA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,c=t.defaultOptions,i=c===void 0?op:c;return function(f,p,h){h===void 0&&(h=i);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},op,i),modifiersData:{},elements:{reference:f,popper:p},attributes:{},styles:{}},C=[],w=!1,j={state:g,setOptions:function(L){var E=typeof L=="function"?L(g.options):L;T(),g.options=Object.assign({},i,g.options,E),g.scrollParents={reference:to(f)?ga(f):f.contextElement?ga(f.contextElement):[],popper:ga(p)};var D=sA(lA([].concat(a,g.options.modifiers)));return g.orderedModifiers=D.filter(function(O){return O.enabled}),I(),j.update()},forceUpdate:function(){if(!w){var L=g.elements,E=L.reference,D=L.popper;if(ap(E,D)){g.rects={reference:oA(E,Ja(D),g.options.strategy==="fixed"),popper:e1(D)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(z){return g.modifiersData[z.name]=Object.assign({},z.data)});for(var O=0;O<g.orderedModifiers.length;O++){if(g.reset===!0){g.reset=!1,O=-1;continue}var F=g.orderedModifiers[O],R=F.fn,Q=F.options,B=Q===void 0?{}:Q,k=F.name;typeof R=="function"&&(g=R({state:g,options:B,name:k,instance:j})||g)}}}},update:cA(function(){return new Promise(function(S){j.forceUpdate(),S(g)})}),destroy:function(){T(),w=!0}};if(!ap(f,p))return j;j.setOptions(h).then(function(S){!w&&h.onFirstUpdate&&h.onFirstUpdate(S)});function I(){g.orderedModifiers.forEach(function(S){var L=S.name,E=S.options,D=E===void 0?{}:E,O=S.effect;if(typeof O=="function"){var F=O({state:g,name:L,instance:j,options:D}),R=function(){};C.push(F||R)}})}function T(){C.forEach(function(S){return S()}),C=[]}return j}}var uA=[zT,XT,DT,bT,qT,ZT,tA,IT,VT],dA=fA({defaultModifiers:uA});function hA(e){return typeof e=="function"?e():e}const Ea=ae.forwardRef(function(t,n){const{children:a,container:c,disablePortal:i=!1}=t,[u,f]=ae.useState(null),p=br(ae.isValidElement(a)?io(a):null,n);if(bn(()=>{i||f(hA(c)||document.body)},[c,i]),bn(()=>{if(u&&!i)return W1(n,u),()=>{W1(n,null)}},[n,u,i]),i){if(ae.isValidElement(a)){const h={ref:p};return ae.cloneElement(a,h)}return a}return u&&p0.createPortal(a,u)});_.dist.process.env.NODE_ENV!=="production"&&(Ea.propTypes={children:v.node,container:v.oneOfType([Hn,v.func]),disablePortal:v.bool});_.dist.process.env.NODE_ENV!=="production"&&(Ea.propTypes=ld(Ea.propTypes));function pA(e){return It("MuiPopper",e)}Et("MuiPopper",["root"]);function gA(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function M0(e){return typeof e=="function"?e():e}function J0(e){return e.nodeType!==void 0}function mA(e){return!J0(e)}const MA=e=>{const{classes:t}=e;return St({root:["root"]},pA,t)},yA={},vA=ae.forwardRef(function(t,n){const{anchorEl:a,children:c,direction:i,disablePortal:u,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:C,slotProps:w={},slots:j={},TransitionProps:I,ownerState:T,...S}=t,L=ae.useRef(null),E=br(L,n),D=ae.useRef(null),O=br(D,C),F=ae.useRef(O);bn(()=>{F.current=O},[O]),ae.useImperativeHandle(C,()=>D.current,[]);const R=gA(h,i),[Q,B]=ae.useState(R),[k,z]=ae.useState(M0(a));ae.useEffect(()=>{D.current&&D.current.forceUpdate()}),ae.useEffect(()=>{a&&z(M0(a))},[a]),bn(()=>{if(!k||!p)return;const d=N=>{B(N.placement)};if(_.dist.process.env.NODE_ENV!=="production"&&k&&J0(k)&&k.nodeType===1){const N=k.getBoundingClientRect();_.dist.process.env.NODE_ENV!=="test"&&N.top===0&&N.left===0&&N.right===0&&N.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
206
- `))}let M=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{d(N)}}];f!=null&&(M=M.concat(f)),g&&g.modifiers!=null&&(M=M.concat(g.modifiers));const b=dA(k,L.current,{placement:R,...g,modifiers:M});return F.current(b),()=>{b.destroy(),F.current(null)}},[k,u,f,p,g,R]);const y={placement:Q};I!==null&&(y.TransitionProps=I);const r=MA(t),s=j.root??"div",l=t0({elementType:s,externalSlotProps:w.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:r.root});return A.jsx(s,{...l,children:typeof c=="function"?c(y):c})}),x8=ae.forwardRef(function(t,n){const{anchorEl:a,children:c,container:i,direction:u="ltr",disablePortal:f=!1,keepMounted:p=!1,modifiers:h,open:g,placement:C="bottom",popperOptions:w=yA,popperRef:j,style:I,transition:T=!1,slotProps:S={},slots:L={},...E}=t,[D,O]=ae.useState(!0),F=()=>{O(!1)},R=()=>{O(!0)};if(!p&&!g&&(!T||D))return null;let Q;if(i)Q=i;else if(a){const z=M0(a);Q=z&&J0(z)?Br(z).body:Br(null).body}const B=!g&&p&&(!T||D)?"none":void 0,k=T?{in:g,onEnter:F,onExited:R}:void 0;return A.jsx(Ea,{disablePortal:f,container:Q,children:A.jsx(vA,{anchorEl:a,direction:u,disablePortal:f,modifiers:h,ref:n,open:T?!D:g,placement:C,popperOptions:w,popperRef:j,slotProps:S,slots:L,...E,style:{position:"fixed",top:0,left:0,display:B,...I},TransitionProps:k,children:c})})});_.dist.process.env.NODE_ENV!=="production"&&(x8.propTypes={anchorEl:Sn(v.oneOfType([Hn,v.object,v.func]),e=>{if(e.open){const t=M0(e.anchorEl);if(t&&J0(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(_.dist.process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
207
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||mA(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
208
- `))}return null}),children:v.oneOfType([v.node,v.func]),container:v.oneOfType([Hn,v.func]),direction:v.oneOf(["ltr","rtl"]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:v.oneOf(["absolute","fixed"])}),popperRef:sn,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),transition:v.bool});const xA=$e(x8,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),o1=ae.forwardRef(function(t,n){const a=Ya(),c=Dt({props:t,name:"MuiPopper"}),{anchorEl:i,component:u,components:f,componentsProps:p,container:h,disablePortal:g,keepMounted:C,modifiers:w,open:j,placement:I,popperOptions:T,popperRef:S,transition:L,slots:E,slotProps:D,...O}=c,F=(E==null?void 0:E.root)??(f==null?void 0:f.Root),R={anchorEl:i,container:h,disablePortal:g,keepMounted:C,modifiers:w,open:j,placement:I,popperOptions:T,popperRef:S,transition:L,...O};return A.jsx(xA,{as:u,direction:a?"rtl":"ltr",slots:{root:F},slotProps:D??p,...R,ref:n})});_.dist.process.env.NODE_ENV!=="production"&&(o1.propTypes={anchorEl:v.oneOfType([Hn,v.object,v.func]),children:v.oneOfType([v.node,v.func]),component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Hn,v.func]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:v.oneOf(["absolute","fixed"])}),popperRef:sn,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transition:v.bool});function Zt(e,t){const{className:n,elementType:a,ownerState:c,externalForwardedProps:i,internalForwardedProps:u,shouldForwardComponentProp:f=!1,...p}=t,{component:h,slots:g={[e]:void 0},slotProps:C={[e]:void 0},...w}=i,j=g[e]||a,I=M5(C[e],c),{props:{component:T,...S},internalRef:L}=m5({className:n,...p,externalForwardedProps:e==="root"?w:void 0,externalSlotProps:I}),E=br(L,I==null?void 0:I.ref,t.ref),D=e==="root"?T||h:T,O=h5(j,{...e==="root"&&!h&&!g[e]&&u,...e!=="root"&&!g[e]&&u,...S,...D&&!f&&{as:D},...D&&f&&{component:D},ref:E},c);return[j,O]}function bA(e){return It("MuiTooltip",e)}const vr=Et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function CA(e){return Math.round(e*1e5)/1e5}const wA=e=>{const{classes:t,disableInteractive:n,arrow:a,touch:c,placement:i}=e,u={popper:["popper",!n&&"popperInteractive",a&&"popperArrow"],tooltip:["tooltip",a&&"tooltipArrow",c&&"touch",`tooltipPlacement${tt(i.split("-")[0])}`],arrow:["arrow"]};return St(u,bA,t)},NA=$e(o1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(At(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${vr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${vr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${vr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${vr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${vr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${vr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),jA=$e("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${tt(n.placement.split("-")[0])}`]]}})(At(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Kt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${vr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${vr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${vr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${vr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${CA(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${vr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${vr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${vr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${vr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${vr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${vr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${vr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${vr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${vr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${vr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),TA=$e("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(At(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Kt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Is=!1;const sp=new D0;let Go={x:0,y:0};function Es(e,t){return(n,...a)=>{t&&t(n,...a),e(n,...a)}}const Do=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiTooltip"}),{arrow:c=!1,children:i,classes:u,components:f={},componentsProps:p={},describeChild:h=!1,disableFocusListener:g=!1,disableHoverListener:C=!1,disableInteractive:w=!1,disableTouchListener:j=!1,enterDelay:I=100,enterNextDelay:T=0,enterTouchDelay:S=700,followCursor:L=!1,id:E,leaveDelay:D=0,leaveTouchDelay:O=1500,onClose:F,onOpen:R,open:Q,placement:B="bottom",PopperComponent:k,PopperProps:z={},slotProps:y={},slots:r={},title:s,TransitionComponent:l,TransitionProps:d,...M}=a,b=ae.isValidElement(i)?i:A.jsx("span",{children:i}),N=Dn(),m=Ya(),[o,x]=ae.useState(),[W,Z]=ae.useState(null),G=ae.useRef(!1),ee=w||L,V=Pi(),P=Pi(),H=Pi(),$=Pi(),[X,te]=e0({controlled:Q,default:!1,name:"Tooltip",state:"open"});let Y=X;if(_.dist.process.env.NODE_ENV!=="production"){const{current:Mt}=ae.useRef(Q!==void 0);ae.useEffect(()=>{o&&o.disabled&&!Mt&&s!==""&&o.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
209
- `))},[s,o,Mt])}const ne=Ua(E),xe=ae.useRef(),le=mn(()=>{xe.current!==void 0&&(document.body.style.WebkitUserSelect=xe.current,xe.current=void 0),$.clear()});ae.useEffect(()=>le,[le]);const ue=Mt=>{sp.clear(),Is=!0,te(!0),R&&!Y&&R(Mt)},Ve=mn(Mt=>{sp.start(800+D,()=>{Is=!1}),te(!1),F&&Y&&F(Mt),V.start(N.transitions.duration.shortest,()=>{G.current=!1})}),he=Mt=>{G.current&&Mt.type!=="touchstart"||(o&&o.removeAttribute("title"),P.clear(),H.clear(),I||Is&&T?P.start(Is?T:I,()=>{ue(Mt)}):ue(Mt))},be=Mt=>{P.clear(),H.start(D,()=>{Ve(Mt)})},[,st]=ae.useState(!1),Me=Mt=>{wo(Mt.target)||(st(!1),be(Mt))},oe=Mt=>{o||x(Mt.currentTarget),wo(Mt.target)&&(st(!0),he(Mt))},We=Mt=>{G.current=!0;const _e=b.props;_e.onTouchStart&&_e.onTouchStart(Mt)},de=Mt=>{We(Mt),H.clear(),V.clear(),le(),xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",$.start(S,()=>{document.body.style.WebkitUserSelect=xe.current,he(Mt)})},ye=Mt=>{b.props.onTouchEnd&&b.props.onTouchEnd(Mt),le(),H.start(O,()=>{Ve(Mt)})};ae.useEffect(()=>{if(!Y)return;function Mt(_e){_e.key==="Escape"&&Ve(_e)}return document.addEventListener("keydown",Mt),()=>{document.removeEventListener("keydown",Mt)}},[Ve,Y]);const mt=br(io(b),x,n);!s&&s!==0&&(Y=!1);const je=ae.useRef(),Ae=Mt=>{const _e=b.props;_e.onMouseMove&&_e.onMouseMove(Mt),Go={x:Mt.clientX,y:Mt.clientY},je.current&&je.current.update()},Tt={},De=typeof s=="string";h?(Tt.title=!Y&&De&&!C?s:null,Tt["aria-describedby"]=Y?ne:null):(Tt["aria-label"]=De?s:null,Tt["aria-labelledby"]=Y&&!De?ne:null);const ve={...Tt,...M,...b.props,className:vt(M.className,b.props.className),onTouchStart:We,ref:mt,...L?{onMouseMove:Ae}:{}};_.dist.process.env.NODE_ENV!=="production"&&(ve["data-mui-internal-clone-element"]=!0,ae.useEffect(()=>{o&&!o.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
210
- `))},[o]));const jt={};j||(ve.onTouchStart=de,ve.onTouchEnd=ye),C||(ve.onMouseOver=Es(he,ve.onMouseOver),ve.onMouseLeave=Es(be,ve.onMouseLeave),ee||(jt.onMouseOver=he,jt.onMouseLeave=be)),g||(ve.onFocus=Es(oe,ve.onFocus),ve.onBlur=Es(Me,ve.onBlur),ee||(jt.onFocus=oe,jt.onBlur=Me)),_.dist.process.env.NODE_ENV!=="production"&&b.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${b.props.title}\` or the Tooltip component.`].join(`
211
- `));const Ee={...a,isRtl:m,arrow:c,disableInteractive:ee,placement:B,PopperComponentProp:k,touch:G.current},Le=typeof y.popper=="function"?y.popper(Ee):y.popper,Ot=ae.useMemo(()=>{var _e,Pe;let Mt=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return(_e=z.popperOptions)!=null&&_e.modifiers&&(Mt=Mt.concat(z.popperOptions.modifiers)),(Pe=Le==null?void 0:Le.popperOptions)!=null&&Pe.modifiers&&(Mt=Mt.concat(Le.popperOptions.modifiers)),{...z.popperOptions,...Le==null?void 0:Le.popperOptions,modifiers:Mt}},[W,z.popperOptions,Le==null?void 0:Le.popperOptions]),me=wA(Ee),Ce=typeof y.transition=="function"?y.transition(Ee):y.transition,xt={slots:{popper:f.Popper,transition:f.Transition??l,tooltip:f.Tooltip,arrow:f.Arrow,...r},slotProps:{arrow:y.arrow??p.arrow,popper:{...z,...Le??p.popper},tooltip:y.tooltip??p.tooltip,transition:{...d,...Ce??p.transition}}},[Se,Oe]=Zt("popper",{elementType:NA,externalForwardedProps:xt,ownerState:Ee,className:vt(me.popper,z==null?void 0:z.className)}),[Wt,ze]=Zt("transition",{elementType:Ta,externalForwardedProps:xt,ownerState:Ee}),[ke,er]=Zt("tooltip",{elementType:jA,className:me.tooltip,externalForwardedProps:xt,ownerState:Ee}),[Fe,Re]=Zt("arrow",{elementType:TA,className:me.arrow,externalForwardedProps:xt,ownerState:Ee,ref:Z});return A.jsxs(ae.Fragment,{children:[ae.cloneElement(b,ve),A.jsx(Se,{as:k??o1,placement:B,anchorEl:L?{getBoundingClientRect:()=>({top:Go.y,left:Go.x,right:Go.x,bottom:Go.y,width:0,height:0})}:o,popperRef:je,open:o?Y:!1,id:ne,transition:!0,...jt,...Oe,popperOptions:Ot,children:({TransitionProps:Mt})=>A.jsx(Wt,{timeout:N.transitions.duration.shorter,...Mt,...ze,children:A.jsxs(ke,{...er,children:[s,c?A.jsx(Fe,{...Re}):null]})})})]})});_.dist.process.env.NODE_ENV!=="production"&&(Do.propTypes={arrow:v.bool,children:no.isRequired,classes:v.object,className:v.string,components:v.shape({Arrow:v.elementType,Popper:v.elementType,Tooltip:v.elementType,Transition:v.elementType}),componentsProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),describeChild:v.bool,disableFocusListener:v.bool,disableHoverListener:v.bool,disableInteractive:v.bool,disableTouchListener:v.bool,enterDelay:v.number,enterNextDelay:v.number,enterTouchDelay:v.number,followCursor:v.bool,id:v.string,leaveDelay:v.number,leaveTouchDelay:v.number,onClose:v.func,onOpen:v.func,open:v.bool,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:v.elementType,PopperProps:v.object,slotProps:v.shape({arrow:v.oneOfType([v.func,v.object]),popper:v.oneOfType([v.func,v.object]),tooltip:v.oneOfType([v.func,v.object]),transition:v.oneOfType([v.func,v.object])}),slots:v.shape({arrow:v.elementType,popper:v.elementType,tooltip:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),title:v.node,TransitionComponent:v.elementType,TransitionProps:v.object});function AA(e){return It("MuiTypography",e)}const cp=Et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),IA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},EA=sy(),LA=e=>{const{align:t,gutterBottom:n,noWrap:a,paragraph:c,variant:i,classes:u}=e,f={root:["root",i,e.align!=="inherit"&&`align${tt(t)}`,n&&"gutterBottom",a&&"noWrap",c&&"paragraph"]};return St(f,AA,u)},SA=$e("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${tt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(At(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,a])=>n!=="inherit"&&a&&typeof a=="object").map(([n,a])=>({props:{variant:n},style:a})),...Object.entries(e.palette).filter(Or()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${tt(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),lp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ke=ae.forwardRef(function(t,n){const{color:a,...c}=Dt({props:t,name:"MuiTypography"}),i=!IA[a],u=EA({...c,...i&&{color:a}}),{align:f="inherit",className:p,component:h,gutterBottom:g=!1,noWrap:C=!1,paragraph:w=!1,variant:j="body1",variantMapping:I=lp,...T}=u,S={...u,align:f,color:a,className:p,component:h,gutterBottom:g,noWrap:C,paragraph:w,variant:j,variantMapping:I},L=h||(w?"p":I[j]||lp[j])||"span",E=LA(S);return A.jsx(SA,{as:L,ref:n,className:vt(E.root,p),...T,ownerState:S,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...T.style}})});_.dist.process.env.NODE_ENV!=="production"&&(Ke.propTypes={align:v.oneOf(["center","inherit","justify","left","right"]),children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),v.string]),component:v.elementType,gutterBottom:v.bool,noWrap:v.bool,paragraph:v.bool,style:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),v.string]),variantMapping:v.object});const DA=Kr(A.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),OA=Kr(A.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),zA=Kr(A.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History"),kA=Kr(A.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),_A=Ht()(e=>({container:{width:"100%",display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"flex-start",gap:"8px"}}));function Xa(e){const{classes:t}=_A(),n=bt.useTheme();let a;return e.color?a=e.color:e.warning?a=n.palette.warning.main:e.error&&(a=n.palette.error.main),A.jsx(bt.Collapse,{className:e.className,in:e.show&&!!e.content,unmountOnExit:!0,children:A.jsxs("div",{className:t.container,style:e.style||{},"data-testid":e.testId,children:[A.jsx(kA,{fontSize:"small",htmlColor:a,sx:{paddingTop:"2px"}}),A.jsx(bt.Typography,{color:a,fontSize:14,children:e.content})]})})}function BA(e){return It("MuiButton",e)}const Oi=Et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),b8=ae.createContext({});_.dist.process.env.NODE_ENV!=="production"&&(b8.displayName="ButtonGroupContext");const C8=ae.createContext(void 0);_.dist.process.env.NODE_ENV!=="production"&&(C8.displayName="ButtonGroupButtonContext");const FA=e=>{const{color:t,disableElevation:n,fullWidth:a,size:c,variant:i,loading:u,loadingPosition:f,classes:p}=e,h={root:["root",u&&"loading",i,`${i}${tt(t)}`,`size${tt(c)}`,`${i}Size${tt(c)}`,`color${tt(t)}`,n&&"disableElevation",a&&"fullWidth",u&&`loadingPosition${tt(f)}`],startIcon:["icon","startIcon",`iconSize${tt(c)}`],endIcon:["icon","endIcon",`iconSize${tt(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=St(h,BA,p);return{...p,...g}},w8=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],RA=$e(so,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tt(n.color)}`],t[`size${tt(n.size)}`],t[`${n.variant}Size${tt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(At(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Oi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Oi.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Or()).map(([a])=>({props:{color:a},style:{"--variant-textColor":(e.vars||e).palette[a].main,"--variant-outlinedColor":(e.vars||e).palette[a].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[a].mainChannel} / 0.5)`:Kt(e.palette[a].main,.5),"--variant-containedColor":(e.vars||e).palette[a].contrastText,"--variant-containedBg":(e.vars||e).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[a].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[a].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[a].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[a].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Oi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Oi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Oi.loading}`]:{color:"transparent"}}}]}})),PA=$e("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${tt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...w8]})),UA=$e("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${tt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...w8]})),YA=$e("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),fp=$e("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Uo=ae.forwardRef(function(t,n){const a=ae.useContext(b8),c=ae.useContext(C8),i=Ca(a,t),u=Dt({props:i,name:"MuiButton"}),{children:f,color:p="primary",component:h="button",className:g,disabled:C=!1,disableElevation:w=!1,disableFocusRipple:j=!1,endIcon:I,focusVisibleClassName:T,fullWidth:S=!1,id:L,loading:E=null,loadingIndicator:D,loadingPosition:O="center",size:F="medium",startIcon:R,type:Q,variant:B="text",...k}=u,z=Ua(L),y=D??A.jsx(Lr,{"aria-labelledby":z,color:"inherit",size:16}),r={...u,color:p,component:h,disabled:C,disableElevation:w,disableFocusRipple:j,fullWidth:S,loading:E,loadingIndicator:y,loadingPosition:O,size:F,type:Q,variant:B},s=FA(r),l=(R||E&&O==="start")&&A.jsx(PA,{className:s.startIcon,ownerState:r,children:R||A.jsx(fp,{className:s.loadingIconPlaceholder,ownerState:r})}),d=(I||E&&O==="end")&&A.jsx(UA,{className:s.endIcon,ownerState:r,children:I||A.jsx(fp,{className:s.loadingIconPlaceholder,ownerState:r})}),M=c||"",b=typeof E=="boolean"?A.jsx("span",{className:s.loadingWrapper,style:{display:"contents"},children:E&&A.jsx(YA,{className:s.loadingIndicator,ownerState:r,children:y})}):null;return A.jsxs(RA,{ownerState:r,className:vt(a.className,s.root,g,M),component:h,disabled:C||E,focusRipple:!j,focusVisibleClassName:vt(s.focusVisible,T),ref:n,type:Q,id:E?z:L,...k,classes:s,children:[l,O!=="end"&&b,f,O==="end"&&b,d]})});_.dist.process.env.NODE_ENV!=="production"&&(Uo.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","primary","secondary","success","error","info","warning"]),v.string]),component:v.elementType,disabled:v.bool,disableElevation:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,endIcon:v.node,focusVisibleClassName:v.string,fullWidth:v.bool,href:v.string,id:v.string,loading:v.bool,loadingIndicator:v.node,loadingPosition:v.oneOf(["center","end","start"]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),startIcon:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string]),variant:v.oneOfType([v.oneOf(["contained","outlined","text"]),v.string])});const WA=bt.styled(Uo)({padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%",boxShadow:"none"}),HA=bt.styled(Uo)({padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%",boxShadow:"none"}),Fi=ie.forwardRef((e,t)=>{const{variant:n,...a}=e;return n==="primary"?A.jsx(WA,{ref:t,variant:"contained",...a,sx:{backgroundColor:"button.primary",color:"button.primaryText","&.Mui-disabled":{backgroundColor:"button.disabled",color:"button.disabledText"},"&:hover":{boxShadow:"none",backgroundColor:"button.hover","&:disabled":{backgroundColor:"button.disabled",color:"button.disabledText"}},"&:active":{boxShadow:"none",backgroundColor:"button.action",color:"button.actionText"}}}):n==="error"?A.jsx(HA,{ref:t,variant:"contained",...a,sx:{backgroundColor:"error.main",color:"error.contrastText","&:disabled":{backgroundColor:"error.main",color:"error.contrastText",opacity:.4}}}):A.jsx(Uo,{ref:t,...a})});function a1(e,t,n){var a=this,c=ie.useRef(null),i=ie.useRef(0),u=ie.useRef(null),f=ie.useRef([]),p=ie.useRef(),h=ie.useRef(),g=ie.useRef(e),C=ie.useRef(!0);ie.useEffect(function(){g.current=e},[e]);var w=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var j=!!(n=n||{}).leading,I=!("trailing"in n)||!!n.trailing,T="maxWait"in n,S=T?Math.max(+n.maxWait||0,t):null;ie.useEffect(function(){return C.current=!0,function(){C.current=!1}},[]);var L=ie.useMemo(function(){var E=function(B){var k=f.current,z=p.current;return f.current=p.current=null,i.current=B,h.current=g.current.apply(z,k)},D=function(B,k){w&&cancelAnimationFrame(u.current),u.current=w?requestAnimationFrame(B):setTimeout(B,k)},O=function(B){if(!C.current)return!1;var k=B-c.current;return!c.current||k>=t||k<0||T&&B-i.current>=S},F=function(B){return u.current=null,I&&f.current?E(B):(f.current=p.current=null,h.current)},R=function B(){var k=Date.now();if(O(k))return F(k);if(C.current){var z=t-(k-c.current),y=T?Math.min(z,S-(k-i.current)):z;D(B,y)}},Q=function(){var B=Date.now(),k=O(B);if(f.current=[].slice.call(arguments),p.current=a,c.current=B,k){if(!u.current&&C.current)return i.current=c.current,D(R,t),j?E(c.current):h.current;if(T)return D(R,t),E(c.current)}return u.current||D(R,t),h.current};return Q.cancel=function(){u.current&&(w?cancelAnimationFrame(u.current):clearTimeout(u.current)),i.current=0,f.current=c.current=p.current=u.current=null},Q.isPending=function(){return!!u.current},Q.flush=function(){return u.current?F(Date.now()):h.current},Q},[j,T,t,S,I,w]);return L}function ZA(e,t){return e===t}function up(e){return typeof e=="function"?function(){return e}:e}function QA(e,t,n){var a,c,i=ZA,u=(a=ie.useState(up(e)),c=a[1],[a[0],ie.useCallback(function(C){return c(up(C))},[])]),f=u[0],p=u[1],h=a1(ie.useCallback(function(C){return p(C)},[p]),t,n),g=ie.useRef(e);return i(g.current,e)||(h(e),g.current=e),[f,h]}const N8=ie.createContext(void 0),VA=({children:e})=>{const[t,n]=ie.useState(!1),[a,c]=ie.useState(ge.tokens.lastUpdate),[i,u]=ie.useState(new Bd),f=ie.useRef(new Set),[p,h]=ie.useState(!1),[g,C]=ie.useState(new Date),w=ie.useCallback(async T=>{if(!_.isNative(T.address)&&_.chainToPlatform(T.chain)==="Evm"){const L=T.address.toString(),E=_.getAddress(L);L!==E&&(console.warn(`Correcting improperly checksummed EVM address: ${L} -> ${E}`),T.address=_.toNative(T.chain,E))}const S=ge.tokens.get(T);if(S)return S;try{n(!0);const L=await ge.tokens.addFromTokenId(T);return c(ge.tokens.lastUpdate),console.info("Added new token to cache",L,a,ge.tokens.lastUpdate),ge.tokens.persist(),vw(),L}catch(L){console.error("Error getting token",L);return}finally{n(!1)}},[]),j=a1(async()=>{if(f.current.size===0)return;const T=ge.tokens.getList(Array.from(f.current.values()));console.info("Fetching token prices",T);try{h(!0);const S=new Date;for(const E of T)i.add(E,{timestamp:S,price:void 0,isFetching:!0});f.current.clear();const L=await fC(T);for(const E of T){const D=L.get(E);D?i.add(E,{timestamp:S,price:D}):i.add(E,{timestamp:S,price:void 0})}}catch(S){console.error(S)}finally{h(!1),C(new Date)}},250),I=T=>{const S=_.usdcContract.get(ge.network,T.chain);if(S&&T.addressString===S)return 1;const L=T.tokenBridgeOriginalTokenId??T,E=i.get(L);if(E)return E.price;f.current.add(pi(L)),j()};return A.jsx(N8.Provider,{value:{lastTokenCacheUpdate:a,getOrFetchToken:w,isFetchingToken:t,getTokenPrice:I,isFetchingTokenPrices:p,lastTokenPriceUpdate:g},children:e})},On=()=>{const e=ie.useContext(N8);if(e===void 0)throw new Error("useToken must be used within a TokensProvider");return e},GA=e=>{const{sourceChain:t,destChain:n,sourceToken:a}=e,c=Sr(),[i,u]=ie.useState([]),[f,p]=ie.useState(!1),{getOrFetchToken:h,lastTokenCacheUpdate:g}=On();return ie.useEffect(()=>{if(!n)return;let C=!0;return(async()=>{let j=[];if(u([]),!t&&n)j=ge.tokens.getAllForChain(n);else if(t&&n){let I=[];p(!0);try{I=await ge.routes.allSupportedDestTokens(a,t,n)}catch(T){console.error(T)}await Promise.all(I.map(async T=>{const S=await h(T);S&&j.push(S)})),p(!1)}else return;C&&(u(j),n&&j.length===1&&c(Yg(j[0].tuple)))})(),()=>{C=!1}},[a,t,n,c,g,h]),{supportedDestTokens:i,isFetching:f}},$A={SHUTTLE:1e4},qA=(e,t)=>{const[n,a]=ie.useState(new Date().valueOf()),c=ie.useRef(void 0),[i,u]=ie.useState(!1),[f,p]=ie.useState({}),[h,g]=ie.useState(!0);ie.useEffect(()=>{const I=()=>{g(!document.hidden)};return document.addEventListener("visibilitychange",I),()=>{document.removeEventListener("visibilitychange",I)}},[]);const{getTokenPrice:C}=On(),{isTransactionInProgress:w}=qt(I=>I.transferInput);return ie.useEffect(()=>{if(e.length===0)return;let I=0;if(Object.keys(f).length>0){const T=t;if(!T.amount||!T.sourceToken||!T.destToken||!T.sourceChain||!T.destChain)return;const S=ge.routes.quoteCache.nextExpiry(e,T);if(!S)return;I=S.valueOf()-Date.now()-5e3}if(I)return c&&clearTimeout(c.current),console.debug(`Waiting ${I/1e3}s until next quote fetch`,e,t),c.current=setTimeout(()=>a(Date.now()),I),()=>{c&&clearTimeout(c.current)}},[f,e,t]),ie.useEffect(()=>{let I=!1;const T=()=>{I=!0};if(e.length===0||!t.sourceChain||!t.sourceToken||!t.destChain||!t.destToken||!t.amount)return p({}),u(!1),T;if(w||!h)return T;const S=t,L=Object.values(f).filter(E=>E.success);if(L.length>0){const{sourceToken:E,destinationToken:D}=L[0];(!_.isSameToken(E.token,S.sourceToken)||!_.isSameToken(D.token,S.destToken))&&p({})}return Object.keys(f).length===0&&e.length!==0&&u(!0),ge.routes.getQuotes(e,S).then(E=>{I||(p(E),u(!1))}),T},[e,n,t.amount,t.nativeGas,t.recipient,h]),{quotes:ie.useMemo(()=>{var S;const I=Yi(C,t.amount,t.sourceToken);let T=Object.assign({},f);for(const L in T){const E=T[L];if(E!==void 0&&E.success){const D=Yi(C,E.destinationToken.amount,t.destToken);if(I!==void 0&&D!==void 0){const O=D/I;I>=1e3&&O<=.9&&(console.debug(`Filtering out ${L} quote with valueRatio=${O} USD delta=${I-D}`),delete T[L])}else if(t.amount&&t.sourceToken&&t.destToken&&t.sourceToken.symbol===t.destToken.symbol){const O=parseFloat(_.display(E.destinationToken.amount))/parseFloat(_.display(t.amount));O<=.9&&(console.debug(`Filtering out ${L} quote with valueRatio=${O} (for same-symbol tokens)`),delete T[L])}}}for(const L in T)if(L.startsWith("MayanSwap")){const E=T[L];if(E!==void 0&&E.success){const D=$A[(S=E.details)==null?void 0:S.type.toUpperCase()];if(D&&I!==void 0&&I>D)delete T[L],console.warn(`Filtering out ${L} quote which exceeds $${D} USD`);else{const O=Yi(C,t.amount,t.sourceToken),F=Yi(C,E.destinationToken.amount,t.destToken);if(O&&F){const R=O-F;!isNaN(R)&&R>0&&(T[L].relayFee={token:{chain:"Solana",address:_.Wormhole.parseAddress("Solana",_.usdcContract.get("Mainnet","Solana"))},amount:_.parse(_.denoise(R,6),6)})}}}}if(ge.ui.onlyOfferManualRoutesAsFallback){let L=!1;const E={};for(const D in T){const O=T[D];ge.routes.get(D).AUTOMATIC_DEPOSIT&&(L=!0,E[D]=O)}L&&(T=E)}if(typeof ge.filterRoutes=="function"){const L=Object.entries(T).filter(([E,D])=>D.success).map(([E,D])=>E);try{const E=ge.filterRoutes([...L]);if(Array.isArray(E)&&E.every(D=>typeof D=="string"&&L.includes(D)))for(const D in T)E.includes(D)||delete T[D];else console.warn("config.filterRoutes returned one or more invalid route names",E,"Falling back to all supported routes",L)}catch(E){console.warn("Error when filtering routes",E,"Falling back to all supported routes",L)}}return T},[f]),isFetchingInitialQuotes:i}};function ro(e){return{symbol:e.symbol,tokenId:{chain:e.chain,address:e.address.toString()}}}function s1(e,t,n,a,c,i,u){return{route:e,fromToken:ro(t),toToken:ro(n),fromChain:a,toChain:c,amount:i,USDAmount:u({token:t,amount:i})}}const JA=({fromChain:e,toChain:t,sourceToken:n,destToken:a,toNativeToken:c,receivingWallet:i})=>{const[u,f]=ie.useState([]),[p,h]=ie.useState(!1);return ie.useEffect(()=>{if(!e||!t||!n||!a){f([]),h(!1);return}let g=!0;return(async()=>{h(!0);let w=[];await ge.routes.forEach(async(j,I)=>{if(!I.AUTOMATIC_DEPOSIT&&(i==null?void 0:i.name)===Ao.NAME)return;let T=!1;try{T=await I.isRouteSupported(n,a,e,t),T&&ge.isRouteSupportedHandler&&(T=await ge.isRouteSupportedHandler({route:j,fromChain:e,toChain:t,fromToken:ro(n),toToken:ro(a)}))}catch(S){jg(S,`Error when checking route (${j}) is supported`)}I.rc.name.includes("Mayan")&&I.rc.name!=="MayanRouteSHUTTLE"&&(T=!0),T&&w.push(j)}),w.includes("ManualTBTC")&&(w=w.filter(j=>!["ManualTokenBridge","AutomaticTokenBridge"].includes(j))),g&&(h(!1),f(w))})(),()=>{g=!1}},[n,a,e,t,c,i]),{supportedRoutes:u,isFetching:p}},XA=({amount:e,fromChain:t,toChain:n,preferredRouteName:a,toNativeToken:c,sourceToken:i,destToken:u,receivingWallet:f})=>{const{supportedRoutes:p,isFetching:h}=JA({fromChain:t,toChain:n,sourceToken:i,destToken:u,toNativeToken:c,receivingWallet:f}),g=ie.useMemo(()=>({amount:e,sourceChain:t,sourceToken:i,destChain:n,destToken:u,nativeGas:c,recipient:f==null?void 0:f.address}),[e,t,i,u,n,c,f==null?void 0:f.address]),{quotes:C,isFetchingInitialQuotes:w}=qA(p,g),j=ie.useMemo(()=>p.map(S=>{const L=C[S];if(L!=null&&L.success)return{route:S,quote:L}}).filter(Boolean),[p,C]),I=ie.useMemo(()=>KA(j).map(S=>S.sort((L,E)=>{const D=ge.routes.get(L.route),O=ge.routes.get(E.route);if(a){if(L.route===a)return-1;if(E.route===a)return 1}if(D.AUTOMATIC_DEPOSIT&&!O.AUTOMATIC_DEPOSIT)return-1;if(!D.AUTOMATIC_DEPOSIT&&O.AUTOMATIC_DEPOSIT)return 1;const F=BigInt(L.quote.destinationToken.amount.amount),R=BigInt(E.quote.destinationToken.amount.amount);return Number(R-F)})).flat(),[a,j]),T=ie.useMemo(()=>I.map(S=>S.route),[I]);return ie.useMemo(()=>({allSupportedRoutes:p,sortedRoutes:T,sortedRoutesWithQuotes:I,quotes:C,isFetching:h||w}),[p,T,I,C,h,w])},KA=e=>{const t=[6e4,1/0],n=[];for(let a=0;a<t.length;a++)n.push([]);for(const a of e){const{quote:c}=a;for(let i=0;i<t.length;i++){const u=t[i];if((c.eta??1/0)<=u){n[i].push(a);break}}}return n},eI=e=>{const{amount:t}=qt(c=>c.transferInput),n=ie.useMemo(()=>Object.values(e.quotes).reduce((c,i)=>{if(i!=null&&i.success||!HN(i==null?void 0:i.error))return c;if(!c)return i.error.min;const u=BigInt(i.error.min.amount),f=BigInt(c.amount);return u<f?i.error.min:c},void 0),[e.quotes]),a=ie.useMemo(()=>Object.keys(e.quotes).length===0?!1:e.routes.every(c=>{var i;return((i=e.quotes[c])==null?void 0:i.success)===!1}),[e.routes,e.quotes]);return!t||e.disabled?{}:e.balance&&_.units(t)>_.units(e.balance)?{error:"Amount exceeds available balance."}:a?n?{error:`Amount too small (min ~${_.display(n)} ${e.tokenSymbol})`}:{error:"No routes found for this transaction."}:n?{warning:`More routes available for amounts exceeding ${_.display(n)} ${e.tokenSymbol}`}:{}},j8=()=>{const{getTokenPrice:e,lastTokenPriceUpdate:t}=On();return ie.useCallback(({token:n,amount:a})=>{const c=_.whole(a);if(!n)return;const u=Number(e(n))*c;return isNaN(u)?void 0:parseFloat(u.toFixed(2))},[t,e])},X0=()=>{const{token:e,destToken:t}=qt(c=>c.transferInput),n=ie.useMemo(()=>e?ge.tokens.get(e):void 0,[e]),a=ie.useMemo(()=>t?ge.tokens.get(t):void 0,[t]);return{sourceToken:n,destToken:a}},tI=()=>{const{txData:e}=qt(a=>a.redeem),t=ie.useMemo(()=>e!=null&&e.token?ge.tokens.get(e==null?void 0:e.token):void 0,[e]),n=ie.useMemo(()=>e!=null&&e.receivedToken?ge.tokens.get(e==null?void 0:e.receivedToken):void 0,[e]);return{sourceToken:t,destToken:n}};function rI(e,t,n){return _.display({amount:e.toString(),decimals:t},n)}function nI(e,t){if(typeof e!="string")throw new Error("Invalid argument");return e==="0.0"?"0":e.includes(".")?parseFloat(e).toFixed(t):e}const Ln="wormhole-connect:transactions:inprogress",iI=3,c1=(e,t)=>typeof t=="bigint"?t.toString():t,Ls=(e,t)=>{if(Pd(e))return!1;for(const n in t)if(e[n]===null||typeof e[n]!==t[n])return!1;return!0},oI=e=>!(!Ls(e,{receipt:"object",route:"string",timestamp:"number",txDetails:"object",txHash:"string"})||!Ls(e.txDetails,{amount:"object",eta:"number",fromChain:"string",toChain:"string",token:"object"})||!Ls(e.txDetails.amount,{amount:"string",decimals:"number"})||!Ls(e.txDetails.token,{0:"string",1:"string"})),aI=e=>{if(!Array.isArray(e))return!1;for(const t of e)if(!oI(t))return!1;return!0},K0=()=>{const e=window.localStorage;for(let t=0;t<e.length;t++){const n=e.key(t);if((n==null?void 0:n.toLowerCase())===Ln){const a=e.getItem(n);if(a)try{const c=JSON.parse(a);if(aI(c))return c;console.log(`Error while parsing localStorage item ${Ln}: Not an array of valid transactions`),e.removeItem(Ln);return}catch(c){console.log(`Error while parsing localStorage item ${Ln}: ${c}`),e.removeItem(Ln);return}}}},sI=e=>{const t=window.localStorage,n=K0();let a;n?n.length<iI?a=n.concat([e]):(n.splice(0,1),a=n.concat([e])):a=[e];try{t.setItem(Ln,JSON.stringify(a,c1))}catch(c){console.log(`Error while adding item to localStorage ${Ln}: ${c}`)}},T8=e=>{const t=window.localStorage,n=K0();if(n&&n.length>0){const a=n.findIndex(c=>c.txHash===e);if(a>-1){n.splice(a,1);try{t.setItem(Ln,JSON.stringify(n,c1))}catch(c){console.log(`Error while removing item from localStorage ${Ln}: ${c}`)}}}},cI=(e,t,n)=>{const a=window.localStorage,c=K0();if(c&&c.length>0){const i=c.findIndex(u=>u.txHash===e);if(i>-1){c[i][t]=n;try{a.setItem(Ln,JSON.stringify(c,c1))}catch(u){console.log(`Error while updating item in localStorage ${Ln}: ${u}`)}}}},$u=Object.freeze(new Set(["3","1Gq","1N6XqS","1B64QRxf","1B11Ezqg3AXj","bc1qtnr3t28l","3F6bbvS1krsc1qR8FsbTDfYQyvkMm","125W5ek3DT6Zqy5S2iPt4FHQdNMCbZA3FU","1295rkVyNfFpqZpXvKGhDqwhP1jZcNNDMV","129zKFLoVad9JtxSmDKeJoLCsjhGR7b3vr","12HQDsicffSBaYdJ6BhnE22sfjTESmmzKx","12NpCkhddSNiDkD9rRYUCHsTT9ReMNiJjG","12QtD5BFwRsdNsAZY76UVE1xyCGNTojH9h","12udabs2TkX7NXCSj6KpqXfakjE52ZPLhz","12w6v1qAaBc4W8h8C2Cu5SKFaKDSv3erUW","12YCfVAEzkEZXBYhUTyJJaRkgMXiFxJgcu","12YyR9EpvHxBjjKjTWqfKqeyoWnvcraxpW","134r8iHv69xdT6p5qVKTsHrcUEuBVZAYak","13f59kUM5FU8MfTG7DCEugYarDhSD7XCoC","13fhnkmpBBWXUQucJd6efWvXdEj78DKavk","13JtX4h7G5ZuNK5mFudKGq9DHLvvMFuNuz","13mnk8SvDGqsQTHbiGiHBXqtaQCUKfcsnP","13RH4JaFhaCxDGPyYE9emjp2aDxdX18uBA","13YBQr2Cp1YY3xqq2qngaPb7ca1o4ugeq6","149w62rY42aZBox8fGcmqNsXUzSStKeq8C","14gM1HuLVDELNHaFU22qpabjtiWek4HhV1","14kqryJUxM3a7aEi117KX9hoLUw592WsMR","14rjAD8ZP5xaL571cMRE98qgxxbg1S8mAN","158treVZBGMBThoaympxccPdZPtqUfYrT9","15cRqR3TXS1JehBGWERuxFE8NhWZzfoeeU","15kZobLkD6HZgEECtz4oS2Vz21XHTnNfSg","15Pt4NwZaUmMUwS2bQbyyncc7mzgWShtv8","15qyVrZvvVGvB7GWiAZ82TNcZ6QWMKu3kx","15uqdxqNXQwVf5H7yZPz4TmEGeSccCwdor","15YK647qtoZQDzNrvY6HJL6QwXduLHfT28","15yqWQ4sqr7jzCwDtZ3U1KaCa8WMEy7Mm2","16PhXY3hNNMTo8kpuJx2emh713KbWpkqci","17a5bpKvEp1j1Trs4qTbcNZrby53JbaS9C","17ezuJoT3XBbdcwFZbkTnrXbup11F4uhiy","17mhyeBX617ABZ1ffThhUTJkHUcMvCkfd5","17UVSMegvrzfobKC82dHXpZLtLcqzW9stF","17V7THwHMiDJmDwZK4unhE5HgKFJKx7VCe","182NGZbPJXwg2WDrhrPpR7tpiGQkNPF844","18gaXypKj9M23S2zT9qZfL9iPbLFM372Q5","18Qj1THHuETfYhuRDZycXJbWwDMGw73Poa","18uKfaUjgG52rVeXEi3wxnveww7zZuECtE","18yWCu6agTxYqAerMxiz9sgHrK3ViezzGa","1986rYHckYbJpGQJy6ornuMyD2N5MTqwDt","19D1iGzDr7FyAdiy3ZZdxMd6ttHj1kj6WW","19D8PHBjZH29uS1uPZ4m3sVyqqfF8UFG9o","19GrL5jnUkGmHXVcraB1Etv5rXCANeLWpq","1A7SKE2dQtezLktCY8peLsdAtkqxV9r1dC","1AeSq93WDNdLoEJ92sex7T8xQZoYYm8BtS","1AjZPMsnmpdK2Rv9KQNfMurTXinscVro9V","1AoxtfiBQ22DvbhqAN9Ctb8sULMRhrdwTr","1AXUTu9y3H8w4wYx4BjyFWgRhZKDhmcMrn","1BiUFjzH6wsT73U3tfy4aXHCQsYQHzjk5h","1CF46Rfbp97absrs7zb7dFfZS6qBXUm9EP","1CPJak9ZyddbawMGJPyEhCiJLXXb4sYv8N","1D6gG9iKEhPitTcWRJiniuj1jYM2hNeAfJ","1DbShx4r8i2XesthoDBf5EkYWz5dsKEusV","1DbvK8P6imBuLcwh2Vruis4xsUb8YAwJQF","1DDA93oZPn7wte2eR1ABwcFoxUFxkKMwCf","1Df883c96LVauVsx9FEgnsourD8DELwCUQ","1DH2xDH7TngrDU6LXciprKCBKNcPA1xX8A","1DJoEMvp95yJYWyxAZy8DDBzuvjnrTVrsN","1DJoVLgn1foJHHngduRPJvRbwpaFEKxvxd","1DT3tenf14cxz9WFNxmYrXFbB6TFiVWA9U","1DYFJ6CuBvrxyoQSuBzVsNcetY9tvdsrag","1ECeZBxCVJ8Wm2JSN3Cyc6rge2gnvD3W5K","1Edue8XZCWNoDBNZgnQkCCivDyr9GEo4x6","1EfMVkxQQuZfBdocpJu6RUsCJvenQWbQyE","1EpMiZkQVekM5ij12nMiEwttFPcDK9XhX6","1EYitrwBYNWuTBcjZFbEUdqHppe2raLpaF","1F2Gdug9ib9NQMhKMGGJczzMk5SuENoqrp","1FCNgfZWpYMeYhy9t18AAkTBu8AsdoAc1Z","1FE2cuvkq8n5VGwj5hi8YYQxskwJpovPyV","1FjubFHV4mpYjBmvjsEhZssyiiA4TNmnm2","1FRyL9gmFGbzfYDAB4iY9836DJe3KSnjP9","1Fz29BQp82pE3vXXcsZoMNQ3KSHfMzfMe3","1G6DuwDKNHiUWqks2Lgu44cesu7ffFbLK7","1G9A8WRjGXdnYY4TNEVRrcaHsMtana4ncF","1G9CKRHA3mx22DoT1QyNYrh85VSQ19Y1em","1Gekw8ACSs37oXcc5XQHvoux3iKoVFtpF4","1GYuu9d5HPikafbys3k5Q3DRJq6debGsoB","1H939dom7i4WDLCKyGbXUp3fs9CSTNRzgL","1Hn9ErTCPRP6j5UDBeuXPGuq5RtRjFJxJQ","1Hpj6qm9i7nMF3VkKfBFtjhEDpEjxHWvgv","1J9oGoAiHeRfeMZeUnJ9W7RpV55CdKtgYE","1JHdQHkBZiim1cb4hyUh2PbzEbbg6z2TrF","1JPfVv5cWRLx1js9NWxg46dG2CGbeRz4th","1JREJdZupiFhE7ZzQPtASuMCvvpXC7wRsC","1Js6goCey2NaqPQptiLANLQGuk4d6mowjP","1Kc6egXevyLEaeTxLFA1Zyw7GuhCN8jQtt","1KctQENEX5QkQMpnMC3Zh9yRAzkMBLpPcr","1KgudqxMfYaGzqAA7MS4DcsqejtMteqhix","1KSAbh5trMCTZwhiNsuUQvfTtSSTT8zqRk","1Kuf2Rd8mDyAViwBozGTNYnvWL8uYFrkVo","1KUUJPkyDhamZXgpsyXqNGc3x1QPXtdhgz","1Kys8fqDen8NGFUJ6AFcXfFW5qquuTH4eh","1L4ncif9hh9TnUveqWq77HfWWt6CJWtrnb","1LAh7PQwpd1uGiLHae5C5Xz9QXse3y2phq","1LiNmTUPSJEd92ZgVJjAV3RT9BzUjvUCkx","1Ljk8RNNabkZ9bfDYQBn98XfFozJhTjqcZ","1LpYKb3SXZPve9hsH2QEJZFX279wJVGowi","1LrxsRd7zNuxPJcL5rttnoeJFy1y4AffYY","1M5N4sJ1NHb4fviLVZA5MZLKhLZqU4CPZz","1MkCnCa9agS5t6V1B15bzusBgYECB4LfWp","1MLPqwaFFUBZePTjpR3nxRoK19Cv9mPCc7","1MnbhWe5wr7Ut45ReyQsm96PwnM9jD7KaH","1NayLEVF3bEEbDtdF2Cwso1VdEtvVNh2qX","1NE2NiGhhbkFPSEyNWwj7hKGhGDedBtSrQ","1NuBZQXJPyYQGfoBib8wWBDpZmbtkJa5Ba","1P3ZfGFLezzYGg9k5SVzQmnjyh7nrUmF2y","1PfwHNxUnkpfkK9MKjMqzR3Xq3KCtq9u17","1PhqQpaGCrqSxQ6QDXcv14QCd1U98Zp34E","1PJp8diNa89cVHpiT1VPu7EQ8LxYM5HX6v","1Q6saNmqKkyFB9mFR68Ck8F7Dp7dTopF2W","1Q9UAQbcDezmyouFrzt94t4dSMxgsUfW1X","31p6woV4e55HUfC2aGynFhzQnGoJFW26cD","32DaxSzUhLBHY2WGSWQYiBSHnRsfQZrrRp","32jgFkZsTEjMFaBvxJnYvJEeTNKTmq5b32","32pTjxTNi7snk8sodrgfmdKao3DEn1nVJM","32wdqwX3zCEX3DhAVEcKwXCEGdzgBnx1R9","33Kja69SQVc8kozpoP7Qw6HFtGxHkiWzTz","33xWfziVZesgo83U5izdNCBVTnrtBpSwK7","347QFbejDBdMZFTxpmn6evvvqyXiqZTCd7","34pFGsSYbWEritXncW9unZtQQE9dKSvKku","35KAdTa2vqnJzitF2xiUzZn1Gmcas2Y465","35LScRJ8hzDvvWh9t9UA8bHGnGNVz3YEfa","35QpLWYkvD3ALhjbge5bK2kd7HfHYcDMu3","35qwVtMEohWDdBWRiCSR7azoP5cbY8SG1Q","3685sEusmTwZBiKJ4cgV73EAhpVD1nbgbe","372Wk9NLrMkJzKgqJdatWJy4bYRfxFjgat","389Sft4nJFkPGhbagk9FN4jXncA9piYTuU","38ncxqt932N9CcfNfYuHGZgCyR85hDkWBW","38TftW1heYPqvKbiAhT4ttNBqkUPpooXad","39eboeqYNFe2VoLC3mUGx4dh6GNhLB3D2q","39fhoB2DohisGBbHvvfmkdPdShT75CNHdX","39NG2LcGRHXxSr1irpEVnJMw4ydL231sEn","39p8qWp1bkBNhi4vPpFTetKPtH7goqNDZf","39Te8MbphSgs7npDJPj2hbNzhke61NTcnB","3AjyprBY5yhijiCjUC5NUJutGbwhd3AQdE","3AQSmMk5n3c6TKEg9B2WyzYAPm33gJJAA4","3B7S6zrgxQVQUHTU8wstM23tB9afE7ojuX","3BsyZ7qRFSi3NsaoV1Ff724qAgrEpjVUHm","3DNsaQnaUz7wkQny1ZDSmtz6QfbEShxoDD","3E6rY4dSCDW6y2bzJNwrjvTtdmMQjB6yeh","3E6ZCKRrsdPc35chA9Eftp1h3DLW18NFNV","3E7YbpXuhh3CWFks1jmvWoV8y5DvsfzE6n","3EeR8FbcPbkcGj77D6ttneJxmsr3Nu7KGV","3EPqGUw2q89pwPZ1UF8FJspE2AyojSTjdu","3F2sZ4jbhvDKQdGbHYPC6ZxFXEau2m5Lqj","3F6bbvS1krsc1qR8FsbTDfYQyvkMm3QvmR","3FfRvC3kSo2SxiQe5e7SSuNdegwgq8iusL","3Gbs4rjcVUtQd8p3CiFUCxPLZwRqurezRZ","3GXdtA6kbb4M5aqzZm5qqxcFDFRMW8LqdJ","3H3rh85qPaGLy2w6618yZNaH7i8asHv46B","3He6EyDaCUgmdr4GXqhxbeTQukaGLCByU2","3HePkztPU6UsdENxnyQHFrdZA6eVKeMtvz","3HqA7i3ttECLvgqvq69HNxxUP5BL7Z5YgA","3HQRveQzPifZorZLDXHernc5zjoZax8U9f","3JHMz3mTna1gVCZSPp8NgRFiY7phkv5mA8","3JXKQ81JzBqVbB8VHdV9Jtd7auWokkdPgY","3K35dyL85fR9ht7UgzPfd1gLRRXQtNTqE3","3K4rjdh8A5yi6LWvft2rbmyZvqEbPSSSX4","3K7PMJyMNVnxqsfpmK9r9nJDtzDw9wNwNV","3KHfXU24Bt3YD5Ef4J7uNp2buCuhrxfGen","3LbDu1rUXHNyiz4i8eb3KwkSSBMf7C583D","3LhnVMcBq4gsR7aDaRr9XmUo17CuYBV4FN","3Lpoy53K625zVeE47ZasiG5jGkAxJ27kh1","3MkUNScqf21EcfWq6T4x2MFgBeSTqhB5t6","3MN8nYo1tt5hLxMwMbxDkXWd7Xu522hb9P","3MTrJTFhYK9v1C6pjHtuweZSopfZa4b1wb","3MTRvM5QrYZHKo8gh5qKcrPK3RLjxcDCZE","3N6WeZ6i34taX8Ditser6LKWBcXmt2XXL4","3N9YcPBDky9UsMx1RTk33tL4jDkZfSnsPk","3NNcbBcMZokPB2JC2dxYuZrpgcetvyGeJn","3NQ1aa9ceirMJ1JvRq3eXefvXj1L639fzX","3NRJ8aXdUiZdHaiFX9ePX3DhGHzcEi14Fq","3NU9zkD8CCVGVmYnNNSN7PbU9sSFQBm5UV","3PiCnZrBvGfWAKQ9hr4cCpfaDjy64yNSpE","3PKiHs4GY4rFg8dpppNVPXGPqMX6K2cBML","3Q5dGfLKkWqWSwYtbMUyc8xGjN5LrRviK4","3Q8H2ZWMtc4R1M3mkmhnTjCoYKTeCFigDP","DFFJhnQNZf8rf67tYnesPu7MuGUpYtzv7Z","GPwg61XoHqQPNmAucFACuQ5H9sGCDv9TpS","LaizKtS5DUhPuP1nTQcc83MS7HwK6vk85z","LeKvNdNEzgQkzVVnRdV3fAu2DSF1nLsNw6","Leo3j36nn1JcsUQruytQhFUdCdCH5YHMR3","LNwgtMxcKUQ51dw7bQL1yPQjBVZh6QEqsd","M8yFL6SFC6TreATegTyuSYkDfDRbisdpT3","TC4VsFHJdZ66BdwobZxkudVZBVmQZgCP65","TDdbRFoBTEmE3qiR69Y6rKRSG1hoF65QaE","TDprk9jeYPVm6khkBp1u7fwuyJcEJFrPWD","TDwN1Eq62bqvVhfGAjdRRJjE46jsi5KNMV","TEAqwfMhXLaomXhZ8KeMhx3njGmQEDnsUR","TEFph7dZoUN5233cGEzF6XFwRpjPF8fQDS","TFdTr9C3BqQrzKBXqSxJfAZFTh8UwBAfSg","TFFvv7NAWmbcVfA7QN81mMvUC25TWj1WJx","TGJVc32ig2u8tQsYMLE7KXHT5NDQroaVNU","TGUPpmW2bAnMCLe5ih2CFisfCHk4gTFDsx","TH96tFMn8KGiYSLiwcV3E2UiaJc8jmcbz3","THh5woR8qfmDsNknQ3agPYzQSiRtMnKsTh","TLM3zA3EWycoDX4ZX4gKze7sgfbdkntTum","TLNRT524dzL5FF1nJHDhYEMFpeWjLjRbz1","TM6Kix9wH8cYQ4rLpFifsQ4ddH3rPX3f8p","TMGLqRQ4twjW8wJhVH1mQR7nUThpGHUsN3","TMStbg5fgb4uTV7fK1gEYF9hKAzP3siPsG","TNmRfnSUXZoWWzxcDDbf95eGQYXt1mJDt8","TQ5mpZPbQMSq2s1vSM3RJgiB1AsTsiTpFZ","TRBACioxdrdsYEZHvJWiUDZcMdBPpEe5Ub","TTAHMdqoom4f2VTWniroPWQHcTRZ4caoH4","TTgcTTNbNuFdbrhvbjMZVrdU5KALyzDaPw","TTKnV2S1295UrPr7N67Tp9ykNL7xX2Z4Uj","TTUDyVhhpCC1xJoPmWzdjLAzeoPwbSABdr","TUCsTq7TofTCJRRoHk6RvhMoS2mJLm5Yzq","TV5ZTpKDszLTF6XcMnPongS33pwBgF91by","TVacWx7F5wgMgn49L5frDf9KLgdYy8nPHL","TVn4q7L4fKEPbygi7UHq1CKfZxtbeuMV5q","TWBAPzpPiZarfVsY2BLXeaLhNHurn4wkWG","TX5GV4DyfxNB3rPkzZJhmqZ1efVmL4rEqG","TXEaKf4rT3rMoD3Vuqnuhwr6vLq6BL5t33","TXEsK1sEsKjZ1xtHitnyAAoqw3WLdYdRNW","XnPFsRWTaSgiVauosEwQ6dEitGYXgwznz2","Xs3vzQmNvAxRa3Xo8XzQqUb3BMgb9EogF4","XyARKoupuArYtToA2S6yMdnoquDCDaBsaT","t1g7wowvQ8gn2v8jrU1biyJ26sieNqNsBJy","t1MMXtBrSp1XG38Lx9cePcNUCJj5vdWfUWL","0x01e2919679362dFBC9ee1644Ba9C6da6D6245BB1","0x03893a7c7463AE47D46bc7f091665f1893656003","0x04DBA1194ee10112fE6C3207C0687DEf0e78baCf","0x05E0b5B40B7b66098C2161A5EE11C5740A3A7C45","0x07687e702b410Fa43f4cB4Af7FA097918ffD2730","0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f","0x08723392Ed15743cc38513C4925f5e6be5c17243","0x08b2eFdcdB8822EfE5ad0Eae55517cf5DC544251","0x09193888b3f38C82dEdfda55259A82C0E7De875E","0x09278b36863bE4cCd3d0c22d643E8062D7a11377","0x0931cA4D13BB4ba75D9B7132AB690265D749a5E7","0x098B716B8Aaf21512996dC57EB0615e2383E2f96","0x0D8BB3Cd639399A77170d92511DFd54b5f372AAe","0x0E3A09dDA6B20aFbB34aC7cD4A6881493f3E7bf7","0x0e8C1E2881F35Ef20343264862A242FB749d6b35","0x0Ee5067b06776A89CcC7dC8Ee369984AD7Db5e06","0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc","0x1356c899D8C9467C7f71C195612F8A395aBf2f0a","0x140c9Ab92347734641b1A7c124ffDeE58c20C3E3","0x1512fcb09463A61862B73ec09B9b354aF1790268","0x1542368a03ad1f03d96D51B414f4738961Cf4443","0x169AD27A470D064DEDE56a2D3ff727986b15D52B","0x175d44451403Edf28469dF03A9280c1197ADb92c","0x178169B423a011fff22B9e3F3abeA13414dDD0F1","0x179f48C78f57A3A78f0608cC9197B8972921d1D2","0x1967D8Af5Bd86A497fb3DD7899A020e47560dAAF","0x1999EF52700c34De7EC2b68a28aAFB37db0C5ade","0x19Aa5Fe80D33a56D56c78e82eA5E50E5d80b4Dff","0x19F8f2B0915Daa12a3f5C9CF01dF9E24D53794F7","0x1bb0970508316DC735329752a4581E0a4bAbc6B4","0x1da5821544e25c636c1417Ba96Ade4Cf6D2f9B5A","0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD","0x1eB27f136BFe7947f80d6ceE3Cf0bfDf92b45e57","0x21032176B43d9f7E9410fB37290a78f4fEd6044C","0x21B8d56BDA776bbE68655A16895afd96F5534feD","0x2290937A4498C96eFfb87b8371a33D108F8D433f","0x22aaA7720ddd5388A3c0A3333430953C68f1849b","0x23173fE8b96A4Ad8d2E17fB83EA5dcccdCa1Ae52","0x23773E65ed146A459791799d01336DB287f25334","0x23b9596eb4ff2Aa35Edc7fBCEbD4d0b03275630D","0x23Db729908137cb60852f2936D2b5c6De0e1c887","0x242654336ca2205714071898f67E254EB49ACdCe","0x2573BAc39EBe2901B4389CD468F2872cF7767FAF","0x26903a5a198D571422b2b4EA08b56a37cbD68c89","0x2717c5e28cf931547B621a5dddb772Ab6A35B701","0x2b53a4AbE6C4f9a227813b40a6BB05f3a6f71aAe","0x2e487A23423F6Fec4bF2bF03aeA35e9368d4581E","0x2f389cE8bD8ff92De3402FFCe4691d17fC4f6535","0x2F50508a8a3D323B91336FA3eA6ae50E55f32185","0x2Fa99c748B16b5EbAfcbfC3AB54db71AE6Eef6e6","0x2FC93484614a34f26F7970CBB94615bA109BB4bf","0x308eD4B7b49797e1A98D3818bFF6fe5385410370","0x30a822CDD2782D2B2A12a08526452e885978FA1D","0x330bdFADE01eE9bF63C209Ee33102DD334618e0a","0x35fB6f6DB4fb05e6A4cE86f2C93691425626d4b1","0x36ed3C0213565530C35115d93A80F9c04d94E4Cb","0x38735f03b30FbC022DdD06ABED01F0Ca823C6a94","0x39D908dac893CBCB53Cc86e0ECc369aA4DeF1A29","0x3A21F4E6Bbe527D347ca7c157F4233c935779847","0x3aac1cC67c2ec5Db4eA850957b967Ba153aD6279","0x3AD9dB589d201A710Ed237c829c7860Ba86510Fc","0x3B8446b684075F2AaE0b5c16387A5cBbBEd62142","0x3CBdeD43EFdAf0FC77b9C55F6fC9988fCC9b757d","0x3Cffd56B47B7b41c56258D9C7731ABaDc360E073","0x3e37627dEAA754090fBFbb8bd226c1CE66D255e9","0x3eFA30704D2b8BBAc821307230376556cF8CC39e","0x407CcEeaA7c95d2FE2250Bf9F2c105aA7AAFB512","0x40e98FeEEbaD7Ddb0F0534Ccaa617427eA10187e","0x43fa21d92141BA9db43052492E0DeEE5aa5f0A93","0x4571bD67d14280E40BF3910Bd39FBF60834F900A","0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D","0x47666Fab8bd0Ac7003bce3f5C3585383F09486E2","0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936","0x48549A34AE37b12F6a30566245176994e17C6b4A","0x4C198B3B5F3a4b1Aa706daC73D826c2B795ccd67","0x4F47Bc496083C727c5fbe3CE9CDf2B0f6496270c","0x502371699497d08D5339c870851898D6D72521Dd","0x51E9d833Ecae4E8D9D8Be17300AEE6D3398C135D","0x52207Ec7B1b43AA5DB116931a904371ae2C1619e","0x5270434029f2fE10f7DD81bcE079280Cb8c749d4","0x527653eA119F3E6a1F5BD18fbF4714081D7B31ce","0x530A64c0Ce595026a4A556b703644228179E2d57","0x538Ab61E8A9fc1b2f93b3dd9011d662d89bE6FE6","0x53b6936513e738f44FB50d2b9476730C0Ab3Bfc1","0x5512d943eD1f7c8a43F3435C85F7aB68b30121b0","0x55CCa2f5eB07907696afe4b9Db5102bcE5feB734","0x57b2B8c82F065de8Ef5573f9730fC1449B403C9f","0x57c93f99823D58547257FE8d49cDa6b96b0568e7","0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2","0x5A14E72060c11313E38738009254a90968F58f51","0x5A7a51bFb49F190e5A6060a5bc6052Ac14a3b59f","0x5Af75eAB6BEC227657fA3E749a8BFd55f02e4b1D","0x5cab7692D4E94096462119ab7bF57319726Eed2A","0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce","0x5f48C2A71B2CC96e3F0CCae4E39318Ff0dc375b2","0x5f6c97C6AD7bdd0AE7E0Dd4ca33A4ED3fDabD4D7","0x610B717796ad172B316836AC95a2ffad065CeaB4","0x653477c392c16b0765603074f157314Cc4f40c32","0x660BfcEa3A5FAF823e8f8bF57dd558db034dea1d","0x67d40EE1A85bf4a4Bb7Ffae16De985e8427B6b45","0x684d4b58Dc32af786BF6D572A792fF7A883428B9","0x6aCDFBA02D390b97Ac2b2d42A63E85293BCc160e","0x6Be0aE71e6c41f2f9D0D1A3B8d0f75E6f6A0b46e","0x6Bf694a291DF3FeC1f7e69701E3ab6c592435Ae7","0x6d46bd3AfF100f23C194e5312f93507978a6DC91","0x6DC6B2080E9C2ab173A4276ced46360F37006eB3","0x6F1cA141A28907F78Ebaa64fb83A9088b02A8352","0x722122dF12D4e14e13Ac3b6895a86e84145b6967","0x723a7084028421994d4a7829108D63aB44658315","0x723B78e67497E85279CB204544566F4dC5d2acA0","0x72a5843cc08275C8171E582972Aa4fDa8C397B2A","0x743494b60097A2230018079c02fe21a7B687EAA5","0x746Aebc06D2aE31B71ac51429A19D54E797878E9","0x756C4628E57F7e7f8a459EC2752968360Cf4D1AA","0x76D85B4C0Fc497EeCc38902397aC608000A06607","0x776198CCF446DFa168347089d7338879273172cF","0x77777FeDdddFfC19Ff86DB637967013e6C6A116C","0x797d7Ae72EbddCDea2a346c1834E04d1F8dF102b","0x7Db418b5D567A4e0E8c59Ad71BE1FcE48f3E6107","0x7F19720A857F834887FC9A7bC0a0fBe7Fc7f8102","0x7F367cC41522cE07553e823bf3be79A889DEbe1B","0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9","0x8281Aa6795aDE17C8973e1aedcA380258Bc124F9","0x833481186f16Cece3f1Eeea1a694c42034c3a0dB","0x83c7678492D623fb98834F0fbcb2E7b7f5Af8950","0x83E5bC4Ffa856BB84Bb88581f5Dd62A433A25e0D","0x83Ef5E80faD88288F770152875Ab0bb16641a09E","0x84443CFd09A48AF6eF360C6976C5392aC5023a1F","0x8576aCC5C05D6Ce88f4e49bf65BdF0C62F91353C","0x8589427373D6D84E98730D7795D8f6f8731FDA16","0x88fd245fEdeC4A936e700f9173454D1931B4C307","0x8c7235e1A6EeF91b980D0FcA083347FBb7EE1806","0x901bb9583b24D97e995513C6778dc6888AB6870e","0x905b63Fff465B9fFBF41DeA908CEb12478ec7601","0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF","0x9271EDdda0F0f2bB7b1A0c712bdF8dbD0A38d1Ab","0x931546D9e66836AbF687d2bc64B30407bAc8C568","0x94A1B5CdB22c43faab4AbEb5c74999895464Ddaf","0x94Be88213a387E992Dd87DE56950a9aef34b9448","0x94C92F096437ab9958fC0A37F09348f30389Ae79","0x959c4CA19c4532C97A657D82d97acCBAb70e6fb4","0x961C5Be54a2ffC17CF4Cb021d863c42daCd47Fc1","0x96244D83DC15d36847C35209bBDc5bdDE9bEc3D8","0x97B1043ABD9E6FC31681635166d430a458D14F9C","0x983a81ca6FB1e441266D2FbcB7D8E530AC2E05A2","0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E","0x9C2Bc757B66F24D60F016B6237F8CdD414a879Fa","0x9eF42873Ae015AA3da0c4354AeF94a18D2B3407b","0x9F4cda013E354b8fC285BF4b9A60460cEe7f7Ea9","0xa0e1c89Ef1a489c9C7dE96311eD5Ce5D32c20E4B","0xA160cdAB225685dA1d56aa342Ad8841c3b53f291","0xA3ba80897D905aB5B0B801765A2B44B180137F30","0xA4B2Fd68593B6F34E51cB9eDB66E71c1B4Ab449e","0xA5A023E052243b7cce34Cbd4ba20180e8Dea6Ad6","0xa5C2254e4253490C54cef0a4347fddb8f75A4998","0xa5cAb1Db0E0D1F77eD3a34830B8294f5Fe697A93","0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D","0xA7e5d5A720f06526557c513402f2e6B5fA20b008","0xA924eAe4A5787ebbeFC716154FFB1b9B97e4B412","0xad6298D2E4aE175b1d526f37e516c93f21a17edC","0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6","0xaf4c0B70B2Ea9FB7487C7CbB37aDa259579fe040","0xAf5b8eAB7049Ef4f5BE2f890D758D6353ac57FD0","0xaf620e6d32b1c67f3396ef5d2f7d7642dc2e6ce9","0xaf8d1839c3c67cf571aa74B5c12398d4901147B3","0xb04E030140b30C27bcdfaafFFA98C57d80eDa7B4","0xb172F7e99452446f18FF49A71bfEeCf0873003b4","0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00","0xB20c66C4DE72433F3cE747b58B86830c459CA911","0xB4a862A81aBB2f952FcA4C6f5510962e18c7f1A2","0xb541fc07bC7619fD4062A54d96268525cBC6FfEF","0xb6f5ec1A0a9cd1526536D3F0426c429529471F40","0xB72334cB9D0b614D30C4c60e2bd12fF5Ed03c305","0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659","0xbB93e510BbCD0B7beb5A853875f9eC60275CF498","0xBC3e5e8C10897a81b63933348f53f2e052F89a7E","0xBCA02B395747D62626a65016F2e64A20bd254A39","0xbdE2Cc5375fa9E0383309A2cA31213f2D6cabcbd","0xc2a3829F459B3Edd87791c74cD45402BA0a20Be3","0xC455f7fd3e0e12afd51fba5c106909934D8A0e4a","0xCa0840578f57fE71599D29375e16783424023357","0xCC84179FFD19A1627E79F8648d09e095252Bc418","0xCd1a4A457cA8b0931c3BF81Df3CFa227ADBdb6E9","0xCd7eC020121Ead6f99855cbB972dF502dB5bC63a","0xCEe71753C9820f063b38FDbE4cFDAf1d3D928A80","0xD0975B32cEa532eaDDdFC9c60481976e39dB3472","0xD21be7248e0197Ee08E0c20D4a96DEBdaC3D20Af","0xD3C611AeD139107DEC2294032da3913BC26507fb","0xd47438C816c9E7f2E2888E060936a499Af9582b3","0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3","0xD5b58Cf7813c1eDC412367b97876bD400ea5c489","0xD5d6f8D9e784d0e26222ad3834500801a68D027D","0xd5ED34b52AC4ab84d8FA8A231a3218bbF01Ed510","0xD691F27f38B395864Ea86CfC7253969B409c362d","0xD692Fd2D0b2Fbd2e52CFa5B5b9424bC981C30696","0xD82ed8786D7c69DC7e052F7A542AB047971E73d2","0xd882cFc20F52f2599D84b8e8D58C7FB62cfE344b","0xd8D7DE3349ccaA0Fde6298fe6D7b7d0d34586193","0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b","0xd96f2B1c14Db8458374d9Aca76E26c3D18364307","0xdcbEfFBECcE100cCE9E4b153C4e15cB885643193","0xDD4c48C0B24039969fC16D1cdF626eaB821d3384","0xdD90071D52F20e85c89802e5Dc1eC0A7B6475f92","0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178","0xDF3A408c53E5078af6e8fb2A85088D46Ee09A61b","0xe69753Ddfbedbd249E703EB374452E78dae1ae49","0xe7aa314c77F4233C18C6CC84384A9247c0cf367B","0xE950DC316b836e4EeFb8308bf32Bf7C72a1358FF","0xE9bc552fdFa54b30296d95F147e3e0280FF7f7e6","0xEB0bAA3A556586192590CAD296b1e48dF62a8549","0xeD6e0A7e4Ac94D976eeBfB82ccf777A3c6baD921","0xeDC5d01286f99A066559F60a585406f3878a033e","0xEFE301d259F525cA1ba74A7977b80D5b060B3ccA","0xf03AfB1c6A11A7E370920ad42e6eE735dBedF0b1","0xf0a16603289eAF35F64077Ba3681af41194a1c09","0xF302572594a68aA8F951faE64ED3aE7DA41c72Be","0xf3701F445b6BDaFeDbcA97D1e477357839e4120D","0xf4B067dD14e95Bab89Be928c07Cb22E3c94E0DAA","0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A","0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a","0xF7B31119c2682c88d88D455dBb9d5932c65Cf1bE","0xfa3FcCCB897079fD83bfBA690E7D47Eb402d6c49","0xFAC583C0cF07Ea434052c49115a4682172aB6b4F","0xFc926659Dd8808f6e3e0a8d61B20B871F3Fa6465","0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144","0xfEC8A60023265364D066a1212fDE3930F6Ae8da7","0xffbaC21a641Dcfe4552920138D90F3638B3c9fba","bc1q048fxd02dcchrzv9t4t0s5jvd3uvexm9lxufs0","bc1q2lpgjntr348pfvxhfy33ehmdzy3gmx8w4052z6","bc1q3q2lz3cmt4u2f49ugxz5q34xrs0m2z4w2gmkp5","bc1q3y5v2khlyvemcz042wl98dzflywr8ghglqws6s","bc1q45cxufu7x6s5v9adzm9t38k80gwawse75xffwe","bc1q4namcagg5wljs0u20z6h2sqgsq4q5lts8rt2rr","bc1q4yzd2rjmshm8ucrwy6dzj5rna20j0zlf8hf8vz","bc1q5jqgm7nvrhaw2rh2vk0dk8e4gg5g373g0vz07r","bc1q8ew45w2agdffrnwp6adt2gqrc9n4mkev9ns29c","bc1q9lvynkfpaw330uhqmunzdz6gmafsvapv7y3zty","bc1qagp0gy58v8hqvw4p2wsphcxg067rrppp45hexr","bc1qardcxz845jw83vgfvcmewhuxa0ag9gchjwmcfd","bc1qdpazd6smrkq5hmw6lupq98za2fqtgmq3azv3av","bc1qdt3gml5z5n50y5hm04u2yjdphefkm0fl2zdj68","bc1qfg4gfg0y6t6xjnpmlhuwx5k0wlw6nmfzxn2psc","bc1qgdsx5mt5xxqymuu5sfzdnq6wtw4wsh2raytanx","bc1qj2ffj6pepc80sfqpx2k2pd3q278q72dpqv2ens","bc1qjwr3rgww7a8ut7a4x8jqh3vswcue3xvp6dm7qe","bc1ql7dlyh8xz6tpqk92vztrhqh88dmjvcwrmsemrm","bc1qlu4a33zjspefa3tnq566xszcr0fvwz05ewhqfq","bc1qmzmx8res2fgzd2wttyvf2ajqqqtcnxxrgkqc2t","bc1qn6segn8km4nfdp9vueu6msfjsaxaqgun9h60n9","bc1qnykkrlk67f9kdqvzyw2ndu3xmef5z2e52886yl","bc1qpaly5nm7pfka9v92d6qvl4fc2l9xzee8a6ys3s","bc1qsxf77cvwcd6jv6j8d8j3uhh4g0xqw4meswmwuc","bc1qtdupwe722vcc5e0vh94cgwfs0ep4gzwyfsf75q","bc1qte9ret332gwrk6e7vqc87d807npzvdj5savg4h","bc1qtrrfhr0f3ufsrjxfv8a7p3yuqj0spe4cm6vaws","bc1qtsl3ufenrv3zgrgm9z8xarcx22x8mfztuartyn","bc1qu5vngdtcx8nc9d68pq8nv7pzcjrswsy87s66gk","bc1qv4krhj2qmpd9qz9xj9nhvj99fq8s9xsw05d485","bc1qv7k70u2zynvem59u88ctdlaw7hc735d8xep9rq","bc1qvhnfknw852ephxyc5hm4q520zmvf9maphetc9z","bc1qvxlwpgcw260sc97a0u6dm0cjxv027clhd67fvx","bc1qw4cxpe6sxa5dg6sdwxjph959cw6yztrzl4r54s","bc1qw8evftpgc8wsmkemd8yl5fg2husza5z802xaym","bc1qwtswqzvaxl6lyw3keqqzwt8z937psta3wg9sjy","bc1qwz0l2ceddckwdy5rh6zyrm3x4ha6gn5f2da5zg","bc1qx3e2axj3wsfn0ndtvlwmkghmmgm4583nqg8ngk","bc1qx9upga7f09tsetqf78wa3qrmcjar58mkwz6ng6","bc1qyqvyupkpl6tm60zdecef925y220ssjuagpxsm0","qpf2cphc5dkuclkqur7lhj2yuqq9pk3hmukle77vhq","qzjv8hrdvz6edu4gkzpnd4w6jc7zf296g5e9kkq4lx","bc1q86tl9255vg5wldamfymaaz36uqxzm30gs7fhkljvzdlt9t38s3lqgdwdfq","bc1q90zrdysy4flyacw7hsury3ajs9yzwtwp6guqpypx94w0d3p58hysvz6pde","bc1qkfqh5p2qsakseg5gnwen6zh5xf3elmku2xaup29mw3l0wnncy3es880dss","bc1qq7p0es3dv5hcynjjf40f2xjjr6qp5py47d2f6n847vduuq9gvnyq7y9ecd","bc1qw7vfgv3r5vnehafl0y95sclg3uqsj87wxs9ad628yjjcq33cwessr6ndyw","5be5543ff73456ab9f2d207887e2af87322c651ea1a873c5b25b7ffae456c320","49HqitRzdnhYjgTEAhgGpCfsjdTeMbUTU6cyR4JV1R7k2Eej9rGT8JpFiYDa4tZM6RZiFrHmMzgSrhHEqpDYKBe5B2ufNsL","884Bz8UH63aYsjVdkfWfScRYWZGGNbjFL7pztqvWNSrtYT4reFSwyvkCj9KEGUtheHhhMUj87ciTBFyzoesrMJ4L1FvSoxL"])),lI=e=>!e||!ge.chains[e]?"Select a source chain":"",fI=(e,t)=>{if(!e||!ge.chains[e])return"Select a destination chain";if(t&&e===t)return"Source chain and destination chain cannot be the same";if(ge.ui.defaultInputs&&ge.ui.defaultInputs.requiredChain&&e&&t){const{requiredChain:a}=ge.ui.defaultInputs,c=ge.chains[a];if(c&&e!==a&&t!==a)return`Must select ${c.displayName} as either the source or destination chain`}return""},uI=(e,t)=>{if(!e)return"";const n=_.units(e);if(n===0n)return"Amount must be greater than 0";if(t){const a=_.units(t);if(n>a)return"Amount exceeds available balance"}return""},dI=e=>$u.has(e)||$u.has("0x"+e),dp=async(e,t)=>{if(!e.address)return"Wallet not connected";try{if(dI(e.address))return"This address is sanctioned, bridging is not available"}catch(a){console.error(a)}if(e.currentAddress&&e.currentAddress!==e.address)return"Switch to connected wallet";const n=Eg(e.type);return t&&!n.includes(t)?`Connected wallet is not supported for ${t}`:""},hI=(e,t)=>e<0?"Amount must be equal to or greater than zero":t&&e>t?"Amount exceeds maximum amount":"",pI=e=>{if(!e)return!1;const t=ge.routes.get(e);return t?t.AUTOMATIC_DEPOSIT:!1},gI=async(e,t,n)=>{const{fromChain:a,toChain:c,amount:i,balances:u,route:f}=e,p=e.token?ge.tokens.get(e.token):void 0,{maxSwapAmt:h,toNativeToken:g}=t,{sending:C,receiving:w}=n,j=pI(f),I=p?Fg(u,C.address,a,p):null,T={sendingWallet:await dp(C,a),receivingWallet:await dp(w,c),fromChain:lI(a),toChain:fI(c,a),amount:uI(i,(I==null?void 0:I.balance)||null),toNativeToken:"",relayerFee:"",receiveAmount:""};return j?f==="AutomaticNtt"?T:{...T,toNativeToken:hI(g,h)}:T},A8=e=>{for(const t of Object.values(e))if(t)return!1;return!0},I8=async({transferInput:e,relay:t,wallet:n},a,c)=>{const i=await gI(e,t,n),u=n.sending.address&&n.receiving.address&&e.fromChain&&e.toChain&&e.token&&e.destToken&&e.amount;c()||a(Ew({validations:i,showValidationState:!!u}))},mI=250,MI=()=>{const e=Sr(),t=qt(u=>u.transferInput),n=qt(u=>u.relay),a=qt(u=>u.wallet),c=ie.useMemo(()=>({transferInput:t,relay:n,wallet:a}),[t,n,a]),[i]=QA(c,mI);ie.useEffect(()=>{let u=!1;return I8(i,e,()=>u),()=>{u=!0}},[i,e])},l1=(e,t)=>{const n=e.toString().padStart(2,"0"),a=t.toString().padStart(2,"0");return`${n}:${a}`},yI=e=>{const t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3);return l1(t,n)},vI=e=>{const t=Sr(),[n,a]=ie.useState(void 0),[c,i]=ie.useState(void 0),u=ie.useContext(ao),f=qt(k=>k.transferInput),{amount:p,fromChain:h,toChain:g,route:C,validations:w}=f,{sourceToken:j,destToken:I}=X0(),T=qt(k=>k.wallet),{sending:S,receiving:L}=T,E=qt(k=>k.relay),{toNativeToken:D}=E,O=e.quotes[C??""],F=O!=null&&O.success?O:void 0,R=F==null?void 0:F.destinationNativeGas,Q=j8();return{onConfirm:async()=>{if(n&&a(void 0),ge.ui.previewMode){a("Connect is in preview mode");return}if(!h||!j||!g||!I||!p||!C||!F||(await I8({transferInput:f,relay:E,wallet:T},t,()=>!1),!A8(w)||!C))return;const z=s1(C,j,I,h,g,p,Q);if(ge.validateTransfer)try{const{isValid:y,error:r}=await ge.validateTransfer({...z,fromWalletAddress:S.address,toWalletAddress:L.address});if(!y){a(r??"Transfer validation failed");return}}catch(y){a("Error validating transfer"),i(y),console.error(y);return}t(_3(!0));try{ge.triggerEvent({type:"transfer.initiate",details:z});const[y,r]=await ge.routes.get(C).send(j,p,h,S.address,g,L.address,I,{nativeGas:D}),s="originTxs"in r?r.originTxs[r.originTxs.length-1].txid:void 0;if(ge.triggerEvent({type:"transfer.start",details:{...z,txId:s}}),!s)throw new Error("Can't find txid in receipt");let l;if(F.relayFee){const{token:b,amount:N}=F.relayFee,m=ge.tokens.get(b);l={fee:Number.parseFloat(rI(N.amount,N.decimals,6)),token:m==null?void 0:m.tuple}}const d=Date.now(),M={sendTx:s,sender:S.address,amount:p,recipient:L.address,toChain:r.to,fromChain:r.from,receivedToken:I.tuple,token:j.tuple,tokenAddress:j.tuple[1],tokenKey:j.key,tokenDecimals:j.decimals,relayerFee:l,receiveAmount:F.destinationToken.amount,receiveNativeAmount:R,eta:F.eta||0};sI({txDetails:M,txHash:s,timestamp:d,receipt:r,route:C}),t(V5(d)),t(md(M)),t(Wd("")),u.setRoute(y),u.setReceipt(r),t(f7(s)),t(Md(C)),t(Mn("redeem")),a(void 0)}catch(y){const[r,s]=ku(y,z);s.type===Rd||(console.error("Wormhole Connect: error completing transfer",y),a(r),i(y),ge.triggerEvent({type:"transfer.error",error:s,details:z}))}finally{t(_3(!1))}},error:n,errorInternal:c}},E8=(e,t,n)=>{const[a,c]=ie.useState(!1),[i,u]=ie.useState({}),f=qt(h=>h.transferInput.balances),p=Sr();return ie.useEffect(()=>{if(c(!0),u({}),!e||!e.address||!t||!ge.chains[t]||n.length===0){c(!1);return}const h=ge.chains[t];if(!h){c(!1);return}if(_.chainToPlatform(h.sdkName)!==e.type){c(!1);return}let g=!0;return(async()=>{const w={},j=[],I=Date.now(),T=I-5*60*1e3;let S=!1;for(const L of n){const E=Fg(f,e.address,t,L);E&&E.lastUpdated>T?w[L.key]=E:j.push(L)}if(j.length>0)try{const E=(await qr()).getPlatform(_.chainToPlatform(t)),D=E.getRpc(t),O=[];for(const R of j)w[R.key]={balance:_.fromBaseUnits(0n,R.decimals),lastUpdated:I},O.push(R.address);if(O.length===0)return;const F=await E.utils().getBalances(t,D,e.address,O.map(R=>R.toString()));for(const R in F){const Q=ge.tokens.get(t,R);if(Q){const B=F[R],k=_.fromBaseUnits(B??0n,Q.decimals);w[Q.key]={balance:k,lastUpdated:I}}}}catch(L){console.error("Failed to get token balances",L)}finally{S=!0}g&&(c(!1),u(w),S&&p(zw({address:e.address,chain:t,balances:w})))})(),()=>{g=!1}},[f,t,p,n,e]),{isFetching:a,balances:i}};function xI(e){return It("MuiLink",e)}const bI=Et("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),CI=({theme:e,ownerState:t})=>{const n=t.color,a=di(e,`palette.${n}.main`,!1)||di(e,`palette.${n}`,!1)||t.color,c=di(e,`palette.${n}.mainChannel`)||di(e,`palette.${n}Channel`);return"vars"in e&&c?`rgba(${c} / 0.4)`:Kt(a,.4)},hp={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wI=e=>{const{classes:t,component:n,focusVisible:a,underline:c}=e,i={root:["root",`underline${tt(c)}`,n==="button"&&"button",a&&"focusVisible"]};return St(i,xI,t)},NI=$e(Ke,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${tt(n.underline)}`],n.component==="button"&&t.button]}})(At(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Kt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Kt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Kt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bI.focusVisible}`]:{outline:"auto"}}}]}))),Yo=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiLink"}),c=Dn(),{className:i,color:u="primary",component:f="a",onBlur:p,onFocus:h,TypographyClasses:g,underline:C="always",variant:w="inherit",sx:j,...I}=a,[T,S]=ae.useState(!1),L=F=>{wo(F.target)||S(!1),p&&p(F)},E=F=>{wo(F.target)&&S(!0),h&&h(F)},D={...a,color:u,component:f,focusVisible:T,underline:C,variant:w},O=wI(D);return A.jsx(NI,{color:u,className:vt(O.root,i),classes:g,component:f,onBlur:L,onFocus:E,ref:n,ownerState:D,variant:w,...I,sx:[...hp[u]===void 0?[{color:u}]:[],...Array.isArray(j)?j:[j]],style:{...I.style,...C==="always"&&u!=="inherit"&&!hp[u]&&{"--Link-underlineColor":CI({theme:c,ownerState:D})}}})});_.dist.process.env.NODE_ENV!=="production"&&(Yo.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),v.string]),component:yi,onBlur:v.func,onFocus:v.func,style:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),TypographyClasses:v.object,underline:v.oneOf(["always","hover","none"]),variant:v.oneOfType([v.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),v.string])});const Yt=Cr.createStack({createStyledComponent:$e("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Dt({props:e,name:"MuiStack"})});_.dist.process.env.NODE_ENV!=="production"&&(Yt.propTypes={children:v.node,component:v.elementType,direction:v.oneOfType([v.oneOf(["column-reverse","column","row-reverse","row"]),v.arrayOf(v.oneOf(["column-reverse","column","row-reverse","row"])),v.object]),divider:v.node,spacing:v.oneOfType([v.arrayOf(v.oneOfType([v.number,v.string])),v.number,v.object,v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),useFlexGap:v.bool});const f1=Ht()(e=>({container:{display:"flex",justifyContent:"center",alignContent:"center",alignItems:"center",flexDirection:"row",maxWidth:"100%",flexWrap:"wrap",gap:"20px 4px"},partnerLogo:{maxHeight:e.spacing(3)},separator:{display:"flex",paddingLeft:e.spacing(1),paddingRight:e.spacing(1)}}));function jI(e){const{classes:t}=f1();return A.jsx(vn,{className:t.separator,children:A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 27 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{fill:e.color,d:"M24.536 37.864C22.376 37.72 20.6 37.288 18.728 35.416C17.432 36.328 15.416 37.432 12.008 37.432H11.624C5.096 37.432 0.632 33.832 0.632 27.64V26.824C0.632 22.024 3.608 19.528 6.68 17.464C4.808 14.392 3.176 11.848 3.176 8.632V8.056C3.176 3.832 5.72 0.951998 11.336 0.951998H12.104C18.008 0.951998 20.024 4.072 20.024 8.056V8.248C20.024 12.136 17.864 14.92 13.64 17.992L19.016 26.728C19.448 23.992 19.688 20.872 19.688 16.6H25.448C25.4 21.784 24.536 26.872 22.616 31.24C24.2 32.392 25.592 32.392 26.888 32.536L24.536 37.864ZM9.224 8.392C9.224 10.168 9.848 11.8 11.432 14.44C13.496 11.992 14.072 10.696 14.072 8.632V8.44C14.072 6.184 13.208 5.464 11.672 5.464C10.088 5.464 9.224 6.232 9.224 8.296V8.392ZM12.632 32.536C14.024 32.536 15.032 32.248 15.848 31.72L9.032 21.16C7.928 22.456 6.824 23.896 6.824 26.344V26.584C6.824 30.04 9.032 32.536 12.632 32.536Z"})})})}function pp(e){return A.jsxs(Yt,{alignItems:"center",direction:"row",justifyContent:"space-between",gap:"4px",children:[A.jsx(Ke,{fontSize:"12px",sx:{opacity:.6},children:"Powered by"}),A.jsx(Yo,{href:"https://wormhole.com/products/connect",paddingBottom:"2px",target:"_blank",children:A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"78",height:"8",viewBox:"0 0 78 8",fill:"none",children:[A.jsxs("g",{clipPath:"url(#icons_poweredBy_clipPath_0)",children:[A.jsx("path",{d:"M58.9654 0.5H55.3552C53.9676 0.5 52.8438 1.59108 52.8438 2.93817V5.06183C52.8438 6.40892 53.9676 7.5 55.3552 7.5H59.0508V7.49634C60.3982 7.45246 61.4769 6.38088 61.4769 5.06183V2.93817C61.4769 1.59108 60.353 0.5 58.9654 0.5ZM58.5762 6.33699H55.7445V1.66301H58.5762V6.33699Z",fill:e.color}),A.jsx("path",{d:"M18.8612 0.5H15.251C13.8634 0.5 12.7395 1.59108 12.7395 2.93817V5.06183C12.7395 6.40892 13.8634 7.5 15.251 7.5H18.9466V7.49634C20.294 7.45246 21.3726 6.38088 21.3726 5.06183V2.93817C21.3726 1.59108 20.2488 0.5 18.8612 0.5ZM18.4719 6.33699H15.6402V1.66301H18.4719V6.33699Z",fill:e.color}),A.jsx("path",{d:"M39.0683 1.71909L36.9713 5.24469V0.5H35.5184C34.6206 0.5 33.7918 0.964472 33.3435 1.71909L30.3046 6.82828L28.9673 4.58029C29.9279 4.56931 30.7039 3.80982 30.7039 2.87478V2.20672C30.7039 1.26437 29.9166 0.5 28.9459 0.5H22.0708V7.5H24.9715V4.5815H25.6195L27.3549 7.5H31.2452L34.0705 2.748V7.5H36.9713V7.49756L39.7841 2.7675V7.5H42.6848V0.5H41.242C40.3442 0.5 39.5154 0.964472 39.0671 1.71909H39.0683ZM27.8032 3.4185H24.9715V1.66301H27.8032V3.4185Z",fill:e.color}),A.jsx("path",{d:"M49.2273 3.4185H46.3956V0.5H43.4949V7.5H46.3956V4.5815H49.2273V7.5H52.128V0.5H49.2273V3.4185Z",fill:e.color}),A.jsx("path",{d:"M65.0934 0.5H62.1926V5.06183C62.1926 6.40892 63.3165 7.5 64.7041 7.5H68.8379V6.33699H65.0934V0.5Z",fill:e.color}),A.jsx("path",{d:"M77.5001 1.66301V0.5H72.4847H69.584V1.66301V3.4185V4.5815V6.33699V7.5H72.4847H77.5001V6.33699H72.4847V4.5815H76.4541V3.4185H72.4847V1.66301H77.5001Z",fill:e.color}),A.jsx("path",{d:"M11.9409 0.5L9.11555 5.252V0.5H6.21482V0.502438L3.40199 5.2325V0.5H0.5V7.5H1.94283C2.84068 7.5 3.66946 7.03553 4.11775 6.28091L6.21482 2.75531V7.5H7.6677C8.56554 7.5 9.39432 7.03553 9.84262 6.28091L13.2808 0.5H11.9409Z",fill:e.color})]}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_poweredBy_clipPath_0",children:A.jsx("rect",{width:"77",height:"7",fill:e.color,transform:"translate(0.5 0.5)"})})})]})})]})}function TI(e){const{classes:t}=f1();return A.jsx("img",{src:e.src,alt:"partner",className:t.partnerLogo})}function u1(e){const{classes:t}=f1();return ge.ui.partnerLogo?A.jsxs(vn,{className:t.container,children:[A.jsx(pp,{color:e.color}),A.jsx(jI,{color:e.color}),A.jsx(TI,{src:ge.ui.partnerLogo})]}):A.jsx(pp,{color:e.color})}function AI(e){const t=Br(e);return t.body===e?Zr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ma(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gp(e){return parseInt(Zr(e).getComputedStyle(e).paddingRight,10)||0}function II(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||a}function mp(e,t,n,a,c){const i=[t,n,...a];[].forEach.call(e.children,u=>{const f=!i.includes(u),p=!II(u);f&&p&&ma(u,c)})}function qf(e,t){let n=-1;return e.some((a,c)=>t(a)?(n=c,!0):!1),n}function EI(e,t){const n=[],a=e.container;if(!t.disableScrollLock){if(AI(a)){const u=c5(Zr(a));n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${gp(a)+u}px`;const f=Br(a).querySelectorAll(".mui-fixed");[].forEach.call(f,p=>{n.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${gp(p)+u}px`})}let i;if(a.parentNode instanceof DocumentFragment)i=Br(a).body;else{const u=a.parentElement,f=Zr(a);i=(u==null?void 0:u.nodeName)==="HTML"&&f.getComputedStyle(u).overflowY==="scroll"?u:a}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:u,property:f})=>{i?u.style.setProperty(f,i):u.style.removeProperty(f)})}}function LI(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class SI{constructor(){this.modals=[],this.containers=[]}add(t,n){let a=this.modals.indexOf(t);if(a!==-1)return a;a=this.modals.length,this.modals.push(t),t.modalRef&&ma(t.modalRef,!1);const c=LI(n);mp(n,t.mount,t.modalRef,c,!0);const i=qf(this.containers,u=>u.container===n);return i!==-1?(this.containers[i].modals.push(t),a):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:c}),a)}mount(t,n){const a=qf(this.containers,i=>i.modals.includes(t)),c=this.containers[a];c.restore||(c.restore=EI(c,n))}remove(t,n=!0){const a=this.modals.indexOf(t);if(a===-1)return a;const c=qf(this.containers,u=>u.modals.includes(t)),i=this.containers[c];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(a,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&ma(t.modalRef,n),mp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(c,1);else{const u=i.modals[i.modals.length-1];u.modalRef&&ma(u.modalRef,!1)}return a}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const DI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function OI(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function zI(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function kI(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||zI(e))}function _I(e){const t=[],n=[];return Array.from(e.querySelectorAll(DI)).forEach((a,c)=>{const i=OI(a);i===-1||!kI(a)||(i===0?t.push(a):n.push({documentOrder:c,tabIndex:i,node:a}))}),n.sort((a,c)=>a.tabIndex===c.tabIndex?a.documentOrder-c.documentOrder:a.tabIndex-c.tabIndex).map(a=>a.node).concat(t)}function BI(){return!0}function y0(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:a=!1,disableRestoreFocus:c=!1,getTabbable:i=_I,isEnabled:u=BI,open:f}=e,p=ae.useRef(!1),h=ae.useRef(null),g=ae.useRef(null),C=ae.useRef(null),w=ae.useRef(null),j=ae.useRef(!1),I=ae.useRef(null),T=br(io(t),I),S=ae.useRef(null);ae.useEffect(()=>{!f||!I.current||(j.current=!n)},[n,f]),ae.useEffect(()=>{if(!f||!I.current)return;const D=Br(I.current);return I.current.contains(D.activeElement)||(I.current.hasAttribute("tabIndex")||(_.dist.process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
212
- `)),I.current.setAttribute("tabIndex","-1")),j.current&&I.current.focus()),()=>{c||(C.current&&C.current.focus&&(p.current=!0,C.current.focus()),C.current=null)}},[f]),ae.useEffect(()=>{if(!f||!I.current)return;const D=Br(I.current),O=Q=>{S.current=Q,!(a||!u()||Q.key!=="Tab")&&D.activeElement===I.current&&Q.shiftKey&&(p.current=!0,g.current&&g.current.focus())},F=()=>{var k,z;const Q=I.current;if(Q===null)return;if(!D.hasFocus()||!u()||p.current){p.current=!1;return}if(Q.contains(D.activeElement)||a&&D.activeElement!==h.current&&D.activeElement!==g.current)return;if(D.activeElement!==w.current)w.current=null;else if(w.current!==null)return;if(!j.current)return;let B=[];if((D.activeElement===h.current||D.activeElement===g.current)&&(B=i(I.current)),B.length>0){const y=!!((k=S.current)!=null&&k.shiftKey&&((z=S.current)==null?void 0:z.key)==="Tab"),r=B[0],s=B[B.length-1];typeof r!="string"&&typeof s!="string"&&(y?s.focus():r.focus())}else Q.focus()};D.addEventListener("focusin",F),D.addEventListener("keydown",O,!0);const R=setInterval(()=>{D.activeElement&&D.activeElement.tagName==="BODY"&&F()},50);return()=>{clearInterval(R),D.removeEventListener("focusin",F),D.removeEventListener("keydown",O,!0)}},[n,a,c,u,f,i]);const L=D=>{C.current===null&&(C.current=D.relatedTarget),j.current=!0,w.current=D.target;const O=t.props.onFocus;O&&O(D)},E=D=>{C.current===null&&(C.current=D.relatedTarget),j.current=!0};return A.jsxs(ae.Fragment,{children:[A.jsx("div",{tabIndex:f?0:-1,onFocus:E,ref:h,"data-testid":"sentinelStart"}),ae.cloneElement(t,{ref:T,onFocus:L}),A.jsx("div",{tabIndex:f?0:-1,onFocus:E,ref:g,"data-testid":"sentinelEnd"})]})}_.dist.process.env.NODE_ENV!=="production"&&(y0.propTypes={children:no,disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableRestoreFocus:v.bool,getTabbable:v.func,isEnabled:v.func,open:v.bool.isRequired});_.dist.process.env.NODE_ENV!=="production"&&(y0.propTypes=ld(y0.propTypes));const FI={entering:{opacity:1},entered:{opacity:1}},L8=ae.forwardRef(function(t,n){const a=Dn(),c={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:i,appear:u=!0,children:f,easing:p,in:h,onEnter:g,onEntered:C,onEntering:w,onExit:j,onExited:I,onExiting:T,style:S,timeout:L=c,TransitionComponent:E=In,...D}=t,O=ae.useRef(null),F=br(O,io(f),n),R=l=>d=>{if(l){const M=O.current;d===void 0?l(M):l(M,d)}},Q=R(w),B=R((l,d)=>{Jd(l);const M=ni({style:S,timeout:L,easing:p},{mode:"enter"});l.style.webkitTransition=a.transitions.create("opacity",M),l.style.transition=a.transitions.create("opacity",M),g&&g(l,d)}),k=R(C),z=R(T),y=R(l=>{const d=ni({style:S,timeout:L,easing:p},{mode:"exit"});l.style.webkitTransition=a.transitions.create("opacity",d),l.style.transition=a.transitions.create("opacity",d),j&&j(l)}),r=R(I),s=l=>{i&&i(O.current,l)};return A.jsx(E,{appear:u,in:h,nodeRef:O,onEnter:B,onEntered:k,onEntering:Q,onExit:y,onExited:r,onExiting:z,addEndListener:s,timeout:L,...D,children:(l,{ownerState:d,...M})=>ae.cloneElement(f,{style:{opacity:0,visibility:l==="exited"&&!h?"hidden":void 0,...FI[l],...S,...f.props.style},ref:F,...M})})});_.dist.process.env.NODE_ENV!=="production"&&(L8.propTypes={addEndListener:v.func,appear:v.bool,children:no.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function RI(e){return It("MuiBackdrop",e)}Et("MuiBackdrop",["root","invisible"]);const PI=e=>{const{classes:t,invisible:n}=e;return St({root:["root",n&&"invisible"]},RI,t)},UI=$e("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),d1=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiBackdrop"}),{children:c,className:i,component:u="div",invisible:f=!1,open:p,components:h={},componentsProps:g={},slotProps:C={},slots:w={},TransitionComponent:j,transitionDuration:I,...T}=a,S={...a,component:u,invisible:f},L=PI(S),E={transition:j,root:h.Root,...w},D={...g,...C},O={slots:E,slotProps:D},[F,R]=Zt("root",{elementType:UI,externalForwardedProps:O,className:vt(L.root,i),ownerState:S}),[Q,B]=Zt("transition",{elementType:L8,externalForwardedProps:O,ownerState:S});return A.jsx(Q,{in:p,timeout:I,...T,...B,children:A.jsx(F,{"aria-hidden":!0,...R,classes:L,ref:n,children:c})})});_.dist.process.env.NODE_ENV!=="production"&&(d1.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.object}),invisible:v.bool,open:v.bool.isRequired,slotProps:v.shape({root:v.oneOfType([v.func,v.object]),transition:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function YI(e){return typeof e=="function"?e():e}function WI(e){return e?e.props.hasOwnProperty("in"):!1}const Mp=()=>{},Ss=new SI;function HI(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:a=!1,closeAfterTransition:c=!1,onTransitionEnter:i,onTransitionExited:u,children:f,onClose:p,open:h,rootRef:g}=e,C=ae.useRef({}),w=ae.useRef(null),j=ae.useRef(null),I=br(j,g),[T,S]=ae.useState(!h),L=WI(f);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const D=()=>Br(w.current),O=()=>(C.current.modalRef=j.current,C.current.mount=w.current,C.current),F=()=>{Ss.mount(O(),{disableScrollLock:a}),j.current&&(j.current.scrollTop=0)},R=mn(()=>{const d=YI(t)||D().body;Ss.add(O(),d),j.current&&F()}),Q=()=>Ss.isTopModal(O()),B=mn(d=>{w.current=d,d&&(h&&Q()?F():j.current&&ma(j.current,E))}),k=ae.useCallback(()=>{Ss.remove(O(),E)},[E]);ae.useEffect(()=>()=>{k()},[k]),ae.useEffect(()=>{h?R():(!L||!c)&&k()},[h,k,L,c,R]);const z=d=>M=>{var b;(b=d.onKeyDown)==null||b.call(d,M),!(M.key!=="Escape"||M.which===229||!Q())&&(n||(M.stopPropagation(),p&&p(M,"escapeKeyDown")))},y=d=>M=>{var b;(b=d.onClick)==null||b.call(d,M),M.target===M.currentTarget&&p&&p(M,"backdropClick")};return{getRootProps:(d={})=>{const M=g5(e);delete M.onTransitionEnter,delete M.onTransitionExited;const b={...M,...d};return{role:"presentation",...b,onKeyDown:z(b),ref:I}},getBackdropProps:(d={})=>{const M=d;return{"aria-hidden":!0,...M,onClick:y(M),open:h}},getTransitionProps:()=>{const d=()=>{S(!1),i&&i()},M=()=>{S(!0),u&&u(),c&&k()};return{onEnter:Y1(d,(f==null?void 0:f.props.onEnter)??Mp),onExited:Y1(M,(f==null?void 0:f.props.onExited)??Mp)}},rootRef:I,portalRef:B,isTopModal:Q,exited:T,hasTransition:L}}function ZI(e){return It("MuiModal",e)}Et("MuiModal",["root","hidden","backdrop"]);const QI=e=>{const{open:t,exited:n,classes:a}=e;return St({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ZI,a)},VI=$e("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(At(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),GI=$e(d1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),h1=ae.forwardRef(function(t,n){const a=Dt({name:"MuiModal",props:t}),{BackdropComponent:c=GI,BackdropProps:i,classes:u,className:f,closeAfterTransition:p=!1,children:h,container:g,component:C,components:w={},componentsProps:j={},disableAutoFocus:I=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:S=!1,disablePortal:L=!1,disableRestoreFocus:E=!1,disableScrollLock:D=!1,hideBackdrop:O=!1,keepMounted:F=!1,onBackdropClick:R,onClose:Q,onTransitionEnter:B,onTransitionExited:k,open:z,slotProps:y={},slots:r={},theme:s,...l}=a,d={...a,closeAfterTransition:p,disableAutoFocus:I,disableEnforceFocus:T,disableEscapeKeyDown:S,disablePortal:L,disableRestoreFocus:E,disableScrollLock:D,hideBackdrop:O,keepMounted:F},{getRootProps:M,getBackdropProps:b,getTransitionProps:N,portalRef:m,isTopModal:o,exited:x,hasTransition:W}=HI({...d,rootRef:n}),Z={...d,exited:x},G=QI(Z),ee={};if(h.props.tabIndex===void 0&&(ee.tabIndex="-1"),W){const{onEnter:te,onExited:Y}=N();ee.onEnter=te,ee.onExited=Y}const V={slots:{root:w.Root,backdrop:w.Backdrop,...r},slotProps:{...j,...y}},[P,H]=Zt("root",{ref:n,elementType:VI,externalForwardedProps:{...V,...l,component:C},getSlotProps:M,ownerState:Z,className:vt(f,G==null?void 0:G.root,!Z.open&&Z.exited&&(G==null?void 0:G.hidden))}),[$,X]=Zt("backdrop",{ref:i==null?void 0:i.ref,elementType:c,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:te=>b({...te,onClick:Y=>{R&&R(Y),te!=null&&te.onClick&&te.onClick(Y)}}),className:vt(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:Z});return!F&&!z&&(!W||x)?null:A.jsx(Ea,{ref:m,container:g,disablePortal:L,children:A.jsxs(P,{...H,children:[!O&&c?A.jsx($,{...X}):null,A.jsx(y0,{disableEnforceFocus:T,disableAutoFocus:I,disableRestoreFocus:E,isEnabled:o,open:z,children:ae.cloneElement(h,ee)})]})})});_.dist.process.env.NODE_ENV!=="production"&&(h1.propTypes={BackdropComponent:v.elementType,BackdropProps:v.object,children:no.isRequired,classes:v.object,className:v.string,closeAfterTransition:v.bool,component:v.elementType,components:v.shape({Backdrop:v.elementType,Root:v.elementType}),componentsProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Hn,v.func]),disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableEscapeKeyDown:v.bool,disablePortal:v.bool,disableRestoreFocus:v.bool,disableScrollLock:v.bool,hideBackdrop:v.bool,keepMounted:v.bool,onBackdropClick:v.func,onClose:v.func,onTransitionEnter:v.func,onTransitionExited:v.func,open:v.bool.isRequired,slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function $I(e,t,n){const a=t.getBoundingClientRect(),c=n&&n.getBoundingClientRect(),i=Zr(t);let u;if(t.fakeTransform)u=t.fakeTransform;else{const h=i.getComputedStyle(t);u=h.getPropertyValue("-webkit-transform")||h.getPropertyValue("transform")}let f=0,p=0;if(u&&u!=="none"&&typeof u=="string"){const h=u.split("(")[1].split(")")[0].split(",");f=parseInt(h[4],10),p=parseInt(h[5],10)}return e==="left"?c?`translateX(${c.right+f-a.left}px)`:`translateX(${i.innerWidth+f-a.left}px)`:e==="right"?c?`translateX(-${a.right-c.left-f}px)`:`translateX(-${a.left+a.width-f}px)`:e==="up"?c?`translateY(${c.bottom+p-a.top}px)`:`translateY(${i.innerHeight+p-a.top}px)`:c?`translateY(-${a.top-c.top+a.height-p}px)`:`translateY(-${a.top+a.height-p}px)`}function S8(e){return typeof e=="function"?e():e}function Ds(e,t,n){const a=S8(n),c=$I(e,t,a);c&&(t.style.webkitTransform=c,t.style.transform=c)}const D8=ae.forwardRef(function(t,n){const a=Dn(),c={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:u,appear:f=!0,children:p,container:h,direction:g="down",easing:C=c,in:w,onEnter:j,onEntered:I,onEntering:T,onExit:S,onExited:L,onExiting:E,style:D,timeout:O=i,TransitionComponent:F=In,...R}=t,Q=ae.useRef(null),B=br(io(p),Q,n),k=N=>m=>{N&&(m===void 0?N(Q.current):N(Q.current,m))},z=k((N,m)=>{Ds(g,N,h),Jd(N),j&&j(N,m)}),y=k((N,m)=>{const o=ni({timeout:O,style:D,easing:C},{mode:"enter"});N.style.webkitTransition=a.transitions.create("-webkit-transform",{...o}),N.style.transition=a.transitions.create("transform",{...o}),N.style.webkitTransform="none",N.style.transform="none",T&&T(N,m)}),r=k(I),s=k(E),l=k(N=>{const m=ni({timeout:O,style:D,easing:C},{mode:"exit"});N.style.webkitTransition=a.transitions.create("-webkit-transform",m),N.style.transition=a.transitions.create("transform",m),Ds(g,N,h),S&&S(N)}),d=k(N=>{N.style.webkitTransition="",N.style.transition="",L&&L(N)}),M=N=>{u&&u(Q.current,N)},b=ae.useCallback(()=>{Q.current&&Ds(g,Q.current,h)},[g,h]);return ae.useEffect(()=>{if(w||g==="down"||g==="right")return;const N=fd(()=>{Q.current&&Ds(g,Q.current,h)}),m=Zr(Q.current);return m.addEventListener("resize",N),()=>{N.clear(),m.removeEventListener("resize",N)}},[g,w,h]),ae.useEffect(()=>{w||b()},[w,b]),A.jsx(F,{nodeRef:Q,onEnter:z,onEntered:r,onEntering:y,onExit:l,onExited:d,onExiting:s,addEndListener:M,appear:f,in:w,timeout:O,...R,children:(N,{ownerState:m,...o})=>ae.cloneElement(p,{ref:B,style:{visibility:N==="exited"&&!w?"hidden":void 0,...D,...p.props.style},...o})})});_.dist.process.env.NODE_ENV!=="production"&&(D8.propTypes={addEndListener:v.func,appear:v.bool,children:no.isRequired,container:Sn(v.oneOfType([Hn,v.func]),e=>{if(e.open){const t=S8(e.container);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(_.dist.process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
213
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
214
- `))}return null}),direction:v.oneOf(["down","left","right","up"]),easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function qI(e){return It("MuiPaper",e)}Et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const JI=e=>{const{square:t,elevation:n,variant:a,classes:c}=e,i={root:["root",a,!t&&"rounded",a==="elevation"&&`elevation${n}`]};return St(i,qI,c)},XI=$e("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(At(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ec=ae.forwardRef(function(t,n){var j;const a=Dt({props:t,name:"MuiPaper"}),c=Dn(),{className:i,component:u="div",elevation:f=1,square:p=!1,variant:h="elevation",...g}=a,C={...a,component:u,elevation:f,square:p,variant:h},w=JI(C);return _.dist.process.env.NODE_ENV!=="production"&&c.shadows[f]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${f}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${f}]\` is defined.`].join(`
215
- `)),A.jsx(XI,{as:u,ownerState:C,className:vt(w.root,i),ref:n,...g,style:{...h==="elevation"&&{"--Paper-shadow":(c.vars||c).shadows[f],...c.vars&&{"--Paper-overlay":(j=c.vars.overlays)==null?void 0:j[f]},...!c.vars&&c.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Kt("#fff",du(f))}, ${Kt("#fff",du(f))})`}},...g.style}})});_.dist.process.env.NODE_ENV!=="production"&&(ec.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,elevation:Sn(ud,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:v.bool,style:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["elevation","outlined"]),v.string])});function KI(e){return It("MuiDrawer",e)}Et("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const O8=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},eE=e=>{const{classes:t,anchor:n,variant:a}=e,c={root:["root",`anchor${tt(n)}`],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${tt(n)}`,a!=="temporary"&&`paperAnchorDocked${tt(n)}`]};return St(c,KI,t)},tE=$e(h1,{name:"MuiDrawer",slot:"Root",overridesResolver:O8})(At(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),rE=$e("div",{shouldForwardProp:Qr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:O8})({flex:"0 0 auto"}),nE=$e(ec,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${tt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${tt(n.anchor)}`]]}})(At(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),z8={left:"right",right:"left",top:"down",bottom:"up"};function Ri(e){return["left","right"].includes(e)}function oa({direction:e},t){return e==="rtl"&&Ri(t)?z8[t]:t}const p1=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiDrawer"}),c=Dn(),i=Ya(),u={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:p,children:h,className:g,elevation:C=16,hideBackdrop:w=!1,ModalProps:{BackdropProps:j,...I}={},onClose:T,open:S=!1,PaperProps:L={},SlideProps:E,TransitionComponent:D,transitionDuration:O=u,variant:F="temporary",slots:R={},slotProps:Q={},...B}=a,k=ae.useRef(!1);ae.useEffect(()=>{k.current=!0},[]);const z=oa({direction:i?"rtl":"ltr"},f),r={...a,anchor:f,elevation:C,open:S,variant:F,...B},s=eE(r),l={slots:{transition:D,...R},slotProps:{paper:L,transition:E,...Q,backdrop:d0(Q.backdrop||{...p,...j},{transitionDuration:O})}},[d,M]=Zt("root",{ref:n,elementType:tE,className:vt(s.root,s.modal,g),shouldForwardComponentProp:!0,ownerState:r,externalForwardedProps:{...l,...B,...I},additionalProps:{open:S,onClose:T,hideBackdrop:w,slots:{backdrop:l.slots.backdrop},slotProps:{backdrop:l.slotProps.backdrop}}}),[b,N]=Zt("paper",{elementType:nE,shouldForwardComponentProp:!0,className:vt(s.paper,L.className),ownerState:r,externalForwardedProps:l,additionalProps:{elevation:F==="temporary"?C:0,square:!0}}),[m,o]=Zt("docked",{elementType:rE,ref:n,className:vt(s.root,s.docked,g),ownerState:r,externalForwardedProps:l,additionalProps:B}),[x,W]=Zt("transition",{elementType:D8,ownerState:r,externalForwardedProps:l,additionalProps:{in:S,direction:z8[z],timeout:O,appear:k.current}}),Z=A.jsx(b,{...N,children:h});if(F==="permanent")return A.jsx(m,{...o,children:Z});const G=A.jsx(x,{...W,children:Z});return F==="persistent"?A.jsx(m,{...o,children:G}):A.jsx(d,{...M,children:G})});_.dist.process.env.NODE_ENV!=="production"&&(p1.propTypes={anchor:v.oneOf(["bottom","left","right","top"]),BackdropProps:v.object,children:v.node,classes:v.object,className:v.string,elevation:ud,hideBackdrop:v.bool,ModalProps:v.object,onClose:v.func,open:v.bool,PaperProps:v.object,SlideProps:v.object,slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),docked:v.oneOfType([v.func,v.object]),paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object]),transition:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,docked:v.elementType,paper:v.elementType,root:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transitionDuration:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),variant:v.oneOf(["permanent","persistent","temporary"])});const Ka=ae.createContext(void 0);_.dist.process.env.NODE_ENV!=="production"&&(Ka.displayName="FormControlContext");function ji(){return ae.useContext(Ka)}function iE(e){return It("MuiInputAdornment",e)}const yp=Et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var vp;const oE=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},aE=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:c,size:i,variant:u}=e,f={root:["root",n&&"disablePointerEvents",c&&`position${tt(c)}`,u,a&&"hiddenLabel",i&&`size${tt(i)}`]};return St(f,iE,t)},sE=$e("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:oE})(At(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${yp.positionStart}&:not(.${yp.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),La=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiInputAdornment"}),{children:c,className:i,component:u="div",disablePointerEvents:f=!1,disableTypography:p=!1,position:h,variant:g,...C}=a,w=ji()||{};let j=g;g&&w.variant&&_.dist.process.env.NODE_ENV!=="production"&&g===w.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),w&&!j&&(j=w.variant);const I={...a,hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:f,position:h,variant:j},T=aE(I);return A.jsx(Ka.Provider,{value:null,children:A.jsx(sE,{as:u,ownerState:I,className:vt(T.root,i),ref:n,...C,children:typeof c=="string"&&!p?A.jsx(Ke,{color:"textSecondary",children:c}):A.jsxs(ae.Fragment,{children:[h==="start"?vp||(vp=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,c]})})})});_.dist.process.env.NODE_ENV!=="production"&&(La.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,disablePointerEvents:v.bool,disableTypography:v.bool,position:v.oneOf(["end","start"]).isRequired,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOf(["filled","outlined","standard"])});const Kn=ae.createContext({});_.dist.process.env.NODE_ENV!=="production"&&(Kn.displayName="ListContext");function cE(e){return It("MuiList",e)}Et("MuiList",["root","padding","dense","subheader"]);const lE=e=>{const{classes:t,disablePadding:n,dense:a,subheader:c}=e;return St({root:["root",!n&&"padding",a&&"dense",c&&"subheader"]},cE,t)},fE=$e("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Wo=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiList"}),{children:c,className:i,component:u="ul",dense:f=!1,disablePadding:p=!1,subheader:h,...g}=a,C=ae.useMemo(()=>({dense:f}),[f]),w={...a,component:u,dense:f,disablePadding:p},j=lE(w);return A.jsx(Kn.Provider,{value:C,children:A.jsxs(fE,{as:u,className:vt(j.root,i),ref:n,ownerState:w,...g,children:[h,c]})})});_.dist.process.env.NODE_ENV!=="production"&&(Wo.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disablePadding:v.bool,subheader:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Sa(e){return typeof e=="string"}function uE(e){return It("MuiListItem",e)}Et("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function dE(e){return It("MuiListItemButton",e)}const Mo=Et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),hE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pE=e=>{const{alignItems:t,classes:n,dense:a,disabled:c,disableGutters:i,divider:u,selected:f}=e,h=St({root:["root",a&&"dense",!i&&"gutters",u&&"divider",c&&"disabled",t==="flex-start"&&"alignItemsFlexStart",f&&"selected"]},dE,n);return{...n,...h}},gE=$e(so,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:hE})(At(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Yn=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:i=!1,component:u="div",children:f,dense:p=!1,disableGutters:h=!1,divider:g=!1,focusVisibleClassName:C,selected:w=!1,className:j,...I}=a,T=ae.useContext(Kn),S=ae.useMemo(()=>({dense:p||T.dense||!1,alignItems:c,disableGutters:h}),[c,T.dense,p,h]),L=ae.useRef(null);bn(()=>{i&&(L.current?L.current.focus():_.dist.process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const E={...a,alignItems:c,dense:S.dense,disableGutters:h,divider:g,selected:w},D=pE(E),O=br(L,n);return A.jsx(Kn.Provider,{value:S,children:A.jsx(gE,{ref:O,href:I.href||I.to,component:(I.href||I.to)&&u==="div"?"button":u,focusVisibleClassName:vt(D.focusVisible,C),ownerState:E,className:vt(D.root,j),...I,classes:D,children:f})})});_.dist.process.env.NODE_ENV!=="production"&&(Yn.propTypes={alignItems:v.oneOf(["center","flex-start"]),autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disabled:v.bool,disableGutters:v.bool,divider:v.bool,focusVisibleClassName:v.string,href:v.string,selected:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function mE(e){return It("MuiListItemSecondaryAction",e)}Et("MuiListItemSecondaryAction",["root","disableGutters"]);const ME=e=>{const{disableGutters:t,classes:n}=e;return St({root:["root",t&&"disableGutters"]},mE,n)},yE=$e("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),g1=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiListItemSecondaryAction"}),{className:c,...i}=a,u=ae.useContext(Kn),f={...a,disableGutters:u.disableGutters},p=ME(f);return A.jsx(yE,{className:vt(p.root,c),ownerState:f,ref:n,...i})});_.dist.process.env.NODE_ENV!=="production"&&(g1.propTypes={children:v.node,classes:v.object,className:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});g1.muiName="ListItemSecondaryAction";const vE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},xE=e=>{const{alignItems:t,classes:n,dense:a,disableGutters:c,disablePadding:i,divider:u,hasSecondaryAction:f}=e;return St({root:["root",a&&"dense",!c&&"gutters",!i&&"padding",u&&"divider",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction"],container:["container"]},uE,n)},bE=$e("div",{name:"MuiListItem",slot:"Root",overridesResolver:vE})(At(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Mo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),CE=$e("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),aa=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiListItem"}),{alignItems:c="center",children:i,className:u,component:f,components:p={},componentsProps:h={},ContainerComponent:g="li",ContainerProps:{className:C,...w}={},dense:j=!1,disableGutters:I=!1,disablePadding:T=!1,divider:S=!1,secondaryAction:L,slotProps:E={},slots:D={},...O}=a,F=ae.useContext(Kn),R=ae.useMemo(()=>({dense:j||F.dense||!1,alignItems:c,disableGutters:I}),[c,F.dense,j,I]),Q=ae.useRef(null),B=ae.Children.toArray(i),k=B.length&&la(B[B.length-1],["ListItemSecondaryAction"]),z={...a,alignItems:c,dense:R.dense,disableGutters:I,disablePadding:T,divider:S,hasSecondaryAction:k},y=xE(z),r=br(Q,n),s=D.root||p.Root||bE,l=E.root||h.root||{},d={className:vt(y.root,l.className,u),...O};let M=f||"li";return k?(M=!d.component&&!f?"div":M,g==="li"&&(M==="li"?M="div":d.component==="li"&&(d.component="div")),A.jsx(Kn.Provider,{value:R,children:A.jsxs(CE,{as:g,className:vt(y.container,C),ref:r,ownerState:z,...w,children:[A.jsx(s,{...l,...!Sa(s)&&{as:M,ownerState:{...z,...l.ownerState}},...d,children:B}),B.pop()]})})):A.jsx(Kn.Provider,{value:R,children:A.jsxs(s,{...l,as:M,ref:r,...!Sa(s)&&{ownerState:{...z,...l.ownerState}},...d,children:[B,L&&A.jsx(g1,{children:L})]})})});_.dist.process.env.NODE_ENV!=="production"&&(aa.propTypes={alignItems:v.oneOf(["center","flex-start"]),children:Sn(v.node,e=>{const t=ae.Children.toArray(e.children);let n=-1;for(let a=t.length-1;a>=0;a-=1){const c=t[a];if(la(c,["ListItemSecondaryAction"])){n=a;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:v.object,className:v.string,component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.object}),ContainerComponent:yi,ContainerProps:v.object,dense:v.bool,disableGutters:v.bool,disablePadding:v.bool,divider:v.bool,secondaryAction:v.node,slotProps:v.shape({root:v.object}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function wE(e){return It("MuiListItemIcon",e)}Et("MuiListItemIcon",["root","alignItemsFlexStart"]);const NE=e=>{const{alignItems:t,classes:n}=e;return St({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},wE,n)},jE=$e("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(At(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),tc=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiListItemIcon"}),{className:c,...i}=a,u=ae.useContext(Kn),f={...a,alignItems:u.alignItems},p=NE(f);return A.jsx(jE,{className:vt(p.root,c),ownerState:f,ref:n,...i})});_.dist.process.env.NODE_ENV!=="production"&&(tc.propTypes={children:v.node,classes:v.object,className:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Os(e){return parseInt(e,10)||0}const TE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function AE(e){for(const t in e)return!1;return!0}function xp(e){return AE(e)||e.outerHeightStyle===0&&!e.overflowing}const k8=ae.forwardRef(function(t,n){const{onChange:a,maxRows:c,minRows:i=1,style:u,value:f,...p}=t,{current:h}=ae.useRef(f!=null),g=ae.useRef(null),C=br(n,g),w=ae.useRef(null),j=ae.useRef(null),I=ae.useCallback(()=>{const D=g.current,O=j.current;if(!D||!O)return;const R=Zr(D).getComputedStyle(D);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};O.style.width=R.width,O.value=D.value||t.placeholder||"x",O.value.slice(-1)===`
216
- `&&(O.value+=" ");const Q=R.boxSizing,B=Os(R.paddingBottom)+Os(R.paddingTop),k=Os(R.borderBottomWidth)+Os(R.borderTopWidth),z=O.scrollHeight;O.value="x";const y=O.scrollHeight;let r=z;i&&(r=Math.max(Number(i)*y,r)),c&&(r=Math.min(Number(c)*y,r)),r=Math.max(r,y);const s=r+(Q==="border-box"?B+k:0),l=Math.abs(r-z)<=1;return{outerHeightStyle:s,overflowing:l}},[c,i,t.placeholder]),T=mn(()=>{const D=g.current,O=I();if(!D||!O||xp(O))return!1;const F=O.outerHeightStyle;return w.current!=null&&w.current!==F}),S=ae.useCallback(()=>{const D=g.current,O=I();if(!D||!O||xp(O))return;const F=O.outerHeightStyle;w.current!==F&&(w.current=F,D.style.height=`${F}px`),D.style.overflow=O.overflowing?"hidden":""},[I]),L=ae.useRef(-1);bn(()=>{const D=fd(S),O=g==null?void 0:g.current;if(!O)return;const F=Zr(O);F.addEventListener("resize",D);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{T()&&(R.unobserve(O),cancelAnimationFrame(L.current),S(),L.current=requestAnimationFrame(()=>{R.observe(O)}))}),R.observe(O)),()=>{D.clear(),cancelAnimationFrame(L.current),F.removeEventListener("resize",D),R&&R.disconnect()}},[I,S,T]),bn(()=>{S()});const E=D=>{h||S(),a&&a(D)};return A.jsxs(ae.Fragment,{children:[A.jsx("textarea",{value:f,onChange:E,ref:C,rows:i,style:u,...p}),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:j,tabIndex:-1,style:{...TE.shadow,...u,paddingTop:0,paddingBottom:0}})]})});_.dist.process.env.NODE_ENV!=="production"&&(k8.propTypes={className:v.string,maxRows:v.oneOfType([v.number,v.string]),minRows:v.oneOfType([v.number,v.string]),onChange:v.func,placeholder:v.string,style:v.object,value:v.oneOfType([v.arrayOf(v.string),v.number,v.string])});function Ho({props:e,states:t,muiFormControl:n}){return t.reduce((a,c)=>(a[c]=e[c],n&&typeof e[c]>"u"&&(a[c]=n[c]),a),{})}function bp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function v0(e,t=!1){return e&&(bp(e.value)&&e.value!==""||t&&bp(e.defaultValue)&&e.defaultValue!=="")}function IE(e){return e.startAdornment}function EE(e){return It("MuiInputBase",e)}const Oo=Et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Cp;const rc=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nc=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},LE=e=>{const{classes:t,color:n,disabled:a,error:c,endAdornment:i,focused:u,formControl:f,fullWidth:p,hiddenLabel:h,multiline:g,readOnly:C,size:w,startAdornment:j,type:I}=e,T={root:["root",`color${tt(n)}`,a&&"disabled",c&&"error",p&&"fullWidth",u&&"focused",f&&"formControl",w&&w!=="medium"&&`size${tt(w)}`,g&&"multiline",j&&"adornedStart",i&&"adornedEnd",h&&"hiddenLabel",C&&"readOnly"],input:["input",a&&"disabled",I==="search"&&"inputTypeSearch",g&&"inputMultiline",w==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",j&&"inputAdornedStart",i&&"inputAdornedEnd",C&&"readOnly"]};return St(T,EE,t)},ic=$e("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rc})(At(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),oc=$e("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nc})(At(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oo.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),wp=ay({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ac=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:i,autoFocus:u,className:f,color:p,components:h={},componentsProps:g={},defaultValue:C,disabled:w,disableInjectingGlobalStyles:j,endAdornment:I,error:T,fullWidth:S=!1,id:L,inputComponent:E="input",inputProps:D={},inputRef:O,margin:F,maxRows:R,minRows:Q,multiline:B=!1,name:k,onBlur:z,onChange:y,onClick:r,onFocus:s,onKeyDown:l,onKeyUp:d,placeholder:M,readOnly:b,renderSuffix:N,rows:m,size:o,slotProps:x={},slots:W={},startAdornment:Z,type:G="text",value:ee,...V}=a,P=D.value!=null?D.value:ee,{current:H}=ae.useRef(P!=null),$=ae.useRef(),X=ae.useCallback(ve=>{_.dist.process.env.NODE_ENV!=="production"&&ve&&ve.nodeName!=="INPUT"&&!ve.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
217
- `))},[]),te=br($,O,D.ref,X),[Y,ne]=ae.useState(!1),xe=ji();_.dist.process.env.NODE_ENV!=="production"&&ae.useEffect(()=>{if(xe)return xe.registerEffect()},[xe]);const le=Ho({props:a,muiFormControl:xe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});le.focused=xe?xe.focused:Y,ae.useEffect(()=>{!xe&&w&&Y&&(ne(!1),z&&z())},[xe,w,Y,z]);const ue=xe&&xe.onFilled,Ve=xe&&xe.onEmpty,he=ae.useCallback(ve=>{v0(ve)?ue&&ue():Ve&&Ve()},[ue,Ve]);bn(()=>{H&&he({value:P})},[P,he,H]);const be=ve=>{s&&s(ve),D.onFocus&&D.onFocus(ve),xe&&xe.onFocus?xe.onFocus(ve):ne(!0)},st=ve=>{z&&z(ve),D.onBlur&&D.onBlur(ve),xe&&xe.onBlur?xe.onBlur(ve):ne(!1)},Me=(ve,...jt)=>{if(!H){const Ee=ve.target||$.current;if(Ee==null)throw new Error(_.dist.process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Wn(1));he({value:Ee.value})}D.onChange&&D.onChange(ve,...jt),y&&y(ve,...jt)};ae.useEffect(()=>{he($.current)},[]);const oe=ve=>{$.current&&ve.currentTarget===ve.target&&$.current.focus(),r&&r(ve)};let We=E,de=D;B&&We==="input"&&(m?(_.dist.process.env.NODE_ENV!=="production"&&(Q||R)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),de={type:void 0,minRows:m,maxRows:m,...de}):de={type:void 0,maxRows:R,minRows:Q,...de},We=k8);const ye=ve=>{he(ve.animationName==="mui-auto-fill-cancel"?$.current:{value:"x"})};ae.useEffect(()=>{xe&&xe.setAdornedStart(!!Z)},[xe,Z]);const mt={...a,color:le.color||"primary",disabled:le.disabled,endAdornment:I,error:le.error,focused:le.focused,formControl:xe,fullWidth:S,hiddenLabel:le.hiddenLabel,multiline:B,size:le.size,startAdornment:Z,type:G},je=LE(mt),Ae=W.root||h.Root||ic,Tt=x.root||g.root||{},De=W.input||h.Input||oc;return de={...de,...x.input??g.input},A.jsxs(ae.Fragment,{children:[!j&&typeof wp=="function"&&(Cp||(Cp=A.jsx(wp,{}))),A.jsxs(Ae,{...Tt,ref:n,onClick:oe,...V,...!Sa(Ae)&&{ownerState:{...mt,...Tt.ownerState}},className:vt(je.root,Tt.className,f,b&&"MuiInputBase-readOnly"),children:[Z,A.jsx(Ka.Provider,{value:null,children:A.jsx(De,{"aria-invalid":le.error,"aria-describedby":c,autoComplete:i,autoFocus:u,defaultValue:C,disabled:le.disabled,id:L,onAnimationStart:ye,name:k,placeholder:M,readOnly:b,required:le.required,rows:m,value:P,onKeyDown:l,onKeyUp:d,type:G,...de,...!Sa(De)&&{as:We,ownerState:{...mt,...de.ownerState}},ref:te,className:vt(je.input,de.className,b&&"MuiInputBase-readOnly"),onBlur:st,onChange:Me,onFocus:be})}),I,N?N({...le,startAdornment:Z}):null]})]})});_.dist.process.env.NODE_ENV!=="production"&&(ac.propTypes={"aria-describedby":v.string,autoComplete:v.string,autoFocus:v.bool,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","error","info","success","warning"]),v.string]),components:v.shape({Input:v.elementType,Root:v.elementType}),componentsProps:v.shape({input:v.object,root:v.object}),defaultValue:v.any,disabled:v.bool,disableInjectingGlobalStyles:v.bool,endAdornment:v.node,error:v.bool,fullWidth:v.bool,id:v.string,inputComponent:yi,inputProps:v.object,inputRef:sn,margin:v.oneOf(["dense","none"]),maxRows:v.oneOfType([v.number,v.string]),minRows:v.oneOfType([v.number,v.string]),multiline:v.bool,name:v.string,onBlur:v.func,onChange:v.func,onClick:v.func,onFocus:v.func,onInvalid:v.func,onKeyDown:v.func,onKeyUp:v.func,placeholder:v.string,readOnly:v.bool,renderSuffix:v.func,required:v.bool,rows:v.oneOfType([v.number,v.string]),size:v.oneOfType([v.oneOf(["medium","small"]),v.string]),slotProps:v.shape({input:v.object,root:v.object}),slots:v.shape({input:v.elementType,root:v.elementType}),startAdornment:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.string,value:v.any});function SE(e){return It("MuiInput",e)}const $o={...Oo,...Et("MuiInput",["root","underline","input"])},DE=e=>{const{classes:t,disableUnderline:n}=e,c=St({root:["root",!n&&"underline"],input:["input"]},SE,t);return{...t,...c}},OE=$e(ic,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...rc(e,t),!n.disableUnderline&&t.underline]}})(At(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:a})=>a.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$o.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$o.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$o.disabled}, .${$o.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$o.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Or()).map(([a])=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a].main}`}}}))]}})),zE=$e(oc,{name:"MuiInput",slot:"Input",overridesResolver:nc})({}),sc=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiInput"}),{disableUnderline:c=!1,components:i={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:C={},type:w="text",...j}=a,I=DE(a),S={root:{ownerState:{disableUnderline:c}}},L=g??u?Wr(g??u,S):S,E=C.root??i.Root??OE,D=C.input??i.Input??zE;return A.jsx(ac,{slots:{root:E,input:D},slotProps:L,fullWidth:f,inputComponent:p,multiline:h,ref:n,type:w,...j,classes:I})});_.dist.process.env.NODE_ENV!=="production"&&(sc.propTypes={autoComplete:v.string,autoFocus:v.bool,classes:v.object,color:v.oneOfType([v.oneOf(["primary","secondary"]),v.string]),components:v.shape({Input:v.elementType,Root:v.elementType}),componentsProps:v.shape({input:v.object,root:v.object}),defaultValue:v.any,disabled:v.bool,disableUnderline:v.bool,endAdornment:v.node,error:v.bool,fullWidth:v.bool,id:v.string,inputComponent:v.elementType,inputProps:v.object,inputRef:sn,margin:v.oneOf(["dense","none"]),maxRows:v.oneOfType([v.number,v.string]),minRows:v.oneOfType([v.number,v.string]),multiline:v.bool,name:v.string,onChange:v.func,placeholder:v.string,readOnly:v.bool,required:v.bool,rows:v.oneOfType([v.number,v.string]),slotProps:v.shape({input:v.object,root:v.object}),slots:v.shape({input:v.elementType,root:v.elementType}),startAdornment:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.string,value:v.any});sc.muiName="Input";function kE(e){return It("MuiFilledInput",e)}const zi={...Oo,...Et("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},_E=e=>{const{classes:t,disableUnderline:n,startAdornment:a,endAdornment:c,size:i,hiddenLabel:u,multiline:f}=e,p={root:["root",!n&&"underline",a&&"adornedStart",c&&"adornedEnd",i==="small"&&`size${tt(i)}`,u&&"hiddenLabel",f&&"multiline"],input:["input"]},h=St(p,kE,t);return{...t,...h}},BE=$e(ic,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...rc(e,t),!n.disableUnderline&&t.underline]}})(At(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",c=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:c,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${zi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${zi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zi.disabled}, .${zi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Or()).map(([u])=>{var f;return{props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(f=(e.vars||e).palette[u])==null?void 0:f.main}`}}}}),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:f})=>u.multiline&&f==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),FE=$e(oc,{name:"MuiFilledInput",slot:"Input",overridesResolver:nc})(At(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),cc=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiFilledInput"}),{disableUnderline:c=!1,components:i={},componentsProps:u,fullWidth:f=!1,hiddenLabel:p,inputComponent:h="input",multiline:g=!1,slotProps:C,slots:w={},type:j="text",...I}=a,T={...a,disableUnderline:c,fullWidth:f,inputComponent:h,multiline:g,type:j},S=_E(a),L={root:{ownerState:T},input:{ownerState:T}},E=C??u?Wr(L,C??u):L,D=w.root??i.Root??BE,O=w.input??i.Input??FE;return A.jsx(ac,{slots:{root:D,input:O},slotProps:E,fullWidth:f,inputComponent:h,multiline:g,ref:n,type:j,...I,classes:S})});_.dist.process.env.NODE_ENV!=="production"&&(cc.propTypes={autoComplete:v.string,autoFocus:v.bool,classes:v.object,color:v.oneOfType([v.oneOf(["primary","secondary"]),v.string]),components:v.shape({Input:v.elementType,Root:v.elementType}),componentsProps:v.shape({input:v.object,root:v.object}),defaultValue:v.any,disabled:v.bool,disableUnderline:v.bool,endAdornment:v.node,error:v.bool,fullWidth:v.bool,hiddenLabel:v.bool,id:v.string,inputComponent:v.elementType,inputProps:v.object,inputRef:sn,margin:v.oneOf(["dense","none"]),maxRows:v.oneOfType([v.number,v.string]),minRows:v.oneOfType([v.number,v.string]),multiline:v.bool,name:v.string,onChange:v.func,placeholder:v.string,readOnly:v.bool,required:v.bool,rows:v.oneOfType([v.number,v.string]),slotProps:v.shape({input:v.object,root:v.object}),slots:v.shape({input:v.elementType,root:v.elementType}),startAdornment:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.string,value:v.any});cc.muiName="Input";var Np;const RE=$e("fieldset",{shouldForwardProp:Qr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),PE=$e("legend",{shouldForwardProp:Qr})(At(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function _8(e){const{children:t,classes:n,className:a,label:c,notched:i,...u}=e,f=c!=null&&c!=="",p={...e,notched:i,withLabel:f};return A.jsx(RE,{"aria-hidden":!0,className:a,ownerState:p,...u,children:A.jsx(PE,{ownerState:p,children:f?A.jsx("span",{children:c}):Np||(Np=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}_.dist.process.env.NODE_ENV!=="production"&&(_8.propTypes={children:v.node,classes:v.object,className:v.string,label:v.node,notched:v.bool.isRequired,style:v.object});function UE(e){return It("MuiOutlinedInput",e)}const _n={...Oo,...Et("MuiOutlinedInput",["root","notchedOutline","input"])},YE=e=>{const{classes:t}=e,a=St({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},UE,t);return{...t,...a}},WE=$e(ic,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rc})(At(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${_n.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_n.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${_n.focused} .${_n.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Or()).map(([n])=>({props:{color:n},style:{[`&.${_n.focused} .${_n.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${_n.error} .${_n.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${_n.disabled} .${_n.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:a})=>n.multiline&&a==="small",style:{padding:"8.5px 14px"}}]}})),HE=$e(_8,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(At(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),ZE=$e(oc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nc})(At(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),lc=ae.forwardRef(function(t,n){var a;const c=Dt({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:h=!1,notched:g,slots:C={},type:w="text",...j}=c,I=YE(c),T=ji(),S=Ho({props:c,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),L={...c,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:T,fullWidth:u,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:w},E=C.root??i.Root??WE,D=C.input??i.Input??ZE;return A.jsx(ac,{slots:{root:E,input:D},renderSuffix:O=>A.jsx(HE,{ownerState:L,className:I.notchedOutline,label:p!=null&&p!==""&&S.required?a||(a=A.jsxs(ae.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:u,inputComponent:f,multiline:h,ref:n,type:w,...j,classes:{...I,notchedOutline:null}})});_.dist.process.env.NODE_ENV!=="production"&&(lc.propTypes={autoComplete:v.string,autoFocus:v.bool,classes:v.object,color:v.oneOfType([v.oneOf(["primary","secondary"]),v.string]),components:v.shape({Input:v.elementType,Root:v.elementType}),defaultValue:v.any,disabled:v.bool,endAdornment:v.node,error:v.bool,fullWidth:v.bool,id:v.string,inputComponent:v.elementType,inputProps:v.object,inputRef:sn,label:v.node,margin:v.oneOf(["dense","none"]),maxRows:v.oneOfType([v.number,v.string]),minRows:v.oneOfType([v.number,v.string]),multiline:v.bool,name:v.string,notched:v.bool,onChange:v.func,placeholder:v.string,readOnly:v.bool,required:v.bool,rows:v.oneOfType([v.number,v.string]),slots:v.shape({input:v.elementType,root:v.elementType}),startAdornment:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.string,value:v.any});lc.muiName="Input";function QE(e){return It("MuiFormLabel",e)}const Ma=Et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),VE=e=>{const{classes:t,color:n,focused:a,disabled:c,error:i,filled:u,required:f}=e,p={root:["root",`color${tt(n)}`,c&&"disabled",i&&"error",u&&"filled",a&&"focused",f&&"required"],asterisk:["asterisk",i&&"error"]};return St(p,QE,t)},GE=$e("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(At(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{[`&.${Ma.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),$E=$e("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(At(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}}))),B8=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiFormLabel"}),{children:c,className:i,color:u,component:f="label",disabled:p,error:h,filled:g,focused:C,required:w,...j}=a,I=ji(),T=Ho({props:a,muiFormControl:I,states:["color","required","focused","disabled","error","filled"]}),S={...a,color:T.color||"primary",component:f,disabled:T.disabled,error:T.error,filled:T.filled,focused:T.focused,required:T.required},L=VE(S);return A.jsxs(GE,{as:f,ownerState:S,className:vt(L.root,i),ref:n,...j,children:[c,T.required&&A.jsxs($E,{ownerState:S,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]})});_.dist.process.env.NODE_ENV!=="production"&&(B8.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["error","info","primary","secondary","success","warning"]),v.string]),component:v.elementType,disabled:v.bool,error:v.bool,filled:v.bool,focused:v.bool,required:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function qE(e){return It("MuiInputLabel",e)}Et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const JE=e=>{const{classes:t,formControl:n,size:a,shrink:c,disableAnimation:i,variant:u,required:f}=e,p={root:["root",n&&"formControl",!i&&"animated",c&&"shrink",a&&a!=="normal"&&`size${tt(a)}`,u],asterisk:[f&&"asterisk"]},h=St(p,qE,t);return{...t,...h}},XE=$e(B8,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(At(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:a})=>t==="filled"&&n.shrink&&a==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),F8=ae.forwardRef(function(t,n){const a=Dt({name:"MuiInputLabel",props:t}),{disableAnimation:c=!1,margin:i,shrink:u,variant:f,className:p,...h}=a,g=ji();let C=u;typeof C>"u"&&g&&(C=g.filled||g.focused||g.adornedStart);const w=Ho({props:a,muiFormControl:g,states:["size","variant","required","focused"]}),j={...a,disableAnimation:c,formControl:g,shrink:C,size:w.size,variant:w.variant,required:w.required,focused:w.focused},I=JE(j);return A.jsx(XE,{"data-shrink":C,ref:n,className:vt(I.root,p),...h,ownerState:j,classes:I})});_.dist.process.env.NODE_ENV!=="production"&&(F8.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["error","info","primary","secondary","success","warning"]),v.string]),disableAnimation:v.bool,disabled:v.bool,error:v.bool,focused:v.bool,margin:v.oneOf(["dense"]),required:v.bool,shrink:v.bool,size:v.oneOfType([v.oneOf(["normal","small"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOf(["filled","outlined","standard"])});function KE(e){return It("MuiFormControl",e)}Et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const eL=e=>{const{classes:t,margin:n,fullWidth:a}=e,c={root:["root",n!=="none"&&`margin${tt(n)}`,a&&"fullWidth"]};return St(c,KE,t)},tL=$e("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${tt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),R8=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiFormControl"}),{children:c,className:i,color:u="primary",component:f="div",disabled:p=!1,error:h=!1,focused:g,fullWidth:C=!1,hiddenLabel:w=!1,margin:j="none",required:I=!1,size:T="medium",variant:S="outlined",...L}=a,E={...a,color:u,component:f,disabled:p,error:h,fullWidth:C,hiddenLabel:w,margin:j,required:I,size:T,variant:S},D=eL(E),[O,F]=ae.useState(()=>{let M=!1;return c&&ae.Children.forEach(c,b=>{if(!la(b,["Input","Select"]))return;const N=la(b,["Select"])?b.props.input:b;N&&IE(N.props)&&(M=!0)}),M}),[R,Q]=ae.useState(()=>{let M=!1;return c&&ae.Children.forEach(c,b=>{la(b,["Input","Select"])&&(v0(b.props,!0)||v0(b.props.inputProps,!0))&&(M=!0)}),M}),[B,k]=ae.useState(!1);p&&B&&k(!1);const z=g!==void 0&&!p?g:B;let y;const r=ae.useRef(!1);_.dist.process.env.NODE_ENV!=="production"&&(y=()=>(r.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
218
- `)),r.current=!0,()=>{r.current=!1}));const s=ae.useCallback(()=>{Q(!0)},[]),l=ae.useCallback(()=>{Q(!1)},[]),d=ae.useMemo(()=>({adornedStart:O,setAdornedStart:F,color:u,disabled:p,error:h,filled:R,focused:z,fullWidth:C,hiddenLabel:w,size:T,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:l,onFilled:s,registerEffect:y,required:I,variant:S}),[O,u,p,h,R,z,C,w,y,l,s,I,T,S]);return A.jsx(Ka.Provider,{value:d,children:A.jsx(tL,{as:f,ownerState:E,className:vt(D.root,i),ref:n,...L,children:c})})});_.dist.process.env.NODE_ENV!=="production"&&(R8.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","error","info","success","warning"]),v.string]),component:v.elementType,disabled:v.bool,error:v.bool,focused:v.bool,fullWidth:v.bool,hiddenLabel:v.bool,margin:v.oneOf(["dense","none","normal"]),required:v.bool,size:v.oneOfType([v.oneOf(["medium","small"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOf(["filled","outlined","standard"])});function rL(e){return It("MuiFormHelperText",e)}const jp=Et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Tp;const nL=e=>{const{classes:t,contained:n,size:a,disabled:c,error:i,filled:u,focused:f,required:p}=e,h={root:["root",c&&"disabled",i&&"error",a&&`size${tt(a)}`,n&&"contained",f&&"focused",u&&"filled",p&&"required"]};return St(h,rL,t)},iL=$e("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${tt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(At(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jp.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),P8=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiFormHelperText"}),{children:c,className:i,component:u="p",disabled:f,error:p,filled:h,focused:g,margin:C,required:w,variant:j,...I}=a,T=ji(),S=Ho({props:a,muiFormControl:T,states:["variant","size","disabled","error","filled","focused","required"]}),L={...a,component:u,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete L.ownerState;const E=nL(L);return A.jsx(iL,{as:u,className:vt(E.root,i),ref:n,...I,ownerState:L,children:c===" "?Tp||(Tp=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):c})});_.dist.process.env.NODE_ENV!=="production"&&(P8.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,disabled:v.bool,error:v.bool,filled:v.bool,focused:v.bool,margin:v.oneOf(["dense"]),required:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["filled","outlined","standard"]),v.string])});function Jf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ap(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function U8(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function qo(e,t,n,a,c,i){let u=!1,f=c(e,t,t?n:!1);for(;f;){if(f===e.firstChild){if(u)return!1;u=!0}const p=a?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!U8(f,i)||p)f=c(e,f,n);else return f.focus(),!0}return!1}const Y8=ae.forwardRef(function(t,n){const{actions:a,autoFocus:c=!1,autoFocusItem:i=!1,children:u,className:f,disabledItemsFocusable:p=!1,disableListWrap:h=!1,onKeyDown:g,variant:C="selectedMenu",...w}=t,j=ae.useRef(null),I=ae.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bn(()=>{c&&j.current.focus()},[c]),ae.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(D,{direction:O})=>{const F=!j.current.style.width;if(D.clientHeight<j.current.clientHeight&&F){const R=`${c5(Zr(D))}px`;j.current.style[O==="rtl"?"paddingLeft":"paddingRight"]=R,j.current.style.width=`calc(100% + ${R})`}return j.current}}),[]);const T=D=>{const O=j.current,F=D.key;if(D.ctrlKey||D.metaKey||D.altKey){g&&g(D);return}const Q=Br(O).activeElement;if(F==="ArrowDown")D.preventDefault(),qo(O,Q,h,p,Jf);else if(F==="ArrowUp")D.preventDefault(),qo(O,Q,h,p,Ap);else if(F==="Home")D.preventDefault(),qo(O,null,h,p,Jf);else if(F==="End")D.preventDefault(),qo(O,null,h,p,Ap);else if(F.length===1){const B=I.current,k=F.toLowerCase(),z=performance.now();B.keys.length>0&&(z-B.lastTime>500?(B.keys=[],B.repeating=!0,B.previousKeyMatched=!0):B.repeating&&k!==B.keys[0]&&(B.repeating=!1)),B.lastTime=z,B.keys.push(k);const y=Q&&!B.repeating&&U8(Q,B);B.previousKeyMatched&&(y||qo(O,Q,!1,p,Jf,B))?D.preventDefault():B.previousKeyMatched=!1}g&&g(D)},S=br(j,n);let L=-1;ae.Children.forEach(u,(D,O)=>{if(!ae.isValidElement(D)){L===O&&(L+=1,L>=u.length&&(L=-1));return}_.dist.process.env.NODE_ENV!=="production"&&mi.isFragment(D)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
219
- `)),D.props.disabled||(C==="selectedMenu"&&D.props.selected||L===-1)&&(L=O),L===O&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(L+=1,L>=u.length&&(L=-1))});const E=ae.Children.map(u,(D,O)=>{if(O===L){const F={};return i&&(F.autoFocus=!0),D.props.tabIndex===void 0&&C==="selectedMenu"&&(F.tabIndex=0),ae.cloneElement(D,F)}return D});return A.jsx(Wo,{role:"menu",ref:S,className:f,onKeyDown:T,tabIndex:c?0:-1,...w,children:E})});_.dist.process.env.NODE_ENV!=="production"&&(Y8.propTypes={autoFocus:v.bool,autoFocusItem:v.bool,children:v.node,className:v.string,disabledItemsFocusable:v.bool,disableListWrap:v.bool,onKeyDown:v.func,variant:v.oneOf(["menu","selectedMenu"])});function oL(e){return It("MuiPopover",e)}Et("MuiPopover",["root","paper"]);function Ip(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ep(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Lp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function sa(e){return typeof e=="function"?e():e}const aL=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"]},oL,t)},sL=$e(h1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W8=$e(ec,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fc=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiPopover"}),{action:c,anchorEl:i,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:h,className:g,container:C,elevation:w=8,marginThreshold:j=16,open:I,PaperProps:T={},slots:S={},slotProps:L={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:D,transitionDuration:O="auto",TransitionProps:F={},disableScrollLock:R=!1,...Q}=a,B=ae.useRef(),k={...a,anchorOrigin:u,anchorReference:p,elevation:w,marginThreshold:j,transformOrigin:E,TransitionComponent:D,transitionDuration:O,TransitionProps:F},z=aL(k),y=ae.useCallback(()=>{if(p==="anchorPosition")return _.dist.process.env.NODE_ENV!=="production"&&(f||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),f;const X=sa(i),te=X&&X.nodeType===1?X:Br(B.current).body,Y=te.getBoundingClientRect();if(_.dist.process.env.NODE_ENV!=="production"){const ne=te.getBoundingClientRect();_.dist.process.env.NODE_ENV!=="test"&&ne.top===0&&ne.left===0&&ne.right===0&&ne.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
220
- `))}return{top:Y.top+Ip(Y,u.vertical),left:Y.left+Ep(Y,u.horizontal)}},[i,u.horizontal,u.vertical,f,p]),r=ae.useCallback(X=>({vertical:Ip(X,E.vertical),horizontal:Ep(X,E.horizontal)}),[E.horizontal,E.vertical]),s=ae.useCallback(X=>{const te={width:X.offsetWidth,height:X.offsetHeight},Y=r(te);if(p==="none")return{top:null,left:null,transformOrigin:Lp(Y)};const ne=y();let xe=ne.top-Y.vertical,le=ne.left-Y.horizontal;const ue=xe+te.height,Ve=le+te.width,he=Zr(sa(i)),be=he.innerHeight-j,st=he.innerWidth-j;if(j!==null&&xe<j){const Me=xe-j;xe-=Me,Y.vertical+=Me}else if(j!==null&&ue>be){const Me=ue-be;xe-=Me,Y.vertical+=Me}if(_.dist.process.env.NODE_ENV!=="production"&&te.height>be&&te.height&&be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${te.height-be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
221
- `)),j!==null&&le<j){const Me=le-j;le-=Me,Y.horizontal+=Me}else if(Ve>st){const Me=Ve-st;le-=Me,Y.horizontal+=Me}return{top:`${Math.round(xe)}px`,left:`${Math.round(le)}px`,transformOrigin:Lp(Y)}},[i,p,y,r,j]),[l,d]=ae.useState(I),M=ae.useCallback(()=>{const X=B.current;if(!X)return;const te=s(X);te.top!==null&&X.style.setProperty("top",te.top),te.left!==null&&(X.style.left=te.left),X.style.transformOrigin=te.transformOrigin,d(!0)},[s]);ae.useEffect(()=>(R&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[i,R,M]);const b=()=>{M()},N=()=>{d(!1)};ae.useEffect(()=>{I&&M()}),ae.useImperativeHandle(c,()=>I?{updatePosition:()=>{M()}}:null,[I,M]),ae.useEffect(()=>{if(!I)return;const X=fd(()=>{M()}),te=Zr(sa(i));return te.addEventListener("resize",X),()=>{X.clear(),te.removeEventListener("resize",X)}},[i,I,M]);let m=O;const o={slots:{transition:D,...S},slotProps:{transition:F,paper:T,...L}},[x,W]=Zt("transition",{elementType:Ta,externalForwardedProps:o,ownerState:k,getSlotProps:X=>({...X,onEntering:(te,Y)=>{var ne;(ne=X.onEntering)==null||ne.call(X,te,Y),b()},onExited:te=>{var Y;(Y=X.onExited)==null||Y.call(X,te),N()}}),additionalProps:{appear:!0,in:I}});O==="auto"&&!x.muiSupportAuto&&(m=void 0);const Z=C||(i?Br(sa(i)).body:void 0),[G,{slots:ee,slotProps:V,...P}]=Zt("root",{ref:n,elementType:sL,externalForwardedProps:{...o,...Q},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:d0(typeof L.backdrop=="function"?L.backdrop(k):L.backdrop,{invisible:!0})},container:Z,open:I},ownerState:k,className:vt(z.root,g)}),[H,$]=Zt("paper",{ref:B,className:z.paper,elementType:W8,externalForwardedProps:o,shouldForwardComponentProp:!0,additionalProps:{elevation:w,style:l?void 0:{opacity:0}},ownerState:k});return A.jsx(G,{...P,...!Sa(G)&&{slots:ee,slotProps:V,disableScrollLock:R},children:A.jsx(x,{...W,timeout:m,children:A.jsx(H,{...$,children:h})})})});_.dist.process.env.NODE_ENV!=="production"&&(fc.propTypes={action:sn,anchorEl:Sn(v.oneOfType([Hn,v.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=sa(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(_.dist.process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
222
- `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
223
- `))}return null}),anchorOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),anchorPosition:v.shape({left:v.number.isRequired,top:v.number.isRequired}),anchorReference:v.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:v.elementType,BackdropProps:v.object,children:v.node,classes:v.object,className:v.string,container:v.oneOfType([Hn,v.func]),disableScrollLock:v.bool,elevation:ud,marginThreshold:v.number,onClose:v.func,open:v.bool.isRequired,PaperProps:v.shape({component:yi}),slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object]),transition:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,paper:v.elementType,root:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transformOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object});function cL(e){return It("MuiMenu",e)}Et("MuiMenu",["root","paper","list"]);const lL={vertical:"top",horizontal:"right"},fL={vertical:"top",horizontal:"left"},uL=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"],list:["list"]},cL,t)},dL=$e(fc,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hL=$e(W8,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),pL=$e(Y8,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),H8=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiMenu"}),{autoFocus:c=!0,children:i,className:u,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:h,open:g,PaperProps:C={},PopoverClasses:w,transitionDuration:j="auto",TransitionProps:{onEntering:I,...T}={},variant:S="selectedMenu",slots:L={},slotProps:E={},...D}=a,O=Ya(),F={...a,autoFocus:c,disableAutoFocusItem:f,MenuListProps:p,onEntering:I,PaperProps:C,transitionDuration:j,TransitionProps:T,variant:S},R=uL(F),Q=c&&!f&&g,B=ae.useRef(null),k=(m,o)=>{B.current&&B.current.adjustStyleForScrollbar(m,{direction:O?"rtl":"ltr"}),I&&I(m,o)},z=m=>{m.key==="Tab"&&(m.preventDefault(),h&&h(m,"tabKeyDown"))};let y=-1;ae.Children.map(i,(m,o)=>{ae.isValidElement(m)&&(_.dist.process.env.NODE_ENV!=="production"&&mi.isFragment(m)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
224
- `)),m.props.disabled||(S==="selectedMenu"&&m.props.selected||y===-1)&&(y=o))});const r={slots:L,slotProps:{list:p,transition:T,paper:C,...E}},s=t0({elementType:L.root,externalSlotProps:E.root,ownerState:F,className:[R.root,u]}),[l,d]=Zt("paper",{className:R.paper,elementType:hL,externalForwardedProps:r,shouldForwardComponentProp:!0,ownerState:F}),[M,b]=Zt("list",{className:vt(R.list,p.className),elementType:pL,shouldForwardComponentProp:!0,externalForwardedProps:r,getSlotProps:m=>({...m,onKeyDown:o=>{var x;z(o),(x=m.onKeyDown)==null||x.call(m,o)}}),ownerState:F}),N=typeof r.slotProps.transition=="function"?r.slotProps.transition(F):r.slotProps.transition;return A.jsx(dL,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?lL:fL,slots:{root:L.root,paper:l,backdrop:L.backdrop,...L.transition&&{transition:L.transition}},slotProps:{root:s,paper:d,backdrop:typeof E.backdrop=="function"?E.backdrop(F):E.backdrop,transition:{...N,onEntering:(...m)=>{var o;k(...m),(o=N==null?void 0:N.onEntering)==null||o.call(N,...m)}}},open:g,ref:n,transitionDuration:j,ownerState:F,...D,classes:w,children:A.jsx(M,{actions:B,autoFocus:c&&(y===-1||f),autoFocusItem:Q,variant:S,...b,children:i})})});_.dist.process.env.NODE_ENV!=="production"&&(H8.propTypes={anchorEl:v.oneOfType([Hn,v.func]),autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,disableAutoFocusItem:v.bool,MenuListProps:v.object,onClose:v.func,open:v.bool.isRequired,PaperProps:v.object,PopoverClasses:v.object,slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),list:v.oneOfType([v.func,v.object]),paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object]),transition:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,list:v.elementType,paper:v.elementType,root:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object,variant:v.oneOf(["menu","selectedMenu"])});function gL(e){return It("MuiNativeSelect",e)}const m1=Et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),mL=e=>{const{classes:t,variant:n,disabled:a,multiple:c,open:i,error:u}=e,f={select:["select",n,a&&"disabled",c&&"multiple",u&&"error"],icon:["icon",`icon${tt(n)}`,i&&"iconOpen",a&&"disabled"]};return St(f,gL,t)},Z8=$e("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${m1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ML=$e(Z8,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Qr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${m1.multiple}`]:t.multiple}]}})({}),Q8=$e("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${m1.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),yL=$e(Q8,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${tt(n.variant)}`],n.open&&t.iconOpen]}})({}),V8=ae.forwardRef(function(t,n){const{className:a,disabled:c,error:i,IconComponent:u,inputRef:f,variant:p="standard",...h}=t,g={...t,disabled:c,variant:p,error:i},C=mL(g);return A.jsxs(ae.Fragment,{children:[A.jsx(ML,{ownerState:g,className:vt(C.select,a),disabled:c,ref:f||n,...h}),t.multiple?null:A.jsx(yL,{as:u,ownerState:g,className:C.icon})]})});_.dist.process.env.NODE_ENV!=="production"&&(V8.propTypes={children:v.node,classes:v.object,className:v.string,disabled:v.bool,error:v.bool,IconComponent:v.elementType.isRequired,inputRef:sn,multiple:v.bool,name:v.string,onChange:v.func,value:v.any,variant:v.oneOf(["standard","outlined","filled"])});function G8(e){return It("MuiSelect",e)}const Jo=Et("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Sp;const vL=$e(Z8,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Jo.select}`]:t.select},{[`&.${Jo.select}`]:t[n.variant]},{[`&.${Jo.error}`]:t.error},{[`&.${Jo.multiple}`]:t.multiple}]}})({[`&.${Jo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xL=$e(Q8,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${tt(n.variant)}`],n.open&&t.iconOpen]}})({}),bL=$e("input",{shouldForwardProp:e=>w5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Dp(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function CL(e){return e==null||typeof e=="string"&&!e.trim()}const wL=e=>{const{classes:t,variant:n,disabled:a,multiple:c,open:i,error:u}=e,f={select:["select",n,a&&"disabled",c&&"multiple",u&&"error"],icon:["icon",`icon${tt(n)}`,i&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return St(f,G8,t)},$8=ae.forwardRef(function(t,n){var Ot;const{"aria-describedby":a,"aria-label":c,autoFocus:i,autoWidth:u,children:f,className:p,defaultOpen:h,defaultValue:g,disabled:C,displayEmpty:w,error:j=!1,IconComponent:I,inputRef:T,labelId:S,MenuProps:L={},multiple:E,name:D,onBlur:O,onChange:F,onClose:R,onFocus:Q,onOpen:B,open:k,readOnly:z,renderValue:y,required:r,SelectDisplayProps:s={},tabIndex:l,type:d,value:M,variant:b="standard",...N}=t,[m,o]=e0({controlled:M,default:g,name:"Select"}),[x,W]=e0({controlled:k,default:h,name:"Select"}),Z=ae.useRef(null),G=ae.useRef(null),[ee,V]=ae.useState(null),{current:P}=ae.useRef(k!=null),[H,$]=ae.useState(),X=br(n,T),te=ae.useCallback(me=>{G.current=me,me&&V(me)},[]),Y=ee==null?void 0:ee.parentNode;ae.useImperativeHandle(X,()=>({focus:()=>{G.current.focus()},node:Z.current,value:m}),[m]),ae.useEffect(()=>{h&&x&&ee&&!P&&($(u?null:Y.clientWidth),G.current.focus())},[ee,u]),ae.useEffect(()=>{i&&G.current.focus()},[i]),ae.useEffect(()=>{if(!S)return;const me=Br(G.current).getElementById(S);if(me){const Ce=()=>{getSelection().isCollapsed&&G.current.focus()};return me.addEventListener("click",Ce),()=>{me.removeEventListener("click",Ce)}}},[S]);const ne=(me,Ce)=>{me?B&&B(Ce):R&&R(Ce),P||($(u?null:Y.clientWidth),W(me))},xe=me=>{me.button===0&&(me.preventDefault(),G.current.focus(),ne(!0,me))},le=me=>{ne(!1,me)},ue=ae.Children.toArray(f),Ve=me=>{const Ce=ue.find(xt=>xt.props.value===me.target.value);Ce!==void 0&&(o(Ce.props.value),F&&F(me,Ce))},he=me=>Ce=>{let xt;if(Ce.currentTarget.hasAttribute("tabindex")){if(E){xt=Array.isArray(m)?m.slice():[];const Se=m.indexOf(me.props.value);Se===-1?xt.push(me.props.value):xt.splice(Se,1)}else xt=me.props.value;if(me.props.onClick&&me.props.onClick(Ce),m!==xt&&(o(xt),F)){const Se=Ce.nativeEvent||Ce,Oe=new Se.constructor(Se.type,Se);Object.defineProperty(Oe,"target",{writable:!0,value:{value:xt,name:D}}),F(Oe,me)}E||ne(!1,Ce)}},be=me=>{z||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),ne(!0,me))},st=ee!==null&&x,Me=me=>{!st&&O&&(Object.defineProperty(me,"target",{writable:!0,value:{value:m,name:D}}),O(me))};delete N["aria-invalid"];let oe,We;const de=[];let ye=!1,mt=!1;(v0({value:m})||w)&&(y?oe=y(m):ye=!0);const je=ue.map(me=>{if(!ae.isValidElement(me))return null;_.dist.process.env.NODE_ENV!=="production"&&mi.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
225
- `));let Ce;if(E){if(!Array.isArray(m))throw new Error(_.dist.process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Wn(2));Ce=m.some(xt=>Dp(xt,me.props.value)),Ce&&ye&&de.push(me.props.children)}else Ce=Dp(m,me.props.value),Ce&&ye&&(We=me.props.children);return Ce&&(mt=!0),ae.cloneElement(me,{"aria-selected":Ce?"true":"false",onClick:he(me),onKeyUp:xt=>{xt.key===" "&&xt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(xt)},role:"option",selected:Ce,value:void 0,"data-value":me.props.value})});_.dist.process.env.NODE_ENV!=="production"&&ae.useEffect(()=>{if(!mt&&!E&&m!==""){const me=ue.map(Ce=>Ce.props.value);console.warn([`MUI: You have provided an out-of-range value \`${m}\` for the select ${D?`(name="${D}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter(Ce=>Ce!=null).map(Ce=>`\`${Ce}\``).join(", ")||'""'}.`].join(`
226
- `))}},[mt,ue,E,D,m]),ye&&(E?de.length===0?oe=null:oe=de.reduce((me,Ce,xt)=>(me.push(Ce),xt<de.length-1&&me.push(", "),me),[]):oe=We);let Ae=H;!u&&P&&ee&&(Ae=Y.clientWidth);let Tt;typeof l<"u"?Tt=l:Tt=C?null:0;const De=s.id||(D?`mui-component-select-${D}`:void 0),ve={...t,variant:b,value:m,open:st,error:j},jt=wL(ve),Ee={...L.PaperProps,...(Ot=L.slotProps)==null?void 0:Ot.paper},Le=Ua();return A.jsxs(ae.Fragment,{children:[A.jsx(vL,{as:"div",ref:te,tabIndex:Tt,role:"combobox","aria-controls":st?Le:void 0,"aria-disabled":C?"true":void 0,"aria-expanded":st?"true":"false","aria-haspopup":"listbox","aria-label":c,"aria-labelledby":[S,De].filter(Boolean).join(" ")||void 0,"aria-describedby":a,"aria-required":r?"true":void 0,"aria-invalid":j?"true":void 0,onKeyDown:be,onMouseDown:C||z?null:xe,onBlur:Me,onFocus:Q,...s,ownerState:ve,className:vt(s.className,jt.select,p),id:De,children:CL(oe)?Sp||(Sp=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):oe}),A.jsx(bL,{"aria-invalid":j,value:Array.isArray(m)?m.join(","):m,name:D,ref:Z,"aria-hidden":!0,onChange:Ve,tabIndex:-1,disabled:C,className:jt.nativeInput,autoFocus:i,required:r,...N,ownerState:ve}),A.jsx(xL,{as:I,className:jt.icon,ownerState:ve}),A.jsx(H8,{id:`menu-${D||""}`,anchorEl:Y,open:st,onClose:le,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...L,slotProps:{...L.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Le,...L.MenuListProps},paper:{...Ee,style:{minWidth:Ae,...Ee!=null?Ee.style:null}}},children:je})]})});_.dist.process.env.NODE_ENV!=="production"&&($8.propTypes={"aria-describedby":v.string,"aria-label":v.string,autoFocus:v.bool,autoWidth:v.bool,children:v.node,classes:v.object,className:v.string,defaultOpen:v.bool,defaultValue:v.any,disabled:v.bool,displayEmpty:v.bool,error:v.bool,IconComponent:v.elementType.isRequired,inputRef:sn,labelId:v.string,MenuProps:v.object,multiple:v.bool,name:v.string,onBlur:v.func,onChange:v.func,onClose:v.func,onFocus:v.func,onOpen:v.func,open:v.bool,readOnly:v.bool,renderValue:v.func,required:v.bool,SelectDisplayProps:v.object,tabIndex:v.oneOfType([v.number,v.string]),type:v.any,value:v.any,variant:v.oneOf(["standard","outlined","filled"])});const NL=Kr(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jL=e=>{const{classes:t}=e,a=St({root:["root"]},G8,t);return{...t,...a}},M1={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qr(e)&&e!=="variant",slot:"Root"},TL=$e(sc,M1)(""),AL=$e(lc,M1)(""),IL=$e(cc,M1)(""),y1=ae.forwardRef(function(t,n){const a=Dt({name:"MuiSelect",props:t}),{autoWidth:c=!1,children:i,classes:u={},className:f,defaultOpen:p=!1,displayEmpty:h=!1,IconComponent:g=NL,id:C,input:w,inputProps:j,label:I,labelId:T,MenuProps:S,multiple:L=!1,native:E=!1,onClose:D,onOpen:O,open:F,renderValue:R,SelectDisplayProps:Q,variant:B="outlined",...k}=a,z=E?V8:$8,y=ji(),r=Ho({props:a,muiFormControl:y,states:["variant","error"]}),s=r.variant||B,l={...a,variant:s,classes:u},d=jL(l),{root:M,...b}=d,N=w||{standard:A.jsx(TL,{ownerState:l}),outlined:A.jsx(AL,{label:I,ownerState:l}),filled:A.jsx(IL,{ownerState:l})}[s],m=br(n,io(N));return A.jsx(ae.Fragment,{children:ae.cloneElement(N,{inputComponent:z,inputProps:{children:i,error:r.error,IconComponent:g,variant:s,type:void 0,multiple:L,...E?{id:C}:{autoWidth:c,defaultOpen:p,displayEmpty:h,labelId:T,MenuProps:S,onClose:D,onOpen:O,open:F,renderValue:R,SelectDisplayProps:{id:C,...Q}},...j,classes:j?Wr(b,j.classes):b,...w?w.props.inputProps:{}},...(L&&E||h)&&s==="outlined"?{notched:!0}:{},ref:m,className:vt(N.props.className,f,d.root),...!w&&{variant:s},...k})})});_.dist.process.env.NODE_ENV!=="production"&&(y1.propTypes={autoWidth:v.bool,children:v.node,classes:v.object,className:v.string,defaultOpen:v.bool,defaultValue:v.any,displayEmpty:v.bool,IconComponent:v.elementType,id:v.string,input:v.element,inputProps:v.object,label:v.node,labelId:v.string,MenuProps:v.object,multiple:v.bool,native:v.bool,onChange:v.func,onClose:v.func,onOpen:v.func,open:v.bool,renderValue:v.func,SelectDisplayProps:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),value:v.oneOfType([v.oneOf([""]),v.any]),variant:v.oneOf(["filled","outlined","standard"])});y1.muiName="Select";function EL(e){return It("MuiTextField",e)}Et("MuiTextField",["root"]);const LL={standard:sc,filled:cc,outlined:lc},SL=e=>{const{classes:t}=e;return St({root:["root"]},EL,t)},DL=$e(R8,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Da=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiTextField"}),{autoComplete:c,autoFocus:i=!1,children:u,className:f,color:p="primary",defaultValue:h,disabled:g=!1,error:C=!1,FormHelperTextProps:w,fullWidth:j=!1,helperText:I,id:T,InputLabelProps:S,inputProps:L,InputProps:E,inputRef:D,label:O,maxRows:F,minRows:R,multiline:Q=!1,name:B,onBlur:k,onChange:z,onFocus:y,placeholder:r,required:s=!1,rows:l,select:d=!1,SelectProps:M,slots:b={},slotProps:N={},type:m,value:o,variant:x="outlined",...W}=a,Z={...a,autoFocus:i,color:p,disabled:g,error:C,fullWidth:j,multiline:Q,required:s,select:d,variant:x},G=SL(Z);_.dist.process.env.NODE_ENV!=="production"&&d&&!u&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ee=Ua(T),V=I&&ee?`${ee}-helper-text`:void 0,P=O&&ee?`${ee}-label`:void 0,H=LL[x],$={slots:b,slotProps:{input:E,inputLabel:S,htmlInput:L,formHelperText:w,select:M,...N}},X={},te=$.slotProps.inputLabel;x==="outlined"&&(te&&typeof te.shrink<"u"&&(X.notched=te.shrink),X.label=O),d&&((!M||!M.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[Y,ne]=Zt("root",{elementType:DL,shouldForwardComponentProp:!0,externalForwardedProps:{...$,...W},ownerState:Z,className:vt(G.root,f),ref:n,additionalProps:{disabled:g,error:C,fullWidth:j,required:s,color:p,variant:x}}),[xe,le]=Zt("input",{elementType:H,externalForwardedProps:$,additionalProps:X,ownerState:Z}),[ue,Ve]=Zt("inputLabel",{elementType:F8,externalForwardedProps:$,ownerState:Z}),[he,be]=Zt("htmlInput",{elementType:"input",externalForwardedProps:$,ownerState:Z}),[st,Me]=Zt("formHelperText",{elementType:P8,externalForwardedProps:$,ownerState:Z}),[oe,We]=Zt("select",{elementType:y1,externalForwardedProps:$,ownerState:Z}),de=A.jsx(xe,{"aria-describedby":V,autoComplete:c,autoFocus:i,defaultValue:h,fullWidth:j,multiline:Q,name:B,rows:l,maxRows:F,minRows:R,type:m,value:o,id:ee,inputRef:D,onBlur:k,onChange:z,onFocus:y,placeholder:r,inputProps:be,slots:{input:b.htmlInput?he:void 0},...le});return A.jsxs(Y,{...ne,children:[O!=null&&O!==""&&A.jsx(ue,{htmlFor:ee,id:P,...Ve,children:O}),d?A.jsx(oe,{"aria-describedby":V,id:ee,labelId:P,value:o,input:de,...We,children:u}):de,I&&A.jsx(st,{id:V,...Me,children:I})]})});_.dist.process.env.NODE_ENV!=="production"&&(Da.propTypes={autoComplete:v.string,autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","error","info","success","warning"]),v.string]),defaultValue:v.any,disabled:v.bool,error:v.bool,FormHelperTextProps:v.object,fullWidth:v.bool,helperText:v.node,id:v.string,InputLabelProps:v.object,inputProps:v.object,InputProps:v.object,inputRef:sn,label:v.node,margin:v.oneOf(["dense","none","normal"]),maxRows:v.oneOfType([v.number,v.string]),minRows:v.oneOfType([v.number,v.string]),multiline:v.bool,name:v.string,onBlur:v.func,onChange:v.func,onFocus:v.func,placeholder:v.string,required:v.bool,rows:v.oneOfType([v.number,v.string]),select:v.bool,SelectProps:v.object,size:v.oneOfType([v.oneOf(["medium","small"]),v.string]),slotProps:v.shape({formHelperText:v.oneOfType([v.func,v.object]),htmlInput:v.oneOfType([v.func,v.object]),input:v.oneOfType([v.func,v.object]),inputLabel:v.oneOfType([v.func,v.object]),select:v.oneOfType([v.func,v.object])}),slots:v.shape({formHelperText:v.elementType,htmlInput:v.elementType,input:v.elementType,inputLabel:v.elementType,root:v.elementType,select:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.string,value:v.any,variant:v.oneOf(["filled","outlined","standard"])});const OL=Kr(A.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),zL=Kr(A.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),kL="Failed to load wallets. Please refresh and try again.",_L=e=>{const{chain:t,supportedChains:n}=e,[a,c]=ie.useState({state:"loading"});return ie.useEffect(()=>{let i=!1;async function u(){if(!t)return[];const f=ge.chains[t];return f&&n.has(_.chainToPlatform(f.sdkName))?await Sg(f):[]}return(async()=>{try{const f=await u();!i&&f&&c({state:"result",options:f})}catch(f){console.error(`Error loading wallet options for ${t}: ${f}`),c({state:"error",error:kL})}})(),()=>{i=!0}},[t,n]),{walletOptionsResult:a}},BL=Ht()((e,{size:t})=>({container:{height:t,width:t,...$0},icon:{maxHeight:"100%",maxWidth:"100%"}}));function q8(e){const t=e.size||32,{classes:n}=BL({size:t}),{icon:a,name:c}=e;return A.jsx("div",{className:n.container,children:a&&A.jsx("img",{className:n.icon,src:a,alt:c})})}function FL(e){if(!e.startsWith("0x")||e.length!==42||!_.hex.valid(e))return!1;try{return _.getAddress(e),!0}catch{return!1}}async function RL(e){try{const t=new _.PublicKey(e);if(ge.rpcs.Solana){const n=new _.Connection(ge.rpcs.Solana);if((await Promise.allSettled([ui.getAccount(n,t,"finalized",ui.TOKEN_PROGRAM_ID),ui.getAccount(n,t,"finalized",ui.TOKEN_2022_PROGRAM_ID)])).some(c=>c.status==="fulfilled"))return!1}return!0}catch{return!1}}function PL(e){return e.startsWith("0x")&&e.length===66&&_.hex.valid(e)}async function UL(e,t){const n=_.chainToPlatform(e);switch(n){case"Evm":if(!FL(t))return null;break;case"Solana":if(!await RL(t))return null;break;case"Sui":if(!Rn.isValidSuiAddress(t))return null;break;case"Aptos":if(!PL(t))return null;break;default:return console.warn(`Unsupported platform: ${n}`),null}try{return _.toNative(e,t)}catch(a){console.error(`Invalid address for chain ${e}: ${t}, error: ${a}`)}return null}const YL=Ht()(e=>({listButton:{display:"flex",flexDirection:"row",padding:"12px 16px"},drawer:{width:"360px"},notInstalled:{opacity:.6},title:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},smOnly:{display:"none",[e.breakpoints.down("sm")]:{display:"block"}},addressInputContainer:{display:"flex",flexDirection:"row",gap:"8px",width:"100%",padding:"16px"},addressField:{flex:1},submitButton:{width:"100%"}})),v1=e=>{const t=Sr(),{classes:n}=YL(),{fromChain:a,toChain:c}=qt(E=>E.transferInput),[i,u]=ie.useState(""),[f,p]=ie.useState(""),[h,g]=ie.useState(""),C=ie.useMemo(()=>{const E=ge.chainsArr.map(D=>_.chainToPlatform(D.sdkName));return new Set(E)},[]),w=ie.useMemo(()=>e.type===jr.SENDING?a:c,[e.type,a,c]),{walletOptionsResult:j}=_L({chain:w,supportedChains:C}),I=ie.useCallback(async E=>{var D;w&&((D=e.onClose)==null||D.call(e),await _u(e.type,w,E,t))},[w,e,t]),T=ie.useCallback(async()=>{var R;if(!w||!f)return;const E=ge.chains[w];if(!E)return;const D=await UL(w,f);if(!D){g("Invalid Address"),t(c0(jr.RECEIVING));return}for(const Q of $u)if(D.toString().toLowerCase()===Q.toLowerCase()){g("Sanctioned Address"),t(c0(jr.RECEIVING));return}const O=new Ao(D,w),F={name:O.getName(),type:_.chainToPlatform(E.sdkName),icon:O.getIcon(),wallet:O};await _u(jr.RECEIVING,w,F,t),(R=e.onClose)==null||R.call(e)},[f,w,e.onClose]),S=ie.useCallback(E=>{const D=[...E].sort(F=>F.isReady?-1:1),O=i?D.filter(({name:F,type:R})=>[F,R].some(Q=>Q.toLowerCase().includes(i.toLowerCase()))):D;return A.jsx(A.Fragment,{children:O.length?O.map(F=>A.jsxs(Yn,{className:n.listButton,dense:!0,onClick:()=>F.isReady?I(F):window.open(F.wallet.getUrl()),children:[A.jsx(tc,{children:A.jsx(q8,{name:F.name,icon:F.icon})}),A.jsx(Ke,{component:"div",fontSize:14,children:A.jsxs("div",{className:`${!F.isReady&&n.notInstalled}`,children:[!F.isReady&&"Install"," ",F.name]})})]},F.name)):A.jsx(aa,{children:A.jsx(Ke,{children:"No results"})})})},[n.listButton,n.notInstalled,I,i]),L=ie.useMemo(()=>{var E;switch(j.state){case"loading":return A.jsx(Lr,{});case"error":return A.jsx(Xa,{error:!0,show:!0,content:j.error});case"result":return!!((E=j.options)!=null&&E.length)&&A.jsxs(Wo,{children:[A.jsx(aa,{children:A.jsxs("div",{className:n.title,children:[A.jsx(Ke,{component:"div",fontSize:16,children:e.type===jr.RECEIVING?"Select destination wallet":"Connect a wallet"}),A.jsx("div",{className:n.smOnly,children:A.jsx(Po,{onClick:e.onClose,sx:{padding:0},children:A.jsx(zL,{sx:{height:"18px",width:"18px"}})})})]})}),A.jsx(aa,{children:A.jsx(Da,{fullWidth:!0,placeholder:"Search for a wallet",size:"small",variant:"outlined",value:i,onChange:D=>u(D.target.value),InputProps:{startAdornment:A.jsx(La,{position:"start",children:A.jsx(OL,{})})}})}),S(j.options),e.showAddressInput&&!i&&A.jsxs(aa,{className:n.addressInputContainer,children:[A.jsx(Da,{className:n.addressField,fullWidth:!0,placeholder:"Send to a wallet address",size:"small",variant:"outlined",value:f,onChange:D=>{p(D.target.value),g("")},error:!!h,helperText:h}),A.jsx(Uo,{variant:"contained",color:"primary",onClick:T,disabled:!f,children:"Submit"})]})]});default:return A.jsx(A.Fragment,{})}},[j.state,j.error,j.options,n.title,n.smOnly,i,e.onClose,e.type,e.showAddressInput,S,f,h,T]);return A.jsx(p1,{anchor:"right",open:e.type&&e.open,onClose:()=>{var E;return(E=e.onClose)==null?void 0:E.call(e)},children:A.jsx("div",{className:n.drawer,children:L})})},Op=e=>{const{disabled:t=!1,type:n}=e,a=qt(h=>h.wallet[n]),[c,i]=ie.useState(!1),u=ie.useCallback(async h=>{t||(h==null||h.close(),i(!0))},[t]),f=ie.useMemo(()=>a!=null&&a.address?A.jsx("div",{children:`Connected to ${Dg(a.type,a.address)}`}):null,[a.address,a.type]),p=ie.useMemo(()=>{const h=A.jsx("span",{style:{width:"100%"},children:A.jsx(Fi,{disableRipple:!0,variant:"primary","data-testid":`${e.side}-section-connect-wallet-button`,disabled:t,sx:{"&:disabled":{cursor:"not-allowed",pointerEvents:"all !important"}},onClick:()=>u(),children:A.jsx(Ke,{textTransform:"none",children:`Connect ${e.side} wallet`})})});return t?A.jsx(Do,{title:`Please select a ${e.side} network`,children:h}):A.jsxs(A.Fragment,{children:[h,A.jsx(v1,{open:c,type:e.type,onClose:()=>{i(!1)},showAddressInput:e.type===jr.RECEIVING})]})},[t,c,e.side,e.type,u]);return a&&a.address?f:p};function WL(e){return It("MuiCard",e)}Et("MuiCard",["root"]);const HL=e=>{const{classes:t}=e;return St({root:["root"]},WL,t)},ZL=$e(ec,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Ti=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiCard"}),{className:c,raised:i=!1,...u}=a,f={...a,raised:i},p=HL(f);return A.jsx(ZL,{className:vt(p.root,c),elevation:i?8:void 0,ref:n,ownerState:f,...u})});_.dist.process.env.NODE_ENV!=="production"&&(Ti.propTypes={children:v.node,classes:v.object,className:v.string,raised:Sn(v.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function QL(e){return It("MuiCardContent",e)}Et("MuiCardContent",["root"]);const VL=e=>{const{classes:t}=e;return St({root:["root"]},QL,t)},GL=$e("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Ai=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiCardContent"}),{className:c,component:i="div",...u}=a,f={...a,component:i},p=VL(f);return A.jsx(GL,{as:i,className:vt(p.root,c),ownerState:f,ref:n,...u})});_.dist.process.env.NODE_ENV!=="production"&&(Ai.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function x0(e){const{children:t,defer:n=!1,fallback:a=null}=e,[c,i]=ae.useState(!1);return bn(()=>{n||i(!0)},[n]),ae.useEffect(()=>{n&&i(!0)},[n]),c?t:a}_.dist.process.env.NODE_ENV!=="production"&&(x0.propTypes={children:v.node,defer:v.bool,fallback:v.node});_.dist.process.env.NODE_ENV!=="production"&&(x0.propTypes=ld(x0.propTypes));const $L=$e("div",{shouldForwardProp:Qr})(At(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),J8=ae.forwardRef(function(t,n){const{anchor:a,classes:c={},className:i,width:u,style:f,...p}=t,h=t;return A.jsx($L,{className:vt("PrivateSwipeArea-root",c.root,c[`anchor${tt(a)}`],i),ref:n,style:{[Ri(a)?"width":"height"]:u,...f},ownerState:h,...p})});_.dist.process.env.NODE_ENV!=="production"&&(J8.propTypes={anchor:v.oneOf(["left","top","right","bottom"]).isRequired,classes:v.object,className:v.string,style:v.object,width:v.number.isRequired});const zs=3,zp=20;let qn=null;function Xf(e,t,n){return e==="right"?n.body.offsetWidth-t[0].pageX:t[0].pageX}function Kf(e,t,n){return e==="bottom"?n.innerHeight-t[0].clientY:t[0].clientY}function Xo(e,t){return e?t.clientWidth:t.clientHeight}function kp(e,t,n,a){return Math.min(Math.max(n?t-e:a+t-e,0),a)}function qL(e,t){const n=[];for(;e&&e!==t.parentElement;){const a=Zr(t).getComputedStyle(e);a.getPropertyValue("position")==="absolute"||a.getPropertyValue("overflow-x")==="hidden"||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}function JL({domTreeShapes:e,start:t,current:n,anchor:a}){const c={scrollPosition:{x:"scrollLeft",y:"scrollTop"},scrollLength:{x:"scrollWidth",y:"scrollHeight"},clientLength:{x:"clientWidth",y:"clientHeight"}};return e.some(i=>{let u=n>=t;(a==="top"||a==="left")&&(u=!u);const f=a==="left"||a==="right"?"x":"y",p=Math.round(i[c.scrollPosition[f]]),h=p>0,g=p+i[c.clientLength[f]]<i[c.scrollLength[f]];return!!(u&&g||!u&&h)})}const XL=typeof navigator<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent),X8=ae.forwardRef(function(t,n){const a=Dt({name:"MuiSwipeableDrawer",props:t}),c=Dn(),i={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{anchor:u="left",disableBackdropTransition:f=!1,disableDiscovery:p=!1,disableSwipeToOpen:h=XL,hideBackdrop:g,hysteresis:C=.52,allowSwipeInChildren:w=!1,minFlingVelocity:j=450,ModalProps:{BackdropProps:I,...T}={},onClose:S,onOpen:L,open:E=!1,PaperProps:D={},SwipeAreaProps:O,swipeAreaWidth:F=20,transitionDuration:R=i,variant:Q="temporary",slots:B={},slotProps:k={},...z}=a,[y,r]=ae.useState(!1),s=ae.useRef({isSwiping:null}),l=ae.useRef(),d=ae.useRef(),M=ae.useRef(),b=br(D.ref,M),N=ae.useRef(!1),m=ae.useRef();bn(()=>{m.current=null},[E]);const o=ae.useCallback((P,H={})=>{const{mode:$=null,changeTransition:X=!0}=H,te=oa(c,u),Y=["right","bottom"].includes(te)?1:-1,ne=Ri(u),xe=ne?`translate(${Y*P}px, 0)`:`translate(0, ${Y*P}px)`,le=M.current.style;le.webkitTransform=xe,le.transform=xe;let ue="";if($&&(ue=c.transitions.create("all",ni({easing:void 0,style:void 0,timeout:R},{mode:$}))),X&&(le.webkitTransition=ue,le.transition=ue),!f&&!g){const Ve=d.current.style;Ve.opacity=1-P/Xo(ne,M.current),X&&(Ve.webkitTransition=ue,Ve.transition=ue)}},[u,f,g,c,R]),x=mn(P=>{if(!N.current)return;if(qn=null,N.current=!1,p0.flushSync(()=>{r(!1)}),!s.current.isSwiping){s.current.isSwiping=null;return}s.current.isSwiping=null;const H=oa(c,u),$=Ri(u);let X;$?X=Xf(H,P.changedTouches,Br(P.currentTarget)):X=Kf(H,P.changedTouches,Zr(P.currentTarget));const te=$?s.current.startX:s.current.startY,Y=Xo($,M.current),ne=kp(X,te,E,Y),xe=ne/Y;if(Math.abs(s.current.velocity)>j&&(m.current=Math.abs((Y-ne)/s.current.velocity)*1e3),E){s.current.velocity>j||xe>C?S():o(0,{mode:"exit"});return}s.current.velocity<-j||1-xe>C?L():o(Xo($,M.current),{mode:"enter"})}),W=(P=!1)=>{if(!y){(P||!(p&&w))&&p0.flushSync(()=>{r(!0)});const H=Ri(u);!E&&M.current&&o(Xo(H,M.current)+(p?15:-20),{changeTransition:!1}),s.current.velocity=0,s.current.lastTime=null,s.current.lastTranslate=null,s.current.paperHit=!1,N.current=!0}},Z=mn(P=>{if(!M.current||!N.current||qn!==null&&qn!==s.current)return;W(!0);const H=oa(c,u),$=Ri(u),X=Xf(H,P.touches,Br(P.currentTarget)),te=Kf(H,P.touches,Zr(P.currentTarget));if(E&&M.current.contains(P.target)&&qn===null){const ue=qL(P.target,M.current);if(JL({domTreeShapes:ue,start:$?s.current.startX:s.current.startY,current:$?X:te,anchor:u})){qn=!0;return}qn=s.current}if(s.current.isSwiping==null){const ue=Math.abs(X-s.current.startX),Ve=Math.abs(te-s.current.startY),he=$?ue>Ve&&ue>zs:Ve>ue&&Ve>zs;if(he&&P.cancelable&&P.preventDefault(),he===!0||($?Ve>zs:ue>zs)){if(s.current.isSwiping=he,!he){x(P);return}s.current.startX=X,s.current.startY=te,!p&&!E&&($?s.current.startX-=zp:s.current.startY-=zp)}}if(!s.current.isSwiping)return;const Y=Xo($,M.current);let ne=$?s.current.startX:s.current.startY;E&&!s.current.paperHit&&(ne=Math.min(ne,Y));const xe=kp($?X:te,ne,E,Y);if(E)if(s.current.paperHit)xe===0&&(s.current.startX=X,s.current.startY=te);else if($?X<Y:te<Y)s.current.paperHit=!0,s.current.startX=X,s.current.startY=te;else return;s.current.lastTranslate===null&&(s.current.lastTranslate=xe,s.current.lastTime=performance.now()+1);const le=(xe-s.current.lastTranslate)/(performance.now()-s.current.lastTime)*1e3;s.current.velocity=s.current.velocity*.4+le*.6,s.current.lastTranslate=xe,s.current.lastTime=performance.now(),P.cancelable&&P.preventDefault(),o(xe)}),G=mn(P=>{var Y;if(P.defaultPrevented||P.defaultMuiPrevented||E&&(g||!d.current.contains(P.target))&&!M.current.contains(P.target))return;const H=oa(c,u),$=Ri(u),X=Xf(H,P.touches,Br(P.currentTarget)),te=Kf(H,P.touches,Zr(P.currentTarget));if(!E){if(h||!(P.target===l.current||(Y=M.current)!=null&&Y.contains(P.target)&&(typeof w=="function"?w(P,l.current,M.current):w)))return;if($){if(X>F)return}else if(te>F)return}P.defaultMuiPrevented=!0,qn=null,s.current.startX=X,s.current.startY=te,W()});ae.useEffect(()=>{if(Q==="temporary"){const P=Br(M.current);return P.addEventListener("touchstart",G),P.addEventListener("touchmove",Z,{passive:!E}),P.addEventListener("touchend",x),()=>{P.removeEventListener("touchstart",G),P.removeEventListener("touchmove",Z,{passive:!E}),P.removeEventListener("touchend",x)}}},[Q,E,G,Z,x]),ae.useEffect(()=>()=>{qn===s.current&&(qn=null)},[]),ae.useEffect(()=>{E||r(!1)},[E]);const[ee,V]=Zt("swipeArea",{ref:l,elementType:J8,ownerState:a,externalForwardedProps:{slots:B,slotProps:{swipeArea:O,...k}},additionalProps:{width:F,anchor:u}});return A.jsxs(ae.Fragment,{children:[A.jsx(p1,{open:Q==="temporary"&&y?!0:E,variant:Q,ModalProps:{BackdropProps:{...I,ref:d},...Q==="temporary"&&{keepMounted:!0},...T},hideBackdrop:g,anchor:u,transitionDuration:m.current||R,onClose:S,ref:n,slots:B,slotProps:{...k,backdrop:d0(k.backdrop??I,{ref:d}),paper:d0(k.paper??D,{style:{pointerEvents:Q==="temporary"&&!E&&!w?"none":""},ref:b})},...z}),!h&&Q==="temporary"&&A.jsx(x0,{children:A.jsx(ee,{...V})})]})});_.dist.process.env.NODE_ENV!=="production"&&(X8.propTypes={allowSwipeInChildren:v.oneOfType([v.func,v.bool]),anchor:v.oneOf(["bottom","left","right","top"]),children:v.node,disableBackdropTransition:v.bool,disableDiscovery:v.bool,disableSwipeToOpen:v.bool,hideBackdrop:v.bool,hysteresis:v.number,minFlingVelocity:v.number,ModalProps:v.shape({BackdropProps:v.shape({component:yi})}),onClose:v.func.isRequired,onOpen:v.func.isRequired,open:v.bool,PaperProps:v.shape({component:yi,style:v.object}),slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),docked:v.oneOfType([v.func,v.object]),paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object]),swipeArea:v.oneOfType([v.func,v.object]),transition:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,docked:v.elementType,paper:v.elementType,root:v.elementType,swipeArea:v.elementType,transition:v.elementType}),SwipeAreaProps:v.object,swipeAreaWidth:v.number,transitionDuration:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),variant:v.oneOf(["permanent","persistent","temporary"])});function Ko(e){if(typeof window>"u")return e;const t=ae.useRef(null);return ae.useLayoutEffect(()=>{t.current=e}),ae.useCallback((...n)=>{var a;(a=t.current)===null||a===void 0||a.call(t,...n)},[])}const _p={};function KL(e,t){_p[e]||(_p[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const eS={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1},Bp=ae,tS="useId"in Bp?()=>Bp.useId():()=>{};function K8({parentPopupState:e,popupId:t=tS(),variant:n,disableAutoFocus:a}){const c=ie.useRef(!0);ie.useEffect(()=>(c.current=!0,()=>{c.current=!1}),[]);const[i,u]=ie.useState(eS),f=ie.useCallback(E=>{c.current&&u(E)},[]),p=ie.useCallback(E=>f(D=>({...D,setAnchorElUsed:!0,anchorEl:E??void 0})),[]),h=Ko(E=>(i.isOpen?w(E):g(E),i)),g=Ko(E=>{const D=E instanceof Element?void 0:E,O=E instanceof Element?E:(E==null?void 0:E.currentTarget)instanceof Element?E.currentTarget:void 0;if((D==null?void 0:D.type)==="touchstart"){f(k=>({...k,_deferNextOpen:!0}));return}const F=D==null?void 0:D.clientX,R=D==null?void 0:D.clientY,Q=typeof F=="number"&&typeof R=="number"?{left:F,top:R}:void 0,B=k=>{if(!E&&!k.setAnchorElUsed&&n!=="dialog"&&KL("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return k;setTimeout(()=>e._setChildPopupState(L))}const z={...k,isOpen:!0,anchorPosition:Q,hovered:(D==null?void 0:D.type)==="mouseover"||k.hovered,focused:(D==null?void 0:D.type)==="focus"||k.focused,_openEventType:D==null?void 0:D.type};return k.setAnchorElUsed||(D!=null&&D.currentTarget?z.anchorEl=D.currentTarget:O&&(z.anchorEl=O)),z};f(k=>k._deferNextOpen?(setTimeout(()=>f(B),0),{...k,_deferNextOpen:!1}):B(k))}),C=E=>{const{_childPopupState:D}=E;return setTimeout(()=>{D==null||D.close(),e==null||e._setChildPopupState(null)}),{...E,isOpen:!1,hovered:!1,focused:!1}},w=Ko(E=>{const D=E instanceof Element?void 0:E;if((D==null?void 0:D.type)==="touchstart"){f(O=>({...O,_deferNextClose:!0}));return}f(O=>O._deferNextClose?(setTimeout(()=>f(C),0),{...O,_deferNextClose:!1}):C(O))}),j=ie.useCallback((E,D)=>{E?g(D):w(D)},[]),I=Ko(E=>{const{relatedTarget:D}=E;f(O=>O.hovered&&!(D instanceof Element&&qu(D,L))?O.focused?{...O,hovered:!1}:C(O):O)}),T=Ko(E=>{if(!E)return;const{relatedTarget:D}=E;f(O=>O.focused&&!(D instanceof Element&&qu(D,L))?O.hovered?{...O,focused:!1}:C(O):O)}),S=ie.useCallback(E=>f(D=>({...D,_childPopupState:E})),[]),L={...i,setAnchorEl:p,popupId:t??void 0,variant:n,open:g,close:w,toggle:h,setOpen:j,onBlur:T,onMouseLeave:I,disableAutoFocus:a??!!(i.hovered||i.focused),_setChildPopupState:S};return L}function rS({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e?t:void 0}:n==="popper"?{"aria-describedby":e?t:void 0}:void 0}}function e9(e){return{...rS(e),onClick:e.open,onTouchStart:e.open}}function t9({isOpen:e,anchorEl:t,anchorPosition:n,close:a,popupId:c,onMouseLeave:i,disableAutoFocus:u,_openEventType:f}){return{id:c,anchorEl:t,anchorPosition:n,anchorReference:f==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:a,onMouseLeave:i,...u&&{disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function nS(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function qu(e,t){const{anchorEl:n,_childPopupState:a}=t;return Fp(n,e)||Fp(nS(e,t),e)||a!=null&&qu(e,a)}function Fp(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}const iS=Kr(A.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),oS=Kr(A.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),aS=bt.createSvgIcon(A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"36",height:"36",rx:"6",fill:"#2E2E34"}),A.jsx("path",{d:"M17.1429 17.6429V12.5H18.8571V17.6429H24V19.3571H18.8571V24.5H17.1429V19.3571H12V17.6429H17.1429Z",fill:"white"})]}),"Plus"),sS=Ht()(e=>({input:{"& fieldset":{borderRadius:"100vh"},"& input::placeholder":{color:e.palette.text.primary,opacity:.2}},icon:{height:20,width:20,color:e.palette.text.primary,opacity:.2}}));function cS(e){const{classes:t}=sS(),n=bt.useTheme(),a=bt.useMediaQuery(n.breakpoints.down("sm"));return A.jsx(bt.Box,{sx:{padding:"0 16px"},children:A.jsx(Da,{className:t.input,ref:c=>{!a&&c&&setTimeout(()=>{var i;(i=c.querySelector("input"))==null||i.focus()},10)},"data-testid":`${e.dataTestId}-input`,fullWidth:!0,inputProps:{style:{fontSize:16,height:22,lineHeight:22}},placeholder:e.placeholder,size:"small",sx:{"& .MuiOutlinedInput-root":{"& .MuiOutlinedInput-input::placeholder":{fontWeight:300},"& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px"}}},variant:"outlined",value:e.value,onChange:c=>e.onChange(c.target.value),InputProps:{startAdornment:A.jsx(La,{position:"start",children:A.jsx(n8,{className:t.icon})})}})})}const lS=Ht()(()=>({wrapper:{maxHeight:240,display:"flex",flexDirection:"column",padding:0},searchList:{marginTop:12,overflow:"auto"}}));function fS(e){const{classes:t}=lS(),n=yN(),[a,c]=ie.useState(""),{items:i,filterFn:u}=e,f=ie.useMemo(()=>i.filter(p=>u(p,a)),[i,u,a]);return A.jsxs(vn,{className:`${t.wrapper} ${(e==null?void 0:e.className)??""}`,children:[e.title,A.jsx(cS,{value:a,dataTestId:e.dataTestId,onChange:p=>{c(p),e.onQueryChange&&e.onQueryChange(p)},placeholder:e.searchPlaceholder}),A.jsxs(Wo,{className:yn([t.searchList,n]),"data-testid":e.dataTestId,children:[A.jsx(vn,{sx:{padding:"0 16px"},children:e.listTitle}),e.loading||f.map(e.renderFn)]})]})}const r9=ie.memo(fS),uS=Ht()(e=>({card:{background:e.palette.input.background,width:"420px",[e.breakpoints.down("sm")]:{width:"100vw"}},cardContent:{paddingBottom:"0!important",[e.breakpoints.down("sm")]:{padding:"16px 10px",":last-child":{padding:"16px 10px"}}},title:{fontSize:"14px",marginBottom:"12px"},chainSearch:{maxHeight:"400px",[e.breakpoints.down("sm")]:{maxHeight:"600px"}},chainButton:{display:"flex",flexDirection:"column",padding:"8px",border:"1px solid transparent",borderRadius:"8px","&.Mui-selected":{border:"1px solid",borderColor:e.palette.primary.main}},chainItem:{display:"flex",flexDirection:"row",padding:"8px",borderRadius:"8px"}})),ea=5,Rp=e=>{const{classes:t}=uS(),{chainList:n,selectedChainConfig:a,showSearch:c,setShowSearch:i,onChainSelect:u}=e,[f,p]=ie.useMemo(()=>{const C=n??[],w=a,j=C.findIndex(I=>I.sdkName===(w==null?void 0:w.sdkName));return w&&j&&j>=ea?[[w,...C.slice(0,ea-1)],C.length>ea]:[C.slice(0,ea),C.length>ea]},[n,a]),h=ie.useMemo(()=>A.jsxs(Wo,{component:Yt,direction:"row","data-testid":"chain-short-list",children:[f.map(C=>A.jsx(Do,{title:C.displayName,children:A.jsxs(Yn,{selected:(a==null?void 0:a.sdkName)===C.sdkName,className:t.chainButton,"data-testid":`chain-button-${C.sdkName.toLowerCase()}`,onClick:()=>u(C.sdkName),children:[A.jsx(eo,{icon:C.icon}),A.jsx(Ke,{fontSize:"12px",lineHeight:"12px",marginTop:"8px",whiteSpace:"nowrap",children:C.symbol})]})},C.sdkName)),p?A.jsxs(Yn,{className:t.chainButton,onClick:()=>{i(!0)},children:[A.jsx(aS,{sx:{height:"36px",width:"36px"}}),A.jsx(Ke,{fontSize:"12px",lineHeight:"12px",marginTop:"8px",whiteSpace:"nowrap",children:"other"})]}):null]}),[t.chainButton,u,a==null?void 0:a.sdkName,i,p,f]),g=ie.useMemo(()=>A.jsx(r9,{searchPlaceholder:"Search for a chain",className:t.chainSearch,items:n??[],filterFn:(C,w)=>!w||C.displayName.toLowerCase().includes(w.toLowerCase()),renderFn:C=>A.jsxs(Yn,{dense:!0,className:t.chainItem,onClick:()=>{u(C.sdkName),i(!1)},children:[A.jsx(tc,{sx:{minWidth:"50px"},children:A.jsx(eo,{icon:C.icon,height:36})}),A.jsx(Ke,{fontSize:"16px",fontWeight:500,children:C.displayName})]},C.sdkName)}),[n,t.chainItem,t.chainSearch,u,i]);return f.length<2?null:A.jsx(Ti,{className:t.card,variant:"elevation",children:A.jsxs(Ai,{className:t.cardContent,children:[A.jsx(Ke,{className:t.title,fontSize:"16px",fontWeight:500,children:"Select a network"}),c?g:h]})})},n9=Kr(A.jsx("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward"),wt="data:image/svg+xml;base64,";function Pp(e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xIDQ0MS43NzQgNDExLjUyMkM0NTYuOTQ0IDM5MC4wNDQgNDY0Ljk4MSAzNjQuODEgNDY1IDMzOC41MjdWMTg0LjUxOUM0NjQuOTgxIDE3MS4zMSA0NTkuODE3IDE1OC44ODcgNDUwLjQ3IDE0OS41MzFaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNl8yMDIpIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzZfMjAyIiB4MT0iMTIwLjQ0MSIgeTE9IjQ2Mi41NjIiIHgyPSI0NjMuMTA5IiB5Mj0iOTUuNDYzNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMC4wNSIgc3RvcC1jb2xvcj0id2hpdGUiLz48c3RvcCBvZmZzZXQ9IjAuMzgiIHN0b3AtY29sb3I9IiNBN0IzRkYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM3NEE0RkYiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";{const t=e;return""}}function dS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"200",height:"201",viewBox:"0 0 200 201",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsxs("g",{clipPath:"url(#icons_tokens_wbtc_clipPath_0)",children:[A.jsx("path",{d:"M197.008 124.204C183.651 177.782 129.385 210.389 75.8004 197.028C22.2386 183.671 -10.3679 129.402 2.99519 75.8283C16.3465 22.2444 70.6123 -10.3645 124.18 2.99268C177.76 16.3499 210.365 70.625 197.006 124.205L197.007 124.204H197.008Z",fill:"#F7931A"}),A.jsx("path",{d:"M144.1 85.7619C146.091 72.4526 135.958 65.2984 122.102 60.5258L126.597 42.4971L115.623 39.7625L111.247 57.3165C108.362 56.5969 105.399 55.9189 102.454 55.2467L106.862 37.5769L95.8939 34.8423L91.3965 52.8651C89.009 52.3215 86.664 51.7842 84.3889 51.2181L84.4016 51.1614L69.2674 47.3822L66.3481 59.1037C66.3481 59.1037 74.4903 60.9701 74.3187 61.085C78.7628 62.1942 79.5665 65.1361 79.433 67.4679L74.3128 88.0067C74.6188 88.0844 75.0158 88.1969 75.4538 88.3729C75.0876 88.2819 74.698 88.1827 74.2938 88.0859L67.117 116.858C66.5739 118.208 65.1954 120.234 62.0883 119.465C62.1982 119.624 54.1118 117.474 54.1118 117.474L48.6631 130.037L62.9447 133.597C65.6016 134.263 68.2052 134.96 70.7692 135.616L66.2278 153.851L77.1897 156.586L81.6871 138.544C84.6817 139.357 87.5879 140.107 90.433 140.814L85.9508 158.771L96.9258 161.505L101.467 143.304C120.181 146.846 134.252 145.418 140.175 128.491C144.948 114.863 139.937 107.002 130.092 101.876C137.263 100.222 142.664 95.5061 144.104 85.7634L144.101 85.7609L144.1 85.7619ZM119.026 120.923C115.634 134.551 92.689 127.184 85.2498 125.336L91.2763 101.178C98.715 103.035 122.571 106.71 119.027 120.923H119.026ZM122.42 85.5644C119.326 97.9606 100.228 91.6628 94.0333 90.1185L99.4972 68.208C105.692 69.7522 125.643 72.6345 122.421 85.5644H122.42Z",fill:"white"})]})})}function hS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsxs("g",{clipPath:"url(#icons_tokens_busd_clipPath_0)",children:[A.jsx("path",{d:"M99.6979 0.420898L124.296 25.6121L62.3557 87.5527L37.7573 62.9542L99.6979 0.420898Z",fill:"#F0B90B",stroke:"#F0B90B"}),A.jsx("path",{d:"M137.04 37.7632L161.639 62.9543L62.3557 162.237L37.7573 137.639L137.04 37.7632Z",fill:"#F0B90B",stroke:"#F0B90B"}),A.jsx("path",{d:"M25.0135 75.1055L49.6119 100.297L25.0135 124.895L0.415039 100.297L25.0135 75.1055Z",fill:"#F0B90B",stroke:"#F0B90B"}),A.jsx("path",{d:"M174.382 75.1055L198.981 100.297L99.698 199.579L75.0996 174.981L174.382 75.1055Z",fill:"#F0B90B",stroke:"#F0B90B"})]})})}function pS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"230",height:"200",viewBox:"0 0 230 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsxs("g",{clipPath:"url(#icons_tokens_usdt_clipPath_0)",children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.0972 0.982283L0.176253 89.0373C0.0167314 89.3648 -0.0338199 89.7348 0.0319915 90.0931C0.0978028 90.4514 0.276524 90.7792 0.54202 91.0287L113.76 199.519C114.082 199.828 114.51 200 114.956 200C115.402 200 115.83 199.828 116.151 199.519L229.37 91.0355C229.635 90.786 229.814 90.4582 229.88 90.0998C229.946 89.7415 229.895 89.3716 229.736 89.0441L187.815 0.989056C187.679 0.69333 187.462 0.442813 187.188 0.267445C186.914 0.0920761 186.596 -0.00072543 186.27 0.000131083H43.6551C43.3283 -0.00393409 43.0074 0.086632 42.731 0.260904C42.4545 0.435177 42.2344 0.68571 42.0972 0.982283Z",fill:"#50AF95"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M129.502 98.0801C128.689 98.1411 124.49 98.3917 115.122 98.3917C107.671 98.3917 102.381 98.1682 100.525 98.0801C71.7311 96.8135 50.2389 91.8011 50.2389 85.7998C50.2389 79.7985 71.7311 74.7929 100.525 73.506V93.0881C102.408 93.2235 107.8 93.5419 115.251 93.5419C124.192 93.5419 128.669 93.1693 129.475 93.0948V73.5195C158.208 74.7997 179.653 79.8121 179.653 85.7998C179.653 91.7876 158.215 96.7999 129.475 98.0733L129.502 98.0801ZM129.502 71.4943V53.9713H169.601V27.25H60.4262V53.9713H100.518V71.4875C67.9312 72.9844 43.4248 79.4395 43.4248 87.1748C43.4248 94.9101 67.9312 101.358 100.518 102.862V159.014H129.495V102.842C162.008 101.345 186.474 94.8966 186.474 87.1681C186.474 79.4395 162.028 72.9912 129.495 71.4875L129.502 71.4943Z",fill:"white"})]})})}function gS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsxs("g",{clipPath:"url(#icons_tokens_dai_clipPath_0)",children:[A.jsx("path",{d:"M100 0C155.234 0 200 44.7754 200 100C200 155.234 155.234 200 100 200C44.7754 200 0 155.229 0 100C0 44.7754 44.7754 0 100 0Z",fill:"#F5AC37"}),A.jsx("path",{d:"M103.686 107.06H141.684C142.494 107.06 142.877 107.06 142.935 105.998C143.246 102.133 143.246 98.2448 142.935 94.3748C142.935 93.6233 142.562 93.3128 141.747 93.3128H66.1237C65.1877 93.3128 64.9357 93.6233 64.9357 94.5008V105.625C64.9357 107.06 64.9357 107.06 66.4343 107.06H103.686ZM138.691 80.3121C138.799 80.0286 138.799 79.7181 138.691 79.4391C138.057 78.0576 137.305 76.7391 136.432 75.5016C135.118 73.3866 133.57 71.4381 131.806 69.6875C130.974 68.63 130.011 67.6805 128.931 66.875C123.522 62.2715 117.091 59.0134 110.179 57.3754C106.692 56.5924 103.128 56.2189 99.5546 56.2504H65.9932C65.0572 56.2504 64.9312 56.6239 64.9312 57.4384V79.6236C64.9312 80.5597 64.9312 80.8117 66.1192 80.8117H138.241C138.241 80.8117 138.867 80.6857 138.993 80.3121H138.687H138.691ZM138.691 120.061C137.629 119.944 136.558 119.944 135.496 120.061H66.1868C65.2507 120.061 64.9357 120.061 64.9357 121.312V143.002C64.9357 144.001 64.9357 144.253 66.1868 144.253H98.1866C99.7166 144.37 101.247 144.262 102.745 143.943C107.389 143.61 111.957 142.602 116.313 140.941C117.897 140.392 119.427 139.677 120.871 138.817H121.308C128.809 134.916 134.902 128.787 138.745 121.263C138.745 121.263 139.182 120.318 138.691 120.07V120.061ZM52.3761 155.499V155.125V140.563V135.627V120.939C52.3761 120.124 52.3761 120.003 51.3771 120.003H37.814C37.0625 120.003 36.752 120.003 36.752 119.004V107.128H51.2511C52.0611 107.128 52.3761 107.128 52.3761 106.066V94.3163C52.3761 93.5648 52.3761 93.3803 51.3771 93.3803H37.814C37.0625 93.3803 36.752 93.3803 36.752 92.3813V81.3832C36.752 80.6947 36.752 80.5102 37.751 80.5102H51.1881C52.1241 80.5102 52.3761 80.5102 52.3761 79.3221V45.6348C52.3761 44.6358 52.3761 44.3838 53.6271 44.3838H100.5C103.902 44.5188 107.281 44.8923 110.625 45.5088C117.514 46.7823 124.134 49.2438 130.186 52.7584C134.2 55.1209 137.895 57.9739 141.184 61.259C143.66 63.8285 145.892 66.6095 147.872 69.5705C149.838 72.5721 151.472 75.7806 152.754 79.1331C152.912 80.0061 153.749 80.5957 154.622 80.4472H165.809C167.244 80.4472 167.244 80.4472 167.307 81.8242V92.0753C167.307 93.0743 166.934 93.3263 165.93 93.3263H157.304C156.431 93.3263 156.179 93.3263 156.242 94.4513C156.584 98.2583 156.584 102.079 156.242 105.886C156.242 106.948 156.242 107.074 157.434 107.074H167.303C167.739 107.636 167.303 108.199 167.303 108.766C167.366 109.49 167.366 110.224 167.303 110.948V118.513C167.303 119.575 166.992 119.89 166.052 119.89H154.239C153.416 119.733 152.615 120.259 152.426 121.078C149.613 128.391 145.113 134.947 139.299 140.203C137.175 142.116 134.943 143.916 132.612 145.576C130.11 147.016 127.675 148.515 125.11 149.703C120.39 151.827 115.44 153.393 110.359 154.387C105.535 155.251 100.644 155.643 95.734 155.575H52.3581V155.512L52.3761 155.499Z",fill:"#FEFEFD"})]})})}function mS(){return A.jsx("svg",{width:"92",height:"91",viewBox:"0 0 92 91",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M91.3583 45.4564C91.3583 20.351 70.9064 0 45.6817 0C20.4571 0 0 20.351 0 45.4564C0 50.6467 0.876215 55.6319 2.48433 60.2786C2.49464 60.2991 2.58226 60.5658 2.58226 60.5658C3.23169 62.6224 0.0103084 63.4277 0.0103084 64.6586C0.0103084 66.587 6.80355 66.3254 6.80355 68.5667C6.80355 70.5208 0.0824673 71.126 0.0824673 73.0954C0.0824673 75.8188 14.9627 74.87 15.1534 77.2087C15.2977 79.014 10.0352 79.1269 10.0043 81.0553C9.95277 84.1377 30.3119 83.1273 30.3119 85.1788C30.3119 86.7329 21.0498 86.1687 21.0498 88.0048C21.0498 89.8409 33.2395 91 46.6765 91C60.1135 91 69.3808 89.5127 69.3808 87.9073C69.3808 86.302 60.732 86.6303 60.9124 85.184C61.2217 82.6555 80.4211 83.9479 80.4211 81.0194C80.4211 79.4756 75.1432 79.1166 75.3133 77.4549C75.5555 75.1059 91.3583 75.4547 91.3583 73.0134C91.3583 71.0952 83.5239 70.6233 83.5394 68.6283C83.5497 66.5921 91.3583 66.6793 91.3068 64.7714C91.2655 63.3046 87.8122 63.3405 88.8946 60.2324C90.4924 55.6011 91.3686 50.6313 91.3686 45.4564H91.3583ZM76.8441 58.3656C75.2566 61.9403 71.6899 61.2223 71.2878 62.725C70.8704 64.279 75.6844 64.5047 75.6844 66.1305C75.6844 68.1051 61.0104 67.3153 61.1547 69.9207C61.2474 71.5619 71.5765 71.8389 71.3806 73.5519C71.0971 76.0342 55.3768 74.7931 55.2222 77.1728C55.1088 78.9166 62.8968 78.9781 62.9123 80.5681C62.9277 81.9067 56.7994 82.635 45.0581 82.635C31.6881 82.635 25.1835 81.9169 25.9257 80.4245C26.6163 79.0294 38.4555 79.2859 38.337 77.0907C38.2184 74.9008 17.313 75.5419 16.6842 73.4134C16.1584 71.644 23.5547 71.2798 23.5083 69.5976C23.462 67.8846 14.0401 68.2744 13.8339 66.1972C13.6999 64.8381 18.7562 64.9201 18.5397 63.2071C18.3799 61.9608 16.2924 62.1352 15.0554 59.5657C13.0608 55.2729 11.9371 50.4929 11.9371 45.4513C11.9371 26.9056 27.0493 11.868 45.6869 11.868C64.3245 11.868 79.4366 26.9056 79.4366 45.4513C79.4366 50.0262 78.514 54.3856 76.8492 58.3604L76.8441 58.3656Z",fill:"white"})})}function MS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 254 254",width:"254",height:"254",viewBox:"0 0 254 254",children:[A.jsx("circle",{cx:"127",cy:"127",r:"127",fill:"#e84142",fillRule:"evenodd",clipRule:"evenodd"}),A.jsx("path",{fill:"#fff",d:"M171.8 130.3c4.4-7.6 11.5-7.6 15.9 0l27.4 48.1c4.4 7.6.8 13.8-8 13.8h-55.2c-8.7 0-12.3-6.2-8-13.8l27.9-48.1zm-53-92.6c4.4-7.6 11.4-7.6 15.8 0l6.1 11L155.1 74c3.5 7.2 3.5 15.7 0 22.9l-48.3 83.7c-4.4 6.8-11.7 11.1-19.8 11.6H46.9c-8.8 0-12.4-6.1-8-13.8l79.9-140.7z"})]})}function yS(){return A.jsxs("svg",{id:"icons_tokens_bnb_svg",style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"511.97",height:"511.97",viewBox:"0 0 511.97 511.97",children:[A.jsx("title",{children:"binance-coin-bnb"}),A.jsx("g",{id:"icons_tokens_bnb_g_0","data-name":"icons_tokens_bnb_g_0",children:A.jsxs("g",{id:"icons_tokens_bnb_g_1","data-name":"icons_tokens_bnb_g_1",children:[A.jsx("path",{fill:"#f3ba2f",d:"M156.56,215.14,256,115.71l99.47,99.47,57.86-57.85L256,0,98.71,157.28l57.85,57.85M0,256l57.86-57.87L115.71,256,57.85,313.83Zm156.56,40.85L256,396.27l99.47-99.47,57.89,57.82,0,0L256,512,98.71,354.7l-.08-.09,57.93-57.77M396.27,256l57.85-57.85L512,256l-57.85,57.85Z"}),A.jsx("path",{fill:"#f3ba2f",d:"M314.66,256h0L256,197.25,212.6,240.63h0l-5,5L197.33,255.9l-.08.08.08.08L256,314.72l58.7-58.7,0,0-.05,0"})]})})]})}function vS(){return A.jsx("svg",{version:"1.1",id:"Symbol",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 384 383",style:{width:"100%",height:"100%"},xmlSpace:"preserve",children:A.jsx("path",{fill:"#FFF572",d:`M383.5,0H0.5v383h383V249.3h-63.6C298,298.1,248.7,332,192.3,332c-77.8,0-140.8-63.6-140.8-140.8
227
- C51.4,114,114.5,51,192.3,51c57.5,0,106.8,35,128.7,84.9h62.5V0z`})})}function xS(){return A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",height:"182",width:"182",viewBox:"0 0 182 182",style:{maxHeight:"100%",maxWidth:"100%"},children:A.jsx("g",{children:A.jsx("g",{id:"Layer_1",focusable:"false",children:A.jsxs("g",{children:[A.jsx("path",{d:"M90.9,181v-45.2l-55.9-32.7,55.9,77.8Z",fill:"#f0cdc2",stroke:"#1616b4",strokeLinejoin:"round"}),A.jsx("path",{d:"M91.1,181v-45.2l55.9-32.7-55.9,77.8Z",fill:"#c9b3f5",stroke:"#1616b4",strokeLinejoin:"round"}),A.jsx("path",{d:"M90.9,124.6v-57.6l-56.5,25.3,56.5,32.3Z",fill:"#88aaf1",stroke:"#1616b4",strokeLinejoin:"round"}),A.jsx("path",{d:"M91.1,124.6v-57.6l56.5,25.3-56.5,32.3Z",fill:"#c9b3f5",stroke:"#1616b4",strokeLinejoin:"round"}),A.jsx("path",{d:"M34.4,92.3L90.9,1v66l-56.5,25.3Z",fill:"#f0cdc2",stroke:"#1616b4",strokeLinejoin:"round"}),A.jsx("path",{d:"M147.6,92.3L91.1,1v66l56.5,25.3Z",fill:"#b8faf6",stroke:"#1616b4",strokeLinejoin:"round"})]})})})})}function bS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M50 100C77.6142 100 100 77.6142 100 50C100 22.3858 77.6142 0 50 0C22.3858 0 0 22.3858 0 50C0 77.6142 22.3858 100 50 100Z",fill:"#13B5EC"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.75 40.3125L65 33.75V46.875L53.75 40.3125ZM65 68.4375L50 77.1875L35 68.4375V53.125L50 61.875L65 53.125V68.4375ZM35 33.75L46.25 40.3125L35 46.875V33.75ZM51.875 43.4375L63.125 50L51.875 56.5625V43.4375ZM48.125 56.5625L36.875 50L48.125 43.4375V56.5625ZM63.125 30.625L50 38.125L36.875 30.625L50 22.8125L63.125 30.625ZM31.25 29.375V70.3125L50 80.9375L68.75 70.3125V29.375L50 18.75L31.25 29.375Z",fill:"white"})]})}function CS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"96",height:"84",viewBox:"0 0 96 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("g",{clipPath:"url(#icons_tokens_sol_clipPath_0)",children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.368 64.052A3.214 3.214 0 0 1 19.744 63l73.312.06a1.612 1.612 0 0 1 1.188 2.698l-15.612 17.19A3.213 3.213 0 0 1 76.254 84l-73.31-.06a1.611 1.611 0 0 1-1.188-2.698l15.612-17.19Zm76.876-14.31a1.611 1.611 0 0 1-1.188 2.698l-73.31.06a3.213 3.213 0 0 1-2.378-1.052l-15.612-17.2a1.612 1.612 0 0 1 1.188-2.698l73.312-.06a3.213 3.213 0 0 1 2.376 1.052l15.612 17.2ZM17.368 1.052A3.215 3.215 0 0 1 19.744 0l73.312.06a1.612 1.612 0 0 1 1.188 2.698l-15.612 17.19A3.213 3.213 0 0 1 76.254 21l-73.31-.06a1.611 1.611 0 0 1-1.188-2.698l15.612-17.19Z",fill:"url(#icons_tokens_sol_linearGradient_0)"})})})}function wS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"200",height:"200",version:"1.2",baseProfile:"tiny",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 112 112",overflow:"visible",xmlSpace:"preserve",children:A.jsx("path",{fill:"currentColor",d:"M86.6 37.4h-9.9c-1.1 0-2.2-.5-3-1.3l-4-4.5c-1.2-1.3-3.1-1.4-4.5-.3l-.3.3-3.4 3.9c-1.1 1.3-2.8 2-4.5 2H2.9C1.4 41.9.4 46.6 0 51.3h51.2c.9 0 1.8-.4 2.4-1l4.8-5c.6-.6 1.4-1 2.3-1h.2c.9 0 1.8.4 2.4 1.1l4 4.5c.8.9 1.9 1.4 3 1.4H112c-.4-4.7-1.4-9.4-2.9-13.8H86.6zM53.8 65l-4-4.5c-1.2-1.3-3.1-1.4-4.5-.3l-.3.3-3.5 3.9c-1.1 1.3-2.7 2-4.4 2H.8c.9 4.8 2.5 9.5 4.6 14h25.5c.9 0 1.7-.4 2.4-1l4.8-5c.6-.6 1.4-1 2.3-1h.2c.9 0 1.8.4 2.4 1.1l4 4.5c.8.9 1.9 1.4 3 1.4h56.6c2.1-4.4 3.7-9.1 4.6-14H56.8c-1.2 0-2.3-.5-3-1.4zm19.6-43.6 4.8-5c.6-.6 1.4-1 2.3-1h.2c.9 0 1.8.4 2.4 1l4 4.5c.8.9 1.9 1.3 3 1.3h10.8c-18.8-24.8-54.1-29.7-79-11-4.1 3.1-7.8 6.8-11 11H71c1 .2 1.8-.2 2.4-.8zM34.7 94.2c-1.2 0-2.3-.5-3-1.3l-4-4.5c-1.2-1.3-3.2-1.4-4.5-.2l-.2.2-3.5 3.9c-1.1 1.3-2.7 2-4.4 2h-.2C36 116.9 71.7 118 94.4 96.7c.9-.8 1.7-1.7 2.6-2.6H34.7z"})})}function NS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{cx:"100",cy:"100",r:"100",fill:"#6FBCEF"}),A.jsx("mask",{id:"mask0_309_9859",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"200",height:"200",children:A.jsx("path",{d:"M200 100C200 155.228 155.228 200 100 200C44.7715 200 0 155.228 0 100C0 44.7715 44.7715 0 100 0C155.228 0 200 44.7715 200 100Z",fill:"#8DCBF5"})}),A.jsxs("g",{mask:"url(#mask0_309_9859)",children:[A.jsx("path",{d:"M113 -4L174 19L196 63.5C196 63.5 169.5 40.5 138.5 24.5C107.5 8.5 58.5 4 58.5 4L113 -4Z",fill:"#7AC1F2"}),A.jsx("path",{d:"M15.8341 34.0023C15.8341 34.0023 72.9887 50.5017 103.494 64.5009C134 78.5001 144.388 89.0206 163.495 112.001C175.611 126.574 189.379 153.053 189.379 153.053L165.999 179.499C165.999 179.499 158.272 146.022 145.999 128.499C129.42 104.828 107.493 94.0004 86.4965 84.5002C65.5 75 -0.00518256 57.0917 -0.00518256 57.0917L15.8341 34.0023Z",fill:"#7AC1F2"}),A.jsx("path",{d:"M2.49892 130.498L-1.50005 100.5C-1.50005 100.5 45.5 117.5 75.5 138.5C105.5 159.5 123.499 199.998 123.499 199.998L89.9989 201.498C89.9989 201.498 86.5 192 62.5 165.5C38.5 139 2.49892 130.498 2.49892 130.498Z",fill:"#7AC1F2"})]}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.4743 158.743C56.7736 178.317 77.0124 190 99.6108 190C122.209 190 142.444 178.317 153.747 158.743C165.047 139.175 165.047 115.807 153.747 96.2343L106.133 13.7657C103.234 8.74477 95.9873 8.74478 93.0885 13.7657L45.4743 96.2343C34.1752 115.803 34.1752 139.17 45.4743 158.743ZM86.1978 52.9996L96.3497 35.416C97.799 32.9054 101.423 32.9054 102.872 35.416L141.927 103.062C149.102 115.489 150.448 129.872 145.967 143.034C145.501 140.887 144.848 138.69 143.969 136.47C138.575 122.856 126.377 112.351 107.708 105.244C94.8728 100.375 86.6799 93.2146 83.3509 83.96C79.063 72.0315 83.5416 59.0237 86.1978 52.9996ZM68.8873 82.9829L57.2949 103.062C48.4619 118.361 48.4619 136.624 57.2949 151.924C66.128 167.222 81.9447 176.352 99.6108 176.352C111.344 176.352 122.265 172.321 130.864 165.131C131.986 162.307 135.458 151.973 131.168 141.32C127.205 131.484 117.669 123.632 102.821 117.976C86.0386 111.61 75.1351 101.671 70.4201 88.4448C69.7707 86.6237 69.2662 84.7988 68.8873 82.9829Z",fill:"white"})]})}function jS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m 127.67411,256 c 38.02499,0 72.18784,-16.49691 95.68658,-42.70676 -10.93123,-9.47577 -27.40461,-10.05162 -39.04159,-0.68556 l -2.22314,1.78953 c -21.30703,17.14908 -52.35448,14.61676 -70.58505,-5.7577 -9.94332,-11.11197 -26.972141,-12.24661 -38.308517,-2.55277 L 47.570215,228.00608 C 69.524032,245.52451 97.372724,256 127.67411,256 Z m 41.60702,-61.98133 C 189.57566,177.68394 218.1014,178.27 237.62049,194.0459 249.28754,174.76386 256,152.16374 256,128.00034 c 0,-26.85042 -8.28793,-51.769568 -22.45139,-72.350916 -9.131,-1.939587 -19.02787,0.325741 -26.54036,6.966212 l -2.13843,1.889976 C 184.37854,82.617466 153.24774,81.516899 134.09348,62.003681 123.64732,51.36103 106.58366,51.011574 95.70776,61.217474 L 65.879285,89.2086 49.470132,71.811468 79.298607,43.820001 C 99.6717,24.70176 131.636,25.356444 151.20497,45.292785 c 10.2248,10.416813 26.8437,11.004304 37.78245,1.335536 l 2.13842,-1.889909 c 6.64005,-5.869189 14.32197,-9.825846 22.366,-11.906837 C 190.75623,12.421275 160.66937,0 127.67411,0 62.5305,0 8.7242884,48.41669 0.45065936,111.14157 20.23734,101.67056 44.644196,105.31504 60.77713,121.79424 c 10.185043,10.40324 26.584631,11.50108 38.071994,2.54936 l 16.677656,-12.99623 c 20.96064,-16.333367 50.58976,-15.542866 70.64448,1.88493 l 32.46987,28.21744 -15.73073,18.00977 -32.46987,-28.21675 c -11.40333,-9.91056 -28.25178,-10.36033 -40.17025,-1.07263 l -16.67765,12.9969 C 92.486461,159.61353 62.356352,157.59639 43.643919,138.48264 32.762761,127.36794 14.966434,126.98019 3.609064,137.61037 L 0,140.98839 c 2.7009241,26.73389 13.649562,51.04108 30.269414,70.34973 l 27.34647,-23.38517 c 21.235909,-18.16038 53.135306,-16.03488 71.761456,4.78115 9.73221,10.87688 26.30602,12.22823 37.67997,3.07342 z",fill:"#ffffff",id:"path1050",style:{strokeWidth:6.82333}})})}function TS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"111",height:"111",viewBox:"0 0 111 111",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M54.921 110.034C85.359 110.034 110.034 85.402 110.034 55.017C110.034 24.6319 85.359 0 54.921 0C26.0432 0 2.35281 22.1714 0 50.3923H72.8467V59.6416H3.9565e-07C2.35281 87.8625 26.0432 110.034 54.921 110.034Z",fill:"#0052FF"})})}function AS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"360",height:"360",viewBox:"0 0 360 360",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"360",height:"360",rx:"180",fill:"#6C00F6"}),A.jsx("path",{d:"M218.804 99.5819L168.572 128.432V218.473L140.856 234.539L112.97 218.46V186.313L140.856 170.39L158.786 180.788V154.779L140.699 144.511L90.4795 173.687V231.399L140.869 260.418L191.088 231.399V141.371L218.974 125.291L246.846 141.371V173.374L218.974 189.597L200.887 179.107V204.986L218.804 215.319L269.519 186.47V128.432L218.804 99.5819Z",fill:"white"})]})}function IS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M50.7548 0L24.1998 15.3175L33.9648 20.975L50.7573 11.3175L67.5498 20.975L77.3148 15.3175L50.7548 0ZM67.5498 28.975L77.3148 34.635V45.9525L60.5198 55.61V74.9275L50.7573 80.585L40.9923 74.9275V55.61L24.1973 45.95V34.6325L33.9623 28.9725L50.7548 38.6325L67.5498 28.9725V28.975Z",fill:"#F0B90B"}),A.jsx("path",{d:"M77.3148 53.95V65.2675L67.5498 70.9275V59.61L77.3148 53.95Z",fill:"#F0B90B"}),A.jsx("path",{d:"M67.4525 78.925L84.2475 69.2675V49.95L94.0125 44.2925V74.9275L67.4525 90.245V78.925ZM84.25 30.635L74.48 24.975L84.25 19.3175L94.015 24.975V36.2925L84.25 41.9525V30.635ZM40.9925 94.3425V83.025L50.755 88.6825L60.52 83.025V94.3425L50.7575 100L40.9925 94.3425ZM33.9625 70.925L24.1975 65.2675V53.9525L33.9625 59.61V70.925ZM50.755 30.635L40.9925 24.975L50.755 19.3175L60.52 24.975L50.755 30.635ZM27.03 24.975L17.265 30.635V41.9525L7.5 36.2925V24.975L17.265 19.3175L27.03 24.975Z",fill:"#F0B90B"}),A.jsx("path",{d:"M7.5 44.2925L17.265 49.9525V69.2675L34.06 78.9275V90.245L7.5 74.925V44.2925Z",fill:"#F0B90B"})]})}function ES(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg","data-name":"86977684-12db-4850-8f30-233a7c267d11",width:"2000",height:"2000",viewBox:"0 0 2000 2000",children:[A.jsx("path",{fill:"#2775ca",d:"M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z"}),A.jsx("path",{fill:"#fff",d:"M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z"}),A.jsx("path",{fill:"#fff",d:"M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zm441.67-1300c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z"})]})}function LS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"470.29",height:"514.25",viewBox:"0 0 470.29 514.25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"m291.13 237.47 35.654-60.5 96.103 149.68 0.046 28.727-0.313-197.67c-0.228-4.832-2.794-9.252-6.887-11.859l-173.02-99.525c-4.045-1.99-9.18-1.967-13.22 0.063-0.546 0.272-1.06 0.57-1.548 0.895l-0.604 0.379-167.94 97.322-0.651 0.296c-0.838 0.385-1.686 0.875-2.48 1.444-3.185 2.283-5.299 5.66-5.983 9.448-0.103 0.574-0.179 1.158-0.214 1.749l0.264 161.08 89.515-138.74c11.271-18.397 35.825-24.323 58.62-24.001l26.753 0.706-157.64 252.8 18.582 10.697 159.52-263.24 70.51-0.256-159.11 269.88 66.306 38.138 7.922 4.556c3.351 1.362 7.302 1.431 10.681 0.21l175.45-101.68-33.544 19.438-92.775-150.04zm13.602 195.93-66.969-105.11 40.881-69.371 87.952 138.63-61.864 35.851z",fill:"#2D374B"}),A.jsx("polygon",{points:"237.77 328.29 304.74 433.4 366.6 397.54 278.65 258.92",fill:"#28A0F0"}),A.jsx("path",{d:"m422.94 355.38-0.046-28.727-96.103-149.68-35.654 60.5 92.774 150.04 33.544-19.438c3.29-2.673 5.281-6.594 5.49-10.825l-5e-3 -1.869z",fill:"#28A0F0"}),A.jsx("path",{d:"m20.219 382.47 47.369 27.296 157.63-252.8-26.753-0.706c-22.795-0.322-47.35 5.604-58.62 24.001l-89.515 138.74-30.115 46.271v17.194z",fill:"#fff"}),A.jsx("polygon",{points:"316.2 156.96 245.69 157.22 86.17 420.46 141.93 452.56 157.09 426.85",fill:"#fff"}),A.jsx("path",{d:"m452.65 156.6c-0.59-14.746-8.574-28.245-21.08-36.104l-175.29-100.8c-12.371-6.229-27.825-6.237-40.218-4e-3 -1.465 0.739-170.46 98.752-170.46 98.752-2.339 1.122-4.592 2.458-6.711 3.975-11.164 8.001-17.969 20.435-18.668 34.095v208.76l30.115-46.271-0.263-161.08c0.035-0.589 0.109-1.169 0.214-1.741 0.681-3.79 2.797-7.171 5.983-9.456 0.795-0.569 172.68-100.06 173.23-100.34 4.04-2.029 9.175-2.053 13.22-0.063l173.02 99.523c4.093 2.607 6.659 7.027 6.887 11.859v199.54c-0.209 4.231-1.882 8.152-5.172 10.825l-33.544 19.438-17.308 10.031-61.864 35.852-62.737 36.357c-3.379 1.221-7.33 1.152-10.681-0.21l-74.228-42.693-15.163 25.717 66.706 38.406c2.206 1.255 4.171 2.367 5.784 3.272 2.497 1.4 4.199 2.337 4.8 2.629 4.741 2.303 11.563 3.643 17.71 3.643 5.636 0 11.132-1.035 16.332-3.072l182.22-105.53c10.459-8.104 16.612-20.325 17.166-33.564v-201.75z",fill:"#96BEDC"})]})}function SS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",id:"optimism-logo-circle",width:"122",height:"122",viewBox:"0 0 122 122",children:[A.jsx("circle",{id:"Ellipse_11","data-name":"Ellipse 11",cx:"61",cy:"61",r:"61",fill:"#ff0420"}),A.jsx("path",{id:"Path_139","data-name":"Path 139",d:"M113.533,178.026a14.656,14.656,0,0,1-8.924-2.563,8.762,8.762,0,0,1-3.432-7.413,16.433,16.433,0,0,1,.229-2.471q.595-3.3,1.693-7.917,3.112-12.585,16.062-12.585a15.966,15.966,0,0,1,6.315,1.19,9.6,9.6,0,0,1,4.393,3.478,9.333,9.333,0,0,1,1.6,5.492,16.288,16.288,0,0,1-.229,2.425q-.687,4.073-1.647,7.917-1.6,6.269-5.537,9.381Q120.123,178.026,113.533,178.026Zm.641-6.59a6.5,6.5,0,0,0,4.348-1.51,8.424,8.424,0,0,0,2.608-4.622q1.053-4.3,1.6-7.505a10.5,10.5,0,0,0,.183-1.968q0-4.165-4.347-4.164a6.681,6.681,0,0,0-4.393,1.51,8.573,8.573,0,0,0-2.563,4.622q-.824,3.066-1.647,7.505a9.791,9.791,0,0,0-.183,1.922Q109.78,171.436,114.174,171.436Z",transform:"translate(-70.332 -100.849)",fill:"#fff"}),A.jsx("path",{id:"Path_140","data-name":"Path 140",d:"M205.3,178.612a.97.97,0,0,1-.778-.32,1.1,1.1,0,0,1-.137-.824l6.315-29.746a1.31,1.31,0,0,1,.5-.824,1.4,1.4,0,0,1,.87-.32h12.173a14.148,14.148,0,0,1,8.146,2.105,6.9,6.9,0,0,1,3.112,6.087,10.955,10.955,0,0,1-.275,2.38,12.39,12.39,0,0,1-4.622,7.78q-3.432,2.517-9.427,2.517H215l-2.105,10.022a1.311,1.311,0,0,1-.5.824,1.4,1.4,0,0,1-.869.32Zm16.2-17.482a5.451,5.451,0,0,0,3.341-1.052,4.942,4.942,0,0,0,1.922-3.02,8.022,8.022,0,0,0,.137-1.373,2.543,2.543,0,0,0-.778-2.014,3.836,3.836,0,0,0-2.654-.732h-5.491l-1.739,8.191Z",transform:"translate(-142.055 -101.892)",fill:"#fff"})]})}function DS(){return A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{maxHeight:"100%",maxWidth:"100%"},width:"256",height:"256",fill:"none",viewBox:"0 0 800 800",children:A.jsxs("g",{clipPath:"url(#icons_chains_osmo_clipPath_0)",children:[A.jsx("path",{fill:"#5E12A0",d:"M673.964 193.237C667.62 168.805 647.227 144.373 610.519 117.174C581.062 95.5081 549.792 83.0615 524.867 83.0615C519.882 83.0615 515.35 83.5225 510.819 84.4445C499.489 86.7494 489.519 95.0471 483.174 107.494C475.47 122.245 473.658 142.068 478.643 154.053C480.455 157.741 482.721 162.351 485.44 166.5C461.422 181.251 447.826 185.4 446.013 185.861C508.553 207.067 560.669 251.321 593.298 308.944L593.751 303.413C595.111 288.2 599.642 270.683 605.987 252.704C612.332 254.548 618.676 255.47 625.021 255.47C641.788 255.47 656.29 248.555 665.354 236.109C674.418 223.662 678.043 207.067 673.964 193.237Z"}),A.jsx("path",{fill:"url(#icons_chains_osmo_radialGradient_0)",d:"M608.706 239.342C649.945 250.867 666.713 218.598 661.275 196.932C655.383 175.265 636.35 153.138 602.814 128.245C569.279 103.352 535.29 93.2098 513.537 97.8197C491.784 102.43 485.44 136.081 490.878 148.989C493.144 154.06 498.129 161.436 504.927 169.733C496.316 175.726 488.159 180.336 481.361 184.485C523.054 203.385 559.309 232.888 586.5 269.767C589.672 257.321 594.204 246.257 598.282 236.576C601.455 237.037 605.08 237.959 608.706 239.342Z"}),A.jsx("path",{fill:"url(#icons_chains_osmo_radialGradient_1)",d:"M372.594 691.101C512.504 691.101 625.924 575.729 625.924 433.41C625.924 291.091 512.504 175.719 372.594 175.719C232.685 175.719 119.265 291.091 119.265 433.41C119.265 575.729 232.685 691.101 372.594 691.101Z"}),A.jsx("path",{fill:"#A98698",d:"M640.427 175.721C605.985 138.842 576.982 129.161 542.087 121.325C514.896 114.871 522.146 99.1973 555.229 102.424C539.367 96.8924 524.412 95.5094 513.536 97.8143C491.783 102.424 485.439 136.076 490.877 148.984C493.143 154.055 498.128 161.43 504.925 169.728C492.69 178.026 482.266 184.019 473.656 188.629C477.735 190.472 482.72 192.777 488.611 196.004C504.019 204.302 520.787 218.132 520.787 218.132C495.409 196.004 500.847 185.863 535.742 160.969C546.618 153.133 566.558 154.055 585.139 163.735C603.719 173.416 625.472 197.848 625.472 197.848L604.626 238.415C605.985 238.876 607.345 239.337 608.704 239.798C621.847 243.486 632.27 242.564 640.427 239.337C649.944 233.344 674.869 213.061 640.427 175.721Z",opacity:".6"}),A.jsx("path",{fill:"#5E12A0",d:"M541.631 143.45C550.695 147.138 562.478 153.592 576.979 163.273C594.2 174.797 609.155 187.705 618.672 197.847C602.811 219.052 592.388 248.094 586.043 268.377C589.215 272.987 592.841 277.597 596.013 282.207C599.185 270.682 604.624 253.626 611.875 236.569C613.687 237.03 615.953 237.03 618.219 237.03C623.657 237.03 630.002 236.108 634.987 231.96C638.612 229.194 642.691 224.123 642.238 214.903C642.238 206.144 635.44 195.081 621.391 181.712C611.421 172.031 597.826 161.429 584.23 151.748C545.257 125.472 518.066 118.096 505.83 130.543C497.672 138.84 498.579 148.982 501.298 156.358C486.796 166.039 474.56 172.953 466.403 177.563C471.841 179.407 476.826 181.712 482.264 184.017C496.766 176.18 517.613 162.812 541.631 143.45ZM627.283 209.371C628.642 211.676 629.095 213.981 629.095 215.364C629.095 219.513 627.736 220.896 626.83 221.818C625.017 223.201 621.391 224.123 618.219 224.123C620.938 218.591 624.11 213.981 627.283 209.371ZM515.347 140.684C516.706 139.301 520.332 138.379 526.223 139.301C521.691 142.989 517.159 146.216 512.628 149.443C512.174 146.216 512.627 142.989 515.347 140.684Z"}),A.jsx("path",{fill:"#5E12A0",d:"M372.596 160.503C224.405 160.503 104.311 282.664 104.311 433.406C104.311 584.149 224.405 706.31 372.596 706.31C520.786 706.31 640.88 584.149 640.88 433.406C640.88 282.664 520.333 160.503 372.596 160.503ZM372.596 691.098C232.562 691.098 119.266 575.851 119.266 433.406C119.266 290.962 232.562 175.715 372.596 175.715C512.629 175.715 625.925 290.962 625.925 433.406C625.925 575.851 512.176 691.098 372.596 691.098Z"}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_0)",d:"M372.594 691.101C512.504 691.101 625.924 575.729 625.924 433.41C625.924 291.091 512.504 175.719 372.594 175.719C232.685 175.719 119.265 291.091 119.265 433.41C119.265 575.729 232.685 691.101 372.594 691.101Z",opacity:".6"}),A.jsx("path",{fill:"#A98698",d:"M370.783 659.75C232.562 637.161 138.754 504.858 161.413 364.258C171.383 302.025 202.199 249.011 245.705 210.75C182.259 248.089 135.128 313.088 122.439 392.378C100.233 532.978 194.042 665.281 331.809 687.87C408.851 700.777 483.173 676.345 538.008 628.403C489.517 656.984 430.603 669.43 370.783 659.75Z",opacity:".6"}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_1)",d:"M412.93 179.411C349.031 168.808 286.945 183.56 236.189 216.29C235.282 217.212 234.376 218.133 234.376 218.133C253.863 206.148 282.413 195.545 282.413 195.545C208.998 238.878 186.339 288.203 186.339 288.203C214.889 231.963 298.728 192.318 364.439 189.552C430.151 186.786 473.203 206.609 525.772 249.481C578.342 292.813 610.064 381.322 606.892 451.392C604.173 521.462 567.918 578.163 567.918 578.163C592.844 545.433 607.799 521.462 617.315 497.03C619.128 489.654 620.941 482.278 621.847 474.441C644.506 334.302 551.151 201.999 412.93 179.411Z",opacity:".6"}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_2)",d:"M613.235 431.104C613.235 566.173 505.377 675.887 372.595 675.887C239.812 675.887 131.501 566.173 131.501 431.104H613.235Z"}),A.jsx("g",{opacity:".6",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_3)",d:"M594.201 431.104C594.201 562.946 491.781 670.817 363.077 675.887C366.25 675.887 369.422 675.887 372.594 675.887C505.377 675.887 613.234 566.173 613.234 431.104H594.201Z",opacity:".6"})}),A.jsx("g",{opacity:".7",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_4)",d:"M165.49 431.104H131.501C131.501 566.173 239.359 675.887 372.142 675.887C378.033 675.887 383.471 675.887 388.909 675.426C264.284 666.207 165.49 560.18 165.49 431.104Z",opacity:".7"})}),A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_5)",d:"M612.781 433.407C612.781 405.287 564.744 389.153 500.845 383.621C454.621 379.933 407.943 384.543 354.467 401.138C308.243 414.968 266.55 412.663 236.187 408.975C168.662 401.138 131.501 400.216 131.501 433.407C131.501 481.35 227.576 541.278 371.688 520.533C444.651 509.931 482.265 488.264 525.317 473.513C571.995 457.839 612.781 458.3 612.781 433.407Z"}),A.jsx("path",{fill:"#fff",d:"M451.448 317.236C473.974 317.236 492.234 298.661 492.234 275.747C492.234 252.833 473.974 234.258 451.448 234.258C428.922 234.258 410.661 252.833 410.661 275.747C410.661 298.661 428.922 317.236 451.448 317.236Z"}),A.jsx("path",{fill:"#fff",d:"M518.067 348.13C527.578 348.13 535.288 340.287 535.288 330.612C535.288 320.938 527.578 313.095 518.067 313.095C508.556 313.095 500.846 320.938 500.846 330.612C500.846 340.287 508.556 348.13 518.067 348.13Z"}),A.jsx("g",{opacity:".6",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_6)",d:"M579.703 242.563C579.25 242.563 578.796 242.563 578.796 242.563C576.077 242.102 574.265 239.336 574.718 236.109C578.796 214.904 596.017 194.62 596.924 193.698C598.736 191.393 602.362 191.393 604.175 193.237C606.441 195.081 606.44 198.769 604.628 200.613C604.175 201.074 588.313 219.975 584.688 238.414C584.235 241.18 581.969 242.563 579.703 242.563Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M355.905 625.64C362.913 625.64 368.594 619.861 368.594 612.732C368.594 605.604 362.913 599.825 355.905 599.825C348.897 599.825 343.216 605.604 343.216 612.732C343.216 619.861 348.897 625.64 355.905 625.64Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_7)",d:"M348.577 621.135C343.592 616.065 343.592 607.767 348.577 602.696C349.484 601.774 350.39 601.313 351.296 600.391C349.484 600.852 348.124 601.774 346.765 603.157C341.78 608.228 341.78 616.526 346.765 621.596C350.843 625.745 357.188 626.667 362.173 623.901C357.641 625.745 352.203 624.823 348.577 621.135Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M360.361 609.042C361.863 609.042 363.08 607.804 363.08 606.276C363.08 604.749 361.863 603.51 360.361 603.51C358.859 603.51 357.642 604.749 357.642 606.276C357.642 607.804 358.859 609.042 360.361 609.042Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M422.07 619.19C429.078 619.19 434.759 613.411 434.759 606.282C434.759 599.153 429.078 593.375 422.07 593.375C415.062 593.375 409.381 599.153 409.381 606.282C409.381 613.411 415.062 619.19 422.07 619.19Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_8)",d:"M414.742 614.685C409.757 609.614 409.757 601.317 414.742 596.246C415.648 595.324 416.555 594.863 417.461 593.941C415.648 594.402 414.289 595.324 412.929 596.707C407.944 601.778 407.944 610.075 412.929 615.146C417.008 619.295 423.352 620.217 428.337 617.451C423.806 619.295 418.367 618.373 414.742 614.685Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M426.526 602.592C428.027 602.592 429.245 601.354 429.245 599.826C429.245 598.298 428.027 597.06 426.526 597.06C425.024 597.06 423.806 598.298 423.806 599.826C423.806 601.354 425.024 602.592 426.526 602.592Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M389.361 649.153C394.617 649.153 398.878 644.819 398.878 639.472C398.878 634.126 394.617 629.792 389.361 629.792C384.105 629.792 379.845 634.126 379.845 639.472C379.845 644.819 384.105 649.153 389.361 649.153Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_9)",d:"M383.923 645.57C380.298 641.882 380.298 635.429 383.923 631.741C384.376 631.28 385.283 630.819 385.736 630.358C384.376 630.819 383.47 631.741 382.564 632.663C378.938 636.351 378.938 642.805 382.564 646.492C385.736 649.719 390.268 650.18 394.346 647.875C390.721 649.258 386.642 648.336 383.923 645.57Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M392.532 636.243C393.534 636.243 394.345 635.418 394.345 634.4C394.345 633.381 393.534 632.556 392.532 632.556C391.531 632.556 390.72 633.381 390.72 634.4C390.72 635.418 391.531 636.243 392.532 636.243Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M447.825 642.238C453.081 642.238 457.342 637.904 457.342 632.558C457.342 627.211 453.081 622.877 447.825 622.877C442.569 622.877 438.308 627.211 438.308 632.558C438.308 637.904 442.569 642.238 447.825 642.238Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_10)",d:"M442.387 638.656C438.761 634.968 438.761 628.514 442.387 624.826C442.84 624.365 443.746 623.904 444.199 623.443C442.84 623.904 441.934 624.826 441.027 625.748C437.402 629.436 437.402 635.89 441.027 639.578C444.199 642.805 448.731 643.266 452.81 640.961C449.184 642.344 445.106 641.422 442.387 638.656Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M450.996 629.338C451.997 629.338 452.809 628.512 452.809 627.494C452.809 626.475 451.997 625.65 450.996 625.65C449.995 625.65 449.183 626.475 449.183 627.494C449.183 628.512 449.995 629.338 450.996 629.338Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M301.896 621.034C313.41 621.034 322.743 611.54 322.743 599.829C322.743 588.118 313.41 578.624 301.896 578.624C290.383 578.624 281.05 588.118 281.05 599.829C281.05 611.54 290.383 621.034 301.896 621.034Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_11)",d:"M290.128 613.192C281.971 604.895 281.971 591.526 290.128 583.228C291.488 581.845 292.847 580.923 294.66 580.001C291.941 580.923 289.675 582.767 287.409 584.611C279.252 592.909 279.252 606.278 287.409 614.575C294.207 621.49 304.63 622.873 312.787 617.802C305.083 621.029 296.019 619.646 290.128 613.192Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M309.15 593.372C311.653 593.372 313.682 591.308 313.682 588.762C313.682 586.216 311.653 584.152 309.15 584.152C306.647 584.152 304.618 586.216 304.618 588.762C304.618 591.308 306.647 593.372 309.15 593.372Z",opacity:".3"}),A.jsx("path",{fill:"#fff",d:"M488.23 568.936C499.743 568.936 509.076 559.442 509.076 547.731C509.076 536.019 499.743 526.525 488.23 526.525C476.717 526.525 467.383 536.019 467.383 547.731C467.383 559.442 476.717 568.936 488.23 568.936Z",opacity:".2"}),A.jsx("g",{opacity:".4",children:A.jsx("path",{fill:"url(#icons_chains_osmo_linearGradient_12)",d:"M475.92 561.103C467.763 552.805 467.763 539.436 475.92 531.139C477.28 529.756 478.639 528.834 480.452 527.912C477.733 528.834 475.467 530.678 473.201 532.521C465.044 540.819 465.044 554.188 473.201 562.486C479.999 569.4 490.422 570.783 498.579 565.713C490.875 568.939 482.265 567.556 475.92 561.103Z",opacity:".6"})}),A.jsx("path",{fill:"#fff",d:"M495.407 541.282C497.91 541.282 499.939 539.218 499.939 536.672C499.939 534.126 497.91 532.062 495.407 532.062C492.904 532.062 490.875 534.126 490.875 536.672C490.875 539.218 492.904 541.282 495.407 541.282Z",opacity:".3"})]})})}function OS(){return A.jsxs("svg",{width:"144",height:"144",viewBox:"0 0 144 144",style:{maxHeight:"100%",maxWidth:"100%"},fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M71.85 143.7C111.532 143.7 143.7 111.532 143.7 71.85C143.7 32.1683 111.532 0 71.85 0C32.1683 0 0 32.1683 0 71.85C0 111.532 32.1683 143.7 71.85 143.7Z",fill:"#1D2229"}),A.jsx("path",{d:"M59.5621 65.1122H47.531V77.1433H59.5621V65.1122Z",fill:"white"}),A.jsx("path",{d:"M47.5309 53.081H35.4997V65.1121L47.531 65.1122L47.5309 53.081Z",fill:"white"}),A.jsx("path",{d:"M35.4978 65.1122H23.4667V77.1433H35.4978V65.1122Z",fill:"white"}),A.jsx("path",{d:"M47.531 77.1433L35.4997 77.1427V89.1738H47.5309L47.531 77.1433Z",fill:"white"}),A.jsx("path",{d:"M115.922 55.6723C115.074 46.824 107.437 43.8538 97.791 43.0056V37.3377H90.3225V42.6822C88.3601 42.6822 86.3535 42.7198 84.3579 42.7575V37.3333H76.8938V42.9989C75.2769 43.0299 65.3433 43.0211 65.3433 43.0211L65.3211 49.6058L71.5538 49.6413V92.7977H65.3233L65.268 99.2895C67.0775 99.2895 75.1308 99.3249 76.8761 99.336V104.931H84.3401V99.4689C86.3867 99.5132 88.3712 99.5309 90.307 99.5287V104.933H97.7777V99.3626C110.338 98.6472 119.133 95.4866 120.225 83.6947C121.111 74.1974 116.646 69.9626 109.516 68.2394C113.849 66.0246 116.558 62.1463 115.926 55.6701L115.922 55.6723ZM105.457 82.2129C105.457 91.491 89.5739 90.4301 84.5063 90.4323V73.9847C89.5716 73.9847 105.448 72.5384 105.45 82.2129H105.457ZM101.99 59.0057C101.99 67.4465 88.7366 66.4565 84.5173 66.4565V51.5372C88.7433 51.5394 101.995 50.2016 101.99 59.0057Z",fill:"white"})]})}function zS(){return A.jsxs("svg",{width:"512",height:"512",viewBox:"0 0 512 512",style:{maxHeight:"100%",maxWidth:"100%"},fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"512",height:"512",rx:"256",fill:"#00A3FF"}),A.jsx("path",{opacity:"0.6",d:"M361.012 237.812L363.878 242.209C396.204 291.798 388.984 356.742 346.52 398.348C321.539 422.826 288.798 435.066 256.056 435.069C256.056 435.069 256.056 435.069 361.012 237.812Z",fill:"white"}),A.jsx("path",{opacity:"0.2",d:"M256.044 297.764L361 237.812C256.045 435.069 256.044 435.069 256.044 435.069C256.044 392.108 256.044 342.88 256.044 297.764Z",fill:"white"}),A.jsx("path",{d:"M150.988 237.812L148.122 242.209C115.796 291.798 123.016 356.742 165.48 398.348C190.461 422.826 223.202 435.066 255.944 435.069C255.944 435.069 255.944 435.069 150.988 237.812Z",fill:"white"}),A.jsx("path",{opacity:"0.6",d:"M255.914 297.764L150.958 237.812C255.914 435.069 255.914 435.069 255.914 435.069C255.914 392.108 255.914 342.88 255.914 297.764Z",fill:"white"}),A.jsx("path",{opacity:"0.2",d:"M256.083 163.833V267.233L346.491 215.566L256.083 163.833Z",fill:"white"}),A.jsx("path",{opacity:"0.6",d:"M256.056 163.833L165.583 215.565L256.056 267.233V163.833Z",fill:"white"}),A.jsx("path",{d:"M256.056 76.875L165.583 215.599L256.056 163.722V76.875Z",fill:"white"}),A.jsx("path",{opacity:"0.6",d:"M256.083 163.706L346.56 215.585L256.083 76.7916V163.706Z",fill:"white"})]})}function kS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"156",height:"156",viewBox:"0 0 156 156",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{cx:"77.5713",cy:"77.5713",r:"77.5713",fill:"#ED4E33"}),A.jsx("path",{d:"M63.5871 41.5434C42.4254 49.6802 40.4869 70.5184 34.419 80.2503C28.2792 90.0978 14.2132 95.5313 16.1367 100.55C18.0601 105.568 32.1429 100.178 43.2844 103.38C54.2939 106.544 69.655 120.732 90.8167 112.595C101.597 108.45 109.403 99.9185 112.993 89.8133C113.379 88.7286 112.657 87.5686 111.512 87.4614C110.8 87.3945 110.117 87.7678 109.796 88.4072C106.549 94.8851 100.979 100.22 93.6894 103.022C81.6555 107.649 68.4886 104.016 60.4019 94.9052C58.5653 92.8363 56.9944 90.4811 55.7544 87.8782C55.4135 87.1618 55.0893 86.4337 54.8019 85.6804C54.5128 84.9272 54.2671 84.1689 54.0415 83.4073C60.4019 80.4378 67.7415 77.2926 76.0622 74.0938C84.2207 70.9569 91.6456 68.4126 98.2566 66.3772C102.729 65.0012 106.828 63.8563 110.529 62.9206C110.797 62.8536 111.061 62.7867 111.323 62.7214C111.883 62.5825 112.458 62.8821 112.665 63.4211L112.669 63.4311C112.791 63.7508 112.896 64.0722 113.009 64.3936C113.741 66.4676 114.29 68.5633 114.652 70.664C114.811 71.583 115.814 72.0835 116.636 71.6416C119.674 70.0078 122.453 68.4143 124.936 66.881C134.19 61.1731 139.32 56.3322 138.267 53.5887C137.216 50.8435 130.17 50.6862 119.48 52.6446C116.083 53.2673 112.316 54.1042 108.257 55.1404C107.555 55.3195 106.845 55.5053 106.126 55.6961C102.71 56.6034 99.1072 57.6428 95.3555 58.8062C88.3785 60.9705 80.8934 63.5634 73.1661 66.5345C65.9367 69.3148 59.085 72.1973 52.8015 75.0697C52.7247 62.8788 60.0827 51.354 72.1166 46.7274C79.4045 43.9253 87.1084 44.1547 93.8498 46.7944C94.5149 47.0555 95.272 46.8747 95.7583 46.3475C96.537 45.5021 96.298 44.1563 95.287 43.6073C85.8684 38.507 74.3676 37.3989 63.5871 41.5434Z",fill:"white"})]})}function _S(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 800 800",children:[A.jsx("path",{fill:"#2E3148",fillRule:"evenodd",d:"M400.012 0.768066C620.509 0.768066 799.257 179.501 799.257 399.98C799.257 620.458 620.509 799.192 400.012 799.192C179.516 799.192 0.767944 620.458 0.767944 399.98C0.767944 179.501 179.516 0.768066 400.012 0.768066Z",clipRule:"evenodd"}),A.jsx("path",{fill:"#1B1E36",fillRule:"evenodd",d:"M399.226 169.68C526.431 169.68 629.552 272.801 629.552 400.007C629.552 527.212 526.431 630.333 399.226 630.333C272.02 630.333 168.899 527.212 168.899 400.007C168.899 272.801 272.02 169.68 399.226 169.68Z",clipRule:"evenodd"}),A.jsx("path",{fillRule:"evenodd",stroke:"#6F7390",strokeWidth:"15",d:"M401.181 58.2666C394.32 58.2666 386.121 65.8115 377.843 81.5569C368.982 98.411 360.796 123.281 353.849 154.523C339.501 219.047 331.271 306.552 331.271 399.977C331.271 493.402 339.501 580.908 353.849 645.431C360.796 676.673 368.982 701.543 377.843 718.397C386.121 734.143 394.32 741.688 401.181 741.688C408.042 741.688 416.241 734.143 424.519 718.397C433.38 701.543 441.566 676.673 448.513 645.431C462.862 580.908 471.092 493.402 471.092 399.977C471.092 306.552 462.862 219.047 448.513 154.523C441.566 123.281 433.38 98.411 424.519 81.5569C416.241 65.8115 408.042 58.2666 401.181 58.2666Z",clipRule:"evenodd"}),A.jsx("path",{fillRule:"evenodd",stroke:"#6F7390",strokeWidth:"15",d:"M697.298 229.144C693.869 223.208 683.229 219.884 665.444 220.592C646.407 221.351 620.761 226.702 590.213 236.311C527.123 256.157 447.177 292.789 366.216 339.504C285.255 386.219 213.538 437.098 164.797 481.78C141.196 503.415 123.737 522.936 113.562 539.033C104.057 554.069 101.618 564.935 105.046 570.868C108.475 576.804 119.115 580.129 136.9 579.42C155.937 578.662 181.583 573.311 212.131 563.701C275.221 543.856 355.167 507.224 436.129 460.508C517.09 413.793 588.806 362.915 637.547 318.233C661.148 296.598 678.607 277.077 688.783 260.98C698.287 245.944 700.726 235.078 697.298 229.144V229.144ZM697.298 229.144C697.298 229.144 697.298 229.144 697.298 229.144L697.298 229.144C697.298 229.144 697.298 229.144 697.298 229.144V229.144Z",clipRule:"evenodd"}),A.jsx("path",{fillRule:"evenodd",stroke:"#6F7390",strokeWidth:"15",d:"M697.298 570.868L697.298 570.868C700.726 564.935 698.288 554.069 688.783 539.033C678.607 522.936 661.148 503.415 637.548 481.78C588.806 437.098 517.09 386.219 436.129 339.504C355.167 292.789 275.221 256.157 212.131 236.311C181.583 226.702 155.937 221.351 136.9 220.592C119.115 219.884 108.475 223.208 105.046 229.144C101.618 235.078 104.057 245.944 113.562 260.98C123.737 277.077 141.196 296.598 164.797 318.233C213.538 362.915 285.255 413.793 366.216 460.508C447.177 507.224 527.123 543.856 590.213 563.701C620.761 573.311 646.407 578.662 665.444 579.42C683.229 580.129 693.869 576.804 697.298 570.868Z",clipRule:"evenodd"}),A.jsx("path",{fill:"#B7B9C8",fillRule:"evenodd",d:"M177.765 302.102C191.34 302.102 202.345 313.112 202.345 326.694C202.345 340.276 191.34 351.286 177.765 351.286C164.189 351.286 153.185 340.276 153.185 326.694C153.185 313.112 164.189 302.102 177.765 302.102Z",clipRule:"evenodd"}),A.jsx("path",{fill:"#B7B9C8",fillRule:"evenodd",d:"M568.451 217.905C582.033 217.905 593.043 228.915 593.043 242.497C593.043 256.079 582.033 267.089 568.451 267.089C554.869 267.089 543.859 256.079 543.859 242.497C543.859 228.915 554.869 217.905 568.451 217.905Z",clipRule:"evenodd"}),A.jsx("path",{fill:"#B7B9C8",fillRule:"evenodd",d:"M351.649 603.909C365.231 603.909 376.241 614.914 376.241 628.489C376.241 642.064 365.231 653.069 351.649 653.069C338.067 653.069 327.057 642.064 327.057 628.489C327.057 614.914 338.067 603.909 351.649 603.909Z",clipRule:"evenodd"}),A.jsx("path",{fill:"#B7B9C8",fillRule:"evenodd",d:"M399.811 358.173C422.806 358.173 441.447 376.814 441.447 399.809C441.447 422.803 422.806 441.444 399.811 441.444C376.817 441.444 358.176 422.803 358.176 399.809C358.176 376.814 376.817 358.173 399.811 358.173Z",clipRule:"evenodd"})]})}function BS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"100px",height:"100px",viewBox:"0 0 100 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("title",{children:"kuji"}),A.jsxs("g",{id:"kuji",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[A.jsx("circle",{id:"Oval",fill:"#22242F",cx:"50",cy:"50",r:"50"}),A.jsx("path",{d:"M50,2 C76.509668,2 98,23.490332 98,50 C98,76.509668 76.509668,98 50,98 C23.490332,98 2,76.509668 2,50 C2,23.490332 23.490332,2 50,2 Z M50,5.38823529 C25.3616027,5.38823529 5.38823529,25.3616027 5.38823529,50 C5.38823529,74.6383973 25.3616027,94.6117647 50,94.6117647 C74.6383973,94.6117647 94.6117647,74.6383973 94.6117647,50 C94.6117647,25.3616027 74.6383973,5.38823529 50,5.38823529 Z",id:"Oval",fill:"#E53935",fillRule:"nonzero"}),A.jsx("path",{d:"M80.2507798,31.0832298 L80.2507798,26.7229814 L66.4391765,26.7229814 C65.6980661,23.9055901 64.9569557,21.4236025 64.1484716,19.1428571 L59.4996881,19.9478261 C60.3081722,21.9602484 61.1166563,24.2409938 61.8577667,26.7229814 L47.2376794,26.7229814 L47.2376794,31.0832298 L80.2507798,31.0832298 Z M44.8796007,63.4832298 L44.8796007,35.6447205 L38.0748596,35.6447205 C39.4897068,33.5652174 40.904554,31.0161491 42.3194011,27.9304348 L42.3194011,24.710559 L31.2027449,24.710559 C31.8091079,23.3689441 32.3480973,22.0273292 32.8870867,20.6186335 L28.5751716,19.2770186 C26.5539613,25.8509317 23.3873986,31.1503106 19.1428571,35.242236 L20.1534623,40.0049689 C21.02932,39.2 21.9051778,38.3950311 22.7136619,37.5229814 L22.7136619,63.4832298 L44.8796007,63.4832298 Z M33.4260761,35.6447205 L24.3980037,35.6447205 C26.1497193,33.4981366 27.8340611,31.0832298 29.316282,28.5341615 L37.8053649,28.5341615 C36.3231441,31.2173913 34.9082969,33.6322981 33.4260761,35.6447205 Z M61.1840299,80.8571429 C64.5527137,80.8571429 66.3044292,78.978882 66.3044292,75.289441 L66.3044292,56.1714286 L77.0168434,56.1714286 L77.0168434,37.1204969 L50.8084841,37.1204969 L50.8084841,56.1714286 L61.588272,56.1714286 L61.588272,74.1490683 C61.588272,75.826087 60.9145352,76.6981366 59.5670618,76.6981366 C58.0174672,76.6981366 56.4004991,76.5639752 54.7835309,76.3627329 L55.7267623,80.8571429 L61.1840299,80.8571429 Z M31.8764816,47.5850932 L26.8908297,47.5850932 L26.8908297,39.6024845 L31.8764816,39.6024845 L31.8764816,47.5850932 Z M40.7024329,47.5850932 L35.7841547,47.5850932 L35.7841547,39.6024845 L40.7024329,39.6024845 L40.7024329,47.5850932 Z M72.4354336,51.9453416 L55.3898939,51.9453416 L55.3898939,41.4136646 L72.4354336,41.4136646 L72.4354336,51.9453416 Z M40.7024329,59.4583851 L35.7841547,59.4583851 L35.7841547,51.4757764 L40.7024329,51.4757764 L40.7024329,59.4583851 Z M31.8764816,59.4583851 L26.8908297,59.4583851 L26.8908297,51.4757764 L31.8764816,51.4757764 L31.8764816,59.4583851 Z M77.2863381,77.7714286 L80.8571429,75.289441 C79.0380536,70.9962733 76.477854,66.0322981 73.1091703,60.3304348 L69.5383656,62.4770186 C72.7723019,68.0447205 75.3998752,73.1428571 77.2863381,77.7714286 Z M49.0567686,78.9118012 C52.0212102,74.2832298 54.5814099,68.7826087 56.7373674,62.4770186 L52.8296943,60.5987578 C50.7411104,66.6360248 48.2482845,71.868323 45.4185901,76.2956522 L49.0567686,78.9118012 Z M43.4647536,74.3503106 L46.7660636,73.5453416 C45.8228322,70.3254658 44.8796007,67.5080745 43.801622,65.0931677 L40.6350593,66.0322981 C41.7130381,68.715528 42.6562695,71.4658385 43.4647536,74.3503106 Z M36.3231441,78.2409938 L39.8265752,77.8385093 C39.4223331,72.7403727 38.6812227,68.715528 37.6032439,65.7639752 L34.2345602,66.1664596 C35.312539,68.9838509 35.9862757,73.0086957 36.3231441,78.2409938 Z M23.4547723,80.0521739 C24.8696195,76.0944099 25.7454772,71.6 26.1497193,66.5018634 L22.5115409,66.0322981 C22.1746725,70.8621118 21.231441,75.1552795 19.7492202,78.9118012 L23.4547723,80.0521739 Z M29.1141609,79.247205 L32.617592,78.8447205 C32.4828447,73.5453416 32.1459763,69.3192547 31.6743606,66.2335404 L28.4404242,66.6360248 C28.7772926,69.5875776 28.9794136,73.8136646 29.1141609,79.247205 Z",id:"鯨",fill:"#E53935",fillRule:"nonzero"})]})]})}function FS(){return A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",children:[A.jsx("path",{d:"M0 35.9864C0 16.2622 15.9896 0 35.7138 0V0C55.438 0 71.4276 16.2622 71.4276 35.9864V35.9864C71.4276 55.7106 55.438 71.9728 35.7138 71.9728V71.9728C15.9896 71.9728 0 55.7106 0 35.9864V35.9864Z",fill:"#040404"}),A.jsx("g",{clipPath:"url(#clip0_2310_14480)",children:A.jsx("path",{d:"M34.6646 25.2973C34.6646 23.701 35.9571 22.4006 37.5438 22.4006H42.6955V15.353H40.1196H37.5438C32.0857 15.353 27.6598 19.8059 27.6598 25.2973C27.6598 26.7302 27.963 28.0923 28.5052 29.3217C24.2661 31.1245 21.4514 34.9549 20.7959 39.8022C20.0302 45.1241 22.1497 50.865 26.7655 53.6385C30.885 56.2486 37.3262 56.076 40.8057 52.4551V54.8588H47.9759V28.1939H37.5467C35.9602 28.1939 34.6646 26.8936 34.6646 25.2973ZM40.965 35.2446V41.9377C40.965 45.6356 37.9848 48.6309 34.3124 48.6309C30.64 48.6309 27.6598 45.6325 27.6598 41.9377C27.6598 38.2429 30.64 35.2446 34.3124 35.2446H40.965Z",fill:"#BFF009"})})]})}function RS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"1000",height:"1000",viewBox:"0 0 1000 1000",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M1000 500C1000 776.142 776.142 1000 500 1000C223.858 1000 0 776.142 0 500C0 223.858 223.858 0 500 0C776.142 0 1000 223.858 1000 500Z",fill:"#E6DAFE"}),A.jsx("path",{d:"M575.336 459.157C575.336 494.675 546.559 523.473 511.068 523.473V587.789C582.05 587.789 639.604 530.193 639.604 459.157C639.604 388.122 582.05 330.526 511.068 330.526C487.669 330.526 465.695 336.78 446.801 347.746C408.374 369.97 382.533 411.539 382.533 459.157V780.736L446.801 845.052V459.157C446.801 423.64 475.577 394.841 511.068 394.841C546.559 394.841 575.336 423.64 575.336 459.157Z",fill:"#242235"}),A.jsx("path",{d:"M511.07 201.904C464.243 201.904 420.352 214.442 382.535 236.346C358.322 250.338 336.638 268.169 318.268 289.026C278.271 334.376 254 393.95 254 459.168V652.115L318.268 716.431V459.168C318.268 402.037 343.091 350.695 382.535 315.351C401.08 298.771 422.851 285.681 446.803 277.245C466.888 270.089 488.543 266.22 511.07 266.22C617.543 266.22 703.873 352.614 703.873 459.168C703.873 565.721 617.543 652.115 511.07 652.115V716.431C653.063 716.431 768.14 601.238 768.14 459.168C768.14 317.097 653.063 201.904 511.07 201.904Z",fill:"#242235"})]})}function PS(){return A.jsxs("svg",{viewBox:"100 100 400 400",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:`M148.497 169.135C150.981 166.013 153.613 163.009 156.245
228
- 160.005C156.363 159.856 156.63 159.826 156.748 159.677C156.985 159.38 157.37
229
- 159.201 157.606 158.903L157.843 158.606C159.678 156.91 161.63 155.064
230
- 163.881 153.456C171.845 147.41 180.11 142.817 188.825 139.795C216.778
231
- 129.981 247.894 136.029 272.295 159.065C306.366 191.002 303.315 242.451
232
- 276.117 276.647C241.748 327.625 182.684 398.748 264.463 462.46C279.167
233
- 473.916 290.075 483.361 336.392 496.746C306.1 502.326 278.012 500.59 246.748
234
- 492.605C224.634 480.123 189.866 453.397 178.037 417.3C160.159 362.562
235
- 209.513 280.732 233.365 249.216C266.113 205.599 213.124 158.382 174.112
236
- 211.095C153.72 238.566 118.044 316.303 130.442 373.965C137.691 406.664
237
- 147.353 430.499 185.663 463.241C178.559 459.049 171.66 454.294 164.968
238
- 448.974C75.957 366.06 86.2838 237.859 148.497 169.135Z`,fill:"url(#icons_tokens_inj_linearGradient_0)"}),A.jsx("path",{d:`M451.503 430.865C449.019
239
- 433.987 446.387 436.991 443.755 439.995C443.637 440.144 443.37 440.174
240
- 443.252 440.323C443.015 440.62 442.63 440.799 442.394 441.097L442.157
241
- 441.394C440.322 443.09 438.37 444.936 436.119 446.544C428.155 452.59 419.89
242
- 457.183 411.175 460.205C383.222 470.019 352.106 463.971 327.705
243
- 440.935C293.634 408.998 296.685 357.549 323.883 323.353C358.252 272.375
244
- 417.316 201.252 335.537 137.54C320.833 126.084 309.925 116.639 263.608
245
- 103.254C293.9 97.6736 321.988 99.4095 353.251 107.395C375.366 119.877
246
- 410.134 146.603 421.963 182.7C439.841 237.438 390.487 319.268 366.635
247
- 350.784C333.887 394.401 386.876 441.618 425.888 388.905C446.28 361.434
248
- 481.956 283.697 469.558 226.035C462.309 193.336 452.647 169.501 414.337
249
- 136.759C421.441 140.951 428.34 145.706 435.032 151.026C524.043 233.94
250
- 513.716 362.141 451.503 430.865Z`,fill:"url(#icons_tokens_inj_linearGradient_1)"})]})}function US(){return A.jsxs("svg",{viewBox:"316.829 225.555 66.146 48.89",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{filter:"url(#icons_tokens_ntt_filter_0)",transform:"matrix(1, 0, 0, 1, 307.15521240234375, 224.00100708007812)",children:A.jsx("path",{d:"M42.3874 29.5938C40.2035 29.5938 38.433 27.8234 38.433 25.6394C38.433 23.4555 40.2035 21.6851 42.3874 21.6851C44.5714 21.6851 46.3418 23.4555 46.3418 25.6394C46.3418 27.8234 44.5714 29.5938 42.3874 29.5938Z",fill:"white"})}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 316.829 249.281 L 382.975 249.281 L 382.975 250.719 L 316.829 250.719 L 316.829 249.281 Z",fill:"url(#icons_tokens_ntt_linearGradient_0)"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 349.903 273.007 C 362.609 273.007 372.91 262.707 372.91 250 C 372.91 237.293 362.609 226.993 349.903 226.993 C 337.196 226.993 326.896 237.293 326.896 250 C 326.896 262.707 337.196 273.007 349.903 273.007 Z M 349.903 274.445 C 363.404 274.445 374.348 263.501 374.348 250 C 374.348 236.499 363.404 225.555 349.903 225.555 C 336.402 225.555 325.458 236.499 325.458 250 C 325.458 263.501 336.402 274.445 349.903 274.445 Z",fill:"url(#icons_tokens_ntt_linearGradient_1)"})]})}function YS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"444",height:"444",viewBox:"0 0 444 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("style",{children:".st0{fill:#ffeeda}.st2{fill:#101010}"}),A.jsx("path",{d:"M0 0h444v444H0z",className:"st0"}),A.jsx("path",{d:"M333.4 262V110.6c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 11.5 3.1 21.4 7.8 30.1 4 7.2 10.3 14 16.5 19.1 1.8 1.4.9.8 6.3 4.1 7.4 4.5 15.9 6.8 15.9 6.8l-.1 90.6c.2 4.3.6 8.4 1.8 12.3 3.5 12.8 12.4 22.6 24.4 27.3 5 2 10.7 3.3 16.8 3.4l126.2.4c25.1 0 45.5-20.4 45.5-45.6.1-15-7.4-28.4-18.6-36.8z",className:"st0"}),A.jsx("path",{d:"M336.5 299.9C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1z",style:{fill:"#ebc28e"}}),A.jsx("path",{d:"M123.5 186.7c-10-9.5-17-21.7-17-36.3v-1.5c.8-24.8 21.2-44.8 46-45.5h158c4.1.2 7.4 3.1 7.4 7.3v133.7c3.6.6 5.4 1.1 8.9 2.4 2.8 1 6.6 3.2 6.6 3.2V110.7c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 19.9 9.1 36.9 23.9 48.8 1 .8 2 1.9 4.6 1.9 4.6 0 7.9-3.7 7.7-7.7 0-3.4-1.5-4.6-3.6-6.7z",className:"st2"}),A.jsx("path",{d:"M306.4 253.2H182.5c-8.3.1-15 6.8-15 15.1v17.8c.2 8.2 7.2 15.2 15.6 15.2h9.2v-15.2H183v-17.4h5c15.7 0 27.2 14.5 27.2 30.1 0 13.8-12.6 31.4-33.6 30-18.6-1.2-28.7-17.8-28.7-30v-151c0-6.8-5.6-12.4-12.4-12.4h-12.4v15.5h9.2v148c-.5 30.1 21.4 45.2 44.3 45.2l124.9.4c25.1 0 45.5-20.4 45.5-45.6.1-25.2-20.4-45.7-45.6-45.7zm30.1 46.7C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1zM273 153.7h-93.4v-15.5H273c4.2 0 7.7 3.4 7.7 7.7.1 4.3-3.3 7.8-7.7 7.8z",className:"st2"}),A.jsx("path",{d:"M273 226.4h-93.4V211H273c4.2 0 7.7 3.4 7.7 7.7.1 4.2-3.3 7.7-7.7 7.7zm16.5-36.4H179.6v-15.5h109.8c4.2 0 7.7 3.4 7.7 7.7.2 4.3-3.3 7.8-7.6 7.8z",className:"st2"})]})}function WS(){return A.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"252",height:"166",viewBox:"0 0 252 166",fill:"none",children:[A.jsx("path",{fill:"#FCFC03",d:"m197.902 81.513 39.608-19.736 13.653-41.906L223.857 0H42.041L0 31.226h213.718l-11.355 35.147H116.66l-8.246 25.684h85.703L170.055 166l40.149-19.871 14.329-44.339-26.901-19.736.27-.541Z"}),A.jsx("path",{fill:"#FCFC03",d:"m60.422 134.233 24.737-77.052-27.441-20.548L16.488 166h153.564l10.273-31.767H60.422Z"})]})}function HS(){return A.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{cx:"18",cy:"18",r:"18",fill:"black"}),A.jsx("path",{d:"M28.3266 11.8302L17.9483 11.8466C14.5118 11.8466 11.7258 14.6326 11.7258 18.069C11.7258 21.5055 14.5118 24.2915 17.9483 24.2915H27.9424",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),A.jsx("path",{d:"M6.16479 18.069H30.138",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),A.jsx("path",{d:"M18.069 6C24.7345 6 30.1379 11.4035 30.1379 18.069C30.1379 24.7345 24.7345 30.1379 18.069 30.1379C11.4035 30.1379 6 24.7345 6 18.069C6 11.4035 11.4035 6 18.069 6Z",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"})]})}function ZS(){return A.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#814625"}),A.jsx("path",{d:"M30.8066 30.3796C30.7714 30.2733 30.7468 30.1643 30.7278 30.0542C30.7191 30.0032 30.7089 29.9524 30.6974 29.902C30.6723 29.7925 30.6444 29.6836 30.6143 29.5753V29.575C31.1133 28.8474 33.4988 25.0525 30.7842 22.6167C27.7714 19.9133 24.2512 23.4567 24.2512 23.4567L24.2621 23.4724C22.6799 23.0093 20.9643 22.955 19.2952 23.4565C19.295 23.4565 19.2949 23.4565 19.2949 23.4565C19.2743 23.4358 15.7659 19.9212 12.762 22.6167C9.75706 25.313 13.0019 29.6752 13.0188 29.698C13.0188 29.698 13.0188 29.6981 13.0188 29.6983C12.9843 29.8008 12.9564 29.9054 12.938 30.0117C12.6129 31.8784 10.3999 32.4545 10.3999 35.7061C10.3999 38.9576 12.715 41.6321 17.4404 41.6321H19.3794C19.3794 41.6321 19.3796 41.6321 19.3797 41.6321C19.3884 41.644 20.1867 42.7339 21.826 42.7327C23.3478 42.7316 24.3528 41.6414 24.3615 41.6321C24.3615 41.6321 24.3615 41.6321 24.3618 41.6321H26.2117C30.9371 41.6321 33.2522 39.0204 33.2522 35.7061C33.2522 32.6781 31.3331 31.9702 30.8068 30.3796H30.8066Z",fill:"white"}),A.jsx("path",{d:"M53.3886 26.6644C53.3886 26.6644 53.74 23.5305 51.0687 22.8571V21.6002H48.9999V22.8257C46.182 23.4261 46.5451 26.6644 46.5451 26.6644V27.2017C46.5451 27.2017 46.1818 30.4407 49.0009 31.0405H49.0006V33.7308C46.0304 34.252 46.4057 37.5966 46.4057 37.5966V38.1339C46.4057 38.1339 46.0424 41.3722 48.8604 41.9725V43.1981H50.9292V41.9412C53.6007 41.2678 53.2491 38.1339 53.2491 38.1339C53.3659 38.1339 53.4606 38.0427 53.4606 37.9303V37.8003C53.4606 37.6878 53.3659 37.5966 53.2491 37.5966C53.2491 37.5966 53.5977 34.4899 50.9638 33.7984V31.0405H50.9327C53.7518 30.4407 53.3885 27.2017 53.3885 27.2017C53.5052 27.2017 53.5999 27.1105 53.5999 26.998V26.868C53.5999 26.7556 53.5052 26.6644 53.3885 26.6644H53.3886ZM51.7027 37.5966H51.5134C51.3967 37.5966 51.302 37.6878 51.302 37.8003V37.9303C51.302 38.0427 51.3967 38.1339 51.5134 38.1339H51.7027C51.7027 40.0779 51.0324 40.405 50.8069 40.4601C50.7698 40.4691 50.7338 40.4426 50.7338 40.4058V39.7862C50.7338 39.4436 50.5072 39.256 50.2806 39.1539C49.9941 39.0249 49.6605 39.0249 49.3741 39.1539C49.1475 39.256 48.9208 39.4436 48.9208 39.7862V40.4058C48.9208 40.4421 48.8855 40.4692 48.849 40.4603C48.6248 40.4062 47.952 40.0817 47.952 38.1339V37.5966C47.952 35.6526 48.6222 35.3255 48.8478 35.2705C48.8848 35.2615 48.9208 35.2879 48.9208 35.3247V35.9444C48.9208 36.2869 49.1475 36.4746 49.3741 36.5767C49.6605 36.7056 49.9941 36.7056 50.2806 36.5767C50.5072 36.4746 50.7338 36.2869 50.7338 35.9444V35.3247C50.7338 35.2885 50.7691 35.2613 50.8056 35.2702C51.0299 35.3243 51.7027 35.6489 51.7027 37.5966ZM51.6529 27.2017H51.8421C51.8421 29.1494 51.1694 29.4741 50.9451 29.5281C50.9086 29.537 50.8733 29.5098 50.8733 29.4736V28.8539C50.8733 28.5114 50.6467 28.3237 50.42 28.2216C50.1336 28.0927 49.8 28.0927 49.5135 28.2216C49.2869 28.3237 49.0603 28.5114 49.0603 28.8539V29.4736C49.0603 29.5104 49.0243 29.5368 48.9872 29.5278C48.7617 29.4728 48.0915 29.1457 48.0915 27.2017V26.6644C48.0915 24.7166 48.7642 24.3919 48.9885 24.3379C49.025 24.3291 49.0603 24.3564 49.0603 24.3925V25.0121C49.0603 25.3547 49.2869 25.5423 49.5135 25.6444C49.8 25.7734 50.1336 25.7734 50.42 25.6444C50.6467 25.5423 50.8733 25.3547 50.8733 25.0121V24.3925C50.8733 24.3557 50.9093 24.3292 50.9464 24.3382C51.1719 24.3933 51.8421 24.7204 51.8421 26.6644H51.6529C51.5361 26.6644 51.4414 26.7556 51.4414 26.868V26.998C51.4414 27.1105 51.5361 27.2017 51.6529 27.2017Z",fill:"white"}),A.jsx("path",{d:"M43.036 32.1987C43.036 32.1987 43.4013 28.9416 40.5566 28.355V25.4288C43.3256 24.8038 42.9663 21.6002 42.9663 21.6002C42.9663 21.6002 41.4134 21.6002 41.4198 21.6002C41.4198 23.548 40.7471 23.8726 40.5228 23.9266C40.4863 23.9355 40.451 23.9082 40.451 23.8721V23.2524C40.451 22.9099 40.2244 22.7223 39.9977 22.6202C39.7113 22.4912 39.3777 22.4912 39.0912 22.6202C38.8646 22.7223 38.638 22.9099 38.638 23.2524V23.8721C38.638 23.9089 38.602 23.9354 38.5649 23.9264C38.3394 23.8713 37.6692 23.5442 37.6692 21.6002C37.6757 21.6002 36.1227 21.6002 36.1227 21.6002C36.1227 21.6002 35.7499 24.9246 38.6908 25.4611V28.351C35.8255 28.927 36.1924 32.1985 36.1924 32.1985V32.7358C36.1924 32.7358 35.8255 36.0074 38.6908 36.5834V39.339C35.7499 39.8756 36.1227 43.1998 36.1227 43.1998C36.1227 43.1998 37.6756 43.1998 37.6692 43.1998C37.6692 41.2521 38.3419 40.9274 38.5662 40.8734C38.6027 40.8645 38.638 40.8917 38.638 40.9279V41.5476C38.638 41.8901 38.8646 42.0778 39.0912 42.1799C39.3777 42.3088 39.7113 42.3088 39.9977 42.1799C40.2244 42.0778 40.451 41.8901 40.451 41.5476V40.9279C40.451 40.8911 40.487 40.8647 40.5241 40.8737C40.7496 40.9287 41.4198 41.2558 41.4198 43.1998C41.4133 43.1998 42.9663 43.1998 42.9663 43.1998C42.9663 43.1998 43.3256 39.9962 40.5566 39.3712V36.5794C43.4013 35.9927 43.036 32.7357 43.036 32.7357C43.1528 32.7357 43.2475 32.6445 43.2475 32.5321V32.402C43.2475 32.2896 43.1528 32.1984 43.036 32.1984V32.1987ZM41.3003 32.736H41.4895C41.4895 34.6837 40.8168 35.0084 40.5925 35.0624C40.556 35.0713 40.5207 35.0441 40.5207 35.0079V34.3882C40.5207 34.0457 40.2941 33.858 40.0675 33.7559C39.781 33.627 39.4474 33.627 39.161 33.7559C38.9343 33.858 38.7077 34.0457 38.7077 34.3882V35.0079C38.7077 35.0447 38.6717 35.0711 38.6346 35.0621C38.4091 35.007 37.7389 34.68 37.7389 32.736V32.1987C37.7389 30.2509 38.4116 29.9262 38.6359 29.8722C38.6724 29.8634 38.7077 29.8906 38.7077 29.9268V30.5464C38.7077 30.889 38.9343 31.0766 39.161 31.1787C39.4474 31.3077 39.781 31.3077 40.0675 31.1787C40.2941 31.0766 40.5207 30.889 40.5207 30.5464V29.9268C40.5207 29.89 40.5567 29.8635 40.5938 29.8725C40.8193 29.9276 41.4895 30.2547 41.4895 32.1987H41.3003C41.1836 32.1987 41.0889 32.2899 41.0889 32.4023V32.5323C41.0889 32.6448 41.1836 32.736 41.3003 32.736Z",fill:"white"})]})}function QS(){return A.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",height:"64",width:"64",viewBox:"0 0 64 64",children:A.jsxs("g",{transform:"translate(0.00630876,-0.00301984)",children:[A.jsx("path",{fill:"#f7931a",d:"m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"}),A.jsx("path",{fill:"#FFF",d:"m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"})]})})}const i9=Ht()((e,{size:t})=>({container:{height:t,width:t,...$0},iconImage:{width:t,height:t,borderRadius:"50px"},icon:{maxHeight:"100%",maxWidth:"100%"},emptyIcon:{width:t,height:t,borderRadius:"50px",background:`color-mix(in hsl, ${e.palette.text.secondary}, ${e.palette.input.background} 80%)`}})),Up={[Ne.WBTC]:dS(),[Ne.BUSD]:hS(),[Ne.USDT]:pS(),[Ne.DAI]:gS(),[Ne.GLMR]:mS(),[Ne.AVAX]:MS(),[Ne.BNB]:yS(),[Ne.BSC]:IS(),[Ne.CELO]:vS(),[Ne.ETH]:xS(),[Ne.FANTOM]:bS(),[Ne.POLYGON]:AS(),[Ne.SOLANA]:CS(),[Ne.USDC]:ES(),[Ne.SUI]:NS(),[Ne.APT]:wS(),[Ne.ARBITRUM]:LS(),[Ne.OPTIMISM]:SS(),[Ne.SEI]:jS(),[Ne.BASE]:TS(),[Ne.OSMO]:DS(),[Ne.TBTC]:OS(),[Ne.WSTETH]:zS(),[Ne.ATOM]:_S(),[Ne.EVMOS]:kS(),[Ne.KUJI]:BS(),[Ne.PYTH]:RS(),[Ne.KLAY]:FS(),[Ne.INJ]:PS(),[Ne.NTT]:US(),[Ne.SCROLL]:YS(),[Ne.BLAST]:WS(),[Ne.XLAYER]:A.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:Pp("Xlayer")}),[Ne.MANTLE]:A.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:Pp("Mantle")}),[Ne.WORLDCHAIN]:HS(),[Ne.BERA]:ZS(),[Ne.BTC]:QS(),[Ne.SONIC]:i8()};function VS(e){return Object.values(Ne).includes(e)}function GS(e){const{classes:t}=i9(e);return A.jsx("div",{className:t.emptyIcon})}function x1(e){const t=e.height||36,{classes:n}=i9({size:t});let a=A.jsx(GS,{size:t});return VS(e.icon)&&Up[e.icon]?a=Up[e.icon]:typeof e.icon=="string"&&(a=A.jsx("img",{className:n.iconImage,src:e.icon})),A.jsx("div",{className:n.container,children:a})}const ya={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},o9=Object.create(null);for(const e in ya)Object.hasOwn(ya,e)&&(o9[ya[e]]=e);const Er={to:{},get:{}};Er.get=function(e){const t=e.slice(0,3).toLowerCase();let n,a;switch(t){case"hsl":{n=Er.get.hsl(e),a="hsl";break}case"hwb":{n=Er.get.hwb(e),a="hwb";break}default:{n=Er.get.rgb(e),a="rgb";break}}return n?{model:a,value:n}:null};Er.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^(\w+)$/;let u=[0,0,0,1],f,p,h;if(f=e.match(n)){for(h=f[2],f=f[1],p=0;p<3;p++){const g=p*2;u[p]=Number.parseInt(f.slice(g,g+2),16)}h&&(u[3]=Number.parseInt(h,16)/255)}else if(f=e.match(t)){for(f=f[1],h=f[3],p=0;p<3;p++)u[p]=Number.parseInt(f[p]+f[p],16);h&&(u[3]=Number.parseInt(h+h,16)/255)}else if(f=e.match(a)){for(p=0;p<3;p++)u[p]=Number.parseInt(f[p+1],10);f[4]&&(u[3]=f[5]?Number.parseFloat(f[4])*.01:Number.parseFloat(f[4]))}else if(f=e.match(c)){for(p=0;p<3;p++)u[p]=Math.round(Number.parseFloat(f[p+1])*2.55);f[4]&&(u[3]=f[5]?Number.parseFloat(f[4])*.01:Number.parseFloat(f[4]))}else return(f=e.match(i))?f[1]==="transparent"?[0,0,0,0]:Object.hasOwn(ya,f[1])?(u=ya[f[1]],u[3]=1,u):null:null;for(p=0;p<3;p++)u[p]=gi(u[p],0,255);return u[3]=gi(u[3],0,1),u};Er.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){const a=Number.parseFloat(n[4]),c=(Number.parseFloat(n[1])%360+360)%360,i=gi(Number.parseFloat(n[2]),0,100),u=gi(Number.parseFloat(n[3]),0,100),f=gi(Number.isNaN(a)?1:a,0,1);return[c,i,u,f]}return null};Er.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){const a=Number.parseFloat(n[4]),c=(Number.parseFloat(n[1])%360+360)%360,i=gi(Number.parseFloat(n[2]),0,100),u=gi(Number.parseFloat(n[3]),0,100),f=gi(Number.isNaN(a)?1:a,0,1);return[c,i,u,f]}return null};Er.to.hex=function(...e){return"#"+ks(e[0])+ks(e[1])+ks(e[2])+(e[3]<1?ks(Math.round(e[3]*255)):"")};Er.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Er.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"};Er.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Er.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Er.to.keyword=function(...e){return o9[e.slice(0,3)]};function gi(e,t,n){return Math.min(Math.max(t,e),n)}function ks(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const Oa={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},a9={};for(const e of Object.keys(Oa))a9[Oa[e]]=e;const ct={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ei=(6/29)**3;function xo(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function bo(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(ct)){if(!("channels"in ct[e]))throw new Error("missing channels property: "+e);if(!("labels"in ct[e]))throw new Error("missing channel labels property: "+e);if(ct[e].labels.length!==ct[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=ct[e];delete ct[e].channels,delete ct[e].labels,Object.defineProperty(ct[e],"channels",{value:t}),Object.defineProperty(ct[e],"labels",{value:n})}ct.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,c=Math.min(t,n,a),i=Math.max(t,n,a),u=i-c;let f,p;switch(i){case c:{f=0;break}case t:{f=(n-a)/u;break}case n:{f=2+(a-t)/u;break}case a:{f=4+(t-n)/u;break}}f=Math.min(f*60,360),f<0&&(f+=360);const h=(c+i)/2;return i===c?p=0:h<=.5?p=u/(i+c):p=u/(2-i-c),[f,p*100,h*100]};ct.rgb.hsv=function(e){let t,n,a,c,i;const u=e[0]/255,f=e[1]/255,p=e[2]/255,h=Math.max(u,f,p),g=h-Math.min(u,f,p),C=function(w){return(h-w)/6/g+1/2};if(g===0)c=0,i=0;else{switch(i=g/h,t=C(u),n=C(f),a=C(p),h){case u:{c=a-n;break}case f:{c=1/3+t-a;break}case p:{c=2/3+n-t;break}}c<0?c+=1:c>1&&(c-=1)}return[c*360,i*100,h*100]};ct.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const c=ct.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[c,i*100,a*100]};ct.rgb.oklab=function(e){const t=bo(e[0]/255),n=bo(e[1]/255),a=bo(e[2]/255),c=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*a),i=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*a),u=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*a),f=.2104542553*c+.793617785*i-.0040720468*u,p=1.9779984951*c-2.428592205*i+.4505937099*u,h=.0259040371*c+.7827717662*i-.808675766*u;return[f*100,p*100,h*100]};ct.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,c=Math.min(1-t,1-n,1-a),i=(1-t-c)/(1-c)||0,u=(1-n-c)/(1-c)||0,f=(1-a-c)/(1-c)||0;return[i*100,u*100,f*100,c*100]};function $S(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ct.rgb.keyword=function(e){const t=a9[e];if(t)return t;let n=Number.POSITIVE_INFINITY,a;for(const c of Object.keys(Oa)){const i=Oa[c],u=$S(e,i);u<n&&(n=u,a=c)}return a};ct.keyword.rgb=function(e){return Oa[e]};ct.rgb.xyz=function(e){const t=bo(e[0]/255),n=bo(e[1]/255),a=bo(e[2]/255),c=t*.4124564+n*.3575761+a*.1804375,i=t*.2126729+n*.7151522+a*.072175,u=t*.0193339+n*.119192+a*.9503041;return[c*100,i*100,u*100]};ct.rgb.lab=function(e){const t=ct.rgb.xyz(e);let n=t[0],a=t[1],c=t[2];n/=95.047,a/=100,c/=108.883,n=n>ei?n**(1/3):7.787*n+16/116,a=a>ei?a**(1/3):7.787*a+16/116,c=c>ei?c**(1/3):7.787*c+16/116;const i=116*a-16,u=500*(n-a),f=200*(a-c);return[i,u,f]};ct.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let c,i;if(n===0)return i=a*255,[i,i,i];const u=a<.5?a*(1+n):a+n-a*n,f=2*a-u,p=[0,0,0];for(let h=0;h<3;h++)c=t+1/3*-(h-1),c<0&&c++,c>1&&c--,6*c<1?i=f+(u-f)*6*c:2*c<1?i=u:3*c<2?i=f+(u-f)*(2/3-c)*6:i=f,p[h]=i*255;return p};ct.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,c=n;const i=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,c*=i<=1?i:2-i;const u=(a+n)/2,f=a===0?2*c/(i+c):2*n/(a+n);return[t,f*100,u*100]};ct.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const c=Math.floor(t)%6,i=t-Math.floor(t),u=255*a*(1-n),f=255*a*(1-n*i),p=255*a*(1-n*(1-i));switch(a*=255,c){case 0:return[a,p,u];case 1:return[f,a,u];case 2:return[u,a,p];case 3:return[u,f,a];case 4:return[p,u,a];case 5:return[a,u,f]}};ct.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,c=Math.max(a,.01);let i,u;u=(2-n)*a;const f=(2-n)*c;return i=n*c,i/=f<=1?f:2-f,i=i||0,u/=2,[t,i*100,u*100]};ct.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const c=n+a;let i;c>1&&(n/=c,a/=c);const u=Math.floor(6*t),f=1-a;i=6*t-u,u&1&&(i=1-i);const p=n+i*(f-n);let h,g,C;switch(u){default:case 6:case 0:{h=f,g=p,C=n;break}case 1:{h=p,g=f,C=n;break}case 2:{h=n,g=f,C=p;break}case 3:{h=n,g=p,C=f;break}case 4:{h=p,g=n,C=f;break}case 5:{h=f,g=n,C=p;break}}return[h*255,g*255,C*255]};ct.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,c=e[3]/100,i=1-Math.min(1,t*(1-c)+c),u=1-Math.min(1,n*(1-c)+c),f=1-Math.min(1,a*(1-c)+c);return[i*255,u*255,f*255]};ct.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let c,i,u;return c=t*3.2404542+n*-1.5371385+a*-.4985314,i=t*-.969266+n*1.8760108+a*.041556,u=t*.0556434+n*-.2040259+a*1.0572252,c=xo(c),i=xo(i),u=xo(u),[c*255,i*255,u*255]};ct.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>ei?t**(1/3):7.787*t+16/116,n=n>ei?n**(1/3):7.787*n+16/116,a=a>ei?a**(1/3):7.787*a+16/116;const c=116*n-16,i=500*(t-n),u=200*(n-a);return[c,i,u]};ct.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,c=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*a),i=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*a),u=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*a),f=.2104542553*c+.793617785*i-.0040720468*u,p=1.9779984951*c-2.428592205*i+.4505937099*u,h=.0259040371*c+.7827717662*i-.808675766*u;return[f*100,p*100,h*100]};ct.oklab.oklch=function(e){return ct.lab.lch(e)};ct.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,c=(.999999998*t+.396337792*n+.215803758*a)**3,i=(1.000000008*t-.105561342*n-.063854175*a)**3,u=(1.000000055*t-.089484182*n-1.291485538*a)**3,f=1.227013851*c-.55779998*i+.281256149*u,p=-.040580178*c+1.11225687*i-.071676679*u,h=-.076381285*c-.421481978*i+1.58616322*u;return[f*100,p*100,h*100]};ct.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,c=(t+.3963377774*n+.2158037573*a)**3,i=(t-.1055613458*n-.0638541728*a)**3,u=(t-.0894841775*n-1.291485548*a)**3,f=xo(4.0767416621*c-3.3077115913*i+.2309699292*u),p=xo(-1.2684380046*c+2.6097574011*i-.3413193965*u),h=xo(-.0041960863*c-.7034186147*i+1.707614701*u);return[f*255,p*255,h*255]};ct.oklch.oklab=function(e){return ct.lch.lab(e)};ct.lab.xyz=function(e){const t=e[0],n=e[1],a=e[2];let c,i,u;i=(t+16)/116,c=n/500+i,u=i-a/200;const f=i**3,p=c**3,h=u**3;return i=f>ei?f:(i-16/116)/7.787,c=p>ei?p:(c-16/116)/7.787,u=h>ei?h:(u-16/116)/7.787,c*=95.047,i*=100,u*=108.883,[c,i,u]};ct.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let c;c=Math.atan2(a,n)*360/2/Math.PI,c<0&&(c+=360);const u=Math.sqrt(n*n+a*a);return[t,u,c]};ct.lch.lab=function(e){const t=e[0],n=e[1],c=e[2]/360*2*Math.PI,i=n*Math.cos(c),u=n*Math.sin(c);return[t,i,u]};ct.rgb.ansi16=function(e,t=null){const[n,a,c]=e;let i=t===null?ct.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let u=30+(Math.round(c/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return i===2&&(u+=60),u};ct.hsv.ansi16=function(e){return ct.rgb.ansi16(ct.hsv.rgb(e),e[2])};ct.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];return t>>4===n>>4&&n>>4===a>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)};ct.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,a=(t&1)*n*255,c=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[a,c,i]};ct.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,c=t%6/5*255;return[n,a,c]};ct.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};ct.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(f=>f+f).join(""));const a=Number.parseInt(n,16),c=a>>16&255,i=a>>8&255,u=a&255;return[c,i,u]};ct.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,c=Math.max(Math.max(t,n),a),i=Math.min(Math.min(t,n),a),u=c-i;let f;const p=u<1?i/(1-u):0;return u<=0?f=0:c===t?f=(n-a)/u%6:c===n?f=2+(a-t)/u:f=4+(t-n)/u,f/=6,f%=1,[f*360,u*100,p*100]};ct.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let c=0;return a<1&&(c=(n-.5*a)/(1-a)),[e[0],a*100,c*100]};ct.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let c=0;return a<1&&(c=(n-a)/(1-a)),[e[0],a*100,c*100]};ct.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(n===0)return[a*255,a*255,a*255];const c=[0,0,0],i=t%1*6,u=i%1,f=1-u;let p=0;switch(Math.floor(i)){case 0:{c[0]=1,c[1]=u,c[2]=0;break}case 1:{c[0]=f,c[1]=1,c[2]=0;break}case 2:{c[0]=0,c[1]=1,c[2]=u;break}case 3:{c[0]=0,c[1]=f,c[2]=1;break}case 4:{c[0]=u,c[1]=0,c[2]=1;break}default:c[0]=1,c[1]=0,c[2]=f}return p=(1-n)*a,[(n*c[0]+p)*255,(n*c[1]+p)*255,(n*c[2]+p)*255]};ct.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);let c=0;return a>0&&(c=t/a),[e[0],c*100,a*100]};ct.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let c=0;return a>0&&a<.5?c=t/(2*a):a>=.5&&a<1&&(c=t/(2*(1-a))),[e[0],c*100,a*100]};ct.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);return[e[0],(a-t)*100,(1-a)*100]};ct.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,c=a-t;let i=0;return c<1&&(i=(a-c)/(1-c)),[e[0],c*100,i*100]};ct.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ct.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ct.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ct.gray.hsl=function(e){return[0,0,e[0]]};ct.gray.hsv=ct.gray.hsl;ct.gray.hwb=function(e){return[0,100,e[0]]};ct.gray.cmyk=function(e){return[0,0,0,e[0]]};ct.gray.lab=function(e){return[e[0],0,0]};ct.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(a.length)+a};ct.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function qS(){const e={},t=Object.keys(ct);for(let{length:n}=t,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}function JS(e){const t=qS(),n=[e];for(t[e].distance=0;n.length>0;){const a=n.pop(),c=Object.keys(ct[a]);for(let{length:i}=c,u=0;u<i;u++){const f=c[u],p=t[f];p.distance===-1&&(p.distance=t[a].distance+1,p.parent=a,n.unshift(f))}}return t}function XS(e,t){return function(n){return t(e(n))}}function KS(e,t){const n=[t[e].parent,e];let a=ct[t[e].parent][e],c=t[e].parent;for(;t[c].parent;)n.unshift(t[c].parent),a=XS(ct[t[c].parent][c],a),c=t[c].parent;return a.conversion=n,a}function eD(e){const t=JS(e),n={},a=Object.keys(t);for(let{length:c}=a,i=0;i<c;i++){const u=a[i];t[u].parent!==null&&(n[u]=KS(u,t))}return n}const Dr={},tD=Object.keys(ct);function rD(e){const t=function(...n){const a=n[0];return a==null?a:(a.length>1&&(n=a),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function nD(e){const t=function(...n){const a=n[0];if(a==null)return a;a.length>1&&(n=a);const c=e(n);if(typeof c=="object")for(let{length:i}=c,u=0;u<i;u++)c[u]=Math.round(c[u]);return c};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of tD){Dr[e]={},Object.defineProperty(Dr[e],"channels",{value:ct[e].channels}),Object.defineProperty(Dr[e],"labels",{value:ct[e].labels});const t=eD(e),n=Object.keys(t);for(const a of n){const c=t[a];Dr[e][a]=nD(c),Dr[e][a].raw=rD(c)}}const s9=["keyword","gray","hex"],Ju={};for(const e of Object.keys(Dr))Ju[[...Dr[e].labels].sort().join("")]=e;const va={};function xr(e,t){if(!(this instanceof xr))return new xr(e,t);if(t&&t in s9&&(t=null),t&&!(t in Dr))throw new Error("Unknown model: "+t);let n,a;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof xr)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const c=Er.get(e);if(c===null)throw new Error("Unable to parse color from string: "+e);this.model=c.model,a=Dr[this.model].channels,this.color=c.value.slice(0,a),this.valpha=typeof c.value[a]=="number"?c.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=Dr[this.model].channels;const c=Array.prototype.slice.call(e,0,a);this.color=Xu(c,a),this.valpha=typeof e[a]=="number"?e[a]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const c=Object.keys(e);"alpha"in e&&(c.splice(c.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=c.sort().join("");if(!(i in Ju))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Ju[i];const{labels:u}=Dr[this.model],f=[];for(n=0;n<u.length;n++)f.push(e[u[n]]);this.color=Xu(f)}if(va[this.model])for(a=Dr[this.model].channels,n=0;n<a;n++){const c=va[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}xr.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Er.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Er.to[t.model](...n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Er.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Dr[this.model],{labels:n}=Dr[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new xr([...this.color.map(oD(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new xr([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:mr("rgb",0,Ir(255)),green:mr("rgb",1,Ir(255)),blue:mr("rgb",2,Ir(255)),hue:mr(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:mr("hsl",1,Ir(100)),lightness:mr("hsl",2,Ir(100)),saturationv:mr("hsv",1,Ir(100)),value:mr("hsv",2,Ir(100)),chroma:mr("hcg",1,Ir(100)),gray:mr("hcg",2,Ir(100)),white:mr("hwb",1,Ir(100)),wblack:mr("hwb",2,Ir(100)),cyan:mr("cmyk",0,Ir(100)),magenta:mr("cmyk",1,Ir(100)),yellow:mr("cmyk",2,Ir(100)),black:mr("cmyk",3,Ir(100)),x:mr("xyz",0,Ir(95.047)),y:mr("xyz",1,Ir(100)),z:mr("xyz",2,Ir(108.833)),l:mr("lab",0,Ir(100)),a:mr("lab",1),b:mr("lab",2),keyword(e){return e!==void 0?new xr(e):Dr[this.model].keyword(this.color)},hex(e){return e!==void 0?new xr(e):Er.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new xr(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Er.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,a]of e.entries()){const c=a/255;t[n]=c<=.04045?c/12.92:((c+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return xr.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),a=this.rgb(),c=t===void 0?.5:t,i=2*c-1,u=n.alpha()-a.alpha(),f=((i*u===-1?i:(i+u)/(1+i*u))+1)/2,p=1-f;return xr.rgb(f*n.red()+p*a.red(),f*n.green()+p*a.green(),f*n.blue()+p*a.blue(),n.alpha()*c+a.alpha()*(1-c))}};for(const e of Object.keys(Dr)){if(s9.includes(e))continue;const{channels:t}=Dr[e];xr.prototype[e]=function(...n){return this.model===e?new xr(this):n.length>0?new xr(n,e):new xr([...aD(Dr[this.model][e].raw(this.color)),this.valpha],e)},xr[e]=function(...n){let a=n[0];return typeof a=="number"&&(a=Xu(n,t)),new xr(a,e)}}function iD(e,t){return Number(e.toFixed(t))}function oD(e){return function(t){return iD(t,e)}}function mr(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(va[a]||(va[a]=[]))[t]=n;return e=e[0],function(a){let c;return a!==void 0?(n&&(a=n(a)),c=this[e](),c.color[t]=a,c):(c=this[e]().color[t],n&&(c=n(c)),c)}}function Ir(e){return function(t){return Math.max(0,Math.min(e,t))}}function aD(e){return Array.isArray(e)?e:[e]}function Xu(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}const sD=Ht()(e=>({tokenListItem:{display:"flex",justifyContent:"space-between",padding:"8px 16px",borderRadius:0,":hover":{backgroundColor:xr(e.palette.primary.main).alpha(.07).hexa()}},tokenListItemSelected:{backgroundColor:xr(e.palette.primary.main).alpha(.07).hexa()},tokenDetails:{display:"flex",flexDirection:"row",alignItems:"center"},addressLink:{display:"inline-flex",alignItems:"center",height:"10px",overflow:"hidden",color:e.palette.text.primary,opacity:.6},wormholeWrappedDisclaimer:{display:"inline",marginRight:4}}));function cD(e){var p;const{classes:t}=sD(),n=bt.useTheme(),{chain:a,token:c}=e,i=(p=c.tokenId)==null?void 0:p.address.toString(),u=i?da(a,i,"token"):void 0,f=`${c.shortAddress}`;return A.jsxs(Yn,{className:`${t.tokenListItem} ${e.isSelected?t.tokenListItemSelected:""}`,dense:!0,disabled:e.disabled,"data-testid":`token-button-${a.toLowerCase()}-${c.address.toString()}`,onMouseDown:e.onClick,children:[A.jsxs("div",{className:t.tokenDetails,children:[A.jsx(tc,{children:A.jsx(x1,{icon:e.token.icon})}),A.jsxs("div",{children:[A.jsx(Ke,{children:c.display}),A.jsxs(bt.Box,{display:"flex",children:[c.tokenBridgeOriginalTokenId?A.jsx(bt.Tooltip,{title:`Wormhole-wrapped from ${lw(c.tokenBridgeOriginalTokenId.chain)}`,children:A.jsx(bt.Box,{margin:"2px",marginRight:"5px",children:A.jsx(eo,{height:10,icon:c.tokenBridgeOriginalTokenId.chain})})}):null,c.symbol?A.jsx(Ke,{fontSize:10,color:n.palette.text.secondary,children:c.symbol}):null,c.symbol&&!c.isNativeGasToken?A.jsx(Ke,{fontSize:10,color:n.palette.text.secondary,marginLeft:1,marginRight:1,children:"•"}):null,c.isNativeGasToken?null:A.jsx(Ke,{fontSize:10,color:n.palette.text.secondary,children:!_.isNative(i)&&A.jsxs(Yo,{onMouseDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),className:t.addressLink,href:u,rel:"noreferrer noopener",target:"_blank",children:[f,A.jsx(n9,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]})})]})]})]}),A.jsxs(Yt,{alignItems:"flex-end",children:[A.jsx(Ke,{fontSize:14,children:e.isFetchingBalance?A.jsx(Lr,{size:24}):e.balance?_.display(_.truncate(e.balance,6)):""}),e.price&&A.jsx(Ke,{color:n.palette.text.secondary,fontSize:"10px",children:e.price})]})]})}const lD=ie.memo(cD),fD=Ht()(e=>({card:{background:e.palette.input.background,maxWidth:"420px"},tokenListContainer:{padding:"16px 0 0 0 !important"},title:{fontSize:14,marginBottom:"8px"},tokenLoader:{padding:0,display:"flex",justifyContent:"space-between"},tokenList:{maxHeight:"360px",[e.breakpoints.down("sm")]:{maxHeight:"480px"}}})),Yp=e=>{var L;const{classes:t}=fD(),n=bt.useTheme(),a=ge.ui.disableUserInputtedTokens!==!0,{getOrFetchToken:c,isFetchingToken:i,getTokenPrice:u}=On(),[f,p]=ie.useState(""),{isFetching:h,balances:g}=E8(e.wallet,e.selectedChainConfig.sdkName,e.tokenList||[]);ie.useEffect(()=>{if(a)try{if(f!==""){const E=e.selectedChainConfig.sdkName,D=_.toNative(E,f);D&&(ge.tokens.get(E,f)||c({chain:E,address:D}))}}catch{}},[f,e.selectedChainConfig.sdkName]);const C=E=>{if(e.selectedToken&&Ou(e.selectedToken,E))return 4;if(_.isNative(E.addressString))return 3;const D=_.usdcContract.get(ge.network,E.chain);return D&&E.addressString===D?2:E.isTokenBridgeWrappedToken?0:1},w=ie.useMemo(()=>{if(!e.tokenList)return[];const E=e.tokenList;if(f){let R=[];const Q=ge.tokens.get(e.selectedChainConfig.sdkName,f);Q&&R.push(Q);const B=ge.tokens.queryBySymbol(e.selectedChainConfig.sdkName,f).filter(k=>!kg(k,e.selectedChainConfig.sdkName));B.length>0&&(R=R.concat(B));for(const k of R)e.tokenList.find(z=>Ou(k,z))||E.push(k)}const D=R=>{const Q=g[pi(R)];return!Q||!Q.balance?0:Yi(u,Q.balance,R)??0};let O=E.sort((R,Q)=>{const B=C(R),k=C(Q);if(B>k)return-1;if(k>B)return 1;const z=D(R),y=D(Q);return z!==y?y-z:R.symbol.localeCompare(Q.symbol)});if(ge.tokenWhitelist&&ge.tokenWhitelist.length>0){const R=new Set,Q=[];for(const B of ge.tokenWhitelist)if(typeof B=="string")Q.push(B);else if(Fd(B)){const k=G0(B);k.chain===e.selectedChainConfig.sdkName&&R.add(k.address.toString())}for(const B of Q){let k=!1;const z=[];for(const y of O)y.symbol===B&&(y.isTokenBridgeWrappedToken?z.push(y):(R.add(y.address.toString()),k=!0));if(!k&&z.length>0){for(const{address:y}of z)R.add(y.toString());z.length>1&&console.warn(`Ambiguous token whitelist item "${B}"; found ${z.length} matching wrapped tokens.`)}}O=O.filter(B=>R.has(B.address.toString()))}const F=ge.isTokenSupportedHandler;return F&&(O=O.filter(R=>F(R,e.sourceToken))),e.isSource&&e.wallet.address&&(O=O.filter(R=>{var B;const Q=(B=g[pi(R)])==null?void 0:B.balance;return Q&&_.units(Q)>0})),O},[e.selectedChainConfig.sdkName,e.selectedToken,e.tokenList,e.sourceToken,e.isSource,(L=e.wallet)==null?void 0:L.address,g,f]),j=ie.useMemo(()=>A.jsx(Ke,{variant:"body2",color:n.palette.grey.A400,children:"No supported tokens found in wallet"}),[n.palette.grey.A400]),I=w.length===0&&!h&&!e.isFetching,T=`Search for a token${a?" or paste an address":""}`,S=A.jsx(r9,{searchPlaceholder:T,className:t.tokenList,dataTestId:"token-search-list",listTitle:I?j:A.jsxs(Ke,{fontSize:14,color:n.palette.text.secondary,children:["Tokens on ",e.selectedChainConfig.displayName]}),loading:e.isFetching&&[1,2,3].map(E=>A.jsx(Yn,{className:t.tokenLoader,dense:!0,children:A.jsx(bt.Box,{padding:"8px 16px",children:A.jsx(bt.Skeleton,{variant:"circular",width:"36px",height:"36px"},E)})})),items:w,onQueryChange:E=>{p(E)},filterFn:(E,D)=>{if(D.length===0)return!0;const O=D.toLowerCase();return!!([E.symbol,E.name].some(R=>{var Q,B;return(B=(Q=R==null?void 0:R.toLowerCase())==null?void 0:Q.startsWith)==null?void 0:B.call(Q,O)})||E.address.toString().toLowerCase()===O||E.tokenBridgeOriginalTokenId&&E.tokenBridgeOriginalTokenId.address.toString().toLowerCase().includes(O))},renderFn:E=>{var R,Q,B;const D=(R=g==null?void 0:g[E.key])==null?void 0:R.balance,O=D?Xn(u,D,E):null,F=e.isSource&&!!((Q=e.wallet)!=null&&Q.address)&&!!g&&(!D||_.units(D)===0n);return A.jsx(lD,{token:E,chain:e.selectedChainConfig.sdkName,disabled:F,onClick:()=>{e.onSelectToken(E)},balance:D,price:O,isSelected:E.key===((B=e.selectedToken)==null?void 0:B.key),isFetchingBalance:h},E.key)}});return A.jsx(bt.Card,{className:t.card,variant:"elevation",children:A.jsxs(bt.CardContent,{className:t.tokenListContainer,children:[A.jsxs(bt.Box,{sx:{display:"flex",width:"100%",padding:"0 16px"},children:[A.jsx(Ke,{width:"100%",className:t.title,children:"Select a token"}),i?A.jsx(Lr,{sx:{alignSelf:"flex-end",marginBottom:"12px"},size:14}):null]}),S]})})};function uD(e){const{badgeContent:t,invisible:n=!1,max:a=99,showZero:c=!1}=e,i=l5({badgeContent:t,max:a});let u=n;n===!1&&t===0&&!c&&(u=!0);const{badgeContent:f,max:p=a}=u?i:e,h=f&&Number(f)>p?`${p}+`:f;return{badgeContent:f,invisible:u,max:p,displayValue:h}}function dD(e){return It("MuiBadge",e)}const ci=Et("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),eu=10,tu=4,hD=e=>{const{color:t,anchorOrigin:n,invisible:a,overlap:c,variant:i,classes:u={}}=e,f={root:["root"],badge:["badge",i,a&&"invisible",`anchorOrigin${tt(n.vertical)}${tt(n.horizontal)}`,`anchorOrigin${tt(n.vertical)}${tt(n.horizontal)}${tt(c)}`,`overlap${tt(c)}`,t!=="default"&&`color${tt(t)}`]};return St(f,dD,u)},pD=$e("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),gD=$e("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${tt(n.anchorOrigin.vertical)}${tt(n.anchorOrigin.horizontal)}${tt(n.overlap)}`],n.color!=="default"&&t[`color${tt(n.color)}`],n.invisible&&t.invisible]}})(At(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:eu*2,lineHeight:1,padding:"0 6px",height:eu*2,borderRadius:eu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Or(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:tu,height:tu*2,minWidth:tu*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ci.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Wp(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const c9=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiBadge"}),{anchorOrigin:c,className:i,classes:u,component:f,components:p={},componentsProps:h={},children:g,overlap:C="rectangular",color:w="default",invisible:j=!1,max:I=99,badgeContent:T,slots:S,slotProps:L,showZero:E=!1,variant:D="standard",...O}=a,{badgeContent:F,invisible:R,max:Q,displayValue:B}=uD({max:I,invisible:j,badgeContent:T,showZero:E}),k=l5({anchorOrigin:Wp(c),color:w,overlap:C,variant:D,badgeContent:T}),z=R||F==null&&D!=="dot",{color:y=w,overlap:r=C,anchorOrigin:s,variant:l=D}=z?k:a,d=Wp(s),M=l!=="dot"?B:void 0,b={...a,badgeContent:F,invisible:z,max:Q,displayValue:M,showZero:E,anchorOrigin:d,color:y,overlap:r,variant:l},N=hD(b),m=(S==null?void 0:S.root)??p.Root??pD,o=(S==null?void 0:S.badge)??p.Badge??gD,x=(L==null?void 0:L.root)??h.root,W=(L==null?void 0:L.badge)??h.badge,Z=t0({elementType:m,externalSlotProps:x,externalForwardedProps:O,additionalProps:{ref:n,as:f},ownerState:b,className:vt(x==null?void 0:x.className,N.root,i)}),G=t0({elementType:o,externalSlotProps:W,ownerState:b,className:vt(N.badge,W==null?void 0:W.className)});return A.jsxs(m,{...Z,children:[g,A.jsx(o,{...G,children:M})]})});_.dist.process.env.NODE_ENV!=="production"&&(c9.propTypes={anchorOrigin:v.shape({horizontal:v.oneOf(["left","right"]),vertical:v.oneOf(["bottom","top"])}),badgeContent:v.node,children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["default","primary","secondary","error","info","success","warning"]),v.string]),component:v.elementType,components:v.shape({Badge:v.elementType,Root:v.elementType}),componentsProps:v.shape({badge:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),invisible:v.bool,max:v.number,overlap:v.oneOf(["circular","rectangular"]),showZero:v.bool,slotProps:v.shape({badge:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({badge:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["dot","standard"]),v.string])});const mD=Ht()(e=>({badgeContent:{border:`1.5px solid ${e.palette.input.background}`,borderRadius:"4px"}}));function za(e){const{classes:t}=mD(),{chainConfig:n,token:a}=e;return A.jsx(c9,{badgeContent:A.jsx(vn,{className:t.badgeContent,children:A.jsx(eo,{icon:n==null?void 0:n.icon,height:13})}),sx:{zIndex:0,height:"38px",marginRight:"8px","& .MuiBadge-badge":{right:2,top:32}},children:A.jsx(x1,{icon:a==null?void 0:a.icon,height:36})})}const MD=Ht()(e=>({inputArea:{width:"100%",cursor:"pointer",maxWidth:"420px",borderRadius:"8px",background:e.palette.input.fillTreatment?"transparent":e.palette.input.background,border:e.palette.input.fillTreatment?`1px solid ${e.palette.input.border}`:"none"},inputAreaEmpty:{borderColor:e.palette.input.background,background:e.palette.input.background},cardContent:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"72px",padding:"16px 20px",":last-child":{padding:"16px 20px"}},chainSelector:{display:"flex",alignItems:"center",justifyContent:"space-between"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},popover:{marginLeft:"-1px",marginTop:"-1px",width:"422px"},popoverSlot:{width:"100%",maxWidth:"422px",borderRadius:"8px",background:e.palette.input.background},backdrop:{backgroundColor:"rgba(0,0,0,0.2)"},drawer:{background:e.palette.input.background,borderRadius:"8px",height:"calc(100vh - 40px)",maxWidth:"100vw"}})),Hp=e=>{const t=bt.useTheme(),n=bt.useMediaQuery(t.breakpoints.down("sm")),[a,c]=ie.useState(!1),[i,u]=ie.useState(!1),{classes:f}=MD(),p=K8({variant:"popover",popupId:"asset-picker"});ie.useEffect(()=>{(n&&!i||!n&&!p.isOpen)&&setTimeout(()=>{c(!1)},300)},[i,n,p.isOpen]),ie.useEffect(()=>{if(n&&i&&!e.chain||!n&&p.isOpen&&!e.chain){const w=e.chainList.find(j=>!Pg(j.sdkName,e.wallet));w&&e.setChain(w.sdkName)}},[n,i,p.isOpen]);const h=ie.useMemo(()=>e.chain?ge.chains[e.chain]:void 0,[e.chain]),g=ie.useMemo(()=>{if(!h&&!e.token)return A.jsx(Ke,{component:"div",fontSize:16,children:"Select chain and token"});const w=e.token?A.jsx(A.Fragment,{children:e.token.display}):A.jsx(A.Fragment,{children:"Select token"});return A.jsxs("div",{children:[A.jsx(Ke,{component:"div",maxWidth:300,fontSize:16,fontWeight:700,sx:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w}),A.jsx(Ke,{component:"div",fontSize:12,sx:{opacity:.6},children:h==null?void 0:h.displayName})]})},[h,e.token]),C=e.isTransactionInProgress||n?{}:e9(p);return A.jsxs(A.Fragment,{children:[A.jsx(d1,{open:p.isOpen,className:f.backdrop}),A.jsx(Ti,{className:yn([f.inputArea,!h&&f.inputAreaEmpty,e.isTransactionInProgress&&f.disabled]),"data-testid":e.dataTestId,variant:"elevation",onMouseDown:w=>{n?u(!0):p.open(w)},onTouchEnd:w=>{w.stopPropagation(),w.preventDefault(),n?u(!0):p.open(w)},...C,children:A.jsxs(Ai,{className:f.cardContent,children:[A.jsxs(Ke,{className:f.chainSelector,component:"div",gap:1,children:[A.jsx(za,{chainConfig:h,token:e.token}),g]}),p.isOpen||i?A.jsx(oS,{}):A.jsx(iS,{})]})}),n?A.jsxs(X8,{anchor:"bottom",open:i,PaperProps:{className:f.drawer},transitionDuration:200,onOpen:()=>u(!0),onClose:()=>u(!1),children:[A.jsx(bt.Stack,{alignItems:"center",paddingBottom:"4px",paddingTop:"8px",children:A.jsx(bt.Box,{sx:{width:"40px",height:"5px",backgroundColor:t.palette.text.secondary,borderRadius:"8px"}})}),A.jsx(Rp,{chainList:e.chainList,selectedChainConfig:h,showSearch:a,setShowSearch:c,wallet:e.wallet,onChainSelect:w=>{e.setChain(w)}}),!a&&h&&A.jsx(Yp,{tokenList:e.tokenList,isFetching:e.isFetching,selectedChainConfig:h,selectedToken:e.token,sourceToken:e.sourceToken,wallet:e.wallet,onSelectToken:w=>{e.setToken(w),u(!1)},isSource:e.isSource})]}):A.jsxs(fc,{...t9(p),transitionDuration:200,anchorOrigin:{vertical:"top",horizontal:"center"},className:f.popover,transformOrigin:{vertical:"top",horizontal:"center"},marginThreshold:4,slotProps:{paper:{className:f.popoverSlot,sx:{borderRadius:"8px"}}},children:[A.jsx(Rp,{chainList:e.chainList,selectedChainConfig:h,showSearch:a,setShowSearch:c,wallet:e.wallet,onChainSelect:w=>{e.setChain(w)}}),!a&&h&&A.jsx(Yp,{tokenList:e.tokenList,isFetching:e.isFetching,selectedChainConfig:h,selectedToken:e.token,sourceToken:e.sourceToken,wallet:e.wallet,onSelectToken:w=>{e.setToken(w),p.close()},isSource:e.isSource})]})]})},yD=e=>{const{address:t,href:n,target:a="_blank",label:c="Transactions"}=e,i=ie.useCallback(()=>window.open(n.replace("{:address}",t),a),[t,n,a]);return A.jsx(bt.ListItemButton,{onClick:i,children:A.jsx(bt.Typography,{fontSize:14,children:c})})},vD=Ht()(e=>({connectWallet:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingTop:"2px",opacity:1},walletAddress:{color:e.palette.textSecondary,marginLeft:"8px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},dropdown:{backgroundColor:e.palette.popover.background,display:"flex",flexDirection:"column",gap:"8px",padding:"8px"},dropdownItem:{borderRadius:"8px",padding:"16px",cursor:"pointer","&:hover":{backgroundColor:e.palette.popover.secondary}}})),xD=1e3,Zp=e=>{const t=Sr(),{classes:n}=vD(),{isTransactionInProgress:a}=qt(I=>I.transferInput),c=qt(I=>I.wallet[e.type]),[i,u]=ie.useState(!1),[f,p]=ie.useState(!1),h=K8({variant:"popover",popupId:`connected-wallet-popover-${e.type}`}),g=ie.useCallback(()=>{h==null||h.close(),u(!0)},[h]),C=ie.useCallback(()=>{Og(c.address),h==null||h.close(),p(!0)},[h,c.address]),w=ie.useCallback(()=>{t(KC(e.type)),h==null||h.close()},[t,h,e.type]);ie.useEffect(()=>{f&&setTimeout(()=>{p(!1)},xD)},[f]);const j=a?{}:e9(h);return A.jsxs(A.Fragment,{children:[c!=null&&c.address?A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:yn([n.connectWallet,a&&n.disabled]),...j,children:[A.jsx(q8,{name:c.name,icon:c.icon,size:20}),A.jsx(bt.Tooltip,{title:"Copied",open:f,placement:"top",arrow:!0,children:A.jsx(Ke,{className:n.walletAddress,fontSize:14,fontWeight:700,children:Dg(c.type,c.address)})})]}),A.jsx(fc,{...t9(h),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:A.jsxs(Wo,{children:[A.jsx(Yn,{onClick:C,children:A.jsx(Ke,{fontSize:14,children:"Copy address"})}),ge.ui.explorer?A.jsx(yD,{address:c.address,href:ge.ui.explorer.href,target:ge.ui.explorer.target,label:ge.ui.explorer.label}):null,A.jsx(Yn,{onClick:g,children:A.jsx(Ke,{fontSize:14,children:"Change wallet"})}),A.jsx(Yn,{onClick:w,children:A.jsx(Ke,{fontSize:14,children:"Disconnect"})})]})})]}):null,A.jsx(v1,{open:i,type:e.type,onClose:()=>{u(!1)},showAddressInput:e.type===jr.RECEIVING})]})},bD=500,CD=ie.memo(({value:e,onChange:t,onDebouncedChange:n,...a})=>{const[c,i]=ie.useState(e),[u,f]=ie.useState(!1),p=a1(n,bD),h=ie.useCallback(g=>{let C=g.target.value;C==="."&&(C="0.");const w=Number(C);isNaN(w)||w<0||(i(g.target.value),t(g.target.value),p(g.target.value))},[p,t]);return ie.useEffect(()=>{u||i(e)},[e]),A.jsx(Da,{...a,"data-testid":"amount-input",value:c,focused:u,onChange:h,onFocus:()=>f(!0),onBlur:()=>f(!1)})}),wD=Ht()(e=>({amountContainer:{width:"100%",maxWidth:"420px"},amountInput:{borderRadius:"8px",background:e.palette.input.fillTreatment?"transparent":e.palette.input.background,border:e.palette.input.fillTreatment?`1px solid ${e.palette.input.border}`:"none"},amountInputEmpty:{background:e.palette.input.background,borderColor:e.palette.input.background},amountCardContent:{display:"flex",alignItems:"center",height:"72px",padding:"12px 20px",":last-child":{padding:"12px 20px"}},amountTitle:{color:e.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},inputError:{marginTop:"12px"},balance:{color:e.palette.text.secondary,fontSize:"14px",lineHeight:"14px",textAlign:"right"}})),ND=e=>{const{classes:t}=wD(),n=Sr(),a=bt.useTheme(),{sending:c}=qt(O=>O.wallet),{amount:i}=qt(O=>O.transferInput),[u,f]=ie.useState(i?_.display(i):""),[p,h]=ie.useState(i?_.display(i):""),{fromChain:g,isTransactionInProgress:C}=qt(O=>O.transferInput),{sourceToken:w}=X0(),{getTokenPrice:j}=On();ie.useEffect(()=>{!i&&(u||p)&&(S(""),E(""))},[i]);const I=ie.useMemo(()=>C||!g||!w,[C,g,w]),T=ie.useMemo(()=>I||!c.address?null:A.jsxs(Yt,{direction:"row",alignItems:"center",children:[A.jsx(Ke,{className:t.balance,component:"span",sx:{marginRight:"4px"},children:"Balance:"}),e.isFetchingTokenBalance?A.jsx(Lr,{size:14}):A.jsx(Ke,{fontSize:14,textAlign:"right",className:t.balance,children:e.tokenBalance?_.display(_.truncate(e.tokenBalance,6)):"0"})]}),[I,c.address,t.balance,e.isFetchingTokenBalance,e.tokenBalance]),S=ie.useCallback(O=>{f(O)},[]),L=ie.useMemo(()=>{const O=Xn(j,Number(u==="."?"0.":u),w);return O?A.jsx(La,{position:"end",sx:{position:"absolute",top:"38px",margin:0},children:A.jsx(Yt,{alignItems:"start",children:A.jsx(Ke,{color:a.palette.text.secondary,component:"span",fontSize:"14px",lineHeight:"14px",children:O})})}):null},[u,j,w,a.palette.text.secondary]),E=ie.useCallback(O=>{n(Wd(O)),h(O)},[n]),D=ie.useMemo(()=>{const O=I||!c.address||!e.tokenBalance;return A.jsx(Uo,{sx:{minWidth:"32px",padding:"4px"},disabled:O,onClick:()=>{if(e.tokenBalance){const F=_.display(e.tokenBalance);S(F),E(F)}},children:A.jsx(Ke,{fontSize:14,fontWeight:O?400:600,textTransform:"none",children:"Max"})})},[I,c.address,e.tokenBalance,S,E]);return A.jsxs("div",{className:t.amountContainer,children:[A.jsx("div",{className:t.amountTitle,children:A.jsx(Ke,{variant:"body2",children:"Amount"})}),A.jsx(Ti,{className:`${t.amountInput} ${u===""?t.amountInputEmpty:""}`,children:A.jsx(Ai,{className:t.amountCardContent,children:A.jsx(CD,{fullWidth:!0,disabled:I,inputProps:{style:{color:e.error?a.palette.error.main:a.palette.text.primary,fontSize:24,height:"28px",marginBottom:L?"16px":0,padding:0},onWheel:O=>{O.currentTarget.blur()},step:"0.1"},placeholder:"0",variant:"standard",value:p,onChange:S,onDebouncedChange:E,InputProps:{disableUnderline:!0,startAdornment:L,endAdornment:A.jsx(La,{position:"end",children:A.jsxs(Yt,{alignItems:"end",justifyContent:"space-between",children:[D,T]})})}})})}),A.jsx(Xa,{error:!!e.error,content:e.error||e.warning,show:!!e.error||!!e.warning,color:e.error?a.palette.error.main:a.palette.grey.A400,className:t.inputError})]})};function jD(e){return It("MuiCardActionArea",e)}const ru=Et("MuiCardActionArea",["root","focusVisible","focusHighlight"]),TD=e=>{const{classes:t}=e;return St({root:["root"],focusHighlight:["focusHighlight"]},jD,t)},AD=$e(so,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(At(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${ru.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${ru.focusVisible} .${ru.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),ID=$e("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(At(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),uc=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiCardActionArea"}),{children:c,className:i,focusVisibleClassName:u,...f}=a,p=a,h=TD(p);return A.jsxs(AD,{className:vt(h.root,i),focusVisibleClassName:vt(u,h.focusVisible),ref:n,ownerState:p,...f,children:[c,A.jsx(ID,{className:h.focusHighlight,ownerState:p})]})});_.dist.process.env.NODE_ENV!=="production"&&(uc.propTypes={children:v.node,classes:v.object,className:v.string,focusVisibleClassName:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function ED(e){return It("MuiCardHeader",e)}const b0=Et("MuiCardHeader",["root","avatar","action","content","title","subheader"]),LD=e=>{const{classes:t}=e;return St({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},ED,t)},SD=$e("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${b0.title}`]:t.title},{[`& .${b0.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),DD=$e("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),OD=$e("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),zD=$e("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${cp.root}:where(& .${b0.title})`]:{display:"block"},[`.${cp.root}:where(& .${b0.subheader})`]:{display:"block"}}),b1=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiCardHeader"}),{action:c,avatar:i,component:u="div",disableTypography:f=!1,subheader:p,subheaderTypographyProps:h,title:g,titleTypographyProps:C,slots:w={},slotProps:j={},...I}=a,T={...a,component:u,disableTypography:f},S=LD(T),L={slots:w,slotProps:{title:C,subheader:h,...j}};let E=g;const[D,O]=Zt("title",{className:S.title,elementType:Ke,externalForwardedProps:L,ownerState:T,additionalProps:{variant:i?"body2":"h5",component:"span"}});E!=null&&E.type!==Ke&&!f&&(E=A.jsx(D,{...O,children:E}));let F=p;const[R,Q]=Zt("subheader",{className:S.subheader,elementType:Ke,externalForwardedProps:L,ownerState:T,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});F!=null&&F.type!==Ke&&!f&&(F=A.jsx(R,{...Q,children:F}));const[B,k]=Zt("root",{ref:n,className:S.root,elementType:SD,externalForwardedProps:{...L,...I,component:u},ownerState:T}),[z,y]=Zt("avatar",{className:S.avatar,elementType:DD,externalForwardedProps:L,ownerState:T}),[r,s]=Zt("content",{className:S.content,elementType:zD,externalForwardedProps:L,ownerState:T}),[l,d]=Zt("action",{className:S.action,elementType:OD,externalForwardedProps:L,ownerState:T});return A.jsxs(B,{...k,children:[i&&A.jsx(z,{...y,children:i}),A.jsxs(r,{...s,children:[E,F]}),c&&A.jsx(l,{...d,children:c})]})});_.dist.process.env.NODE_ENV!=="production"&&(b1.propTypes={action:v.node,avatar:v.node,children:v.node,classes:v.object,component:v.elementType,disableTypography:v.bool,slotProps:v.shape({action:v.oneOfType([v.func,v.object]),avatar:v.oneOfType([v.func,v.object]),content:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object]),subheader:v.oneOfType([v.func,v.object]),title:v.oneOfType([v.func,v.object])}),slots:v.shape({action:v.elementType,avatar:v.elementType,content:v.elementType,root:v.elementType,subheader:v.elementType,title:v.elementType}),subheader:v.node,subheaderTypographyProps:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),title:v.node,titleTypographyProps:v.object});function kD(e){return It("MuiCollapse",e)}Et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _D=e=>{const{orientation:t,classes:n}=e,a={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return St(a,kD,n)},BD=$e("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(At(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),FD=$e("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),RD=$e("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ka=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiCollapse"}),{addEndListener:c,children:i,className:u,collapsedSize:f="0px",component:p,easing:h,in:g,onEnter:C,onEntered:w,onEntering:j,onExit:I,onExited:T,onExiting:S,orientation:L="vertical",style:E,timeout:D=v5.standard,TransitionComponent:O=In,...F}=a,R={...a,orientation:L,collapsedSize:f},Q=_D(R),B=Dn(),k=Pi(),z=ae.useRef(null),y=ae.useRef(),r=typeof f=="number"?`${f}px`:f,s=L==="horizontal",l=s?"width":"height",d=ae.useRef(null),M=br(n,d),b=V=>P=>{if(V){const H=d.current;P===void 0?V(H):V(H,P)}},N=()=>z.current?z.current[s?"clientWidth":"clientHeight"]:0,m=b((V,P)=>{z.current&&s&&(z.current.style.position="absolute"),V.style[l]=r,C&&C(V,P)}),o=b((V,P)=>{const H=N();z.current&&s&&(z.current.style.position="");const{duration:$,easing:X}=ni({style:E,timeout:D,easing:h},{mode:"enter"});if(D==="auto"){const te=B.transitions.getAutoHeightDuration(H);V.style.transitionDuration=`${te}ms`,y.current=te}else V.style.transitionDuration=typeof $=="string"?$:`${$}ms`;V.style[l]=`${H}px`,V.style.transitionTimingFunction=X,j&&j(V,P)}),x=b((V,P)=>{V.style[l]="auto",w&&w(V,P)}),W=b(V=>{V.style[l]=`${N()}px`,I&&I(V)}),Z=b(T),G=b(V=>{const P=N(),{duration:H,easing:$}=ni({style:E,timeout:D,easing:h},{mode:"exit"});if(D==="auto"){const X=B.transitions.getAutoHeightDuration(P);V.style.transitionDuration=`${X}ms`,y.current=X}else V.style.transitionDuration=typeof H=="string"?H:`${H}ms`;V.style[l]=r,V.style.transitionTimingFunction=$,S&&S(V)}),ee=V=>{D==="auto"&&k.start(y.current||0,V),c&&c(d.current,V)};return A.jsx(O,{in:g,onEnter:m,onEntered:x,onEntering:o,onExit:W,onExited:Z,onExiting:G,addEndListener:ee,nodeRef:d,timeout:D==="auto"?null:D,...F,children:(V,{ownerState:P,...H})=>A.jsx(BD,{as:p,className:vt(Q.root,u,{entered:Q.entered,exited:!g&&r==="0px"&&Q.hidden}[V]),style:{[s?"minWidth":"minHeight"]:r,...E},ref:M,ownerState:{...R,state:V},...H,children:A.jsx(FD,{ownerState:{...R,state:V},className:Q.wrapper,ref:z,children:A.jsx(RD,{ownerState:{...R,state:V},className:Q.wrapperInner,children:i})})})})});_.dist.process.env.NODE_ENV!=="production"&&(ka.propTypes={addEndListener:v.func,children:v.node,classes:v.object,className:v.string,collapsedSize:v.oneOfType([v.number,v.string]),component:yi,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,orientation:v.oneOf(["horizontal","vertical"]),style:v.object,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),timeout:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});ka&&(ka.muiSupportAuto=!0);function PD(e){return It("MuiDivider",e)}Et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const UD=e=>{const{absolute:t,children:n,classes:a,flexItem:c,light:i,orientation:u,textAlign:f,variant:p}=e;return St({root:["root",t&&"absolute",p,i&&"light",u==="vertical"&&"vertical",c&&"flexItem",n&&"withChildren",n&&u==="vertical"&&"withChildrenVertical",f==="right"&&u!=="vertical"&&"textAlignRight",f==="left"&&u!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",u==="vertical"&&"wrapperVertical"]},PD,a)},YD=$e("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(At(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Kt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),WD=$e("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(At(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),zo=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiDivider"}),{absolute:c=!1,children:i,className:u,orientation:f="horizontal",component:p=i||f==="vertical"?"div":"hr",flexItem:h=!1,light:g=!1,role:C=p!=="hr"?"separator":void 0,textAlign:w="center",variant:j="fullWidth",...I}=a,T={...a,absolute:c,component:p,flexItem:h,light:g,orientation:f,role:C,textAlign:w,variant:j},S=UD(T);return A.jsx(YD,{as:p,className:vt(S.root,u),role:C,ref:n,ownerState:T,"aria-orientation":C==="separator"&&(p!=="hr"||f==="vertical")?f:void 0,...I,children:i?A.jsx(WD,{className:S.wrapper,ownerState:T,children:i}):null})});zo&&(zo.muiSkipListHighlight=!0);_.dist.process.env.NODE_ENV!=="production"&&(zo.propTypes={absolute:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,flexItem:v.bool,light:v.bool,orientation:v.oneOf(["horizontal","vertical"]),role:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),textAlign:v.oneOf(["center","left","right"]),variant:v.oneOfType([v.oneOf(["fullWidth","inset","middle"]),v.string])});const HD=e=>{const{destToken:t,route:n,isTransactionInProgress:a}=e,c=a,i=!!n&&ge.routes.get(n).NATIVE_GAS_DROPOFF_SUPPORTED&&!(t!=null&&t.isNativeGasToken);return{disabled:c,showGasSlider:i}},ZD=bt.createSvgIcon(A.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),A.jsx("path",{d:"M17 11C13.1386 11 10 14.1386 10 18C10 21.8614 13.1386 25 17 25C20.8614 25 24 21.8614 24 18C24 14.1386 20.8614 11 17 11ZM17 24.0233C13.6791 24.0233 10.9767 21.3209 10.9767 18C10.9767 14.6791 13.6791 11.9767 17 11.9767C20.3209 11.9767 23.0233 14.6791 23.0233 18C23.0233 21.3209 20.3209 24.0233 17 24.0233ZM16.5116 18.6512V14.7442C16.5116 14.4772 16.733 14.2558 17 14.2558C17.267 14.2558 17.4884 14.4772 17.4884 14.7442V18.6512C17.4884 18.9181 17.267 19.1395 17 19.1395C16.733 19.1395 16.5116 18.9181 16.5116 18.6512ZM17.814 20.9302C17.814 21.3795 17.4493 21.7442 17 21.7442C16.5507 21.7442 16.186 21.3795 16.186 20.9302C16.186 20.4809 16.5507 20.1163 17 20.1163C17.4493 20.1163 17.814 20.4809 17.814 20.9302Z",fill:"currentColor"})]}),"Error"),nu=bt.createSvgIcon(A.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),A.jsx("path",{d:"M17 10.5C13.1386 10.5 10 13.6386 10 17.5C10 21.3614 13.1386 24.5 17 24.5C20.8614 24.5 24 21.3614 24 17.5C24 13.6386 20.8614 10.5 17 10.5ZM17 23.5233C13.6791 23.5233 10.9767 20.8209 10.9767 17.5C10.9767 14.1791 13.6791 11.4767 17 11.4767C20.3209 11.4767 23.0233 14.1791 23.0233 17.5C23.0233 20.8209 20.3209 23.5233 17 23.5233ZM16.5116 18.1512V14.2442C16.5116 13.9772 16.733 13.7558 17 13.7558C17.267 13.7558 17.4884 13.9772 17.4884 14.2442V18.1512C17.4884 18.4181 17.267 18.6395 17 18.6395C16.733 18.6395 16.5116 18.4181 16.5116 18.1512ZM17.814 20.4302C17.814 20.8795 17.4493 21.2442 17 21.2442C16.5507 21.2442 16.186 20.8795 16.186 20.4302C16.186 19.9809 16.5507 19.6163 17 19.6163C17.4493 19.6163 17.814 19.9809 17.814 20.4302Z",fill:"currentColor"})]}),"Warning"),QD=bt.createSvgIcon(A.jsx("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M8.9,5.7c0-.1-.2-.2-.4-.2h-4c-.3,0-.5-.2-.5-.4V0L0,7.9c0,.1,0,.3,0,.4,0,.1.2.2.4.2h4c.3,0,.5.2.5.4v5.1l4-7.9c0-.1,0-.3,0-.4Z"})}),"Fastest"),VD=bt.createSvgIcon(A.jsxs("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M5.2,7.5c0-1,.8-1.8,1.7-1.8s1.7.8,1.7,1.8-.8,1.8-1.7,1.8-1.7-.8-1.7-1.8Z"}),A.jsx("path",{d:"M10.1,7.5c0,1.2-.6,2.2-1.6,2.7l1.9,3.4c2.1-1.2,3.5-3.5,3.5-6.1h-3.9Z"}),A.jsx("path",{d:"M7,4.3c.6,0,1.1.2,1.6.4l1.9-3.4c-1-.6-2.2-.9-3.5-.9s-2.5.3-3.5.9l1.9,3.4c.5-.3,1-.4,1.6-.4Z"}),A.jsx("path",{d:"M3.9,7.5H0c0,2.6,1.4,4.9,3.5,6.1l1.9-3.4c-.9-.5-1.6-1.5-1.6-2.7Z"})]}),"Cheapest"),GD=Kr(A.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");function $D(e){return It("PrivateSwitchBase",e)}Et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qD=e=>{const{classes:t,checked:n,disabled:a,edge:c}=e,i={root:["root",n&&"checked",a&&"disabled",c&&`edge${tt(c)}`],input:["input"]};return St(i,$D,t)},JD=$e(so)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),XD=$e("input",{shouldForwardProp:Qr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),l9=ae.forwardRef(function(t,n){const{autoFocus:a,checked:c,checkedIcon:i,defaultChecked:u,disabled:f,disableFocusRipple:p=!1,edge:h=!1,icon:g,id:C,inputProps:w,inputRef:j,name:I,onBlur:T,onChange:S,onFocus:L,readOnly:E,required:D=!1,tabIndex:O,type:F,value:R,slots:Q={},slotProps:B={},...k}=t,[z,y]=e0({controlled:c,default:!!u,name:"SwitchBase",state:"checked"}),r=ji(),s=ee=>{L&&L(ee),r&&r.onFocus&&r.onFocus(ee)},l=ee=>{T&&T(ee),r&&r.onBlur&&r.onBlur(ee)},d=ee=>{if(ee.nativeEvent.defaultPrevented)return;const V=ee.target.checked;y(V),S&&S(ee,V)};let M=f;r&&typeof M>"u"&&(M=r.disabled);const b=F==="checkbox"||F==="radio",N={...t,checked:z,disabled:M,disableFocusRipple:p,edge:h},m=qD(N),o={slots:Q,slotProps:{input:w,...B}},[x,W]=Zt("root",{ref:n,elementType:JD,className:m.root,shouldForwardComponentProp:!0,externalForwardedProps:{...o,component:"span",...k},getSlotProps:ee=>({...ee,onFocus:V=>{var P;(P=ee.onFocus)==null||P.call(ee,V),s(V)},onBlur:V=>{var P;(P=ee.onBlur)==null||P.call(ee,V),l(V)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!p,disabled:M,role:void 0,tabIndex:null}}),[Z,G]=Zt("input",{ref:j,elementType:XD,className:m.input,externalForwardedProps:o,getSlotProps:ee=>({onChange:V=>{var P;(P=ee.onChange)==null||P.call(ee,V),d(V)}}),ownerState:N,additionalProps:{autoFocus:a,checked:c,defaultChecked:u,disabled:M,id:b?C:void 0,name:I,readOnly:E,required:D,tabIndex:O,type:F,...F==="checkbox"&&R===void 0?{}:{value:R}}});return A.jsxs(x,{...W,children:[A.jsx(Z,{...G}),z?i:g]})});_.dist.process.env.NODE_ENV!=="production"&&(l9.propTypes={autoFocus:v.bool,checked:v.bool,checkedIcon:v.node.isRequired,classes:v.object,className:v.string,defaultChecked:v.bool,disabled:v.bool,disableFocusRipple:v.bool,edge:v.oneOf(["end","start",!1]),icon:v.node.isRequired,id:v.string,inputProps:v.object,inputRef:sn,name:v.string,onBlur:v.func,onChange:v.func,onFocus:v.func,readOnly:v.bool,required:v.bool,slotProps:v.shape({input:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({input:v.elementType,root:v.elementType}),sx:v.object,tabIndex:v.oneOfType([v.number,v.string]),type:v.string.isRequired,value:v.any});function KD(e){return It("MuiSwitch",e)}const Hr=Et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eO=e=>{const{classes:t,edge:n,size:a,color:c,checked:i,disabled:u}=e,f={root:["root",n&&`edge${tt(n)}`,`size${tt(a)}`],switchBase:["switchBase",`color${tt(c)}`,i&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=St(f,KD,t);return{...t,...p}},tO=$e("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${tt(n.edge)}`],t[`size${tt(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Hr.thumb}`]:{width:16,height:16},[`& .${Hr.switchBase}`]:{padding:4,[`&.${Hr.checked}`]:{transform:"translateX(16px)"}}}}]}),rO=$e(l9,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Hr.input}`]:t.input},n.color!=="default"&&t[`color${tt(n.color)}`]]}})(At(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Hr.checked}`]:{transform:"translateX(20px)"},[`&.${Hr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Hr.checked} + .${Hr.track}`]:{opacity:.5},[`&.${Hr.disabled} + .${Hr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Hr.input}`]:{left:"-100%",width:"300%"}})),At(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Or(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Hr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Pa(e.palette[t].main,.62):Ra(e.palette[t].main,.55)}`}},[`&.${Hr.checked} + .${Hr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),nO=$e("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(At(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),iO=$e("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(At(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),f9=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiSwitch"}),{className:c,color:i="primary",edge:u=!1,size:f="medium",sx:p,slots:h={},slotProps:g={},...C}=a,w={...a,color:i,edge:u,size:f},j=eO(w),I={slots:h,slotProps:g},[T,S]=Zt("root",{className:vt(j.root,c),elementType:tO,externalForwardedProps:I,ownerState:w,additionalProps:{sx:p}}),[L,E]=Zt("thumb",{className:j.thumb,elementType:iO,externalForwardedProps:I,ownerState:w}),D=A.jsx(L,{...E}),[O,F]=Zt("track",{className:j.track,elementType:nO,externalForwardedProps:I,ownerState:w});return A.jsxs(T,{...S,children:[A.jsx(rO,{type:"checkbox",icon:D,checkedIcon:D,ref:n,ownerState:w,...C,classes:{...j,root:j.switchBase},slots:{...h.switchBase&&{root:h.switchBase},...h.input&&{input:h.input}},slotProps:{...g.switchBase&&{root:typeof g.switchBase=="function"?g.switchBase(w):g.switchBase},...g.input&&{input:typeof g.input=="function"?g.input(w):g.input}}}),A.jsx(O,{...F})]})});_.dist.process.env.NODE_ENV!=="production"&&(f9.propTypes={checked:v.bool,checkedIcon:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["default","primary","secondary","error","info","success","warning"]),v.string]),defaultChecked:v.bool,disabled:v.bool,disableRipple:v.bool,edge:v.oneOf(["end","start",!1]),icon:v.node,id:v.string,inputProps:v.object,inputRef:sn,onChange:v.func,required:v.bool,size:v.oneOfType([v.oneOf(["medium","small"]),v.string]),slotProps:v.shape({input:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object]),switchBase:v.oneOfType([v.func,v.object]),thumb:v.oneOfType([v.func,v.object]),track:v.oneOfType([v.func,v.object])}),slots:v.shape({input:v.elementType,root:v.elementType,switchBase:v.elementType,thumb:v.elementType,track:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),value:v.any});function oO(e){return It("MuiToggleButton",e)}const Zi=Et("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),C1=ae.createContext({});_.dist.process.env.NODE_ENV!=="production"&&(C1.displayName="ToggleButtonGroupContext");const w1=ae.createContext(void 0);_.dist.process.env.NODE_ENV!=="production"&&(w1.displayName="ToggleButtonGroupButtonContext");function aO(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const sO=e=>{const{classes:t,fullWidth:n,selected:a,disabled:c,size:i,color:u}=e,f={root:["root",a&&"selected",c&&"disabled",n&&"fullWidth",`size${tt(i)}`,u]};return St(f,oO,t)},cO=$e(so,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${tt(n.size)}`]]}})(At(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Zi.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Zi.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{[`&.${Zi.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),qs=ae.forwardRef(function(t,n){const{value:a,...c}=ae.useContext(C1),i=ae.useContext(w1),u=Ca({...c,selected:aO(t.value,a)},t),f=Dt({props:u,name:"MuiToggleButton"}),{children:p,className:h,color:g="standard",disabled:C=!1,disableFocusRipple:w=!1,fullWidth:j=!1,onChange:I,onClick:T,selected:S,size:L="medium",value:E,...D}=f,O={...f,color:g,disabled:C,disableFocusRipple:w,fullWidth:j,size:L},F=sO(O),R=B=>{T&&(T(B,E),B.defaultPrevented)||I&&I(B,E)},Q=i||"";return A.jsx(cO,{className:vt(c.className,F.root,h,Q),disabled:C,focusRipple:!w,ref:n,onClick:R,onChange:I,value:E,ownerState:O,"aria-pressed":S,...D,children:p})});_.dist.process.env.NODE_ENV!=="production"&&(qs.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["standard","primary","secondary","error","info","success","warning"]),v.string]),disabled:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,fullWidth:v.bool,onChange:v.func,onClick:v.func,selected:v.bool,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),value:v.any.isRequired});function lO(e){return It("MuiToggleButtonGroup",e)}const fr=Et("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),fO=e=>{const{classes:t,orientation:n,fullWidth:a,disabled:c}=e,i={root:["root",n,a&&"fullWidth"],grouped:["grouped",`grouped${tt(n)}`,c&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return St(i,lO,t)},uO=$e("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fr.grouped}`]:t.grouped},{[`& .${fr.grouped}`]:t[`grouped${tt(n.orientation)}`]},{[`& .${fr.firstButton}`]:t.firstButton},{[`& .${fr.lastButton}`]:t.lastButton},{[`& .${fr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(At(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${fr.grouped}`]:{[`&.${fr.selected} + .${fr.grouped}.${fr.selected}`]:{borderTop:0,marginTop:0}},[`& .${fr.firstButton},& .${fr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${fr.lastButton},& .${fr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${fr.lastButton}.${Zi.disabled},& .${fr.middleButton}.${Zi.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${fr.grouped}`]:{[`&.${fr.selected} + .${fr.grouped}.${fr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${fr.firstButton},& .${fr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${fr.lastButton},& .${fr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${fr.lastButton}.${Zi.disabled},& .${fr.middleButton}.${Zi.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),u9=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiToggleButtonGroup"}),{children:c,className:i,color:u="standard",disabled:f=!1,exclusive:p=!1,fullWidth:h=!1,onChange:g,orientation:C="horizontal",size:w="medium",value:j,...I}=a,T={...a,disabled:f,fullWidth:h,orientation:C,size:w},S=fO(T),L=ae.useCallback((Q,B)=>{if(!g)return;const k=j&&j.indexOf(B);let z;j&&k>=0?(z=j.slice(),z.splice(k,1)):z=j?j.concat(B):[B],g(Q,z)},[g,j]),E=ae.useCallback((Q,B)=>{g&&g(Q,j===B?null:B)},[g,j]),D=ae.useMemo(()=>({className:S.grouped,onChange:p?E:L,value:j,size:w,fullWidth:h,color:u,disabled:f}),[S.grouped,p,E,L,j,w,h,u,f]),O=sM(c),F=O.length,R=Q=>{const B=Q===0,k=Q===F-1;return B&&k?"":B?S.firstButton:k?S.lastButton:S.middleButton};return A.jsx(uO,{role:"group",className:vt(S.root,i),ref:n,ownerState:T,...I,children:A.jsx(C1.Provider,{value:D,children:O.map((Q,B)=>(_.dist.process.env.NODE_ENV!=="production"&&mi.isFragment(Q)&&console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
251
- `)),A.jsx(w1.Provider,{value:R(B),children:Q},B)))})})});_.dist.process.env.NODE_ENV!=="production"&&(u9.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["standard","primary","secondary","error","info","success","warning"]),v.string]),disabled:v.bool,exclusive:v.bool,fullWidth:v.bool,onChange:v.func,orientation:v.oneOf(["horizontal","vertical"]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),value:v.any});const dO=Ht()(e=>({content:{width:"100%",cursor:"pointer",maxWidth:"420px",overflow:"visible",padding:"16px 20px"},container:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},amounts:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"8px",width:"100%"},toggleButton:{backgroundColor:xr(e.palette.text.primary).alpha(.1).hexa(),border:"1px solid transparent",borderRadius:"8px","&.Mui-selected":{border:`1px solid ${e.palette.primary.main}`,borderRadius:"8px"},"&.MuiToggleButtonGroup-middleButton":{margin:"0 2px"},"&.MuiToggleButtonGroup-lastButton":{margin:"0"}}})),hO=$e(f9)(({theme:e})=>({padding:"9px 12px",right:"-9px","& .MuiSwitch-switchBase.Mui-checked":{color:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-track":{height:"20px",borderRadius:"9px"}})),pO=e=>{const{classes:t}=dO(),n=Sr(),a=bt.useTheme(),{fromChain:c,toChain:i}=qt(S=>S.transferInput),{getTokenPrice:u,lastTokenPriceUpdate:f}=On(),p=ge.tokens.getGasToken(i),h=ge.tokens.getGasToken(c),[g,C]=ie.useState(!1),[w,j]=ie.useState(0);ie.useEffect(()=>{e.isSelected||(C(!1),j(0))},[n,e.isSelected]),ie.useEffect(()=>{n(Bw(w/100))},[w,n]);const I=ie.useMemo(()=>{if(!i||!p)return null;const S=_.display(_.truncate(e.destinationGasDrop,6)),L=Xn(u,e.destinationGasDrop,p),E=L?`(${L})`:"";return`+${S} ${p.symbol} ${E}`},[p,f,e.destinationGasDrop,i]),T=ie.useMemo(()=>A.jsxs(u9,{exclusive:!0,fullWidth:!0,value:w.toString(),onChange:S=>{const L=Number(S.currentTarget.value);j(L===w?0:L)},children:[A.jsx(qs,{className:t.toggleButton,disableRipple:!0,value:"5",children:"5%"}),A.jsx(qs,{className:t.toggleButton,disableRipple:!0,value:"10",children:"10%"}),A.jsx(qs,{className:t.toggleButton,disableRipple:!0,value:"15",children:"15%"})]}),[t.toggleButton,w]);return!h||!p?A.jsx(A.Fragment,{}):A.jsxs("div",{className:t.content,children:[A.jsxs(Yt,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[A.jsx(Ke,{children:`Need extra ${p.symbol} on ${i}?`}),A.jsx(hO,{checked:g,disabled:e.disabled,onClick:S=>{const{checked:L}=S.target;C(L),L?e.isExecutorRoute&&j(100):j(0)}})]}),A.jsx(ka,{in:g,unmountOnExit:!0,children:A.jsx("div",{className:t.container,children:A.jsxs(Yt,{children:[!e.isExecutorRoute&&T,A.jsxs("div",{className:t.amounts,children:[A.jsxs(Yt,{alignItems:"center",flexDirection:"row",children:[A.jsx(Ke,{color:a.palette.text.secondary,fontSize:14,marginRight:"4px",children:"Gas amount"}),A.jsx(Do,{title:e.isExecutorRoute?`Add a small amount of ${h.symbol} to your transaction to receive ${I} on ${i}.`:"This additional gas is swapped from a percentage of your transfer amount.",children:A.jsx(GD,{sx:{color:a.palette.text.secondary,fontSize:"16px"}})})]}),A.jsx(Ke,{color:a.palette.primary.main,fontSize:14,children:I})]})]})})})]})},gO=20,mO=Ht()(e=>({container:{width:"100%",maxWidth:"420px",marginBottom:"8px"},card:{borderRadius:"8px",width:"100%",maxWidth:"420px"},cardSelected:{backgroundColor:e.palette.input.fillTreatment?xr(e.palette.primary.main).alpha(.05).hexa():e.palette.card.background,borderColor:e.palette.primary.main},cardHeader:{padding:"20px 20px 0px"},cardContent:{marginTop:"18px",padding:"0px 20px 20px"},errorIcon:{color:e.palette.error.main,height:"34px",width:"34px",marginRight:"24px"},fastestBadge:{width:"14px",height:"14px",position:"relative",top:"2px",marginRight:"4px",fill:e.palette.primary.main},cheapestBadge:{width:"12px",height:"12px",position:"relative",top:"1px",marginRight:"3px",fill:e.palette.primary.main},messageContainer:{padding:"12px 0px 0px"},warningIcon:{color:e.palette.warning.main,height:"34px",width:"34px",marginRight:"12px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"}})),MO=e=>{const{classes:t}=mO(),n=bt.useTheme(),a=ge.routes.get(e.route),{toChain:c,fromChain:i,isTransactionInProgress:u}=qt(l=>l.transferInput),{getTokenPrice:f,lastTokenPriceUpdate:p}=On(),{quote:h,isSelected:g}=e,C=h==null?void 0:h.destinationNativeGas,{sourceToken:w,destToken:j}=X0(),{disabled:I,showGasSlider:T}=HD({destToken:j,route:e.route,isTransactionInProgress:u}),S=ie.useMemo(()=>{if(!(h!=null&&h.relayFee))return!1;const l=_.whole(h.relayFee.amount),d=ge.tokens.get(h.relayFee.token),M=Yi(f,l,d);return M===void 0?!1:M>gO},[f,h==null?void 0:h.relayFee]),L=ie.useMemo(()=>{if(!c||e.destinationGasDrop===void 0||_.units(e.destinationGasDrop)===0n)return A.jsx(A.Fragment,{});const l=ge.chains[c],d=ge.tokens.getGasToken(c);if(!l||!d)return A.jsx(A.Fragment,{});const M=Xn(f,e.destinationGasDrop,d),b=_.display(_.truncate(e.destinationGasDrop,6)),N=M?` (${M})`:"";return A.jsxs(Yt,{direction:"row",justifyContent:"space-between",children:[A.jsx(Ke,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Additional gas"}),A.jsx(Ke,{color:n.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:`${b} ${d.symbol}${N}`})]})},[c,p,e.destinationGasDrop,f,p,n.palette.text.secondary,n.palette.text.primary]),E=ie.useMemo(()=>A.jsxs(Yt,{direction:"row",justifyContent:"space-between",children:[A.jsx(Ke,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:`Time to ${c}`}),A.jsx(Ke,{component:"div",fontSize:"14px",lineHeight:"14px",sx:{color:h!=null&&h.eta&&h.eta<60*1e3?n.palette.success.main:n.palette.text.primary},children:h!=null&&h.eta?_g(h.eta):"N/A"})]}),[c,h==null?void 0:h.eta,n.palette.success.main,n.palette.text.primary,n.palette.text.secondary]),D=ie.useMemo(()=>e.route?!a.AUTOMATIC_DEPOSIT:!1,[e.route,a.AUTOMATIC_DEPOSIT]),O=ie.useMemo(()=>A.jsx(zo,{flexItem:!0,sx:{marginTop:"24px"}}),[]),F=ie.useMemo(()=>e.error?A.jsxs(A.Fragment,{children:[O,A.jsxs(Yt,{className:t.messageContainer,direction:"row",alignItems:"center",children:[A.jsx(ZD,{className:t.errorIcon}),A.jsx(Ke,{color:n.palette.error.main,fontSize:"14px",lineHeight:"18px",children:e.error})]})]}):null,[t.errorIcon,t.messageContainer,O,e.error,n.palette.error.main]),R=ie.useMemo(()=>{const l=[];D&&l.push(A.jsxs("div",{children:[O,A.jsxs(Yt,{className:t.messageContainer,direction:"row",alignItems:"center",children:[A.jsx(nu,{className:t.warningIcon}),A.jsxs(Yt,{children:[A.jsx(Ke,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:"This transfer requires two transactions."}),A.jsx(Ke,{color:n.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"You will need to make two wallet approvals and have gas on the destination chain."})]})]})]},"ManualTransactionWarning"));for(const d of(h==null?void 0:h.warnings)||[])if(d.type==="DestinationCapacityWarning"&&d.delayDurationSec){const M=pw(d.delayDurationSec);l.push(A.jsxs("div",{children:[O,A.jsxs(Yt,{className:t.messageContainer,direction:"row",alignItems:"center",children:[A.jsx(nu,{className:t.warningIcon}),A.jsx(Ke,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:`Your transfer to ${c} may be delayed due to rate limits set by ${j.display}. If your transfer is delayed, you will need to return after ${M} to complete the transfer. Please consider this before proceeding.`})]})]},`${d.type}-${d.delayDurationSec}`))}return S&&l.push(A.jsxs("div",{children:[O,A.jsxs(Yt,{className:t.messageContainer,direction:"row",alignItems:"center",children:[A.jsx(nu,{className:t.warningIcon}),A.jsxs(Yt,{children:[A.jsx(Ke,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:"Output amount is much lower than input amount."}),A.jsx(Ke,{color:n.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"Double check before proceeding."})]})]})]},"HighFee")),l},[D,S,O,t.warningIcon,t.messageContainer,n.palette.warning.main,n.palette.text.secondary,h==null?void 0:h.warnings,j,c]),Q=ie.useMemo(()=>w?e.route==="AutomaticNtt"&&(w==null?void 0:w.symbol)==="wstETH"&&(i==="Ethereum"&&c==="Bsc"||i==="Bsc"&&c==="Ethereum")?"via NTT: Wormhole + Axelar":a.rc.meta.provider?`via ${a.rc.meta.provider}`:"":"",[e.route,a,i,w,c]),B=ie.useMemo(()=>h?_.whole(h==null?void 0:h.destinationToken.amount):void 0,[h]),k=ie.useMemo(()=>{if(h)return _.display(_.truncate(h.destinationToken.amount,6))},[h]),z=ie.useMemo(()=>{if(e.error)return A.jsx(Ke,{color:"error",children:"Route is unavailable"});if(B===void 0||!j)return null;const l=S?n.palette.warning.main:n.palette.text.primary;return A.jsxs(Ke,{fontSize:"18px",lineHeight:"18px",color:l,component:"div",marginBottom:"6px",children:[k," ",j.symbol]})},[e.error,B,k,j,S,n.palette.warning.main,n.palette.text.primary]),y=ie.useMemo(()=>{if(e.error||!c||!j||B===void 0)return null;const l=Xn(f,B,j);return A.jsx(Ke,{fontSize:"14px",lineHeight:"14px",color:n.palette.text.secondary,component:"div",children:`${l} ${Q}`})},[c,j,f,p,e.error,Q,B,n.palette.text.secondary]),r=ie.useMemo(()=>g||typeof e.onSelect!="function"?"default":e.error?"not-allowed":"pointer",[e.error,g,e.onSelect]),s=ie.useMemo(()=>e.isFastest?A.jsxs(A.Fragment,{children:[A.jsx(QD,{className:t.fastestBadge}),e.isOnlyChoice?"Fast":"Fastest"]}):e.isCheapest&&!e.isOnlyChoice?A.jsxs(A.Fragment,{children:[A.jsx(VD,{className:t.cheapestBadge})," Cheapest"]}):null,[e.isFastest,e.isCheapest,e.isOnlyChoice,t.fastestBadge,t.cheapestBadge]);return e.route?A.jsx("div",{className:t.container,"data-testid":`route-${e.route}${g?"-selected":""}`,children:A.jsx(Ti,{className:yn([t.card,g&&t.cardSelected,u&&t.disabled]),sx:{border:"1px solid",borderColor:g?n.palette.primary.main:"transparent",opacity:1},children:A.jsxs(uc,{component:"div",disabled:u||typeof e.onSelect!="function"||e.error!==void 0,disableTouchRipple:!0,sx:{cursor:r},onClick:()=>{var l;(l=e.onSelect)==null||l.call(e,e.route)},children:[A.jsx(b1,{avatar:A.jsx(x1,{icon:j==null?void 0:j.icon}),className:t.cardHeader,title:z,subheader:y,action:s}),A.jsxs(Ai,{className:t.cardContent,children:[A.jsxs(Yt,{gap:"14px",children:[a.AUTOMATIC_DEPOSIT?null:`You pay gas on ${c}`,L,E]}),F,R]}),T&&A.jsxs(A.Fragment,{children:[A.jsx(zo,{flexItem:!0,sx:{margin:"0px 16px"}}),A.jsx(ka,{in:T,children:A.jsx(pO,{destinationGasDrop:C||_.fromBaseUnits(0n,8),disabled:I,isExecutorRoute:ha(e.route),isSelected:g})})]})]})})},e.route):A.jsx(A.Fragment,{})},yO=Ht()(e=>({otherRoutesToggle:{display:"block",width:"100%",textAlign:"center",fontSize:14,color:e.palette.text.secondary,textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}})),vO=({...e})=>{const{classes:t}=yO(),[n,a]=ie.useState(!1),c=ie.useMemo(()=>e.routes.filter(h=>e.quotes[h]!==void 0),[e.routes,e.quotes]),i=ie.useMemo(()=>c.reduce((h,g)=>{const C=e.quotes[g];return!C||!C.success?h:C.eta!==void 0&&C.eta<h.eta&&C.eta<6e4?{name:g,eta:C.eta}:h},{name:"",eta:1/0}),[c,e.quotes]),u=ie.useMemo(()=>c.reduce((h,g)=>{const C=e.quotes[g],w=ge.routes.get(g);if(!C||!C.success||!w.AUTOMATIC_DEPOSIT)return h;const j=BigInt(C.destinationToken.amount.amount);return j>h.amountOut?{name:g,amountOut:j}:h},{name:"",amountOut:0n}),[c,e.quotes]),f=ie.useMemo(()=>{if(n)return c;const h=c.find(g=>g===e.selectedRoute);if(h){const g=[];return h===i.name?(g.push(h),u.name&&u.name!==h&&g.push(u.name)):h===u.name?(i.name&&i.name!==h&&g.push(i.name),g.push(h)):(g.push(h),c.length>2&&(i.name?g.push(i.name):u.name&&g.push(u.name))),g}return i.name&&u.name?c.slice(0,2):c.slice(0,1)},[n,c,i,u,e.selectedRoute]),p=ie.useMemo(()=>c.length<2||c.length===2&&i.name&&u.name?null:A.jsx(Yo,{className:t.otherRoutesToggle,"data-testid":"other-routes-toggle",onClick:()=>a(h=>!h),children:n?"Hide other routes":"View other routes"}),[u.name,t.otherRoutesToggle,i.name,c.length,n]);return A.jsxs(A.Fragment,{children:[e.isLoading||f.length>0?A.jsxs(bt.Box,{sx:{display:"flex",width:"100%"},children:[A.jsx(Ke,{align:"left",fontSize:16,paddingBottom:0,marginTop:"8px",marginBottom:0,width:"100%",textAlign:"left",children:"Routes"}),e.isLoading?A.jsx(bt.CircularProgress,{sx:{alignSelf:"flex-end"},size:20}):null]}):null,e.isLoading&&f.length===0?A.jsx(bt.Skeleton,{variant:"rounded",height:153,width:"100%"}):f.map((h,g)=>{var T;const C=h===e.selectedRoute,w=e.quotes[h],j=w!=null&&w.success?w:void 0,I=(w==null?void 0:w.success)===!1?((T=w==null?void 0:w.error)==null?void 0:T.message)??`Error while getting a quote for ${h}.`:void 0;return A.jsx(MO,{route:h,error:I,isSelected:C&&!I,isFastest:h===i.name,isCheapest:h===u.name,isOnlyChoice:c.length===1,onSelect:e.onRouteChange,quote:j},h)}),p]})},xO=Kr(A.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert"),bO=Ht()(()=>({swapButton:{display:"block",position:"absolute",bottom:-44,left:"calc(50% - 20px)",width:40,height:40,zIndex:1}}));function CO(){const e=Sr(),[t,n]=ie.useState(""),{isTransactionInProgress:a,fromChain:c,toChain:i}=qt(h=>h.transferInput),u=!a&&c&&i,f=ie.useCallback(()=>{!u||a||(n(h=>h==="spinRight"?"spinLeft":"spinRight"),e(kw()),e(ew()),e(Wd("")))},[u,a,e]),{classes:p}=bO();return A.jsx(Po,{className:p.swapButton,sx:{animation:`${t} 0.3s linear 1`,"@keyframes spinRight":{"0%":{transform:"rotate(-180deg)"},"100%":{transform:"rotate(0deg)"}},"@keyframes spinLeft":{"0%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(0deg)"}}},onClick:f,disabled:!u,children:A.jsx(xO,{})})}var d9={exports:{}};(function(e,t){(function(n,a){e.exports=a(ie)})(typeof self<"u"?self:_.commonjsGlobal,n=>(()=>{var a={155:L=>{L.exports=n}},c={};function i(L){var E=c[L];if(E!==void 0)return E.exports;var D=c[L]={exports:{}};return a[L](D,D.exports,i),D.exports}i.d=(L,E)=>{for(var D in E)i.o(E,D)&&!i.o(L,D)&&Object.defineProperty(L,D,{enumerable:!0,get:E[D]})},i.o=(L,E)=>Object.prototype.hasOwnProperty.call(L,E),i.r=L=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})};var u={};i.r(u),i.d(u,{default:()=>S,useStopwatch:()=>I,useTime:()=>T,useTimer:()=>j});var f=i(155);class p{static expiryTimestamp(E){const D=new Date(E).getTime()>0;return D||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",E),D}static onExpire(E){const D=E&&typeof E=="function";return E&&!D&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",E),D}}class h{static getTimeFromSeconds(E){const D=Math.ceil(E),O=Math.floor(D/86400),F=Math.floor(D%86400/3600),R=Math.floor(D%3600/60);return{totalSeconds:D,seconds:Math.floor(D%60),minutes:R,hours:F,days:O}}static getSecondsFromExpiry(E,D){const O=E-new Date().getTime();if(O>0){const F=O/1e3;return D?Math.round(F):F}return 0}static getSecondsFromPrevTime(E,D){const O=new Date().getTime()-E;if(O>0){const F=O/1e3;return D?Math.round(F):F}return 0}static getSecondsFromTimeNow(){const E=new Date;return E.getTime()/1e3-60*E.getTimezoneOffset()}static getFormattedTimeFromSeconds(E,D){const{seconds:O,minutes:F,hours:R}=h.getTimeFromSeconds(E);let Q="",B=R;return D==="12-hour"&&(Q=R>=12?"pm":"am",B=R%12),{seconds:O,minutes:F,hours:B,ampm:Q}}}function g(L,E){const D=(0,f.useRef)();(0,f.useEffect)(()=>{D.current=L}),(0,f.useEffect)(()=>{if(!E)return()=>{};const O=setInterval(()=>{D.current&&D.current()},E);return()=>clearInterval(O)},[E])}const C=1e3;function w(L){if(!p.expiryTimestamp(L))return null;const E=h.getSecondsFromExpiry(L),D=Math.floor(1e3*(E-Math.floor(E)));return D>0?D:C}function j(){let{expiryTimestamp:L,onExpire:E,autoStart:D=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[O,F]=(0,f.useState)(L),[R,Q]=(0,f.useState)(h.getSecondsFromExpiry(O)),[B,k]=(0,f.useState)(D),[z,y]=(0,f.useState)(D),[r,s]=(0,f.useState)(w(O)),l=(0,f.useCallback)(()=>{p.onExpire(E)&&E(),k(!1),s(null)},[E]),d=(0,f.useCallback)(()=>{k(!1)},[]),M=(0,f.useCallback)(function(m){let o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];s(w(m)),y(o),k(o),F(m),Q(h.getSecondsFromExpiry(m))},[]),b=(0,f.useCallback)(()=>{const m=new Date;m.setMilliseconds(m.getMilliseconds()+1e3*R),M(m)},[R,M]),N=(0,f.useCallback)(()=>{z?(Q(h.getSecondsFromExpiry(O)),k(!0)):b()},[O,z,b]);return g(()=>{r!==C&&s(C);const m=h.getSecondsFromExpiry(O);Q(m),m<=0&&l()},B?r:null),{...h.getTimeFromSeconds(R),start:N,pause:d,resume:b,restart:M,isRunning:B}}function I(){let{autoStart:L,offsetTimestamp:E}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[D,O]=(0,f.useState)(h.getSecondsFromExpiry(E,!0)||0),[F,R]=(0,f.useState)(new Date),[Q,B]=(0,f.useState)(D+h.getSecondsFromPrevTime(F||0,!0)),[k,z]=(0,f.useState)(L);g(()=>{B(D+h.getSecondsFromPrevTime(F,!0))},k?1e3:null);const y=(0,f.useCallback)(()=>{const l=new Date;R(l),z(!0),B(D+h.getSecondsFromPrevTime(l,!0))},[D]),r=(0,f.useCallback)(()=>{O(Q),z(!1)},[Q]),s=(0,f.useCallback)(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,d=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const M=h.getSecondsFromExpiry(l,!0)||0,b=new Date;R(b),O(M),z(d),B(M+h.getSecondsFromPrevTime(b,!0))},[]);return{...h.getTimeFromSeconds(Q),start:y,pause:r,reset:s,isRunning:k}}function T(){let{format:L}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[E,D]=(0,f.useState)(h.getSecondsFromTimeNow());return g(()=>{D(h.getSecondsFromTimeNow())},1e3),{...h.getFormattedTimeFromSeconds(E,L)}}function S(L){if((0,f.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),L.expiryTimestamp){const D=j(L);return{...D,startTimer:D.start,stopTimer:D.pause,resetTimer:()=>{}}}const E=I(L);return{...E,startTimer:E.start,stopTimer:E.pause,resetTimer:E.reset}}return u})())})(d9);var h9=d9.exports;function wO(e){return It("MuiLinearProgress",e)}Et("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Ku=4,ed=Cr.keyframes`
252
- 0% {
253
- left: -35%;
254
- right: 100%;
255
- }
256
-
257
- 60% {
258
- left: 100%;
259
- right: -90%;
260
- }
261
-
262
- 100% {
263
- left: 100%;
264
- right: -90%;
265
- }
266
- `,NO=typeof ed!="string"?Cr.css`
267
- animation: ${ed} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
268
- `:null,td=Cr.keyframes`
269
- 0% {
270
- left: -200%;
271
- right: 100%;
272
- }
273
-
274
- 60% {
275
- left: 107%;
276
- right: -8%;
277
- }
278
-
279
- 100% {
280
- left: 107%;
281
- right: -8%;
282
- }
283
- `,jO=typeof td!="string"?Cr.css`
284
- animation: ${td} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
285
- `:null,rd=Cr.keyframes`
286
- 0% {
287
- opacity: 1;
288
- background-position: 0 -23px;
289
- }
290
-
291
- 60% {
292
- opacity: 0;
293
- background-position: 0 -23px;
294
- }
295
-
296
- 100% {
297
- opacity: 1;
298
- background-position: -200px -23px;
299
- }
300
- `,TO=typeof rd!="string"?Cr.css`
301
- animation: ${rd} 3s infinite linear;
302
- `:null,AO=e=>{const{classes:t,variant:n,color:a}=e,c={root:["root",`color${tt(a)}`,n],dashed:["dashed",`dashedColor${tt(a)}`],bar1:["bar","bar1",`barColor${tt(a)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${tt(a)}`,n==="buffer"&&`color${tt(a)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return St(c,wO,t)},N1=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Pa(e.palette[t].main,.62):Ra(e.palette[t].main,.5),IO=$e("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tt(n.color)}`],t[n.variant]]}})(At(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{backgroundColor:N1(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),EO=$e("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${tt(n.color)}`]]}})(At(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Or()).map(([t])=>{const n=N1(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),TO||{animation:`${rd} 3s infinite linear`}),LO=$e("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${tt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(At(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Ku}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Ku}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:NO||{animation:`${ed} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),SO=$e("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${tt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(At(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Or()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:N1(e,t),transition:`transform .${Ku}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:jO||{animation:`${td} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),p9=ae.forwardRef(function(t,n){const a=Dt({props:t,name:"MuiLinearProgress"}),{className:c,color:i="primary",value:u,valueBuffer:f,variant:p="indeterminate",...h}=a,g={...a,color:i,variant:p},C=AO(g),w=Ya(),j={},I={bar1:{},bar2:{}};if(p==="determinate"||p==="buffer")if(u!==void 0){j["aria-valuenow"]=Math.round(u),j["aria-valuemin"]=0,j["aria-valuemax"]=100;let T=u-100;w&&(T=-T),I.bar1.transform=`translateX(${T}%)`}else _.dist.process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(p==="buffer")if(f!==void 0){let T=(f||0)-100;w&&(T=-T),I.bar2.transform=`translateX(${T}%)`}else _.dist.process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return A.jsxs(IO,{className:vt(C.root,c),ownerState:g,role:"progressbar",...j,ref:n,...h,children:[p==="buffer"?A.jsx(EO,{className:C.dashed,ownerState:g}):null,A.jsx(LO,{className:C.bar1,ownerState:g,style:I.bar1}),p==="determinate"?null:A.jsx(SO,{className:C.bar2,ownerState:g,style:I.bar2})]})});_.dist.process.env.NODE_ENV!=="production"&&(p9.propTypes={classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","primary","secondary"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),value:v.number,valueBuffer:v.number,variant:v.oneOf(["buffer","determinate","indeterminate","query"])});const Qp=60*1e3,DO=120*1e3,g9=e=>{const[t,n]=ie.useState(!1),[a,c]=ie.useState(!1),[i,u]=ie.useState(),{eta:f,route:p}=e;return ie.useEffect(()=>{e.receipt&&u(e.receipt)},[e.receipt]),ie.useEffect(()=>{let h=!0;return(async()=>{if(!p||!i)return;const C=ge.routes.get(p);if(!C)return;const w=T=>T.valueOf()-new Date().valueOf(),j=await qr(),I=new C.rc(j);for(;h&&!_.isCompleted(i);){if(f!==void 0){const S=w(f);S>Qp&&await l0(S-Qp)}try{for await(const S of I.track(i,DO)){if(!h)break;if(S.state!==i.state){if(u(S),_.isCompleted(S)){n(!0);break}!C.AUTOMATIC_DEPOSIT&&S.state>=_.TransferState.Attested&&c(!0)}}}catch(S){console.error("Error tracking transfer:",S)}let T=5e3;f!==void 0&&C.AUTOMATIC_DEPOSIT&&w(f)<1e4&&(T=1e3),await l0(T)}})(),()=>{h=!1}},[f,i,p]),{isCompleted:t,isReadyToClaim:a,receipt:i}},OO=bt.createSvgIcon(A.jsx("path",{d:"M4 12H20M20 12L13 5M20 12L13 19",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),"ArrowRight"),m9=bt.createSvgIcon(A.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2079 105.5C82.2486 105.5 105.791 81.9949 105.791 53C105.791 24.0051 82.2486 0.5 53.2079 0.5C24.1672 0.5 0.625 24.0051 0.625 53C0.625 81.9949 24.1672 105.5 53.2079 105.5ZM53.207 102.097C80.3654 102.097 102.382 80.1157 102.382 53.0001C102.382 25.8844 80.3654 3.90283 53.207 3.90283C26.0485 3.90283 4.03223 25.8844 4.03223 53.0001C4.03223 80.1157 26.0485 102.097 53.207 102.097Z",fill:"currentColor"}),A.jsx("path",{d:"M46.8789 68L32.628906 53.75L36.19141 50.1875L46.8789 60.875L69.8164 37.9375L73.3789 41.5L46.8789 68Z",fill:"currentColor"})]}),"Alert"),zO=Ht()(e=>({alertBanner:{marginTop:"12px"},arrowIcon:{fontSize:"16px",margin:"0 4px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${e.palette.primary.main}`},cardContent:{padding:"16px 20px",":last-child":{padding:"16px 20px"}},cardActionArea:{height:"72px"},chainIcon:{border:`2px solid ${e.palette.input.background}`,borderRadius:"6px"},completedIcon:{color:e.palette.success.main,height:"24px",width:"24px"},container:{width:"100%",maxWidth:"420px"},progressBar:{borderRadius:"4px",marginTop:"8px"}})),kO=e=>{var m,o;const[t,n]=ie.useState(""),[a,c]=ie.useState(!1),{classes:i}=zO(),u=Sr(),f=ie.useContext(ao),p=bt.useTheme(),{data:h}=e,{receipt:g,route:C,timestamp:w,txDetails:j,txHash:I}=h,{amount:T,eta:S,fromChain:L,toChain:E,token:D}=j||{},O=ge.tokens.get(D),{seconds:F,minutes:R,totalSeconds:Q,isRunning:B,restart:k}=h9.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>c(!0)}),z=ie.useMemo(()=>{if(S&&w)return new Date(w+S)},[S,w]),{isCompleted:y,isReadyToClaim:r,receipt:s}=g9({eta:z,receipt:g,route:C});ie.useEffect(()=>{y&&I&&T8(I)},[y,I]);const l=s||g,d=ie.useMemo(()=>{if(!S||!w)return 0;const x=Date.now()-w;return S<x?0:S-x},[S,w,Q]),M=ie.useMemo(()=>r||h.isReadyToClaim?"Ready to claim...":a||d===0?"Wrapping up...":B?l1(R,F):A.jsx(Lr,{size:16}),[a,d,r,B,R,F,h]),b=ie.useMemo(()=>!S||d>S||!a&&d===0?0:a?100:(S-d)/S*100,[S,a,d]);ie.useEffect(()=>{!B&&!y&&d&&k(new Date(Date.now()+d),!0)},[d,y,B,k]);const N=ie.useCallback(async()=>{if(n(""),!l){n("No receipt found for this transaction");return}try{const x=await qr(),W=new(ge.routes.get(C)).rc(x);u(V5(w)),u(md(j)),u(Q5(!0)),u(Md(C)),u(Yd(j.toChain)),u(Mn("redeem")),f.setReceipt(l),f.setRoute(W)}catch{n(`Error resuming transaction: ${j.sendTx}`)}},[u,l,C,f,w,j]);return!h||!O?A.jsx(A.Fragment,{}):A.jsxs("div",{className:i.container,children:[A.jsx(Ti,{className:i.card,children:A.jsx(uc,{disableTouchRipple:!0,disabled:e.disabled||!j,className:i.cardActionArea,onClick:N,children:A.jsxs(Ai,{className:i.cardContent,children:[A.jsxs(Yt,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[A.jsx(Ke,{display:"flex",justifyContent:"space-between",children:y?A.jsx(m9,{className:i.completedIcon}):M}),A.jsxs(Yt,{direction:"row",alignItems:"center",children:[A.jsx(Ke,{fontSize:14,marginRight:"8px",children:`${_.display(_.truncate(T,6))} ${O.symbol}`}),A.jsx(vn,{className:i.chainIcon,children:A.jsx(eo,{icon:(m=ge.chains[L])==null?void 0:m.icon,height:24})}),A.jsx(OO,{className:i.arrowIcon}),A.jsx(vn,{className:i.chainIcon,children:A.jsx(eo,{icon:(o=ge.chains[E])==null?void 0:o.icon,height:24})})]})]}),!y&&A.jsx(p9,{className:i.progressBar,variant:"determinate",value:b})]})})}),A.jsx(Xa,{className:i.alertBanner,color:t?p.palette.error.light:p.palette.grey.A400,content:t,error:!!t,show:!!t})]})},_O=Ht()(e=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${e.palette.primary.main}`},cardHeader:{paddingBottom:0},spacer:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"16px",alignItems:"center",justifyContent:"center",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"}})),BO=e=>{const{classes:t}=_O(),n=bt.useTheme(),[a,c]=ie.useState();return ie.useEffect(()=>{const i=K0(),u=i==null?void 0:i.filter(f=>{var p,h;if(!((p=f==null?void 0:f.txDetails)!=null&&p.token))return!1;try{return!!ge.tokens.get((h=f==null?void 0:f.txDetails)==null?void 0:h.token)}catch(g){return console.log("Error while parsing token from local storage (in-progress widget):",g),!1}});c(u)},[]),!a||a.length===0?A.jsx(A.Fragment,{}):A.jsxs("div",{className:t.spacer,children:[A.jsx("div",{className:t.txHistoryHeader,children:A.jsx(Ke,{color:n.palette.text.secondary,fontSize:14,children:"Transactions in progress"})}),a.map(i=>A.jsx(kO,{data:i,disabled:e.disabled},i.txHash))]})},FO=({sendingWallet:e,receivingWallet:t,sourceChain:n,destChain:a,routes:c})=>ie.useMemo(()=>{if(c.length===1&&c[0]==="ManualCCTP"){const u=["Petra","Pontem Wallet","Nightly","Continue with Google","Continue with Apple"];if(n==="Aptos"&&!u.includes(e.name)||a==="Aptos"&&!u.includes(t.name))return{isCompatible:!1,warning:"Please use a compatible wallet for this route."}}return{isCompatible:!0}},[e,t,n,a,c]),RO=Ht()(e=>({assetPickerContainer:{width:"100%",position:"relative"},assetPickerTitle:{color:e.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},bridgeContent:{margin:"auto",maxWidth:"420px"},bridgeHeader:{width:"100%",minHeight:"28px",display:"flex",alignItems:"center"},doneIcon:{fontSize:"14px",color:e.palette.success.main},confirmTransaction:{padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%"},copyIcon:{fontSize:"14px"},ctaContainer:{marginTop:"8px",width:"100%"},spacer:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",justifyContent:"center",width:"100%"}})),PO=()=>{var ue,Ve;const{classes:e}=RO(),t=bt.useTheme(),n=Sr(),{lastTokenCacheUpdate:a}=On(),[c,i]=ie.useState(!1),u=bt.useMediaQuery(t.breakpoints.down("sm")),{sending:f,receiving:p}=qt(he=>he.wallet),{fromChain:h,toChain:g,route:C,preferredRouteName:w,amount:j,toNativeToken:I,isTransactionInProgress:T,validations:S}=qt(he=>({...he.transferInput,...he.relay})),{sourceToken:L,destToken:E}=X0(),{allSupportedRoutes:D,sortedRoutes:O,sortedRoutesWithQuotes:F,quotes:R,isFetching:Q}=XA({amount:j,fromChain:h,toChain:g,preferredRouteName:w,sourceToken:L,destToken:E,toNativeToken:I,receivingWallet:p}),{isFetching:B,supportedDestTokens:k}=GA({sourceChain:h,destChain:g,sourceToken:L}),{error:z,errorInternal:y,onConfirm:r}=vI({quotes:R});ie.useEffect(()=>{if(F.length===0)n(ws(""));else{const he=F.find(oe=>oe.route===w),be=C??(he==null?void 0:he.route)??F[0].route,st=F.findIndex(oe=>oe.route===be)>-1;if(st||n(ws("")),!be||C&&st)return;const Me=F==null?void 0:F.find(oe=>oe.route===be);Me&&n(ws(Me.route))}},[w,C,F]),Lg(),MI();const s=ie.useMemo(()=>L?[L]:[],[L]),{balances:l,isFetching:d}=E8(f,h,s),M=eI({balance:L?(ue=l[L.key])==null?void 0:ue.balance:null,routes:D,quotes:R,tokenSymbol:(L==null?void 0:L.symbol)??"",disabled:!f.address||!h||!L}),b=ie.useMemo(()=>A8(S),[S]),N=ie.useMemo(()=>ge.routes.allSupportedChains(),[ge.chains]),m=ie.useMemo(()=>h?ge.tokens.getAllForChain(h):[],[h,a]),o=ie.useMemo(()=>ge.chainsArr.filter(he=>he.sdkName!==g&&N.includes(he.sdkName)),[g,N]),x=ie.useMemo(()=>ge.chainsArr.filter(he=>he.sdkName!==h&&N.includes(he.sdkName)),[h,N]),W=ie.useMemo(()=>{const he={text:"",align:"left"};let be;return typeof ge.ui.pageHeader=="string"?be={...he,text:ge.ui.pageHeader}:be={...he,...ge.ui.pageHeader},A.jsx($a,{title:be.text,align:be.align})},[]),Z=ie.useMemo(()=>A.jsxs("div",{className:e.assetPickerContainer,children:[A.jsxs("div",{className:e.assetPickerTitle,children:[A.jsx(Ke,{variant:"body2",children:"From"}),A.jsx(Zp,{type:jr.SENDING})]}),A.jsx(Hp,{chain:h,chainList:o,token:L,tokenList:m,setChain:he=>{Aw(n,he,f),n(Sw())},setToken:he=>{n(Lw(he.tuple))},wallet:f,isSource:!0,isTransactionInProgress:T,dataTestId:"source-asset-picker"}),A.jsx(CO,{})]}),[e.assetPickerContainer,e.assetPickerTitle,h,o,L,m,a,T,f,n]),G=ie.useMemo(()=>A.jsxs("div",{className:e.assetPickerContainer,children:[A.jsxs("div",{className:e.assetPickerTitle,children:[A.jsx(Ke,{variant:"body2",children:"To"}),A.jsx(Zp,{type:jr.RECEIVING})]}),A.jsx(Hp,{chain:g,chainList:x,token:E,sourceToken:L,tokenList:k,isFetching:k.length===0&&B,setChain:he=>{Iw(n,he,p),n(Dw())},setToken:he=>{n(Yg(he.tuple))},wallet:p,isSource:!1,isTransactionInProgress:T,dataTestId:"dest-asset-picker"})]}),[e.assetPickerContainer,e.assetPickerTitle,g,x,E,L,k,B,T,p,n]),ee=ie.useMemo(()=>{const he=!(f!=null&&f.address)||T;return A.jsxs("div",{className:e.bridgeHeader,children:[A.jsx(Vd,{align:"left",text:ge.ui.title??"Wormhole Connect",size:18,testId:"bridge-view-header"}),A.jsx(Do,{title:f!=null&&f.address?"":"No connected wallets found",children:A.jsx("span",{children:A.jsx(Po,{"data-testid":"history-button",sx:{padding:0},disabled:he,onClick:()=>{n(Mn("history")),ge.triggerEvent({type:"history.load",details:{wallet:f==null?void 0:f.address}})},children:A.jsx(zA,{})})})})]})},[e.bridgeHeader,n,T,f==null?void 0:f.address]),V=ie.useMemo(()=>f!=null&&f.address&&(p!=null&&p.address)?null:f!=null&&f.address&&!(p!=null&&p.address)?A.jsx(Op,{disabled:!g,side:"destination",type:jr.RECEIVING}):A.jsx(Op,{disabled:!h,side:"source",type:jr.SENDING}),[h,g,f,p]),{isCompatible:P,warning:H}=FO({sendingWallet:f,receivingWallet:p,sourceChain:h,destChain:g,routes:O}),$=ie.useMemo(()=>z?A.jsxs(vn,{sx:{marginBottom:2},children:[A.jsx(Xa,{error:!0,content:z,show:!0,testId:"send-error-message"}),y&&y.message&&ge.ui.getHelpUrl?A.jsxs(Ke,{fontSize:14,sx:{marginTop:1},children:["Having trouble?"," ",A.jsxs("a",{href:"#",onClick:()=>{Og(y.message),i(!0),setTimeout(()=>i(!1),3e3)},children:["Copy the error logs"," ",c?A.jsx(OA,{className:e.doneIcon}):A.jsx(DA,{className:e.copyIcon})]})," and ",A.jsx("a",{href:ge.ui.getHelpUrl,target:"_blank",children:"ask for help"}),"."]}):null]}):null,[e.copyIcon,e.doneIcon,c,z,y]),X=!!M.error,te=j&&_.whole(j)>0,Y=f.address&&p.address,ne=!h||!L||!g||!E||!Y||!P||!C||!b||Q||!te||T||X,xe=ie.useMemo(()=>A.jsx(Fi,{disabled:ne,"data-testid":"confirm-transaction-button",variant:"primary",className:e.confirmTransaction,onClick:()=>r(),children:T?A.jsxs(Ke,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[A.jsx(Lr,{size:16,sx:{color:t.palette.primary.contrastText}}),u?"Preparing":"Preparing transaction"]}):!T&&Q?A.jsxs(Ke,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[A.jsx(Lr,{color:"secondary",size:16}),u?"Refreshing":"Refreshing quote"]}):A.jsx(Ke,{textTransform:"none",children:u?"Confirm":"Confirm transaction"})}),[ne,e.confirmTransaction,T,t.palette.primary.contrastText,u,Q,r]),le=!h||!L?"Please select a source asset":!g||!E?"Please select a destination asset":te?Q?"Loading quotes...":C?"":"Please select a quote":"Please enter an amount";return A.jsxs("div",{className:yn([e.bridgeContent,e.spacer]),"data-testid":"bridge-view",children:[W,ge.ui.showInProgressWidget&&A.jsx(BO,{disabled:T}),ee,Z,G,A.jsx(ND,{sourceChain:h,supportedSourceTokens:m,tokenBalance:L?(Ve=l[L.key])==null?void 0:Ve.balance:null,isFetchingTokenBalance:d,error:M.error,warning:M.warning||H}),te&&A.jsx(vO,{routes:O,selectedRoute:C,onRouteChange:he=>{n(ws(he))},quotes:R,isLoading:Q||d}),$,A.jsx("span",{className:e.ctaContainer,children:Y?A.jsx(Do,{title:le,children:A.jsx("span",{children:xe})}):V}),A.jsx(u1,{color:t.palette.text.primary}),A.jsx(Gd,{})]})},UO=Kr(A.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),YO=Ht()(e=>({addressLink:{display:"inline-flex",alignItems:"center",overflow:"hidden",color:e.palette.text.primary,opacity:.6}})),Js=({url:e,text:t})=>{const{classes:n}=YO();return e&&t?A.jsxs(Yo,{onClick:a=>a.stopPropagation(),className:n.addressLink,href:e,rel:"noreferrer noopener",target:"_blank",children:[t,A.jsx(n9,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]}):null},WO=Ht()(e=>({container:{width:"100%",maxWidth:"420px",backgroundColor:e.palette.input.background},card:{width:"100%",backgroundColor:e.palette.input.background}})),HO=()=>{const{classes:e}=WO(),t=bt.useTheme(),n=ie.useContext(ao),{sendTx:a,sender:c,amount:i,recipient:u,toChain:f,fromChain:p,token:h,receivedToken:g,receiveAmount:C,receiveNativeAmount:w,eta:j}=qt(s=>s.redeem.txData),{route:I}=qt(s=>s.redeem),T=ge.tokens.get(h),S=ge.tokens.get(g),{getTokenPrice:L,isFetchingTokenPrices:E,lastTokenPriceUpdate:D}=On(),O=ie.useMemo(()=>A.jsx(Ke,{component:"span",padding:"0px 8px",children:"·"}),[]),F=ie.useMemo(()=>{if(!T||!p)return A.jsx(A.Fragment,{});const s=ge.tokens.get(h),l=ge.chains[p],d=Xn(L,i,s),M=c?Vi(c):"",b=c?da(p,c,"wallet"):"",N=_.display(_.truncate(i,6));return A.jsxs(Yt,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[A.jsx(za,{chainConfig:l,token:s}),A.jsxs(Yt,{direction:"column",marginLeft:"12px",children:[A.jsxs(Ke,{fontSize:16,children:[N," ",T.symbol]}),A.jsx(Ke,{color:t.palette.text.secondary,fontSize:14,children:E?A.jsx(Lr,{size:14}):A.jsxs(A.Fragment,{children:[d,d?O:null,l.displayName,O,A.jsx(Js,{url:b,text:M})]})})]})]})},[T,p,h,L,i,c,t.palette.text.secondary,E,O]),R=ie.useMemo(()=>{if(!S||!f)return A.jsx(A.Fragment,{});const s=ge.chains[f],l=Xn(L,C,S),d=u?Vi(u):"",M=u?da(f,u,"wallet"):"",b=C?_.display(_.truncate(C,6)):"-";return A.jsxs(Yt,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[A.jsx(za,{chainConfig:s,token:S}),A.jsxs(Yt,{direction:"column",marginLeft:"12px",children:[A.jsxs(Ke,{fontSize:16,children:[b," ",S.symbol]}),A.jsx(Ke,{color:t.palette.text.secondary,fontSize:14,children:E?A.jsx(Lr,{size:14}):A.jsxs(A.Fragment,{children:[l,l?O:null,s.displayName,O,A.jsx(Js,{url:M,text:d})]})})]})]})},[S,L,C,u,O,t.palette.text.secondary,f,E,D]),Q=ie.useMemo(()=>A.jsx(Yt,{height:"28px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),B=ie.useMemo(()=>{if(!g||!w||_.units(w)===0n)return A.jsx(A.Fragment,{});const s=ge.chains[f];if(!s)return A.jsx(A.Fragment,{});const l=Xn(L,w,ge.tokens.getGasToken(s.sdkName));return A.jsxs(Yt,{direction:"row",justifyContent:"space-between",children:[A.jsx(Ke,{color:t.palette.text.secondary,fontSize:14,children:"Additional gas"}),E?A.jsx(Lr,{size:14}):A.jsx(Ke,{fontSize:14,children:l})]})},[w,t.palette.text.secondary,f,E,D]),k=ie.useMemo(()=>{const s=n.route??I;if(!s)return null;const{name:l,url:d}=BN(s,a,p,f);return URL.canParse(d)?A.jsx(Yt,{alignItems:"center",padding:"24px 12px",children:A.jsx(Yo,{display:"flex",gap:"8px",href:d,rel:"noreferrer",target:"_blank",underline:"none",children:A.jsx(Ke,{color:t.palette.text.primary,fontSize:14,children:`View on ${l}`})})}):null},[n.route,I,a,t.palette.text.primary]),z=ie.useMemo(()=>{let s=A.jsx(Lr,{size:14});return j?(s=_g(j),A.jsxs(Yt,{direction:"row",justifyContent:"space-between",children:[A.jsx(Ke,{color:t.palette.text.secondary,fontSize:14,children:`Time to ${f}`}),A.jsx(Ke,{fontSize:14,children:s})]})):null},[j,t.palette.text.secondary,f]),y=a?Vi(a):"",r=a?da(p,a,"tx"):"";return A.jsx("div",{className:e.container,children:A.jsxs(Ti,{className:e.card,children:[A.jsxs(Ai,{children:[A.jsxs(Ke,{color:t.palette.text.secondary,marginBottom:"12px",children:["Transaction #",A.jsx(Js,{url:r,text:y})]}),F,Q,R,A.jsxs(Yt,{direction:"column",gap:"8px",justifyContent:"space-between",marginTop:"16px",children:[B,z]})]}),A.jsx(zo,{flexItem:!0,sx:{margin:"0 16px",opacity:"50%"}}),k]})})},ZO=bt.createSvgIcon(A.jsx("svg",{width:"107",height:"107",viewBox:"0 0 107 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M53.5 36.625V57.7188M104.125 53.5C104.125 60.1482 102.816 66.7312 100.271 72.8733C97.7273 79.0155 93.9982 84.5963 89.2973 89.2973C84.5963 93.9982 79.0155 97.7273 72.8733 100.271C66.7312 102.816 60.1482 104.125 53.5 104.125C46.8518 104.125 40.2688 102.816 34.1267 100.271C27.9845 97.7273 22.4037 93.9982 17.7027 89.2973C13.0018 84.5963 9.27274 79.0155 6.7286 72.8733C4.18445 66.7312 2.875 60.1482 2.875 53.5C2.875 40.0734 8.20869 27.1967 17.7027 17.7027C27.1967 8.20869 40.0734 2.875 53.5 2.875C66.9266 2.875 79.8032 8.20869 89.2973 17.7027C98.7913 27.1967 104.125 40.0734 104.125 53.5ZM53.5 74.5938H53.545V74.6388H53.5V74.5938Z",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),"Alert"),QO=bt.createSvgIcon(A.jsxs("svg",{width:"106",height:"106",viewBox:"0 0 106 106",stroke:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.5829 105C81.6236 105 105.166 81.4949 105.166 52.5C105.166 23.5051 81.6236 0 52.5829 0C23.5422 0 0 23.5051 0 52.5C0 81.4949 23.5422 105 52.5829 105ZM52.582 101.597C79.7404 101.597 101.757 79.6157 101.757 52.5001C101.757 25.3844 79.7404 3.40283 52.582 3.40283C25.4235 3.40283 3.40723 25.3844 3.40723 52.5001C3.40723 79.6157 25.4235 101.597 52.582 101.597Z",fill:"currentColor"}),A.jsx("path",{d:"M65.7583 39.2417L39.2418 65.7582",stroke:"currentColor",strokeWidth:"4"}),A.jsx("path",{d:"M39.2417 39.2417L65.7582 65.7582",stroke:"currentColor",strokeWidth:"4"})]}),"Alert"),Vp=bt.createSvgIcon(A.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M53.2,105.5c29,0,52.6-23.5,52.6-52.5S82.2.5,53.2.5.6,24,.6,53s23.5,52.5,52.6,52.5ZM53.2,102.1c27.2,0,49.2-22,49.2-49.1S80.4,3.9,53.2,3.9,4,25.9,4,53s22,49.1,49.2,49.1Z"}),A.jsx("rect",{fill:"currentColor",x:"51",y:"28.8",width:"5",height:"42.6"}),A.jsx("rect",{fill:"currentColor",x:"48",y:"63.9",width:"25.5",height:"5",transform:"translate(-29.2 62.4) rotate(-45)"}),A.jsx("rect",{fill:"currentColor",x:"43.8",y:"53.7",width:"5",height:"25.5",transform:"translate(-33.4 52.2) rotate(-45)"})]}),"Alert"),VO=Ht()(e=>({spacer:{display:"flex",flexDirection:"column",gap:"16px",alignItems:"center",justifyContent:"center",width:"100%"},container:{margin:"auto",maxWidth:"650px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},actionButton:{padding:"12px 16px",backgroundColor:e.palette.primary.main,borderRadius:"8px",margin:"auto",maxWidth:"420px",width:"100%"},backButton:{alignItems:"start",maxWidth:"420px",width:"100%"},claimButton:{backgroundColor:e.palette.warning.light,color:e.palette.warning.contrastText??e.palette.background.default,"&:hover":{backgroundColor:e.palette.warning.main}},circularProgressCircleIndeterminite:{stroke:"url(#circularGradient)",strokeDasharray:"100px, 200px",strokeLinecap:"round"},circularProgressCircleDeterminite:{strokeLinecap:"round",transitionDuration:"1s",transitionProperty:"all",transitionTimingFunction:"linear"},circularProgressRoot:{animationDuration:"1s"},errorBox:{maxWidth:"420px"},txStatusIcon:{width:"105px",height:"105px"},delayText:{maxWidth:"420px"}})),GO=()=>{const e=Sr(),t=bt.useTheme(),{classes:n}=VO(),[a,c]=ie.useState(""),[i,u]=ie.useState(!1),[f,p]=ie.useState(!1),[h,g]=ie.useState(!1),[C,w]=ie.useState(!1),j=ie.useContext(ao),{sourceToken:I,destToken:T}=tI();Lg();const{route:S,timestamp:L,isResumeTx:E,txData:D}=qt(oe=>oe.redeem),[O,F]=ie.useState(void 0),{receipt:R}=j,Q=R&&_.isAttested(R),B=R&&_.isRefunded(R),k=R&&_.isFailed(R)||!!O,z=R&&_.isFailed(R)&&R.error instanceof Rn.RelayFailedError,y=R&&_.isDestinationQueued(R),{recipient:r,toChain:s,fromChain:l,token:d,receivedToken:M,amount:b,eta:N=0,sendTx:m}=D,o=j8(),x=ie.useMemo(()=>{if(N&&L)return new Date(L+N)},[N,L]),{seconds:W,minutes:Z,isRunning:G,restart:ee}=h9.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>g(!0)});ie.useEffect(()=>{!L||!N||G||ee(new Date(L+N),!0)},[N,G,ee,L]);const V=g9({receipt:R,route:S,eta:x}),P=R&&_.isCompleted(R)||V.isCompleted;ie.useEffect(()=>{V.receipt&&j.setReceipt(V.receipt)},[j,V.receipt]);const H=ie.useMemo(()=>{if(!S)return!1;const oe=ge.routes.get(S);return oe?oe.AUTOMATIC_DEPOSIT:!1},[S]),$=s1(S,I,T,l,s,b,o);ie.useEffect(()=>{const{receipt:oe}=j;if(oe)if(P)f||(p(!0),ge.triggerEvent({type:"transfer.success",details:$}),H||ge.triggerEvent({type:"transfer.redeem.success",details:$}),u(!1),c(""),D!=null&&D.sendTx&&T8(D==null?void 0:D.sendTx));else if(B)ge.triggerEvent({type:"transfer.refunded",details:$});else if(_.isFailed(oe)){const[We,de]=ku(oe.error,$);c(We),ge.triggerEvent({type:"transfer.error",details:$,error:de}),console.error(`Transfer failed with error ${de}: ${oe.error}`),u(!1)}else if(O){const[We,de]=ku(O,$);c(We),ge.triggerEvent({type:"transfer.redeem.error",details:$,error:de}),console.error(`Error while manually redeeming: ${de.type} - ${O}`),u(!1)}else Q&&!H&&(D!=null&&D.sendTx)&&cI(D==null?void 0:D.sendTx,"isReadyToClaim",!0)},[R==null?void 0:R.state,P,B,Q,O,f]);const X=qt(oe=>oe.wallet.receiving),te=ie.useMemo(()=>{const oe=L+N,We=Date.now();return oe>We?oe-We:0},[L,N,h,W]),Y=ie.useMemo(()=>{const oe={text:"",align:"left"};let We;return typeof ge.ui.pageHeader=="string"?We={...oe,text:ge.ui.pageHeader}:We={...oe,...ge.ui.pageHeader},A.jsx($a,{title:We.text,align:We.align})},[]),ne=ie.useMemo(()=>{let oe="Transaction submitted";return P?oe="Transaction completed":B?oe="Transaction was refunded":z&&ha(S)?oe=`Ready to claim on ${s}`:k?oe="Transaction failed":y?oe="Transaction delayed":Q&&!H&&(oe=`Ready to claim on ${s}`),A.jsx(Yt,{children:A.jsx(Ke,{"data-testid":"redeem-view-status-header",fontSize:18,children:oe})})},[P,B,z,S,k,y,Q,H,s]),xe=ie.useMemo(()=>{if(h)return A.jsx(Yt,{children:A.jsx(Ke,{color:t.palette.text.secondary,fontSize:14,children:"Wrapping up..."})});const oe=G?l1(Z,W):null;let We=A.jsx(Lr,{size:14});return N&&(We=yI(N)),A.jsxs(Yt,{alignItems:"center",justifyContent:"center",children:[A.jsxs(Ke,{color:t.palette.text.secondary,fontSize:14,children:["ETA ",We]}),A.jsx(Ke,{fontSize:28,children:oe})]})},[N,h,G,Z,W,t.palette.text.secondary]),le=ie.useMemo(()=>N?(N-te)/N*100:0,[N,te]),ue=ie.useMemo(()=>A.jsxs(A.Fragment,{children:[A.jsx("svg",{width:0,height:0,children:A.jsx("defs",{children:A.jsxs("linearGradient",{id:"circularGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[A.jsx("stop",{offset:"0%",stopColor:t.palette.primary.main,stopOpacity:"1"}),A.jsx("stop",{offset:"100%",stopColor:t.palette.background.default,stopOpacity:"0.1"})]})})}),A.jsxs(vn,{sx:{position:"relative"},children:[A.jsx(Lr,{variant:"determinate",sx:oe=>({color:oe.palette.primary.main,opacity:.2,position:"absolute"}),size:140,thickness:2,value:100}),A.jsx(Lr,{variant:h?"indeterminate":"determinate",classes:{root:n.circularProgressRoot,circle:h?n.circularProgressCircleIndeterminite:n.circularProgressCircleDeterminite},disableShrink:h,size:140,thickness:2,value:le})]}),A.jsx(vn,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:xe})]}),[n.circularProgressCircleDeterminite,n.circularProgressCircleIndeterminite,n.circularProgressRoot,xe,h,le,t.palette.background.default,t.palette.primary.main]),Ve=ie.useMemo(()=>P?A.jsx(m9,{className:n.txStatusIcon,sx:{color:t.palette.primary.light}}):B||y?A.jsx(ZO,{className:n.txStatusIcon,sx:{color:t.palette.warning.main}}):z&&ha(S)?A.jsx(Vp,{className:n.txStatusIcon,sx:{color:t.palette.warning.light}}):k?A.jsx(QO,{className:n.txStatusIcon,sx:{color:t.palette.error.light}}):!H&&Q?A.jsx(Vp,{className:n.txStatusIcon,sx:{color:t.palette.warning.light}}):ue,[P,B,y,z,S,k,H,Q,n.txStatusIcon,t.palette.primary.light,t.palette.warning.main,t.palette.warning.light,t.palette.error.light,ue]);ie.useEffect(()=>{let oe;if(j.receipt&&_.isDestinationQueued(j.receipt)){u(!0);const de=j.receipt.queueReleaseTime.getTime()-Date.now();oe=setTimeout(()=>{u(!1)},de)}return()=>{oe&&clearTimeout(oe)}},[j.receipt]);const he=ie.useMemo(()=>{if(!r)return!1;if(E&&s==="Solana"&&X.address&&X.type==="Solana"&&X.address!==r&&S&&["ManualTokenBridge","ManualCCTP"].includes(S)){const{address:ye}=G0(M);return ui.getAssociatedTokenAddressSync(new _.PublicKey(_.isNative(ye)?ui.NATIVE_MINT:ye.toString()),new _.PublicKey(X.address)).equals(new _.PublicKey(r))?(c(""),!0):(c("Not connected to the receiving wallet"),!1)}const oe=X.address.toLowerCase(),We=X.currentAddress.toLowerCase(),de=r.toLowerCase();return oe===We&&oe===de},[X,r,s,E,S,M]),be=ie.useCallback(async()=>{if(u(!0),c(""),F(void 0),!S)throw new Error("Unknown route, can not claim");if(!j.receipt)throw new Error("No receipt found, can not claim");const oe={route:S,fromToken:ro(ge.tokens.mustGet(d)),toToken:ro(ge.tokens.mustGet(M)),fromChain:l,toChain:s};if(ge.triggerEvent({type:"transfer.redeem.initiate",details:oe}),!he)throw c("Not connected to the receiving wallet"),new Error("Not connected to the receiving wallet");if(!ge.chains[s])throw c("Your claim has failed, please try again"),new Error("invalid destination chain");const de=j.route;try{if(!_.isManual(de)&&!_.isFinalizable(de))throw new Error("Route is not manual or finalizable");const ye=await ja.fromChain(s,X.address,{},jr.RECEIVING),mt=y&&_.isFinalizable(de)?de.finalize(ye,j.receipt):!y&&_.isManual(de)?de.complete(ye,j.receipt):void 0;mt&&(ge.triggerEvent({type:"transfer.redeem.start",details:$}),await mt)}catch(ye){F(ye),u(!1)}},[$,l,he,y,M,X.address,j.receipt,j.route,S,s,d]),st=ie.useMemo(()=>i?A.jsx(Fi,{disabled:!0,variant:"primary",className:n.actionButton,children:A.jsxs(Ke,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[A.jsx(Lr,{size:16,sx:{color:t.palette.primary.contrastText}}),"Transfer in progress"]})}):z&&S==="CCTPExecutorRoute"&&m?A.jsx(Fi,{variant:"primary",className:n.actionButton,onClick:()=>{e(bu()),e(Mn("search")),e(Qg({txHash:m,chain:l}))},children:A.jsx(Ke,{textTransform:"none",children:"Claim tokens to complete transfer"})}):y||!H&&Q||ha(S)&&z?he?A.jsx(Fi,{className:yn([n.actionButton,n.claimButton]),variant:a?"error":"primary",onClick:be,children:A.jsx(Ke,{textTransform:"none",children:"Claim tokens to complete transfer"})}):A.jsx(Fi,{variant:"primary",className:n.actionButton,onClick:()=>w(!0),children:A.jsx(Ke,{textTransform:"none",children:"Connect receiving wallet"})}):A.jsxs(A.Fragment,{children:[A.jsx(Fi,{variant:"primary",className:n.actionButton,onClick:()=>{e(Mn("bridge"))},children:A.jsx(Ke,{textTransform:"none",children:"Start a new transaction"})}),!P&&A.jsx(Ke,{fontSize:"12px",sx:{margin:"auto",opacity:.6},children:"Your current transaction will continue to process in the background."})]}),[i,y,H,Q,z,S,m,n.actionButton,n.claimButton,P,t.palette.primary.contrastText,he,a,be,e,l]),Me=ie.useMemo(()=>{var mt;if(!j.receipt||!_.isDestinationQueued(j.receipt))return null;const{to:oe,queueReleaseTime:We}=j.receipt,de=((mt=ge.tokens.get(M))==null?void 0:mt.symbol)||"",ye=We.toLocaleString();return A.jsx(Ke,{color:t.palette.text.secondary,fontSize:14,className:n.delayText,children:`Your transfer to ${oe} is delayed due to rate limits configured by ${de}. After
303
- the delay ends on ${ye}, you will need to tap "Claim" to
304
- complete your transfer.`})},[n.delayText,M,j.receipt,t.palette.text.secondary]);return A.jsxs("div",{className:yn([n.container,n.spacer]),"data-testid":"redeem-view",children:[Y,A.jsx(Yt,{className:n.backButton,children:A.jsx(Po,{sx:{padding:0},onClick:()=>e(Mn("bridge")),children:A.jsx(UO,{sx:{fontSize:"32px"}})})}),ne,A.jsx(vn,{sx:{position:"relative",display:"inline-flex",alignItems:"center",marginBottom:"24px",height:"140px"},children:Ve}),A.jsx(HO,{}),st,Me,A.jsx(Xa,{error:!0,content:a,show:!!a,className:n.errorBox}),A.jsx(u1,{color:t.palette.text.primary}),A.jsx(v1,{open:C,type:jr.RECEIVING,onClose:()=>{w(!1)}})]})};class nd extends ie.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,a=this.getParentElement(t);let c;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,u=n.pageYOffset!==void 0?n.pageYOffset:i.scrollTop;this.props.isReverse?c=u:c=this.calculateOffset(t,u)}else this.props.isReverse?c=a.scrollTop:c=t.scrollHeight-a.scrollTop-a.clientHeight;c<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:a,hasMore:c,initialLoad:i,isReverse:u,loader:f,loadMore:p,pageStart:h,ref:g,threshold:C,useCapture:w,useWindow:j,getScrollParent:I,...T}=t;T.ref=L=>{this.scrollComponent=L,g&&g(L)};const S=[n];return c&&(f?u?S.unshift(f):S.push(f):this.defaultLoader&&(u?S.unshift(this.defaultLoader):S.push(this.defaultLoader))),ie.createElement(a,T,S)}}yt(nd,"propTypes",{children:v.node.isRequired,element:v.node,hasMore:v.bool,initialLoad:v.bool,isReverse:v.bool,loader:v.node,loadMore:v.func.isRequired,pageStart:v.number,ref:v.func,getScrollParent:v.func,threshold:v.number,useCapture:v.bool,useWindow:v.bool}),yt(nd,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const $O=Kr(A.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"}),"SwapHoriz"),iu=8,qO=e=>{const[t,n]=ie.useState(),[a,c]=ie.useState(""),[i,u]=ie.useState(!1),[f,p]=ie.useState(!0),{getOrFetchToken:h}=On(),{address:g,page:C=0,pageSize:w=30}=e,j=ie.useCallback(async R=>{var V,P,H,$,X;const{content:Q,data:B,sourceChain:k,targetChain:z}=R,{standarizedProperties:y,payload:r}=Q||{},s=y.fromChain||(k==null?void 0:k.chainId),l=y.toChain||(z==null?void 0:z.chainId),d=y.tokenChain,M=_.chainIdToChain(s);if(!M)return;const b=d?_.chainIdToChain(d):_.chainIdToChain(l);if(!b)return;let N;try{N=await h(_.Wormhole.tokenId(b,y.tokenAddress))}catch{}if(!N){const te=(B==null?void 0:B.symbol)&&ge.tokens.findBySymbol(b,B.symbol);te&&(N=te)}N||console.warn("Can't find token",R);const m=_.chainIdToChain(l);let o,x,W;if(B&&B.tokenAmount?o=B.tokenAmount:y.amount&&(o=_.display({amount:y.amount,decimals:y.normalizedDecimals??iu},0)),y.amount){const te=y.fee||r.fee||((V=r.parsedPayload)==null?void 0:V.feeAmount)||((P=r.parsedPayload)==null?void 0:P.relayerFee)||"0",Y=BigInt(y.amount)-BigInt(te);Y>0&&(x=_.display({amount:Y.toString(),decimals:iu},0))}B&&B.usdAmount&&(W=Number(B.usdAmount));const Z=(H=k.transaction)==null?void 0:H.txHash,G=(($=k==null?void 0:k.status)==null?void 0:$.toLowerCase())==="confirmed"&&((X=z==null?void 0:z.status)==null?void 0:X.toLowerCase())!=="completed";return{txHash:Z,sender:y.fromAddress||k.from,recipient:y.toAddress,amount:o,amountUsd:W,receiveAmount:x,fromChain:M,fromToken:N,toChain:m,toToken:N,senderTimestamp:k==null?void 0:k.timestamp,receiverTimestamp:z==null?void 0:z.timestamp,explorerLink:`${Co.WORMSCAN}tx/${Z}${ge.isMainnet?"":"?network=TESTNET"}`,inProgress:G}},[h]),I=ie.useCallback(R=>j(R),[j]),T=ie.useCallback(R=>j(R),[j]),S=ie.useCallback(R=>j(R),[j]),L=ie.useCallback(R=>j(R),[j]),E=ie.useCallback(async R=>{var N;const Q=await j(R);if(!Q)return;const B=R.content.payload.parsedPayload,{finalTokenAddress:k,flagSet:z,minAmountFinish:y,recipientAddress:r,relayerFee:s}=B,l=ge.tokens.get(_.chainIdToChain(R.content.standarizedProperties.tokenChain),R.content.standarizedProperties.tokenAddress);if(!l)return;const d=(N=z.flags)!=null&&N.shouldWrapNative?E3(Q.fromChain):l,M=ge.tokens.get(_.Wormhole.tokenId(Q.toChain,_.toNative(Q.toChain,k).toString()));if(!M)return;const b=BigInt(y)-BigInt(s);return Q.fromToken=d,Q.toToken=z.flags.shouldUnwrapNative?E3(Q.toChain):M,Q.receiveAmount=b>0?nI(_.display(_.fromBaseUnits(b,M.decimals),0),iu):"",Q.recipient=_.toNative(Q.toChain,r).toString(),Q},[j]),D=ie.useCallback(R=>j(R),[j]),O=ie.useMemo(()=>({PORTAL_TOKEN_BRIDGE:I,GENERIC_RELAYER:T,NATIVE_TOKEN_TRANSFER:S,CCTP_WORMHOLE_INTEGRATION:L,ETH_BRIDGE:E,USDT_BRIDGE:E,FAST_TRANSFERS:D,WORMHOLE_LIQUIDITY_LAYER:D}),[L,S,E,I,D,T]),F=ie.useCallback(async R=>(await Promise.all(R.map(async Q=>{var k,z;const B=((z=(k=Q.content)==null?void 0:k.standarizedProperties)==null?void 0:z.appIds)||[];if(B.includes("ETH_BRIDGE")||B.includes("USDT_BRIDGE"))return E(Q);for(const y of B){const r=O[y];if(r)return r(Q)}}))).filter(Q=>!!Q),[O,E]);return ie.useEffect(()=>{let R=!1;const Q=new Headers({accept:"application/json"});return(async()=>{u(!0);try{const k=await fetch(`${ge.wormholeApi}api/v1/operations?address=${g}&page=${C}&pageSize=${w}`,{headers:Q});if(k.status!==200)n([]),p(!1),u(!1);else{const z=await k.json();if(!R){const y=z==null?void 0:z.operations;if(y){const r=await F(y);n(s=>{if(s&&s.length>0){const l=new Set;return s.forEach(d=>{d!=null&&d.txHash&&l.add(d.txHash)}),s.concat(r.filter(d=>!l.has(d.txHash)))}return r})}(y==null?void 0:y.length)<w&&p(!1)}}}catch(k){R||(p(!1),c(`Error fetching transaction history from WormholeScan: ${k}`))}finally{u(!1)}})(),()=>{R=!0}},[g,C,w,F]),{transactions:t,error:a,isFetching:i,hasMore:f}},JO=e=>{const[t,n]=ie.useState(),[a,c]=ie.useState(""),[i,u]=ie.useState(!1),[f,p]=ie.useState(!0),{address:h,page:g=0,pageSize:C=30}=e,w=I=>{const{fromAmount:T,sourceChain:S,destChain:L,fromTokenPrice:E,fromTokenAddress:D,initiatedAt:O,toAmount:F,toTokenAddress:R,sourceTxHash:Q,trader:B,destAddress:k,clientStatus:z}=I,y=_.chainIdToChain(S),r=_.chainIdToChain(L);if(!y||!r)return;let s,l;try{s=ge.tokens.get(Gp(y,D)),l=ge.tokens.get(Gp(r,R))}catch(N){console.error(N);return}if(!s){const N=ge.tokens.findBySymbol(y,I.fromTokenSymbol);N&&(s=N)}if(!l){const N=ge.tokens.findBySymbol(r,I.toTokenSymbol);N&&(l=N)}if(!s||!l){console.error("Cant find tokenz");return}const d=z==null?void 0:z.toLowerCase(),M=d!=="completed"&&d!=="refunded";return{txHash:Q,sender:B,amount:T,amountUsd:Number(T)*E,recipient:k,fromChain:y,fromToken:s,toChain:r,toToken:l,receiveAmount:F,senderTimestamp:O,explorerLink:`https://explorer.mayan.finance/swap/${Q}`,inProgress:M}},j=ie.useCallback(I=>I.map(T=>w(T)).filter(T=>!!T),[]);return ie.useEffect(()=>{let I=!1;return(async()=>{u(!0);const S=C,L=S*g;try{const E=await fetch(`${ge.mayanApi}/v3/swaps?trader=${h}&offset=${L}&limit=${S}`);if(E.status!==200)n([]),p(!1),u(!1);else{const D=await E.json();if(!I){const O=D==null?void 0:D.data;O&&n(F=>{const R=j(O);if(F&&F.length>0){const Q=new Set;return F.forEach(B=>{B!=null&&B.txHash&&Q.add(B.txHash)}),F.concat(R.filter(B=>!Q.has(B.txHash)))}return R}),(O==null?void 0:O.length)<S&&p(!1)}}}catch(E){I||(p(!1),c(`Error fetching transaction history from Mayan: ${E}`))}finally{u(!1)}})(),()=>{I=!0}},[h,g,C,j]),{transactions:t,error:a,isFetching:i,hasMore:f}};function Gp(e,t){if(t==="0x0000000000000000000000000000000000000000")return{chain:e,address:"native"};const n=_.toNative(e,t);return{chain:e,address:n}}const XO=e=>{const{page:t=0,pageSize:n=30}=e||{},[a,c]=ie.useState(0),[i,u]=ie.useState(0),[f,p]=ie.useState(t),[h,g]=ie.useState(t),[C,w]=ie.useState(),{address:j}=qt(k=>k.wallet.sending),{transactions:I,isFetching:T,hasMore:S,error:L}=qO({address:j,page:h,pageSize:n}),{transactions:E,isFetching:D,hasMore:O,error:F}=JO({address:j,page:f,pageSize:n}),R=ie.useCallback((k,z)=>k?k.concat(z):z,[]),Q=ie.useCallback(k=>{I&&k<=(I==null?void 0:I.length)&&u(k)},[I]),B=ie.useCallback(k=>{E&&k<=(E==null?void 0:E.length)&&c(k)},[E]);return ie.useEffect(()=>{O&&f!==t&&p(t),S&&h!==t&&g(t)},[O,S,f,t,h]),ie.useEffect(()=>{if(!I||!E)return;const k=[];let z=i,y=a;for(let l=0;l<n;l++){if(z===I.length&&S||y===E.length&&O){Q(z),B(y),w(b=>R(b,k));return}const d=I[z],M=E[y];if(!d&&!M){Q(z),B(y),w(b=>R(b,k));return}if(!M)k.push(d),z+=1;else if(!d)k.push(M),y+=1;else{const b=new Date(d.senderTimestamp),N=new Date(M.senderTimestamp);b>N?(k.push(d),z+=1):(k.push(M),y+=1)}}Q(z),B(y);const r=new Set,s=R(C,k).filter(l=>l.txHash&&r.has(l.txHash)?!1:(r.add(l.txHash),!0));w(l=>s)},[I,E]),{transactions:C,error:[L,F],isFetching:T||D,hasMore:S||O}},KO=Ht()(e=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",borderRadius:"8px",border:`1px solid ${e.palette.input.border}`},cardHeader:{paddingBottom:0}})),ez=e=>{const{classes:t}=KO(),n=bt.useTheme(),{txHash:a,amount:c,amountUsd:i,fromChain:u,fromToken:f,toChain:p,toToken:h,receiveAmount:g,senderTimestamp:C,explorerLink:w}=e.data,j=ie.useMemo(()=>A.jsx(Ke,{component:"span",padding:"0px 8px",children:"·"}),[]),{getTokenPrice:I,lastTokenPriceUpdate:T}=On(),S=ie.useMemo(()=>{const F=ge.chains[u];return A.jsxs(Yt,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[A.jsx(za,{chainConfig:F,token:f}),A.jsxs(Yt,{direction:"column",marginLeft:"12px",children:[A.jsxs(Ke,{fontSize:16,children:[c," ",f==null?void 0:f.symbol]}),A.jsxs(Ke,{color:n.palette.text.secondary,fontSize:14,children:[i?A.jsxs(A.Fragment,{children:[zg(i),j]}):null,F==null?void 0:F.displayName]})]})]})},[c,i,u,j,n.palette.text.secondary,f]),L=ie.useMemo(()=>{const F=ge.chains[p],R=h,Q=g?Xn(I,parseFloat(g),R):0,B=Q?A.jsxs(A.Fragment,{children:[Q,j]}):null;return A.jsxs(Yt,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[A.jsx(za,{chainConfig:F,token:R}),A.jsxs(Yt,{direction:"column",marginLeft:"12px",children:[A.jsxs(Ke,{fontSize:16,children:[g," ",R==null?void 0:R.symbol]}),A.jsxs(Ke,{color:n.palette.text.secondary,fontSize:14,children:[B,F==null?void 0:F.displayName]})]})]})},[T,p,h,g,I,j,n.palette.text.secondary]),E=ie.useMemo(()=>A.jsx(Yt,{height:"24px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),D=ie.useMemo(()=>{if(!C)return"Unknown time";const F=new Date(C),R=Date.now()-F.getTime();return R<1e3*60*60*24?hw(R):`${new Intl.DateTimeFormat("en-US",{dateStyle:"short",timeStyle:"short"}).format(F)}`},[C]),O=ie.useMemo(()=>A.jsx(Js,{url:da(u,a,"tx"),text:cw(a,4,4)}),[u,a]);return A.jsx("div",{className:t.container,children:A.jsx(Ti,{className:t.card,children:A.jsxs(uc,{disableTouchRipple:!0,onClick:()=>{window.open(w,"_blank")},children:[A.jsx(b1,{className:t.cardHeader,title:A.jsxs(Ke,{justifyContent:"space-between",color:n.palette.text.secondary,display:"flex",children:[A.jsxs("span",{children:["Transaction #",O]}),A.jsx("span",{children:D})]})}),A.jsxs(Ai,{children:[S,E,L]})]})})})},tz=Ht()(e=>({container:{margin:"auto",maxWidth:"420px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},infiniteScroller:{height:"640px",overflow:"auto",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"},spacer:{display:"flex",flexDirection:"column",gap:"24px",alignItems:"center",justifyContent:"center",width:"100%"}})),rz=()=>{const e=Sr(),{classes:t}=tz(),n=bt.useTheme(),[a,c]=ie.useState(0),{transactions:i,isFetching:u,hasMore:f}=XO({page:a}),p=qt(w=>w.wallet.sending),h=ie.useMemo(()=>{const w={text:"",align:"left"};let j;return typeof ge.ui.pageHeader=="string"?j={...w,text:ge.ui.pageHeader}:j={...w,...ge.ui.pageHeader},A.jsx($a,{title:j.text,align:j.align})},[]),g=ie.useMemo(()=>A.jsxs("div",{className:t.txHistoryHeader,children:[A.jsx(Vd,{align:"left",size:18,text:"Transaction history"}),A.jsx(Po,{onClick:()=>e(Mn("bridge")),children:A.jsx($O,{})})]}),[t.txHistoryHeader,e]),C=ie.useMemo(()=>{if(i){if(i.length===0)return A.jsx(Ke,{color:n.palette.text.secondary,textAlign:"center",children:`No transactions found for the wallet ${Vi(p.address)}`})}else return A.jsx(A.Fragment,{});return A.jsx("div",{className:yn([t.infiniteScroller]),children:A.jsx(nd,{hasMore:f,loadMore:w=>c(w),useWindow:!1,style:{scrollbarWidth:"thin"},children:A.jsx("div",{className:yn([t.spacer]),children:i.map((w,j)=>A.jsx(ez,{data:w},j))})})})},[t.infiniteScroller,t.spacer,f,p.address,n.palette.text.secondary,i]);return A.jsxs("div",{className:yn([t.container,t.spacer]),children:[h,g,C,(!i||u)&&A.jsx(Lr,{}),A.jsx(u1,{color:n.palette.text.primary})]})},nz=()=>A.jsxs("svg",{width:"0",height:"0",viewBox:"0 0 0 0",children:[A.jsxs("defs",{children:[A.jsxs("linearGradient",{id:"icons_tokens_sol_linearGradient_0",x1:"4.168",y1:"85.832",x2:"91.832",y2:"-1.832",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#9945FF"}),A.jsx("stop",{offset:".2",stopColor:"#7962E7"}),A.jsx("stop",{offset:"1",stopColor:"#00D18C"})]}),A.jsx("clipPath",{id:"icons_tokens_sol_clipPath_0",children:A.jsx("path",{fill:"#fff",d:"M0 0h96v84H0z"})})]}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_chains_apt_clipPath_0",children:A.jsx("rect",{width:"36",height:"36",fill:"white"})})}),A.jsxs("defs",{children:[A.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_0",cx:"0",cy:"0",r:"1",gradientTransform:"translate(653.009 167.889) scale(202.547 206.035)",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),A.jsx("stop",{offset:".681",stopColor:"#A087C9"}),A.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),A.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_1",cx:"0",cy:"0",r:"1",gradientTransform:"translate(540.32 255.753) scale(495.56 504.093)",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),A.jsx("stop",{offset:".681",stopColor:"#A087C9"}),A.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_0",x1:"331.959",x2:"415.726",y1:"687.445",y2:"179.399",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#81FFFF"}),A.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_1",x1:"551.129",x2:"338.385",y1:"258.408",y2:"450.302",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_2",x1:"131.705",x2:"613.118",y1:"553.353",y2:"553.353",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#0002E9"}),A.jsx("stop",{offset:".995",stopColor:"#FF00C7"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_3",x1:"635.906",x2:"369.659",y1:"452.584",y2:"699.942",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_4",x1:"131.705",x2:"389.259",y1:"553.352",y2:"553.352",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#000292"}),A.jsx("stop",{offset:".995",stopColor:"#7D00C7"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_5",x1:"132.029",x2:"612.795",y1:"453.743",y2:"453.743",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#000292"}),A.jsx("stop",{offset:".995",stopColor:"#BE00C7"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_6",x1:"604.91",x2:"569.494",y1:"191.453",y2:"248.03",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_7",x1:"343.013",x2:"362.187",y1:"613.233",y2:"613.233",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_8",x1:"409.132",x2:"428.305",y1:"606.695",y2:"606.695",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_9",x1:"379.785",x2:"394.18",y1:"639.688",y2:"639.688",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_10",x1:"438.053",x2:"452.447",y1:"632.755",y2:"632.755",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_11",x1:"281.083",x2:"312.395",y1:"600.365",y2:"600.365",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_12",x1:"467.049",x2:"498.361",y1:"548.259",y2:"548.259",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsx("clipPath",{id:"icons_chains_osmo_clipPath_0",children:A.jsx("rect",{width:"800",height:"800",fill:"#fff"})})]}),A.jsxs("defs",{children:[A.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_0",x1:"21.9203",y1:"4.40983",x2:"9.65997",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#00FFA3"}),A.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]}),A.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_1",x1:"21.9203",y1:"4.40982",x2:"9.65999",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#00FFA3"}),A.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]}),A.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_2",x1:"21.9203",y1:"4.40983",x2:"9.66001",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#00FFA3"}),A.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]})]}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_chains_sui_clipPath_0",children:A.jsx("rect",{width:"18",height:"24",fill:"white",transform:"translate(9 6)"})})}),A.jsxs("defs",{children:[A.jsxs("radialGradient",{id:"icons_chains_uni_radialGradient_0",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(18.4297 18) rotate(90) scale(18 17.93)",children:[A.jsx("stop",{stopColor:"#FC74FE"}),A.jsx("stop",{offset:"1",stopColor:"#F50DB4"})]}),A.jsx("clipPath",{id:"icons_chains_uni_clipPath_0",children:A.jsx("rect",{width:"36",height:"36",fill:"white",transform:"translate(0.429688)"})})]}),A.jsx("defs",{children:A.jsxs("linearGradient",{id:"icons_chains_xlayer_linearGradient_0",x1:"34",y1:"35.4996",x2:"1.5",y2:"3.49957",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#040404"}),A.jsx("stop",{offset:"1",stopColor:"#282828"})]})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_tokens_busd_clipPath_0",children:A.jsx("rect",{width:"199.401",height:"200",fill:"white"})})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_tokens_dai_clipPath_0",children:A.jsx("rect",{width:"200",height:"200",fill:"white"})})}),A.jsxs("defs",{children:[A.jsxs("linearGradient",{id:"icons_tokens_inj_linearGradient_0",x1:"100",y1:"300",x2:"500",y2:"300",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#0082FA"}),A.jsx("stop",{offset:"1",stopColor:"#00F2FE"})]}),A.jsxs("linearGradient",{id:"icons_tokens_inj_linearGradient_1",x1:"100",y1:"300",x2:"500",y2:"300",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#0082FA"}),A.jsx("stop",{offset:"1",stopColor:"#00F2FE"})]})]}),A.jsxs("defs",{children:[A.jsxs("filter",{id:"icons_tokens_ntt_filter_0",x:"36.0726",y:"19.3241",width:"12.6301",height:"12.6306",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[A.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),A.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),A.jsx("feGaussianBlur",{stdDeviation:"1.18048",result:"effect1_foregroundBlur_4160_67832"})]}),A.jsxs("linearGradient",{id:"icons_tokens_ntt_linearGradient_0",x1:"76.3139",y1:"25.3915",x2:"10.1678",y2:"25.3915",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1, 0, 0, 1, 307.155052, 224.001474)",children:[A.jsx("stop",{stopColor:"white",stopOpacity:"0"}),A.jsx("stop",{offset:"0.5142",stopColor:"white"}),A.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_tokens_ntt_linearGradient_1",x1:"42.748",y1:"1.55322",x2:"42.748",y2:"50.4438",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1, 0, 0, 1, 307.155052, 224.001474)",children:[A.jsx("stop",{stopColor:"white"}),A.jsx("stop",{offset:"0.4519",stopColor:"white",stopOpacity:"0"}),A.jsx("stop",{offset:"0.5397",stopColor:"white",stopOpacity:"0"}),A.jsx("stop",{offset:"1",stopColor:"white"})]})]}),A.jsxs("defs",{children:[A.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_0",cx:"0",cy:"0",r:"1",gradientTransform:"translate(653.009 167.889) scale(202.547 206.035)",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),A.jsx("stop",{offset:".681",stopColor:"#A087C9"}),A.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),A.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_1",cx:"0",cy:"0",r:"1",gradientTransform:"translate(540.32 255.753) scale(495.56 504.093)",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),A.jsx("stop",{offset:".681",stopColor:"#A087C9"}),A.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_0",x1:"331.959",x2:"415.726",y1:"687.445",y2:"179.399",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#81FFFF"}),A.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_1",x1:"551.129",x2:"338.385",y1:"258.408",y2:"450.302",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_2",x1:"131.705",x2:"613.118",y1:"553.353",y2:"553.353",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#0002E9"}),A.jsx("stop",{offset:".995",stopColor:"#FF00C7"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_3",x1:"635.906",x2:"369.659",y1:"452.584",y2:"699.942",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_4",x1:"131.705",x2:"389.259",y1:"553.352",y2:"553.352",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#000292"}),A.jsx("stop",{offset:".995",stopColor:"#7D00C7"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_5",x1:"132.029",x2:"612.795",y1:"453.743",y2:"453.743",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#000292"}),A.jsx("stop",{offset:".995",stopColor:"#BE00C7"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_6",x1:"604.91",x2:"569.494",y1:"191.453",y2:"248.03",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_7",x1:"343.013",x2:"362.187",y1:"613.233",y2:"613.233",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_8",x1:"409.132",x2:"428.305",y1:"606.695",y2:"606.695",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_9",x1:"379.785",x2:"394.18",y1:"639.688",y2:"639.688",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_10",x1:"438.053",x2:"452.447",y1:"632.755",y2:"632.755",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_11",x1:"281.083",x2:"312.395",y1:"600.365",y2:"600.365",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_12",x1:"467.049",x2:"498.361",y1:"548.259",y2:"548.259",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{offset:".289",stopColor:"#fff"}),A.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),A.jsx("clipPath",{id:"icons_chains_osmo_clipPath_0",children:A.jsx("rect",{width:"800",height:"800",fill:"#fff"})})]}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_tokens_usdt_clipPath_0",children:A.jsx("rect",{width:"229.912",height:"200",fill:"white"})})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"icons_tokens_wbtc_clipPath_0",children:A.jsx("rect",{width:"200",height:"200.022",fill:"white"})})})]}),iz=Ht()(e=>({appContent:{textAlign:"left",margin:"40px auto",maxWidth:"900px",width:"100%",display:"flex",justifyContent:"center",padding:"4px",fontFamily:e.typography.fontFamily,[e.breakpoints.down("sm")]:{margin:"0 auto"}}}));function oz(e){const{classes:t}=iz(),n=Sr(),a=ie.useContext(ao),c=qt(g=>g.router.route),i=ie.useRef(!1),u=ie.useRef(!0),f=ie.useCallback(g=>{Pd(g)||bw(g),i.current=!0,ge.triggerEvent({type:"config",config:g})},[]);i.current||(e.config&&f(e.config),c!=="bridge"&&n(Mn("bridge"))),ie.useEffect(()=>{u.current?(u.current=!1,ge.triggerEvent({type:"load",config:e.config})):e.config&&(f(e.config),n(k3()))},[e.config]);const p=dw(c),{hasExternalSearch:h}=vj();return ie.useEffect(()=>{const g="redeem",C="bridge";p===g&&c!==g&&(n(bu()),n(XC()),a.clear()),c===C&&p!==C&&p!=="history"&&n(k3())},[c,p,n]),ie.useEffect(()=>{h&&(n(bu()),n(Mn("search")))},[h,n]),A.jsxs("div",{className:t.appContent,children:[A.jsx(nz,{}),c==="bridge"&&A.jsx(PO,{}),c==="redeem"&&A.jsx(GO,{}),c==="search"&&A.jsx(yj,{}),c==="history"&&A.jsx(rz,{}),c==="terms"&&A.jsx(wN,{})]})}const az={mode:"light",primary:{main:"#9892e6"},secondary:{main:"#cccccc"},divider:"#a0a2a9",background:{default:"transparent"},text:{primary:Rs[900],secondary:"#7d7d7d"},error:{main:"#f44336"},info:{main:"#A4C8F3"},success:{main:"#4caf50"},warning:{main:"#ff9800"},button:{primary:"#ffffff",primaryText:Rs[900],disabled:"#c8cad1",disabledText:Rs[800],action:"#F3A01E",actionText:"#000000",hover:"#b7b9c1"},options:{hover:"#f9f9fb",select:"#F0F0F5"},card:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},popover:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},input:{background:"#f9f9f9",border:"#DEE0E3",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#000000"},sz={mode:"dark",primary:{main:"#C1BBF6"},secondary:{main:"#667085"},divider:"#ffffff"+Gr[20],background:{default:"transparent"},text:{primary:"#ffffff",secondary:"#79859e"},info:{main:"#304C70"},error:{main:"#F04438"},success:{main:"#12B76A"},warning:{main:"#F79009"},button:{primary:"#ffffff"+Gr[10],primaryText:"#ffffff",disabled:"#ffffff"+Gr[7],disabledText:"#ffffff"+Gr[40],action:"#ffffff",actionText:"#000000",hover:"#ffffff"+Gr[7]},options:{hover:"#ffffff"+Gr[7],select:"#ffffff"+Gr[10]},card:{background:"#ffffff"+Gr[5],secondary:"#ffffff"+Gr[5],elevation:"none"},popover:{background:"#1b2033",secondary:"#ffffff"+Gr[5],elevation:"none"},input:{background:"#1a1928",border:"#1e1f35",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#ffffff"},cz=e=>{const n=e.mode==="light"?az:sz,a=Object.assign({},n);if(e){e.background&&(a.background={default:e.background}),e.input&&(a.input={...a.input,background:e.input,border:e.secondary||a.secondary.main}),e.inputFillTreatment!==void 0&&(a.input.fillTreatment=e.inputFillTreatment),e.primary&&(a.primary={main:e.primary}),e.secondary&&(a.secondary={main:e.secondary}),e.text&&(a.text.primary=e.text),e.textSecondary&&(a.text.secondary=e.textSecondary),e.error&&(a.error={main:e.error}),e.success&&(a.success={main:e.success});const c=xr(e.primary||a.primary.main);let i,u,f,p,h,g;c.isDark()?(i=c.lightness(95).hex(),u=c.alpha(.4).hexa(),f=c.lightness(95).alpha(.9).hexa(),p=c.darken(.15).hex(),h=c.lightness(80).hex(),g=c.darken(.05).hex()):(i=c.lightness(5).hex(),u=c.alpha(.4).hexa(),f=c.lightness(5).alpha(.9).hexa(),p=c.lighten(.05).hex(),h=c.lightness(0).hex(),g=c.lighten(.05).hex()),a.button={primary:c.hex(),primaryText:i,disabled:u,disabledText:f,action:p,actionText:h,hover:g}}return O0({components:{MuiPaper:{styleOverrides:{root:{boxShadow:"none"}}},MuiCollapse:{styleOverrides:{root:{width:"100%"}}}},breakpoints:{values:{xs:300,sm:500,md:650,lg:900,xl:1200}},typography:{fontFamily:e.font??'"Inter", sans-serif'},palette:{...a}})};class lz extends ie.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n)}render(){return this.state.hasError?A.jsx(bt.Card,{children:A.jsx(bt.Typography,{variant:"h5",style:{textAlign:"center",marginTop:24,marginBottom:24},children:"An unexpected error has occurred. Please refresh the page."})}):this.props.children}}function fz({config:e,theme:t}){ae.useEffect(()=>{globalThis.dispatchReduxAction||(window.dispatchReduxAction=a=>{F3.dispatch(a)})},[]);const n=ae.useMemo(()=>cz(t??{mode:"dark"}),[t]);return A.jsx(ty,{store:F3,children:A.jsx(gy,{theme:n,children:A.jsx(A5,{enableColorScheme:!0,children:A.jsx(lz,{children:A.jsx(VA,{children:A.jsx(_N,{children:A.jsx(oz,{config:e})})})})})})})}const{AutomaticTokenBridgeRoute:uz,TokenBridgeRoute:dz,AutomaticCCTPRoute:hz,CCTPRoute:pz,AutomaticPorticoRoute:gz}=Iv;exports.AutomaticCCTPRoute=hz;exports.AutomaticPorticoRoute=gz;exports.AutomaticTokenBridgeRoute=uz;exports.CCTPRoute=pz;exports.CHAINS=rr;exports.CHAIN_ID_APTOS=_C;exports.CHAIN_ID_ETH=Ag;exports.CHAIN_ID_SOLANA=CC;exports.CHAIN_ID_SUI=kC;exports.DEFAULT_ROUTES=Bg;exports.ERR_AMOUNT_TOO_LARGE=xg;exports.ERR_AMOUNT_TOO_SMALL=bg;exports.ERR_DESTINATION_CONTRACT_PAUSED=gC;exports.ERR_INSUFFICIENT_ALLOWANCE=vg;exports.ERR_INSUFFICIENT_GAS=zu;exports.ERR_NOT_ENOUGH_CAPACITY=hC;exports.ERR_RELAY_FAILED=Ng;exports.ERR_SOURCE_CONTRACT_PAUSED=pC;exports.ERR_TIMEOUT=Cg;exports.ERR_UNKNOWN=wg;exports.ERR_UNSUPPORTED_ABI_VERSION=mC;exports.ERR_USER_REJECTED=Rd;exports.EventEmitter=kv;exports.MAINNET=G5;exports.NotConnected=bC;exports.NotSupported=xC;exports.Stream=Hv;exports.TESTNET=$5;exports.Token=Ki;exports.TokenBridgeRoute=dz;exports.Wallet=Tg;exports.WormholeConnect=fz;exports.buildConfig=Ud;exports.commonjsRequire=n6;exports.config=ge;exports.eventsExports=oo;exports.getTokenDetails=ro;exports.getTransferDetails=s1;exports.getWormholeContextV2=qr;exports.inherits_browserExports=zt;exports.isEVMChain=GC;exports.isEmptyObject=Pd;exports.nacl2=_d;exports.naclFastExports=rg;exports.require$$2=Bo;exports.requireBrowser=xd;exports.requireCryptoBrowserify=kd;exports.requireElliptic=Z0;exports.requireString_decoder=a0;exports.sleep=l0;exports.streamBrowserify=P0;exports.types=Z7;