ccxt 4.5.18 → 4.5.19

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 (1007) hide show
  1. package/README.md +7 -6
  2. package/dist/ccxt.browser.min.js +40 -16
  3. package/dist/cjs/_virtual/index.cjs.js +1459 -9
  4. package/dist/cjs/ccxt.js +8 -2
  5. package/dist/cjs/src/abstract/alpaca.js +1 -1
  6. package/dist/cjs/src/abstract/apex.js +1 -1
  7. package/dist/cjs/src/abstract/arkham.js +1 -1
  8. package/dist/cjs/src/abstract/ascendex.js +1 -1
  9. package/dist/cjs/src/abstract/backpack.js +1 -1
  10. package/dist/cjs/src/abstract/bigone.js +1 -1
  11. package/dist/cjs/src/abstract/binance.js +1 -1
  12. package/dist/cjs/src/abstract/bingx.js +1 -1
  13. package/dist/cjs/src/abstract/bit2c.js +1 -1
  14. package/dist/cjs/src/abstract/bitbank.js +1 -1
  15. package/dist/cjs/src/abstract/bitbns.js +1 -1
  16. package/dist/cjs/src/abstract/bitfinex.js +1 -1
  17. package/dist/cjs/src/abstract/bitflyer.js +1 -1
  18. package/dist/cjs/src/abstract/bitget.js +1 -1
  19. package/dist/cjs/src/abstract/bithumb.js +1 -1
  20. package/dist/cjs/src/abstract/bitmart.js +1 -1
  21. package/dist/cjs/src/abstract/bitmex.js +1 -1
  22. package/dist/cjs/src/abstract/bitopro.js +1 -1
  23. package/dist/cjs/src/abstract/bitrue.js +1 -1
  24. package/dist/cjs/src/abstract/bitso.js +1 -1
  25. package/dist/cjs/src/abstract/bitstamp.js +1 -1
  26. package/dist/cjs/src/abstract/bitteam.js +1 -1
  27. package/dist/cjs/src/abstract/bittrade.js +1 -1
  28. package/dist/cjs/src/abstract/bitvavo.js +1 -1
  29. package/dist/cjs/src/abstract/blockchaincom.js +1 -1
  30. package/dist/cjs/src/abstract/blofin.js +1 -1
  31. package/dist/cjs/src/abstract/btcalpha.js +1 -1
  32. package/dist/cjs/src/abstract/btcbox.js +1 -1
  33. package/dist/cjs/src/abstract/btcmarkets.js +1 -1
  34. package/dist/cjs/src/abstract/btcturk.js +1 -1
  35. package/dist/cjs/src/abstract/bybit.js +1 -1
  36. package/dist/cjs/src/abstract/cex.js +1 -1
  37. package/dist/cjs/src/abstract/coinbase.js +1 -1
  38. package/dist/cjs/src/abstract/coinbaseexchange.js +1 -1
  39. package/dist/cjs/src/abstract/coinbaseinternational.js +1 -1
  40. package/dist/cjs/src/abstract/coincatch.js +1 -1
  41. package/dist/cjs/src/abstract/coincheck.js +1 -1
  42. package/dist/cjs/src/abstract/coinex.js +1 -1
  43. package/dist/cjs/src/abstract/coinmate.js +1 -1
  44. package/dist/cjs/src/abstract/coinmetro.js +1 -1
  45. package/dist/cjs/src/abstract/coinone.js +1 -1
  46. package/dist/cjs/src/abstract/coinsph.js +1 -1
  47. package/dist/cjs/src/abstract/coinspot.js +1 -1
  48. package/dist/cjs/src/abstract/cryptocom.js +1 -1
  49. package/dist/cjs/src/abstract/cryptomus.js +1 -1
  50. package/dist/cjs/src/abstract/deepcoin.js +1 -1
  51. package/dist/cjs/src/abstract/defx.js +1 -1
  52. package/dist/cjs/src/abstract/delta.js +1 -1
  53. package/dist/cjs/src/abstract/deribit.js +1 -1
  54. package/dist/cjs/src/abstract/derive.js +1 -1
  55. package/dist/cjs/src/abstract/digifinex.js +1 -1
  56. package/dist/cjs/src/abstract/dydx.js +11 -0
  57. package/dist/cjs/src/abstract/exmo.js +1 -1
  58. package/dist/cjs/src/abstract/foxbit.js +1 -1
  59. package/dist/cjs/src/abstract/gate.js +1 -1
  60. package/dist/cjs/src/abstract/gemini.js +1 -1
  61. package/dist/cjs/src/abstract/hashkey.js +1 -1
  62. package/dist/cjs/src/abstract/hibachi.js +1 -1
  63. package/dist/cjs/src/abstract/hitbtc.js +1 -1
  64. package/dist/cjs/src/abstract/hollaex.js +1 -1
  65. package/dist/cjs/src/abstract/htx.js +1 -1
  66. package/dist/cjs/src/abstract/hyperliquid.js +1 -1
  67. package/dist/cjs/src/abstract/independentreserve.js +1 -1
  68. package/dist/cjs/src/abstract/indodax.js +1 -1
  69. package/dist/cjs/src/abstract/kraken.js +1 -1
  70. package/dist/cjs/src/abstract/krakenfutures.js +1 -1
  71. package/dist/cjs/src/abstract/kucoin.js +1 -1
  72. package/dist/cjs/src/abstract/kucoinfutures.js +1 -1
  73. package/dist/cjs/src/abstract/latoken.js +1 -1
  74. package/dist/cjs/src/abstract/lbank.js +1 -1
  75. package/dist/cjs/src/abstract/luno.js +1 -1
  76. package/dist/cjs/src/abstract/mercado.js +1 -1
  77. package/dist/cjs/src/abstract/mexc.js +1 -1
  78. package/dist/cjs/src/abstract/modetrade.js +1 -1
  79. package/dist/cjs/src/abstract/ndax.js +1 -1
  80. package/dist/cjs/src/abstract/novadax.js +1 -1
  81. package/dist/cjs/src/abstract/oceanex.js +1 -1
  82. package/dist/cjs/src/abstract/okx.js +1 -1
  83. package/dist/cjs/src/abstract/onetrading.js +1 -1
  84. package/dist/cjs/src/abstract/oxfun.js +1 -1
  85. package/dist/cjs/src/abstract/p2b.js +1 -1
  86. package/dist/cjs/src/abstract/paradex.js +1 -1
  87. package/dist/cjs/src/abstract/paymium.js +1 -1
  88. package/dist/cjs/src/abstract/phemex.js +1 -1
  89. package/dist/cjs/src/abstract/poloniex.js +1 -1
  90. package/dist/cjs/src/abstract/probit.js +1 -1
  91. package/dist/cjs/src/abstract/timex.js +1 -1
  92. package/dist/cjs/src/abstract/tokocrypto.js +1 -1
  93. package/dist/cjs/src/abstract/toobit.js +1 -1
  94. package/dist/cjs/src/abstract/upbit.js +1 -1
  95. package/dist/cjs/src/abstract/wavesexchange.js +1 -1
  96. package/dist/cjs/src/abstract/whitebit.js +1 -1
  97. package/dist/cjs/src/abstract/woo.js +1 -1
  98. package/dist/cjs/src/abstract/woofipro.js +1 -1
  99. package/dist/cjs/src/abstract/xt.js +1 -1
  100. package/dist/cjs/src/abstract/yobit.js +1 -1
  101. package/dist/cjs/src/abstract/zaif.js +1 -1
  102. package/dist/cjs/src/abstract/zonda.js +1 -1
  103. package/dist/cjs/src/alpaca.js +1 -1
  104. package/dist/cjs/src/apex.js +1 -1
  105. package/dist/cjs/src/arkham.js +1 -1
  106. package/dist/cjs/src/ascendex.js +1 -1
  107. package/dist/cjs/src/backpack.js +1 -1
  108. package/dist/cjs/src/base/Exchange.js +158 -1
  109. package/dist/cjs/src/base/Precise.js +0 -6
  110. package/dist/cjs/src/base/errors.js +0 -6
  111. package/dist/cjs/src/base/functions/crypto.js +1 -1
  112. package/dist/cjs/src/base/functions/encode.js +1 -1
  113. package/dist/cjs/src/base/functions/misc.js +0 -1
  114. package/dist/cjs/src/base/functions/number.js +0 -6
  115. package/dist/cjs/src/base/functions/platform.js +0 -6
  116. package/dist/cjs/src/base/functions/rsa.js +0 -1
  117. package/dist/cjs/src/base/functions/string.js +0 -6
  118. package/dist/cjs/src/base/functions/throttle.js +1 -1
  119. package/dist/cjs/src/base/functions/time.js +0 -6
  120. package/dist/cjs/src/base/functions/totp.js +0 -1
  121. package/dist/cjs/src/base/functions/type.js +0 -6
  122. package/dist/cjs/src/base/functions.js +1 -1
  123. package/dist/cjs/src/base/ws/Cache.js +0 -6
  124. package/dist/cjs/src/base/ws/Client.js +0 -1
  125. package/dist/cjs/src/base/ws/Future.js +1 -1
  126. package/dist/cjs/src/base/ws/OrderBook.js +1 -1
  127. package/dist/cjs/src/base/ws/OrderBookSide.js +0 -6
  128. package/dist/cjs/src/base/ws/WsClient.js +1 -1
  129. package/dist/cjs/src/bequant.js +1 -1
  130. package/dist/cjs/src/bigone.js +1 -1
  131. package/dist/cjs/src/binance.js +1 -1
  132. package/dist/cjs/src/binancecoinm.js +1 -1
  133. package/dist/cjs/src/binanceus.js +1 -1
  134. package/dist/cjs/src/binanceusdm.js +1 -1
  135. package/dist/cjs/src/bingx.js +21 -1
  136. package/dist/cjs/src/bit2c.js +1 -1
  137. package/dist/cjs/src/bitbank.js +1 -1
  138. package/dist/cjs/src/bitbns.js +1 -1
  139. package/dist/cjs/src/bitfinex.js +1 -1
  140. package/dist/cjs/src/bitflyer.js +1 -1
  141. package/dist/cjs/src/bitget.js +44 -42
  142. package/dist/cjs/src/bithumb.js +1 -1
  143. package/dist/cjs/src/bitmart.js +1 -1
  144. package/dist/cjs/src/bitmex.js +1 -1
  145. package/dist/cjs/src/bitopro.js +1 -1
  146. package/dist/cjs/src/bitrue.js +1 -1
  147. package/dist/cjs/src/bitso.js +1 -1
  148. package/dist/cjs/src/bitstamp.js +1 -1
  149. package/dist/cjs/src/bitteam.js +1 -1
  150. package/dist/cjs/src/bittrade.js +1 -1
  151. package/dist/cjs/src/blockchaincom.js +1 -1
  152. package/dist/cjs/src/blofin.js +1 -1
  153. package/dist/cjs/src/btcalpha.js +1 -1
  154. package/dist/cjs/src/btcbox.js +1 -1
  155. package/dist/cjs/src/btcmarkets.js +1 -1
  156. package/dist/cjs/src/btcturk.js +1 -1
  157. package/dist/cjs/src/bybit.js +1 -1
  158. package/dist/cjs/src/cex.js +1 -1
  159. package/dist/cjs/src/coinbaseadvanced.js +1 -1
  160. package/dist/cjs/src/coincatch.js +1 -1
  161. package/dist/cjs/src/coincheck.js +1 -1
  162. package/dist/cjs/src/coinex.js +1 -1
  163. package/dist/cjs/src/coinmate.js +1 -1
  164. package/dist/cjs/src/coinmetro.js +1 -1
  165. package/dist/cjs/src/coinone.js +1 -1
  166. package/dist/cjs/src/coinsph.js +0 -1
  167. package/dist/cjs/src/coinspot.js +1 -1
  168. package/dist/cjs/src/cryptocom.js +1 -1
  169. package/dist/cjs/src/cryptomus.js +1 -1
  170. package/dist/cjs/src/deepcoin.js +1 -1
  171. package/dist/cjs/src/defx.js +1 -1
  172. package/dist/cjs/src/delta.js +1 -1
  173. package/dist/cjs/src/deribit.js +7 -1
  174. package/dist/cjs/src/derive.js +1 -1
  175. package/dist/cjs/src/digifinex.js +1 -1
  176. package/dist/cjs/src/dydx.js +2453 -0
  177. package/dist/cjs/src/exmo.js +1 -1
  178. package/dist/cjs/src/fmfwio.js +1 -1
  179. package/dist/cjs/src/foxbit.js +1 -1
  180. package/dist/cjs/src/gate.js +1 -1
  181. package/dist/cjs/src/gateio.js +1 -1
  182. package/dist/cjs/src/gemini.js +1 -1
  183. package/dist/cjs/src/hashkey.js +1 -1
  184. package/dist/cjs/src/hibachi.js +2 -2
  185. package/dist/cjs/src/hitbtc.js +0 -1
  186. package/dist/cjs/src/hollaex.js +1 -1
  187. package/dist/cjs/src/htx.js +1 -1
  188. package/dist/cjs/src/huobi.js +1 -1
  189. package/dist/cjs/src/hyperliquid.js +1 -1
  190. package/dist/cjs/src/independentreserve.js +1 -1
  191. package/dist/cjs/src/indodax.js +1 -1
  192. package/dist/cjs/src/kraken.js +1 -1
  193. package/dist/cjs/src/krakenfutures.js +1 -1
  194. package/dist/cjs/src/kucoin.js +712 -110
  195. package/dist/cjs/src/kucoinfutures.js +1 -1
  196. package/dist/cjs/src/latoken.js +1 -1
  197. package/dist/cjs/src/lbank.js +1 -1
  198. package/dist/cjs/src/luno.js +1 -1
  199. package/dist/cjs/src/mercado.js +1 -1
  200. package/dist/cjs/src/mexc.js +1 -1
  201. package/dist/cjs/src/modetrade.js +1 -1
  202. package/dist/cjs/src/myokx.js +1 -1
  203. package/dist/cjs/src/ndax.js +1 -1
  204. package/dist/cjs/src/novadax.js +1 -1
  205. package/dist/cjs/src/oceanex.js +1 -1
  206. package/dist/cjs/src/okx.js +1 -1
  207. package/dist/cjs/src/okxus.js +1 -1
  208. package/dist/cjs/src/onetrading.js +1 -1
  209. package/dist/cjs/src/oxfun.js +1 -1
  210. package/dist/cjs/src/p2b.js +1 -1
  211. package/dist/cjs/src/paradex.js +1 -1
  212. package/dist/cjs/src/paymium.js +1 -1
  213. package/dist/cjs/src/poloniex.js +1 -1
  214. package/dist/cjs/src/pro/alpaca.js +1 -1
  215. package/dist/cjs/src/pro/apex.js +1 -1
  216. package/dist/cjs/src/pro/arkham.js +1 -1
  217. package/dist/cjs/src/pro/ascendex.js +1 -1
  218. package/dist/cjs/src/pro/backpack.js +1 -1
  219. package/dist/cjs/src/pro/bequant.js +1 -1
  220. package/dist/cjs/src/pro/binance.js +59 -144
  221. package/dist/cjs/src/pro/binancecoinm.js +1 -1
  222. package/dist/cjs/src/pro/binanceus.js +1 -1
  223. package/dist/cjs/src/pro/binanceusdm.js +1 -1
  224. package/dist/cjs/src/pro/bingx.js +1 -1
  225. package/dist/cjs/src/pro/bitfinex.js +1 -1
  226. package/dist/cjs/src/pro/bitget.js +1 -1
  227. package/dist/cjs/src/pro/bithumb.js +1 -1
  228. package/dist/cjs/src/pro/bitmart.js +1 -1
  229. package/dist/cjs/src/pro/bitmex.js +1 -1
  230. package/dist/cjs/src/pro/bitrue.js +1 -1
  231. package/dist/cjs/src/pro/bitstamp.js +1 -1
  232. package/dist/cjs/src/pro/bitvavo.js +1 -1
  233. package/dist/cjs/src/pro/blockchaincom.js +1 -1
  234. package/dist/cjs/src/pro/blofin.js +1 -1
  235. package/dist/cjs/src/pro/bybit.js +1 -1
  236. package/dist/cjs/src/pro/cex.js +1 -1
  237. package/dist/cjs/src/pro/coinbase.js +1 -1
  238. package/dist/cjs/src/pro/coinbaseadvanced.js +1 -1
  239. package/dist/cjs/src/pro/coinbaseexchange.js +1 -1
  240. package/dist/cjs/src/pro/coinbaseinternational.js +1 -1
  241. package/dist/cjs/src/pro/coincatch.js +1 -1
  242. package/dist/cjs/src/pro/coincheck.js +1 -1
  243. package/dist/cjs/src/pro/coinex.js +1 -1
  244. package/dist/cjs/src/pro/coinone.js +1 -1
  245. package/dist/cjs/src/pro/cryptocom.js +1 -1
  246. package/dist/cjs/src/pro/deepcoin.js +1 -1
  247. package/dist/cjs/src/pro/defx.js +1 -1
  248. package/dist/cjs/src/pro/deribit.js +1 -1
  249. package/dist/cjs/src/pro/dydx.js +418 -0
  250. package/dist/cjs/src/pro/exmo.js +1 -1
  251. package/dist/cjs/src/pro/gate.js +1 -1
  252. package/dist/cjs/src/pro/gateio.js +1 -1
  253. package/dist/cjs/src/pro/gemini.js +1 -1
  254. package/dist/cjs/src/pro/hashkey.js +1 -1
  255. package/dist/cjs/src/pro/hitbtc.js +1 -1
  256. package/dist/cjs/src/pro/hollaex.js +1 -1
  257. package/dist/cjs/src/pro/htx.js +1 -1
  258. package/dist/cjs/src/pro/huobi.js +1 -1
  259. package/dist/cjs/src/pro/hyperliquid.js +1 -1
  260. package/dist/cjs/src/pro/independentreserve.js +1 -1
  261. package/dist/cjs/src/pro/kraken.js +5 -4
  262. package/dist/cjs/src/pro/krakenfutures.js +1 -1
  263. package/dist/cjs/src/pro/kucoin.js +1 -1
  264. package/dist/cjs/src/pro/kucoinfutures.js +1 -1
  265. package/dist/cjs/src/pro/lbank.js +0 -1
  266. package/dist/cjs/src/pro/luno.js +1 -1
  267. package/dist/cjs/src/pro/mexc.js +1 -1
  268. package/dist/cjs/src/pro/myokx.js +1 -1
  269. package/dist/cjs/src/pro/ndax.js +1 -1
  270. package/dist/cjs/src/pro/okx.js +1 -1
  271. package/dist/cjs/src/pro/okxus.js +1 -1
  272. package/dist/cjs/src/pro/onetrading.js +1 -1
  273. package/dist/cjs/src/pro/oxfun.js +1 -1
  274. package/dist/cjs/src/pro/p2b.js +1 -1
  275. package/dist/cjs/src/pro/paradex.js +1 -1
  276. package/dist/cjs/src/pro/phemex.js +1 -1
  277. package/dist/cjs/src/pro/poloniex.js +1 -1
  278. package/dist/cjs/src/pro/probit.js +1 -1
  279. package/dist/cjs/src/pro/toobit.js +1 -1
  280. package/dist/cjs/src/pro/upbit.js +1 -1
  281. package/dist/cjs/src/pro/whitebit.js +1 -1
  282. package/dist/cjs/src/pro/xt.js +218 -5
  283. package/dist/cjs/src/probit.js +1 -1
  284. package/dist/cjs/src/protobuf/mexc/compiled.cjs.js +2 -0
  285. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.js +55 -0
  286. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.js +55 -0
  287. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.js +47 -0
  288. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.js +342 -0
  289. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.js +716 -0
  290. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.js +59 -0
  291. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.js +44 -0
  292. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.js +379 -0
  293. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.js +71 -0
  294. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.js +210 -0
  295. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.js +194 -0
  296. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.js +48 -0
  297. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.js +56 -0
  298. package/dist/cjs/src/static_dependencies/dydx-v4-client/google/protobuf/any.js +55 -0
  299. package/dist/cjs/src/static_dependencies/dydx-v4-client/helpers.js +37 -0
  300. package/dist/cjs/src/static_dependencies/dydx-v4-client/long/index.cjs.js +9 -0
  301. package/dist/cjs/src/static_dependencies/dydx-v4-client/onboarding.js +58 -0
  302. package/dist/cjs/src/static_dependencies/dydx-v4-client/registry.js +38 -0
  303. package/dist/cjs/src/static_dependencies/ethers/abi-coder.js +0 -6
  304. package/dist/cjs/src/static_dependencies/ethers/address/address.js +1 -1
  305. package/dist/cjs/src/static_dependencies/ethers/coders/abstract-coder.js +0 -6
  306. package/dist/cjs/src/static_dependencies/ethers/coders/address.js +0 -1
  307. package/dist/cjs/src/static_dependencies/ethers/coders/anonymous.js +0 -1
  308. package/dist/cjs/src/static_dependencies/ethers/coders/array.js +0 -1
  309. package/dist/cjs/src/static_dependencies/ethers/coders/boolean.js +0 -1
  310. package/dist/cjs/src/static_dependencies/ethers/coders/bytes.js +0 -1
  311. package/dist/cjs/src/static_dependencies/ethers/coders/fixed-bytes.js +0 -1
  312. package/dist/cjs/src/static_dependencies/ethers/coders/null.js +0 -1
  313. package/dist/cjs/src/static_dependencies/ethers/coders/number.js +0 -1
  314. package/dist/cjs/src/static_dependencies/ethers/coders/string.js +0 -1
  315. package/dist/cjs/src/static_dependencies/ethers/coders/tuple.js +0 -1
  316. package/dist/cjs/src/static_dependencies/ethers/fragments.js +0 -6
  317. package/dist/cjs/src/static_dependencies/ethers/hash/typed-data.js +0 -6
  318. package/dist/cjs/src/static_dependencies/ethers/index.js +10 -1
  319. package/dist/cjs/src/static_dependencies/ethers/interface.js +0 -6
  320. package/dist/cjs/src/static_dependencies/ethers/typed.js +0 -6
  321. package/dist/cjs/src/static_dependencies/ethers/utils/base58.js +13 -1
  322. package/dist/cjs/src/static_dependencies/ethers/utils/data.js +6 -1
  323. package/dist/cjs/src/static_dependencies/ethers/utils/errors.js +9 -1
  324. package/dist/cjs/src/static_dependencies/ethers/utils/events.js +0 -6
  325. package/dist/cjs/src/static_dependencies/ethers/utils/fixednumber.js +0 -6
  326. package/dist/cjs/src/static_dependencies/ethers/utils/index.js +7 -1
  327. package/dist/cjs/src/static_dependencies/ethers/utils/maths.js +5 -1
  328. package/dist/cjs/src/static_dependencies/ethers/utils/properties.js +0 -6
  329. package/dist/cjs/src/static_dependencies/ethers/utils/utf8.js +8 -1
  330. package/dist/cjs/src/static_dependencies/fflake/browser.js +1 -1
  331. package/dist/cjs/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -1
  332. package/dist/cjs/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -1
  333. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +1 -1
  334. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -6
  335. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -6
  336. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -6
  337. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -1
  338. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +1 -1
  339. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -6
  340. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +1 -1
  341. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +1 -1
  342. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -6
  343. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +1 -1
  344. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -6
  345. package/dist/cjs/src/static_dependencies/messagepack/msgpack.js +0 -6
  346. package/dist/cjs/src/static_dependencies/noble-curves/_shortw_utils.js +1 -1
  347. package/dist/cjs/src/static_dependencies/noble-curves/abstract/curve.js +1 -1
  348. package/dist/cjs/src/static_dependencies/noble-curves/abstract/edwards.js +1 -1
  349. package/dist/cjs/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +0 -1
  350. package/dist/cjs/src/static_dependencies/noble-curves/abstract/modular.js +1 -1
  351. package/dist/cjs/src/static_dependencies/noble-curves/abstract/montgomery.js +1 -1
  352. package/dist/cjs/src/static_dependencies/noble-curves/abstract/poseidon.js +1 -1
  353. package/dist/cjs/src/static_dependencies/noble-curves/abstract/utils.js +0 -6
  354. package/dist/cjs/src/static_dependencies/noble-curves/abstract/weierstrass.js +1 -1
  355. package/dist/cjs/src/static_dependencies/noble-curves/ed25519.js +1 -1
  356. package/dist/cjs/src/static_dependencies/noble-curves/p256.js +1 -1
  357. package/dist/cjs/src/static_dependencies/noble-curves/secp256k1.js +1 -1
  358. package/dist/cjs/src/static_dependencies/noble-hashes/_assert.js +0 -6
  359. package/dist/cjs/src/static_dependencies/noble-hashes/_sha2.js +0 -1
  360. package/dist/cjs/src/static_dependencies/noble-hashes/_u64.js +0 -6
  361. package/dist/cjs/src/static_dependencies/noble-hashes/crypto.js +0 -6
  362. package/dist/cjs/src/static_dependencies/noble-hashes/hmac.js +0 -1
  363. package/dist/cjs/src/static_dependencies/noble-hashes/md5.js +0 -1
  364. package/dist/cjs/src/static_dependencies/noble-hashes/pbkdf2.js +68 -0
  365. package/dist/cjs/src/static_dependencies/noble-hashes/ripemd160.js +107 -0
  366. package/dist/cjs/src/static_dependencies/noble-hashes/sha1.js +0 -1
  367. package/dist/cjs/src/static_dependencies/noble-hashes/sha256.js +0 -1
  368. package/dist/cjs/src/static_dependencies/noble-hashes/sha3.js +0 -1
  369. package/dist/cjs/src/static_dependencies/noble-hashes/sha512.js +0 -1
  370. package/dist/cjs/src/static_dependencies/noble-hashes/utils.js +51 -2
  371. package/dist/cjs/src/static_dependencies/node-fetch/body.js +5 -1
  372. package/dist/cjs/src/static_dependencies/node-fetch/errors/abort-error.js +0 -1
  373. package/dist/cjs/src/static_dependencies/node-fetch/errors/base.js +0 -6
  374. package/dist/cjs/src/static_dependencies/node-fetch/errors/fetch-error.js +0 -1
  375. package/dist/cjs/src/static_dependencies/node-fetch/headers.js +5 -1
  376. package/dist/cjs/src/static_dependencies/node-fetch/index.js +7 -1
  377. package/dist/cjs/src/static_dependencies/node-fetch/request.js +7 -1
  378. package/dist/cjs/src/static_dependencies/node-fetch/response.js +5 -1
  379. package/dist/cjs/src/static_dependencies/node-fetch/utils/get-search.js +0 -6
  380. package/dist/cjs/src/static_dependencies/node-fetch/utils/is-redirect.js +0 -6
  381. package/dist/cjs/src/static_dependencies/node-fetch/utils/is.js +0 -6
  382. package/dist/cjs/src/static_dependencies/node-fetch/utils/referrer.js +0 -1
  383. package/dist/cjs/src/static_dependencies/proxies/agent-base/index.js +0 -1
  384. package/dist/cjs/src/static_dependencies/proxies/http-proxy-agent/index.js +0 -1
  385. package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/index.js +0 -1
  386. package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +0 -6
  387. package/dist/cjs/src/static_dependencies/qs/formats.js +0 -6
  388. package/dist/cjs/src/static_dependencies/qs/index.js +0 -1
  389. package/dist/cjs/src/static_dependencies/qs/parse.js +0 -1
  390. package/dist/cjs/src/static_dependencies/qs/stringify.js +0 -1
  391. package/dist/cjs/src/static_dependencies/qs/utils.js +0 -6
  392. package/dist/cjs/src/static_dependencies/scure-base/index.js +29 -6
  393. package/dist/cjs/src/static_dependencies/scure-bip32/index.js +296 -0
  394. package/dist/cjs/src/static_dependencies/scure-bip39/index.js +97 -0
  395. package/dist/cjs/src/static_dependencies/scure-bip39/wordlists/english.js +2054 -0
  396. package/dist/cjs/src/static_dependencies/scure-starknet/index.js +1 -1
  397. package/dist/cjs/src/static_dependencies/starknet/constants.js +1 -1
  398. package/dist/cjs/src/static_dependencies/starknet/types/calldata.js +0 -6
  399. package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/abi.js +0 -6
  400. package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/index.js +0 -6
  401. package/dist/cjs/src/static_dependencies/starknet/types/lib/index.js +0 -6
  402. package/dist/cjs/src/static_dependencies/starknet/types/typedData.js +0 -6
  403. package/dist/cjs/src/static_dependencies/starknet/utils/assert.js +0 -6
  404. package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +1 -1
  405. package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +1 -1
  406. package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +1 -1
  407. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/byteArray.js +0 -1
  408. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/cairo.js +0 -1
  409. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +0 -6
  410. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +0 -6
  411. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +0 -6
  412. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/formatter.js +0 -1
  413. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/index.js +1 -1
  414. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/index.js +0 -1
  415. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +0 -1
  416. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +0 -6
  417. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +0 -1
  418. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/requestParser.js +0 -1
  419. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/responseParser.js +0 -1
  420. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/tuple.js +1 -1
  421. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/validate.js +4 -1
  422. package/dist/cjs/src/static_dependencies/starknet/utils/encode.js +0 -1
  423. package/dist/cjs/src/static_dependencies/starknet/utils/hash/classHash.js +3 -1
  424. package/dist/cjs/src/static_dependencies/starknet/utils/merkle.js +0 -1
  425. package/dist/cjs/src/static_dependencies/starknet/utils/num.js +0 -1
  426. package/dist/cjs/src/static_dependencies/starknet/utils/selector.js +0 -1
  427. package/dist/cjs/src/static_dependencies/starknet/utils/shortString.js +0 -1
  428. package/dist/cjs/src/static_dependencies/starknet/utils/typedData.js +1 -1
  429. package/dist/cjs/src/static_dependencies/watchable/src/unpromise.js +0 -6
  430. package/dist/cjs/src/static_dependencies/zklink/zklink-sdk-web.js +1 -5
  431. package/dist/cjs/src/timex.js +0 -1
  432. package/dist/cjs/src/tokocrypto.js +1 -1
  433. package/dist/cjs/src/toobit.js +3 -2
  434. package/dist/cjs/src/upbit.js +1 -1
  435. package/dist/cjs/src/wavesexchange.js +1 -1
  436. package/dist/cjs/src/whitebit.js +1 -1
  437. package/dist/cjs/src/woo.js +1 -1
  438. package/dist/cjs/src/woofipro.js +1 -1
  439. package/dist/cjs/src/xt.js +1 -1
  440. package/dist/cjs/src/yobit.js +1 -1
  441. package/dist/cjs/src/zaif.js +1 -1
  442. package/dist/cjs/src/zonda.js +1 -1
  443. package/js/ccxt.d.ts +8 -2
  444. package/js/ccxt.js +6 -8
  445. package/js/src/abstract/alpaca.js +0 -6
  446. package/js/src/abstract/apex.js +0 -6
  447. package/js/src/abstract/arkham.js +0 -6
  448. package/js/src/abstract/ascendex.js +0 -6
  449. package/js/src/abstract/backpack.js +0 -6
  450. package/js/src/abstract/bequant.js +0 -6
  451. package/js/src/abstract/bigone.js +0 -6
  452. package/js/src/abstract/binance.js +0 -6
  453. package/js/src/abstract/binancecoinm.js +0 -6
  454. package/js/src/abstract/binanceus.js +0 -6
  455. package/js/src/abstract/binanceusdm.js +0 -6
  456. package/js/src/abstract/bingx.js +0 -6
  457. package/js/src/abstract/bit2c.js +0 -6
  458. package/js/src/abstract/bitbank.js +0 -6
  459. package/js/src/abstract/bitbns.js +0 -6
  460. package/js/src/abstract/bitfinex.js +0 -6
  461. package/js/src/abstract/bitflyer.js +0 -6
  462. package/js/src/abstract/bitget.d.ts +1 -0
  463. package/js/src/abstract/bitget.js +0 -6
  464. package/js/src/abstract/bithumb.js +0 -6
  465. package/js/src/abstract/bitmart.js +0 -6
  466. package/js/src/abstract/bitmex.js +0 -6
  467. package/js/src/abstract/bitopro.js +0 -6
  468. package/js/src/abstract/bitrue.js +0 -6
  469. package/js/src/abstract/bitso.js +0 -6
  470. package/js/src/abstract/bitstamp.js +0 -6
  471. package/js/src/abstract/bitteam.js +0 -6
  472. package/js/src/abstract/bittrade.js +0 -6
  473. package/js/src/abstract/bitvavo.js +0 -6
  474. package/js/src/abstract/blockchaincom.js +0 -6
  475. package/js/src/abstract/blofin.js +0 -6
  476. package/js/src/abstract/btcalpha.js +0 -6
  477. package/js/src/abstract/btcbox.js +0 -6
  478. package/js/src/abstract/btcmarkets.js +0 -6
  479. package/js/src/abstract/btcturk.js +0 -6
  480. package/js/src/abstract/bybit.js +0 -6
  481. package/js/src/abstract/cex.js +0 -6
  482. package/js/src/abstract/coinbase.js +0 -6
  483. package/js/src/abstract/coinbaseadvanced.js +0 -6
  484. package/js/src/abstract/coinbaseexchange.js +0 -6
  485. package/js/src/abstract/coinbaseinternational.js +0 -6
  486. package/js/src/abstract/coincatch.js +0 -6
  487. package/js/src/abstract/coincheck.js +0 -6
  488. package/js/src/abstract/coinex.js +0 -6
  489. package/js/src/abstract/coinmate.js +0 -6
  490. package/js/src/abstract/coinmetro.js +0 -6
  491. package/js/src/abstract/coinone.js +0 -6
  492. package/js/src/abstract/coinsph.js +0 -6
  493. package/js/src/abstract/coinspot.js +0 -6
  494. package/js/src/abstract/cryptocom.js +0 -6
  495. package/js/src/abstract/cryptomus.js +0 -6
  496. package/js/src/abstract/deepcoin.js +0 -6
  497. package/js/src/abstract/defx.js +0 -6
  498. package/js/src/abstract/delta.js +0 -6
  499. package/js/src/abstract/deribit.js +0 -6
  500. package/js/src/abstract/derive.js +0 -6
  501. package/js/src/abstract/digifinex.js +0 -6
  502. package/js/src/abstract/dydx.d.ts +61 -0
  503. package/js/src/abstract/dydx.js +5 -0
  504. package/js/src/abstract/exmo.js +0 -6
  505. package/js/src/abstract/fmfwio.js +0 -6
  506. package/js/src/abstract/foxbit.js +0 -6
  507. package/js/src/abstract/gate.js +0 -6
  508. package/js/src/abstract/gateio.js +0 -6
  509. package/js/src/abstract/gemini.js +0 -6
  510. package/js/src/abstract/hashkey.js +0 -6
  511. package/js/src/abstract/hibachi.js +0 -6
  512. package/js/src/abstract/hitbtc.js +0 -6
  513. package/js/src/abstract/hollaex.js +0 -6
  514. package/js/src/abstract/htx.js +0 -6
  515. package/js/src/abstract/huobi.js +0 -6
  516. package/js/src/abstract/hyperliquid.js +0 -6
  517. package/js/src/abstract/independentreserve.js +0 -6
  518. package/js/src/abstract/indodax.js +0 -6
  519. package/js/src/abstract/kraken.js +0 -6
  520. package/js/src/abstract/krakenfutures.js +0 -6
  521. package/js/src/abstract/kucoin.d.ts +1 -1
  522. package/js/src/abstract/kucoin.js +0 -6
  523. package/js/src/abstract/kucoinfutures.d.ts +1 -1
  524. package/js/src/abstract/kucoinfutures.js +0 -6
  525. package/js/src/abstract/latoken.js +0 -6
  526. package/js/src/abstract/lbank.js +0 -6
  527. package/js/src/abstract/luno.js +0 -6
  528. package/js/src/abstract/mercado.js +0 -6
  529. package/js/src/abstract/mexc.js +0 -6
  530. package/js/src/abstract/modetrade.js +0 -6
  531. package/js/src/abstract/myokx.js +0 -6
  532. package/js/src/abstract/ndax.js +0 -6
  533. package/js/src/abstract/novadax.js +0 -6
  534. package/js/src/abstract/oceanex.js +0 -6
  535. package/js/src/abstract/okx.js +0 -6
  536. package/js/src/abstract/okxus.js +0 -6
  537. package/js/src/abstract/onetrading.js +0 -6
  538. package/js/src/abstract/oxfun.js +0 -6
  539. package/js/src/abstract/p2b.js +0 -6
  540. package/js/src/abstract/paradex.js +0 -6
  541. package/js/src/abstract/paymium.js +0 -6
  542. package/js/src/abstract/phemex.js +0 -6
  543. package/js/src/abstract/poloniex.js +0 -6
  544. package/js/src/abstract/probit.js +0 -6
  545. package/js/src/abstract/timex.js +0 -6
  546. package/js/src/abstract/tokocrypto.js +0 -6
  547. package/js/src/abstract/toobit.js +0 -6
  548. package/js/src/abstract/upbit.js +0 -6
  549. package/js/src/abstract/wavesexchange.js +0 -6
  550. package/js/src/abstract/whitebit.js +0 -6
  551. package/js/src/abstract/woo.js +0 -6
  552. package/js/src/abstract/woofipro.js +0 -6
  553. package/js/src/abstract/xt.js +0 -6
  554. package/js/src/abstract/yobit.js +0 -6
  555. package/js/src/abstract/zaif.js +0 -6
  556. package/js/src/abstract/zonda.js +0 -6
  557. package/js/src/alpaca.js +0 -6
  558. package/js/src/apex.js +0 -6
  559. package/js/src/arkham.js +0 -6
  560. package/js/src/ascendex.js +0 -6
  561. package/js/src/backpack.js +0 -6
  562. package/js/src/base/Exchange.d.ts +7 -0
  563. package/js/src/base/Exchange.js +157 -7
  564. package/js/src/base/Precise.js +0 -6
  565. package/js/src/base/errorHierarchy.js +0 -6
  566. package/js/src/base/errors.js +0 -6
  567. package/js/src/base/functions/crypto.js +0 -6
  568. package/js/src/base/functions/encode.js +0 -6
  569. package/js/src/base/functions/generic.js +0 -6
  570. package/js/src/base/functions/misc.js +0 -6
  571. package/js/src/base/functions/number.js +0 -6
  572. package/js/src/base/functions/platform.js +0 -6
  573. package/js/src/base/functions/rsa.js +0 -6
  574. package/js/src/base/functions/string.js +0 -6
  575. package/js/src/base/functions/throttle.js +0 -6
  576. package/js/src/base/functions/time.js +0 -6
  577. package/js/src/base/functions/totp.js +0 -6
  578. package/js/src/base/functions/type.js +0 -6
  579. package/js/src/base/functions.js +0 -6
  580. package/js/src/base/types.js +0 -6
  581. package/js/src/base/ws/Cache.js +0 -6
  582. package/js/src/base/ws/Client.js +0 -6
  583. package/js/src/base/ws/Future.js +0 -6
  584. package/js/src/base/ws/OrderBook.js +0 -6
  585. package/js/src/base/ws/OrderBookSide.js +0 -6
  586. package/js/src/base/ws/WsClient.js +0 -6
  587. package/js/src/base/ws/functions.js +0 -6
  588. package/js/src/bequant.js +0 -6
  589. package/js/src/bigone.js +0 -6
  590. package/js/src/binance.js +0 -6
  591. package/js/src/binancecoinm.js +0 -6
  592. package/js/src/binanceus.js +0 -6
  593. package/js/src/binanceusdm.js +0 -6
  594. package/js/src/bingx.js +20 -6
  595. package/js/src/bit2c.js +0 -6
  596. package/js/src/bitbank.js +0 -6
  597. package/js/src/bitbns.js +0 -6
  598. package/js/src/bitfinex.js +0 -6
  599. package/js/src/bitflyer.js +0 -6
  600. package/js/src/bitget.d.ts +3 -3
  601. package/js/src/bitget.js +43 -47
  602. package/js/src/bithumb.js +0 -6
  603. package/js/src/bitmart.js +0 -6
  604. package/js/src/bitmex.js +0 -6
  605. package/js/src/bitopro.js +0 -6
  606. package/js/src/bitrue.js +0 -6
  607. package/js/src/bitso.js +0 -6
  608. package/js/src/bitstamp.js +0 -6
  609. package/js/src/bitteam.js +0 -6
  610. package/js/src/bittrade.js +0 -6
  611. package/js/src/bitvavo.js +0 -6
  612. package/js/src/blockchaincom.js +0 -6
  613. package/js/src/blofin.js +0 -6
  614. package/js/src/btcalpha.js +0 -6
  615. package/js/src/btcbox.js +0 -6
  616. package/js/src/btcmarkets.js +0 -6
  617. package/js/src/btcturk.js +0 -6
  618. package/js/src/bybit.js +0 -6
  619. package/js/src/cex.js +0 -6
  620. package/js/src/coinbase.js +0 -6
  621. package/js/src/coinbaseadvanced.js +0 -6
  622. package/js/src/coinbaseexchange.js +0 -6
  623. package/js/src/coinbaseinternational.js +0 -6
  624. package/js/src/coincatch.js +0 -6
  625. package/js/src/coincheck.js +0 -6
  626. package/js/src/coinex.js +0 -6
  627. package/js/src/coinmate.js +0 -6
  628. package/js/src/coinmetro.js +0 -6
  629. package/js/src/coinone.js +0 -6
  630. package/js/src/coinsph.js +0 -6
  631. package/js/src/coinspot.js +0 -6
  632. package/js/src/cryptocom.js +0 -6
  633. package/js/src/cryptomus.js +0 -6
  634. package/js/src/deepcoin.js +0 -6
  635. package/js/src/defx.js +0 -6
  636. package/js/src/delta.js +0 -6
  637. package/js/src/deribit.js +6 -6
  638. package/js/src/derive.js +0 -6
  639. package/js/src/digifinex.js +0 -6
  640. package/js/src/dydx.d.ts +364 -0
  641. package/js/src/dydx.js +2446 -0
  642. package/js/src/exmo.js +0 -6
  643. package/js/src/fmfwio.js +0 -6
  644. package/js/src/foxbit.js +0 -6
  645. package/js/src/gate.js +0 -6
  646. package/js/src/gateio.js +0 -6
  647. package/js/src/gemini.js +0 -6
  648. package/js/src/hashkey.js +0 -6
  649. package/js/src/hibachi.js +1 -7
  650. package/js/src/hitbtc.js +0 -6
  651. package/js/src/hollaex.js +0 -6
  652. package/js/src/htx.js +0 -6
  653. package/js/src/huobi.js +0 -6
  654. package/js/src/hyperliquid.js +0 -6
  655. package/js/src/independentreserve.js +0 -6
  656. package/js/src/indodax.js +0 -6
  657. package/js/src/kraken.js +0 -6
  658. package/js/src/krakenfutures.js +0 -6
  659. package/js/src/kucoin.d.ts +48 -1
  660. package/js/src/kucoin.js +711 -115
  661. package/js/src/kucoinfutures.js +0 -6
  662. package/js/src/latoken.js +0 -6
  663. package/js/src/lbank.js +0 -6
  664. package/js/src/luno.js +0 -6
  665. package/js/src/mercado.js +0 -6
  666. package/js/src/mexc.js +0 -6
  667. package/js/src/modetrade.js +0 -6
  668. package/js/src/myokx.js +0 -6
  669. package/js/src/ndax.js +0 -6
  670. package/js/src/novadax.js +0 -6
  671. package/js/src/oceanex.js +0 -6
  672. package/js/src/okx.js +0 -6
  673. package/js/src/okxus.js +0 -6
  674. package/js/src/onetrading.js +0 -6
  675. package/js/src/oxfun.js +0 -6
  676. package/js/src/p2b.js +0 -6
  677. package/js/src/paradex.js +0 -6
  678. package/js/src/paymium.js +0 -6
  679. package/js/src/phemex.js +0 -6
  680. package/js/src/poloniex.js +0 -6
  681. package/js/src/pro/alpaca.js +0 -6
  682. package/js/src/pro/apex.js +0 -6
  683. package/js/src/pro/arkham.js +0 -6
  684. package/js/src/pro/ascendex.js +0 -6
  685. package/js/src/pro/backpack.js +0 -6
  686. package/js/src/pro/bequant.js +0 -6
  687. package/js/src/pro/binance.d.ts +2 -2
  688. package/js/src/pro/binance.js +59 -150
  689. package/js/src/pro/binancecoinm.js +0 -6
  690. package/js/src/pro/binanceus.js +0 -6
  691. package/js/src/pro/binanceusdm.js +0 -6
  692. package/js/src/pro/bingx.js +0 -6
  693. package/js/src/pro/bitfinex.js +0 -6
  694. package/js/src/pro/bitget.js +0 -6
  695. package/js/src/pro/bithumb.js +0 -6
  696. package/js/src/pro/bitmart.js +0 -6
  697. package/js/src/pro/bitmex.js +0 -6
  698. package/js/src/pro/bitopro.js +0 -6
  699. package/js/src/pro/bitrue.js +0 -6
  700. package/js/src/pro/bitstamp.js +0 -6
  701. package/js/src/pro/bittrade.js +0 -6
  702. package/js/src/pro/bitvavo.js +0 -6
  703. package/js/src/pro/blockchaincom.js +0 -6
  704. package/js/src/pro/blofin.js +0 -6
  705. package/js/src/pro/bybit.js +0 -6
  706. package/js/src/pro/cex.js +0 -6
  707. package/js/src/pro/coinbase.js +0 -6
  708. package/js/src/pro/coinbaseadvanced.js +0 -6
  709. package/js/src/pro/coinbaseexchange.js +0 -6
  710. package/js/src/pro/coinbaseinternational.js +0 -6
  711. package/js/src/pro/coincatch.js +0 -6
  712. package/js/src/pro/coincheck.js +0 -6
  713. package/js/src/pro/coinex.js +0 -6
  714. package/js/src/pro/coinone.js +0 -6
  715. package/js/src/pro/cryptocom.js +0 -6
  716. package/js/src/pro/deepcoin.js +0 -6
  717. package/js/src/pro/defx.js +0 -6
  718. package/js/src/pro/deribit.js +0 -6
  719. package/js/src/pro/derive.js +0 -6
  720. package/js/src/pro/dydx.d.ts +81 -0
  721. package/js/src/pro/dydx.js +411 -0
  722. package/js/src/pro/exmo.js +0 -6
  723. package/js/src/pro/gate.js +0 -6
  724. package/js/src/pro/gateio.js +0 -6
  725. package/js/src/pro/gemini.js +0 -6
  726. package/js/src/pro/hashkey.js +0 -6
  727. package/js/src/pro/hitbtc.js +0 -6
  728. package/js/src/pro/hollaex.js +0 -6
  729. package/js/src/pro/htx.js +0 -6
  730. package/js/src/pro/huobi.js +0 -6
  731. package/js/src/pro/hyperliquid.js +0 -6
  732. package/js/src/pro/independentreserve.js +0 -6
  733. package/js/src/pro/kraken.js +4 -9
  734. package/js/src/pro/krakenfutures.js +0 -6
  735. package/js/src/pro/kucoin.js +0 -6
  736. package/js/src/pro/kucoinfutures.js +0 -6
  737. package/js/src/pro/lbank.js +0 -6
  738. package/js/src/pro/luno.js +0 -6
  739. package/js/src/pro/mexc.js +0 -6
  740. package/js/src/pro/modetrade.js +0 -6
  741. package/js/src/pro/myokx.js +0 -6
  742. package/js/src/pro/ndax.js +0 -6
  743. package/js/src/pro/okx.js +0 -6
  744. package/js/src/pro/okxus.js +0 -6
  745. package/js/src/pro/onetrading.js +0 -6
  746. package/js/src/pro/oxfun.js +0 -6
  747. package/js/src/pro/p2b.js +0 -6
  748. package/js/src/pro/paradex.js +0 -6
  749. package/js/src/pro/phemex.js +0 -6
  750. package/js/src/pro/poloniex.js +0 -6
  751. package/js/src/pro/probit.js +0 -6
  752. package/js/src/pro/toobit.js +0 -6
  753. package/js/src/pro/upbit.js +0 -6
  754. package/js/src/pro/whitebit.js +0 -6
  755. package/js/src/pro/woo.js +0 -6
  756. package/js/src/pro/woofipro.js +0 -6
  757. package/js/src/pro/xt.d.ts +85 -2
  758. package/js/src/pro/xt.js +217 -10
  759. package/js/src/probit.js +0 -6
  760. package/js/src/protobuf/mexc/compiled.cjs +0 -6
  761. package/js/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.d.ts +90 -0
  762. package/js/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.js +157 -0
  763. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/keys.d.ts +26 -0
  764. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/keys.js +45 -0
  765. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
  766. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.js +79 -0
  767. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.d.ts +40 -0
  768. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.js +71 -0
  769. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.d.ts +162 -0
  770. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.js +323 -0
  771. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.d.ts +460 -0
  772. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.js +692 -0
  773. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.d.ts +127 -0
  774. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.js +280 -0
  775. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/block_rate_limit_config.d.ts +66 -0
  776. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/block_rate_limit_config.js +103 -0
  777. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.d.ts +127 -0
  778. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.js +251 -0
  779. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/equity_tier_limit_config.d.ts +48 -0
  780. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/equity_tier_limit_config.js +87 -0
  781. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/finalize_block.d.ts +23 -0
  782. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/finalize_block.js +37 -0
  783. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations.d.ts +92 -0
  784. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations.js +158 -0
  785. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations_config.d.ts +124 -0
  786. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations_config.js +190 -0
  787. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/matches.d.ts +159 -0
  788. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/matches.js +318 -0
  789. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.d.ts +546 -0
  790. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.js +866 -0
  791. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.d.ts +84 -0
  792. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.js +175 -0
  793. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.d.ts +397 -0
  794. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.js +751 -0
  795. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.d.ts +120 -0
  796. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.js +240 -0
  797. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.d.ts +79 -0
  798. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.js +141 -0
  799. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/asset_position.d.ts +32 -0
  800. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/asset_position.js +53 -0
  801. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/perpetual_position.d.ts +34 -0
  802. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/perpetual_position.js +60 -0
  803. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.d.ts +62 -0
  804. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.js +105 -0
  805. package/js/src/static_dependencies/dydx-v4-client/google/protobuf/any.d.ts +207 -0
  806. package/js/src/static_dependencies/dydx-v4-client/google/protobuf/any.js +44 -0
  807. package/js/src/static_dependencies/dydx-v4-client/helpers.d.ts +82 -0
  808. package/js/src/static_dependencies/dydx-v4-client/helpers.js +144 -0
  809. package/js/src/static_dependencies/dydx-v4-client/long/index.cjs +1467 -0
  810. package/js/src/static_dependencies/dydx-v4-client/long/index.d.cts +2 -0
  811. package/js/src/static_dependencies/dydx-v4-client/onboarding.d.ts +35 -0
  812. package/js/src/static_dependencies/dydx-v4-client/onboarding.js +50 -0
  813. package/js/src/static_dependencies/dydx-v4-client/registry.d.ts +7 -0
  814. package/js/src/static_dependencies/dydx-v4-client/registry.js +30 -0
  815. package/js/src/static_dependencies/ethers/abi-coder.js +0 -6
  816. package/js/src/static_dependencies/ethers/address/address.js +0 -6
  817. package/js/src/static_dependencies/ethers/address/checks.js +0 -6
  818. package/js/src/static_dependencies/ethers/address/contract-address.js +0 -6
  819. package/js/src/static_dependencies/ethers/address/index.js +0 -6
  820. package/js/src/static_dependencies/ethers/bytes32.js +0 -6
  821. package/js/src/static_dependencies/ethers/coders/abstract-coder.js +0 -6
  822. package/js/src/static_dependencies/ethers/coders/address.js +0 -6
  823. package/js/src/static_dependencies/ethers/coders/anonymous.js +0 -6
  824. package/js/src/static_dependencies/ethers/coders/array.js +0 -6
  825. package/js/src/static_dependencies/ethers/coders/boolean.js +0 -6
  826. package/js/src/static_dependencies/ethers/coders/bytes.js +0 -6
  827. package/js/src/static_dependencies/ethers/coders/fixed-bytes.js +0 -6
  828. package/js/src/static_dependencies/ethers/coders/null.js +0 -6
  829. package/js/src/static_dependencies/ethers/coders/number.js +0 -6
  830. package/js/src/static_dependencies/ethers/coders/string.js +0 -6
  831. package/js/src/static_dependencies/ethers/coders/tuple.js +0 -6
  832. package/js/src/static_dependencies/ethers/fragments.js +0 -6
  833. package/js/src/static_dependencies/ethers/hash/index.js +0 -6
  834. package/js/src/static_dependencies/ethers/hash/solidity.js +0 -6
  835. package/js/src/static_dependencies/ethers/hash/typed-data.js +0 -6
  836. package/js/src/static_dependencies/ethers/index.js +0 -6
  837. package/js/src/static_dependencies/ethers/interface.js +0 -6
  838. package/js/src/static_dependencies/ethers/typed.js +0 -6
  839. package/js/src/static_dependencies/ethers/utils/base58.js +0 -6
  840. package/js/src/static_dependencies/ethers/utils/base64-browser.js +0 -6
  841. package/js/src/static_dependencies/ethers/utils/base64.js +0 -6
  842. package/js/src/static_dependencies/ethers/utils/data.js +0 -6
  843. package/js/src/static_dependencies/ethers/utils/errors.js +0 -6
  844. package/js/src/static_dependencies/ethers/utils/events.js +0 -6
  845. package/js/src/static_dependencies/ethers/utils/fixednumber.js +0 -6
  846. package/js/src/static_dependencies/ethers/utils/index.js +0 -6
  847. package/js/src/static_dependencies/ethers/utils/maths.js +0 -6
  848. package/js/src/static_dependencies/ethers/utils/properties.js +0 -6
  849. package/js/src/static_dependencies/ethers/utils/rlp-decode.js +0 -6
  850. package/js/src/static_dependencies/ethers/utils/rlp-encode.js +0 -6
  851. package/js/src/static_dependencies/ethers/utils/rlp.js +0 -6
  852. package/js/src/static_dependencies/ethers/utils/units.js +0 -6
  853. package/js/src/static_dependencies/ethers/utils/utf8.js +0 -6
  854. package/js/src/static_dependencies/ethers/utils/uuid.js +0 -6
  855. package/js/src/static_dependencies/fflake/browser.js +0 -6
  856. package/js/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -6
  857. package/js/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -6
  858. package/js/src/static_dependencies/jsencrypt/index.js +0 -6
  859. package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +0 -6
  860. package/js/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -6
  861. package/js/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -6
  862. package/js/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -6
  863. package/js/src/static_dependencies/jsencrypt/lib/asn1js/oids.js +0 -6
  864. package/js/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -6
  865. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +0 -6
  866. package/js/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -6
  867. package/js/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +0 -6
  868. package/js/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +0 -6
  869. package/js/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -6
  870. package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +0 -6
  871. package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -6
  872. package/js/src/static_dependencies/messagepack/msgpack.js +0 -6
  873. package/js/src/static_dependencies/noble-curves/_shortw_utils.js +0 -6
  874. package/js/src/static_dependencies/noble-curves/abstract/curve.js +0 -6
  875. package/js/src/static_dependencies/noble-curves/abstract/edwards.js +0 -6
  876. package/js/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +0 -6
  877. package/js/src/static_dependencies/noble-curves/abstract/modular.js +0 -6
  878. package/js/src/static_dependencies/noble-curves/abstract/montgomery.js +0 -6
  879. package/js/src/static_dependencies/noble-curves/abstract/poseidon.js +0 -6
  880. package/js/src/static_dependencies/noble-curves/abstract/utils.js +0 -6
  881. package/js/src/static_dependencies/noble-curves/abstract/weierstrass.js +0 -6
  882. package/js/src/static_dependencies/noble-curves/bn.js +0 -6
  883. package/js/src/static_dependencies/noble-curves/ed25519.js +0 -6
  884. package/js/src/static_dependencies/noble-curves/ed448.js +0 -6
  885. package/js/src/static_dependencies/noble-curves/index.js +0 -6
  886. package/js/src/static_dependencies/noble-curves/jubjub.js +0 -6
  887. package/js/src/static_dependencies/noble-curves/p256.js +0 -6
  888. package/js/src/static_dependencies/noble-curves/p384.js +0 -6
  889. package/js/src/static_dependencies/noble-curves/p521.js +0 -6
  890. package/js/src/static_dependencies/noble-curves/pasta.js +0 -6
  891. package/js/src/static_dependencies/noble-curves/secp256k1.js +0 -6
  892. package/js/src/static_dependencies/noble-hashes/_assert.js +0 -6
  893. package/js/src/static_dependencies/noble-hashes/_blake2.js +0 -6
  894. package/js/src/static_dependencies/noble-hashes/_sha2.js +0 -6
  895. package/js/src/static_dependencies/noble-hashes/_u64.js +0 -6
  896. package/js/src/static_dependencies/noble-hashes/argon2.js +0 -6
  897. package/js/src/static_dependencies/noble-hashes/blake2b.js +0 -6
  898. package/js/src/static_dependencies/noble-hashes/blake2s.js +0 -6
  899. package/js/src/static_dependencies/noble-hashes/blake3.js +0 -6
  900. package/js/src/static_dependencies/noble-hashes/crypto.js +0 -6
  901. package/js/src/static_dependencies/noble-hashes/cryptoNode.js +0 -6
  902. package/js/src/static_dependencies/noble-hashes/eskdf.js +0 -6
  903. package/js/src/static_dependencies/noble-hashes/hkdf.js +0 -6
  904. package/js/src/static_dependencies/noble-hashes/hmac.js +0 -6
  905. package/js/src/static_dependencies/noble-hashes/index.js +0 -6
  906. package/js/src/static_dependencies/noble-hashes/md5.js +0 -6
  907. package/js/src/static_dependencies/noble-hashes/pbkdf2.js +0 -6
  908. package/js/src/static_dependencies/noble-hashes/ripemd160.js +0 -6
  909. package/js/src/static_dependencies/noble-hashes/scrypt.js +0 -6
  910. package/js/src/static_dependencies/noble-hashes/sha1.js +0 -6
  911. package/js/src/static_dependencies/noble-hashes/sha256.js +0 -6
  912. package/js/src/static_dependencies/noble-hashes/sha3-addons.js +0 -6
  913. package/js/src/static_dependencies/noble-hashes/sha3.js +0 -6
  914. package/js/src/static_dependencies/noble-hashes/sha512.js +0 -6
  915. package/js/src/static_dependencies/noble-hashes/utils.d.ts +1 -0
  916. package/js/src/static_dependencies/noble-hashes/utils.js +4 -6
  917. package/js/src/static_dependencies/node-fetch/body.js +0 -6
  918. package/js/src/static_dependencies/node-fetch/errors/abort-error.js +0 -6
  919. package/js/src/static_dependencies/node-fetch/errors/base.js +0 -6
  920. package/js/src/static_dependencies/node-fetch/errors/fetch-error.js +0 -6
  921. package/js/src/static_dependencies/node-fetch/headers.js +0 -6
  922. package/js/src/static_dependencies/node-fetch/index.js +0 -6
  923. package/js/src/static_dependencies/node-fetch/request.js +0 -6
  924. package/js/src/static_dependencies/node-fetch/response.js +0 -6
  925. package/js/src/static_dependencies/node-fetch/utils/get-search.js +0 -6
  926. package/js/src/static_dependencies/node-fetch/utils/is-redirect.js +0 -6
  927. package/js/src/static_dependencies/node-fetch/utils/is.js +0 -6
  928. package/js/src/static_dependencies/node-fetch/utils/referrer.js +0 -6
  929. package/js/src/static_dependencies/proxies/agent-base/helpers.js +0 -6
  930. package/js/src/static_dependencies/proxies/agent-base/index.js +0 -6
  931. package/js/src/static_dependencies/proxies/http-proxy-agent/index.js +0 -6
  932. package/js/src/static_dependencies/proxies/https-proxy-agent/index.js +0 -6
  933. package/js/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +0 -6
  934. package/js/src/static_dependencies/qs/formats.js +0 -6
  935. package/js/src/static_dependencies/qs/index.js +0 -6
  936. package/js/src/static_dependencies/qs/parse.js +0 -6
  937. package/js/src/static_dependencies/qs/stringify.js +0 -6
  938. package/js/src/static_dependencies/qs/utils.js +0 -6
  939. package/js/src/static_dependencies/scure-base/index.js +0 -6
  940. package/js/src/static_dependencies/scure-bip32/index.d.ts +49 -0
  941. package/js/src/static_dependencies/scure-bip32/index.js +289 -0
  942. package/js/src/static_dependencies/scure-bip39/index.d.ts +54 -0
  943. package/js/src/static_dependencies/scure-bip39/index.js +134 -0
  944. package/js/src/static_dependencies/scure-bip39/wordlists/english.d.ts +1 -0
  945. package/js/src/static_dependencies/scure-bip39/wordlists/english.js +2048 -0
  946. package/js/src/static_dependencies/scure-starknet/index.js +0 -6
  947. package/js/src/static_dependencies/starknet/constants.js +0 -6
  948. package/js/src/static_dependencies/starknet/index.js +0 -6
  949. package/js/src/static_dependencies/starknet/types/cairoEnum.js +0 -6
  950. package/js/src/static_dependencies/starknet/types/calldata.js +0 -6
  951. package/js/src/static_dependencies/starknet/types/index.js +0 -6
  952. package/js/src/static_dependencies/starknet/types/lib/contract/abi.js +0 -6
  953. package/js/src/static_dependencies/starknet/types/lib/contract/index.js +0 -6
  954. package/js/src/static_dependencies/starknet/types/lib/contract/legacy.js +0 -6
  955. package/js/src/static_dependencies/starknet/types/lib/contract/sierra.js +0 -6
  956. package/js/src/static_dependencies/starknet/types/lib/index.js +0 -6
  957. package/js/src/static_dependencies/starknet/types/typedData.js +0 -6
  958. package/js/src/static_dependencies/starknet/utils/address.js +0 -6
  959. package/js/src/static_dependencies/starknet/utils/assert.js +0 -6
  960. package/js/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +0 -6
  961. package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +0 -6
  962. package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +0 -6
  963. package/js/src/static_dependencies/starknet/utils/calldata/byteArray.js +0 -6
  964. package/js/src/static_dependencies/starknet/utils/calldata/cairo.js +0 -6
  965. package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +0 -6
  966. package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +0 -6
  967. package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +0 -6
  968. package/js/src/static_dependencies/starknet/utils/calldata/enum/index.js +0 -6
  969. package/js/src/static_dependencies/starknet/utils/calldata/formatter.js +0 -6
  970. package/js/src/static_dependencies/starknet/utils/calldata/index.js +0 -6
  971. package/js/src/static_dependencies/starknet/utils/calldata/parser/index.js +0 -6
  972. package/js/src/static_dependencies/starknet/utils/calldata/parser/interface.js +0 -6
  973. package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +0 -6
  974. package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +0 -6
  975. package/js/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +0 -6
  976. package/js/src/static_dependencies/starknet/utils/calldata/requestParser.js +0 -6
  977. package/js/src/static_dependencies/starknet/utils/calldata/responseParser.js +0 -6
  978. package/js/src/static_dependencies/starknet/utils/calldata/tuple.js +0 -6
  979. package/js/src/static_dependencies/starknet/utils/calldata/validate.js +0 -6
  980. package/js/src/static_dependencies/starknet/utils/encode.js +0 -6
  981. package/js/src/static_dependencies/starknet/utils/hash/classHash.js +0 -6
  982. package/js/src/static_dependencies/starknet/utils/hash/index.js +0 -6
  983. package/js/src/static_dependencies/starknet/utils/merkle.js +0 -6
  984. package/js/src/static_dependencies/starknet/utils/num.js +0 -6
  985. package/js/src/static_dependencies/starknet/utils/selector.js +0 -6
  986. package/js/src/static_dependencies/starknet/utils/shortString.js +0 -6
  987. package/js/src/static_dependencies/starknet/utils/starknetId.js +0 -6
  988. package/js/src/static_dependencies/starknet/utils/typedData.js +0 -6
  989. package/js/src/static_dependencies/starknet/utils/uint256.js +0 -6
  990. package/js/src/static_dependencies/starknet/utils/url.js +0 -6
  991. package/js/src/static_dependencies/watchable/src/index.js +0 -6
  992. package/js/src/static_dependencies/watchable/src/types.js +0 -6
  993. package/js/src/static_dependencies/watchable/src/unpromise.js +0 -6
  994. package/js/src/static_dependencies/zklink/zklink-sdk-web.js +0 -6
  995. package/js/src/timex.js +0 -6
  996. package/js/src/tokocrypto.js +0 -6
  997. package/js/src/toobit.js +2 -7
  998. package/js/src/upbit.js +0 -6
  999. package/js/src/wavesexchange.js +0 -6
  1000. package/js/src/whitebit.js +0 -6
  1001. package/js/src/woo.js +0 -6
  1002. package/js/src/woofipro.js +0 -6
  1003. package/js/src/xt.js +0 -6
  1004. package/js/src/yobit.js +0 -6
  1005. package/js/src/zaif.js +0 -6
  1006. package/js/src/zonda.js +0 -6
  1007. package/package.json +9 -3
@@ -0,0 +1,1467 @@
1
+ "use strict";
2
+ // GENERATED FILE. DO NOT EDIT.
3
+ (function (global, factory) {
4
+ function preferDefault(exports) {
5
+ return exports.default || exports;
6
+ }
7
+ if (typeof define === "function" && define.amd) {
8
+ define([], function () {
9
+ var exports = {};
10
+ factory(exports);
11
+ return preferDefault(exports);
12
+ });
13
+ }
14
+ else if (typeof exports === "object") {
15
+ factory(exports);
16
+ if (typeof module === "object")
17
+ module.exports = preferDefault(exports);
18
+ }
19
+ else {
20
+ (function () {
21
+ var exports = {};
22
+ factory(exports);
23
+ global.Long = preferDefault(exports);
24
+ })();
25
+ }
26
+ })(typeof globalThis !== "undefined"
27
+ ? globalThis
28
+ : typeof self !== "undefined"
29
+ ? self
30
+ : this, function (_exports) {
31
+ "use strict";
32
+ Object.defineProperty(_exports, "__esModule", {
33
+ value: true,
34
+ });
35
+ _exports.default = void 0;
36
+ /**
37
+ * @license
38
+ * Copyright 2009 The Closure Library Authors
39
+ * Copyright 2020 Daniel Wirtz / The long.js Authors.
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * http://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ *
53
+ * SPDX-License-Identifier: Apache-2.0
54
+ */
55
+ // WebAssembly optimizations to do native i64 multiplication and divide
56
+ var wasm = null;
57
+ try {
58
+ wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
59
+ // \0asm
60
+ 0, 97, 115, 109,
61
+ // version 1
62
+ 1, 0, 0, 0,
63
+ // section "type"
64
+ 1, 13, 2,
65
+ // 0, () => i32
66
+ 96, 0, 1, 127,
67
+ // 1, (i32, i32, i32, i32) => i32
68
+ 96, 4, 127, 127, 127, 127, 1, 127,
69
+ // section "function"
70
+ 3, 7, 6,
71
+ // 0, type 0
72
+ 0,
73
+ // 1, type 1
74
+ 1,
75
+ // 2, type 1
76
+ 1,
77
+ // 3, type 1
78
+ 1,
79
+ // 4, type 1
80
+ 1,
81
+ // 5, type 1
82
+ 1,
83
+ // section "global"
84
+ 6, 6, 1,
85
+ // 0, "high", mutable i32
86
+ 127, 1, 65, 0, 11,
87
+ // section "export"
88
+ 7, 50, 6,
89
+ // 0, "mul"
90
+ 3, 109, 117, 108, 0, 1,
91
+ // 1, "div_s"
92
+ 5, 100, 105, 118, 95, 115, 0, 2,
93
+ // 2, "div_u"
94
+ 5, 100, 105, 118, 95, 117, 0, 3,
95
+ // 3, "rem_s"
96
+ 5, 114, 101, 109, 95, 115, 0, 4,
97
+ // 4, "rem_u"
98
+ 5, 114, 101, 109, 95, 117, 0, 5,
99
+ // 5, "get_high"
100
+ 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0,
101
+ // section "code"
102
+ 10, 191, 1, 6,
103
+ // 0, "get_high"
104
+ 4, 0, 35, 0, 11,
105
+ // 1, "mul"
106
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
107
+ 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0,
108
+ 32, 4, 167, 11,
109
+ // 2, "div_s"
110
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
111
+ 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0,
112
+ 32, 4, 167, 11,
113
+ // 3, "div_u"
114
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
115
+ 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0,
116
+ 32, 4, 167, 11,
117
+ // 4, "rem_s"
118
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
119
+ 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0,
120
+ 32, 4, 167, 11,
121
+ // 5, "rem_u"
122
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
123
+ 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0,
124
+ 32, 4, 167, 11,
125
+ ])), {}).exports;
126
+ }
127
+ catch {
128
+ // no wasm support :(
129
+ }
130
+ /**
131
+ * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.
132
+ * See the from* functions below for more convenient ways of constructing Longs.
133
+ * @exports Long
134
+ * @class A Long class for representing a 64 bit two's-complement integer value.
135
+ * @param {number} low The low (signed) 32 bits of the long
136
+ * @param {number} high The high (signed) 32 bits of the long
137
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
138
+ * @constructor
139
+ */
140
+ function Long(low, high, unsigned) {
141
+ /**
142
+ * The low 32 bits as a signed value.
143
+ * @type {number}
144
+ */
145
+ this.low = low | 0;
146
+ /**
147
+ * The high 32 bits as a signed value.
148
+ * @type {number}
149
+ */
150
+ this.high = high | 0;
151
+ /**
152
+ * Whether unsigned or not.
153
+ * @type {boolean}
154
+ */
155
+ this.unsigned = !!unsigned;
156
+ }
157
+ // The internal representation of a long is the two given signed, 32-bit values.
158
+ // We use 32-bit pieces because these are the size of integers on which
159
+ // Javascript performs bit-operations. For operations like addition and
160
+ // multiplication, we split each number into 16 bit pieces, which can easily be
161
+ // multiplied within Javascript's floating-point representation without overflow
162
+ // or change in sign.
163
+ //
164
+ // In the algorithms below, we frequently reduce the negative case to the
165
+ // positive case by negating the input(s) and then post-processing the result.
166
+ // Note that we must ALWAYS check specially whether those values are MIN_VALUE
167
+ // (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as
168
+ // a positive number, it overflows back into a negative). Not handling this
169
+ // case would often result in infinite recursion.
170
+ //
171
+ // Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*
172
+ // methods on which they depend.
173
+ /**
174
+ * An indicator used to reliably determine if an object is a Long or not.
175
+ * @type {boolean}
176
+ * @const
177
+ * @private
178
+ */
179
+ Long.prototype.__isLong__;
180
+ Object.defineProperty(Long.prototype, "__isLong__", {
181
+ value: true,
182
+ });
183
+ /**
184
+ * @function
185
+ * @param {*} obj Object
186
+ * @returns {boolean}
187
+ * @inner
188
+ */
189
+ function isLong(obj) {
190
+ return (obj && obj["__isLong__"]) === true;
191
+ }
192
+ /**
193
+ * @function
194
+ * @param {*} value number
195
+ * @returns {number}
196
+ * @inner
197
+ */
198
+ function ctz32(value) {
199
+ var c = Math.clz32(value & -value);
200
+ return value ? 31 - c : c;
201
+ }
202
+ /**
203
+ * Tests if the specified object is a Long.
204
+ * @function
205
+ * @param {*} obj Object
206
+ * @returns {boolean}
207
+ */
208
+ Long.isLong = isLong;
209
+ /**
210
+ * A cache of the Long representations of small integer values.
211
+ * @type {!Object}
212
+ * @inner
213
+ */
214
+ var INT_CACHE = {};
215
+ /**
216
+ * A cache of the Long representations of small unsigned integer values.
217
+ * @type {!Object}
218
+ * @inner
219
+ */
220
+ var UINT_CACHE = {};
221
+ /**
222
+ * @param {number} value
223
+ * @param {boolean=} unsigned
224
+ * @returns {!Long}
225
+ * @inner
226
+ */
227
+ function fromInt(value, unsigned) {
228
+ var obj, cachedObj, cache;
229
+ if (unsigned) {
230
+ value >>>= 0;
231
+ if ((cache = 0 <= value && value < 256)) {
232
+ cachedObj = UINT_CACHE[value];
233
+ if (cachedObj)
234
+ return cachedObj;
235
+ }
236
+ obj = fromBits(value, 0, true);
237
+ if (cache)
238
+ UINT_CACHE[value] = obj;
239
+ return obj;
240
+ }
241
+ else {
242
+ value |= 0;
243
+ if ((cache = -128 <= value && value < 128)) {
244
+ cachedObj = INT_CACHE[value];
245
+ if (cachedObj)
246
+ return cachedObj;
247
+ }
248
+ obj = fromBits(value, value < 0 ? -1 : 0, false);
249
+ if (cache)
250
+ INT_CACHE[value] = obj;
251
+ return obj;
252
+ }
253
+ }
254
+ /**
255
+ * Returns a Long representing the given 32 bit integer value.
256
+ * @function
257
+ * @param {number} value The 32 bit integer in question
258
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
259
+ * @returns {!Long} The corresponding Long value
260
+ */
261
+ Long.fromInt = fromInt;
262
+ /**
263
+ * @param {number} value
264
+ * @param {boolean=} unsigned
265
+ * @returns {!Long}
266
+ * @inner
267
+ */
268
+ function fromNumber(value, unsigned) {
269
+ if (isNaN(value))
270
+ return unsigned ? UZERO : ZERO;
271
+ if (unsigned) {
272
+ if (value < 0)
273
+ return UZERO;
274
+ if (value >= TWO_PWR_64_DBL)
275
+ return MAX_UNSIGNED_VALUE;
276
+ }
277
+ else {
278
+ if (value <= -TWO_PWR_63_DBL)
279
+ return MIN_VALUE;
280
+ if (value + 1 >= TWO_PWR_63_DBL)
281
+ return MAX_VALUE;
282
+ }
283
+ if (value < 0)
284
+ return fromNumber(-value, unsigned).neg();
285
+ return fromBits(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
286
+ }
287
+ /**
288
+ * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
289
+ * @function
290
+ * @param {number} value The number in question
291
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
292
+ * @returns {!Long} The corresponding Long value
293
+ */
294
+ Long.fromNumber = fromNumber;
295
+ /**
296
+ * @param {number} lowBits
297
+ * @param {number} highBits
298
+ * @param {boolean=} unsigned
299
+ * @returns {!Long}
300
+ * @inner
301
+ */
302
+ function fromBits(lowBits, highBits, unsigned) {
303
+ return new Long(lowBits, highBits, unsigned);
304
+ }
305
+ /**
306
+ * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is
307
+ * assumed to use 32 bits.
308
+ * @function
309
+ * @param {number} lowBits The low 32 bits
310
+ * @param {number} highBits The high 32 bits
311
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
312
+ * @returns {!Long} The corresponding Long value
313
+ */
314
+ Long.fromBits = fromBits;
315
+ /**
316
+ * @function
317
+ * @param {number} base
318
+ * @param {number} exponent
319
+ * @returns {number}
320
+ * @inner
321
+ */
322
+ var pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)
323
+ /**
324
+ * @param {string} str
325
+ * @param {(boolean|number)=} unsigned
326
+ * @param {number=} radix
327
+ * @returns {!Long}
328
+ * @inner
329
+ */
330
+ function fromString(str, unsigned, radix) {
331
+ if (str.length === 0)
332
+ throw Error("empty string");
333
+ if (typeof unsigned === "number") {
334
+ // For goog.math.long compatibility
335
+ radix = unsigned;
336
+ unsigned = false;
337
+ }
338
+ else {
339
+ unsigned = !!unsigned;
340
+ }
341
+ if (str === "NaN" ||
342
+ str === "Infinity" ||
343
+ str === "+Infinity" ||
344
+ str === "-Infinity")
345
+ return unsigned ? UZERO : ZERO;
346
+ radix = radix || 10;
347
+ if (radix < 2 || 36 < radix)
348
+ throw RangeError("radix");
349
+ var p;
350
+ if ((p = str.indexOf("-")) > 0)
351
+ throw Error("interior hyphen");
352
+ else if (p === 0) {
353
+ return fromString(str.substring(1), unsigned, radix).neg();
354
+ }
355
+ // Do several (8) digits each time through the loop, so as to
356
+ // minimize the calls to the very expensive emulated div.
357
+ var radixToPower = fromNumber(pow_dbl(radix, 8));
358
+ var result = ZERO;
359
+ for (var i = 0; i < str.length; i += 8) {
360
+ var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
361
+ if (size < 8) {
362
+ var power = fromNumber(pow_dbl(radix, size));
363
+ result = result.mul(power).add(fromNumber(value));
364
+ }
365
+ else {
366
+ result = result.mul(radixToPower);
367
+ result = result.add(fromNumber(value));
368
+ }
369
+ }
370
+ result.unsigned = unsigned;
371
+ return result;
372
+ }
373
+ /**
374
+ * Returns a Long representation of the given string, written using the specified radix.
375
+ * @function
376
+ * @param {string} str The textual representation of the Long
377
+ * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed
378
+ * @param {number=} radix The radix in which the text is written (2-36), defaults to 10
379
+ * @returns {!Long} The corresponding Long value
380
+ */
381
+ Long.fromString = fromString;
382
+ /**
383
+ * @function
384
+ * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val
385
+ * @param {boolean=} unsigned
386
+ * @returns {!Long}
387
+ * @inner
388
+ */
389
+ function fromValue(val, unsigned) {
390
+ if (typeof val === "number")
391
+ return fromNumber(val, unsigned);
392
+ if (typeof val === "string")
393
+ return fromString(val, unsigned);
394
+ // Throws for non-objects, converts non-instanceof Long:
395
+ return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
396
+ }
397
+ /**
398
+ * Converts the specified value to a Long using the appropriate from* function for its type.
399
+ * @function
400
+ * @param {!Long|number|bigint|string|!{low: number, high: number, unsigned: boolean}} val Value
401
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
402
+ * @returns {!Long}
403
+ */
404
+ Long.fromValue = fromValue;
405
+ // NOTE: the compiler should inline these constant values below and then remove these variables, so there should be
406
+ // no runtime penalty for these.
407
+ /**
408
+ * @type {number}
409
+ * @const
410
+ * @inner
411
+ */
412
+ var TWO_PWR_16_DBL = 1 << 16;
413
+ /**
414
+ * @type {number}
415
+ * @const
416
+ * @inner
417
+ */
418
+ var TWO_PWR_24_DBL = 1 << 24;
419
+ /**
420
+ * @type {number}
421
+ * @const
422
+ * @inner
423
+ */
424
+ var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
425
+ /**
426
+ * @type {number}
427
+ * @const
428
+ * @inner
429
+ */
430
+ var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
431
+ /**
432
+ * @type {number}
433
+ * @const
434
+ * @inner
435
+ */
436
+ var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
437
+ /**
438
+ * @type {!Long}
439
+ * @const
440
+ * @inner
441
+ */
442
+ var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
443
+ /**
444
+ * @type {!Long}
445
+ * @inner
446
+ */
447
+ var ZERO = fromInt(0);
448
+ /**
449
+ * Signed zero.
450
+ * @type {!Long}
451
+ */
452
+ Long.ZERO = ZERO;
453
+ /**
454
+ * @type {!Long}
455
+ * @inner
456
+ */
457
+ var UZERO = fromInt(0, true);
458
+ /**
459
+ * Unsigned zero.
460
+ * @type {!Long}
461
+ */
462
+ Long.UZERO = UZERO;
463
+ /**
464
+ * @type {!Long}
465
+ * @inner
466
+ */
467
+ var ONE = fromInt(1);
468
+ /**
469
+ * Signed one.
470
+ * @type {!Long}
471
+ */
472
+ Long.ONE = ONE;
473
+ /**
474
+ * @type {!Long}
475
+ * @inner
476
+ */
477
+ var UONE = fromInt(1, true);
478
+ /**
479
+ * Unsigned one.
480
+ * @type {!Long}
481
+ */
482
+ Long.UONE = UONE;
483
+ /**
484
+ * @type {!Long}
485
+ * @inner
486
+ */
487
+ var NEG_ONE = fromInt(-1);
488
+ /**
489
+ * Signed negative one.
490
+ * @type {!Long}
491
+ */
492
+ Long.NEG_ONE = NEG_ONE;
493
+ /**
494
+ * @type {!Long}
495
+ * @inner
496
+ */
497
+ var MAX_VALUE = fromBits(0xffffffff | 0, 0x7fffffff | 0, false);
498
+ /**
499
+ * Maximum signed value.
500
+ * @type {!Long}
501
+ */
502
+ Long.MAX_VALUE = MAX_VALUE;
503
+ /**
504
+ * @type {!Long}
505
+ * @inner
506
+ */
507
+ var MAX_UNSIGNED_VALUE = fromBits(0xffffffff | 0, 0xffffffff | 0, true);
508
+ /**
509
+ * Maximum unsigned value.
510
+ * @type {!Long}
511
+ */
512
+ Long.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
513
+ /**
514
+ * @type {!Long}
515
+ * @inner
516
+ */
517
+ var MIN_VALUE = fromBits(0, 0x80000000 | 0, false);
518
+ /**
519
+ * Minimum signed value.
520
+ * @type {!Long}
521
+ */
522
+ Long.MIN_VALUE = MIN_VALUE;
523
+ /**
524
+ * @alias Long.prototype
525
+ * @inner
526
+ */
527
+ var LongPrototype = Long.prototype;
528
+ /**
529
+ * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
530
+ * @this {!Long}
531
+ * @returns {number}
532
+ */
533
+ LongPrototype.toInt = function toInt() {
534
+ return this.unsigned ? this.low >>> 0 : this.low;
535
+ };
536
+ /**
537
+ * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
538
+ * @this {!Long}
539
+ * @returns {number}
540
+ */
541
+ LongPrototype.toNumber = function toNumber() {
542
+ if (this.unsigned)
543
+ return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
544
+ return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
545
+ };
546
+ /**
547
+ * Converts the Long to a string written in the specified radix.
548
+ * @this {!Long}
549
+ * @param {number=} radix Radix (2-36), defaults to 10
550
+ * @returns {string}
551
+ * @override
552
+ * @throws {RangeError} If `radix` is out of range
553
+ */
554
+ LongPrototype.toString = function toString(radix) {
555
+ radix = radix || 10;
556
+ if (radix < 2 || 36 < radix)
557
+ throw RangeError("radix");
558
+ if (this.isZero())
559
+ return "0";
560
+ if (this.isNegative()) {
561
+ // Unsigned Longs are never negative
562
+ if (this.eq(MIN_VALUE)) {
563
+ // We need to change the Long value before it can be negated, so we remove
564
+ // the bottom-most digit in this base and then recurse to do the rest.
565
+ var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
566
+ return div.toString(radix) + rem1.toInt().toString(radix);
567
+ }
568
+ else
569
+ return "-" + this.neg().toString(radix);
570
+ }
571
+ // Do several (6) digits each time through the loop, so as to
572
+ // minimize the calls to the very expensive emulated div.
573
+ var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
574
+ var result = "";
575
+ while (true) {
576
+ var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
577
+ rem = remDiv;
578
+ if (rem.isZero())
579
+ return digits + result;
580
+ else {
581
+ while (digits.length < 6)
582
+ digits = "0" + digits;
583
+ result = "" + digits + result;
584
+ }
585
+ }
586
+ };
587
+ /**
588
+ * Gets the high 32 bits as a signed integer.
589
+ * @this {!Long}
590
+ * @returns {number} Signed high bits
591
+ */
592
+ LongPrototype.getHighBits = function getHighBits() {
593
+ return this.high;
594
+ };
595
+ /**
596
+ * Gets the high 32 bits as an unsigned integer.
597
+ * @this {!Long}
598
+ * @returns {number} Unsigned high bits
599
+ */
600
+ LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
601
+ return this.high >>> 0;
602
+ };
603
+ /**
604
+ * Gets the low 32 bits as a signed integer.
605
+ * @this {!Long}
606
+ * @returns {number} Signed low bits
607
+ */
608
+ LongPrototype.getLowBits = function getLowBits() {
609
+ return this.low;
610
+ };
611
+ /**
612
+ * Gets the low 32 bits as an unsigned integer.
613
+ * @this {!Long}
614
+ * @returns {number} Unsigned low bits
615
+ */
616
+ LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
617
+ return this.low >>> 0;
618
+ };
619
+ /**
620
+ * Gets the number of bits needed to represent the absolute value of this Long.
621
+ * @this {!Long}
622
+ * @returns {number}
623
+ */
624
+ LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
625
+ if (this.isNegative())
626
+ // Unsigned Longs are never negative
627
+ return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
628
+ var val = this.high != 0 ? this.high : this.low;
629
+ for (var bit = 31; bit > 0; bit--)
630
+ if ((val & (1 << bit)) != 0)
631
+ break;
632
+ return this.high != 0 ? bit + 33 : bit + 1;
633
+ };
634
+ /**
635
+ * Tests if this Long can be safely represented as a JavaScript number.
636
+ * @this {!Long}
637
+ * @returns {boolean}
638
+ */
639
+ LongPrototype.isSafeInteger = function isSafeInteger() {
640
+ // 2^53-1 is the maximum safe value
641
+ var top11Bits = this.high >> 21;
642
+ // [0, 2^53-1]
643
+ if (!top11Bits)
644
+ return true;
645
+ // > 2^53-1
646
+ if (this.unsigned)
647
+ return false;
648
+ // [-2^53, -1] except -2^53
649
+ return top11Bits === -1 && !(this.low === 0 && this.high === -0x200000);
650
+ };
651
+ /**
652
+ * Tests if this Long's value equals zero.
653
+ * @this {!Long}
654
+ * @returns {boolean}
655
+ */
656
+ LongPrototype.isZero = function isZero() {
657
+ return this.high === 0 && this.low === 0;
658
+ };
659
+ /**
660
+ * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.
661
+ * @returns {boolean}
662
+ */
663
+ LongPrototype.eqz = LongPrototype.isZero;
664
+ /**
665
+ * Tests if this Long's value is negative.
666
+ * @this {!Long}
667
+ * @returns {boolean}
668
+ */
669
+ LongPrototype.isNegative = function isNegative() {
670
+ return !this.unsigned && this.high < 0;
671
+ };
672
+ /**
673
+ * Tests if this Long's value is positive or zero.
674
+ * @this {!Long}
675
+ * @returns {boolean}
676
+ */
677
+ LongPrototype.isPositive = function isPositive() {
678
+ return this.unsigned || this.high >= 0;
679
+ };
680
+ /**
681
+ * Tests if this Long's value is odd.
682
+ * @this {!Long}
683
+ * @returns {boolean}
684
+ */
685
+ LongPrototype.isOdd = function isOdd() {
686
+ return (this.low & 1) === 1;
687
+ };
688
+ /**
689
+ * Tests if this Long's value is even.
690
+ * @this {!Long}
691
+ * @returns {boolean}
692
+ */
693
+ LongPrototype.isEven = function isEven() {
694
+ return (this.low & 1) === 0;
695
+ };
696
+ /**
697
+ * Tests if this Long's value equals the specified's.
698
+ * @this {!Long}
699
+ * @param {!Long|number|bigint|string} other Other value
700
+ * @returns {boolean}
701
+ */
702
+ LongPrototype.equals = function equals(other) {
703
+ if (!isLong(other))
704
+ other = fromValue(other);
705
+ if (this.unsigned !== other.unsigned &&
706
+ this.high >>> 31 === 1 &&
707
+ other.high >>> 31 === 1)
708
+ return false;
709
+ return this.high === other.high && this.low === other.low;
710
+ };
711
+ /**
712
+ * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.
713
+ * @function
714
+ * @param {!Long|number|bigint|string} other Other value
715
+ * @returns {boolean}
716
+ */
717
+ LongPrototype.eq = LongPrototype.equals;
718
+ /**
719
+ * Tests if this Long's value differs from the specified's.
720
+ * @this {!Long}
721
+ * @param {!Long|number|bigint|string} other Other value
722
+ * @returns {boolean}
723
+ */
724
+ LongPrototype.notEquals = function notEquals(other) {
725
+ return !this.eq(/* validates */ other);
726
+ };
727
+ /**
728
+ * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
729
+ * @function
730
+ * @param {!Long|number|bigint|string} other Other value
731
+ * @returns {boolean}
732
+ */
733
+ LongPrototype.neq = LongPrototype.notEquals;
734
+ /**
735
+ * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
736
+ * @function
737
+ * @param {!Long|number|bigint|string} other Other value
738
+ * @returns {boolean}
739
+ */
740
+ LongPrototype.ne = LongPrototype.notEquals;
741
+ /**
742
+ * Tests if this Long's value is less than the specified's.
743
+ * @this {!Long}
744
+ * @param {!Long|number|bigint|string} other Other value
745
+ * @returns {boolean}
746
+ */
747
+ LongPrototype.lessThan = function lessThan(other) {
748
+ return this.comp(/* validates */ other) < 0;
749
+ };
750
+ /**
751
+ * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.
752
+ * @function
753
+ * @param {!Long|number|bigint|string} other Other value
754
+ * @returns {boolean}
755
+ */
756
+ LongPrototype.lt = LongPrototype.lessThan;
757
+ /**
758
+ * Tests if this Long's value is less than or equal the specified's.
759
+ * @this {!Long}
760
+ * @param {!Long|number|bigint|string} other Other value
761
+ * @returns {boolean}
762
+ */
763
+ LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
764
+ return this.comp(/* validates */ other) <= 0;
765
+ };
766
+ /**
767
+ * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
768
+ * @function
769
+ * @param {!Long|number|bigint|string} other Other value
770
+ * @returns {boolean}
771
+ */
772
+ LongPrototype.lte = LongPrototype.lessThanOrEqual;
773
+ /**
774
+ * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
775
+ * @function
776
+ * @param {!Long|number|bigint|string} other Other value
777
+ * @returns {boolean}
778
+ */
779
+ LongPrototype.le = LongPrototype.lessThanOrEqual;
780
+ /**
781
+ * Tests if this Long's value is greater than the specified's.
782
+ * @this {!Long}
783
+ * @param {!Long|number|bigint|string} other Other value
784
+ * @returns {boolean}
785
+ */
786
+ LongPrototype.greaterThan = function greaterThan(other) {
787
+ return this.comp(/* validates */ other) > 0;
788
+ };
789
+ /**
790
+ * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.
791
+ * @function
792
+ * @param {!Long|number|bigint|string} other Other value
793
+ * @returns {boolean}
794
+ */
795
+ LongPrototype.gt = LongPrototype.greaterThan;
796
+ /**
797
+ * Tests if this Long's value is greater than or equal the specified's.
798
+ * @this {!Long}
799
+ * @param {!Long|number|bigint|string} other Other value
800
+ * @returns {boolean}
801
+ */
802
+ LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
803
+ return this.comp(/* validates */ other) >= 0;
804
+ };
805
+ /**
806
+ * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
807
+ * @function
808
+ * @param {!Long|number|bigint|string} other Other value
809
+ * @returns {boolean}
810
+ */
811
+ LongPrototype.gte = LongPrototype.greaterThanOrEqual;
812
+ /**
813
+ * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
814
+ * @function
815
+ * @param {!Long|number|bigint|string} other Other value
816
+ * @returns {boolean}
817
+ */
818
+ LongPrototype.ge = LongPrototype.greaterThanOrEqual;
819
+ /**
820
+ * Compares this Long's value with the specified's.
821
+ * @this {!Long}
822
+ * @param {!Long|number|bigint|string} other Other value
823
+ * @returns {number} 0 if they are the same, 1 if the this is greater and -1
824
+ * if the given one is greater
825
+ */
826
+ LongPrototype.compare = function compare(other) {
827
+ if (!isLong(other))
828
+ other = fromValue(other);
829
+ if (this.eq(other))
830
+ return 0;
831
+ var thisNeg = this.isNegative(), otherNeg = other.isNegative();
832
+ if (thisNeg && !otherNeg)
833
+ return -1;
834
+ if (!thisNeg && otherNeg)
835
+ return 1;
836
+ // At this point the sign bits are the same
837
+ if (!this.unsigned)
838
+ return this.sub(other).isNegative() ? -1 : 1;
839
+ // Both are positive if at least one is unsigned
840
+ return other.high >>> 0 > this.high >>> 0 ||
841
+ (other.high === this.high && other.low >>> 0 > this.low >>> 0)
842
+ ? -1
843
+ : 1;
844
+ };
845
+ /**
846
+ * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.
847
+ * @function
848
+ * @param {!Long|number|bigint|string} other Other value
849
+ * @returns {number} 0 if they are the same, 1 if the this is greater and -1
850
+ * if the given one is greater
851
+ */
852
+ LongPrototype.comp = LongPrototype.compare;
853
+ /**
854
+ * Negates this Long's value.
855
+ * @this {!Long}
856
+ * @returns {!Long} Negated Long
857
+ */
858
+ LongPrototype.negate = function negate() {
859
+ if (!this.unsigned && this.eq(MIN_VALUE))
860
+ return MIN_VALUE;
861
+ return this.not().add(ONE);
862
+ };
863
+ /**
864
+ * Negates this Long's value. This is an alias of {@link Long#negate}.
865
+ * @function
866
+ * @returns {!Long} Negated Long
867
+ */
868
+ LongPrototype.neg = LongPrototype.negate;
869
+ /**
870
+ * Returns the sum of this and the specified Long.
871
+ * @this {!Long}
872
+ * @param {!Long|number|bigint|string} addend Addend
873
+ * @returns {!Long} Sum
874
+ */
875
+ LongPrototype.add = function add(addend) {
876
+ if (!isLong(addend))
877
+ addend = fromValue(addend);
878
+ // Divide each number into 4 chunks of 16 bits, and then sum the chunks.
879
+ var a48 = this.high >>> 16;
880
+ var a32 = this.high & 0xffff;
881
+ var a16 = this.low >>> 16;
882
+ var a00 = this.low & 0xffff;
883
+ var b48 = addend.high >>> 16;
884
+ var b32 = addend.high & 0xffff;
885
+ var b16 = addend.low >>> 16;
886
+ var b00 = addend.low & 0xffff;
887
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
888
+ c00 += a00 + b00;
889
+ c16 += c00 >>> 16;
890
+ c00 &= 0xffff;
891
+ c16 += a16 + b16;
892
+ c32 += c16 >>> 16;
893
+ c16 &= 0xffff;
894
+ c32 += a32 + b32;
895
+ c48 += c32 >>> 16;
896
+ c32 &= 0xffff;
897
+ c48 += a48 + b48;
898
+ c48 &= 0xffff;
899
+ return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);
900
+ };
901
+ /**
902
+ * Returns the difference of this and the specified Long.
903
+ * @this {!Long}
904
+ * @param {!Long|number|bigint|string} subtrahend Subtrahend
905
+ * @returns {!Long} Difference
906
+ */
907
+ LongPrototype.subtract = function subtract(subtrahend) {
908
+ if (!isLong(subtrahend))
909
+ subtrahend = fromValue(subtrahend);
910
+ return this.add(subtrahend.neg());
911
+ };
912
+ /**
913
+ * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.
914
+ * @function
915
+ * @param {!Long|number|bigint|string} subtrahend Subtrahend
916
+ * @returns {!Long} Difference
917
+ */
918
+ LongPrototype.sub = LongPrototype.subtract;
919
+ /**
920
+ * Returns the product of this and the specified Long.
921
+ * @this {!Long}
922
+ * @param {!Long|number|bigint|string} multiplier Multiplier
923
+ * @returns {!Long} Product
924
+ */
925
+ LongPrototype.multiply = function multiply(multiplier) {
926
+ if (this.isZero())
927
+ return this;
928
+ if (!isLong(multiplier))
929
+ multiplier = fromValue(multiplier);
930
+ // use wasm support if present
931
+ if (wasm) {
932
+ var low = wasm["mul"](this.low, this.high, multiplier.low, multiplier.high);
933
+ return fromBits(low, wasm["get_high"](), this.unsigned);
934
+ }
935
+ if (multiplier.isZero())
936
+ return this.unsigned ? UZERO : ZERO;
937
+ if (this.eq(MIN_VALUE))
938
+ return multiplier.isOdd() ? MIN_VALUE : ZERO;
939
+ if (multiplier.eq(MIN_VALUE))
940
+ return this.isOdd() ? MIN_VALUE : ZERO;
941
+ if (this.isNegative()) {
942
+ if (multiplier.isNegative())
943
+ return this.neg().mul(multiplier.neg());
944
+ else
945
+ return this.neg().mul(multiplier).neg();
946
+ }
947
+ else if (multiplier.isNegative())
948
+ return this.mul(multiplier.neg()).neg();
949
+ // If both longs are small, use float multiplication
950
+ if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
951
+ return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
952
+ // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.
953
+ // We can skip products that would overflow.
954
+ var a48 = this.high >>> 16;
955
+ var a32 = this.high & 0xffff;
956
+ var a16 = this.low >>> 16;
957
+ var a00 = this.low & 0xffff;
958
+ var b48 = multiplier.high >>> 16;
959
+ var b32 = multiplier.high & 0xffff;
960
+ var b16 = multiplier.low >>> 16;
961
+ var b00 = multiplier.low & 0xffff;
962
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
963
+ c00 += a00 * b00;
964
+ c16 += c00 >>> 16;
965
+ c00 &= 0xffff;
966
+ c16 += a16 * b00;
967
+ c32 += c16 >>> 16;
968
+ c16 &= 0xffff;
969
+ c16 += a00 * b16;
970
+ c32 += c16 >>> 16;
971
+ c16 &= 0xffff;
972
+ c32 += a32 * b00;
973
+ c48 += c32 >>> 16;
974
+ c32 &= 0xffff;
975
+ c32 += a16 * b16;
976
+ c48 += c32 >>> 16;
977
+ c32 &= 0xffff;
978
+ c32 += a00 * b32;
979
+ c48 += c32 >>> 16;
980
+ c32 &= 0xffff;
981
+ c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
982
+ c48 &= 0xffff;
983
+ return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);
984
+ };
985
+ /**
986
+ * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.
987
+ * @function
988
+ * @param {!Long|number|bigint|string} multiplier Multiplier
989
+ * @returns {!Long} Product
990
+ */
991
+ LongPrototype.mul = LongPrototype.multiply;
992
+ /**
993
+ * Returns this Long divided by the specified. The result is signed if this Long is signed or
994
+ * unsigned if this Long is unsigned.
995
+ * @this {!Long}
996
+ * @param {!Long|number|bigint|string} divisor Divisor
997
+ * @returns {!Long} Quotient
998
+ */
999
+ LongPrototype.divide = function divide(divisor) {
1000
+ if (!isLong(divisor))
1001
+ divisor = fromValue(divisor);
1002
+ if (divisor.isZero())
1003
+ throw Error("division by zero");
1004
+ // use wasm support if present
1005
+ if (wasm) {
1006
+ // guard against signed division overflow: the largest
1007
+ // negative number / -1 would be 1 larger than the largest
1008
+ // positive number, due to two's complement.
1009
+ if (!this.unsigned &&
1010
+ this.high === -0x80000000 &&
1011
+ divisor.low === -1 &&
1012
+ divisor.high === -1) {
1013
+ // be consistent with non-wasm code path
1014
+ return this;
1015
+ }
1016
+ var low = (this.unsigned ? wasm["div_u"] : wasm["div_s"])(this.low, this.high, divisor.low, divisor.high);
1017
+ return fromBits(low, wasm["get_high"](), this.unsigned);
1018
+ }
1019
+ if (this.isZero())
1020
+ return this.unsigned ? UZERO : ZERO;
1021
+ var approx, rem, res;
1022
+ if (!this.unsigned) {
1023
+ // This section is only relevant for signed longs and is derived from the
1024
+ // closure library as a whole.
1025
+ if (this.eq(MIN_VALUE)) {
1026
+ if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
1027
+ return MIN_VALUE; // recall that -MIN_VALUE == MIN_VALUE
1028
+ else if (divisor.eq(MIN_VALUE))
1029
+ return ONE;
1030
+ else {
1031
+ // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.
1032
+ var halfThis = this.shr(1);
1033
+ approx = halfThis.div(divisor).shl(1);
1034
+ if (approx.eq(ZERO)) {
1035
+ return divisor.isNegative() ? ONE : NEG_ONE;
1036
+ }
1037
+ else {
1038
+ rem = this.sub(divisor.mul(approx));
1039
+ res = approx.add(rem.div(divisor));
1040
+ return res;
1041
+ }
1042
+ }
1043
+ }
1044
+ else if (divisor.eq(MIN_VALUE))
1045
+ return this.unsigned ? UZERO : ZERO;
1046
+ if (this.isNegative()) {
1047
+ if (divisor.isNegative())
1048
+ return this.neg().div(divisor.neg());
1049
+ return this.neg().div(divisor).neg();
1050
+ }
1051
+ else if (divisor.isNegative())
1052
+ return this.div(divisor.neg()).neg();
1053
+ res = ZERO;
1054
+ }
1055
+ else {
1056
+ // The algorithm below has not been made for unsigned longs. It's therefore
1057
+ // required to take special care of the MSB prior to running it.
1058
+ if (!divisor.unsigned)
1059
+ divisor = divisor.toUnsigned();
1060
+ if (divisor.gt(this))
1061
+ return UZERO;
1062
+ if (divisor.gt(this.shru(1)))
1063
+ // 15 >>> 1 = 7 ; with divisor = 8 ; true
1064
+ return UONE;
1065
+ res = UZERO;
1066
+ }
1067
+ // Repeat the following until the remainder is less than other: find a
1068
+ // floating-point that approximates remainder / other *from below*, add this
1069
+ // into the result, and subtract it from the remainder. It is critical that
1070
+ // the approximate value is less than or equal to the real value so that the
1071
+ // remainder never becomes negative.
1072
+ rem = this;
1073
+ while (rem.gte(divisor)) {
1074
+ // Approximate the result of division. This may be a little greater or
1075
+ // smaller than the actual value.
1076
+ approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
1077
+ // We will tweak the approximate result by changing it in the 48-th digit or
1078
+ // the smallest non-fractional digit, whichever is larger.
1079
+ var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48),
1080
+ // Decrease the approximation until it is smaller than the remainder. Note
1081
+ // that if it is too large, the product overflows and is negative.
1082
+ approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
1083
+ while (approxRem.isNegative() || approxRem.gt(rem)) {
1084
+ approx -= delta;
1085
+ approxRes = fromNumber(approx, this.unsigned);
1086
+ approxRem = approxRes.mul(divisor);
1087
+ }
1088
+ // We know the answer can't be zero... and actually, zero would cause
1089
+ // infinite recursion since we would make no progress.
1090
+ if (approxRes.isZero())
1091
+ approxRes = ONE;
1092
+ res = res.add(approxRes);
1093
+ rem = rem.sub(approxRem);
1094
+ }
1095
+ return res;
1096
+ };
1097
+ /**
1098
+ * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.
1099
+ * @function
1100
+ * @param {!Long|number|bigint|string} divisor Divisor
1101
+ * @returns {!Long} Quotient
1102
+ */
1103
+ LongPrototype.div = LongPrototype.divide;
1104
+ /**
1105
+ * Returns this Long modulo the specified.
1106
+ * @this {!Long}
1107
+ * @param {!Long|number|bigint|string} divisor Divisor
1108
+ * @returns {!Long} Remainder
1109
+ */
1110
+ LongPrototype.modulo = function modulo(divisor) {
1111
+ if (!isLong(divisor))
1112
+ divisor = fromValue(divisor);
1113
+ // use wasm support if present
1114
+ if (wasm) {
1115
+ var low = (this.unsigned ? wasm["rem_u"] : wasm["rem_s"])(this.low, this.high, divisor.low, divisor.high);
1116
+ return fromBits(low, wasm["get_high"](), this.unsigned);
1117
+ }
1118
+ return this.sub(this.div(divisor).mul(divisor));
1119
+ };
1120
+ /**
1121
+ * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
1122
+ * @function
1123
+ * @param {!Long|number|bigint|string} divisor Divisor
1124
+ * @returns {!Long} Remainder
1125
+ */
1126
+ LongPrototype.mod = LongPrototype.modulo;
1127
+ /**
1128
+ * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
1129
+ * @function
1130
+ * @param {!Long|number|bigint|string} divisor Divisor
1131
+ * @returns {!Long} Remainder
1132
+ */
1133
+ LongPrototype.rem = LongPrototype.modulo;
1134
+ /**
1135
+ * Returns the bitwise NOT of this Long.
1136
+ * @this {!Long}
1137
+ * @returns {!Long}
1138
+ */
1139
+ LongPrototype.not = function not() {
1140
+ return fromBits(~this.low, ~this.high, this.unsigned);
1141
+ };
1142
+ /**
1143
+ * Returns count leading zeros of this Long.
1144
+ * @this {!Long}
1145
+ * @returns {!number}
1146
+ */
1147
+ LongPrototype.countLeadingZeros = function countLeadingZeros() {
1148
+ return this.high ? Math.clz32(this.high) : Math.clz32(this.low) + 32;
1149
+ };
1150
+ /**
1151
+ * Returns count leading zeros. This is an alias of {@link Long#countLeadingZeros}.
1152
+ * @function
1153
+ * @param {!Long}
1154
+ * @returns {!number}
1155
+ */
1156
+ LongPrototype.clz = LongPrototype.countLeadingZeros;
1157
+ /**
1158
+ * Returns count trailing zeros of this Long.
1159
+ * @this {!Long}
1160
+ * @returns {!number}
1161
+ */
1162
+ LongPrototype.countTrailingZeros = function countTrailingZeros() {
1163
+ return this.low ? ctz32(this.low) : ctz32(this.high) + 32;
1164
+ };
1165
+ /**
1166
+ * Returns count trailing zeros. This is an alias of {@link Long#countTrailingZeros}.
1167
+ * @function
1168
+ * @param {!Long}
1169
+ * @returns {!number}
1170
+ */
1171
+ LongPrototype.ctz = LongPrototype.countTrailingZeros;
1172
+ /**
1173
+ * Returns the bitwise AND of this Long and the specified.
1174
+ * @this {!Long}
1175
+ * @param {!Long|number|bigint|string} other Other Long
1176
+ * @returns {!Long}
1177
+ */
1178
+ LongPrototype.and = function and(other) {
1179
+ if (!isLong(other))
1180
+ other = fromValue(other);
1181
+ return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
1182
+ };
1183
+ /**
1184
+ * Returns the bitwise OR of this Long and the specified.
1185
+ * @this {!Long}
1186
+ * @param {!Long|number|bigint|string} other Other Long
1187
+ * @returns {!Long}
1188
+ */
1189
+ LongPrototype.or = function or(other) {
1190
+ if (!isLong(other))
1191
+ other = fromValue(other);
1192
+ return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
1193
+ };
1194
+ /**
1195
+ * Returns the bitwise XOR of this Long and the given one.
1196
+ * @this {!Long}
1197
+ * @param {!Long|number|bigint|string} other Other Long
1198
+ * @returns {!Long}
1199
+ */
1200
+ LongPrototype.xor = function xor(other) {
1201
+ if (!isLong(other))
1202
+ other = fromValue(other);
1203
+ return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
1204
+ };
1205
+ /**
1206
+ * Returns this Long with bits shifted to the left by the given amount.
1207
+ * @this {!Long}
1208
+ * @param {number|!Long} numBits Number of bits
1209
+ * @returns {!Long} Shifted Long
1210
+ */
1211
+ LongPrototype.shiftLeft = function shiftLeft(numBits) {
1212
+ if (isLong(numBits))
1213
+ numBits = numBits.toInt();
1214
+ if ((numBits &= 63) === 0)
1215
+ return this;
1216
+ else if (numBits < 32)
1217
+ return fromBits(this.low << numBits, (this.high << numBits) | (this.low >>> (32 - numBits)), this.unsigned);
1218
+ else
1219
+ return fromBits(0, this.low << (numBits - 32), this.unsigned);
1220
+ };
1221
+ /**
1222
+ * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.
1223
+ * @function
1224
+ * @param {number|!Long} numBits Number of bits
1225
+ * @returns {!Long} Shifted Long
1226
+ */
1227
+ LongPrototype.shl = LongPrototype.shiftLeft;
1228
+ /**
1229
+ * Returns this Long with bits arithmetically shifted to the right by the given amount.
1230
+ * @this {!Long}
1231
+ * @param {number|!Long} numBits Number of bits
1232
+ * @returns {!Long} Shifted Long
1233
+ */
1234
+ LongPrototype.shiftRight = function shiftRight(numBits) {
1235
+ if (isLong(numBits))
1236
+ numBits = numBits.toInt();
1237
+ if ((numBits &= 63) === 0)
1238
+ return this;
1239
+ else if (numBits < 32)
1240
+ return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >> numBits, this.unsigned);
1241
+ else
1242
+ return fromBits(this.high >> (numBits - 32), this.high >= 0 ? 0 : -1, this.unsigned);
1243
+ };
1244
+ /**
1245
+ * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.
1246
+ * @function
1247
+ * @param {number|!Long} numBits Number of bits
1248
+ * @returns {!Long} Shifted Long
1249
+ */
1250
+ LongPrototype.shr = LongPrototype.shiftRight;
1251
+ /**
1252
+ * Returns this Long with bits logically shifted to the right by the given amount.
1253
+ * @this {!Long}
1254
+ * @param {number|!Long} numBits Number of bits
1255
+ * @returns {!Long} Shifted Long
1256
+ */
1257
+ LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
1258
+ if (isLong(numBits))
1259
+ numBits = numBits.toInt();
1260
+ if ((numBits &= 63) === 0)
1261
+ return this;
1262
+ if (numBits < 32)
1263
+ return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >>> numBits, this.unsigned);
1264
+ if (numBits === 32)
1265
+ return fromBits(this.high, 0, this.unsigned);
1266
+ return fromBits(this.high >>> (numBits - 32), 0, this.unsigned);
1267
+ };
1268
+ /**
1269
+ * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
1270
+ * @function
1271
+ * @param {number|!Long} numBits Number of bits
1272
+ * @returns {!Long} Shifted Long
1273
+ */
1274
+ LongPrototype.shru = LongPrototype.shiftRightUnsigned;
1275
+ /**
1276
+ * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
1277
+ * @function
1278
+ * @param {number|!Long} numBits Number of bits
1279
+ * @returns {!Long} Shifted Long
1280
+ */
1281
+ LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
1282
+ /**
1283
+ * Returns this Long with bits rotated to the left by the given amount.
1284
+ * @this {!Long}
1285
+ * @param {number|!Long} numBits Number of bits
1286
+ * @returns {!Long} Rotated Long
1287
+ */
1288
+ LongPrototype.rotateLeft = function rotateLeft(numBits) {
1289
+ var b;
1290
+ if (isLong(numBits))
1291
+ numBits = numBits.toInt();
1292
+ if ((numBits &= 63) === 0)
1293
+ return this;
1294
+ if (numBits === 32)
1295
+ return fromBits(this.high, this.low, this.unsigned);
1296
+ if (numBits < 32) {
1297
+ b = 32 - numBits;
1298
+ return fromBits((this.low << numBits) | (this.high >>> b), (this.high << numBits) | (this.low >>> b), this.unsigned);
1299
+ }
1300
+ numBits -= 32;
1301
+ b = 32 - numBits;
1302
+ return fromBits((this.high << numBits) | (this.low >>> b), (this.low << numBits) | (this.high >>> b), this.unsigned);
1303
+ };
1304
+ /**
1305
+ * Returns this Long with bits rotated to the left by the given amount. This is an alias of {@link Long#rotateLeft}.
1306
+ * @function
1307
+ * @param {number|!Long} numBits Number of bits
1308
+ * @returns {!Long} Rotated Long
1309
+ */
1310
+ LongPrototype.rotl = LongPrototype.rotateLeft;
1311
+ /**
1312
+ * Returns this Long with bits rotated to the right by the given amount.
1313
+ * @this {!Long}
1314
+ * @param {number|!Long} numBits Number of bits
1315
+ * @returns {!Long} Rotated Long
1316
+ */
1317
+ LongPrototype.rotateRight = function rotateRight(numBits) {
1318
+ var b;
1319
+ if (isLong(numBits))
1320
+ numBits = numBits.toInt();
1321
+ if ((numBits &= 63) === 0)
1322
+ return this;
1323
+ if (numBits === 32)
1324
+ return fromBits(this.high, this.low, this.unsigned);
1325
+ if (numBits < 32) {
1326
+ b = 32 - numBits;
1327
+ return fromBits((this.high << b) | (this.low >>> numBits), (this.low << b) | (this.high >>> numBits), this.unsigned);
1328
+ }
1329
+ numBits -= 32;
1330
+ b = 32 - numBits;
1331
+ return fromBits((this.low << b) | (this.high >>> numBits), (this.high << b) | (this.low >>> numBits), this.unsigned);
1332
+ };
1333
+ /**
1334
+ * Returns this Long with bits rotated to the right by the given amount. This is an alias of {@link Long#rotateRight}.
1335
+ * @function
1336
+ * @param {number|!Long} numBits Number of bits
1337
+ * @returns {!Long} Rotated Long
1338
+ */
1339
+ LongPrototype.rotr = LongPrototype.rotateRight;
1340
+ /**
1341
+ * Converts this Long to signed.
1342
+ * @this {!Long}
1343
+ * @returns {!Long} Signed long
1344
+ */
1345
+ LongPrototype.toSigned = function toSigned() {
1346
+ if (!this.unsigned)
1347
+ return this;
1348
+ return fromBits(this.low, this.high, false);
1349
+ };
1350
+ /**
1351
+ * Converts this Long to unsigned.
1352
+ * @this {!Long}
1353
+ * @returns {!Long} Unsigned long
1354
+ */
1355
+ LongPrototype.toUnsigned = function toUnsigned() {
1356
+ if (this.unsigned)
1357
+ return this;
1358
+ return fromBits(this.low, this.high, true);
1359
+ };
1360
+ /**
1361
+ * Converts this Long to its byte representation.
1362
+ * @param {boolean=} le Whether little or big endian, defaults to big endian
1363
+ * @this {!Long}
1364
+ * @returns {!Array.<number>} Byte representation
1365
+ */
1366
+ LongPrototype.toBytes = function toBytes(le) {
1367
+ return le ? this.toBytesLE() : this.toBytesBE();
1368
+ };
1369
+ /**
1370
+ * Converts this Long to its little endian byte representation.
1371
+ * @this {!Long}
1372
+ * @returns {!Array.<number>} Little endian byte representation
1373
+ */
1374
+ LongPrototype.toBytesLE = function toBytesLE() {
1375
+ var hi = this.high, lo = this.low;
1376
+ return [
1377
+ lo & 0xff,
1378
+ (lo >>> 8) & 0xff,
1379
+ (lo >>> 16) & 0xff,
1380
+ lo >>> 24,
1381
+ hi & 0xff,
1382
+ (hi >>> 8) & 0xff,
1383
+ (hi >>> 16) & 0xff,
1384
+ hi >>> 24,
1385
+ ];
1386
+ };
1387
+ /**
1388
+ * Converts this Long to its big endian byte representation.
1389
+ * @this {!Long}
1390
+ * @returns {!Array.<number>} Big endian byte representation
1391
+ */
1392
+ LongPrototype.toBytesBE = function toBytesBE() {
1393
+ var hi = this.high, lo = this.low;
1394
+ return [
1395
+ hi >>> 24,
1396
+ (hi >>> 16) & 0xff,
1397
+ (hi >>> 8) & 0xff,
1398
+ hi & 0xff,
1399
+ lo >>> 24,
1400
+ (lo >>> 16) & 0xff,
1401
+ (lo >>> 8) & 0xff,
1402
+ lo & 0xff,
1403
+ ];
1404
+ };
1405
+ /**
1406
+ * Creates a Long from its byte representation.
1407
+ * @param {!Array.<number>} bytes Byte representation
1408
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1409
+ * @param {boolean=} le Whether little or big endian, defaults to big endian
1410
+ * @returns {Long} The corresponding Long value
1411
+ */
1412
+ Long.fromBytes = function fromBytes(bytes, unsigned, le) {
1413
+ return le
1414
+ ? Long.fromBytesLE(bytes, unsigned)
1415
+ : Long.fromBytesBE(bytes, unsigned);
1416
+ };
1417
+ /**
1418
+ * Creates a Long from its little endian byte representation.
1419
+ * @param {!Array.<number>} bytes Little endian byte representation
1420
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1421
+ * @returns {Long} The corresponding Long value
1422
+ */
1423
+ Long.fromBytesLE = function fromBytesLE(bytes, unsigned) {
1424
+ return new Long(bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24), bytes[4] | (bytes[5] << 8) | (bytes[6] << 16) | (bytes[7] << 24), unsigned);
1425
+ };
1426
+ /**
1427
+ * Creates a Long from its big endian byte representation.
1428
+ * @param {!Array.<number>} bytes Big endian byte representation
1429
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1430
+ * @returns {Long} The corresponding Long value
1431
+ */
1432
+ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
1433
+ return new Long((bytes[4] << 24) | (bytes[5] << 16) | (bytes[6] << 8) | bytes[7], (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3], unsigned);
1434
+ };
1435
+ // Support conversion to/from BigInt where available
1436
+ if (typeof BigInt === "function") {
1437
+ /**
1438
+ * Returns a Long representing the given big integer.
1439
+ * @function
1440
+ * @param {number} value The big integer value
1441
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1442
+ * @returns {!Long} The corresponding Long value
1443
+ */
1444
+ Long.fromBigInt = function fromBigInt(value, unsigned) {
1445
+ var lowBits = Number(BigInt.asIntN(32, value));
1446
+ var highBits = Number(BigInt.asIntN(32, value >> BigInt(32)));
1447
+ return fromBits(lowBits, highBits, unsigned);
1448
+ };
1449
+ // Override
1450
+ Long.fromValue = function fromValueWithBigInt(value, unsigned) {
1451
+ if (typeof value === "bigint")
1452
+ return Long.fromBigInt(value, unsigned);
1453
+ return fromValue(value, unsigned);
1454
+ };
1455
+ /**
1456
+ * Converts the Long to its big integer representation.
1457
+ * @this {!Long}
1458
+ * @returns {bigint}
1459
+ */
1460
+ LongPrototype.toBigInt = function toBigInt() {
1461
+ var lowBigInt = BigInt(this.low >>> 0);
1462
+ var highBigInt = BigInt(this.unsigned ? this.high >>> 0 : this.high);
1463
+ return (highBigInt << BigInt(32)) | lowBigInt;
1464
+ };
1465
+ }
1466
+ var _default = (_exports.default = Long);
1467
+ });