@dcl/shop 1.5.0 → 1.6.0

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 (228) hide show
  1. package/_assets/{Activity-D50vcan8.js → Activity-BIves4tB.js} +4 -4
  2. package/_assets/{AnimatedBackground-Cj9EpqOd.js → AnimatedBackground-BAIZo2fR.js} +2 -2
  3. package/_assets/{Assets-Dm36HC3A.js → Assets-C0vteGqy.js} +3 -3
  4. package/_assets/{Assets.styles-BN60--IX.js → Assets.styles-BMNglk-c.js} +2 -2
  5. package/_assets/{Authorizations-Bbe2ZDBQ.js → Authorizations-CoYQLT-v.js} +2 -2
  6. package/_assets/{Cart-DYn6HPbr.js → Cart-D93xxbh3.js} +2 -2
  7. package/_assets/{CircularProgress-Dnmv1o80.js → CircularProgress-CWLrSo38.js} +2 -2
  8. package/_assets/{Collection-CjjgGrQS.js → Collection-D53xuozg.js} +2 -2
  9. package/_assets/{CollectionCarousel-CE-opnoC.js → CollectionCarousel-vaYY-nnI.js} +3 -3
  10. package/_assets/{Confetti-CB_-TN9l.js → Confetti-FKTM_6PB.js} +4 -4
  11. package/_assets/{ConstantsUtil-BCnsDBTq.js → ConstantsUtil-sccHYIeE.js} +2 -2
  12. package/_assets/{ContentClient-BroqC_BC.js → ContentClient-BlVGFGAc.js} +2 -2
  13. package/_assets/{Creator-7Yfv-O5x.js → Creator-Cn38JTBO.js} +2 -2
  14. package/_assets/{DeploymentBuilder-COWMAjp6.js → DeploymentBuilder-CeRoTifx.js} +2 -2
  15. package/_assets/{ErrorNotice-wkmOXUCs.js → ErrorNotice-FmyHmiX7.js} +2 -2
  16. package/_assets/{ExchangeController-DcWjBpqs.js → ExchangeController-C6phi3nr.js} +2 -2
  17. package/_assets/{Faq-CA4hGBgd.js → Faq-CCxX2eZe.js} +2 -2
  18. package/_assets/{GetCredits-C1jk05TS.js → GetCredits-Bd3X1aDf.js} +2 -2
  19. package/_assets/{Grow-CcOFR0O2.js → Grow-Szn7ieZq.js} +2 -2
  20. package/_assets/{HelpersUtil-x0q9yjB9.js → HelpersUtil-CVPw5G-7.js} +2 -2
  21. package/_assets/{ItemDetail-Bs-qLZFu.js → ItemDetail-DyL0T8Py.js} +2 -2
  22. package/_assets/{JumpInIcon-cZDuK4Lg.js → JumpInIcon-BZzvbRJa.js} +2 -2
  23. package/_assets/LazyEmoteControls-COuiKh_p.js +3 -0
  24. package/_assets/{LoadMore-BZI6acD0.js → LoadMore-92xFi8QJ.js} +2 -2
  25. package/_assets/{ManaPricingBanner.styles-neDlJJ8w.js → ManaPricingBanner.styles--RdbEZkX.js} +2 -2
  26. package/_assets/{MyAssets-DEjyJKXL.js → MyAssets-B7RmTDGk.js} +5 -5
  27. package/_assets/{MyFavorites-9-PnpfHx.js → MyFavorites-BuMQZ6jE.js} +2 -2
  28. package/_assets/{NetworkUtil-DVL7Xu9N.js → NetworkUtil-v1MXp5Vw.js} +2 -2
  29. package/_assets/{NotFound-BDyYbYda.js → NotFound-D1Z51qWS.js} +2 -2
  30. package/_assets/{NotificationsBell-u-VIWywh.js → NotificationsBell-DpejsSGV.js} +2 -2
  31. package/_assets/{OutfitDetail-D_HFSW_e.js → OutfitDetail-DTTL13km.js} +2 -2
  32. package/_assets/{OutfitPreview-CsF2hEkC.js → OutfitPreview-B7h5Y44d.js} +2 -2
  33. package/_assets/{OutfitStudio-y556wVuq.js → OutfitStudio-mDG-ZDvy.js} +2 -2
  34. package/_assets/{StoreSettings-DnLNG_Ka.js → StoreSettings-BGVOGpcd.js} +22 -22
  35. package/_assets/{Success-B00AAChl.js → Success-Dfu0eQTO.js} +2 -2
  36. package/_assets/{SwapController-BlAUBM9b.js → SwapController-IlZfb2oR.js} +2 -2
  37. package/_assets/{Tooltip-D7BUz9Sv.js → Tooltip-CWAMxtHJ.js} +2 -2
  38. package/_assets/{TradeService-DsOm5uw9.js → TradeService-DlMas9Vb.js} +2 -2
  39. package/_assets/{W3MFrameProviderSingleton-CcisOnMz.js → W3MFrameProviderSingleton-C8G1VIpP.js} +4 -4
  40. package/_assets/{WebCryptoP256-B_1-pjua.js → WebCryptoP256-BBVW5Z8w.js} +2 -2
  41. package/_assets/{authorizations-myrKPD1A.js → authorizations-DQDCaRjI.js} +2 -2
  42. package/_assets/{basic-DZNTCsO4.js → basic-0SGNtdGq.js} +2 -2
  43. package/_assets/{biconomy-pXPYefnS.js → biconomy-C4PcPOSj.js} +2 -2
  44. package/_assets/{browser-CET7W5is.js → browser-Dst46xRs.js} +2 -2
  45. package/_assets/{browser-ponyfill-Bv6ATZck.js → browser-ponyfill-B4fVbiDF.js} +2 -2
  46. package/_assets/{builder-BdgH0BgM.js → builder-BiWmveAr.js} +2 -2
  47. package/_assets/{buy-obADexg6.js → buy-C2M8gL0v.js} +2 -2
  48. package/_assets/{buy-gasless-D8dkO9Jk.js → buy-gasless-BXOm8q1f.js} +2 -2
  49. package/_assets/{categories-BZabyZ8A.js → categories-CuW61PR3.js} +2 -2
  50. package/_assets/{ccip-CI12YOWU.js → ccip-BDwbzP8Z.js} +2 -2
  51. package/_assets/{ccip-CGaqhm20.js → ccip-DixrJ5wW.js} +2 -2
  52. package/_assets/{chains-BM8zToEd.js → chains-CNTkcl2t.js} +2 -2
  53. package/_assets/{collectionPage.styles-DLXuPy7D.js → collectionPage.styles-CNk59IDd.js} +5 -5
  54. package/_assets/{common-nuOYkaHb.js → common-5tdC843P.js} +2 -2
  55. package/_assets/{controller-DBGJ9L27.js → controller-BZsQSl-q.js} +3 -3
  56. package/_assets/{core-D0C-qqK-.js → core-DQ4_JbBr.js} +5 -5
  57. package/_assets/{createSvgIcon-vJ2m_SdG.js → createSvgIcon-Cc45-VrR.js} +2 -2
  58. package/_assets/{custom-BfFlFyk9.js → custom-66NEjGko.js} +2 -2
  59. package/_assets/{data-capture-rNXQJ8Zi.js → data-capture-CqiPZ2Dm.js} +2 -2
  60. package/_assets/{dcl-schemas-zsu0mTrZ.js → dcl-schemas-DmZ1KjqP.js} +2 -2
  61. package/_assets/{decimals-quYRp8SH.js → decimals-CQ3tvNvn.js} +2 -2
  62. package/_assets/{decimals-D4xl4QFg.js → decimals-DhgpuU8P.js} +2 -2
  63. package/_assets/{detectExtension-DoCJoOPy.js → detectExtension-C1cG3GwA.js} +2 -2
  64. package/_assets/{disposePreview-BE9W7_ar.js → disposePreview-CfIXEOx1.js} +2 -2
  65. package/_assets/{email-CFiP-ip_.js → email-BLc4FzVi.js} +2 -2
  66. package/_assets/{embedded-wallet-PbYbuMMZ.js → embedded-wallet-BpA8BhnT.js} +2 -2
  67. package/_assets/{emotion-styled.browser.esm-C5nLwySz.js → emotion-styled.browser.esm-DI3elzvy.js} +2 -2
  68. package/_assets/{engine-J1JNmp9O.js → engine-BB4xJ5Oj.js} +2 -2
  69. package/_assets/{errors-2UPb-hkl.js → errors-Cz5ORqut.js} +2 -2
  70. package/_assets/{estimate-l1-fee-BwftZ3CV.js → estimate-l1-fee-CCWjRO9T.js} +2 -2
  71. package/_assets/{eth_estimateGas-DdmXvVTn.js → eth_estimateGas-BNRzb3Ka.js} +2 -2
  72. package/_assets/{eth_getStorageAt-CW_qzl7W.js → eth_getStorageAt-BK3HtAHN.js} +2 -2
  73. package/_assets/{eth_getTransactionCount-BESG7-Xo.js → eth_getTransactionCount-CgLld_3O.js} +2 -2
  74. package/_assets/{ethereum-BoIbQ5Uo.js → ethereum-BTpgh80m.js} +2 -2
  75. package/_assets/{ethers-Cht1Npa6.js → ethers-Bwl9qW1Q.js} +2 -2
  76. package/_assets/{events-BQT4aY54.js → events-B3VuLoYR.js} +2 -2
  77. package/_assets/{execute-Pf7DweE-.js → execute-DyAmqArd.js} +3 -3
  78. package/_assets/{extractIPFS-D2l69R_q.js → extractIPFS-BMAQepht.js} +2 -2
  79. package/_assets/{features-HA9-zgBN.js → features-CUTJRjck.js} +2 -2
  80. package/_assets/{fetchTokenMetadata-D8fD5Err.js → fetchTokenMetadata-kas9IVYf.js} +3 -3
  81. package/_assets/{field.styles-C4G2gSVV.js → field.styles-SWJjNrTo.js} +2 -2
  82. package/_assets/{fortmatic-Dxx5MUEp.js → fortmatic-D4eqKU3e.js} +2 -2
  83. package/_assets/{get-bytecode-Ch5mbRJo.js → get-bytecode-CQ0Bp2Nz.js} +2 -2
  84. package/_assets/{get-ecosystem-wallet-info-v-jnHsN8.js → get-ecosystem-wallet-info-CBdIQ8IP.js} +2 -2
  85. package/_assets/{getBalance-Bjl_9rGE.js → getBalance-CCRsJje1.js} +3 -3
  86. package/_assets/{getInstalledModules-D8N_r1VL.js → getInstalledModules-Bc4QhhXD.js} +2 -2
  87. package/_assets/{getNFT-DjQEqIhL.js → getNFT-BYn270lC.js} +3 -3
  88. package/_assets/{getNFT-DhNzYzGs.js → getNFT-C_Osmrsa.js} +2 -2
  89. package/_assets/{grid.styles-DJA6ds3T.js → grid.styles-DR-yfn2C.js} +2 -2
  90. package/_assets/{hashTypedData-Dt1_lU4P.js → hashTypedData-C1qCorAA.js} +2 -2
  91. package/_assets/{hashTypedData-3q-08HPJ.js → hashTypedData-CeBi4t5w.js} +2 -2
  92. package/_assets/{in-app-CEjpNVMq.js → in-app-2gN362Bh.js} +2 -2
  93. package/_assets/{in-app-wallet-calls-6tmutwY9.js → in-app-wallet-calls-PNnqKiqK.js} +2 -2
  94. package/_assets/{index-0_zP29oO.js → index--mp_sYJN.js} +3 -3
  95. package/_assets/{index-CAlbRphK.js → index-0JRdMK7v.js} +2 -2
  96. package/_assets/{index-6JtqbgZ8.js → index-67jL7Qs-.js} +2 -2
  97. package/_assets/{index-CfNBjwcb.js → index-73fIwcux.js} +2 -2
  98. package/_assets/{index-bx_y7ptf.js → index-8eeuiTS_.js} +2 -2
  99. package/_assets/{index-8kZYA2-O.js → index-B9IZeR_D.js} +4 -4
  100. package/_assets/{index-C_Z4-Tsf.js → index-BCh0GUEt.js} +2 -2
  101. package/_assets/{index-EzX7B_ff.js → index-BDvy-qRF.js} +2 -2
  102. package/_assets/{index-CRECFzcT.js → index-BHLzNgT3.js} +2 -2
  103. package/_assets/{index-Cj_SbcrU.js → index-BLJavdiY.js} +2 -2
  104. package/_assets/{index-DXVk_zOz.js → index-BMNKoN1X.js} +4 -4
  105. package/_assets/{index-C492aOeh.js → index-BU6Tiyue.js} +2 -2
  106. package/_assets/{index-Cb6o5QcG.js → index-BUR5Lw5K.js} +2 -2
  107. package/_assets/{index-Bv3zJuLU.js → index-BVaG-gCl.js} +2 -2
  108. package/_assets/{index-BYrTj_EQ.js → index-BZzN_etT.js} +2 -2
  109. package/_assets/{index-CD4bV5HZ.js → index-BcjBfjfJ.js} +2 -2
  110. package/_assets/{index-CQ3l2DcQ.js → index-BeMzZGKs.js} +2 -2
  111. package/_assets/{index-SkKQMc9S.js → index-BlLjMUpL.js} +2 -2
  112. package/_assets/{index-EQSB0K_p.js → index-BoHkcwcC.js} +2 -2
  113. package/_assets/{index-Bbzv3wH5.js → index-Bt_8JDRO.js} +3 -3
  114. package/_assets/{index-CZhMC4kH.js → index-BzEF6QSS.js} +2 -2
  115. package/_assets/{index-h2F8pV2S.js → index-C4-xGbXH.js} +2 -2
  116. package/_assets/{index-CmXbc7lv.js → index-C6A0BHjJ.js} +2 -2
  117. package/_assets/{index-2-pr64VT.js → index-CDk-Ypb7.js} +4 -4
  118. package/_assets/{index-VoCS0qIV.js → index-CEOgZYKL.js} +2 -2
  119. package/_assets/{index-JFxZKYjR.js → index-CR3r1Rkd.js} +2 -2
  120. package/_assets/{index-BzFuK5se.js → index-CSbGkt1l.js} +2 -2
  121. package/_assets/{index-DIP_sUCq.js → index-CTySZKr_.js} +2 -2
  122. package/_assets/{index-BokOWw7t.js → index-CW8A4Tx8.js} +2 -2
  123. package/_assets/{index-CGoL-IM3.js → index-CWbxi5Ll.js} +2 -2
  124. package/_assets/{index-6_hmX3Zn.js → index-CWgwVtUi.js} +2 -2
  125. package/_assets/{index-BCJhCky7.js → index-CcH2ARDV.js} +2 -2
  126. package/_assets/{index-Ncd5tqva.js → index-CcOzVhfx.js} +2 -2
  127. package/_assets/{index-BroOWhEI.js → index-CcSVe5HQ.js} +2 -2
  128. package/_assets/{index-DbclrA2_.js → index-CdLAfk4q.js} +2 -2
  129. package/_assets/{index-BRAA-IQE.js → index-CfSUieWC.js} +2 -2
  130. package/_assets/{index-DP9zIdRT.js → index-CpWOfn2m.js} +2 -2
  131. package/_assets/{index-PhgdcTs2.js → index-D32IHfJX.js} +2 -2
  132. package/_assets/{index-DX5r_ARn.js → index-D9Y0Wc1r.js} +2 -2
  133. package/_assets/{index-DFWrKmpN.js → index-DFZZspY1.js} +2 -2
  134. package/_assets/{index-Cp3rZqk4.js → index-DNg2ina0.js} +2 -2
  135. package/_assets/{index-s5CgRAlM.js → index-DZKRIXYQ.js} +2 -2
  136. package/_assets/{index-sOhcwjb_.js → index-DZXmWU2z.js} +2 -2
  137. package/_assets/{index-DeBDhSJ4.js → index-D_XOaK9C.js} +2 -2
  138. package/_assets/{index-D4jH-gDn.js → index-Dcv4xKCh.js} +2 -2
  139. package/_assets/{index-DV7gCXRp.js → index-DgQUgQE7.js} +2 -2
  140. package/_assets/{index-eIhHVUKG.js → index-DhkNwQp3.js} +2 -2
  141. package/_assets/{index-BeL--w3s.js → index-DkcAcz8h.js} +2 -2
  142. package/_assets/{index-zopSmgUE.js → index-DmOQRnzD.js} +2 -2
  143. package/_assets/{index-D_BCza3W.js → index-DoqSvppp.js} +2 -2
  144. package/_assets/{index-B141FaqE.js → index-DyFuH2_H.js} +2 -2
  145. package/_assets/{index-BLFQZTHC.js → index-Dyqo4Xho.js} +2 -2
  146. package/_assets/{index-QE9cOzMl.js → index-EUtQr9pG.js} +2 -2
  147. package/_assets/{index-C_d7O00s.js → index-Hi9hy4n_.js} +2 -2
  148. package/_assets/{index-BFCjjzWd.js → index-LO6_NqYq.js} +2 -2
  149. package/_assets/{index-CTfbAh5-.js → index-Lwl-Gnxw.js} +2 -2
  150. package/_assets/{index-CzbPOqEg.js → index-McsfYopR.js} +2 -2
  151. package/_assets/{index-Be1DAYcx.js → index-RFt6OUu2.js} +3 -3
  152. package/_assets/{index-Rb9tumPW.js → index-V2ifzLDA.js} +2 -2
  153. package/_assets/{index-g9E_6bSc.js → index-WHHsi8wC.js} +13 -13
  154. package/_assets/{index-DZIVenz3.js → index-aNvf8EmA.js} +2 -2
  155. package/_assets/{index-aR5X3dZ-.js → index-dG_Iw9GB.js} +3 -3
  156. package/_assets/{index-BcY3W_FA.js → index-g37PxJX_.js} +2 -2
  157. package/_assets/{index-BWJrmI8J.js → index-lrEd_RLF.js} +2 -2
  158. package/_assets/{index-D-58ERHc.js → index-nCgh9GDW.js} +2 -2
  159. package/_assets/{index-D2UcTOTK.js → index-ocHSoaei.js} +2 -2
  160. package/_assets/{index-fn6ahAcN.js → index-vnMkhThD.js} +2 -2
  161. package/_assets/{index.es-Yxw4DEWh.js → index.es-B-CrcVRz.js} +5 -5
  162. package/_assets/{index.es-CZVczq11.js → index.es-DvysfVti.js} +2 -2
  163. package/_assets/{index.es-DC8RZ1r0.js → index.es-OCWnmqFN.js} +2 -2
  164. package/_assets/{index.es-CbC-Ad3H.js → index.es-afGy5SKE.js} +2 -2
  165. package/_assets/{linkAccount-DbIcvZbz.js → linkAccount-BifsRGz3.js} +2 -2
  166. package/_assets/{localBatchGatewayRequest-Br-Wu49v.js → localBatchGatewayRequest-DFLku6l5.js} +2 -2
  167. package/_assets/{native-QaB_FNcb.js → native-DJ_aUpsb.js} +2 -2
  168. package/_assets/{networks-DibksEWV.js → networks-CydjJiM4.js} +2 -2
  169. package/_assets/{onramp-DNhBIW9J.js → onramp-B5sqXzRM.js} +2 -2
  170. package/_assets/{openzeppelin-BMEKK2uZ.js → openzeppelin-qXDLyFfJ.js} +2 -2
  171. package/_assets/{ownerOf-ucIO2Oo9.js → ownerOf-BbSxGD2J.js} +2 -2
  172. package/_assets/{parseNft-bwiPaC8A.js → parseNft-CzaJPKTy.js} +3 -3
  173. package/_assets/{parseSignature-ChuWJvud.js → parseSignature-HsnnoUE2.js} +2 -2
  174. package/_assets/{parseSignature-BRRICXDl.js → parseSignature-g3bgmU83.js} +4 -4
  175. package/_assets/{passkeys-GNVhWiYH.js → passkeys-D_G_4dk2.js} +2 -2
  176. package/_assets/{pay-with-exchange-BoN9NnNE.js → pay-with-exchange-CIY60crz.js} +2 -2
  177. package/_assets/{prepare-contract-call-BhdaU_XX.js → prepare-contract-call-DcoWBYfb.js} +2 -2
  178. package/_assets/{qr-overlay-DMmFJkur.js → qr-overlay-D0y8Agq2.js} +4 -4
  179. package/_assets/{react-B9n8JCiV.js → react-C5703MPC.js} +2 -2
  180. package/_assets/{receive-edYvLtm6.js → receive-DNjIhYc8.js} +2 -2
  181. package/_assets/{resolveImplementation-SOb_bqu8.js → resolveImplementation-B_rCiF72.js} +2 -2
  182. package/_assets/{resume-buy-C-Hfow0v.js → resume-buy-CYbFLUtA.js} +2 -2
  183. package/_assets/{rpc-g6VOgRj_.js → rpc-tyv59_YL.js} +2 -2
  184. package/_assets/{secp256k1-bZiVPGU6.js → secp256k1--JJyTmSc.js} +2 -2
  185. package/_assets/{secp256k1-D4-wgLzz.js → secp256k1-BLVn6ftw.js} +2 -2
  186. package/_assets/{secp256k1-DBTedRgH.js → secp256k1-DLyimMSS.js} +2 -2
  187. package/_assets/{send-Bq9XPe8V.js → send-DvmnwxI5.js} +2 -2
  188. package/_assets/{send-batch-transaction-C3ba0zM5.js → send-batch-transaction-CrafOV72.js} +2 -2
  189. package/_assets/{send-eip712-transaction-BsNFy8Qs.js → send-eip712-transaction-BV9i5dtU.js} +3 -3
  190. package/_assets/{send-gasless-transaction-CxzWwDfD.js → send-gasless-transaction-Bq1ZzcAz.js} +3 -3
  191. package/_assets/{send-transaction-Czlff4lG.js → send-transaction-CowbeyJV.js} +3 -3
  192. package/_assets/{sendMetaTransaction-9dQlFhJ5.js → sendMetaTransaction-U4ILDtVI.js} +2 -2
  193. package/_assets/{sendRawTransaction-CnPt4u94.js → sendRawTransaction-DKcXOGXo.js} +4 -4
  194. package/_assets/{sentry-C8wiaTF5.js → sentry-CVZH1wJB.js} +3 -3
  195. package/_assets/{serializeTransaction-0yzgFbSK.js → serializeTransaction-CSki-hu9.js} +2 -2
  196. package/_assets/{session-proposal-Bprkv_gG.js → session-proposal-BYkdworc.js} +2 -2
  197. package/_assets/{session-request-BqDJ5a3X.js → session-request-DpnE_8qu.js} +3 -3
  198. package/_assets/{sha256-BIQZZb2h.js → sha256-B2jbYpqD.js} +2 -2
  199. package/_assets/{signing-CeqmWwT_.js → signing-h5AacBtI.js} +4 -4
  200. package/_assets/{skeleton.styles-_MnBbAn2.js → skeleton.styles-CSCidn_Q.js} +2 -2
  201. package/_assets/{socials-DkCfjmn5.js → socials-ya0LeLbM.js} +2 -2
  202. package/_assets/{styled-cs1xfj_N.js → styled-DbFIixuP.js} +2 -2
  203. package/_assets/{swaps-x_b1JTpB.js → swaps-D9ljXaLw.js} +2 -2
  204. package/_assets/{thirdweb-D4vC1WLT.js → thirdweb-BuQ1AtjV.js} +4 -4
  205. package/_assets/{to-serializable-transaction-D0j52_mt.js → to-serializable-transaction-CwBmyCV-.js} +3 -3
  206. package/_assets/{totalSupply-K01Q0Vn5.js → totalSupply-D5VVA3Kk.js} +2 -2
  207. package/_assets/{transaction-B2jurCc_.js → transaction-DAE8a5oD.js} +2 -2
  208. package/_assets/{transactionReceipt-CXp_NVxA.js → transactionReceipt-CkcO-YHq.js} +2 -2
  209. package/_assets/{transactions-CPs59cEM.js → transactions-BiJd-UHs.js} +2 -2
  210. package/_assets/{useCreditPacks-DJEg-u1J.js → useCreditPacks-D3849BP_.js} +2 -2
  211. package/_assets/{useImportable-Do_H6s5X.js → useImportable-C6MLtTFO.js} +2 -2
  212. package/_assets/{useInfiniteGrid-DvCeqJD2.js → useInfiniteGrid-71BcT-U8.js} +2 -2
  213. package/_assets/{useStore-B4y_HkPA.js → useStore-8JDRpkO8.js} +3 -3
  214. package/_assets/{useTheme-bW0U-kEn.js → useTheme-MdNi5P1R.js} +2 -2
  215. package/_assets/{useUrlFilters-D6CPlmy-.js → useUrlFilters-CFmAGAg1.js} +2 -2
  216. package/_assets/{utils-BloBOUR4.js → utils-C82G3dfy.js} +2 -2
  217. package/_assets/{verifyHash-DF_wkOzi.js → verifyHash-RPP3evxq.js} +2 -2
  218. package/_assets/{w3m-modal-lc3PaE2r.js → w3m-modal--PJ6j5FW.js} +2 -2
  219. package/_assets/{w3m-modal-CWW3o8Gz.js → w3m-modal-C4h-YRCi.js} +2 -2
  220. package/_assets/{wait-for-tx-receipt-Cs_qTDwb.js → wait-for-tx-receipt-Cv-z1dNO.js} +2 -2
  221. package/_assets/{wallets-B7X87fc5.js → wallets-BvzIqPfn.js} +6 -6
  222. package/_assets/{web-connector-CZxusr6b.js → web-connector-Crctq1Jf.js} +4 -4
  223. package/_assets/{writeContract-B3AMPXHo.js → writeContract-DfTzq8xm.js} +2 -2
  224. package/_assets/{zora-sepolia-BjfGh2Ub.js → zora-sepolia-DBHkUWS0.js} +2 -2
  225. package/_assets/{zoraTestnet-Dg6F3Hp1.js → zoraTestnet-DadjQYYU.js} +2 -2
  226. package/index.html +11 -11
  227. package/package.json +2 -2
  228. package/_assets/LazyEmoteControls-D8kI2iLE.js +0 -3
@@ -1,4 +1,4 @@
1
- import{i as b,b as c}from"./lit-element-wjYUA6aF.js";import{n}from"./class-map-HS20q_81.js";import{c as g}from"./index-DbclrA2_.js";import"./index-D2UcTOTK.js";import{d as p,r as m,e as h}from"./index-DXVk_zOz.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3550ca9e-f1fe-4de9-8f9a-0a27d1952bcf",t._sentryDebugIdIdentifier="sentry-dbid-3550ca9e-f1fe-4de9-8f9a-0a27d1952bcf")}catch{}})();const v=p`
1
+ import{i as b,b as c}from"./lit-element-wjYUA6aF.js";import{n}from"./class-map-HS20q_81.js";import{c as g}from"./index-CdLAfk4q.js";import"./index-ocHSoaei.js";import{d as p,r as m,e as h}from"./index-BMNKoN1X.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3550ca9e-f1fe-4de9-8f9a-0a27d1952bcf",t._sentryDebugIdIdentifier="sentry-dbid-3550ca9e-f1fe-4de9-8f9a-0a27d1952bcf")}catch{}})();const v=p`
2
2
  :host {
3
3
  width: var(--local-width);
4
4
  }
@@ -150,4 +150,4 @@ import{i as b,b as c}from"./lit-element-wjYUA6aF.js";import{n}from"./class-map-H
150
150
  <slot name="iconRight"></slot>
151
151
  </button>
152
152
  `}loadingTemplate(){if(this.loading){const e=y[this.size],a=this.variant==="neutral-primary"||this.variant==="accent-primary"?"invert":"primary";return c`<wui-loading-spinner color=${a} size=${e}></wui-loading-spinner>`}return null}};r.styles=[m,h,v];i([n()],r.prototype,"size",void 0);i([n({type:Boolean})],r.prototype,"disabled",void 0);i([n({type:Boolean})],r.prototype,"fullWidth",void 0);i([n({type:Boolean})],r.prototype,"loading",void 0);i([n()],r.prototype,"variant",void 0);i([n()],r.prototype,"textVariant",void 0);r=i([g("wui-button")],r);
153
- //# sourceMappingURL=index-C492aOeh.js.map
153
+ //# sourceMappingURL=index-BU6Tiyue.js.map
@@ -1,4 +1,4 @@
1
- import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-HS20q_81.js";import{c as v,U as $}from"./index-DbclrA2_.js";import"./index-C_Z4-Tsf.js";import{d as b,r as y,e as z}from"./index-DXVk_zOz.js";import"./index-DeBDhSJ4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae5daba4-9390-4d3b-bcc9-226b67738806",e._sentryDebugIdIdentifier="sentry-dbid-ae5daba4-9390-4d3b-bcc9-226b67738806")}catch{}})();const S=f`<svg width="86" height="96" fill="none">
1
+ import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-HS20q_81.js";import{c as v,U as $}from"./index-CdLAfk4q.js";import"./index-BCh0GUEt.js";import{d as b,r as y,e as z}from"./index-BMNKoN1X.js";import"./index-D_XOaK9C.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae5daba4-9390-4d3b-bcc9-226b67738806",e._sentryDebugIdIdentifier="sentry-dbid-ae5daba4-9390-4d3b-bcc9-226b67738806")}catch{}})();const S=f`<svg width="86" height="96" fill="none">
2
2
  <path
3
3
  d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
4
4
  />
@@ -222,4 +222,4 @@ import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
222
222
  ${$.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?16:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"})}
223
223
  </wui-text>
224
224
  `}rightImageTemplate(){return l`<wui-icon name="chevronBottom" size="sm" color="default"></wui-icon>`}};c.styles=[y,z,j];h([o()],c.prototype,"address",void 0);h([o()],c.prototype,"profileName",void 0);h([o()],c.prototype,"alt",void 0);h([o()],c.prototype,"imageSrc",void 0);h([o()],c.prototype,"icon",void 0);h([o()],c.prototype,"iconSize",void 0);h([o({type:Boolean})],c.prototype,"enableGreenCircle",void 0);h([o({type:Boolean})],c.prototype,"loading",void 0);h([o({type:Number})],c.prototype,"charsStart",void 0);h([o({type:Number})],c.prototype,"charsEnd",void 0);c=h([v("wui-wallet-switch")],c);export{k as n};
225
- //# sourceMappingURL=index-Cb6o5QcG.js.map
225
+ //# sourceMappingURL=index-BUR5Lw5K.js.map
@@ -1,4 +1,4 @@
1
- import{i as g,b as e}from"./lit-element-wjYUA6aF.js";import{r as f,n as w,o as v}from"./class-map-HS20q_81.js";import{d as y,r as k,e as P}from"./index-DXVk_zOz.js";import{c as b}from"./index-DbclrA2_.js";import"./index-DP9zIdRT.js";import{H as x}from"./HelpersUtil-x0q9yjB9.js";import{R as u,E as I}from"./W3MFrameProviderSingleton-CcisOnMz.js";import"./index-DeBDhSJ4.js";import"./index-Cb6o5QcG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="ca49efae-4629-4bf2-88b5-1a51e025e6df",t._sentryDebugIdIdentifier="sentry-dbid-ca49efae-4629-4bf2-88b5-1a51e025e6df")}catch{}})();const A=y`
1
+ import{i as g,b as e}from"./lit-element-wjYUA6aF.js";import{r as f,n as w,o as v}from"./class-map-HS20q_81.js";import{d as y,r as k,e as P}from"./index-BMNKoN1X.js";import{c as b}from"./index-CdLAfk4q.js";import"./index-CpWOfn2m.js";import{H as x}from"./HelpersUtil-CVPw5G-7.js";import{R as u,E as I}from"./W3MFrameProviderSingleton-C8G1VIpP.js";import"./index-D_XOaK9C.js";import"./index-BUR5Lw5K.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="ca49efae-4629-4bf2-88b5-1a51e025e6df",t._sentryDebugIdIdentifier="sentry-dbid-ca49efae-4629-4bf2-88b5-1a51e025e6df")}catch{}})();const A=y`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -208,4 +208,4 @@ import{i as g,b as e}from"./lit-element-wjYUA6aF.js";import{r as f,n as w,o as v
208
208
  imageSrc=${this.imageSrc}
209
209
  name=${this.name}
210
210
  ></wui-wallet-image>`:!this.showAllWallets&&!this.imageSrc?e`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`:null}templateStatus(){return this.loading?e`<wui-loading-spinner size="lg" color="accent-primary"></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?e`<wui-tag size="sm" variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:null}};l.styles=[k,P,E];m([w({type:Array})],l.prototype,"walletImages",void 0);m([w()],l.prototype,"imageSrc",void 0);m([w()],l.prototype,"name",void 0);m([w()],l.prototype,"size",void 0);m([w()],l.prototype,"tagLabel",void 0);m([w()],l.prototype,"tagVariant",void 0);m([w()],l.prototype,"walletIcon",void 0);m([w()],l.prototype,"tabIdx",void 0);m([w({type:Array})],l.prototype,"namespaces",void 0);m([w({type:Boolean})],l.prototype,"disabled",void 0);m([w({type:Boolean})],l.prototype,"showAllWallets",void 0);m([w({type:Boolean})],l.prototype,"loading",void 0);m([w({type:String})],l.prototype,"loadingSpinnerColor",void 0);l=m([b("wui-list-wallet")],l);export{d as W,p as a};
211
- //# sourceMappingURL=index-Bv3zJuLU.js.map
211
+ //# sourceMappingURL=index-BVaG-gCl.js.map
@@ -1,2 +1,2 @@
1
- import{g as oe}from"./sentry-C8wiaTF5.js";import{K as Wr,$ as qr,B as Kr,q as Vr,J as Ye,m as Xr}from"./index-BcY3W_FA.js";import{g as lt,R as dt,T as vt,k as ht,E as yt,a as pt,V as mt,s as bt,I as gt,A as _t,x as wt,N as It,f as Et,d as St,v as Ot,_ as jt,b as Nt,h as At,O as Bt,y as kt,c as Dt,e as xt,W as Rt,p as Ct,U as Lt,L as Mt,u as Tt,i as zt}from"./index-BcY3W_FA.js";import"./react-B9n8JCiV.js";(function(){try{var m=typeof window<"u"?window:typeof oe<"u"?oe:typeof self<"u"?self:{},E=new m.Error().stack;E&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[E]="b6930d16-db8f-4d8b-9c7f-7820a921fe70",m._sentryDebugIdIdentifier="sentry-dbid-b6930d16-db8f-4d8b-9c7f-7820a921fe70")}catch{}})();var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(m=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(m,{get:(E,b)=>(typeof require<"u"?require:E)[b]}):m)(function(m){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+m+'" is not supported')}),Ze=(m,E)=>()=>(E||m((E={exports:{}}).exports,E),E.exports),Gr=(m,E,b,D)=>{if(E&&typeof E=="object"||typeof E=="function")for(let q of Qr(E))!Hr.call(m,q)&&q!==b&&Qe(m,q,{get:()=>E[q],enumerable:!(D=Jr(E,q))||D.enumerable});return m},He=(m,E,b)=>(b=m!=null?Yr(Zr(m)):{},Gr(!m||!m.__esModule?Qe(b,"default",{value:m,enumerable:!0}):b,m)),me=(m,E,b)=>new Promise((D,q)=>{var C=x=>{try{j(b.next(x))}catch(L){q(L)}},P=x=>{try{j(b.throw(x))}catch(L){q(L)}},j=x=>x.done?D(x.value):Promise.resolve(x.value).then(C,P);j((b=b.apply(m,E)).next())}),$r=Ze((m,E)=>{(function(b){if(typeof m=="object"&&typeof E<"u")E.exports=b();else if(typeof define=="function"&&define.amd)define([],b);else{var D;typeof window<"u"?D=window:typeof oe<"u"?D=oe:typeof self<"u"?D=self:D=this,D.localforage=b()}})(function(){return(function b(D,q,C){function P(L,Y){if(!q[L]){if(!D[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};D[L][0].call(z.exports,function(F){var Z=D[L][1][F];return P(Z||F)},z,z.exports,b,D,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,x=0;x<C.length;x++)P(C[x]);return P})({1:[function(b,D,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var x=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=x=++x%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}D.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof oe<"u"?oe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(b,D,q){var C=b(1);function P(){}var j={},x=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];D.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===x)return this;var S=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(S,B,this.outcome)}else this.queue.push(new w(S,v,N));return S};function w(v,N,S){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,S){C(function(){var B;try{B=N(S)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var S=A(F,N);if(S.status==="error")return j.reject(v,S.value);var B=S.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=x,v.outcome=N;for(var S=-1,B=v.queue.length;++S<B;)v.queue[S].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var S=!1;function B(Q){S||(S=!0,j.reject(v,Q))}function K(Q){S||(S=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var S={};try{S.value=v(N),S.status="success"}catch(B){S.status="error",S.value=B}return S}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=ie;function ie(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,B=!1;if(!S)return this.resolve([]);for(var K=new Array(S),X=0,J=-1,Q=new this(P);++J<S;)$(v[J],J);return Q;function $(ae,ce){N.resolve(ae).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ce]=re,++X===S&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,B=!1;if(!S)return this.resolve([]);for(var K=-1,X=new this(P);++K<S;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(b,D,q){(function(C){typeof C.Promise!="function"&&(C.Promise=b(2))}).call(this,typeof oe<"u"?oe:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(b,D,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var x=j();function L(){try{if(!x||!x.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&b(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},ie=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function S(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):S(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||_(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=x.open.apply(x,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ae(e){return Q(e,!0)}function ce(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ce(e)?ae(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ae(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function _(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=_(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ce(t,r._defaultConfig.version)?ae(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var g=0;g<l.length;g++){var O=l[g];O!==r&&(O._dbInfo.db=t.db,O._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var g=l.result;if(g){var O=g.value;a(O)&&(O=re(O));var R=e(O,g.key,s++);R!==void 0?n(R):g.continue()}else n()},l.onerror=function(){i(l.error)}}catch(g){i(g)}})}).catch(i)});return w(o,r),o}function fe(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,ie.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var g=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var O=g.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=O.error?O.error:O.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ue(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var g=s.result;if(!g){n(null);return}e===0||l?n(g.key):(l=!0,g.advance(e))},s.onerror=function(){i(s.error)}}catch(g){i(g)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var g=0;g<s.length;g++){var O=s[g];O._dbInfo.db=null,O._dbInfo.version=d}var R=new y(function(k,W){var T=x.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var g=l[s];g._dbInfo.db=null}var O=new y(function(R,k){var W=x.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return O.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:fe,removeItem:ue,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",De="uic8",xe="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=De:t==="[object Int16Array]"?n+=xe:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case De:return new Uint8ClampedArray(i);case xe:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,g=s.length,O=0;O<g;O++){var R=s.item(O),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,O+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,g){g?c(g):l.db.transaction(function(O){ne(O,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(O){if(O.code===O.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(O)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],g=0,O=i.storeNames.length;g<O;g++)s.push(l(i.storeNames[g]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var g=localStorage.getItem(s);if(g&&(g=n.serializer.deserialize(g)),g=e(g,s.substring(u),d++),g!==void 0)return g}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(g){(g.name==="QuotaExceededError"||g.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(g),c(g)}})})});return w(n,t),n}function Dr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var xr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:Dr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},se={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:xr},Lr=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=(function(){function e(r){P(this,e);for(var t in se)if(se.hasOwnProperty(t)){var o=se[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,g=l.length;s<g;s++){var O=l[s],R=!Cr(ye,O);if((R||r[O])&&typeof r[O]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var g=0;function O(){for(;g<s.length;){var R=s[g];return g++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(O)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return O()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(g){n._driver=g._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e})(),Fr=new zr;D.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((m,E)=>{(function(b,D){typeof m=="object"&&typeof E<"u"?D(m):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],D):D(b.LocalforageDriverMemory={})})(typeof self<"u"?self:m,function(b){var D="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,_=0;_<a.length;_+=1)p.append(a[_]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,x=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),_=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);_[M++]=V<<2|fe>>4,_[M++]=(fe&15)<<4|ue>>2,_[M++]=(ue&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,_="__lfsc__:";a instanceof ArrayBuffer?(p=a,_+="arbf"):(p=a.buffer,h==="[object Int8Array]"?_+="si08":h==="[object Uint8Array]"?_+="ui08":h==="[object Uint8ClampedArray]"?_+="uic8":h==="[object Int16Array]"?_+="si16":h==="[object Uint16Array]"?_+="ur16":h==="[object Int32Array]"?_+="si32":h==="[object Uint32Array]"?_+="ui32":h==="[object Float32Array]"?_+="fl32":h==="[object Float64Array]"?_+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(_+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(x),h=a.substring(j,x),p;if(h==="blob"&&P.test(f)){var _=f.match(P);p=_[1],f=f.substring(_[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var _=q(Object.keys(a)),I=_.next();!I.done;I=_.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=_.return)&&h.call(_)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var _;return a.name?_=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):_=Promise.reject("Invalid arguments"),{promise:_,callback:f}}function ie(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=(function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a})();function S(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,_=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,_),p}function X(a,f){var h=this;a=ie(a);var p=this.ready().then(function(){var _=h._dbInfo.mStore.get(a);return _==null?null:h._dbInfo.serializer.deserialize(_)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var _=h._dbInfo.mStore,I=_.keys(),M=0;M<I.length;M++){var V=_.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var _;try{_=h._dbInfo.mStore.key(a),_===void 0&&(_=null)}catch{_=null}return _});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ae(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ce(a,f){var h=this;a=ie(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=ie(a);var _=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(fe,ue){if(ue)V(ue);else try{p._dbInfo.mStore.set(a,fe),M(I)}catch(de){V(de)}})})});return A(_,h),_}var re=!0;b._support=re,b._driver=D,b._initStorage=S,b.clear=B,b.dropInstance=K,b.getItem=X,b.iterate=J,b.key=Q,b.keys=$,b.length=ae,b.removeItem=ce,b.setItem=le,Object.defineProperty(b,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(m){for(let[E,b]of Object.entries(rt))m.style[E]=b}function nt(m){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(b=>b.src.includes(m))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(m=>{let E=()=>{if(nt(encodeURIComponent(this.parameters)))Vr().log();else{let b=document.createElement("iframe");b.classList.add("magic-iframe"),b.dataset.magicIframeLabel=Ye(this.endpoint).host,b.title="Secure Modal",b.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(b),document.body.appendChild(b),m(b)}};["loaded","interactive","complete"].includes(document.readyState)?E():window.addEventListener("load",E,!1)}),window.addEventListener("message",m=>{var E;if(m.origin===this.endpoint&&m.data&&m.data.msgType&&this.messageHandlers.size){m.data.response=(E=m.data.response)!=null?E:{};for(let b of this.messageHandlers.values())b(m)}})}showOverlay(){return me(this,null,function*(){let m=yield this.iframe;m.style.display="block",this.activeElement=document.activeElement,m.focus()})}hideOverlay(){return me(this,null,function*(){var m;let E=yield this.iframe;E.style.display="none",(m=this.activeElement)!=null&&m.focus&&this.activeElement.focus(),this.activeElement=null})}_post(m){return me(this,null,function*(){let E=yield this.iframe;if(E&&E.contentWindow)E.contentWindow.postMessage(m,this.endpoint);else throw Xr()})}},ct=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let m=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield m.defineDriver(Je),yield m.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),m})});export{lt as DeepLinkPage,dt as DeviceVerificationEventEmit,vt as DeviceVerificationEventOnReceived,ht as EthChainType,yt as Events,pt as Extension,mt as ExtensionError,bt as ExtensionWarning,gt as LoginWithEmailOTPEventEmit,_t as LoginWithEmailOTPEventOnReceived,wt as LoginWithMagicLinkEventEmit,It as LoginWithMagicLinkEventOnReceived,ct as Magic,Et as MagicIncomingWindowMessage,St as MagicOutgoingWindowMessage,Ot as MagicPayloadMethod,jt as RPCError,Nt as RPCErrorCode,At as RecencyCheckEventEmit,Bt as RecencyCheckEventOnReceived,kt as RecoveryMethodType,Dt as SDKError,xt as SDKErrorCode,Rt as SDKWarning,Ct as SDKWarningCode,Lt as UpdateEmailEventEmit,Mt as UpdateEmailEventOnReceived,Tt as Wallets,zt as isPromiEvent};
2
- //# sourceMappingURL=index-BYrTj_EQ.js.map
1
+ import{g as oe}from"./sentry-CVZH1wJB.js";import{K as Wr,$ as qr,B as Kr,q as Vr,J as Ye,m as Xr}from"./index-g37PxJX_.js";import{g as lt,R as dt,T as vt,k as ht,E as yt,a as pt,V as mt,s as bt,I as gt,A as _t,x as wt,N as It,f as Et,d as St,v as Ot,_ as jt,b as Nt,h as At,O as Bt,y as kt,c as Dt,e as xt,W as Rt,p as Ct,U as Lt,L as Mt,u as Tt,i as zt}from"./index-g37PxJX_.js";import"./react-C5703MPC.js";(function(){try{var m=typeof window<"u"?window:typeof oe<"u"?oe:typeof self<"u"?self:{},E=new m.Error().stack;E&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[E]="b6930d16-db8f-4d8b-9c7f-7820a921fe70",m._sentryDebugIdIdentifier="sentry-dbid-b6930d16-db8f-4d8b-9c7f-7820a921fe70")}catch{}})();var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(m=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(m,{get:(E,b)=>(typeof require<"u"?require:E)[b]}):m)(function(m){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+m+'" is not supported')}),Ze=(m,E)=>()=>(E||m((E={exports:{}}).exports,E),E.exports),Gr=(m,E,b,D)=>{if(E&&typeof E=="object"||typeof E=="function")for(let q of Qr(E))!Hr.call(m,q)&&q!==b&&Qe(m,q,{get:()=>E[q],enumerable:!(D=Jr(E,q))||D.enumerable});return m},He=(m,E,b)=>(b=m!=null?Yr(Zr(m)):{},Gr(!m||!m.__esModule?Qe(b,"default",{value:m,enumerable:!0}):b,m)),me=(m,E,b)=>new Promise((D,q)=>{var C=x=>{try{j(b.next(x))}catch(L){q(L)}},P=x=>{try{j(b.throw(x))}catch(L){q(L)}},j=x=>x.done?D(x.value):Promise.resolve(x.value).then(C,P);j((b=b.apply(m,E)).next())}),$r=Ze((m,E)=>{(function(b){if(typeof m=="object"&&typeof E<"u")E.exports=b();else if(typeof define=="function"&&define.amd)define([],b);else{var D;typeof window<"u"?D=window:typeof oe<"u"?D=oe:typeof self<"u"?D=self:D=this,D.localforage=b()}})(function(){return(function b(D,q,C){function P(L,Y){if(!q[L]){if(!D[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};D[L][0].call(z.exports,function(F){var Z=D[L][1][F];return P(Z||F)},z,z.exports,b,D,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,x=0;x<C.length;x++)P(C[x]);return P})({1:[function(b,D,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var x=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=x=++x%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}D.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof oe<"u"?oe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(b,D,q){var C=b(1);function P(){}var j={},x=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];D.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===x)return this;var S=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(S,B,this.outcome)}else this.queue.push(new w(S,v,N));return S};function w(v,N,S){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,S){C(function(){var B;try{B=N(S)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var S=A(F,N);if(S.status==="error")return j.reject(v,S.value);var B=S.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=x,v.outcome=N;for(var S=-1,B=v.queue.length;++S<B;)v.queue[S].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var S=!1;function B(Q){S||(S=!0,j.reject(v,Q))}function K(Q){S||(S=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var S={};try{S.value=v(N),S.status="success"}catch(B){S.status="error",S.value=B}return S}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=ie;function ie(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,B=!1;if(!S)return this.resolve([]);for(var K=new Array(S),X=0,J=-1,Q=new this(P);++J<S;)$(v[J],J);return Q;function $(ae,ce){N.resolve(ae).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ce]=re,++X===S&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,B=!1;if(!S)return this.resolve([]);for(var K=-1,X=new this(P);++K<S;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(b,D,q){(function(C){typeof C.Promise!="function"&&(C.Promise=b(2))}).call(this,typeof oe<"u"?oe:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(b,D,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var x=j();function L(){try{if(!x||!x.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&b(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},ie=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function S(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):S(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||_(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=x.open.apply(x,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ae(e){return Q(e,!0)}function ce(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ce(e)?ae(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ae(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function _(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=_(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ce(t,r._defaultConfig.version)?ae(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var g=0;g<l.length;g++){var O=l[g];O!==r&&(O._dbInfo.db=t.db,O._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var g=l.result;if(g){var O=g.value;a(O)&&(O=re(O));var R=e(O,g.key,s++);R!==void 0?n(R):g.continue()}else n()},l.onerror=function(){i(l.error)}}catch(g){i(g)}})}).catch(i)});return w(o,r),o}function fe(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,ie.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var g=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var O=g.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=O.error?O.error:O.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ue(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var g=s.result;if(!g){n(null);return}e===0||l?n(g.key):(l=!0,g.advance(e))},s.onerror=function(){i(s.error)}}catch(g){i(g)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var g=0;g<s.length;g++){var O=s[g];O._dbInfo.db=null,O._dbInfo.version=d}var R=new y(function(k,W){var T=x.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var g=l[s];g._dbInfo.db=null}var O=new y(function(R,k){var W=x.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return O.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:fe,removeItem:ue,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",De="uic8",xe="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=De:t==="[object Int16Array]"?n+=xe:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case De:return new Uint8ClampedArray(i);case xe:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,g=s.length,O=0;O<g;O++){var R=s.item(O),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,O+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,g){g?c(g):l.db.transaction(function(O){ne(O,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(O){if(O.code===O.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(O)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],g=0,O=i.storeNames.length;g<O;g++)s.push(l(i.storeNames[g]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var g=localStorage.getItem(s);if(g&&(g=n.serializer.deserialize(g)),g=e(g,s.substring(u),d++),g!==void 0)return g}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(g){(g.name==="QuotaExceededError"||g.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(g),c(g)}})})});return w(n,t),n}function Dr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var xr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:Dr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},se={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:xr},Lr=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=(function(){function e(r){P(this,e);for(var t in se)if(se.hasOwnProperty(t)){var o=se[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,g=l.length;s<g;s++){var O=l[s],R=!Cr(ye,O);if((R||r[O])&&typeof r[O]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var g=0;function O(){for(;g<s.length;){var R=s[g];return g++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(O)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return O()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(g){n._driver=g._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e})(),Fr=new zr;D.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((m,E)=>{(function(b,D){typeof m=="object"&&typeof E<"u"?D(m):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],D):D(b.LocalforageDriverMemory={})})(typeof self<"u"?self:m,function(b){var D="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,_=0;_<a.length;_+=1)p.append(a[_]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,x=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),_=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);_[M++]=V<<2|fe>>4,_[M++]=(fe&15)<<4|ue>>2,_[M++]=(ue&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,_="__lfsc__:";a instanceof ArrayBuffer?(p=a,_+="arbf"):(p=a.buffer,h==="[object Int8Array]"?_+="si08":h==="[object Uint8Array]"?_+="ui08":h==="[object Uint8ClampedArray]"?_+="uic8":h==="[object Int16Array]"?_+="si16":h==="[object Uint16Array]"?_+="ur16":h==="[object Int32Array]"?_+="si32":h==="[object Uint32Array]"?_+="ui32":h==="[object Float32Array]"?_+="fl32":h==="[object Float64Array]"?_+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(_+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(x),h=a.substring(j,x),p;if(h==="blob"&&P.test(f)){var _=f.match(P);p=_[1],f=f.substring(_[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var _=q(Object.keys(a)),I=_.next();!I.done;I=_.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=_.return)&&h.call(_)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var _;return a.name?_=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):_=Promise.reject("Invalid arguments"),{promise:_,callback:f}}function ie(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=(function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a})();function S(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,_=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,_),p}function X(a,f){var h=this;a=ie(a);var p=this.ready().then(function(){var _=h._dbInfo.mStore.get(a);return _==null?null:h._dbInfo.serializer.deserialize(_)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var _=h._dbInfo.mStore,I=_.keys(),M=0;M<I.length;M++){var V=_.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var _;try{_=h._dbInfo.mStore.key(a),_===void 0&&(_=null)}catch{_=null}return _});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ae(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ce(a,f){var h=this;a=ie(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=ie(a);var _=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(fe,ue){if(ue)V(ue);else try{p._dbInfo.mStore.set(a,fe),M(I)}catch(de){V(de)}})})});return A(_,h),_}var re=!0;b._support=re,b._driver=D,b._initStorage=S,b.clear=B,b.dropInstance=K,b.getItem=X,b.iterate=J,b.key=Q,b.keys=$,b.length=ae,b.removeItem=ce,b.setItem=le,Object.defineProperty(b,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(m){for(let[E,b]of Object.entries(rt))m.style[E]=b}function nt(m){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(b=>b.src.includes(m))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(m=>{let E=()=>{if(nt(encodeURIComponent(this.parameters)))Vr().log();else{let b=document.createElement("iframe");b.classList.add("magic-iframe"),b.dataset.magicIframeLabel=Ye(this.endpoint).host,b.title="Secure Modal",b.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(b),document.body.appendChild(b),m(b)}};["loaded","interactive","complete"].includes(document.readyState)?E():window.addEventListener("load",E,!1)}),window.addEventListener("message",m=>{var E;if(m.origin===this.endpoint&&m.data&&m.data.msgType&&this.messageHandlers.size){m.data.response=(E=m.data.response)!=null?E:{};for(let b of this.messageHandlers.values())b(m)}})}showOverlay(){return me(this,null,function*(){let m=yield this.iframe;m.style.display="block",this.activeElement=document.activeElement,m.focus()})}hideOverlay(){return me(this,null,function*(){var m;let E=yield this.iframe;E.style.display="none",(m=this.activeElement)!=null&&m.focus&&this.activeElement.focus(),this.activeElement=null})}_post(m){return me(this,null,function*(){let E=yield this.iframe;if(E&&E.contentWindow)E.contentWindow.postMessage(m,this.endpoint);else throw Xr()})}},ct=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let m=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield m.defineDriver(Je),yield m.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),m})});export{lt as DeepLinkPage,dt as DeviceVerificationEventEmit,vt as DeviceVerificationEventOnReceived,ht as EthChainType,yt as Events,pt as Extension,mt as ExtensionError,bt as ExtensionWarning,gt as LoginWithEmailOTPEventEmit,_t as LoginWithEmailOTPEventOnReceived,wt as LoginWithMagicLinkEventEmit,It as LoginWithMagicLinkEventOnReceived,ct as Magic,Et as MagicIncomingWindowMessage,St as MagicOutgoingWindowMessage,Ot as MagicPayloadMethod,jt as RPCError,Nt as RPCErrorCode,At as RecencyCheckEventEmit,Bt as RecencyCheckEventOnReceived,kt as RecoveryMethodType,Dt as SDKError,xt as SDKErrorCode,Rt as SDKWarning,Ct as SDKWarningCode,Lt as UpdateEmailEventEmit,Mt as UpdateEmailEventOnReceived,Tt as Wallets,zt as isPromiEvent};
2
+ //# sourceMappingURL=index-BZzN_etT.js.map
@@ -1,4 +1,4 @@
1
- import{e as ot}from"./index-Bbzv3wH5.js";import{f as nn}from"./react-B9n8JCiV.js";import{p as Se,g as ue}from"./sentry-C8wiaTF5.js";import{c as on}from"./index-EQSB0K_p.js";(function(){try{var e=typeof window<"u"?window:typeof ue<"u"?ue:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7ec84b44-afbd-4780-97b3-af8992a1fa59",e._sentryDebugIdIdentifier="sentry-dbid-7ec84b44-afbd-4780-97b3-af8992a1fa59")}catch{}})();var Pe={};/*! *****************************************************************************
1
+ import{e as ot}from"./index-Bt_8JDRO.js";import{f as nn}from"./react-C5703MPC.js";import{p as Se,g as ue}from"./sentry-CVZH1wJB.js";import{c as on}from"./index-BoHkcwcC.js";(function(){try{var e=typeof window<"u"?window:typeof ue<"u"?ue:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7ec84b44-afbd-4780-97b3-af8992a1fa59",e._sentryDebugIdIdentifier="sentry-dbid-7ec84b44-afbd-4780-97b3-af8992a1fa59")}catch{}})();var Pe={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -12,4 +12,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */var Je=function(e,t){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},Je(e,t)};function sn(e,t){Je(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ze=function(){return Ze=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ze.apply(this,arguments)};function un(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function an(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function cn(e,t){return function(r,n){t(r,n,e)}}function fn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ln(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(a){try{f(n.next(a))}catch(d){s(d)}}function u(a){try{f(n.throw(a))}catch(d){s(d)}}function f(a){a.done?i(a.value):o(a.value).then(c,u)}f((n=n.apply(e,t||[])).next())})}function hn(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(a){return u([f,a])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(a){f=[6,a],o=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function dn(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Dn(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Xe(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ur(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function bn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ur(arguments[t]));return e}function pn(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,c=i.length;s<c;s++,o++)n[o]=i[s];return n}function Ee(e){return this instanceof Ee?(this.v=e,this):new Ee(e)}function gn(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(D){n[D]&&(o[D]=function(b){return new Promise(function(l,p){i.push([D,b,l,p])>1||c(D,b)})})}function c(D,b){try{u(n[D](b))}catch(l){d(i[0][3],l)}}function u(D){D.value instanceof Ee?Promise.resolve(D.value.v).then(f,a):d(i[0][2],D)}function f(D){c("next",D)}function a(D){c("throw",D)}function d(D,b){D(b),i.shift(),i.length&&c(i[0][0],i[0][1])}}function wn(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Ee(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function En(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Xe=="function"?Xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(c,u){s=e[i](s),o(c,u,s.done,s.value)})}}function o(i,s,c,u){Promise.resolve(u).then(function(f){i({value:f,done:c})},s)}}function yn(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Fn(e){return e&&e.__esModule?e:{default:e}}function _n(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function vn(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}const An=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Ze},__asyncDelegator:wn,__asyncGenerator:gn,__asyncValues:En,__await:Ee,__awaiter:ln,__classPrivateFieldGet:_n,__classPrivateFieldSet:vn,__createBinding:dn,__decorate:an,__exportStar:Dn,__extends:sn,__generator:hn,__importDefault:Fn,__importStar:mn,__makeTemplateObject:yn,__metadata:fn,__param:cn,__read:ur,__rest:un,__spread:bn,__spreadArrays:pn,__values:Xe},Symbol.toStringTag,{value:"Module"})),Be=nn(An);var je={},De={},_t;function Sn(){if(_t)return De;_t=1,Object.defineProperty(De,"__esModule",{value:!0}),De.delay=void 0;function e(t){return new Promise(r=>{setTimeout(()=>{r(!0)},t)})}return De.delay=e,De}var oe={},Le={},ie={},vt;function Cn(){return vt||(vt=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.ONE_THOUSAND=ie.ONE_HUNDRED=void 0,ie.ONE_HUNDRED=100,ie.ONE_THOUSAND=1e3),ie}var We={},At;function On(){return At||(At=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365})(We)),We}var St;function ar(){return St||(St=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Cn(),e),t.__exportStar(On(),e)})(Le)),Le}var Ct;function xn(){if(Ct)return oe;Ct=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.fromMiliseconds=oe.toMiliseconds=void 0;const e=ar();function t(n){return n*e.ONE_THOUSAND}oe.toMiliseconds=t;function r(n){return Math.floor(n/e.ONE_THOUSAND)}return oe.fromMiliseconds=r,oe}var Ot;function Bn(){return Ot||(Ot=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Sn(),e),t.__exportStar(xn(),e)})(je)),je}var fe={},xt;function Rn(){if(xt)return fe;xt=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.Watch=void 0;class e{constructor(){this.timestamps=new Map}start(r){if(this.timestamps.has(r))throw new Error(`Watch already started for label: ${r}`);this.timestamps.set(r,{started:Date.now()})}stop(r){const n=this.get(r);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${r}`);const o=Date.now()-n.started;this.timestamps.set(r,{started:n.started,elapsed:o})}get(r){const n=this.timestamps.get(r);if(typeof n>"u")throw new Error(`No timestamp found for label: ${r}`);return n}elapsed(r){const n=this.get(r);return n.elapsed||Date.now()-n.started}}return fe.Watch=e,fe.default=e,fe}var ke={},be={},Bt;function Nn(){if(Bt)return be;Bt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.IWatch=void 0;class e{}return be.IWatch=e,be}var Rt;function Tn(){return Rt||(Rt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Be.__exportStar(Nn(),e)})(ke)),ke}var Nt;function Un(){return Nt||(Nt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Bn(),e),t.__exportStar(Rn(),e),t.__exportStar(Tn(),e),t.__exportStar(ar(),e)})(Pe)),Pe}var it=Un();class In{}let Mn=class extends In{constructor(t){super()}};const Tt=it.FIVE_SECONDS,Pn={pulse:"heartbeat_pulse"};class cr extends Mn{constructor(t){super(t),this.events=new ot.EventEmitter,this.interval=Tt,this.interval=(t==null?void 0:t.interval)||Tt}static async init(t){const r=new cr(t);return await r.init(),r}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),it.toMiliseconds(this.interval))}pulse(){this.events.emit(Pn.pulse)}}const jn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ln=/"(?: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)"\s*:/,Wn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function kn(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){zn(e);return}return t}function zn(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function _a(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Wn.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jn.test(e)||Ln.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,kn)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const Hn=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),$n=e=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=e.replace(t,'$1"$2n"$3');return JSON.parse(r,(n,o)=>typeof o=="string"&&o.match(/^\d+n$/)?BigInt(o.substring(0,o.length-1)):o)};function fr(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return $n(e)}catch{return e}}function lr(e){return typeof e=="string"?e:Hn(e)||""}function qn(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function hr(e,...t){if(!qn(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Ut(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Vn(e,t){hr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const le=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ze=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Yn(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function dr(e){return typeof e=="string"&&(e=Yn(e)),hr(e),e}class Kn{clone(){return this._cloneInto()}}function Gn(e){const t=n=>e().update(dr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dr(e=32){if(le&&typeof le.getRandomValues=="function")return le.getRandomValues(new Uint8Array(e));if(le&&typeof le.randomBytes=="function")return le.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Jn(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),c=Number(r&i),u=n?4:0,f=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+f,c,n)}class Zn extends Kn{constructor(t,r,n,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ze(this.buffer)}update(t){Ut(this);const{view:r,buffer:n,blockLen:o}=this;t=dr(t);const i=t.length;for(let s=0;s<i;){const c=Math.min(o-this.pos,i-s);if(c===o){const u=ze(t);for(;o<=i-s;s+=o)this.process(u,s);continue}n.set(t.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ut(this),Vn(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(n,0),s=0);for(let d=s;d<o;d++)r[d]=0;Jn(n,o-8,BigInt(this.length*8),i),this.process(n,0);const c=ze(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=u/4,a=this.get();if(f>a.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<f;d++)c.setUint32(4*d,a[d],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:s,pos:c}=this;return t.length=o,t.pos=c,t.finished=i,t.destroyed=s,o%r&&t.buffer.set(n),t}}const _e=BigInt(2**32-1),Qe=BigInt(32);function br(e,t=!1){return t?{h:Number(e&_e),l:Number(e>>Qe&_e)}:{h:Number(e>>Qe&_e)|0,l:Number(e&_e)|0}}function Xn(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:i,l:s}=br(e[o],t);[r[o],n[o]]=[i,s]}return[r,n]}const Qn=(e,t)=>BigInt(e>>>0)<<Qe|BigInt(t>>>0),eo=(e,t,r)=>e>>>r,to=(e,t,r)=>e<<32-r|t>>>r,ro=(e,t,r)=>e>>>r|t<<32-r,no=(e,t,r)=>e<<32-r|t>>>r,oo=(e,t,r)=>e<<64-r|t>>>r-32,io=(e,t,r)=>e>>>r-32|t<<64-r,so=(e,t)=>t,uo=(e,t)=>e,ao=(e,t,r)=>e<<r|t>>>32-r,co=(e,t,r)=>t<<r|e>>>32-r,fo=(e,t,r)=>t<<r-32|e>>>64-r,lo=(e,t,r)=>e<<r-32|t>>>64-r;function ho(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Do=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),bo=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,po=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),go=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,wo=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Eo=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,A={fromBig:br,split:Xn,toBig:Qn,shrSH:eo,shrSL:to,rotrSH:ro,rotrSL:no,rotrBH:oo,rotrBL:io,rotr32H:so,rotr32L:uo,rotlSH:ao,rotlSL:co,rotlBH:fo,rotlBL:lo,add:ho,add3L:Do,add3H:bo,add4L:po,add4H:go,add5H:Eo,add5L:wo},[yo,mo]=A.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),ee=new Uint32Array(80),te=new Uint32Array(80);class Fo extends Zn{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:s,Dh:c,Dl:u,Eh:f,El:a,Fh:d,Fl:D,Gh:b,Gl:l,Hh:p,Hl:m}=this;return[t,r,n,o,i,s,c,u,f,a,d,D,b,l,p,m]}set(t,r,n,o,i,s,c,u,f,a,d,D,b,l,p,m){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=s|0,this.Dh=c|0,this.Dl=u|0,this.Eh=f|0,this.El=a|0,this.Fh=d|0,this.Fl=D|0,this.Gh=b|0,this.Gl=l|0,this.Hh=p|0,this.Hl=m|0}process(t,r){for(let h=0;h<16;h++,r+=4)ee[h]=t.getUint32(r),te[h]=t.getUint32(r+=4);for(let h=16;h<80;h++){const E=ee[h-15]|0,S=te[h-15]|0,T=A.rotrSH(E,S,1)^A.rotrSH(E,S,8)^A.shrSH(E,S,7),B=A.rotrSL(E,S,1)^A.rotrSL(E,S,8)^A.shrSL(E,S,7),C=ee[h-2]|0,I=te[h-2]|0,ae=A.rotrSH(C,I,19)^A.rotrBH(C,I,61)^A.shrSH(C,I,6),re=A.rotrSL(C,I,19)^A.rotrBL(C,I,61)^A.shrSL(C,I,6),ce=A.add4L(B,re,te[h-7],te[h-16]),de=A.add4H(ce,T,ae,ee[h-7],ee[h-16]);ee[h]=de|0,te[h]=ce|0}let{Ah:n,Al:o,Bh:i,Bl:s,Ch:c,Cl:u,Dh:f,Dl:a,Eh:d,El:D,Fh:b,Fl:l,Gh:p,Gl:m,Hh:F,Hl:w}=this;for(let h=0;h<80;h++){const E=A.rotrSH(d,D,14)^A.rotrSH(d,D,18)^A.rotrBH(d,D,41),S=A.rotrSL(d,D,14)^A.rotrSL(d,D,18)^A.rotrBL(d,D,41),T=d&b^~d&p,B=D&l^~D&m,C=A.add5L(w,S,B,mo[h],te[h]),I=A.add5H(C,F,E,T,yo[h],ee[h]),ae=C|0,re=A.rotrSH(n,o,28)^A.rotrBH(n,o,34)^A.rotrBH(n,o,39),ce=A.rotrSL(n,o,28)^A.rotrBL(n,o,34)^A.rotrBL(n,o,39),de=n&i^n&c^i&c,Ie=o&s^o&u^s&u;F=p|0,w=m|0,p=b|0,m=l|0,b=d|0,l=D|0,{h:d,l:D}=A.add(f|0,a|0,I|0,ae|0),f=c|0,a=u|0,c=i|0,u=s|0,i=n|0,s=o|0;const _=A.add3L(ae,ce,Ie);n=A.add3H(_,I,re,de),o=_|0}({h:n,l:o}=A.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:s}=A.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:c,l:u}=A.add(this.Ch|0,this.Cl|0,c|0,u|0),{h:f,l:a}=A.add(this.Dh|0,this.Dl|0,f|0,a|0),{h:d,l:D}=A.add(this.Eh|0,this.El|0,d|0,D|0),{h:b,l}=A.add(this.Fh|0,this.Fl|0,b|0,l|0),{h:p,l:m}=A.add(this.Gh|0,this.Gl|0,p|0,m|0),{h:F,l:w}=A.add(this.Hh|0,this.Hl|0,F|0,w|0),this.set(n,o,i,s,c,u,f,a,d,D,b,l,p,m,F,w)}roundClean(){ee.fill(0),te.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const _o=Gn(()=>new Fo);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const st=BigInt(0),pr=BigInt(1),vo=BigInt(2);function ut(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function at(e){if(!ut(e))throw new Error("Uint8Array expected")}function He(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const Ao=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ct(e){at(e);let t="";for(let r=0;r<e.length;r++)t+=Ao[e[r]];return t}function gr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?st:BigInt("0x"+e)}const Z={_0:48,_9:57,A:65,F:70,a:97,f:102};function It(e){if(e>=Z._0&&e<=Z._9)return e-Z._0;if(e>=Z.A&&e<=Z.F)return e-(Z.A-10);if(e>=Z.a&&e<=Z.f)return e-(Z.a-10)}function wr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let o=0,i=0;o<r;o++,i+=2){const s=It(e.charCodeAt(i)),c=It(e.charCodeAt(i+1));if(s===void 0||c===void 0){const u=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+i)}n[o]=s*16+c}return n}function So(e){return gr(ct(e))}function Ce(e){return at(e),gr(ct(Uint8Array.from(e).reverse()))}function Er(e,t){return wr(e.toString(16).padStart(t*2,"0"))}function et(e,t){return Er(e,t).reverse()}function X(e,t,r){let n;if(typeof t=="string")try{n=wr(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(ut(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=n.length;if(typeof r=="number"&&o!==r)throw new Error(e+" of length "+r+" expected, got "+o);return n}function Mt(...e){let t=0;for(let n=0;n<e.length;n++){const o=e[n];at(o),t+=o.length}const r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){const i=e[n];r.set(i,o),o+=i.length}return r}const $e=e=>typeof e=="bigint"&&st<=e;function Co(e,t,r){return $e(e)&&$e(t)&&$e(r)&&t<=e&&e<r}function pe(e,t,r,n){if(!Co(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function Oo(e){let t;for(t=0;e>st;e>>=pr,t+=1);return t}const xo=e=>(vo<<BigInt(e-1))-pr,Bo={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||ut(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ft(e,t,r={}){const n=(o,i,s)=>{const c=Bo[i];if(typeof c!="function")throw new Error("invalid validator function");const u=e[o];if(!(s&&u===void 0)&&!c(u,e))throw new Error("param "+String(o)+" is invalid. Expected "+i+", got "+u)};for(const[o,i]of Object.entries(t))n(o,i,!1);for(const[o,i]of Object.entries(r))n(o,i,!0);return e}function Pt(e){const t=new WeakMap;return(r,...n)=>{const o=t.get(r);if(o!==void 0)return o;const i=e(r,...n);return t.set(r,i),i}}const W=BigInt(0),j=BigInt(1),se=BigInt(2),Ro=BigInt(3),tt=BigInt(4),jt=BigInt(5),Lt=BigInt(8);function L(e,t){const r=e%t;return r>=W?r:t+r}function No(e,t,r){if(t<W)throw new Error("invalid exponent, negatives unsupported");if(r<=W)throw new Error("invalid modulus");if(r===j)return W;let n=j;for(;t>W;)t&j&&(n=n*e%r),e=e*e%r,t>>=j;return n}function K(e,t,r){let n=e;for(;t-- >W;)n*=n,n%=r;return n}function Wt(e,t){if(e===W)throw new Error("invert: expected non-zero number");if(t<=W)throw new Error("invert: expected positive modulus, got "+t);let r=L(e,t),n=t,o=W,i=j;for(;r!==W;){const s=n/r,c=n%r,u=o-i*s;n=r,r=c,o=i,i=u}if(n!==j)throw new Error("invert: does not exist");return L(o,t)}function To(e){const t=(e-j)/se;let r,n,o;for(r=e-j,n=0;r%se===W;r/=se,n++);for(o=se;o<e&&No(o,t,e)!==e-j;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const s=(e+j)/tt;return function(c,u){const f=c.pow(u,s);if(!c.eql(c.sqr(f),u))throw new Error("Cannot find square root");return f}}const i=(r+j)/se;return function(s,c){if(s.pow(c,t)===s.neg(s.ONE))throw new Error("Cannot find square root");let u=n,f=s.pow(s.mul(s.ONE,o),r),a=s.pow(c,i),d=s.pow(c,r);for(;!s.eql(d,s.ONE);){if(s.eql(d,s.ZERO))return s.ZERO;let D=1;for(let l=s.sqr(d);D<u&&!s.eql(l,s.ONE);D++)l=s.sqr(l);const b=s.pow(f,j<<BigInt(u-D-1));f=s.sqr(b),a=s.mul(a,b),d=s.mul(d,f),u=D}return a}}function Uo(e){if(e%tt===Ro){const t=(e+j)/tt;return function(r,n){const o=r.pow(n,t);if(!r.eql(r.sqr(o),n))throw new Error("Cannot find square root");return o}}if(e%Lt===jt){const t=(e-jt)/Lt;return function(r,n){const o=r.mul(n,se),i=r.pow(o,t),s=r.mul(n,i),c=r.mul(r.mul(s,se),i),u=r.mul(s,r.sub(c,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return To(e)}const Io=(e,t)=>(L(e,t)&j)===j,Mo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Po(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Mo.reduce((n,o)=>(n[o]="function",n),t);return ft(e,r)}function jo(e,t,r){if(r<W)throw new Error("invalid exponent, negatives unsupported");if(r===W)return e.ONE;if(r===j)return t;let n=e.ONE,o=t;for(;r>W;)r&j&&(n=e.mul(n,o)),o=e.sqr(o),r>>=j;return n}function Lo(e,t){const r=new Array(t.length),n=t.reduce((i,s,c)=>e.is0(s)?i:(r[c]=i,e.mul(i,s)),e.ONE),o=e.inv(n);return t.reduceRight((i,s,c)=>e.is0(s)?i:(r[c]=e.mul(i,r[c]),e.mul(i,s)),o),r}function yr(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function mr(e,t,r=!1,n={}){if(e<=W)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:o,nByteLength:i}=yr(e,t);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:i,MASK:xo(o),ZERO:W,ONE:j,create:u=>L(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return W<=u&&u<e},is0:u=>u===W,isOdd:u=>(u&j)===j,neg:u=>L(-u,e),eql:(u,f)=>u===f,sqr:u=>L(u*u,e),add:(u,f)=>L(u+f,e),sub:(u,f)=>L(u-f,e),mul:(u,f)=>L(u*f,e),pow:(u,f)=>jo(c,u,f),div:(u,f)=>L(u*Wt(f,e),e),sqrN:u=>u*u,addN:(u,f)=>u+f,subN:(u,f)=>u-f,mulN:(u,f)=>u*f,inv:u=>Wt(u,e),sqrt:n.sqrt||(u=>(s||(s=Uo(e)),s(c,u))),invertBatch:u=>Lo(c,u),cmov:(u,f,a)=>a?f:u,toBytes:u=>r?et(u,i):Er(u,i),fromBytes:u=>{if(u.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+u.length);return r?Ce(u):So(u)}});return Object.freeze(c)}const kt=BigInt(0),ve=BigInt(1);function qe(e,t){const r=t.negate();return e?r:t}function Fr(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ve(e,t){Fr(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Wo(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function ko(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const Ye=new WeakMap,_r=new WeakMap;function Ke(e){return _r.get(e)||1}function zo(e,t){return{constTimeNegate:qe,hasPrecomputes(r){return Ke(r)!==1},unsafeLadder(r,n,o=e.ZERO){let i=r;for(;n>kt;)n&ve&&(o=o.add(i)),i=i.double(),n>>=ve;return o},precomputeWindow(r,n){const{windows:o,windowSize:i}=Ve(n,t),s=[];let c=r,u=c;for(let f=0;f<o;f++){u=c,s.push(u);for(let a=1;a<i;a++)u=u.add(c),s.push(u);c=u.double()}return s},wNAF(r,n,o){const{windows:i,windowSize:s}=Ve(r,t);let c=e.ZERO,u=e.BASE;const f=BigInt(2**r-1),a=2**r,d=BigInt(r);for(let D=0;D<i;D++){const b=D*s;let l=Number(o&f);o>>=d,l>s&&(l-=a,o+=ve);const p=b,m=b+Math.abs(l)-1,F=D%2!==0,w=l<0;l===0?u=u.add(qe(F,n[p])):c=c.add(qe(w,n[m]))}return{p:c,f:u}},wNAFUnsafe(r,n,o,i=e.ZERO){const{windows:s,windowSize:c}=Ve(r,t),u=BigInt(2**r-1),f=2**r,a=BigInt(r);for(let d=0;d<s;d++){const D=d*c;if(o===kt)break;let b=Number(o&u);if(o>>=a,b>c&&(b-=f,o+=ve),b===0)continue;let l=n[D+Math.abs(b)-1];b<0&&(l=l.negate()),i=i.add(l)}return i},getPrecomputes(r,n,o){let i=Ye.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&Ye.set(n,o(i))),i},wNAFCached(r,n,o){const i=Ke(r);return this.wNAF(i,this.getPrecomputes(i,r,o),n)},wNAFCachedUnsafe(r,n,o,i){const s=Ke(r);return s===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(s,this.getPrecomputes(s,r,o),n,i)},setWindowSize(r,n){Fr(n,t),_r.set(r,n),Ye.delete(r)}}}function Ho(e,t,r,n){if(Wo(r,e),ko(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,i=Oo(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,c=(1<<s)-1,u=new Array(c+1).fill(o),f=Math.floor((t.BITS-1)/s)*s;let a=o;for(let d=f;d>=0;d-=s){u.fill(o);for(let b=0;b<n.length;b++){const l=n[b],p=Number(l>>BigInt(d)&BigInt(c));u[p]=u[p].add(r[b])}let D=o;for(let b=u.length-1,l=o;b>0;b--)l=l.add(u[b]),D=D.add(l);if(a=a.add(D),d!==0)for(let b=0;b<s;b++)a=a.double()}return a}function $o(e){return Po(e.Fp),ft(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...yr(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const Y=BigInt(0),q=BigInt(1),Ae=BigInt(2),qo=BigInt(8),Vo={zip215:!0};function Yo(e){const t=$o(e);return ft(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function Ko(e){const t=Yo(e),{Fp:r,n,prehash:o,hash:i,randomBytes:s,nByteLength:c,h:u}=t,f=Ae<<BigInt(c*8)-q,a=r.create,d=mr(t.n,t.nBitLength),D=t.uvRatio||((_,g)=>{try{return{isValid:!0,value:r.sqrt(_*r.inv(g))}}catch{return{isValid:!1,value:Y}}}),b=t.adjustScalarBytes||(_=>_),l=t.domain||((_,g,y)=>{if(He("phflag",y),g.length||y)throw new Error("Contexts/pre-hash are not supported");return _});function p(_,g){pe("coordinate "+_,g,Y,f)}function m(_){if(!(_ instanceof h))throw new Error("ExtendedPoint expected")}const F=Pt((_,g)=>{const{ex:y,ey:v,ez:O}=_,x=_.is0();g==null&&(g=x?qo:r.inv(O));const R=a(y*g),M=a(v*g),U=a(O*g);if(x)return{x:Y,y:q};if(U!==q)throw new Error("invZ was invalid");return{x:R,y:M}}),w=Pt(_=>{const{a:g,d:y}=t;if(_.is0())throw new Error("bad point: ZERO");const{ex:v,ey:O,ez:x,et:R}=_,M=a(v*v),U=a(O*O),P=a(x*x),k=a(P*P),$=a(M*g),G=a(P*a($+U)),J=a(k+a(y*a(M*U)));if(G!==J)throw new Error("bad point: equation left != right (1)");const V=a(v*O),Q=a(x*R);if(V!==Q)throw new Error("bad point: equation left != right (2)");return!0});class h{constructor(g,y,v,O){this.ex=g,this.ey=y,this.ez=v,this.et=O,p("x",g),p("y",y),p("z",v),p("t",O),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(g){if(g instanceof h)throw new Error("extended point not allowed");const{x:y,y:v}=g||{};return p("x",y),p("y",v),new h(y,v,q,a(y*v))}static normalizeZ(g){const y=r.invertBatch(g.map(v=>v.ez));return g.map((v,O)=>v.toAffine(y[O])).map(h.fromAffine)}static msm(g,y){return Ho(h,d,g,y)}_setWindowSize(g){T.setWindowSize(this,g)}assertValidity(){w(this)}equals(g){m(g);const{ex:y,ey:v,ez:O}=this,{ex:x,ey:R,ez:M}=g,U=a(y*M),P=a(x*O),k=a(v*M),$=a(R*O);return U===P&&k===$}is0(){return this.equals(h.ZERO)}negate(){return new h(a(-this.ex),this.ey,this.ez,a(-this.et))}double(){const{a:g}=t,{ex:y,ey:v,ez:O}=this,x=a(y*y),R=a(v*v),M=a(Ae*a(O*O)),U=a(g*x),P=y+v,k=a(a(P*P)-x-R),$=U+R,G=$-M,J=U-R,V=a(k*G),Q=a($*J),ne=a(k*J),Fe=a(G*$);return new h(V,Q,Fe,ne)}add(g){m(g);const{a:y,d:v}=t,{ex:O,ey:x,ez:R,et:M}=this,{ex:U,ey:P,ez:k,et:$}=g;if(y===BigInt(-1)){const pt=a((x-O)*(P+U)),gt=a((x+O)*(P-U)),Me=a(gt-pt);if(Me===Y)return this.double();const wt=a(R*Ae*$),Et=a(M*Ae*k),yt=Et+wt,mt=gt+pt,Ft=Et-wt,Qr=a(yt*Me),en=a(mt*Ft),tn=a(yt*Ft),rn=a(Me*mt);return new h(Qr,en,rn,tn)}const G=a(O*U),J=a(x*P),V=a(M*v*$),Q=a(R*k),ne=a((O+x)*(U+P)-G-J),Fe=Q-V,Dt=Q+V,bt=a(J-y*G),Gr=a(ne*Fe),Jr=a(Dt*bt),Zr=a(ne*bt),Xr=a(Fe*Dt);return new h(Gr,Jr,Xr,Zr)}subtract(g){return this.add(g.negate())}wNAF(g){return T.wNAFCached(this,g,h.normalizeZ)}multiply(g){const y=g;pe("scalar",y,q,n);const{p:v,f:O}=this.wNAF(y);return h.normalizeZ([v,O])[0]}multiplyUnsafe(g,y=h.ZERO){const v=g;return pe("scalar",v,Y,n),v===Y?S:this.is0()||v===q?this:T.wNAFCachedUnsafe(this,v,h.normalizeZ,y)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return T.unsafeLadder(this,n).is0()}toAffine(g){return F(this,g)}clearCofactor(){const{h:g}=t;return g===q?this:this.multiplyUnsafe(g)}static fromHex(g,y=!1){const{d:v,a:O}=t,x=r.BYTES;g=X("pointHex",g,x),He("zip215",y);const R=g.slice(),M=g[x-1];R[x-1]=M&-129;const U=Ce(R),P=y?f:r.ORDER;pe("pointHex.y",U,Y,P);const k=a(U*U),$=a(k-q),G=a(v*k-O);let{isValid:J,value:V}=D($,G);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const Q=(V&q)===q,ne=(M&128)!==0;if(!y&&V===Y&&ne)throw new Error("Point.fromHex: x=0 and x_0=1");return ne!==Q&&(V=a(-V)),h.fromAffine({x:V,y:U})}static fromPrivateKey(g){return I(g).point}toRawBytes(){const{x:g,y}=this.toAffine(),v=et(y,r.BYTES);return v[v.length-1]|=g&q?128:0,v}toHex(){return ct(this.toRawBytes())}}h.BASE=new h(t.Gx,t.Gy,q,a(t.Gx*t.Gy)),h.ZERO=new h(Y,q,q,Y);const{BASE:E,ZERO:S}=h,T=zo(h,c*8);function B(_){return L(_,n)}function C(_){return B(Ce(_))}function I(_){const g=r.BYTES;_=X("private key",_,g);const y=X("hashed private key",i(_),2*g),v=b(y.slice(0,g)),O=y.slice(g,2*g),x=C(v),R=E.multiply(x),M=R.toRawBytes();return{head:v,prefix:O,scalar:x,point:R,pointBytes:M}}function ae(_){return I(_).pointBytes}function re(_=new Uint8Array,...g){const y=Mt(...g);return C(i(l(y,X("context",_),!!o)))}function ce(_,g,y={}){_=X("message",_),o&&(_=o(_));const{prefix:v,scalar:O,pointBytes:x}=I(g),R=re(y.context,v,_),M=E.multiply(R).toRawBytes(),U=re(y.context,M,x,_),P=B(R+U*O);pe("signature.s",P,Y,n);const k=Mt(M,et(P,r.BYTES));return X("result",k,r.BYTES*2)}const de=Vo;function Ie(_,g,y,v=de){const{context:O,zip215:x}=v,R=r.BYTES;_=X("signature",_,2*R),g=X("message",g),y=X("publicKey",y,R),x!==void 0&&He("zip215",x),o&&(g=o(g));const M=Ce(_.slice(R,2*R));let U,P,k;try{U=h.fromHex(y,x),P=h.fromHex(_.slice(0,R),x),k=E.multiplyUnsafe(M)}catch{return!1}if(!x&&U.isSmallOrder())return!1;const $=re(O,P.toRawBytes(),U.toRawBytes(),g);return P.add(U.multiplyUnsafe($)).subtract(k).clearCofactor().equals(h.ZERO)}return E._setWindowSize(8),{CURVE:t,getPublicKey:ae,sign:ce,verify:Ie,ExtendedPoint:h,utils:{getExtendedPublicKey:I,randomPrivateKey:()=>s(r.BYTES),precompute(_=8,g=h.BASE){return g._setWindowSize(_),g.multiply(BigInt(3)),g}}}}BigInt(0),BigInt(1);const lt=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),zt=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Go=BigInt(1),Ht=BigInt(2);BigInt(3);const Jo=BigInt(5),Zo=BigInt(8);function Xo(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),o=BigInt(80),i=lt,s=e*e%i*e%i,c=K(s,Ht,i)*s%i,u=K(c,Go,i)*e%i,f=K(u,Jo,i)*u%i,a=K(f,t,i)*f%i,d=K(a,r,i)*a%i,D=K(d,n,i)*d%i,b=K(D,o,i)*D%i,l=K(b,o,i)*D%i,p=K(l,t,i)*f%i;return{pow_p_5_8:K(p,Ht,i)*e%i,b2:s}}function Qo(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function ei(e,t){const r=lt,n=L(t*t*t,r),o=L(n*n*t,r),i=Xo(e*o).pow_p_5_8;let s=L(e*n*i,r);const c=L(t*s*s,r),u=s,f=L(s*zt,r),a=c===e,d=c===L(-e,r),D=c===L(-e*zt,r);return a&&(s=u),(d||D)&&(s=f),Io(s,r)&&(s=L(-s,r)),{isValid:a||d,value:s}}const ti=mr(lt,void 0,!0),ri={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:ti,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Zo,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:_o,randomBytes:Dr,adjustScalarBytes:Qo,uvRatio:ei},vr=Ko(ri),ni="EdDSA",oi="JWT",Oe=".",Re="base64url",Ar="utf8",Sr="utf8",ii=":",si="did",ui="key",$t="base58btc",ai="z",ci="K36",fi=32;function ht(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Cr(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?ht(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Or(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));const r=Cr(t);let n=0;for(const o of e)r.set(o,n),n+=o.length;return ht(r)}function li(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var c=e.length,u=e.charAt(0),f=Math.log(c)/Math.log(256),a=Math.log(256)/Math.log(c);function d(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var p=0,m=0,F=0,w=l.length;F!==w&&l[F]===0;)F++,p++;for(var h=(w-F)*a+1>>>0,E=new Uint8Array(h);F!==w;){for(var S=l[F],T=0,B=h-1;(S!==0||T<m)&&B!==-1;B--,T++)S+=256*E[B]>>>0,E[B]=S%c>>>0,S=S/c>>>0;if(S!==0)throw new Error("Non-zero carry");m=T,F++}for(var C=h-m;C!==h&&E[C]===0;)C++;for(var I=u.repeat(p);C<h;++C)I+=e.charAt(E[C]);return I}function D(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var p=0;if(l[p]!==" "){for(var m=0,F=0;l[p]===u;)m++,p++;for(var w=(l.length-p)*f+1>>>0,h=new Uint8Array(w);l[p];){var E=r[l.charCodeAt(p)];if(E===255)return;for(var S=0,T=w-1;(E!==0||S<F)&&T!==-1;T--,S++)E+=c*h[T]>>>0,h[T]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");F=S,p++}if(l[p]!==" "){for(var B=w-F;B!==w&&h[B]===0;)B++;for(var C=new Uint8Array(m+(w-B)),I=m;B!==w;)C[I++]=h[B++];return C}}}function b(l){var p=D(l);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:D,decode:b}}var hi=li,di=hi;const xr=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Di=e=>new TextEncoder().encode(e),bi=e=>new TextDecoder().decode(e);class pi{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class gi{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return Br(this,t)}}class wi{constructor(t){this.decoders=t}or(t){return Br(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Br=(e,t)=>new wi({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class Ei{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new pi(t,r,n),this.decoder=new gi(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ne=({name:e,prefix:t,encode:r,decode:n})=>new Ei(e,t,r,n),ye=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=di(r,t);return Ne({prefix:e,name:t,encode:n,decode:i=>xr(o(i))})},yi=(e,t,r,n)=>{const o={};for(let a=0;a<t.length;++a)o[t[a]]=a;let i=e.length;for(;e[i-1]==="=";)--i;const s=new Uint8Array(i*r/8|0);let c=0,u=0,f=0;for(let a=0;a<i;++a){const d=o[e[a]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|d,c+=r,c>=8&&(c-=8,s[f++]=255&u>>c)}if(c>=r||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s},mi=(e,t,r)=>{const n=t[t.length-1]==="=",o=(1<<r)-1;let i="",s=0,c=0;for(let u=0;u<e.length;++u)for(c=c<<8|e[u],s+=8;s>r;)s-=r,i+=t[o&c>>s];if(s&&(i+=t[o&c<<r-s]),n)for(;i.length*r&7;)i+="=";return i},z=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Ne({prefix:t,name:e,encode(o){return mi(o,n,r)},decode(o){return yi(o,n,r,e)}}),Fi=Ne({prefix:"\0",name:"identity",encode:e=>bi(e),decode:e=>Di(e)});var _i=Object.freeze({__proto__:null,identity:Fi});const vi=z({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Ai=Object.freeze({__proto__:null,base2:vi});const Si=z({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Ci=Object.freeze({__proto__:null,base8:Si});const Oi=ye({prefix:"9",name:"base10",alphabet:"0123456789"});var xi=Object.freeze({__proto__:null,base10:Oi});const Bi=z({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ri=z({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Ni=Object.freeze({__proto__:null,base16:Bi,base16upper:Ri});const Ti=z({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ui=z({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ii=z({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Mi=z({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Pi=z({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ji=z({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Li=z({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Wi=z({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ki=z({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var zi=Object.freeze({__proto__:null,base32:Ti,base32upper:Ui,base32pad:Ii,base32padupper:Mi,base32hex:Pi,base32hexupper:ji,base32hexpad:Li,base32hexpadupper:Wi,base32z:ki});const Hi=ye({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),$i=ye({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var qi=Object.freeze({__proto__:null,base36:Hi,base36upper:$i});const Vi=ye({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Yi=ye({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ki=Object.freeze({__proto__:null,base58btc:Vi,base58flickr:Yi});const Gi=z({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ji=z({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Zi=z({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Xi=z({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Qi=Object.freeze({__proto__:null,base64:Gi,base64pad:Ji,base64url:Zi,base64urlpad:Xi});const Rr=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),es=Rr.reduce((e,t,r)=>(e[r]=t,e),[]),ts=Rr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function rs(e){return e.reduce((t,r)=>(t+=es[r],t),"")}function ns(e){const t=[];for(const r of e){const n=ts[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const os=Ne({prefix:"🚀",name:"base256emoji",encode:rs,decode:ns});var is=Object.freeze({__proto__:null,base256emoji:os}),ss=Nr,qt=128,us=-128,as=Math.pow(2,31);function Nr(e,t,r){t=t||[],r=r||0;for(var n=r;e>=as;)t[r++]=e&255|qt,e/=128;for(;e&us;)t[r++]=e&255|qt,e>>>=7;return t[r]=e|0,Nr.bytes=r-n+1,t}var cs=rt,fs=128,Vt=127;function rt(e,n){var r=0,n=n||0,o=0,i=n,s,c=e.length;do{if(i>=c)throw rt.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&Vt)<<o:(s&Vt)*Math.pow(2,o),o+=7}while(s>=fs);return rt.bytes=i-n,r}var ls=Math.pow(2,7),hs=Math.pow(2,14),ds=Math.pow(2,21),Ds=Math.pow(2,28),bs=Math.pow(2,35),ps=Math.pow(2,42),gs=Math.pow(2,49),ws=Math.pow(2,56),Es=Math.pow(2,63),ys=function(e){return e<ls?1:e<hs?2:e<ds?3:e<Ds?4:e<bs?5:e<ps?6:e<gs?7:e<ws?8:e<Es?9:10},ms={encode:ss,decode:cs,encodingLength:ys},Tr=ms;const Yt=(e,t,r=0)=>(Tr.encode(e,t,r),t),Kt=e=>Tr.encodingLength(e),nt=(e,t)=>{const r=t.byteLength,n=Kt(e),o=n+Kt(r),i=new Uint8Array(o+r);return Yt(e,i,0),Yt(r,i,n),i.set(t,o),new Fs(e,r,t,i)};class Fs{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}}const Ur=({name:e,code:t,encode:r})=>new _s(e,t,r);class _s{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?nt(this.code,r):r.then(n=>nt(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ir=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),vs=Ur({name:"sha2-256",code:18,encode:Ir("SHA-256")}),As=Ur({name:"sha2-512",code:19,encode:Ir("SHA-512")});var Ss=Object.freeze({__proto__:null,sha256:vs,sha512:As});const Mr=0,Cs="identity",Pr=xr,Os=e=>nt(Mr,Pr(e)),xs={code:Mr,name:Cs,encode:Pr,digest:Os};var Bs=Object.freeze({__proto__:null,identity:xs});new TextEncoder,new TextDecoder;const Gt={..._i,...Ai,...Ci,...xi,...Ni,...zi,...qi,...Ki,...Qi,...is};({...Ss,...Bs});function jr(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Jt=jr("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Ge=jr("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Cr(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Lr={utf8:Jt,"utf-8":Jt,hex:Gt.base16,latin1:Ge,ascii:Ge,binary:Ge,...Gt};function Te(e,t="utf8"){const r=Lr[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function he(e,t="utf8"){const r=Lr[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?ht(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function Zt(e){return fr(Te(he(e,Re),Ar))}function xe(e){return Te(he(lr(e),Ar),Re)}function Rs(e){const t=he(ci,$t),r=ai+Te(Or([t,e]),$t);return[si,ui,r].join(ii)}function Ns(e){return Te(e,Re)}function Ts(e){return he(e,Re)}function Us(e){return he([xe(e.header),xe(e.payload)].join(Oe),Sr)}function Is(e){return[xe(e.header),xe(e.payload),Ns(e.signature)].join(Oe)}function va(e){const t=e.split(Oe),r=Zt(t[0]),n=Zt(t[1]),o=Ts(t[2]),i=he(t.slice(0,2).join(Oe),Sr);return{header:r,payload:n,signature:o,data:i}}function Aa(e=Dr(fi)){const t=vr.getPublicKey(e);return{secretKey:Or([e,t]),publicKey:t}}async function Sa(e,t,r,n,o=it.fromMiliseconds(Date.now())){const i={alg:ni,typ:oi},s=Rs(n.publicKey),c=o+r,u={iss:s,sub:e,aud:t,iat:o,exp:c},f=Us({header:i,payload:u}),a=vr.sign(f,n.secretKey.slice(0,32));return Is({header:i,payload:u,signature:a})}var Xt=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},Ms=(function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e})(),Ps=(function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=Se.platform}return e})(),js=(function(){function e(t,r,n,o){this.name=t,this.version=r,this.os=n,this.bot=o,this.type="bot-device"}return e})(),Ls=(function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e})(),Ws=(function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e})(),ks=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,zs=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Qt=3,Hs=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",ks]],er=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Ca(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ws:typeof navigator<"u"?qs(navigator.userAgent):Ys()}function $s(e){return e!==""&&Hs.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1)}function qs(e){var t=$s(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Ls;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?o.length<Qt&&(o=Xt(Xt([],o,!0),Ks(Qt-o.length),!0)):o=[];var i=o.join("."),s=Vs(e),c=zs.exec(e);return c&&c[1]?new js(r,i,s,c[1]):new Ms(r,i,s)}function Vs(e){for(var t=0,r=er.length;t<r;t++){var n=er[t],o=n[0],i=n[1],s=i.exec(e);if(s)return o}return null}function Ys(){var e=typeof Se<"u"&&Se.version;return e?new Ps(Se.version.slice(1)):null}function Ks(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var N={},tr;function Wr(){if(tr)return N;tr=1,Object.defineProperty(N,"__esModule",{value:!0}),N.getLocalStorage=N.getLocalStorageOrThrow=N.getCrypto=N.getCryptoOrThrow=N.getLocation=N.getLocationOrThrow=N.getNavigator=N.getNavigatorOrThrow=N.getDocument=N.getDocumentOrThrow=N.getFromWindowOrThrow=N.getFromWindow=void 0;function e(D){let b;return typeof window<"u"&&typeof window[D]<"u"&&(b=window[D]),b}N.getFromWindow=e;function t(D){const b=e(D);if(!b)throw new Error(`${D} is not defined in Window`);return b}N.getFromWindowOrThrow=t;function r(){return t("document")}N.getDocumentOrThrow=r;function n(){return e("document")}N.getDocument=n;function o(){return t("navigator")}N.getNavigatorOrThrow=o;function i(){return e("navigator")}N.getNavigator=i;function s(){return t("location")}N.getLocationOrThrow=s;function c(){return e("location")}N.getLocation=c;function u(){return t("crypto")}N.getCryptoOrThrow=u;function f(){return e("crypto")}N.getCrypto=f;function a(){return t("localStorage")}N.getLocalStorageOrThrow=a;function d(){return e("localStorage")}return N.getLocalStorage=d,N}var Oa=Wr(),ge={},rr;function Gs(){if(rr)return ge;rr=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.getWindowMetadata=void 0;const e=Wr();function t(){let r,n;try{r=e.getDocumentOrThrow(),n=e.getLocationOrThrow()}catch{return null}function o(){const b=r.getElementsByTagName("link"),l=[];for(let p=0;p<b.length;p++){const m=b[p],F=m.getAttribute("rel");if(F&&F.toLowerCase().indexOf("icon")>-1){const w=m.getAttribute("href");if(w)if(w.toLowerCase().indexOf("https:")===-1&&w.toLowerCase().indexOf("http:")===-1&&w.indexOf("//")!==0){let h=n.protocol+"//"+n.host;if(w.indexOf("/")===0)h+=w;else{const E=n.pathname.split("/");E.pop();const S=E.join("/");h+=S+"/"+w}l.push(h)}else if(w.indexOf("//")===0){const h=n.protocol+w;l.push(h)}else l.push(w)}}return l}function i(...b){const l=r.getElementsByTagName("meta");for(let p=0;p<l.length;p++){const m=l[p],F=["itemprop","property","name"].map(w=>m.getAttribute(w)).filter(w=>w?b.includes(w):!1);if(F.length&&F){const w=m.getAttribute("content");if(w)return w}}return""}function s(){let b=i("name","og:site_name","og:title","twitter:title");return b||(b=r.title),b}function c(){return i("description","og:description","twitter:description","keywords")}const u=s(),f=c(),a=n.origin,d=o();return{description:f,url:a,icons:d,name:u}}return ge.getWindowMetadata=t,ge}var xa=Gs();function Js(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var c=e.length,u=e.charAt(0),f=Math.log(c)/Math.log(256),a=Math.log(256)/Math.log(c);function d(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var p=0,m=0,F=0,w=l.length;F!==w&&l[F]===0;)F++,p++;for(var h=(w-F)*a+1>>>0,E=new Uint8Array(h);F!==w;){for(var S=l[F],T=0,B=h-1;(S!==0||T<m)&&B!==-1;B--,T++)S+=256*E[B]>>>0,E[B]=S%c>>>0,S=S/c>>>0;if(S!==0)throw new Error("Non-zero carry");m=T,F++}for(var C=h-m;C!==h&&E[C]===0;)C++;for(var I=u.repeat(p);C<h;++C)I+=e.charAt(E[C]);return I}function D(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var p=0;if(l[p]!==" "){for(var m=0,F=0;l[p]===u;)m++,p++;for(var w=(l.length-p)*f+1>>>0,h=new Uint8Array(w);l[p];){var E=r[l.charCodeAt(p)];if(E===255)return;for(var S=0,T=w-1;(E!==0||S<F)&&T!==-1;T--,S++)E+=c*h[T]>>>0,h[T]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");F=S,p++}if(l[p]!==" "){for(var B=w-F;B!==w&&h[B]===0;)B++;for(var C=new Uint8Array(m+(w-B)),I=m;B!==w;)C[I++]=h[B++];return C}}}function b(l){var p=D(l);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:D,decode:b}}var Zs=Js,Xs=Zs;const Qs=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},eu=e=>new TextEncoder().encode(e),tu=e=>new TextDecoder().decode(e);class ru{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class nu{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return kr(this,t)}}class ou{constructor(t){this.decoders=t}or(t){return kr(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const kr=(e,t)=>new ou({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new ru(t,r,n),this.decoder=new nu(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ue=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),me=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=Xs(r,t);return Ue({prefix:e,name:t,encode:n,decode:i=>Qs(o(i))})},su=(e,t,r,n)=>{const o={};for(let a=0;a<t.length;++a)o[t[a]]=a;let i=e.length;for(;e[i-1]==="=";)--i;const s=new Uint8Array(i*r/8|0);let c=0,u=0,f=0;for(let a=0;a<i;++a){const d=o[e[a]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|d,c+=r,c>=8&&(c-=8,s[f++]=255&u>>c)}if(c>=r||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s},uu=(e,t,r)=>{const n=t[t.length-1]==="=",o=(1<<r)-1;let i="",s=0,c=0;for(let u=0;u<e.length;++u)for(c=c<<8|e[u],s+=8;s>r;)s-=r,i+=t[o&c>>s];if(s&&(i+=t[o&c<<r-s]),n)for(;i.length*r&7;)i+="=";return i},H=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Ue({prefix:t,name:e,encode(o){return uu(o,n,r)},decode(o){return su(o,n,r,e)}}),au=Ue({prefix:"\0",name:"identity",encode:e=>tu(e),decode:e=>eu(e)}),cu=Object.freeze(Object.defineProperty({__proto__:null,identity:au},Symbol.toStringTag,{value:"Module"})),fu=H({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),lu=Object.freeze(Object.defineProperty({__proto__:null,base2:fu},Symbol.toStringTag,{value:"Module"})),hu=H({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),du=Object.freeze(Object.defineProperty({__proto__:null,base8:hu},Symbol.toStringTag,{value:"Module"})),Du=me({prefix:"9",name:"base10",alphabet:"0123456789"}),bu=Object.freeze(Object.defineProperty({__proto__:null,base10:Du},Symbol.toStringTag,{value:"Module"})),pu=H({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=H({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),wu=Object.freeze(Object.defineProperty({__proto__:null,base16:pu,base16upper:gu},Symbol.toStringTag,{value:"Module"})),Eu=H({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),yu=H({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),mu=H({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Fu=H({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),_u=H({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),vu=H({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Au=H({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Su=H({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Cu=H({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Ou=Object.freeze(Object.defineProperty({__proto__:null,base32:Eu,base32hex:_u,base32hexpad:Au,base32hexpadupper:Su,base32hexupper:vu,base32pad:mu,base32padupper:Fu,base32upper:yu,base32z:Cu},Symbol.toStringTag,{value:"Module"})),xu=me({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Bu=me({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Ru=Object.freeze(Object.defineProperty({__proto__:null,base36:xu,base36upper:Bu},Symbol.toStringTag,{value:"Module"})),Nu=me({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Tu=me({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Uu=Object.freeze(Object.defineProperty({__proto__:null,base58btc:Nu,base58flickr:Tu},Symbol.toStringTag,{value:"Module"})),Iu=H({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Mu=H({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Pu=H({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ju=H({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Lu=Object.freeze(Object.defineProperty({__proto__:null,base64:Iu,base64pad:Mu,base64url:Pu,base64urlpad:ju},Symbol.toStringTag,{value:"Module"})),zr=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Wu=zr.reduce((e,t,r)=>(e[r]=t,e),[]),ku=zr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function zu(e){return e.reduce((t,r)=>(t+=Wu[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=ku[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const $u=Ue({prefix:"🚀",name:"base256emoji",encode:zu,decode:Hu}),qu=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:$u},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const Ba={...cu,...lu,...du,...bu,...wu,...Ou,...Ru,...Uu,...Lu,...qu},Ra={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},Vu="PARSE_ERROR",Yu="INVALID_REQUEST",Ku="METHOD_NOT_FOUND",Gu="INVALID_PARAMS",Hr="INTERNAL_ERROR",dt="SERVER_ERROR",Ju=[-32700,-32600,-32601,-32602,-32603],we={[Vu]:{code:-32700,message:"Parse error"},[Yu]:{code:-32600,message:"Invalid Request"},[Ku]:{code:-32601,message:"Method not found"},[Gu]:{code:-32602,message:"Invalid params"},[Hr]:{code:-32603,message:"Internal error"},[dt]:{code:-32e3,message:"Server error"}},$r=dt;function Zu(e){return Ju.includes(e)}function nr(e){return Object.keys(we).includes(e)?we[e]:we[$r]}function Xu(e){const t=Object.values(we).find(r=>r.code===e);return t||we[$r]}function Qu(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}function qr(e=3){const t=Date.now()*Math.pow(10,e),r=Math.floor(Math.random()*Math.pow(10,e));return t+r}function ea(e=6){return BigInt(qr(e))}function ta(e,t,r){return{id:r||qr(),jsonrpc:"2.0",method:e,params:t}}function Na(e,t){return{id:e,jsonrpc:"2.0",result:t}}function ra(e,t,r){return{id:e,jsonrpc:"2.0",error:na(t)}}function na(e,t){return typeof e>"u"?nr(Hr):(typeof e=="string"&&(e=Object.assign(Object.assign({},nr(dt)),{message:e})),Zu(e.code)&&(e=Xu(e.code)),e)}class oa{}class ia extends oa{constructor(){super()}}class sa extends ia{constructor(t){super()}}const ua="^https?:",aa="^wss?:";function ca(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function Vr(e,t){const r=ca(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function Ta(e){return Vr(e,ua)}function or(e){return Vr(e,aa)}function fa(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}function Yr(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Ua(e){return Yr(e)&&"method"in e}function la(e){return Yr(e)&&(ha(e)||Kr(e))}function ha(e){return"result"in e}function Kr(e){return"error"in e}class Ia extends sa{constructor(t){super(t),this.events=new ot.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(ta(t.method,t.params||[],t.id||ea().toString()),r)}async requestStrict(t,r){return new Promise(async(n,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${t.id}`,i=>{Kr(i)?o(i.error):n(i.result)});try{await this.connection.send(t,r)}catch(i){o(i)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),la(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const da=()=>typeof WebSocket<"u"?WebSocket:typeof ue<"u"&&typeof ue.WebSocket<"u"?ue.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Da=()=>typeof WebSocket<"u"||typeof ue<"u"&&typeof ue.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",ir=e=>e.split("?")[0],sr=10,ba=da();class Ma{constructor(t){if(this.url=t,this.events=new ot.EventEmitter,this.registering=!1,!or(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),t()},this.socket.close()})}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(lr(t))}catch(r){this.onError(t.id,r)}}register(t=this.url){if(!or(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,o)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),o(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return o(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{const o=on.isReactNative()?void 0:{rejectUnauthorized:!fa(t)},i=new ba(t,[],o);Da()?i.onerror=s=>{const c=s;n(this.emitError(c.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),r(i)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=r=>this.onClose(r),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const r=typeof t.data=="string"?fr(t.data):t.data;this.events.emit("payload",r)}onError(t,r){const n=this.parseError(r),o=n.message||n.toString(),i=ra(t,o);this.events.emit("payload",i)}parseError(t,r=this.url){return Qu(t,ir(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>sr&&this.events.setMaxListeners(sr)}emitError(t){const r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for host: ${ir(this.url)}`));return this.events.emit("register_error",r),r}}function pa(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let f=0;f<t.length;f++)t[f]=255;for(let f=0;f<e.length;f++){const a=e.charAt(f),d=a.charCodeAt(0);if(t[d]!==255)throw new TypeError(a+" is ambiguous");t[d]=f}const r=e.length,n=e.charAt(0),o=Math.log(r)/Math.log(256),i=Math.log(256)/Math.log(r);function s(f){if(f instanceof Uint8Array||(ArrayBuffer.isView(f)?f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):Array.isArray(f)&&(f=Uint8Array.from(f))),!(f instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length===0)return"";let a=0,d=0,D=0;const b=f.length;for(;D!==b&&f[D]===0;)D++,a++;const l=(b-D)*i+1>>>0,p=new Uint8Array(l);for(;D!==b;){let w=f[D],h=0;for(let E=l-1;(w!==0||h<d)&&E!==-1;E--,h++)w+=256*p[E]>>>0,p[E]=w%r>>>0,w=w/r>>>0;if(w!==0)throw new Error("Non-zero carry");d=h,D++}let m=l-d;for(;m!==l&&p[m]===0;)m++;let F=n.repeat(a);for(;m<l;++m)F+=e.charAt(p[m]);return F}function c(f){if(typeof f!="string")throw new TypeError("Expected String");if(f.length===0)return new Uint8Array;let a=0,d=0,D=0;for(;f[a]===n;)d++,a++;const b=(f.length-a)*o+1>>>0,l=new Uint8Array(b);for(;a<f.length;){const w=f.charCodeAt(a);if(w>255)return;let h=t[w];if(h===255)return;let E=0;for(let S=b-1;(h!==0||E<D)&&S!==-1;S--,E++)h+=r*l[S]>>>0,l[S]=h%256>>>0,h=h/256>>>0;if(h!==0)throw new Error("Non-zero carry");D=E,a++}let p=b-D;for(;p!==b&&l[p]===0;)p++;const m=new Uint8Array(d+(b-p));let F=d;for(;p!==b;)m[F++]=l[p++];return m}function u(f){const a=c(f);if(a)return a;throw new Error("Non-base"+r+" character")}return{encode:s,decodeUnsafe:c,decode:u}}var ga="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Pa=pa(ga);export{Ra as C,In as I,Aa as P,Rs as Q,fr as a,Na as b,ta as c,Ba as d,xa as e,ra as f,it as g,Oa as h,Ta as i,Ca as j,va as k,Pa as l,_a as m,cr as n,Ia as o,Qu as p,Ma as q,Pn as r,lr as s,Ua as t,la as u,Sa as v,ea as w,ha as x,Kr as y,qr as z};
15
- //# sourceMappingURL=index-CD4bV5HZ.js.map
15
+ //# sourceMappingURL=index-BcjBfjfJ.js.map