xrpl 2.9.1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/build/xrpl-latest-min.js +1 -1
  2. package/build/xrpl-latest-min.js.map +1 -1
  3. package/build/xrpl-latest.js +2680 -481
  4. package/build/xrpl-latest.js.map +1 -1
  5. package/dist/npm/Wallet/walletFromSecretNumbers.d.ts +7 -0
  6. package/dist/npm/Wallet/walletFromSecretNumbers.d.ts.map +1 -0
  7. package/dist/npm/Wallet/walletFromSecretNumbers.js +27 -0
  8. package/dist/npm/Wallet/walletFromSecretNumbers.js.map +1 -0
  9. package/dist/npm/client/index.d.ts +2 -1
  10. package/dist/npm/client/index.d.ts.map +1 -1
  11. package/dist/npm/client/index.js.map +1 -1
  12. package/dist/npm/index.d.ts +1 -0
  13. package/dist/npm/index.d.ts.map +1 -1
  14. package/dist/npm/index.js +3 -1
  15. package/dist/npm/index.js.map +1 -1
  16. package/dist/npm/models/common/index.d.ts +5 -0
  17. package/dist/npm/models/common/index.d.ts.map +1 -1
  18. package/dist/npm/models/ledger/AMM.d.ts +27 -0
  19. package/dist/npm/models/ledger/AMM.d.ts.map +1 -0
  20. package/dist/npm/models/ledger/AMM.js +3 -0
  21. package/dist/npm/models/ledger/AMM.js.map +1 -0
  22. package/dist/npm/models/ledger/AccountRoot.d.ts +5 -1
  23. package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
  24. package/dist/npm/models/ledger/AccountRoot.js +2 -0
  25. package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
  26. package/dist/npm/models/ledger/LedgerEntry.d.ts +2 -1
  27. package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
  28. package/dist/npm/models/methods/accountInfo.d.ts +1 -0
  29. package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
  30. package/dist/npm/models/methods/ammInfo.d.ts +39 -0
  31. package/dist/npm/models/methods/ammInfo.d.ts.map +1 -0
  32. package/dist/npm/models/methods/ammInfo.js +3 -0
  33. package/dist/npm/models/methods/ammInfo.js.map +1 -0
  34. package/dist/npm/models/methods/index.d.ts +4 -3
  35. package/dist/npm/models/methods/index.d.ts.map +1 -1
  36. package/dist/npm/models/methods/ledgerEntry.d.ts +10 -0
  37. package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
  38. package/dist/npm/models/transactions/AMMBid.d.ts +12 -0
  39. package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -0
  40. package/dist/npm/models/transactions/AMMBid.js +56 -0
  41. package/dist/npm/models/transactions/AMMBid.js.map +1 -0
  42. package/dist/npm/models/transactions/AMMCreate.d.ts +11 -0
  43. package/dist/npm/models/transactions/AMMCreate.d.ts.map +1 -0
  44. package/dist/npm/models/transactions/AMMCreate.js +32 -0
  45. package/dist/npm/models/transactions/AMMCreate.js.map +1 -0
  46. package/dist/npm/models/transactions/AMMDelete.d.ts +9 -0
  47. package/dist/npm/models/transactions/AMMDelete.d.ts.map +1 -0
  48. package/dist/npm/models/transactions/AMMDelete.js +22 -0
  49. package/dist/npm/models/transactions/AMMDelete.js.map +1 -0
  50. package/dist/npm/models/transactions/AMMDeposit.d.ts +27 -0
  51. package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -0
  52. package/dist/npm/models/transactions/AMMDeposit.js +51 -0
  53. package/dist/npm/models/transactions/AMMDeposit.js.map +1 -0
  54. package/dist/npm/models/transactions/AMMVote.d.ts +10 -0
  55. package/dist/npm/models/transactions/AMMVote.d.ts.map +1 -0
  56. package/dist/npm/models/transactions/AMMVote.js +32 -0
  57. package/dist/npm/models/transactions/AMMVote.js.map +1 -0
  58. package/dist/npm/models/transactions/AMMWithdraw.d.ts +31 -0
  59. package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +1 -0
  60. package/dist/npm/models/transactions/AMMWithdraw.js +50 -0
  61. package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -0
  62. package/dist/npm/models/transactions/accountSet.d.ts +2 -1
  63. package/dist/npm/models/transactions/accountSet.d.ts.map +1 -1
  64. package/dist/npm/models/transactions/accountSet.js +1 -0
  65. package/dist/npm/models/transactions/accountSet.js.map +1 -1
  66. package/dist/npm/models/transactions/clawback.d.ts +9 -0
  67. package/dist/npm/models/transactions/clawback.d.ts.map +1 -0
  68. package/dist/npm/models/transactions/clawback.js +19 -0
  69. package/dist/npm/models/transactions/clawback.js.map +1 -0
  70. package/dist/npm/models/transactions/common.d.ts +2 -1
  71. package/dist/npm/models/transactions/common.d.ts.map +1 -1
  72. package/dist/npm/models/transactions/common.js +12 -1
  73. package/dist/npm/models/transactions/common.js.map +1 -1
  74. package/dist/npm/models/transactions/index.d.ts +7 -0
  75. package/dist/npm/models/transactions/index.d.ts.map +1 -1
  76. package/dist/npm/models/transactions/index.js +5 -1
  77. package/dist/npm/models/transactions/index.js.map +1 -1
  78. package/dist/npm/models/transactions/transaction.d.ts +8 -1
  79. package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
  80. package/dist/npm/models/transactions/transaction.js +28 -0
  81. package/dist/npm/models/transactions/transaction.js.map +1 -1
  82. package/dist/npm/models/utils/flags.d.ts.map +1 -1
  83. package/dist/npm/models/utils/flags.js +17 -23
  84. package/dist/npm/models/utils/flags.js.map +1 -1
  85. package/dist/npm/models/utils/index.js +1 -1
  86. package/dist/npm/models/utils/index.js.map +1 -1
  87. package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
  88. package/dist/npm/src/Wallet/walletFromSecretNumbers.d.ts +7 -0
  89. package/dist/npm/src/Wallet/walletFromSecretNumbers.d.ts.map +1 -0
  90. package/dist/npm/src/Wallet/walletFromSecretNumbers.js +27 -0
  91. package/dist/npm/src/Wallet/walletFromSecretNumbers.js.map +1 -0
  92. package/dist/npm/src/client/index.d.ts +2 -1
  93. package/dist/npm/src/client/index.d.ts.map +1 -1
  94. package/dist/npm/src/client/index.js.map +1 -1
  95. package/dist/npm/src/index.d.ts +1 -0
  96. package/dist/npm/src/index.d.ts.map +1 -1
  97. package/dist/npm/src/index.js +3 -1
  98. package/dist/npm/src/index.js.map +1 -1
  99. package/dist/npm/src/models/common/index.d.ts +5 -0
  100. package/dist/npm/src/models/common/index.d.ts.map +1 -1
  101. package/dist/npm/src/models/ledger/AMM.d.ts +27 -0
  102. package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -0
  103. package/dist/npm/src/models/ledger/AMM.js +3 -0
  104. package/dist/npm/src/models/ledger/AMM.js.map +1 -0
  105. package/dist/npm/src/models/ledger/AccountRoot.d.ts +5 -1
  106. package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
  107. package/dist/npm/src/models/ledger/AccountRoot.js +2 -0
  108. package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
  109. package/dist/npm/src/models/ledger/LedgerEntry.d.ts +2 -1
  110. package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
  111. package/dist/npm/src/models/methods/accountInfo.d.ts +1 -0
  112. package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
  113. package/dist/npm/src/models/methods/ammInfo.d.ts +39 -0
  114. package/dist/npm/src/models/methods/ammInfo.d.ts.map +1 -0
  115. package/dist/npm/src/models/methods/ammInfo.js +3 -0
  116. package/dist/npm/src/models/methods/ammInfo.js.map +1 -0
  117. package/dist/npm/src/models/methods/index.d.ts +4 -3
  118. package/dist/npm/src/models/methods/index.d.ts.map +1 -1
  119. package/dist/npm/src/models/methods/ledgerEntry.d.ts +10 -0
  120. package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
  121. package/dist/npm/src/models/transactions/AMMBid.d.ts +12 -0
  122. package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -0
  123. package/dist/npm/src/models/transactions/AMMBid.js +56 -0
  124. package/dist/npm/src/models/transactions/AMMBid.js.map +1 -0
  125. package/dist/npm/src/models/transactions/AMMCreate.d.ts +11 -0
  126. package/dist/npm/src/models/transactions/AMMCreate.d.ts.map +1 -0
  127. package/dist/npm/src/models/transactions/AMMCreate.js +32 -0
  128. package/dist/npm/src/models/transactions/AMMCreate.js.map +1 -0
  129. package/dist/npm/src/models/transactions/AMMDelete.d.ts +9 -0
  130. package/dist/npm/src/models/transactions/AMMDelete.d.ts.map +1 -0
  131. package/dist/npm/src/models/transactions/AMMDelete.js +22 -0
  132. package/dist/npm/src/models/transactions/AMMDelete.js.map +1 -0
  133. package/dist/npm/src/models/transactions/AMMDeposit.d.ts +27 -0
  134. package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -0
  135. package/dist/npm/src/models/transactions/AMMDeposit.js +51 -0
  136. package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -0
  137. package/dist/npm/src/models/transactions/AMMVote.d.ts +10 -0
  138. package/dist/npm/src/models/transactions/AMMVote.d.ts.map +1 -0
  139. package/dist/npm/src/models/transactions/AMMVote.js +32 -0
  140. package/dist/npm/src/models/transactions/AMMVote.js.map +1 -0
  141. package/dist/npm/src/models/transactions/AMMWithdraw.d.ts +31 -0
  142. package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +1 -0
  143. package/dist/npm/src/models/transactions/AMMWithdraw.js +50 -0
  144. package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -0
  145. package/dist/npm/src/models/transactions/accountSet.d.ts +2 -1
  146. package/dist/npm/src/models/transactions/accountSet.d.ts.map +1 -1
  147. package/dist/npm/src/models/transactions/accountSet.js +1 -0
  148. package/dist/npm/src/models/transactions/accountSet.js.map +1 -1
  149. package/dist/npm/src/models/transactions/clawback.d.ts +9 -0
  150. package/dist/npm/src/models/transactions/clawback.d.ts.map +1 -0
  151. package/dist/npm/src/models/transactions/clawback.js +19 -0
  152. package/dist/npm/src/models/transactions/clawback.js.map +1 -0
  153. package/dist/npm/src/models/transactions/common.d.ts +2 -1
  154. package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
  155. package/dist/npm/src/models/transactions/common.js +12 -1
  156. package/dist/npm/src/models/transactions/common.js.map +1 -1
  157. package/dist/npm/src/models/transactions/index.d.ts +7 -0
  158. package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
  159. package/dist/npm/src/models/transactions/index.js +5 -1
  160. package/dist/npm/src/models/transactions/index.js.map +1 -1
  161. package/dist/npm/src/models/transactions/transaction.d.ts +8 -1
  162. package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
  163. package/dist/npm/src/models/transactions/transaction.js +28 -0
  164. package/dist/npm/src/models/transactions/transaction.js.map +1 -1
  165. package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
  166. package/dist/npm/src/models/utils/flags.js +17 -23
  167. package/dist/npm/src/models/utils/flags.js.map +1 -1
  168. package/dist/npm/src/models/utils/index.js +1 -1
  169. package/dist/npm/src/models/utils/index.js.map +1 -1
  170. package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
  171. package/dist/npm/src/sugar/autofill.js +4 -3
  172. package/dist/npm/src/sugar/autofill.js.map +1 -1
  173. package/dist/npm/sugar/autofill.d.ts.map +1 -1
  174. package/dist/npm/sugar/autofill.js +4 -3
  175. package/dist/npm/sugar/autofill.js.map +1 -1
  176. package/package.json +8 -6
  177. package/src/ECDSA.ts +6 -0
  178. package/src/Wallet/defaultFaucets.ts +82 -0
  179. package/src/Wallet/fundWallet.ts +344 -0
  180. package/src/Wallet/index.ts +504 -0
  181. package/src/Wallet/rfc1751.ts +190 -0
  182. package/src/Wallet/rfc1751Words.json +243 -0
  183. package/src/Wallet/signer.ts +173 -0
  184. package/src/Wallet/walletFromSecretNumbers.ts +37 -0
  185. package/src/client/BroadcastClient.ts +84 -0
  186. package/src/client/ConnectionManager.ts +40 -0
  187. package/src/client/ExponentialBackoff.ts +71 -0
  188. package/src/client/RequestManager.ts +194 -0
  189. package/src/client/WSWrapper.ts +106 -0
  190. package/src/client/connection.ts +593 -0
  191. package/src/client/index.ts +712 -0
  192. package/src/client/partialPayment.ts +153 -0
  193. package/src/errors.ts +161 -0
  194. package/src/index.ts +20 -0
  195. package/src/models/common/index.ts +149 -0
  196. package/src/models/index.ts +16 -0
  197. package/src/models/ledger/AMM.ts +78 -0
  198. package/src/models/ledger/AccountRoot.ts +217 -0
  199. package/src/models/ledger/Amendments.ts +45 -0
  200. package/src/models/ledger/BaseLedgerEntry.ts +3 -0
  201. package/src/models/ledger/Check.ts +70 -0
  202. package/src/models/ledger/DepositPreauth.ts +35 -0
  203. package/src/models/ledger/DirectoryNode.ts +46 -0
  204. package/src/models/ledger/Escrow.ts +74 -0
  205. package/src/models/ledger/FeeSettings.ts +52 -0
  206. package/src/models/ledger/Ledger.ts +65 -0
  207. package/src/models/ledger/LedgerEntry.ts +34 -0
  208. package/src/models/ledger/LedgerHashes.ts +24 -0
  209. package/src/models/ledger/NFTokenOffer.ts +16 -0
  210. package/src/models/ledger/NFTokenPage.ts +20 -0
  211. package/src/models/ledger/NegativeUNL.ts +34 -0
  212. package/src/models/ledger/Offer.ts +52 -0
  213. package/src/models/ledger/PayChannel.ts +107 -0
  214. package/src/models/ledger/RippleState.ts +88 -0
  215. package/src/models/ledger/SignerList.ts +56 -0
  216. package/src/models/ledger/Ticket.ts +36 -0
  217. package/src/models/ledger/index.ts +58 -0
  218. package/src/models/methods/accountChannels.ts +93 -0
  219. package/src/models/methods/accountCurrencies.ts +45 -0
  220. package/src/models/methods/accountInfo.ts +182 -0
  221. package/src/models/methods/accountLines.ts +137 -0
  222. package/src/models/methods/accountNFTs.ts +72 -0
  223. package/src/models/methods/accountObjects.ts +120 -0
  224. package/src/models/methods/accountOffers.ts +100 -0
  225. package/src/models/methods/accountTx.ts +109 -0
  226. package/src/models/methods/ammInfo.ts +145 -0
  227. package/src/models/methods/baseMethod.ts +58 -0
  228. package/src/models/methods/bookOffers.ts +96 -0
  229. package/src/models/methods/channelVerify.ts +41 -0
  230. package/src/models/methods/depositAuthorized.ts +56 -0
  231. package/src/models/methods/fee.ts +91 -0
  232. package/src/models/methods/gatewayBalances.ts +85 -0
  233. package/src/models/methods/index.ts +391 -0
  234. package/src/models/methods/ledger.ts +125 -0
  235. package/src/models/methods/ledgerClosed.ts +32 -0
  236. package/src/models/methods/ledgerCurrent.ts +31 -0
  237. package/src/models/methods/ledgerData.ts +78 -0
  238. package/src/models/methods/ledgerEntry.ts +177 -0
  239. package/src/models/methods/manifest.ts +54 -0
  240. package/src/models/methods/nftBuyOffers.ts +37 -0
  241. package/src/models/methods/nftHistory.ts +113 -0
  242. package/src/models/methods/nftInfo.ts +25 -0
  243. package/src/models/methods/nftSellOffers.ts +37 -0
  244. package/src/models/methods/norippleCheck.ts +82 -0
  245. package/src/models/methods/pathFind.ts +116 -0
  246. package/src/models/methods/ping.ts +21 -0
  247. package/src/models/methods/random.ts +23 -0
  248. package/src/models/methods/ripplePathFind.ts +81 -0
  249. package/src/models/methods/serverInfo.ts +257 -0
  250. package/src/models/methods/serverState.ts +77 -0
  251. package/src/models/methods/submit.ts +94 -0
  252. package/src/models/methods/submitMultisigned.ts +51 -0
  253. package/src/models/methods/subscribe.ts +435 -0
  254. package/src/models/methods/transactionEntry.ts +47 -0
  255. package/src/models/methods/tx.ts +69 -0
  256. package/src/models/methods/unsubscribe.ts +49 -0
  257. package/src/models/transactions/AMMBid.ts +140 -0
  258. package/src/models/transactions/AMMCreate.ts +80 -0
  259. package/src/models/transactions/AMMDelete.ts +55 -0
  260. package/src/models/transactions/AMMDeposit.ts +130 -0
  261. package/src/models/transactions/AMMVote.ts +71 -0
  262. package/src/models/transactions/AMMWithdraw.ts +126 -0
  263. package/src/models/transactions/NFTokenAcceptOffer.ts +104 -0
  264. package/src/models/transactions/NFTokenBurn.ts +48 -0
  265. package/src/models/transactions/NFTokenCancelOffer.ts +45 -0
  266. package/src/models/transactions/NFTokenCreateOffer.ts +145 -0
  267. package/src/models/transactions/NFTokenMint.ts +123 -0
  268. package/src/models/transactions/UNLModify.ts +20 -0
  269. package/src/models/transactions/accountDelete.ts +50 -0
  270. package/src/models/transactions/accountSet.ts +228 -0
  271. package/src/models/transactions/checkCancel.ts +34 -0
  272. package/src/models/transactions/checkCash.ts +73 -0
  273. package/src/models/transactions/checkCreate.ts +90 -0
  274. package/src/models/transactions/clawback.ts +49 -0
  275. package/src/models/transactions/common.ts +295 -0
  276. package/src/models/transactions/depositPreauth.ts +68 -0
  277. package/src/models/transactions/enableAmendment.ts +26 -0
  278. package/src/models/transactions/escrowCancel.ts +45 -0
  279. package/src/models/transactions/escrowCreate.ts +100 -0
  280. package/src/models/transactions/escrowFinish.ts +63 -0
  281. package/src/models/transactions/index.ts +66 -0
  282. package/src/models/transactions/metadata.ts +69 -0
  283. package/src/models/transactions/offerCancel.ts +37 -0
  284. package/src/models/transactions/offerCreate.ts +144 -0
  285. package/src/models/transactions/payment.ts +278 -0
  286. package/src/models/transactions/paymentChannelClaim.ts +165 -0
  287. package/src/models/transactions/paymentChannelCreate.ts +116 -0
  288. package/src/models/transactions/paymentChannelFund.ts +65 -0
  289. package/src/models/transactions/setFee.ts +48 -0
  290. package/src/models/transactions/setRegularKey.ts +33 -0
  291. package/src/models/transactions/signerListSet.ts +89 -0
  292. package/src/models/transactions/ticketCreate.ts +50 -0
  293. package/src/models/transactions/transaction.ts +303 -0
  294. package/src/models/transactions/trustSet.ts +146 -0
  295. package/src/models/utils/flags.ts +98 -0
  296. package/src/models/utils/index.ts +37 -0
  297. package/src/sugar/autofill.ts +373 -0
  298. package/src/sugar/balances.ts +123 -0
  299. package/src/sugar/getFeeXrp.ts +45 -0
  300. package/src/sugar/getLedgerIndex.ts +15 -0
  301. package/src/sugar/getOrderbook.ts +152 -0
  302. package/src/sugar/index.ts +11 -0
  303. package/src/sugar/submit.ts +305 -0
  304. package/src/sugar/utils.ts +29 -0
  305. package/src/utils/derive.ts +23 -0
  306. package/src/utils/getBalanceChanges.ts +186 -0
  307. package/src/utils/getNFTokenID.ts +97 -0
  308. package/src/utils/hashes/HashPrefix.ts +40 -0
  309. package/src/utils/hashes/README.md +65 -0
  310. package/src/utils/hashes/SHAMap/InnerNode.ts +124 -0
  311. package/src/utils/hashes/SHAMap/LeafNode.ts +69 -0
  312. package/src/utils/hashes/SHAMap/index.ts +41 -0
  313. package/src/utils/hashes/SHAMap/node.ts +14 -0
  314. package/src/utils/hashes/hashLedger.ts +236 -0
  315. package/src/utils/hashes/index.ts +187 -0
  316. package/src/utils/hashes/ledgerSpaces.ts +34 -0
  317. package/src/utils/hashes/sha512Half.ts +19 -0
  318. package/src/utils/index.ts +223 -0
  319. package/src/utils/parseNFTokenID.ts +84 -0
  320. package/src/utils/quality.ts +169 -0
  321. package/src/utils/signPaymentChannelClaim.ts +27 -0
  322. package/src/utils/stringConversion.ts +27 -0
  323. package/src/utils/timeConversion.ts +53 -0
  324. package/src/utils/verifyPaymentChannelClaim.ts +30 -0
  325. package/src/utils/xrpConversion.ts +104 -0
@@ -32920,18 +32920,23 @@ var ThrowTypeError = $gOPD
32920
32920
  : throwTypeError;
32921
32921
 
32922
32922
  var hasSymbols = __webpack_require__(/*! has-symbols */ "../../node_modules/has-symbols/index.js")();
32923
+ var hasProto = __webpack_require__(/*! has-proto */ "../../node_modules/has-proto/index.js")();
32923
32924
 
32924
- var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
32925
+ var getProto = Object.getPrototypeOf || (
32926
+ hasProto
32927
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
32928
+ : null
32929
+ );
32925
32930
 
32926
32931
  var needsEval = {};
32927
32932
 
32928
- var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
32933
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
32929
32934
 
32930
32935
  var INTRINSICS = {
32931
32936
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
32932
32937
  '%Array%': Array,
32933
32938
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
32934
- '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
32939
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
32935
32940
  '%AsyncFromSyncIteratorPrototype%': undefined,
32936
32941
  '%AsyncFunction%': needsEval,
32937
32942
  '%AsyncGenerator%': needsEval,
@@ -32961,10 +32966,10 @@ var INTRINSICS = {
32961
32966
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
32962
32967
  '%isFinite%': isFinite,
32963
32968
  '%isNaN%': isNaN,
32964
- '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
32969
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
32965
32970
  '%JSON%': typeof JSON === 'object' ? JSON : undefined,
32966
32971
  '%Map%': typeof Map === 'undefined' ? undefined : Map,
32967
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
32972
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
32968
32973
  '%Math%': Math,
32969
32974
  '%Number%': Number,
32970
32975
  '%Object%': Object,
@@ -32977,10 +32982,10 @@ var INTRINSICS = {
32977
32982
  '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
32978
32983
  '%RegExp%': RegExp,
32979
32984
  '%Set%': typeof Set === 'undefined' ? undefined : Set,
32980
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
32985
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
32981
32986
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
32982
32987
  '%String%': String,
32983
- '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
32988
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
32984
32989
  '%Symbol%': hasSymbols ? Symbol : undefined,
32985
32990
  '%SyntaxError%': $SyntaxError,
32986
32991
  '%ThrowTypeError%': ThrowTypeError,
@@ -32996,12 +33001,14 @@ var INTRINSICS = {
32996
33001
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
32997
33002
  };
32998
33003
 
32999
- try {
33000
- null.error; // eslint-disable-line no-unused-expressions
33001
- } catch (e) {
33002
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
33003
- var errorProto = getProto(getProto(e));
33004
- INTRINSICS['%Error.prototype%'] = errorProto;
33004
+ if (getProto) {
33005
+ try {
33006
+ null.error; // eslint-disable-line no-unused-expressions
33007
+ } catch (e) {
33008
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
33009
+ var errorProto = getProto(getProto(e));
33010
+ INTRINSICS['%Error.prototype%'] = errorProto;
33011
+ }
33005
33012
  }
33006
33013
 
33007
33014
  var doEval = function doEval(name) {
@@ -33019,7 +33026,7 @@ var doEval = function doEval(name) {
33019
33026
  }
33020
33027
  } else if (name === '%AsyncIteratorPrototype%') {
33021
33028
  var gen = doEval('%AsyncGenerator%');
33022
- if (gen) {
33029
+ if (gen && getProto) {
33023
33030
  value = getProto(gen.prototype);
33024
33031
  }
33025
33032
  }
@@ -33292,6 +33299,28 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
33292
33299
  module.exports = hasPropertyDescriptors;
33293
33300
 
33294
33301
 
33302
+ /***/ }),
33303
+
33304
+ /***/ "../../node_modules/has-proto/index.js":
33305
+ /*!*********************************************!*\
33306
+ !*** ../../node_modules/has-proto/index.js ***!
33307
+ \*********************************************/
33308
+ /***/ ((module) => {
33309
+
33310
+ "use strict";
33311
+
33312
+
33313
+ var test = {
33314
+ foo: {}
33315
+ };
33316
+
33317
+ var $Object = Object;
33318
+
33319
+ module.exports = function hasProto() {
33320
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
33321
+ };
33322
+
33323
+
33295
33324
  /***/ }),
33296
33325
 
33297
33326
  /***/ "../../node_modules/has-symbols/index.js":
@@ -58320,6 +58349,532 @@ utils.encode = function encode(arr, enc) {
58320
58349
  };
58321
58350
 
58322
58351
 
58352
+ /***/ }),
58353
+
58354
+ /***/ "../../node_modules/object-inspect/index.js":
58355
+ /*!**************************************************!*\
58356
+ !*** ../../node_modules/object-inspect/index.js ***!
58357
+ \**************************************************/
58358
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
58359
+
58360
+ var hasMap = typeof Map === 'function' && Map.prototype;
58361
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
58362
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
58363
+ var mapForEach = hasMap && Map.prototype.forEach;
58364
+ var hasSet = typeof Set === 'function' && Set.prototype;
58365
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
58366
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
58367
+ var setForEach = hasSet && Set.prototype.forEach;
58368
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
58369
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
58370
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
58371
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
58372
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
58373
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
58374
+ var booleanValueOf = Boolean.prototype.valueOf;
58375
+ var objectToString = Object.prototype.toString;
58376
+ var functionToString = Function.prototype.toString;
58377
+ var $match = String.prototype.match;
58378
+ var $slice = String.prototype.slice;
58379
+ var $replace = String.prototype.replace;
58380
+ var $toUpperCase = String.prototype.toUpperCase;
58381
+ var $toLowerCase = String.prototype.toLowerCase;
58382
+ var $test = RegExp.prototype.test;
58383
+ var $concat = Array.prototype.concat;
58384
+ var $join = Array.prototype.join;
58385
+ var $arrSlice = Array.prototype.slice;
58386
+ var $floor = Math.floor;
58387
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
58388
+ var gOPS = Object.getOwnPropertySymbols;
58389
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
58390
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
58391
+ // ie, `has-tostringtag/shams
58392
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
58393
+ ? Symbol.toStringTag
58394
+ : null;
58395
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
58396
+
58397
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
58398
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
58399
+ ? function (O) {
58400
+ return O.__proto__; // eslint-disable-line no-proto
58401
+ }
58402
+ : null
58403
+ );
58404
+
58405
+ function addNumericSeparator(num, str) {
58406
+ if (
58407
+ num === Infinity
58408
+ || num === -Infinity
58409
+ || num !== num
58410
+ || (num && num > -1000 && num < 1000)
58411
+ || $test.call(/e/, str)
58412
+ ) {
58413
+ return str;
58414
+ }
58415
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
58416
+ if (typeof num === 'number') {
58417
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
58418
+ if (int !== num) {
58419
+ var intStr = String(int);
58420
+ var dec = $slice.call(str, intStr.length + 1);
58421
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
58422
+ }
58423
+ }
58424
+ return $replace.call(str, sepRegex, '$&_');
58425
+ }
58426
+
58427
+ var utilInspect = __webpack_require__(/*! ./util.inspect */ "?c95a");
58428
+ var inspectCustom = utilInspect.custom;
58429
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
58430
+
58431
+ module.exports = function inspect_(obj, options, depth, seen) {
58432
+ var opts = options || {};
58433
+
58434
+ if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
58435
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
58436
+ }
58437
+ if (
58438
+ has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
58439
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
58440
+ : opts.maxStringLength !== null
58441
+ )
58442
+ ) {
58443
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
58444
+ }
58445
+ var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
58446
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
58447
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
58448
+ }
58449
+
58450
+ if (
58451
+ has(opts, 'indent')
58452
+ && opts.indent !== null
58453
+ && opts.indent !== '\t'
58454
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
58455
+ ) {
58456
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
58457
+ }
58458
+ if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
58459
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
58460
+ }
58461
+ var numericSeparator = opts.numericSeparator;
58462
+
58463
+ if (typeof obj === 'undefined') {
58464
+ return 'undefined';
58465
+ }
58466
+ if (obj === null) {
58467
+ return 'null';
58468
+ }
58469
+ if (typeof obj === 'boolean') {
58470
+ return obj ? 'true' : 'false';
58471
+ }
58472
+
58473
+ if (typeof obj === 'string') {
58474
+ return inspectString(obj, opts);
58475
+ }
58476
+ if (typeof obj === 'number') {
58477
+ if (obj === 0) {
58478
+ return Infinity / obj > 0 ? '0' : '-0';
58479
+ }
58480
+ var str = String(obj);
58481
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
58482
+ }
58483
+ if (typeof obj === 'bigint') {
58484
+ var bigIntStr = String(obj) + 'n';
58485
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
58486
+ }
58487
+
58488
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
58489
+ if (typeof depth === 'undefined') { depth = 0; }
58490
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
58491
+ return isArray(obj) ? '[Array]' : '[Object]';
58492
+ }
58493
+
58494
+ var indent = getIndent(opts, depth);
58495
+
58496
+ if (typeof seen === 'undefined') {
58497
+ seen = [];
58498
+ } else if (indexOf(seen, obj) >= 0) {
58499
+ return '[Circular]';
58500
+ }
58501
+
58502
+ function inspect(value, from, noIndent) {
58503
+ if (from) {
58504
+ seen = $arrSlice.call(seen);
58505
+ seen.push(from);
58506
+ }
58507
+ if (noIndent) {
58508
+ var newOpts = {
58509
+ depth: opts.depth
58510
+ };
58511
+ if (has(opts, 'quoteStyle')) {
58512
+ newOpts.quoteStyle = opts.quoteStyle;
58513
+ }
58514
+ return inspect_(value, newOpts, depth + 1, seen);
58515
+ }
58516
+ return inspect_(value, opts, depth + 1, seen);
58517
+ }
58518
+
58519
+ if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
58520
+ var name = nameOf(obj);
58521
+ var keys = arrObjKeys(obj, inspect);
58522
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
58523
+ }
58524
+ if (isSymbol(obj)) {
58525
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
58526
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
58527
+ }
58528
+ if (isElement(obj)) {
58529
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
58530
+ var attrs = obj.attributes || [];
58531
+ for (var i = 0; i < attrs.length; i++) {
58532
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
58533
+ }
58534
+ s += '>';
58535
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
58536
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
58537
+ return s;
58538
+ }
58539
+ if (isArray(obj)) {
58540
+ if (obj.length === 0) { return '[]'; }
58541
+ var xs = arrObjKeys(obj, inspect);
58542
+ if (indent && !singleLineValues(xs)) {
58543
+ return '[' + indentedJoin(xs, indent) + ']';
58544
+ }
58545
+ return '[ ' + $join.call(xs, ', ') + ' ]';
58546
+ }
58547
+ if (isError(obj)) {
58548
+ var parts = arrObjKeys(obj, inspect);
58549
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
58550
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
58551
+ }
58552
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
58553
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
58554
+ }
58555
+ if (typeof obj === 'object' && customInspect) {
58556
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
58557
+ return utilInspect(obj, { depth: maxDepth - depth });
58558
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
58559
+ return obj.inspect();
58560
+ }
58561
+ }
58562
+ if (isMap(obj)) {
58563
+ var mapParts = [];
58564
+ if (mapForEach) {
58565
+ mapForEach.call(obj, function (value, key) {
58566
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
58567
+ });
58568
+ }
58569
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
58570
+ }
58571
+ if (isSet(obj)) {
58572
+ var setParts = [];
58573
+ if (setForEach) {
58574
+ setForEach.call(obj, function (value) {
58575
+ setParts.push(inspect(value, obj));
58576
+ });
58577
+ }
58578
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
58579
+ }
58580
+ if (isWeakMap(obj)) {
58581
+ return weakCollectionOf('WeakMap');
58582
+ }
58583
+ if (isWeakSet(obj)) {
58584
+ return weakCollectionOf('WeakSet');
58585
+ }
58586
+ if (isWeakRef(obj)) {
58587
+ return weakCollectionOf('WeakRef');
58588
+ }
58589
+ if (isNumber(obj)) {
58590
+ return markBoxed(inspect(Number(obj)));
58591
+ }
58592
+ if (isBigInt(obj)) {
58593
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
58594
+ }
58595
+ if (isBoolean(obj)) {
58596
+ return markBoxed(booleanValueOf.call(obj));
58597
+ }
58598
+ if (isString(obj)) {
58599
+ return markBoxed(inspect(String(obj)));
58600
+ }
58601
+ if (!isDate(obj) && !isRegExp(obj)) {
58602
+ var ys = arrObjKeys(obj, inspect);
58603
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
58604
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
58605
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
58606
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
58607
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
58608
+ if (ys.length === 0) { return tag + '{}'; }
58609
+ if (indent) {
58610
+ return tag + '{' + indentedJoin(ys, indent) + '}';
58611
+ }
58612
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
58613
+ }
58614
+ return String(obj);
58615
+ };
58616
+
58617
+ function wrapQuotes(s, defaultStyle, opts) {
58618
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
58619
+ return quoteChar + s + quoteChar;
58620
+ }
58621
+
58622
+ function quote(s) {
58623
+ return $replace.call(String(s), /"/g, '&quot;');
58624
+ }
58625
+
58626
+ function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58627
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58628
+ function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58629
+ function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58630
+ function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58631
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58632
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
58633
+
58634
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
58635
+ function isSymbol(obj) {
58636
+ if (hasShammedSymbols) {
58637
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
58638
+ }
58639
+ if (typeof obj === 'symbol') {
58640
+ return true;
58641
+ }
58642
+ if (!obj || typeof obj !== 'object' || !symToString) {
58643
+ return false;
58644
+ }
58645
+ try {
58646
+ symToString.call(obj);
58647
+ return true;
58648
+ } catch (e) {}
58649
+ return false;
58650
+ }
58651
+
58652
+ function isBigInt(obj) {
58653
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
58654
+ return false;
58655
+ }
58656
+ try {
58657
+ bigIntValueOf.call(obj);
58658
+ return true;
58659
+ } catch (e) {}
58660
+ return false;
58661
+ }
58662
+
58663
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
58664
+ function has(obj, key) {
58665
+ return hasOwn.call(obj, key);
58666
+ }
58667
+
58668
+ function toStr(obj) {
58669
+ return objectToString.call(obj);
58670
+ }
58671
+
58672
+ function nameOf(f) {
58673
+ if (f.name) { return f.name; }
58674
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
58675
+ if (m) { return m[1]; }
58676
+ return null;
58677
+ }
58678
+
58679
+ function indexOf(xs, x) {
58680
+ if (xs.indexOf) { return xs.indexOf(x); }
58681
+ for (var i = 0, l = xs.length; i < l; i++) {
58682
+ if (xs[i] === x) { return i; }
58683
+ }
58684
+ return -1;
58685
+ }
58686
+
58687
+ function isMap(x) {
58688
+ if (!mapSize || !x || typeof x !== 'object') {
58689
+ return false;
58690
+ }
58691
+ try {
58692
+ mapSize.call(x);
58693
+ try {
58694
+ setSize.call(x);
58695
+ } catch (s) {
58696
+ return true;
58697
+ }
58698
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
58699
+ } catch (e) {}
58700
+ return false;
58701
+ }
58702
+
58703
+ function isWeakMap(x) {
58704
+ if (!weakMapHas || !x || typeof x !== 'object') {
58705
+ return false;
58706
+ }
58707
+ try {
58708
+ weakMapHas.call(x, weakMapHas);
58709
+ try {
58710
+ weakSetHas.call(x, weakSetHas);
58711
+ } catch (s) {
58712
+ return true;
58713
+ }
58714
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
58715
+ } catch (e) {}
58716
+ return false;
58717
+ }
58718
+
58719
+ function isWeakRef(x) {
58720
+ if (!weakRefDeref || !x || typeof x !== 'object') {
58721
+ return false;
58722
+ }
58723
+ try {
58724
+ weakRefDeref.call(x);
58725
+ return true;
58726
+ } catch (e) {}
58727
+ return false;
58728
+ }
58729
+
58730
+ function isSet(x) {
58731
+ if (!setSize || !x || typeof x !== 'object') {
58732
+ return false;
58733
+ }
58734
+ try {
58735
+ setSize.call(x);
58736
+ try {
58737
+ mapSize.call(x);
58738
+ } catch (m) {
58739
+ return true;
58740
+ }
58741
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
58742
+ } catch (e) {}
58743
+ return false;
58744
+ }
58745
+
58746
+ function isWeakSet(x) {
58747
+ if (!weakSetHas || !x || typeof x !== 'object') {
58748
+ return false;
58749
+ }
58750
+ try {
58751
+ weakSetHas.call(x, weakSetHas);
58752
+ try {
58753
+ weakMapHas.call(x, weakMapHas);
58754
+ } catch (s) {
58755
+ return true;
58756
+ }
58757
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
58758
+ } catch (e) {}
58759
+ return false;
58760
+ }
58761
+
58762
+ function isElement(x) {
58763
+ if (!x || typeof x !== 'object') { return false; }
58764
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
58765
+ return true;
58766
+ }
58767
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
58768
+ }
58769
+
58770
+ function inspectString(str, opts) {
58771
+ if (str.length > opts.maxStringLength) {
58772
+ var remaining = str.length - opts.maxStringLength;
58773
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
58774
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
58775
+ }
58776
+ // eslint-disable-next-line no-control-regex
58777
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
58778
+ return wrapQuotes(s, 'single', opts);
58779
+ }
58780
+
58781
+ function lowbyte(c) {
58782
+ var n = c.charCodeAt(0);
58783
+ var x = {
58784
+ 8: 'b',
58785
+ 9: 't',
58786
+ 10: 'n',
58787
+ 12: 'f',
58788
+ 13: 'r'
58789
+ }[n];
58790
+ if (x) { return '\\' + x; }
58791
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
58792
+ }
58793
+
58794
+ function markBoxed(str) {
58795
+ return 'Object(' + str + ')';
58796
+ }
58797
+
58798
+ function weakCollectionOf(type) {
58799
+ return type + ' { ? }';
58800
+ }
58801
+
58802
+ function collectionOf(type, size, entries, indent) {
58803
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
58804
+ return type + ' (' + size + ') {' + joinedEntries + '}';
58805
+ }
58806
+
58807
+ function singleLineValues(xs) {
58808
+ for (var i = 0; i < xs.length; i++) {
58809
+ if (indexOf(xs[i], '\n') >= 0) {
58810
+ return false;
58811
+ }
58812
+ }
58813
+ return true;
58814
+ }
58815
+
58816
+ function getIndent(opts, depth) {
58817
+ var baseIndent;
58818
+ if (opts.indent === '\t') {
58819
+ baseIndent = '\t';
58820
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
58821
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
58822
+ } else {
58823
+ return null;
58824
+ }
58825
+ return {
58826
+ base: baseIndent,
58827
+ prev: $join.call(Array(depth + 1), baseIndent)
58828
+ };
58829
+ }
58830
+
58831
+ function indentedJoin(xs, indent) {
58832
+ if (xs.length === 0) { return ''; }
58833
+ var lineJoiner = '\n' + indent.prev + indent.base;
58834
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
58835
+ }
58836
+
58837
+ function arrObjKeys(obj, inspect) {
58838
+ var isArr = isArray(obj);
58839
+ var xs = [];
58840
+ if (isArr) {
58841
+ xs.length = obj.length;
58842
+ for (var i = 0; i < obj.length; i++) {
58843
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
58844
+ }
58845
+ }
58846
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
58847
+ var symMap;
58848
+ if (hasShammedSymbols) {
58849
+ symMap = {};
58850
+ for (var k = 0; k < syms.length; k++) {
58851
+ symMap['$' + syms[k]] = syms[k];
58852
+ }
58853
+ }
58854
+
58855
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
58856
+ if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
58857
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
58858
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
58859
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
58860
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
58861
+ } else if ($test.call(/[^\w$]/, key)) {
58862
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
58863
+ } else {
58864
+ xs.push(key + ': ' + inspect(obj[key], obj));
58865
+ }
58866
+ }
58867
+ if (typeof gOPS === 'function') {
58868
+ for (var j = 0; j < syms.length; j++) {
58869
+ if (isEnumerable.call(obj, syms[j])) {
58870
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
58871
+ }
58872
+ }
58873
+ }
58874
+ return xs;
58875
+ }
58876
+
58877
+
58323
58878
  /***/ }),
58324
58879
 
58325
58880
  /***/ "../../node_modules/object-is/implementation.js":
@@ -59845,183 +60400,932 @@ module.exports = function xor (a, b) {
59845
60400
 
59846
60401
  /***/ }),
59847
60402
 
59848
- /***/ "../../node_modules/querystring/decode.js":
59849
- /*!************************************************!*\
59850
- !*** ../../node_modules/querystring/decode.js ***!
59851
- \************************************************/
60403
+ /***/ "../../node_modules/qs/lib/formats.js":
60404
+ /*!********************************************!*\
60405
+ !*** ../../node_modules/qs/lib/formats.js ***!
60406
+ \********************************************/
59852
60407
  /***/ ((module) => {
59853
60408
 
59854
60409
  "use strict";
59855
- // Copyright Joyent, Inc. and other Node contributors.
59856
- //
59857
- // Permission is hereby granted, free of charge, to any person obtaining a
59858
- // copy of this software and associated documentation files (the
59859
- // "Software"), to deal in the Software without restriction, including
59860
- // without limitation the rights to use, copy, modify, merge, publish,
59861
- // distribute, sublicense, and/or sell copies of the Software, and to permit
59862
- // persons to whom the Software is furnished to do so, subject to the
59863
- // following conditions:
59864
- //
59865
- // The above copyright notice and this permission notice shall be included
59866
- // in all copies or substantial portions of the Software.
59867
- //
59868
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
59869
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59870
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
59871
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
59872
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
59873
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
59874
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
59875
60410
 
59876
60411
 
60412
+ var replace = String.prototype.replace;
60413
+ var percentTwenties = /%20/g;
59877
60414
 
59878
- // If obj.hasOwnProperty has been overridden, then calling
59879
- // obj.hasOwnProperty(prop) will break.
59880
- // See: https://github.com/joyent/node/issues/1707
59881
- function hasOwnProperty(obj, prop) {
59882
- return Object.prototype.hasOwnProperty.call(obj, prop);
59883
- }
60415
+ var Format = {
60416
+ RFC1738: 'RFC1738',
60417
+ RFC3986: 'RFC3986'
60418
+ };
60419
+
60420
+ module.exports = {
60421
+ 'default': Format.RFC3986,
60422
+ formatters: {
60423
+ RFC1738: function (value) {
60424
+ return replace.call(value, percentTwenties, '+');
60425
+ },
60426
+ RFC3986: function (value) {
60427
+ return String(value);
60428
+ }
60429
+ },
60430
+ RFC1738: Format.RFC1738,
60431
+ RFC3986: Format.RFC3986
60432
+ };
59884
60433
 
59885
- module.exports = function(qs, sep, eq, options) {
59886
- sep = sep || '&';
59887
- eq = eq || '=';
59888
- var obj = {};
59889
60434
 
59890
- if (typeof qs !== 'string' || qs.length === 0) {
60435
+ /***/ }),
60436
+
60437
+ /***/ "../../node_modules/qs/lib/index.js":
60438
+ /*!******************************************!*\
60439
+ !*** ../../node_modules/qs/lib/index.js ***!
60440
+ \******************************************/
60441
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
60442
+
60443
+ "use strict";
60444
+
60445
+
60446
+ var stringify = __webpack_require__(/*! ./stringify */ "../../node_modules/qs/lib/stringify.js");
60447
+ var parse = __webpack_require__(/*! ./parse */ "../../node_modules/qs/lib/parse.js");
60448
+ var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
60449
+
60450
+ module.exports = {
60451
+ formats: formats,
60452
+ parse: parse,
60453
+ stringify: stringify
60454
+ };
60455
+
60456
+
60457
+ /***/ }),
60458
+
60459
+ /***/ "../../node_modules/qs/lib/parse.js":
60460
+ /*!******************************************!*\
60461
+ !*** ../../node_modules/qs/lib/parse.js ***!
60462
+ \******************************************/
60463
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
60464
+
60465
+ "use strict";
60466
+
60467
+
60468
+ var utils = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
60469
+
60470
+ var has = Object.prototype.hasOwnProperty;
60471
+ var isArray = Array.isArray;
60472
+
60473
+ var defaults = {
60474
+ allowDots: false,
60475
+ allowPrototypes: false,
60476
+ allowSparse: false,
60477
+ arrayLimit: 20,
60478
+ charset: 'utf-8',
60479
+ charsetSentinel: false,
60480
+ comma: false,
60481
+ decoder: utils.decode,
60482
+ delimiter: '&',
60483
+ depth: 5,
60484
+ ignoreQueryPrefix: false,
60485
+ interpretNumericEntities: false,
60486
+ parameterLimit: 1000,
60487
+ parseArrays: true,
60488
+ plainObjects: false,
60489
+ strictNullHandling: false
60490
+ };
60491
+
60492
+ var interpretNumericEntities = function (str) {
60493
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
60494
+ return String.fromCharCode(parseInt(numberStr, 10));
60495
+ });
60496
+ };
60497
+
60498
+ var parseArrayValue = function (val, options) {
60499
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
60500
+ return val.split(',');
60501
+ }
60502
+
60503
+ return val;
60504
+ };
60505
+
60506
+ // This is what browsers will submit when the ✓ character occurs in an
60507
+ // application/x-www-form-urlencoded body and the encoding of the page containing
60508
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
60509
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
60510
+ // the ✓ character, such as us-ascii.
60511
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
60512
+
60513
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
60514
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
60515
+
60516
+ var parseValues = function parseQueryStringValues(str, options) {
60517
+ var obj = {};
60518
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
60519
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
60520
+ var parts = cleanStr.split(options.delimiter, limit);
60521
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
60522
+ var i;
60523
+
60524
+ var charset = options.charset;
60525
+ if (options.charsetSentinel) {
60526
+ for (i = 0; i < parts.length; ++i) {
60527
+ if (parts[i].indexOf('utf8=') === 0) {
60528
+ if (parts[i] === charsetSentinel) {
60529
+ charset = 'utf-8';
60530
+ } else if (parts[i] === isoSentinel) {
60531
+ charset = 'iso-8859-1';
60532
+ }
60533
+ skipIndex = i;
60534
+ i = parts.length; // The eslint settings do not allow break;
60535
+ }
60536
+ }
60537
+ }
60538
+
60539
+ for (i = 0; i < parts.length; ++i) {
60540
+ if (i === skipIndex) {
60541
+ continue;
60542
+ }
60543
+ var part = parts[i];
60544
+
60545
+ var bracketEqualsPos = part.indexOf(']=');
60546
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
60547
+
60548
+ var key, val;
60549
+ if (pos === -1) {
60550
+ key = options.decoder(part, defaults.decoder, charset, 'key');
60551
+ val = options.strictNullHandling ? null : '';
60552
+ } else {
60553
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
60554
+ val = utils.maybeMap(
60555
+ parseArrayValue(part.slice(pos + 1), options),
60556
+ function (encodedVal) {
60557
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
60558
+ }
60559
+ );
60560
+ }
60561
+
60562
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
60563
+ val = interpretNumericEntities(val);
60564
+ }
60565
+
60566
+ if (part.indexOf('[]=') > -1) {
60567
+ val = isArray(val) ? [val] : val;
60568
+ }
60569
+
60570
+ if (has.call(obj, key)) {
60571
+ obj[key] = utils.combine(obj[key], val);
60572
+ } else {
60573
+ obj[key] = val;
60574
+ }
60575
+ }
60576
+
59891
60577
  return obj;
59892
- }
60578
+ };
59893
60579
 
59894
- var regexp = /\+/g;
59895
- qs = qs.split(sep);
60580
+ var parseObject = function (chain, val, options, valuesParsed) {
60581
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
59896
60582
 
59897
- var maxKeys = 1000;
59898
- if (options && typeof options.maxKeys === 'number') {
59899
- maxKeys = options.maxKeys;
59900
- }
60583
+ for (var i = chain.length - 1; i >= 0; --i) {
60584
+ var obj;
60585
+ var root = chain[i];
59901
60586
 
59902
- var len = qs.length;
59903
- // maxKeys <= 0 means that we should not limit keys count
59904
- if (maxKeys > 0 && len > maxKeys) {
59905
- len = maxKeys;
59906
- }
60587
+ if (root === '[]' && options.parseArrays) {
60588
+ obj = [].concat(leaf);
60589
+ } else {
60590
+ obj = options.plainObjects ? Object.create(null) : {};
60591
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
60592
+ var index = parseInt(cleanRoot, 10);
60593
+ if (!options.parseArrays && cleanRoot === '') {
60594
+ obj = { 0: leaf };
60595
+ } else if (
60596
+ !isNaN(index)
60597
+ && root !== cleanRoot
60598
+ && String(index) === cleanRoot
60599
+ && index >= 0
60600
+ && (options.parseArrays && index <= options.arrayLimit)
60601
+ ) {
60602
+ obj = [];
60603
+ obj[index] = leaf;
60604
+ } else if (cleanRoot !== '__proto__') {
60605
+ obj[cleanRoot] = leaf;
60606
+ }
60607
+ }
59907
60608
 
59908
- for (var i = 0; i < len; ++i) {
59909
- var x = qs[i].replace(regexp, '%20'),
59910
- idx = x.indexOf(eq),
59911
- kstr, vstr, k, v;
60609
+ leaf = obj;
60610
+ }
59912
60611
 
59913
- if (idx >= 0) {
59914
- kstr = x.substr(0, idx);
59915
- vstr = x.substr(idx + 1);
59916
- } else {
59917
- kstr = x;
59918
- vstr = '';
60612
+ return leaf;
60613
+ };
60614
+
60615
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
60616
+ if (!givenKey) {
60617
+ return;
59919
60618
  }
59920
60619
 
59921
- k = decodeURIComponent(kstr);
59922
- v = decodeURIComponent(vstr);
60620
+ // Transform dot notation to bracket notation
60621
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
59923
60622
 
59924
- if (!hasOwnProperty(obj, k)) {
59925
- obj[k] = v;
59926
- } else if (Array.isArray(obj[k])) {
59927
- obj[k].push(v);
59928
- } else {
59929
- obj[k] = [obj[k], v];
60623
+ // The regex chunks
60624
+
60625
+ var brackets = /(\[[^[\]]*])/;
60626
+ var child = /(\[[^[\]]*])/g;
60627
+
60628
+ // Get the parent
60629
+
60630
+ var segment = options.depth > 0 && brackets.exec(key);
60631
+ var parent = segment ? key.slice(0, segment.index) : key;
60632
+
60633
+ // Stash the parent if it exists
60634
+
60635
+ var keys = [];
60636
+ if (parent) {
60637
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
60638
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
60639
+ if (!options.allowPrototypes) {
60640
+ return;
60641
+ }
60642
+ }
60643
+
60644
+ keys.push(parent);
59930
60645
  }
59931
- }
59932
60646
 
59933
- return obj;
60647
+ // Loop through children appending to the array until we hit depth
60648
+
60649
+ var i = 0;
60650
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
60651
+ i += 1;
60652
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
60653
+ if (!options.allowPrototypes) {
60654
+ return;
60655
+ }
60656
+ }
60657
+ keys.push(segment[1]);
60658
+ }
60659
+
60660
+ // If there's a remainder, just add whatever is left
60661
+
60662
+ if (segment) {
60663
+ keys.push('[' + key.slice(segment.index) + ']');
60664
+ }
60665
+
60666
+ return parseObject(keys, val, options, valuesParsed);
60667
+ };
60668
+
60669
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
60670
+ if (!opts) {
60671
+ return defaults;
60672
+ }
60673
+
60674
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
60675
+ throw new TypeError('Decoder has to be a function.');
60676
+ }
60677
+
60678
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
60679
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
60680
+ }
60681
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
60682
+
60683
+ return {
60684
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
60685
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
60686
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
60687
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
60688
+ charset: charset,
60689
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
60690
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
60691
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
60692
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
60693
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
60694
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
60695
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
60696
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
60697
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
60698
+ parseArrays: opts.parseArrays !== false,
60699
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
60700
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
60701
+ };
60702
+ };
60703
+
60704
+ module.exports = function (str, opts) {
60705
+ var options = normalizeParseOptions(opts);
60706
+
60707
+ if (str === '' || str === null || typeof str === 'undefined') {
60708
+ return options.plainObjects ? Object.create(null) : {};
60709
+ }
60710
+
60711
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
60712
+ var obj = options.plainObjects ? Object.create(null) : {};
60713
+
60714
+ // Iterate over the keys and setup the new object
60715
+
60716
+ var keys = Object.keys(tempObj);
60717
+ for (var i = 0; i < keys.length; ++i) {
60718
+ var key = keys[i];
60719
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
60720
+ obj = utils.merge(obj, newObj, options);
60721
+ }
60722
+
60723
+ if (options.allowSparse === true) {
60724
+ return obj;
60725
+ }
60726
+
60727
+ return utils.compact(obj);
59934
60728
  };
59935
60729
 
59936
60730
 
59937
60731
  /***/ }),
59938
60732
 
59939
- /***/ "../../node_modules/querystring/encode.js":
59940
- /*!************************************************!*\
59941
- !*** ../../node_modules/querystring/encode.js ***!
59942
- \************************************************/
59943
- /***/ ((module) => {
60733
+ /***/ "../../node_modules/qs/lib/stringify.js":
60734
+ /*!**********************************************!*\
60735
+ !*** ../../node_modules/qs/lib/stringify.js ***!
60736
+ \**********************************************/
60737
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
59944
60738
 
59945
60739
  "use strict";
59946
- // Copyright Joyent, Inc. and other Node contributors.
59947
- //
59948
- // Permission is hereby granted, free of charge, to any person obtaining a
59949
- // copy of this software and associated documentation files (the
59950
- // "Software"), to deal in the Software without restriction, including
59951
- // without limitation the rights to use, copy, modify, merge, publish,
59952
- // distribute, sublicense, and/or sell copies of the Software, and to permit
59953
- // persons to whom the Software is furnished to do so, subject to the
59954
- // following conditions:
59955
- //
59956
- // The above copyright notice and this permission notice shall be included
59957
- // in all copies or substantial portions of the Software.
59958
- //
59959
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
59960
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59961
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
59962
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
59963
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
59964
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
59965
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
59966
60740
 
59967
60741
 
60742
+ var getSideChannel = __webpack_require__(/*! side-channel */ "../../node_modules/side-channel/index.js");
60743
+ var utils = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
60744
+ var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
60745
+ var has = Object.prototype.hasOwnProperty;
59968
60746
 
59969
- var stringifyPrimitive = function(v) {
59970
- switch (typeof v) {
59971
- case 'string':
59972
- return v;
60747
+ var arrayPrefixGenerators = {
60748
+ brackets: function brackets(prefix) {
60749
+ return prefix + '[]';
60750
+ },
60751
+ comma: 'comma',
60752
+ indices: function indices(prefix, key) {
60753
+ return prefix + '[' + key + ']';
60754
+ },
60755
+ repeat: function repeat(prefix) {
60756
+ return prefix;
60757
+ }
60758
+ };
59973
60759
 
59974
- case 'boolean':
59975
- return v ? 'true' : 'false';
60760
+ var isArray = Array.isArray;
60761
+ var split = String.prototype.split;
60762
+ var push = Array.prototype.push;
60763
+ var pushToArray = function (arr, valueOrArray) {
60764
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
60765
+ };
59976
60766
 
59977
- case 'number':
59978
- return isFinite(v) ? v : '';
60767
+ var toISO = Date.prototype.toISOString;
60768
+
60769
+ var defaultFormat = formats['default'];
60770
+ var defaults = {
60771
+ addQueryPrefix: false,
60772
+ allowDots: false,
60773
+ charset: 'utf-8',
60774
+ charsetSentinel: false,
60775
+ delimiter: '&',
60776
+ encode: true,
60777
+ encoder: utils.encode,
60778
+ encodeValuesOnly: false,
60779
+ format: defaultFormat,
60780
+ formatter: formats.formatters[defaultFormat],
60781
+ // deprecated
60782
+ indices: false,
60783
+ serializeDate: function serializeDate(date) {
60784
+ return toISO.call(date);
60785
+ },
60786
+ skipNulls: false,
60787
+ strictNullHandling: false
60788
+ };
59979
60789
 
59980
- default:
59981
- return '';
59982
- }
60790
+ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
60791
+ return typeof v === 'string'
60792
+ || typeof v === 'number'
60793
+ || typeof v === 'boolean'
60794
+ || typeof v === 'symbol'
60795
+ || typeof v === 'bigint';
59983
60796
  };
59984
60797
 
59985
- module.exports = function(obj, sep, eq, name) {
59986
- sep = sep || '&';
59987
- eq = eq || '=';
59988
- if (obj === null) {
59989
- obj = undefined;
59990
- }
60798
+ var sentinel = {};
60799
+
60800
+ var stringify = function stringify(
60801
+ object,
60802
+ prefix,
60803
+ generateArrayPrefix,
60804
+ commaRoundTrip,
60805
+ strictNullHandling,
60806
+ skipNulls,
60807
+ encoder,
60808
+ filter,
60809
+ sort,
60810
+ allowDots,
60811
+ serializeDate,
60812
+ format,
60813
+ formatter,
60814
+ encodeValuesOnly,
60815
+ charset,
60816
+ sideChannel
60817
+ ) {
60818
+ var obj = object;
60819
+
60820
+ var tmpSc = sideChannel;
60821
+ var step = 0;
60822
+ var findFlag = false;
60823
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
60824
+ // Where object last appeared in the ref tree
60825
+ var pos = tmpSc.get(object);
60826
+ step += 1;
60827
+ if (typeof pos !== 'undefined') {
60828
+ if (pos === step) {
60829
+ throw new RangeError('Cyclic object value');
60830
+ } else {
60831
+ findFlag = true; // Break while
60832
+ }
60833
+ }
60834
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
60835
+ step = 0;
60836
+ }
60837
+ }
59991
60838
 
59992
- if (typeof obj === 'object') {
59993
- return Object.keys(obj).map(function(k) {
59994
- var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
59995
- if (Array.isArray(obj[k])) {
59996
- return obj[k].map(function(v) {
59997
- return ks + encodeURIComponent(stringifyPrimitive(v));
59998
- }).join(sep);
59999
- } else {
60000
- return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
60001
- }
60002
- }).join(sep);
60839
+ if (typeof filter === 'function') {
60840
+ obj = filter(prefix, obj);
60841
+ } else if (obj instanceof Date) {
60842
+ obj = serializeDate(obj);
60843
+ } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
60844
+ obj = utils.maybeMap(obj, function (value) {
60845
+ if (value instanceof Date) {
60846
+ return serializeDate(value);
60847
+ }
60848
+ return value;
60849
+ });
60850
+ }
60003
60851
 
60004
- }
60852
+ if (obj === null) {
60853
+ if (strictNullHandling) {
60854
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
60855
+ }
60856
+
60857
+ obj = '';
60858
+ }
60859
+
60860
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
60861
+ if (encoder) {
60862
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
60863
+ if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
60864
+ var valuesArray = split.call(String(obj), ',');
60865
+ var valuesJoined = '';
60866
+ for (var i = 0; i < valuesArray.length; ++i) {
60867
+ valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
60868
+ }
60869
+ return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
60870
+ }
60871
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
60872
+ }
60873
+ return [formatter(prefix) + '=' + formatter(String(obj))];
60874
+ }
60875
+
60876
+ var values = [];
60877
+
60878
+ if (typeof obj === 'undefined') {
60879
+ return values;
60880
+ }
60881
+
60882
+ var objKeys;
60883
+ if (generateArrayPrefix === 'comma' && isArray(obj)) {
60884
+ // we need to join elements in
60885
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
60886
+ } else if (isArray(filter)) {
60887
+ objKeys = filter;
60888
+ } else {
60889
+ var keys = Object.keys(obj);
60890
+ objKeys = sort ? keys.sort(sort) : keys;
60891
+ }
60892
+
60893
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
60894
+
60895
+ for (var j = 0; j < objKeys.length; ++j) {
60896
+ var key = objKeys[j];
60897
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
60898
+
60899
+ if (skipNulls && value === null) {
60900
+ continue;
60901
+ }
60902
+
60903
+ var keyPrefix = isArray(obj)
60904
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
60905
+ : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
60906
+
60907
+ sideChannel.set(object, step);
60908
+ var valueSideChannel = getSideChannel();
60909
+ valueSideChannel.set(sentinel, sideChannel);
60910
+ pushToArray(values, stringify(
60911
+ value,
60912
+ keyPrefix,
60913
+ generateArrayPrefix,
60914
+ commaRoundTrip,
60915
+ strictNullHandling,
60916
+ skipNulls,
60917
+ encoder,
60918
+ filter,
60919
+ sort,
60920
+ allowDots,
60921
+ serializeDate,
60922
+ format,
60923
+ formatter,
60924
+ encodeValuesOnly,
60925
+ charset,
60926
+ valueSideChannel
60927
+ ));
60928
+ }
60929
+
60930
+ return values;
60931
+ };
60005
60932
 
60006
- if (!name) return '';
60007
- return encodeURIComponent(stringifyPrimitive(name)) + eq +
60008
- encodeURIComponent(stringifyPrimitive(obj));
60933
+ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
60934
+ if (!opts) {
60935
+ return defaults;
60936
+ }
60937
+
60938
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
60939
+ throw new TypeError('Encoder has to be a function.');
60940
+ }
60941
+
60942
+ var charset = opts.charset || defaults.charset;
60943
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
60944
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
60945
+ }
60946
+
60947
+ var format = formats['default'];
60948
+ if (typeof opts.format !== 'undefined') {
60949
+ if (!has.call(formats.formatters, opts.format)) {
60950
+ throw new TypeError('Unknown format option provided.');
60951
+ }
60952
+ format = opts.format;
60953
+ }
60954
+ var formatter = formats.formatters[format];
60955
+
60956
+ var filter = defaults.filter;
60957
+ if (typeof opts.filter === 'function' || isArray(opts.filter)) {
60958
+ filter = opts.filter;
60959
+ }
60960
+
60961
+ return {
60962
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
60963
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
60964
+ charset: charset,
60965
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
60966
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
60967
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
60968
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
60969
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
60970
+ filter: filter,
60971
+ format: format,
60972
+ formatter: formatter,
60973
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
60974
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
60975
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
60976
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
60977
+ };
60978
+ };
60979
+
60980
+ module.exports = function (object, opts) {
60981
+ var obj = object;
60982
+ var options = normalizeStringifyOptions(opts);
60983
+
60984
+ var objKeys;
60985
+ var filter;
60986
+
60987
+ if (typeof options.filter === 'function') {
60988
+ filter = options.filter;
60989
+ obj = filter('', obj);
60990
+ } else if (isArray(options.filter)) {
60991
+ filter = options.filter;
60992
+ objKeys = filter;
60993
+ }
60994
+
60995
+ var keys = [];
60996
+
60997
+ if (typeof obj !== 'object' || obj === null) {
60998
+ return '';
60999
+ }
61000
+
61001
+ var arrayFormat;
61002
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
61003
+ arrayFormat = opts.arrayFormat;
61004
+ } else if (opts && 'indices' in opts) {
61005
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
61006
+ } else {
61007
+ arrayFormat = 'indices';
61008
+ }
61009
+
61010
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
61011
+ if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
61012
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
61013
+ }
61014
+ var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
61015
+
61016
+ if (!objKeys) {
61017
+ objKeys = Object.keys(obj);
61018
+ }
61019
+
61020
+ if (options.sort) {
61021
+ objKeys.sort(options.sort);
61022
+ }
61023
+
61024
+ var sideChannel = getSideChannel();
61025
+ for (var i = 0; i < objKeys.length; ++i) {
61026
+ var key = objKeys[i];
61027
+
61028
+ if (options.skipNulls && obj[key] === null) {
61029
+ continue;
61030
+ }
61031
+ pushToArray(keys, stringify(
61032
+ obj[key],
61033
+ key,
61034
+ generateArrayPrefix,
61035
+ commaRoundTrip,
61036
+ options.strictNullHandling,
61037
+ options.skipNulls,
61038
+ options.encode ? options.encoder : null,
61039
+ options.filter,
61040
+ options.sort,
61041
+ options.allowDots,
61042
+ options.serializeDate,
61043
+ options.format,
61044
+ options.formatter,
61045
+ options.encodeValuesOnly,
61046
+ options.charset,
61047
+ sideChannel
61048
+ ));
61049
+ }
61050
+
61051
+ var joined = keys.join(options.delimiter);
61052
+ var prefix = options.addQueryPrefix === true ? '?' : '';
61053
+
61054
+ if (options.charsetSentinel) {
61055
+ if (options.charset === 'iso-8859-1') {
61056
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
61057
+ prefix += 'utf8=%26%2310003%3B&';
61058
+ } else {
61059
+ // encodeURIComponent('✓')
61060
+ prefix += 'utf8=%E2%9C%93&';
61061
+ }
61062
+ }
61063
+
61064
+ return joined.length > 0 ? prefix + joined : '';
60009
61065
  };
60010
61066
 
60011
61067
 
60012
61068
  /***/ }),
60013
61069
 
60014
- /***/ "../../node_modules/querystring/index.js":
60015
- /*!***********************************************!*\
60016
- !*** ../../node_modules/querystring/index.js ***!
60017
- \***********************************************/
60018
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
61070
+ /***/ "../../node_modules/qs/lib/utils.js":
61071
+ /*!******************************************!*\
61072
+ !*** ../../node_modules/qs/lib/utils.js ***!
61073
+ \******************************************/
61074
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
60019
61075
 
60020
61076
  "use strict";
60021
61077
 
60022
61078
 
60023
- exports.decode = exports.parse = __webpack_require__(/*! ./decode */ "../../node_modules/querystring/decode.js");
60024
- exports.encode = exports.stringify = __webpack_require__(/*! ./encode */ "../../node_modules/querystring/encode.js");
61079
+ var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
61080
+
61081
+ var has = Object.prototype.hasOwnProperty;
61082
+ var isArray = Array.isArray;
61083
+
61084
+ var hexTable = (function () {
61085
+ var array = [];
61086
+ for (var i = 0; i < 256; ++i) {
61087
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
61088
+ }
61089
+
61090
+ return array;
61091
+ }());
61092
+
61093
+ var compactQueue = function compactQueue(queue) {
61094
+ while (queue.length > 1) {
61095
+ var item = queue.pop();
61096
+ var obj = item.obj[item.prop];
61097
+
61098
+ if (isArray(obj)) {
61099
+ var compacted = [];
61100
+
61101
+ for (var j = 0; j < obj.length; ++j) {
61102
+ if (typeof obj[j] !== 'undefined') {
61103
+ compacted.push(obj[j]);
61104
+ }
61105
+ }
61106
+
61107
+ item.obj[item.prop] = compacted;
61108
+ }
61109
+ }
61110
+ };
61111
+
61112
+ var arrayToObject = function arrayToObject(source, options) {
61113
+ var obj = options && options.plainObjects ? Object.create(null) : {};
61114
+ for (var i = 0; i < source.length; ++i) {
61115
+ if (typeof source[i] !== 'undefined') {
61116
+ obj[i] = source[i];
61117
+ }
61118
+ }
61119
+
61120
+ return obj;
61121
+ };
61122
+
61123
+ var merge = function merge(target, source, options) {
61124
+ /* eslint no-param-reassign: 0 */
61125
+ if (!source) {
61126
+ return target;
61127
+ }
61128
+
61129
+ if (typeof source !== 'object') {
61130
+ if (isArray(target)) {
61131
+ target.push(source);
61132
+ } else if (target && typeof target === 'object') {
61133
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
61134
+ target[source] = true;
61135
+ }
61136
+ } else {
61137
+ return [target, source];
61138
+ }
61139
+
61140
+ return target;
61141
+ }
61142
+
61143
+ if (!target || typeof target !== 'object') {
61144
+ return [target].concat(source);
61145
+ }
61146
+
61147
+ var mergeTarget = target;
61148
+ if (isArray(target) && !isArray(source)) {
61149
+ mergeTarget = arrayToObject(target, options);
61150
+ }
61151
+
61152
+ if (isArray(target) && isArray(source)) {
61153
+ source.forEach(function (item, i) {
61154
+ if (has.call(target, i)) {
61155
+ var targetItem = target[i];
61156
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
61157
+ target[i] = merge(targetItem, item, options);
61158
+ } else {
61159
+ target.push(item);
61160
+ }
61161
+ } else {
61162
+ target[i] = item;
61163
+ }
61164
+ });
61165
+ return target;
61166
+ }
61167
+
61168
+ return Object.keys(source).reduce(function (acc, key) {
61169
+ var value = source[key];
61170
+
61171
+ if (has.call(acc, key)) {
61172
+ acc[key] = merge(acc[key], value, options);
61173
+ } else {
61174
+ acc[key] = value;
61175
+ }
61176
+ return acc;
61177
+ }, mergeTarget);
61178
+ };
61179
+
61180
+ var assign = function assignSingleSource(target, source) {
61181
+ return Object.keys(source).reduce(function (acc, key) {
61182
+ acc[key] = source[key];
61183
+ return acc;
61184
+ }, target);
61185
+ };
61186
+
61187
+ var decode = function (str, decoder, charset) {
61188
+ var strWithoutPlus = str.replace(/\+/g, ' ');
61189
+ if (charset === 'iso-8859-1') {
61190
+ // unescape never throws, no try...catch needed:
61191
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
61192
+ }
61193
+ // utf-8
61194
+ try {
61195
+ return decodeURIComponent(strWithoutPlus);
61196
+ } catch (e) {
61197
+ return strWithoutPlus;
61198
+ }
61199
+ };
61200
+
61201
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
61202
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
61203
+ // It has been adapted here for stricter adherence to RFC 3986
61204
+ if (str.length === 0) {
61205
+ return str;
61206
+ }
61207
+
61208
+ var string = str;
61209
+ if (typeof str === 'symbol') {
61210
+ string = Symbol.prototype.toString.call(str);
61211
+ } else if (typeof str !== 'string') {
61212
+ string = String(str);
61213
+ }
61214
+
61215
+ if (charset === 'iso-8859-1') {
61216
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
61217
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
61218
+ });
61219
+ }
61220
+
61221
+ var out = '';
61222
+ for (var i = 0; i < string.length; ++i) {
61223
+ var c = string.charCodeAt(i);
61224
+
61225
+ if (
61226
+ c === 0x2D // -
61227
+ || c === 0x2E // .
61228
+ || c === 0x5F // _
61229
+ || c === 0x7E // ~
61230
+ || (c >= 0x30 && c <= 0x39) // 0-9
61231
+ || (c >= 0x41 && c <= 0x5A) // a-z
61232
+ || (c >= 0x61 && c <= 0x7A) // A-Z
61233
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
61234
+ ) {
61235
+ out += string.charAt(i);
61236
+ continue;
61237
+ }
61238
+
61239
+ if (c < 0x80) {
61240
+ out = out + hexTable[c];
61241
+ continue;
61242
+ }
61243
+
61244
+ if (c < 0x800) {
61245
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
61246
+ continue;
61247
+ }
61248
+
61249
+ if (c < 0xD800 || c >= 0xE000) {
61250
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
61251
+ continue;
61252
+ }
61253
+
61254
+ i += 1;
61255
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
61256
+ /* eslint operator-linebreak: [2, "before"] */
61257
+ out += hexTable[0xF0 | (c >> 18)]
61258
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
61259
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
61260
+ + hexTable[0x80 | (c & 0x3F)];
61261
+ }
61262
+
61263
+ return out;
61264
+ };
61265
+
61266
+ var compact = function compact(value) {
61267
+ var queue = [{ obj: { o: value }, prop: 'o' }];
61268
+ var refs = [];
61269
+
61270
+ for (var i = 0; i < queue.length; ++i) {
61271
+ var item = queue[i];
61272
+ var obj = item.obj[item.prop];
61273
+
61274
+ var keys = Object.keys(obj);
61275
+ for (var j = 0; j < keys.length; ++j) {
61276
+ var key = keys[j];
61277
+ var val = obj[key];
61278
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
61279
+ queue.push({ obj: obj, prop: key });
61280
+ refs.push(val);
61281
+ }
61282
+ }
61283
+ }
61284
+
61285
+ compactQueue(queue);
61286
+
61287
+ return value;
61288
+ };
61289
+
61290
+ var isRegExp = function isRegExp(obj) {
61291
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
61292
+ };
61293
+
61294
+ var isBuffer = function isBuffer(obj) {
61295
+ if (!obj || typeof obj !== 'object') {
61296
+ return false;
61297
+ }
61298
+
61299
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
61300
+ };
61301
+
61302
+ var combine = function combine(a, b) {
61303
+ return [].concat(a, b);
61304
+ };
61305
+
61306
+ var maybeMap = function maybeMap(val, fn) {
61307
+ if (isArray(val)) {
61308
+ var mapped = [];
61309
+ for (var i = 0; i < val.length; i += 1) {
61310
+ mapped.push(fn(val[i]));
61311
+ }
61312
+ return mapped;
61313
+ }
61314
+ return fn(val);
61315
+ };
61316
+
61317
+ module.exports = {
61318
+ arrayToObject: arrayToObject,
61319
+ assign: assign,
61320
+ combine: combine,
61321
+ compact: compact,
61322
+ decode: decode,
61323
+ encode: encode,
61324
+ isBuffer: isBuffer,
61325
+ isRegExp: isRegExp,
61326
+ maybeMap: maybeMap,
61327
+ merge: merge
61328
+ };
60025
61329
 
60026
61330
 
60027
61331
  /***/ }),
@@ -66367,6 +67671,7 @@ const hash_160_1 = __webpack_require__(/*! ./hash-160 */ "../../node_modules/rip
66367
67671
  Object.defineProperty(exports, "Hash160", ({ enumerable: true, get: function () { return hash_160_1.Hash160; } }));
66368
67672
  const hash_256_1 = __webpack_require__(/*! ./hash-256 */ "../../node_modules/ripple-binary-codec/dist/types/hash-256.js");
66369
67673
  Object.defineProperty(exports, "Hash256", ({ enumerable: true, get: function () { return hash_256_1.Hash256; } }));
67674
+ const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
66370
67675
  const path_set_1 = __webpack_require__(/*! ./path-set */ "../../node_modules/ripple-binary-codec/dist/types/path-set.js");
66371
67676
  Object.defineProperty(exports, "PathSet", ({ enumerable: true, get: function () { return path_set_1.PathSet; } }));
66372
67677
  const st_array_1 = __webpack_require__(/*! ./st-array */ "../../node_modules/ripple-binary-codec/dist/types/st-array.js");
@@ -66392,6 +67697,7 @@ const coreTypes = {
66392
67697
  Hash128: hash_128_1.Hash128,
66393
67698
  Hash160: hash_160_1.Hash160,
66394
67699
  Hash256: hash_256_1.Hash256,
67700
+ Issue: issue_1.Issue,
66395
67701
  PathSet: path_set_1.PathSet,
66396
67702
  STArray: st_array_1.STArray,
66397
67703
  STObject: st_object_1.STObject,
@@ -66408,6 +67714,97 @@ exports.coreTypes = coreTypes;
66408
67714
  enums_1.DEFAULT_DEFINITIONS.associateTypes(coreTypes);
66409
67715
 
66410
67716
 
67717
+ /***/ }),
67718
+
67719
+ /***/ "../../node_modules/ripple-binary-codec/dist/types/issue.js":
67720
+ /*!******************************************************************!*\
67721
+ !*** ../../node_modules/ripple-binary-codec/dist/types/issue.js ***!
67722
+ \******************************************************************/
67723
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
67724
+
67725
+ "use strict";
67726
+
67727
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
67728
+ exports.Issue = void 0;
67729
+ const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
67730
+ const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
67731
+ const currency_1 = __webpack_require__(/*! ./currency */ "../../node_modules/ripple-binary-codec/dist/types/currency.js");
67732
+ const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
67733
+ const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
67734
+ /**
67735
+ * Type guard for AmountObject
67736
+ */
67737
+ function isIssueObject(arg) {
67738
+ const keys = Object.keys(arg).sort();
67739
+ if (keys.length === 1) {
67740
+ return keys[0] === 'currency';
67741
+ }
67742
+ return keys.length === 2 && keys[0] === 'currency' && keys[1] === 'issuer';
67743
+ }
67744
+ /**
67745
+ * Class for serializing/Deserializing Amounts
67746
+ */
67747
+ class Issue extends serialized_type_1.SerializedType {
67748
+ constructor(bytes) {
67749
+ super(bytes !== null && bytes !== void 0 ? bytes : Issue.ZERO_ISSUED_CURRENCY.bytes);
67750
+ }
67751
+ /**
67752
+ * Construct an amount from an IOU or string amount
67753
+ *
67754
+ * @param value An Amount, object representing an IOU, or a string
67755
+ * representing an integer amount
67756
+ * @returns An Amount object
67757
+ */
67758
+ static from(value) {
67759
+ if (value instanceof Issue) {
67760
+ return value;
67761
+ }
67762
+ if (isIssueObject(value)) {
67763
+ const currency = currency_1.Currency.from(value.currency).toBytes();
67764
+ if (value.issuer == null) {
67765
+ return new Issue(currency);
67766
+ }
67767
+ const issuer = account_id_1.AccountID.from(value.issuer).toBytes();
67768
+ return new Issue(buffer_1.Buffer.concat([currency, issuer]));
67769
+ }
67770
+ throw new Error('Invalid type to construct an Amount');
67771
+ }
67772
+ /**
67773
+ * Read an amount from a BinaryParser
67774
+ *
67775
+ * @param parser BinaryParser to read the Amount from
67776
+ * @returns An Amount object
67777
+ */
67778
+ static fromParser(parser) {
67779
+ const currency = parser.read(20);
67780
+ if (new currency_1.Currency(currency).toJSON() === 'XRP') {
67781
+ return new Issue(currency);
67782
+ }
67783
+ const currencyAndIssuer = [currency, parser.read(20)];
67784
+ return new Issue(buffer_1.Buffer.concat(currencyAndIssuer));
67785
+ }
67786
+ /**
67787
+ * Get the JSON representation of this Amount
67788
+ *
67789
+ * @returns the JSON interpretation of this.bytes
67790
+ */
67791
+ toJSON() {
67792
+ const parser = new binary_parser_1.BinaryParser(this.toString());
67793
+ const currency = currency_1.Currency.fromParser(parser);
67794
+ if (currency.toJSON() === 'XRP') {
67795
+ return { currency: currency.toJSON() };
67796
+ }
67797
+ const issuer = account_id_1.AccountID.fromParser(parser);
67798
+ return {
67799
+ currency: currency.toJSON(),
67800
+ issuer: issuer.toJSON(),
67801
+ };
67802
+ }
67803
+ }
67804
+ exports.Issue = Issue;
67805
+ Issue.ZERO_ISSUED_CURRENCY = new Issue(buffer_1.Buffer.alloc(20));
67806
+
67807
+
66411
67808
  /***/ }),
66412
67809
 
66413
67810
  /***/ "../../node_modules/ripple-binary-codec/dist/types/path-set.js":
@@ -68839,6 +70236,141 @@ Sha512.prototype._hash = function () {
68839
70236
  module.exports = Sha512
68840
70237
 
68841
70238
 
70239
+ /***/ }),
70240
+
70241
+ /***/ "../../node_modules/side-channel/index.js":
70242
+ /*!************************************************!*\
70243
+ !*** ../../node_modules/side-channel/index.js ***!
70244
+ \************************************************/
70245
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
70246
+
70247
+ "use strict";
70248
+
70249
+
70250
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
70251
+ var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
70252
+ var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
70253
+
70254
+ var $TypeError = GetIntrinsic('%TypeError%');
70255
+ var $WeakMap = GetIntrinsic('%WeakMap%', true);
70256
+ var $Map = GetIntrinsic('%Map%', true);
70257
+
70258
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
70259
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
70260
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
70261
+ var $mapGet = callBound('Map.prototype.get', true);
70262
+ var $mapSet = callBound('Map.prototype.set', true);
70263
+ var $mapHas = callBound('Map.prototype.has', true);
70264
+
70265
+ /*
70266
+ * This function traverses the list returning the node corresponding to the
70267
+ * given key.
70268
+ *
70269
+ * That node is also moved to the head of the list, so that if it's accessed
70270
+ * again we don't need to traverse the whole list. By doing so, all the recently
70271
+ * used nodes can be accessed relatively quickly.
70272
+ */
70273
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
70274
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
70275
+ if (curr.key === key) {
70276
+ prev.next = curr.next;
70277
+ curr.next = list.next;
70278
+ list.next = curr; // eslint-disable-line no-param-reassign
70279
+ return curr;
70280
+ }
70281
+ }
70282
+ };
70283
+
70284
+ var listGet = function (objects, key) {
70285
+ var node = listGetNode(objects, key);
70286
+ return node && node.value;
70287
+ };
70288
+ var listSet = function (objects, key, value) {
70289
+ var node = listGetNode(objects, key);
70290
+ if (node) {
70291
+ node.value = value;
70292
+ } else {
70293
+ // Prepend the new node to the beginning of the list
70294
+ objects.next = { // eslint-disable-line no-param-reassign
70295
+ key: key,
70296
+ next: objects.next,
70297
+ value: value
70298
+ };
70299
+ }
70300
+ };
70301
+ var listHas = function (objects, key) {
70302
+ return !!listGetNode(objects, key);
70303
+ };
70304
+
70305
+ module.exports = function getSideChannel() {
70306
+ var $wm;
70307
+ var $m;
70308
+ var $o;
70309
+ var channel = {
70310
+ assert: function (key) {
70311
+ if (!channel.has(key)) {
70312
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
70313
+ }
70314
+ },
70315
+ get: function (key) { // eslint-disable-line consistent-return
70316
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
70317
+ if ($wm) {
70318
+ return $weakMapGet($wm, key);
70319
+ }
70320
+ } else if ($Map) {
70321
+ if ($m) {
70322
+ return $mapGet($m, key);
70323
+ }
70324
+ } else {
70325
+ if ($o) { // eslint-disable-line no-lonely-if
70326
+ return listGet($o, key);
70327
+ }
70328
+ }
70329
+ },
70330
+ has: function (key) {
70331
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
70332
+ if ($wm) {
70333
+ return $weakMapHas($wm, key);
70334
+ }
70335
+ } else if ($Map) {
70336
+ if ($m) {
70337
+ return $mapHas($m, key);
70338
+ }
70339
+ } else {
70340
+ if ($o) { // eslint-disable-line no-lonely-if
70341
+ return listHas($o, key);
70342
+ }
70343
+ }
70344
+ return false;
70345
+ },
70346
+ set: function (key, value) {
70347
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
70348
+ if (!$wm) {
70349
+ $wm = new $WeakMap();
70350
+ }
70351
+ $weakMapSet($wm, key, value);
70352
+ } else if ($Map) {
70353
+ if (!$m) {
70354
+ $m = new $Map();
70355
+ }
70356
+ $mapSet($m, key, value);
70357
+ } else {
70358
+ if (!$o) {
70359
+ /*
70360
+ * Initialize the linked list as an empty node, so that we don't have
70361
+ * to special-case handling of the first node: we can always refer to
70362
+ * it as (previous node).next, instead of something like (list).head
70363
+ */
70364
+ $o = { key: {}, next: null };
70365
+ }
70366
+ listSet($o, key, value);
70367
+ }
70368
+ }
70369
+ };
70370
+ return channel;
70371
+ };
70372
+
70373
+
68842
70374
  /***/ }),
68843
70375
 
68844
70376
  /***/ "../../node_modules/stream-browserify/index.js":
@@ -70932,7 +72464,7 @@ module.exports = types
70932
72464
  /***/ (function(module, exports, __webpack_require__) {
70933
72465
 
70934
72466
  /* module decorator */ module = __webpack_require__.nmd(module);
70935
- var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */
72467
+ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */
70936
72468
  ;(function(root) {
70937
72469
 
70938
72470
  /** Detect free variables */
@@ -70998,7 +72530,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
70998
72530
  * @returns {Error} Throws a `RangeError` with the applicable error message.
70999
72531
  */
71000
72532
  function error(type) {
71001
- throw RangeError(errors[type]);
72533
+ throw new RangeError(errors[type]);
71002
72534
  }
71003
72535
 
71004
72536
  /**
@@ -71145,7 +72677,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
71145
72677
 
71146
72678
  /**
71147
72679
  * Bias adaptation function as per section 3.4 of RFC 3492.
71148
- * http://tools.ietf.org/html/rfc3492#section-3.4
72680
+ * https://tools.ietf.org/html/rfc3492#section-3.4
71149
72681
  * @private
71150
72682
  */
71151
72683
  function adapt(delta, numPoints, firstTime) {
@@ -71420,7 +72952,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
71420
72952
  * @memberOf punycode
71421
72953
  * @type String
71422
72954
  */
71423
- 'version': '1.3.2',
72955
+ 'version': '1.4.1',
71424
72956
  /**
71425
72957
  * An object of methods to convert from JavaScript's internal character
71426
72958
  * representation (UCS-2) to Unicode code points, and back.
@@ -71462,38 +72994,32 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
71462
72994
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
71463
72995
 
71464
72996
  "use strict";
71465
- // Copyright Joyent, Inc. and other Node contributors.
71466
- //
71467
- // Permission is hereby granted, free of charge, to any person obtaining a
71468
- // copy of this software and associated documentation files (the
71469
- // "Software"), to deal in the Software without restriction, including
71470
- // without limitation the rights to use, copy, modify, merge, publish,
71471
- // distribute, sublicense, and/or sell copies of the Software, and to permit
71472
- // persons to whom the Software is furnished to do so, subject to the
71473
- // following conditions:
71474
- //
71475
- // The above copyright notice and this permission notice shall be included
71476
- // in all copies or substantial portions of the Software.
71477
- //
71478
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
71479
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
71480
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
71481
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
71482
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
71483
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
71484
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
72997
+ /*
72998
+ * Copyright Joyent, Inc. and other Node contributors.
72999
+ *
73000
+ * Permission is hereby granted, free of charge, to any person obtaining a
73001
+ * copy of this software and associated documentation files (the
73002
+ * "Software"), to deal in the Software without restriction, including
73003
+ * without limitation the rights to use, copy, modify, merge, publish,
73004
+ * distribute, sublicense, and/or sell copies of the Software, and to permit
73005
+ * persons to whom the Software is furnished to do so, subject to the
73006
+ * following conditions:
73007
+ *
73008
+ * The above copyright notice and this permission notice shall be included
73009
+ * in all copies or substantial portions of the Software.
73010
+ *
73011
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
73012
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
73013
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
73014
+ * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
73015
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
73016
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
73017
+ * USE OR OTHER DEALINGS IN THE SOFTWARE.
73018
+ */
71485
73019
 
71486
73020
 
71487
73021
 
71488
73022
  var punycode = __webpack_require__(/*! punycode */ "../../node_modules/url/node_modules/punycode/punycode.js");
71489
- var util = __webpack_require__(/*! ./util */ "../../node_modules/url/util.js");
71490
-
71491
- exports.parse = urlParse;
71492
- exports.resolve = urlResolve;
71493
- exports.resolveObject = urlResolveObject;
71494
- exports.format = urlFormat;
71495
-
71496
- exports.Url = Url;
71497
73023
 
71498
73024
  function Url() {
71499
73025
  this.protocol = null;
@@ -71512,85 +73038,102 @@ function Url() {
71512
73038
 
71513
73039
  // Reference: RFC 3986, RFC 1808, RFC 2396
71514
73040
 
71515
- // define these here so at least they only have to be
71516
- // compiled once on the first module load.
73041
+ /*
73042
+ * define these here so at least they only have to be
73043
+ * compiled once on the first module load.
73044
+ */
71517
73045
  var protocolPattern = /^([a-z0-9.+-]+:)/i,
71518
- portPattern = /:[0-9]*$/,
71519
-
71520
- // Special case for a simple path URL
71521
- simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
71522
-
71523
- // RFC 2396: characters reserved for delimiting URLs.
71524
- // We actually just auto-escape these.
71525
- delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
71526
-
71527
- // RFC 2396: characters not allowed for various reasons.
71528
- unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
71529
-
71530
- // Allowed by RFCs, but cause of XSS attacks. Always escape these.
71531
- autoEscape = ['\''].concat(unwise),
71532
- // Characters that are never ever allowed in a hostname.
71533
- // Note that any invalid chars are also handled, but these
71534
- // are the ones that are *expected* to be seen, so we fast-path
71535
- // them.
71536
- nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
71537
- hostEndingChars = ['/', '?', '#'],
71538
- hostnameMaxLen = 255,
71539
- hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
71540
- hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
71541
- // protocols that can allow "unsafe" and "unwise" chars.
71542
- unsafeProtocol = {
71543
- 'javascript': true,
71544
- 'javascript:': true
71545
- },
71546
- // protocols that never have a hostname.
71547
- hostlessProtocol = {
71548
- 'javascript': true,
71549
- 'javascript:': true
71550
- },
71551
- // protocols that always contain a // bit.
71552
- slashedProtocol = {
71553
- 'http': true,
71554
- 'https': true,
71555
- 'ftp': true,
71556
- 'gopher': true,
71557
- 'file': true,
71558
- 'http:': true,
71559
- 'https:': true,
71560
- 'ftp:': true,
71561
- 'gopher:': true,
71562
- 'file:': true
71563
- },
71564
- querystring = __webpack_require__(/*! querystring */ "../../node_modules/querystring/index.js");
73046
+ portPattern = /:[0-9]*$/,
73047
+
73048
+ // Special case for a simple path URL
73049
+ simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,
73050
+
73051
+ /*
73052
+ * RFC 2396: characters reserved for delimiting URLs.
73053
+ * We actually just auto-escape these.
73054
+ */
73055
+ delims = [
73056
+ '<', '>', '"', '`', ' ', '\r', '\n', '\t'
73057
+ ],
73058
+
73059
+ // RFC 2396: characters not allowed for various reasons.
73060
+ unwise = [
73061
+ '{', '}', '|', '\\', '^', '`'
73062
+ ].concat(delims),
73063
+
73064
+ // Allowed by RFCs, but cause of XSS attacks. Always escape these.
73065
+ autoEscape = ['\''].concat(unwise),
73066
+ /*
73067
+ * Characters that are never ever allowed in a hostname.
73068
+ * Note that any invalid chars are also handled, but these
73069
+ * are the ones that are *expected* to be seen, so we fast-path
73070
+ * them.
73071
+ */
73072
+ nonHostChars = [
73073
+ '%', '/', '?', ';', '#'
73074
+ ].concat(autoEscape),
73075
+ hostEndingChars = [
73076
+ '/', '?', '#'
73077
+ ],
73078
+ hostnameMaxLen = 255,
73079
+ hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
73080
+ hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
73081
+ // protocols that can allow "unsafe" and "unwise" chars.
73082
+ unsafeProtocol = {
73083
+ javascript: true,
73084
+ 'javascript:': true
73085
+ },
73086
+ // protocols that never have a hostname.
73087
+ hostlessProtocol = {
73088
+ javascript: true,
73089
+ 'javascript:': true
73090
+ },
73091
+ // protocols that always contain a // bit.
73092
+ slashedProtocol = {
73093
+ http: true,
73094
+ https: true,
73095
+ ftp: true,
73096
+ gopher: true,
73097
+ file: true,
73098
+ 'http:': true,
73099
+ 'https:': true,
73100
+ 'ftp:': true,
73101
+ 'gopher:': true,
73102
+ 'file:': true
73103
+ },
73104
+ querystring = __webpack_require__(/*! qs */ "../../node_modules/qs/lib/index.js");
71565
73105
 
71566
73106
  function urlParse(url, parseQueryString, slashesDenoteHost) {
71567
- if (url && util.isObject(url) && url instanceof Url) return url;
73107
+ if (url && typeof url === 'object' && url instanceof Url) { return url; }
71568
73108
 
71569
- var u = new Url;
73109
+ var u = new Url();
71570
73110
  u.parse(url, parseQueryString, slashesDenoteHost);
71571
73111
  return u;
71572
73112
  }
71573
73113
 
71574
- Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71575
- if (!util.isString(url)) {
73114
+ Url.prototype.parse = function (url, parseQueryString, slashesDenoteHost) {
73115
+ if (typeof url !== 'string') {
71576
73116
  throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
71577
73117
  }
71578
73118
 
71579
- // Copy chrome, IE, opera backslash-handling behavior.
71580
- // Back slashes before the query string get converted to forward slashes
71581
- // See: https://code.google.com/p/chromium/issues/detail?id=25916
73119
+ /*
73120
+ * Copy chrome, IE, opera backslash-handling behavior.
73121
+ * Back slashes before the query string get converted to forward slashes
73122
+ * See: https://code.google.com/p/chromium/issues/detail?id=25916
73123
+ */
71582
73124
  var queryIndex = url.indexOf('?'),
71583
- splitter =
71584
- (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
71585
- uSplit = url.split(splitter),
71586
- slashRegex = /\\/g;
73125
+ splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#',
73126
+ uSplit = url.split(splitter),
73127
+ slashRegex = /\\/g;
71587
73128
  uSplit[0] = uSplit[0].replace(slashRegex, '/');
71588
73129
  url = uSplit.join(splitter);
71589
73130
 
71590
73131
  var rest = url;
71591
73132
 
71592
- // trim before proceeding.
71593
- // This is to support parse stuff like " http://foo.com \n"
73133
+ /*
73134
+ * trim before proceeding.
73135
+ * This is to support parse stuff like " http://foo.com \n"
73136
+ */
71594
73137
  rest = rest.trim();
71595
73138
 
71596
73139
  if (!slashesDenoteHost && url.split('#').length === 1) {
@@ -71623,11 +73166,13 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71623
73166
  rest = rest.substr(proto.length);
71624
73167
  }
71625
73168
 
71626
- // figure out if it's got a host
71627
- // user@server is *always* interpreted as a hostname, and url
71628
- // resolution will treat //foo/bar as host=foo,path=bar because that's
71629
- // how the browser resolves relative URLs.
71630
- if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
73169
+ /*
73170
+ * figure out if it's got a host
73171
+ * user@server is *always* interpreted as a hostname, and url
73172
+ * resolution will treat //foo/bar as host=foo,path=bar because that's
73173
+ * how the browser resolves relative URLs.
73174
+ */
73175
+ if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) {
71631
73176
  var slashes = rest.substr(0, 2) === '//';
71632
73177
  if (slashes && !(proto && hostlessProtocol[proto])) {
71633
73178
  rest = rest.substr(2);
@@ -71635,46 +73180,54 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71635
73180
  }
71636
73181
  }
71637
73182
 
71638
- if (!hostlessProtocol[proto] &&
71639
- (slashes || (proto && !slashedProtocol[proto]))) {
73183
+ if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) {
71640
73184
 
71641
- // there's a hostname.
71642
- // the first instance of /, ?, ;, or # ends the host.
71643
- //
71644
- // If there is an @ in the hostname, then non-host chars *are* allowed
71645
- // to the left of the last @ sign, unless some host-ending character
71646
- // comes *before* the @-sign.
71647
- // URLs are obnoxious.
71648
- //
71649
- // ex:
71650
- // http://a@b@c/ => user:a@b host:c
71651
- // http://a@b?@c => user:a host:c path:/?@c
73185
+ /*
73186
+ * there's a hostname.
73187
+ * the first instance of /, ?, ;, or # ends the host.
73188
+ *
73189
+ * If there is an @ in the hostname, then non-host chars *are* allowed
73190
+ * to the left of the last @ sign, unless some host-ending character
73191
+ * comes *before* the @-sign.
73192
+ * URLs are obnoxious.
73193
+ *
73194
+ * ex:
73195
+ * http://a@b@c/ => user:a@b host:c
73196
+ * http://a@b?@c => user:a host:c path:/?@c
73197
+ */
71652
73198
 
71653
- // v0.12 TODO(isaacs): This is not quite how Chrome does things.
71654
- // Review our test case against browsers more comprehensively.
73199
+ /*
73200
+ * v0.12 TODO(isaacs): This is not quite how Chrome does things.
73201
+ * Review our test case against browsers more comprehensively.
73202
+ */
71655
73203
 
71656
73204
  // find the first instance of any hostEndingChars
71657
73205
  var hostEnd = -1;
71658
73206
  for (var i = 0; i < hostEndingChars.length; i++) {
71659
73207
  var hec = rest.indexOf(hostEndingChars[i]);
71660
- if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
71661
- hostEnd = hec;
73208
+ if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
71662
73209
  }
71663
73210
 
71664
- // at this point, either we have an explicit point where the
71665
- // auth portion cannot go past, or the last @ char is the decider.
73211
+ /*
73212
+ * at this point, either we have an explicit point where the
73213
+ * auth portion cannot go past, or the last @ char is the decider.
73214
+ */
71666
73215
  var auth, atSign;
71667
73216
  if (hostEnd === -1) {
71668
73217
  // atSign can be anywhere.
71669
73218
  atSign = rest.lastIndexOf('@');
71670
73219
  } else {
71671
- // atSign must be in auth portion.
71672
- // http://a@b/c@d => host:b auth:a path:/c@d
73220
+ /*
73221
+ * atSign must be in auth portion.
73222
+ * http://a@b/c@d => host:b auth:a path:/c@d
73223
+ */
71673
73224
  atSign = rest.lastIndexOf('@', hostEnd);
71674
73225
  }
71675
73226
 
71676
- // Now we have a portion which is definitely the auth.
71677
- // Pull that off.
73227
+ /*
73228
+ * Now we have a portion which is definitely the auth.
73229
+ * Pull that off.
73230
+ */
71678
73231
  if (atSign !== -1) {
71679
73232
  auth = rest.slice(0, atSign);
71680
73233
  rest = rest.slice(atSign + 1);
@@ -71685,12 +73238,10 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71685
73238
  hostEnd = -1;
71686
73239
  for (var i = 0; i < nonHostChars.length; i++) {
71687
73240
  var hec = rest.indexOf(nonHostChars[i]);
71688
- if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
71689
- hostEnd = hec;
73241
+ if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
71690
73242
  }
71691
73243
  // if we still have not hit it, then the entire thing is a host.
71692
- if (hostEnd === -1)
71693
- hostEnd = rest.length;
73244
+ if (hostEnd === -1) { hostEnd = rest.length; }
71694
73245
 
71695
73246
  this.host = rest.slice(0, hostEnd);
71696
73247
  rest = rest.slice(hostEnd);
@@ -71698,28 +73249,33 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71698
73249
  // pull out port.
71699
73250
  this.parseHost();
71700
73251
 
71701
- // we've indicated that there is a hostname,
71702
- // so even if it's empty, it has to be present.
73252
+ /*
73253
+ * we've indicated that there is a hostname,
73254
+ * so even if it's empty, it has to be present.
73255
+ */
71703
73256
  this.hostname = this.hostname || '';
71704
73257
 
71705
- // if hostname begins with [ and ends with ]
71706
- // assume that it's an IPv6 address.
71707
- var ipv6Hostname = this.hostname[0] === '[' &&
71708
- this.hostname[this.hostname.length - 1] === ']';
73258
+ /*
73259
+ * if hostname begins with [ and ends with ]
73260
+ * assume that it's an IPv6 address.
73261
+ */
73262
+ var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']';
71709
73263
 
71710
73264
  // validate a little.
71711
73265
  if (!ipv6Hostname) {
71712
73266
  var hostparts = this.hostname.split(/\./);
71713
73267
  for (var i = 0, l = hostparts.length; i < l; i++) {
71714
73268
  var part = hostparts[i];
71715
- if (!part) continue;
73269
+ if (!part) { continue; }
71716
73270
  if (!part.match(hostnamePartPattern)) {
71717
73271
  var newpart = '';
71718
73272
  for (var j = 0, k = part.length; j < k; j++) {
71719
73273
  if (part.charCodeAt(j) > 127) {
71720
- // we replace non-ASCII char with a temporary placeholder
71721
- // we need this to make sure size of hostname is not
71722
- // broken by replacing non-ASCII by nothing
73274
+ /*
73275
+ * we replace non-ASCII char with a temporary placeholder
73276
+ * we need this to make sure size of hostname is not
73277
+ * broken by replacing non-ASCII by nothing
73278
+ */
71723
73279
  newpart += 'x';
71724
73280
  } else {
71725
73281
  newpart += part[j];
@@ -71752,10 +73308,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71752
73308
  }
71753
73309
 
71754
73310
  if (!ipv6Hostname) {
71755
- // IDNA Support: Returns a punycoded representation of "domain".
71756
- // It only converts parts of the domain name that
71757
- // have non-ASCII characters, i.e. it doesn't matter if
71758
- // you call it with a domain that already is ASCII-only.
73311
+ /*
73312
+ * IDNA Support: Returns a punycoded representation of "domain".
73313
+ * It only converts parts of the domain name that
73314
+ * have non-ASCII characters, i.e. it doesn't matter if
73315
+ * you call it with a domain that already is ASCII-only.
73316
+ */
71759
73317
  this.hostname = punycode.toASCII(this.hostname);
71760
73318
  }
71761
73319
 
@@ -71764,8 +73322,10 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71764
73322
  this.host = h + p;
71765
73323
  this.href += this.host;
71766
73324
 
71767
- // strip [ and ] from the hostname
71768
- // the host field still retains them, though
73325
+ /*
73326
+ * strip [ and ] from the hostname
73327
+ * the host field still retains them, though
73328
+ */
71769
73329
  if (ipv6Hostname) {
71770
73330
  this.hostname = this.hostname.substr(1, this.hostname.length - 2);
71771
73331
  if (rest[0] !== '/') {
@@ -71774,17 +73334,20 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71774
73334
  }
71775
73335
  }
71776
73336
 
71777
- // now rest is set to the post-host stuff.
71778
- // chop off any delim chars.
73337
+ /*
73338
+ * now rest is set to the post-host stuff.
73339
+ * chop off any delim chars.
73340
+ */
71779
73341
  if (!unsafeProtocol[lowerProto]) {
71780
73342
 
71781
- // First, make 100% sure that any "autoEscape" chars get
71782
- // escaped, even if encodeURIComponent doesn't think they
71783
- // need to be.
73343
+ /*
73344
+ * First, make 100% sure that any "autoEscape" chars get
73345
+ * escaped, even if encodeURIComponent doesn't think they
73346
+ * need to be.
73347
+ */
71784
73348
  for (var i = 0, l = autoEscape.length; i < l; i++) {
71785
73349
  var ae = autoEscape[i];
71786
- if (rest.indexOf(ae) === -1)
71787
- continue;
73350
+ if (rest.indexOf(ae) === -1) { continue; }
71788
73351
  var esc = encodeURIComponent(ae);
71789
73352
  if (esc === ae) {
71790
73353
  esc = escape(ae);
@@ -71793,7 +73356,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71793
73356
  }
71794
73357
  }
71795
73358
 
71796
-
71797
73359
  // chop off from the tail first.
71798
73360
  var hash = rest.indexOf('#');
71799
73361
  if (hash !== -1) {
@@ -71814,13 +73376,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71814
73376
  this.search = '';
71815
73377
  this.query = {};
71816
73378
  }
71817
- if (rest) this.pathname = rest;
71818
- if (slashedProtocol[lowerProto] &&
71819
- this.hostname && !this.pathname) {
73379
+ if (rest) { this.pathname = rest; }
73380
+ if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {
71820
73381
  this.pathname = '/';
71821
73382
  }
71822
73383
 
71823
- //to support http.request
73384
+ // to support http.request
71824
73385
  if (this.pathname || this.search) {
71825
73386
  var p = this.pathname || '';
71826
73387
  var s = this.search || '';
@@ -71834,16 +73395,18 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
71834
73395
 
71835
73396
  // format a parsed object into a url string
71836
73397
  function urlFormat(obj) {
71837
- // ensure it's an object, and not a string url.
71838
- // If it's an obj, this is a no-op.
71839
- // this way, you can call url_format() on strings
71840
- // to clean up potentially wonky urls.
71841
- if (util.isString(obj)) obj = urlParse(obj);
71842
- if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
73398
+ /*
73399
+ * ensure it's an object, and not a string url.
73400
+ * If it's an obj, this is a no-op.
73401
+ * this way, you can call url_format() on strings
73402
+ * to clean up potentially wonky urls.
73403
+ */
73404
+ if (typeof obj === 'string') { obj = urlParse(obj); }
73405
+ if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); }
71843
73406
  return obj.format();
71844
73407
  }
71845
73408
 
71846
- Url.prototype.format = function() {
73409
+ Url.prototype.format = function () {
71847
73410
  var auth = this.auth || '';
71848
73411
  if (auth) {
71849
73412
  auth = encodeURIComponent(auth);
@@ -71852,46 +73415,43 @@ Url.prototype.format = function() {
71852
73415
  }
71853
73416
 
71854
73417
  var protocol = this.protocol || '',
71855
- pathname = this.pathname || '',
71856
- hash = this.hash || '',
71857
- host = false,
71858
- query = '';
73418
+ pathname = this.pathname || '',
73419
+ hash = this.hash || '',
73420
+ host = false,
73421
+ query = '';
71859
73422
 
71860
73423
  if (this.host) {
71861
73424
  host = auth + this.host;
71862
73425
  } else if (this.hostname) {
71863
- host = auth + (this.hostname.indexOf(':') === -1 ?
71864
- this.hostname :
71865
- '[' + this.hostname + ']');
73426
+ host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']');
71866
73427
  if (this.port) {
71867
73428
  host += ':' + this.port;
71868
73429
  }
71869
73430
  }
71870
73431
 
71871
- if (this.query &&
71872
- util.isObject(this.query) &&
71873
- Object.keys(this.query).length) {
73432
+ if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) {
71874
73433
  query = querystring.stringify(this.query);
71875
73434
  }
71876
73435
 
71877
73436
  var search = this.search || (query && ('?' + query)) || '';
71878
73437
 
71879
- if (protocol && protocol.substr(-1) !== ':') protocol += ':';
73438
+ if (protocol && protocol.substr(-1) !== ':') { protocol += ':'; }
71880
73439
 
71881
- // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
71882
- // unless they had them to begin with.
71883
- if (this.slashes ||
71884
- (!protocol || slashedProtocol[protocol]) && host !== false) {
73440
+ /*
73441
+ * only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
73442
+ * unless they had them to begin with.
73443
+ */
73444
+ if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {
71885
73445
  host = '//' + (host || '');
71886
- if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
73446
+ if (pathname && pathname.charAt(0) !== '/') { pathname = '/' + pathname; }
71887
73447
  } else if (!host) {
71888
73448
  host = '';
71889
73449
  }
71890
73450
 
71891
- if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
71892
- if (search && search.charAt(0) !== '?') search = '?' + search;
73451
+ if (hash && hash.charAt(0) !== '#') { hash = '#' + hash; }
73452
+ if (search && search.charAt(0) !== '?') { search = '?' + search; }
71893
73453
 
71894
- pathname = pathname.replace(/[?#]/g, function(match) {
73454
+ pathname = pathname.replace(/[?#]/g, function (match) {
71895
73455
  return encodeURIComponent(match);
71896
73456
  });
71897
73457
  search = search.replace('#', '%23');
@@ -71903,17 +73463,17 @@ function urlResolve(source, relative) {
71903
73463
  return urlParse(source, false, true).resolve(relative);
71904
73464
  }
71905
73465
 
71906
- Url.prototype.resolve = function(relative) {
73466
+ Url.prototype.resolve = function (relative) {
71907
73467
  return this.resolveObject(urlParse(relative, false, true)).format();
71908
73468
  };
71909
73469
 
71910
73470
  function urlResolveObject(source, relative) {
71911
- if (!source) return relative;
73471
+ if (!source) { return relative; }
71912
73472
  return urlParse(source, false, true).resolveObject(relative);
71913
73473
  }
71914
73474
 
71915
- Url.prototype.resolveObject = function(relative) {
71916
- if (util.isString(relative)) {
73475
+ Url.prototype.resolveObject = function (relative) {
73476
+ if (typeof relative === 'string') {
71917
73477
  var rel = new Url();
71918
73478
  rel.parse(relative, false, true);
71919
73479
  relative = rel;
@@ -71926,8 +73486,10 @@ Url.prototype.resolveObject = function(relative) {
71926
73486
  result[tkey] = this[tkey];
71927
73487
  }
71928
73488
 
71929
- // hash is always overridden, no matter what.
71930
- // even href="" will remove it.
73489
+ /*
73490
+ * hash is always overridden, no matter what.
73491
+ * even href="" will remove it.
73492
+ */
71931
73493
  result.hash = relative.hash;
71932
73494
 
71933
73495
  // if the relative url is empty, then there's nothing left to do here.
@@ -71942,14 +73504,13 @@ Url.prototype.resolveObject = function(relative) {
71942
73504
  var rkeys = Object.keys(relative);
71943
73505
  for (var rk = 0; rk < rkeys.length; rk++) {
71944
73506
  var rkey = rkeys[rk];
71945
- if (rkey !== 'protocol')
71946
- result[rkey] = relative[rkey];
73507
+ if (rkey !== 'protocol') { result[rkey] = relative[rkey]; }
71947
73508
  }
71948
73509
 
71949
- //urlParse appends trailing / to urls like http://www.example.com
71950
- if (slashedProtocol[result.protocol] &&
71951
- result.hostname && !result.pathname) {
71952
- result.path = result.pathname = '/';
73510
+ // urlParse appends trailing / to urls like http://www.example.com
73511
+ if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {
73512
+ result.pathname = '/';
73513
+ result.path = result.pathname;
71953
73514
  }
71954
73515
 
71955
73516
  result.href = result.format();
@@ -71957,14 +73518,16 @@ Url.prototype.resolveObject = function(relative) {
71957
73518
  }
71958
73519
 
71959
73520
  if (relative.protocol && relative.protocol !== result.protocol) {
71960
- // if it's a known url protocol, then changing
71961
- // the protocol does weird things
71962
- // first, if it's not file:, then we MUST have a host,
71963
- // and if there was a path
71964
- // to begin with, then we MUST have a path.
71965
- // if it is file:, then the host is dropped,
71966
- // because that's known to be hostless.
71967
- // anything else is assumed to be absolute.
73521
+ /*
73522
+ * if it's a known url protocol, then changing
73523
+ * the protocol does weird things
73524
+ * first, if it's not file:, then we MUST have a host,
73525
+ * and if there was a path
73526
+ * to begin with, then we MUST have a path.
73527
+ * if it is file:, then the host is dropped,
73528
+ * because that's known to be hostless.
73529
+ * anything else is assumed to be absolute.
73530
+ */
71968
73531
  if (!slashedProtocol[relative.protocol]) {
71969
73532
  var keys = Object.keys(relative);
71970
73533
  for (var v = 0; v < keys.length; v++) {
@@ -71978,11 +73541,11 @@ Url.prototype.resolveObject = function(relative) {
71978
73541
  result.protocol = relative.protocol;
71979
73542
  if (!relative.host && !hostlessProtocol[relative.protocol]) {
71980
73543
  var relPath = (relative.pathname || '').split('/');
71981
- while (relPath.length && !(relative.host = relPath.shift()));
71982
- if (!relative.host) relative.host = '';
71983
- if (!relative.hostname) relative.hostname = '';
71984
- if (relPath[0] !== '') relPath.unshift('');
71985
- if (relPath.length < 2) relPath.unshift('');
73544
+ while (relPath.length && !(relative.host = relPath.shift())) { }
73545
+ if (!relative.host) { relative.host = ''; }
73546
+ if (!relative.hostname) { relative.hostname = ''; }
73547
+ if (relPath[0] !== '') { relPath.unshift(''); }
73548
+ if (relPath.length < 2) { relPath.unshift(''); }
71986
73549
  result.pathname = relPath.join('/');
71987
73550
  } else {
71988
73551
  result.pathname = relative.pathname;
@@ -72004,37 +73567,33 @@ Url.prototype.resolveObject = function(relative) {
72004
73567
  return result;
72005
73568
  }
72006
73569
 
72007
- var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
72008
- isRelAbs = (
72009
- relative.host ||
72010
- relative.pathname && relative.pathname.charAt(0) === '/'
72011
- ),
72012
- mustEndAbs = (isRelAbs || isSourceAbs ||
72013
- (result.host && relative.pathname)),
72014
- removeAllDots = mustEndAbs,
72015
- srcPath = result.pathname && result.pathname.split('/') || [],
72016
- relPath = relative.pathname && relative.pathname.split('/') || [],
72017
- psychotic = result.protocol && !slashedProtocol[result.protocol];
72018
-
72019
- // if the url is a non-slashed url, then relative
72020
- // links like ../.. should be able
72021
- // to crawl up to the hostname, as well. This is strange.
72022
- // result.protocol has already been set by now.
72023
- // Later on, put the first path part into the host field.
73570
+ var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/',
73571
+ isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',
73572
+ mustEndAbs = isRelAbs || isSourceAbs || (result.host && relative.pathname),
73573
+ removeAllDots = mustEndAbs,
73574
+ srcPath = result.pathname && result.pathname.split('/') || [],
73575
+ relPath = relative.pathname && relative.pathname.split('/') || [],
73576
+ psychotic = result.protocol && !slashedProtocol[result.protocol];
73577
+
73578
+ /*
73579
+ * if the url is a non-slashed url, then relative
73580
+ * links like ../.. should be able
73581
+ * to crawl up to the hostname, as well. This is strange.
73582
+ * result.protocol has already been set by now.
73583
+ * Later on, put the first path part into the host field.
73584
+ */
72024
73585
  if (psychotic) {
72025
73586
  result.hostname = '';
72026
73587
  result.port = null;
72027
73588
  if (result.host) {
72028
- if (srcPath[0] === '') srcPath[0] = result.host;
72029
- else srcPath.unshift(result.host);
73589
+ if (srcPath[0] === '') { srcPath[0] = result.host; } else { srcPath.unshift(result.host); }
72030
73590
  }
72031
73591
  result.host = '';
72032
73592
  if (relative.protocol) {
72033
73593
  relative.hostname = null;
72034
73594
  relative.port = null;
72035
73595
  if (relative.host) {
72036
- if (relPath[0] === '') relPath[0] = relative.host;
72037
- else relPath.unshift(relative.host);
73596
+ if (relPath[0] === '') { relPath[0] = relative.host; } else { relPath.unshift(relative.host); }
72038
73597
  }
72039
73598
  relative.host = null;
72040
73599
  }
@@ -72043,54 +73602,60 @@ Url.prototype.resolveObject = function(relative) {
72043
73602
 
72044
73603
  if (isRelAbs) {
72045
73604
  // it's absolute.
72046
- result.host = (relative.host || relative.host === '') ?
72047
- relative.host : result.host;
72048
- result.hostname = (relative.hostname || relative.hostname === '') ?
72049
- relative.hostname : result.hostname;
73605
+ result.host = relative.host || relative.host === '' ? relative.host : result.host;
73606
+ result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;
72050
73607
  result.search = relative.search;
72051
73608
  result.query = relative.query;
72052
73609
  srcPath = relPath;
72053
73610
  // fall through to the dot-handling below.
72054
73611
  } else if (relPath.length) {
72055
- // it's relative
72056
- // throw away the existing file, and take the new path instead.
72057
- if (!srcPath) srcPath = [];
73612
+ /*
73613
+ * it's relative
73614
+ * throw away the existing file, and take the new path instead.
73615
+ */
73616
+ if (!srcPath) { srcPath = []; }
72058
73617
  srcPath.pop();
72059
73618
  srcPath = srcPath.concat(relPath);
72060
73619
  result.search = relative.search;
72061
73620
  result.query = relative.query;
72062
- } else if (!util.isNullOrUndefined(relative.search)) {
72063
- // just pull out the search.
72064
- // like href='?foo'.
72065
- // Put this after the other two cases because it simplifies the booleans
73621
+ } else if (relative.search != null) {
73622
+ /*
73623
+ * just pull out the search.
73624
+ * like href='?foo'.
73625
+ * Put this after the other two cases because it simplifies the booleans
73626
+ */
72066
73627
  if (psychotic) {
72067
- result.hostname = result.host = srcPath.shift();
72068
- //occationaly the auth can get stuck only in host
72069
- //this especially happens in cases like
72070
- //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
72071
- var authInHost = result.host && result.host.indexOf('@') > 0 ?
72072
- result.host.split('@') : false;
73628
+ result.host = srcPath.shift();
73629
+ result.hostname = result.host;
73630
+ /*
73631
+ * occationaly the auth can get stuck only in host
73632
+ * this especially happens in cases like
73633
+ * url.resolveObject('mailto:local1@domain1', 'local2@domain2')
73634
+ */
73635
+ var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
72073
73636
  if (authInHost) {
72074
73637
  result.auth = authInHost.shift();
72075
- result.host = result.hostname = authInHost.shift();
73638
+ result.hostname = authInHost.shift();
73639
+ result.host = result.hostname;
72076
73640
  }
72077
73641
  }
72078
73642
  result.search = relative.search;
72079
73643
  result.query = relative.query;
72080
- //to support http.request
72081
- if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
72082
- result.path = (result.pathname ? result.pathname : '') +
72083
- (result.search ? result.search : '');
73644
+ // to support http.request
73645
+ if (result.pathname !== null || result.search !== null) {
73646
+ result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
72084
73647
  }
72085
73648
  result.href = result.format();
72086
73649
  return result;
72087
73650
  }
72088
73651
 
72089
73652
  if (!srcPath.length) {
72090
- // no path at all. easy.
72091
- // we've already handled the other stuff above.
73653
+ /*
73654
+ * no path at all. easy.
73655
+ * we've already handled the other stuff above.
73656
+ */
72092
73657
  result.pathname = null;
72093
- //to support http.request
73658
+ // to support http.request
72094
73659
  if (result.search) {
72095
73660
  result.path = '/' + result.search;
72096
73661
  } else {
@@ -72100,16 +73665,18 @@ Url.prototype.resolveObject = function(relative) {
72100
73665
  return result;
72101
73666
  }
72102
73667
 
72103
- // if a url ENDs in . or .., then it must get a trailing slash.
72104
- // however, if it ends in anything else non-slashy,
72105
- // then it must NOT get a trailing slash.
73668
+ /*
73669
+ * if a url ENDs in . or .., then it must get a trailing slash.
73670
+ * however, if it ends in anything else non-slashy,
73671
+ * then it must NOT get a trailing slash.
73672
+ */
72106
73673
  var last = srcPath.slice(-1)[0];
72107
- var hasTrailingSlash = (
72108
- (result.host || relative.host || srcPath.length > 1) &&
72109
- (last === '.' || last === '..') || last === '');
73674
+ var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === '';
72110
73675
 
72111
- // strip single dots, resolve double dots to parent dir
72112
- // if the path tries to go above the root, `up` ends up > 0
73676
+ /*
73677
+ * strip single dots, resolve double dots to parent dir
73678
+ * if the path tries to go above the root, `up` ends up > 0
73679
+ */
72113
73680
  var up = 0;
72114
73681
  for (var i = srcPath.length; i >= 0; i--) {
72115
73682
  last = srcPath[i];
@@ -72131,8 +73698,7 @@ Url.prototype.resolveObject = function(relative) {
72131
73698
  }
72132
73699
  }
72133
73700
 
72134
- if (mustEndAbs && srcPath[0] !== '' &&
72135
- (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
73701
+ if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
72136
73702
  srcPath.unshift('');
72137
73703
  }
72138
73704
 
@@ -72140,21 +73706,22 @@ Url.prototype.resolveObject = function(relative) {
72140
73706
  srcPath.push('');
72141
73707
  }
72142
73708
 
72143
- var isAbsolute = srcPath[0] === '' ||
72144
- (srcPath[0] && srcPath[0].charAt(0) === '/');
73709
+ var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/');
72145
73710
 
72146
73711
  // put the host back
72147
73712
  if (psychotic) {
72148
- result.hostname = result.host = isAbsolute ? '' :
72149
- srcPath.length ? srcPath.shift() : '';
72150
- //occationaly the auth can get stuck only in host
72151
- //this especially happens in cases like
72152
- //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
72153
- var authInHost = result.host && result.host.indexOf('@') > 0 ?
72154
- result.host.split('@') : false;
73713
+ result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : '';
73714
+ result.host = result.hostname;
73715
+ /*
73716
+ * occationaly the auth can get stuck only in host
73717
+ * this especially happens in cases like
73718
+ * url.resolveObject('mailto:local1@domain1', 'local2@domain2')
73719
+ */
73720
+ var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
72155
73721
  if (authInHost) {
72156
73722
  result.auth = authInHost.shift();
72157
- result.host = result.hostname = authInHost.shift();
73723
+ result.hostname = authInHost.shift();
73724
+ result.host = result.hostname;
72158
73725
  }
72159
73726
  }
72160
73727
 
@@ -72164,17 +73731,16 @@ Url.prototype.resolveObject = function(relative) {
72164
73731
  srcPath.unshift('');
72165
73732
  }
72166
73733
 
72167
- if (!srcPath.length) {
73734
+ if (srcPath.length > 0) {
73735
+ result.pathname = srcPath.join('/');
73736
+ } else {
72168
73737
  result.pathname = null;
72169
73738
  result.path = null;
72170
- } else {
72171
- result.pathname = srcPath.join('/');
72172
73739
  }
72173
73740
 
72174
- //to support request.http
72175
- if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
72176
- result.path = (result.pathname ? result.pathname : '') +
72177
- (result.search ? result.search : '');
73741
+ // to support request.http
73742
+ if (result.pathname !== null || result.search !== null) {
73743
+ result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
72178
73744
  }
72179
73745
  result.auth = relative.auth || result.auth;
72180
73746
  result.slashes = result.slashes || relative.slashes;
@@ -72182,7 +73748,7 @@ Url.prototype.resolveObject = function(relative) {
72182
73748
  return result;
72183
73749
  };
72184
73750
 
72185
- Url.prototype.parseHost = function() {
73751
+ Url.prototype.parseHost = function () {
72186
73752
  var host = this.host;
72187
73753
  var port = portPattern.exec(host);
72188
73754
  if (port) {
@@ -72192,35 +73758,15 @@ Url.prototype.parseHost = function() {
72192
73758
  }
72193
73759
  host = host.substr(0, host.length - port.length);
72194
73760
  }
72195
- if (host) this.hostname = host;
73761
+ if (host) { this.hostname = host; }
72196
73762
  };
72197
73763
 
73764
+ exports.parse = urlParse;
73765
+ exports.resolve = urlResolve;
73766
+ exports.resolveObject = urlResolveObject;
73767
+ exports.format = urlFormat;
72198
73768
 
72199
- /***/ }),
72200
-
72201
- /***/ "../../node_modules/url/util.js":
72202
- /*!**************************************!*\
72203
- !*** ../../node_modules/url/util.js ***!
72204
- \**************************************/
72205
- /***/ ((module) => {
72206
-
72207
- "use strict";
72208
-
72209
-
72210
- module.exports = {
72211
- isString: function(arg) {
72212
- return typeof(arg) === 'string';
72213
- },
72214
- isObject: function(arg) {
72215
- return typeof(arg) === 'object' && arg !== null;
72216
- },
72217
- isNull: function(arg) {
72218
- return arg === null;
72219
- },
72220
- isNullOrUndefined: function(arg) {
72221
- return arg == null;
72222
- }
72223
- };
73769
+ exports.Url = Url;
72224
73770
 
72225
73771
 
72226
73772
  /***/ }),
@@ -73526,6 +75072,237 @@ module.exports = {
73526
75072
  }
73527
75073
 
73528
75074
 
75075
+ /***/ }),
75076
+
75077
+ /***/ "../../node_modules/xrpl-secret-numbers/dist/index.js":
75078
+ /*!************************************************************!*\
75079
+ !*** ../../node_modules/xrpl-secret-numbers/dist/index.js ***!
75080
+ \************************************************************/
75081
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75082
+
75083
+ "use strict";
75084
+
75085
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
75086
+ if (k2 === undefined) k2 = k;
75087
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
75088
+ }) : (function(o, m, k, k2) {
75089
+ if (k2 === undefined) k2 = k;
75090
+ o[k2] = m[k];
75091
+ }));
75092
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
75093
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
75094
+ }) : function(o, v) {
75095
+ o["default"] = v;
75096
+ });
75097
+ var __importStar = (this && this.__importStar) || function (mod) {
75098
+ if (mod && mod.__esModule) return mod;
75099
+ var result = {};
75100
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
75101
+ __setModuleDefault(result, mod);
75102
+ return result;
75103
+ };
75104
+ var __importDefault = (this && this.__importDefault) || function (mod) {
75105
+ return (mod && mod.__esModule) ? mod : { "default": mod };
75106
+ };
75107
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75108
+ exports.Utils = exports.Account = void 0;
75109
+ /* Methods ==================================================================== */
75110
+ var Utils = __importStar(__webpack_require__(/*! ./utils */ "../../node_modules/xrpl-secret-numbers/dist/utils/index.js"));
75111
+ exports.Utils = Utils;
75112
+ /* Types ==================================================================== */
75113
+ var Account_1 = __importDefault(__webpack_require__(/*! ./schema/Account */ "../../node_modules/xrpl-secret-numbers/dist/schema/Account.js"));
75114
+ exports.Account = Account_1.default;
75115
+
75116
+
75117
+ /***/ }),
75118
+
75119
+ /***/ "../../node_modules/xrpl-secret-numbers/dist/schema/Account.js":
75120
+ /*!*********************************************************************!*\
75121
+ !*** ../../node_modules/xrpl-secret-numbers/dist/schema/Account.js ***!
75122
+ \*********************************************************************/
75123
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75124
+
75125
+ "use strict";
75126
+ /* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js")["Buffer"];
75127
+
75128
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
75129
+ if (k2 === undefined) k2 = k;
75130
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
75131
+ }) : (function(o, m, k, k2) {
75132
+ if (k2 === undefined) k2 = k;
75133
+ o[k2] = m[k];
75134
+ }));
75135
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
75136
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
75137
+ }) : function(o, v) {
75138
+ o["default"] = v;
75139
+ });
75140
+ var __importStar = (this && this.__importStar) || function (mod) {
75141
+ if (mod && mod.__esModule) return mod;
75142
+ var result = {};
75143
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
75144
+ __setModuleDefault(result, mod);
75145
+ return result;
75146
+ };
75147
+ var __importDefault = (this && this.__importDefault) || function (mod) {
75148
+ return (mod && mod.__esModule) ? mod : { "default": mod };
75149
+ };
75150
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75151
+ var assert_1 = __importDefault(__webpack_require__(/*! assert */ "../../node_modules/assert/build/assert.js"));
75152
+ var keypairs = __importStar(__webpack_require__(/*! ripple-keypairs */ "../../node_modules/ripple-keypairs/dist/index.js"));
75153
+ var utils = __importStar(__webpack_require__(/*! ../utils */ "../../node_modules/xrpl-secret-numbers/dist/utils/index.js"));
75154
+ /* Class ==================================================================== */
75155
+ var Account = /** @class */ (function () {
75156
+ function Account(SecretNumbers) {
75157
+ var _this = this;
75158
+ this.account = {
75159
+ familySeed: '',
75160
+ address: '',
75161
+ keypair: {
75162
+ publicKey: '',
75163
+ privateKey: ''
75164
+ }
75165
+ };
75166
+ var asserts = function () {
75167
+ assert_1.default.strictEqual(_this.secret.length, 8);
75168
+ _this.secret.forEach(function (r, i) {
75169
+ assert_1.default.strictEqual(r.length, 6);
75170
+ });
75171
+ };
75172
+ var derive = function () {
75173
+ try {
75174
+ var entropy = utils.secretToEntropy(_this.secret);
75175
+ _this.account.familySeed = keypairs.generateSeed({ entropy: entropy });
75176
+ _this.account.keypair = keypairs.deriveKeypair(_this.account.familySeed);
75177
+ _this.account.address = keypairs.deriveAddress(_this.account.keypair.publicKey);
75178
+ }
75179
+ catch (e) {
75180
+ throw e.message;
75181
+ }
75182
+ };
75183
+ if (typeof SecretNumbers === 'string') {
75184
+ this.secret = utils.parseSecretString(SecretNumbers);
75185
+ }
75186
+ else if (Array.isArray(SecretNumbers)) {
75187
+ this.secret = SecretNumbers;
75188
+ }
75189
+ else if (Buffer.isBuffer(SecretNumbers)) {
75190
+ this.secret = utils.entropyToSecret(SecretNumbers);
75191
+ }
75192
+ else {
75193
+ this.secret = utils.randomSecret();
75194
+ }
75195
+ asserts();
75196
+ derive();
75197
+ }
75198
+ Account.prototype.getSecret = function () {
75199
+ return this.secret;
75200
+ };
75201
+ Account.prototype.getSecretString = function () {
75202
+ return this.secret.join(' ');
75203
+ };
75204
+ Account.prototype.getAddress = function () {
75205
+ return this.account.address;
75206
+ };
75207
+ Account.prototype.getFamilySeed = function () {
75208
+ return this.account.familySeed;
75209
+ };
75210
+ Account.prototype.getKeypair = function () {
75211
+ return this.account.keypair;
75212
+ };
75213
+ Account.prototype.toString = function () {
75214
+ return this.getSecretString();
75215
+ };
75216
+ return Account;
75217
+ }());
75218
+ exports["default"] = Account;
75219
+
75220
+
75221
+ /***/ }),
75222
+
75223
+ /***/ "../../node_modules/xrpl-secret-numbers/dist/utils/index.js":
75224
+ /*!******************************************************************!*\
75225
+ !*** ../../node_modules/xrpl-secret-numbers/dist/utils/index.js ***!
75226
+ \******************************************************************/
75227
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75228
+
75229
+ "use strict";
75230
+ /* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js")["Buffer"];
75231
+
75232
+ var __importDefault = (this && this.__importDefault) || function (mod) {
75233
+ return (mod && mod.__esModule) ? mod : { "default": mod };
75234
+ };
75235
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75236
+ exports.parseSecretString = exports.checkChecksum = exports.calculateChecksum = exports.secretToEntropy = exports.entropyToSecret = exports.randomSecret = exports.randomEntropy = void 0;
75237
+ var assert_1 = __importDefault(__webpack_require__(/*! assert */ "../../node_modules/assert/build/assert.js"));
75238
+ var brorand_1 = __importDefault(__webpack_require__(/*! brorand */ "../../node_modules/brorand/index.js"));
75239
+ function randomEntropy() {
75240
+ return Buffer.from(brorand_1.default(16));
75241
+ }
75242
+ exports.randomEntropy = randomEntropy;
75243
+ function calculateChecksum(position, value) {
75244
+ return value * (position * 2 + 1) % 9;
75245
+ }
75246
+ exports.calculateChecksum = calculateChecksum;
75247
+ function checkChecksum(position, value, checksum) {
75248
+ if (typeof value === 'string') {
75249
+ assert_1.default.strictEqual(value.length, 6);
75250
+ checksum = parseInt(value.slice(5), 10);
75251
+ value = parseInt(value.slice(0, 5), 10);
75252
+ }
75253
+ return value * (position * 2 + 1) % 9 === checksum;
75254
+ }
75255
+ exports.checkChecksum = checkChecksum;
75256
+ function entropyToSecret(entropy) {
75257
+ var length = Array(Math.ceil(entropy.length / 2));
75258
+ var chunks = Array.apply(null, length).map(function (a, b) {
75259
+ return entropy.slice(b * 2, ++b * 2);
75260
+ }).map(function (r, i) {
75261
+ var no = parseInt(r.toString('hex'), 16);
75262
+ var fill = '0'.repeat(5 - String(no).length);
75263
+ return fill + String(no) + String(calculateChecksum(i, no));
75264
+ });
75265
+ assert_1.default.equal(chunks.length, 8);
75266
+ return chunks;
75267
+ }
75268
+ exports.entropyToSecret = entropyToSecret;
75269
+ function randomSecret() {
75270
+ return entropyToSecret(randomEntropy());
75271
+ }
75272
+ exports.randomSecret = randomSecret;
75273
+ function secretToEntropy(secret) {
75274
+ return Buffer.concat(secret.map(function (r, i) {
75275
+ var no = Number(r.slice(0, 5));
75276
+ var checksum = Number(r.slice(5));
75277
+ try {
75278
+ assert_1.default.strictEqual(r.length, 6);
75279
+ }
75280
+ catch (e) {
75281
+ throw new Error('Invalid secret: number invalid');
75282
+ }
75283
+ try {
75284
+ assert_1.default.strictEqual(checkChecksum(i, no, checksum), true);
75285
+ }
75286
+ catch (e) {
75287
+ throw new Error('Invalid secret part: checksum invalid');
75288
+ }
75289
+ var hex = ('0000' + no.toString(16)).slice(-4);
75290
+ return Buffer.from(hex, 'hex');
75291
+ }));
75292
+ }
75293
+ exports.secretToEntropy = secretToEntropy;
75294
+ function parseSecretString(secret) {
75295
+ secret = secret.replace(/[^0-9]/g, '');
75296
+ if (secret.length !== 48) {
75297
+ throw new Error('Invalid secret string (should contain 8 blocks of 6 digits');
75298
+ }
75299
+ return Array.apply(null, Array(8)).map(function (a, i) {
75300
+ return secret.slice(i * 6, (i + 1) * 6);
75301
+ });
75302
+ }
75303
+ exports.parseSecretString = parseSecretString;
75304
+
75305
+
73529
75306
  /***/ }),
73530
75307
 
73531
75308
  /***/ "../../node_modules/xtend/immutable.js":
@@ -74195,6 +75972,43 @@ function getDecodedTransaction(txOrBlob) {
74195
75972
  }
74196
75973
 
74197
75974
 
75975
+ /***/ }),
75976
+
75977
+ /***/ "./dist/npm/Wallet/walletFromSecretNumbers.js":
75978
+ /*!****************************************************!*\
75979
+ !*** ./dist/npm/Wallet/walletFromSecretNumbers.js ***!
75980
+ \****************************************************/
75981
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75982
+
75983
+ "use strict";
75984
+
75985
+ var __importDefault = (this && this.__importDefault) || function (mod) {
75986
+ return (mod && mod.__esModule) ? mod : { "default": mod };
75987
+ };
75988
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75989
+ exports.walletFromSecretNumbers = void 0;
75990
+ const xrpl_secret_numbers_1 = __webpack_require__(/*! xrpl-secret-numbers */ "../../node_modules/xrpl-secret-numbers/dist/index.js");
75991
+ const ECDSA_1 = __importDefault(__webpack_require__(/*! ../ECDSA */ "./dist/npm/ECDSA.js"));
75992
+ const _1 = __webpack_require__(/*! . */ "./dist/npm/Wallet/index.js");
75993
+ function walletFromSecretNumbers(secretNumbers, opts) {
75994
+ var _a;
75995
+ const secret = new xrpl_secret_numbers_1.Account(secretNumbers).getFamilySeed();
75996
+ const updatedOpts = {
75997
+ masterAddress: undefined,
75998
+ algorithm: undefined,
75999
+ };
76000
+ if (opts === undefined) {
76001
+ updatedOpts.algorithm = ECDSA_1.default.secp256k1;
76002
+ }
76003
+ else {
76004
+ updatedOpts.masterAddress = opts.masterAddress;
76005
+ updatedOpts.algorithm = (_a = opts.algorithm) !== null && _a !== void 0 ? _a : ECDSA_1.default.secp256k1;
76006
+ }
76007
+ return _1.Wallet.fromSecret(secret, updatedOpts);
76008
+ }
76009
+ exports.walletFromSecretNumbers = walletFromSecretNumbers;
76010
+
76011
+
74198
76012
  /***/ }),
74199
76013
 
74200
76014
  /***/ "./dist/npm/client/BroadcastClient.js":
@@ -75289,7 +77103,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
75289
77103
  return (mod && mod.__esModule) ? mod : { "default": mod };
75290
77104
  };
75291
77105
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75292
- exports.rfc1751MnemonicToKey = exports.keyToRFC1751Mnemonic = exports.Wallet = exports.ECDSA = exports.Client = exports.BroadcastClient = void 0;
77106
+ exports.rfc1751MnemonicToKey = exports.keyToRFC1751Mnemonic = exports.walletFromSecretNumbers = exports.Wallet = exports.ECDSA = exports.Client = exports.BroadcastClient = void 0;
75293
77107
  var BroadcastClient_1 = __webpack_require__(/*! ./client/BroadcastClient */ "./dist/npm/client/BroadcastClient.js");
75294
77108
  Object.defineProperty(exports, "BroadcastClient", ({ enumerable: true, get: function () { return BroadcastClient_1.BroadcastClient; } }));
75295
77109
  var client_1 = __webpack_require__(/*! ./client */ "./dist/npm/client/index.js");
@@ -75301,6 +77115,8 @@ Object.defineProperty(exports, "ECDSA", ({ enumerable: true, get: function () {
75301
77115
  __exportStar(__webpack_require__(/*! ./errors */ "./dist/npm/errors.js"), exports);
75302
77116
  var Wallet_1 = __webpack_require__(/*! ./Wallet */ "./dist/npm/Wallet/index.js");
75303
77117
  Object.defineProperty(exports, "Wallet", ({ enumerable: true, get: function () { return Wallet_1.Wallet; } }));
77118
+ var walletFromSecretNumbers_1 = __webpack_require__(/*! ./Wallet/walletFromSecretNumbers */ "./dist/npm/Wallet/walletFromSecretNumbers.js");
77119
+ Object.defineProperty(exports, "walletFromSecretNumbers", ({ enumerable: true, get: function () { return walletFromSecretNumbers_1.walletFromSecretNumbers; } }));
75304
77120
  var rfc1751_1 = __webpack_require__(/*! ./Wallet/rfc1751 */ "./dist/npm/Wallet/rfc1751.js");
75305
77121
  Object.defineProperty(exports, "keyToRFC1751Mnemonic", ({ enumerable: true, get: function () { return rfc1751_1.keyToRFC1751Mnemonic; } }));
75306
77122
  Object.defineProperty(exports, "rfc1751MnemonicToKey", ({ enumerable: true, get: function () { return rfc1751_1.rfc1751MnemonicToKey; } }));
@@ -75390,10 +77206,12 @@ var AccountRootFlags;
75390
77206
  AccountRootFlags[AccountRootFlags["lsfGlobalFreeze"] = 4194304] = "lsfGlobalFreeze";
75391
77207
  AccountRootFlags[AccountRootFlags["lsfDefaultRipple"] = 8388608] = "lsfDefaultRipple";
75392
77208
  AccountRootFlags[AccountRootFlags["lsfDepositAuth"] = 16777216] = "lsfDepositAuth";
77209
+ AccountRootFlags[AccountRootFlags["lsfAMM"] = 33554432] = "lsfAMM";
75393
77210
  AccountRootFlags[AccountRootFlags["lsfDisallowIncomingNFTokenOffer"] = 67108864] = "lsfDisallowIncomingNFTokenOffer";
75394
77211
  AccountRootFlags[AccountRootFlags["lsfDisallowIncomingCheck"] = 134217728] = "lsfDisallowIncomingCheck";
75395
77212
  AccountRootFlags[AccountRootFlags["lsfDisallowIncomingPayChan"] = 268435456] = "lsfDisallowIncomingPayChan";
75396
77213
  AccountRootFlags[AccountRootFlags["lsfDisallowIncomingTrustline"] = 536870912] = "lsfDisallowIncomingTrustline";
77214
+ AccountRootFlags[AccountRootFlags["lsfAllowTrustLineClawback"] = 2147483648] = "lsfAllowTrustLineClawback";
75397
77215
  })(AccountRootFlags = exports.AccountRootFlags || (exports.AccountRootFlags = {}));
75398
77216
 
75399
77217
 
@@ -75545,6 +77363,309 @@ Object.defineProperty(exports, "SignerListFlags", ({ enumerable: true, get: func
75545
77363
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75546
77364
 
75547
77365
 
77366
+ /***/ }),
77367
+
77368
+ /***/ "./dist/npm/models/transactions/AMMBid.js":
77369
+ /*!************************************************!*\
77370
+ !*** ./dist/npm/models/transactions/AMMBid.js ***!
77371
+ \************************************************/
77372
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77373
+
77374
+ "use strict";
77375
+
77376
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77377
+ exports.validateAMMBid = void 0;
77378
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
77379
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
77380
+ const MAX_AUTH_ACCOUNTS = 4;
77381
+ function validateAMMBid(tx) {
77382
+ (0, common_1.validateBaseTransaction)(tx);
77383
+ if (tx.Asset == null) {
77384
+ throw new errors_1.ValidationError('AMMBid: missing field Asset');
77385
+ }
77386
+ if (!(0, common_1.isCurrency)(tx.Asset)) {
77387
+ throw new errors_1.ValidationError('AMMBid: Asset must be a Currency');
77388
+ }
77389
+ if (tx.Asset2 == null) {
77390
+ throw new errors_1.ValidationError('AMMBid: missing field Asset2');
77391
+ }
77392
+ if (!(0, common_1.isCurrency)(tx.Asset2)) {
77393
+ throw new errors_1.ValidationError('AMMBid: Asset2 must be a Currency');
77394
+ }
77395
+ if (tx.BidMin != null && !(0, common_1.isAmount)(tx.BidMin)) {
77396
+ throw new errors_1.ValidationError('AMMBid: BidMin must be an Amount');
77397
+ }
77398
+ if (tx.BidMax != null && !(0, common_1.isAmount)(tx.BidMax)) {
77399
+ throw new errors_1.ValidationError('AMMBid: BidMax must be an Amount');
77400
+ }
77401
+ if (tx.AuthAccounts != null) {
77402
+ if (!Array.isArray(tx.AuthAccounts)) {
77403
+ throw new errors_1.ValidationError(`AMMBid: AuthAccounts must be an AuthAccount array`);
77404
+ }
77405
+ if (tx.AuthAccounts.length > MAX_AUTH_ACCOUNTS) {
77406
+ throw new errors_1.ValidationError(`AMMBid: AuthAccounts length must not be greater than ${MAX_AUTH_ACCOUNTS}`);
77407
+ }
77408
+ validateAuthAccounts(tx.Account, tx.AuthAccounts);
77409
+ }
77410
+ }
77411
+ exports.validateAMMBid = validateAMMBid;
77412
+ function validateAuthAccounts(senderAddress, authAccounts) {
77413
+ for (const authAccount of authAccounts) {
77414
+ if (authAccount.AuthAccount == null ||
77415
+ typeof authAccount.AuthAccount !== 'object') {
77416
+ throw new errors_1.ValidationError(`AMMBid: invalid AuthAccounts`);
77417
+ }
77418
+ if (authAccount.AuthAccount.Account == null) {
77419
+ throw new errors_1.ValidationError(`AMMBid: invalid AuthAccounts`);
77420
+ }
77421
+ if (typeof authAccount.AuthAccount.Account !== 'string') {
77422
+ throw new errors_1.ValidationError(`AMMBid: invalid AuthAccounts`);
77423
+ }
77424
+ if (authAccount.AuthAccount.Account === senderAddress) {
77425
+ throw new errors_1.ValidationError(`AMMBid: AuthAccounts must not include sender's address`);
77426
+ }
77427
+ }
77428
+ return true;
77429
+ }
77430
+
77431
+
77432
+ /***/ }),
77433
+
77434
+ /***/ "./dist/npm/models/transactions/AMMCreate.js":
77435
+ /*!***************************************************!*\
77436
+ !*** ./dist/npm/models/transactions/AMMCreate.js ***!
77437
+ \***************************************************/
77438
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77439
+
77440
+ "use strict";
77441
+
77442
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77443
+ exports.validateAMMCreate = exports.AMM_MAX_TRADING_FEE = void 0;
77444
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
77445
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
77446
+ exports.AMM_MAX_TRADING_FEE = 1000;
77447
+ function validateAMMCreate(tx) {
77448
+ (0, common_1.validateBaseTransaction)(tx);
77449
+ if (tx.Amount == null) {
77450
+ throw new errors_1.ValidationError('AMMCreate: missing field Amount');
77451
+ }
77452
+ if (!(0, common_1.isAmount)(tx.Amount)) {
77453
+ throw new errors_1.ValidationError('AMMCreate: Amount must be an Amount');
77454
+ }
77455
+ if (tx.Amount2 == null) {
77456
+ throw new errors_1.ValidationError('AMMCreate: missing field Amount2');
77457
+ }
77458
+ if (!(0, common_1.isAmount)(tx.Amount2)) {
77459
+ throw new errors_1.ValidationError('AMMCreate: Amount2 must be an Amount');
77460
+ }
77461
+ if (tx.TradingFee == null) {
77462
+ throw new errors_1.ValidationError('AMMCreate: missing field TradingFee');
77463
+ }
77464
+ if (typeof tx.TradingFee !== 'number') {
77465
+ throw new errors_1.ValidationError('AMMCreate: TradingFee must be a number');
77466
+ }
77467
+ if (tx.TradingFee < 0 || tx.TradingFee > exports.AMM_MAX_TRADING_FEE) {
77468
+ throw new errors_1.ValidationError(`AMMCreate: TradingFee must be between 0 and ${exports.AMM_MAX_TRADING_FEE}`);
77469
+ }
77470
+ }
77471
+ exports.validateAMMCreate = validateAMMCreate;
77472
+
77473
+
77474
+ /***/ }),
77475
+
77476
+ /***/ "./dist/npm/models/transactions/AMMDelete.js":
77477
+ /*!***************************************************!*\
77478
+ !*** ./dist/npm/models/transactions/AMMDelete.js ***!
77479
+ \***************************************************/
77480
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77481
+
77482
+ "use strict";
77483
+
77484
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77485
+ exports.validateAMMDelete = void 0;
77486
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
77487
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
77488
+ function validateAMMDelete(tx) {
77489
+ (0, common_1.validateBaseTransaction)(tx);
77490
+ if (tx.Asset == null) {
77491
+ throw new errors_1.ValidationError('AMMDelete: missing field Asset');
77492
+ }
77493
+ if (!(0, common_1.isCurrency)(tx.Asset)) {
77494
+ throw new errors_1.ValidationError('AMMDelete: Asset must be a Currency');
77495
+ }
77496
+ if (tx.Asset2 == null) {
77497
+ throw new errors_1.ValidationError('AMMDelete: missing field Asset2');
77498
+ }
77499
+ if (!(0, common_1.isCurrency)(tx.Asset2)) {
77500
+ throw new errors_1.ValidationError('AMMDelete: Asset2 must be a Currency');
77501
+ }
77502
+ }
77503
+ exports.validateAMMDelete = validateAMMDelete;
77504
+
77505
+
77506
+ /***/ }),
77507
+
77508
+ /***/ "./dist/npm/models/transactions/AMMDeposit.js":
77509
+ /*!****************************************************!*\
77510
+ !*** ./dist/npm/models/transactions/AMMDeposit.js ***!
77511
+ \****************************************************/
77512
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77513
+
77514
+ "use strict";
77515
+
77516
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77517
+ exports.validateAMMDeposit = exports.AMMDepositFlags = void 0;
77518
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
77519
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
77520
+ var AMMDepositFlags;
77521
+ (function (AMMDepositFlags) {
77522
+ AMMDepositFlags[AMMDepositFlags["tfLPToken"] = 65536] = "tfLPToken";
77523
+ AMMDepositFlags[AMMDepositFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
77524
+ AMMDepositFlags[AMMDepositFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
77525
+ AMMDepositFlags[AMMDepositFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
77526
+ AMMDepositFlags[AMMDepositFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
77527
+ })(AMMDepositFlags = exports.AMMDepositFlags || (exports.AMMDepositFlags = {}));
77528
+ function validateAMMDeposit(tx) {
77529
+ (0, common_1.validateBaseTransaction)(tx);
77530
+ if (tx.Asset == null) {
77531
+ throw new errors_1.ValidationError('AMMDeposit: missing field Asset');
77532
+ }
77533
+ if (!(0, common_1.isCurrency)(tx.Asset)) {
77534
+ throw new errors_1.ValidationError('AMMDeposit: Asset must be a Currency');
77535
+ }
77536
+ if (tx.Asset2 == null) {
77537
+ throw new errors_1.ValidationError('AMMDeposit: missing field Asset2');
77538
+ }
77539
+ if (!(0, common_1.isCurrency)(tx.Asset2)) {
77540
+ throw new errors_1.ValidationError('AMMDeposit: Asset2 must be a Currency');
77541
+ }
77542
+ if (tx.Amount2 != null && tx.Amount == null) {
77543
+ throw new errors_1.ValidationError('AMMDeposit: must set Amount with Amount2');
77544
+ }
77545
+ else if (tx.EPrice != null && tx.Amount == null) {
77546
+ throw new errors_1.ValidationError('AMMDeposit: must set Amount with EPrice');
77547
+ }
77548
+ else if (tx.LPTokenOut == null && tx.Amount == null) {
77549
+ throw new errors_1.ValidationError('AMMDeposit: must set at least LPTokenOut or Amount');
77550
+ }
77551
+ if (tx.LPTokenOut != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenOut)) {
77552
+ throw new errors_1.ValidationError('AMMDeposit: LPTokenOut must be an IssuedCurrencyAmount');
77553
+ }
77554
+ if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
77555
+ throw new errors_1.ValidationError('AMMDeposit: Amount must be an Amount');
77556
+ }
77557
+ if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
77558
+ throw new errors_1.ValidationError('AMMDeposit: Amount2 must be an Amount');
77559
+ }
77560
+ if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
77561
+ throw new errors_1.ValidationError('AMMDeposit: EPrice must be an Amount');
77562
+ }
77563
+ }
77564
+ exports.validateAMMDeposit = validateAMMDeposit;
77565
+
77566
+
77567
+ /***/ }),
77568
+
77569
+ /***/ "./dist/npm/models/transactions/AMMVote.js":
77570
+ /*!*************************************************!*\
77571
+ !*** ./dist/npm/models/transactions/AMMVote.js ***!
77572
+ \*************************************************/
77573
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77574
+
77575
+ "use strict";
77576
+
77577
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77578
+ exports.validateAMMVote = void 0;
77579
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
77580
+ const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
77581
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
77582
+ function validateAMMVote(tx) {
77583
+ (0, common_1.validateBaseTransaction)(tx);
77584
+ if (tx.Asset == null) {
77585
+ throw new errors_1.ValidationError('AMMVote: missing field Asset');
77586
+ }
77587
+ if (!(0, common_1.isCurrency)(tx.Asset)) {
77588
+ throw new errors_1.ValidationError('AMMVote: Asset must be a Currency');
77589
+ }
77590
+ if (tx.Asset2 == null) {
77591
+ throw new errors_1.ValidationError('AMMVote: missing field Asset2');
77592
+ }
77593
+ if (!(0, common_1.isCurrency)(tx.Asset2)) {
77594
+ throw new errors_1.ValidationError('AMMVote: Asset2 must be a Currency');
77595
+ }
77596
+ if (tx.TradingFee == null) {
77597
+ throw new errors_1.ValidationError('AMMVote: missing field TradingFee');
77598
+ }
77599
+ if (typeof tx.TradingFee !== 'number') {
77600
+ throw new errors_1.ValidationError('AMMVote: TradingFee must be a number');
77601
+ }
77602
+ if (tx.TradingFee < 0 || tx.TradingFee > AMMCreate_1.AMM_MAX_TRADING_FEE) {
77603
+ throw new errors_1.ValidationError(`AMMVote: TradingFee must be between 0 and ${AMMCreate_1.AMM_MAX_TRADING_FEE}`);
77604
+ }
77605
+ }
77606
+ exports.validateAMMVote = validateAMMVote;
77607
+
77608
+
77609
+ /***/ }),
77610
+
77611
+ /***/ "./dist/npm/models/transactions/AMMWithdraw.js":
77612
+ /*!*****************************************************!*\
77613
+ !*** ./dist/npm/models/transactions/AMMWithdraw.js ***!
77614
+ \*****************************************************/
77615
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77616
+
77617
+ "use strict";
77618
+
77619
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77620
+ exports.validateAMMWithdraw = exports.AMMWithdrawFlags = void 0;
77621
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
77622
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
77623
+ var AMMWithdrawFlags;
77624
+ (function (AMMWithdrawFlags) {
77625
+ AMMWithdrawFlags[AMMWithdrawFlags["tfLPToken"] = 65536] = "tfLPToken";
77626
+ AMMWithdrawFlags[AMMWithdrawFlags["tfWithdrawAll"] = 131072] = "tfWithdrawAll";
77627
+ AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetWithdrawAll"] = 262144] = "tfOneAssetWithdrawAll";
77628
+ AMMWithdrawFlags[AMMWithdrawFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
77629
+ AMMWithdrawFlags[AMMWithdrawFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
77630
+ AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
77631
+ AMMWithdrawFlags[AMMWithdrawFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
77632
+ })(AMMWithdrawFlags = exports.AMMWithdrawFlags || (exports.AMMWithdrawFlags = {}));
77633
+ function validateAMMWithdraw(tx) {
77634
+ (0, common_1.validateBaseTransaction)(tx);
77635
+ if (tx.Asset == null) {
77636
+ throw new errors_1.ValidationError('AMMWithdraw: missing field Asset');
77637
+ }
77638
+ if (!(0, common_1.isCurrency)(tx.Asset)) {
77639
+ throw new errors_1.ValidationError('AMMWithdraw: Asset must be a Currency');
77640
+ }
77641
+ if (tx.Asset2 == null) {
77642
+ throw new errors_1.ValidationError('AMMWithdraw: missing field Asset2');
77643
+ }
77644
+ if (!(0, common_1.isCurrency)(tx.Asset2)) {
77645
+ throw new errors_1.ValidationError('AMMWithdraw: Asset2 must be a Currency');
77646
+ }
77647
+ if (tx.Amount2 != null && tx.Amount == null) {
77648
+ throw new errors_1.ValidationError('AMMWithdraw: must set Amount with Amount2');
77649
+ }
77650
+ else if (tx.EPrice != null && tx.Amount == null) {
77651
+ throw new errors_1.ValidationError('AMMWithdraw: must set Amount with EPrice');
77652
+ }
77653
+ if (tx.LPTokenIn != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenIn)) {
77654
+ throw new errors_1.ValidationError('AMMWithdraw: LPTokenIn must be an IssuedCurrencyAmount');
77655
+ }
77656
+ if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
77657
+ throw new errors_1.ValidationError('AMMWithdraw: Amount must be an Amount');
77658
+ }
77659
+ if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
77660
+ throw new errors_1.ValidationError('AMMWithdraw: Amount2 must be an Amount');
77661
+ }
77662
+ if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
77663
+ throw new errors_1.ValidationError('AMMWithdraw: EPrice must be an Amount');
77664
+ }
77665
+ }
77666
+ exports.validateAMMWithdraw = validateAMMWithdraw;
77667
+
77668
+
75548
77669
  /***/ }),
75549
77670
 
75550
77671
  /***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
@@ -75790,6 +77911,7 @@ var AccountSetAsfFlags;
75790
77911
  AccountSetAsfFlags[AccountSetAsfFlags["asfDisallowIncomingCheck"] = 13] = "asfDisallowIncomingCheck";
75791
77912
  AccountSetAsfFlags[AccountSetAsfFlags["asfDisallowIncomingPayChan"] = 14] = "asfDisallowIncomingPayChan";
75792
77913
  AccountSetAsfFlags[AccountSetAsfFlags["asfDisallowIncomingTrustline"] = 15] = "asfDisallowIncomingTrustline";
77914
+ AccountSetAsfFlags[AccountSetAsfFlags["asfAllowTrustLineClawback"] = 16] = "asfAllowTrustLineClawback";
75793
77915
  })(AccountSetAsfFlags = exports.AccountSetAsfFlags || (exports.AccountSetAsfFlags = {}));
75794
77916
  var AccountSetTfFlags;
75795
77917
  (function (AccountSetTfFlags) {
@@ -75952,6 +78074,35 @@ function validateCheckCreate(tx) {
75952
78074
  exports.validateCheckCreate = validateCheckCreate;
75953
78075
 
75954
78076
 
78077
+ /***/ }),
78078
+
78079
+ /***/ "./dist/npm/models/transactions/clawback.js":
78080
+ /*!**************************************************!*\
78081
+ !*** ./dist/npm/models/transactions/clawback.js ***!
78082
+ \**************************************************/
78083
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
78084
+
78085
+ "use strict";
78086
+
78087
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
78088
+ exports.validateClawback = void 0;
78089
+ const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
78090
+ const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
78091
+ function validateClawback(tx) {
78092
+ (0, common_1.validateBaseTransaction)(tx);
78093
+ if (tx.Amount == null) {
78094
+ throw new errors_1.ValidationError('Clawback: missing field Amount');
78095
+ }
78096
+ if (!(0, common_1.isIssuedCurrency)(tx.Amount)) {
78097
+ throw new errors_1.ValidationError('Clawback: invalid Amount');
78098
+ }
78099
+ if ((0, common_1.isIssuedCurrency)(tx.Amount) && tx.Account === tx.Amount.issuer) {
78100
+ throw new errors_1.ValidationError('Clawback: invalid holder Account');
78101
+ }
78102
+ }
78103
+ exports.validateClawback = validateClawback;
78104
+
78105
+
75955
78106
  /***/ }),
75956
78107
 
75957
78108
  /***/ "./dist/npm/models/transactions/common.js":
@@ -75963,7 +78114,7 @@ exports.validateCheckCreate = validateCheckCreate;
75963
78114
  "use strict";
75964
78115
 
75965
78116
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75966
- exports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = void 0;
78117
+ exports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = exports.isCurrency = void 0;
75967
78118
  const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
75968
78119
  const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
75969
78120
  const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
@@ -75996,10 +78147,21 @@ function isSigner(obj) {
75996
78147
  typeof signer.TxnSignature === 'string' &&
75997
78148
  typeof signer.SigningPubKey === 'string');
75998
78149
  }
78150
+ const XRP_CURRENCY_SIZE = 1;
78151
+ const ISSUE_SIZE = 2;
75999
78152
  const ISSUED_CURRENCY_SIZE = 3;
76000
78153
  function isRecord(value) {
76001
78154
  return value !== null && typeof value === 'object';
76002
78155
  }
78156
+ function isCurrency(input) {
78157
+ return (isRecord(input) &&
78158
+ ((Object.keys(input).length === ISSUE_SIZE &&
78159
+ typeof input.issuer === 'string' &&
78160
+ typeof input.currency === 'string') ||
78161
+ (Object.keys(input).length === XRP_CURRENCY_SIZE &&
78162
+ input.currency === 'XRP')));
78163
+ }
78164
+ exports.isCurrency = isCurrency;
76003
78165
  function isIssuedCurrency(input) {
76004
78166
  return (isRecord(input) &&
76005
78167
  Object.keys(input).length === ISSUED_CURRENCY_SIZE &&
@@ -76290,13 +78452,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
76290
78452
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
76291
78453
  };
76292
78454
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76293
- exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.EnableAmendmentFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
78455
+ exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.EnableAmendmentFlags = exports.AMMWithdrawFlags = exports.AMMDepositFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
76294
78456
  var transaction_1 = __webpack_require__(/*! ./transaction */ "./dist/npm/models/transactions/transaction.js");
76295
78457
  Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return transaction_1.validate; } }));
76296
78458
  __exportStar(__webpack_require__(/*! ./metadata */ "./dist/npm/models/transactions/metadata.js"), exports);
76297
78459
  var accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
76298
78460
  Object.defineProperty(exports, "AccountSetAsfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } }));
76299
78461
  Object.defineProperty(exports, "AccountSetTfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } }));
78462
+ var AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
78463
+ Object.defineProperty(exports, "AMMDepositFlags", ({ enumerable: true, get: function () { return AMMDeposit_1.AMMDepositFlags; } }));
78464
+ var AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
78465
+ Object.defineProperty(exports, "AMMWithdrawFlags", ({ enumerable: true, get: function () { return AMMWithdraw_1.AMMWithdrawFlags; } }));
76300
78466
  var enableAmendment_1 = __webpack_require__(/*! ./enableAmendment */ "./dist/npm/models/transactions/enableAmendment.js");
76301
78467
  Object.defineProperty(exports, "EnableAmendmentFlags", ({ enumerable: true, get: function () { return enableAmendment_1.EnableAmendmentFlags; } }));
76302
78468
  var NFTokenCreateOffer_1 = __webpack_require__(/*! ./NFTokenCreateOffer */ "./dist/npm/models/transactions/NFTokenCreateOffer.js");
@@ -76777,9 +78943,16 @@ const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/ind
76777
78943
  const flags_1 = __webpack_require__(/*! ../utils/flags */ "./dist/npm/models/utils/flags.js");
76778
78944
  const accountDelete_1 = __webpack_require__(/*! ./accountDelete */ "./dist/npm/models/transactions/accountDelete.js");
76779
78945
  const accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
78946
+ const AMMBid_1 = __webpack_require__(/*! ./AMMBid */ "./dist/npm/models/transactions/AMMBid.js");
78947
+ const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
78948
+ const AMMDelete_1 = __webpack_require__(/*! ./AMMDelete */ "./dist/npm/models/transactions/AMMDelete.js");
78949
+ const AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
78950
+ const AMMVote_1 = __webpack_require__(/*! ./AMMVote */ "./dist/npm/models/transactions/AMMVote.js");
78951
+ const AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
76780
78952
  const checkCancel_1 = __webpack_require__(/*! ./checkCancel */ "./dist/npm/models/transactions/checkCancel.js");
76781
78953
  const checkCash_1 = __webpack_require__(/*! ./checkCash */ "./dist/npm/models/transactions/checkCash.js");
76782
78954
  const checkCreate_1 = __webpack_require__(/*! ./checkCreate */ "./dist/npm/models/transactions/checkCreate.js");
78955
+ const clawback_1 = __webpack_require__(/*! ./clawback */ "./dist/npm/models/transactions/clawback.js");
76783
78956
  const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
76784
78957
  const depositPreauth_1 = __webpack_require__(/*! ./depositPreauth */ "./dist/npm/models/transactions/depositPreauth.js");
76785
78958
  const escrowCancel_1 = __webpack_require__(/*! ./escrowCancel */ "./dist/npm/models/transactions/escrowCancel.js");
@@ -76852,6 +79025,24 @@ function validate(transaction) {
76852
79025
  case 'AccountSet':
76853
79026
  (0, accountSet_1.validateAccountSet)(tx);
76854
79027
  break;
79028
+ case 'AMMBid':
79029
+ (0, AMMBid_1.validateAMMBid)(tx);
79030
+ break;
79031
+ case 'AMMDelete':
79032
+ (0, AMMDelete_1.validateAMMDelete)(tx);
79033
+ break;
79034
+ case 'AMMDeposit':
79035
+ (0, AMMDeposit_1.validateAMMDeposit)(tx);
79036
+ break;
79037
+ case 'AMMCreate':
79038
+ (0, AMMCreate_1.validateAMMCreate)(tx);
79039
+ break;
79040
+ case 'AMMVote':
79041
+ (0, AMMVote_1.validateAMMVote)(tx);
79042
+ break;
79043
+ case 'AMMWithdraw':
79044
+ (0, AMMWithdraw_1.validateAMMWithdraw)(tx);
79045
+ break;
76855
79046
  case 'CheckCancel':
76856
79047
  (0, checkCancel_1.validateCheckCancel)(tx);
76857
79048
  break;
@@ -76861,6 +79052,9 @@ function validate(transaction) {
76861
79052
  case 'CheckCreate':
76862
79053
  (0, checkCreate_1.validateCheckCreate)(tx);
76863
79054
  break;
79055
+ case 'Clawback':
79056
+ (0, clawback_1.validateClawback)(tx);
79057
+ break;
76864
79058
  case 'DepositPreauth':
76865
79059
  (0, depositPreauth_1.validateDepositPreauth)(tx);
76866
79060
  break;
@@ -76981,6 +79175,8 @@ exports.setTransactionFlagsToNumber = exports.parseAccountRootFlags = void 0;
76981
79175
  const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
76982
79176
  const AccountRoot_1 = __webpack_require__(/*! ../ledger/AccountRoot */ "./dist/npm/models/ledger/AccountRoot.js");
76983
79177
  const accountSet_1 = __webpack_require__(/*! ../transactions/accountSet */ "./dist/npm/models/transactions/accountSet.js");
79178
+ const AMMDeposit_1 = __webpack_require__(/*! ../transactions/AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
79179
+ const AMMWithdraw_1 = __webpack_require__(/*! ../transactions/AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
76984
79180
  const offerCreate_1 = __webpack_require__(/*! ../transactions/offerCreate */ "./dist/npm/models/transactions/offerCreate.js");
76985
79181
  const payment_1 = __webpack_require__(/*! ../transactions/payment */ "./dist/npm/models/transactions/payment.js");
76986
79182
  const paymentChannelClaim_1 = __webpack_require__(/*! ../transactions/paymentChannelClaim */ "./dist/npm/models/transactions/paymentChannelClaim.js");
@@ -76988,8 +79184,9 @@ const trustSet_1 = __webpack_require__(/*! ../transactions/trustSet */ "./dist/n
76988
79184
  const _1 = __webpack_require__(/*! . */ "./dist/npm/models/utils/index.js");
76989
79185
  function parseAccountRootFlags(flags) {
76990
79186
  const flagsInterface = {};
76991
- Object.keys(AccountRoot_1.AccountRootFlags).forEach((flag) => {
76992
- if ((0, _1.isFlagEnabled)(flags, AccountRoot_1.AccountRootFlags[flag])) {
79187
+ Object.values(AccountRoot_1.AccountRootFlags).forEach((flag) => {
79188
+ if (typeof flag === 'string' &&
79189
+ (0, _1.isFlagEnabled)(flags, AccountRoot_1.AccountRootFlags[flag])) {
76993
79190
  flagsInterface[flag] = true;
76994
79191
  }
76995
79192
  });
@@ -77006,41 +79203,32 @@ function setTransactionFlagsToNumber(tx) {
77006
79203
  }
77007
79204
  switch (tx.TransactionType) {
77008
79205
  case 'AccountSet':
77009
- tx.Flags = convertAccountSetFlagsToNumber(tx.Flags);
79206
+ tx.Flags = convertFlagsToNumber(tx.Flags, accountSet_1.AccountSetTfFlags);
79207
+ return;
79208
+ case 'AMMDeposit':
79209
+ tx.Flags = convertFlagsToNumber(tx.Flags, AMMDeposit_1.AMMDepositFlags);
79210
+ return;
79211
+ case 'AMMWithdraw':
79212
+ tx.Flags = convertFlagsToNumber(tx.Flags, AMMWithdraw_1.AMMWithdrawFlags);
77010
79213
  return;
77011
79214
  case 'OfferCreate':
77012
- tx.Flags = convertOfferCreateFlagsToNumber(tx.Flags);
79215
+ tx.Flags = convertFlagsToNumber(tx.Flags, offerCreate_1.OfferCreateFlags);
77013
79216
  return;
77014
79217
  case 'PaymentChannelClaim':
77015
- tx.Flags = convertPaymentChannelClaimFlagsToNumber(tx.Flags);
79218
+ tx.Flags = convertFlagsToNumber(tx.Flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
77016
79219
  return;
77017
79220
  case 'Payment':
77018
- tx.Flags = convertPaymentTransactionFlagsToNumber(tx.Flags);
79221
+ tx.Flags = convertFlagsToNumber(tx.Flags, payment_1.PaymentFlags);
77019
79222
  return;
77020
79223
  case 'TrustSet':
77021
- tx.Flags = convertTrustSetFlagsToNumber(tx.Flags);
79224
+ tx.Flags = convertFlagsToNumber(tx.Flags, trustSet_1.TrustSetFlags);
77022
79225
  return;
77023
79226
  default:
77024
79227
  tx.Flags = 0;
77025
79228
  }
77026
79229
  }
77027
79230
  exports.setTransactionFlagsToNumber = setTransactionFlagsToNumber;
77028
- function convertAccountSetFlagsToNumber(flags) {
77029
- return reduceFlags(flags, accountSet_1.AccountSetTfFlags);
77030
- }
77031
- function convertOfferCreateFlagsToNumber(flags) {
77032
- return reduceFlags(flags, offerCreate_1.OfferCreateFlags);
77033
- }
77034
- function convertPaymentChannelClaimFlagsToNumber(flags) {
77035
- return reduceFlags(flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
77036
- }
77037
- function convertPaymentTransactionFlagsToNumber(flags) {
77038
- return reduceFlags(flags, payment_1.PaymentFlags);
77039
- }
77040
- function convertTrustSetFlagsToNumber(flags) {
77041
- return reduceFlags(flags, trustSet_1.TrustSetFlags);
77042
- }
77043
- function reduceFlags(flags, flagEnum) {
79231
+ function convertFlagsToNumber(flags, flagEnum) {
77044
79232
  return Object.keys(flags).reduce((resultFlags, flag) => {
77045
79233
  if (flagEnum[flag] == null) {
77046
79234
  throw new errors_1.ValidationError(`flag ${flag} doesn't exist in flagEnum: ${JSON.stringify(flagEnum)}`);
@@ -77068,7 +79256,7 @@ function onlyHasFields(obj, fields) {
77068
79256
  }
77069
79257
  exports.onlyHasFields = onlyHasFields;
77070
79258
  function isFlagEnabled(Flags, checkFlag) {
77071
- return (checkFlag & Flags) === checkFlag;
79259
+ return (BigInt(checkFlag) & BigInt(Flags)) === BigInt(checkFlag);
77072
79260
  }
77073
79261
  exports.isFlagEnabled = isFlagEnabled;
77074
79262
  function isHex(str) {
@@ -77238,7 +79426,7 @@ function setNextValidSequenceNumber(client, tx) {
77238
79426
  tx.Sequence = data.result.account_data.Sequence;
77239
79427
  });
77240
79428
  }
77241
- function fetchAccountDeleteFee(client) {
79429
+ function fetchOwnerReserveFee(client) {
77242
79430
  var _a;
77243
79431
  return __awaiter(this, void 0, void 0, function* () {
77244
79432
  const response = yield client.request({ command: 'server_state' });
@@ -77259,8 +79447,9 @@ function calculateFeePerTransactionType(client, tx, signersCount = 0) {
77259
79447
  const product = new bignumber_js_1.default(scaleValue(netFeeDrops, 33 + fulfillmentBytesSize / 16));
77260
79448
  baseFee = product.dp(0, bignumber_js_1.default.ROUND_CEIL);
77261
79449
  }
77262
- if (tx.TransactionType === 'AccountDelete') {
77263
- baseFee = yield fetchAccountDeleteFee(client);
79450
+ if (tx.TransactionType === 'AccountDelete' ||
79451
+ tx.TransactionType === 'AMMCreate') {
79452
+ baseFee = yield fetchOwnerReserveFee(client);
77264
79453
  }
77265
79454
  if (signersCount > 0) {
77266
79455
  baseFee = bignumber_js_1.default.sum(baseFee, scaleValue(netFeeDrops, 1 + signersCount));
@@ -79034,6 +81223,16 @@ exports.xrpToDrops = xrpToDrops;
79034
81223
 
79035
81224
  /***/ }),
79036
81225
 
81226
+ /***/ "?c95a":
81227
+ /*!********************************!*\
81228
+ !*** ./util.inspect (ignored) ***!
81229
+ \********************************/
81230
+ /***/ (() => {
81231
+
81232
+ /* (ignored) */
81233
+
81234
+ /***/ }),
81235
+
79037
81236
  /***/ "?1dff":
79038
81237
  /*!**********************!*\
79039
81238
  !*** util (ignored) ***!
@@ -79186,7 +81385,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
79186
81385
  /***/ ((module) => {
79187
81386
 
79188
81387
  "use strict";
79189
- module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"LedgerHashes":104,"Amendments":102,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
81388
+ module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Issue":24,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"LedgerHashes":104,"Amendments":102,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"AMM":121,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TradingFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["DiscountedFee",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["VoteWeight",{"nth":48,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstNFTokenSequence",{"nth":50,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AMMID",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Amount2",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMin",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMax",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BaseFeeDrops",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveBaseDrops",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveIncrementDrops",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenOut",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenIn",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["EPrice",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Price",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenBalance",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["Asset",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset2",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["VoteEntry",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuctionSlot",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuthAccount",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["VoteSlots",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AuthAccounts",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_AMM_TOKENS":-261,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"terNO_AMM":-87,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161,"tecUNFUNDED_AMM":162,"tecAMM_BALANCE":163,"tecAMM_FAILED":164,"tecAMM_INVALID_TOKENS":165,"tecAMM_EMPTY":166,"tecAMM_NOT_EMPTY":167,"tecAMM_ACCOUNT":168,"tecINCOMPLETE":169},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"Clawback":30,"AMMCreate":35,"AMMDeposit":36,"AMMWithdraw":37,"AMMVote":38,"AMMBid":39,"AMMDelete":40,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
79190
81389
 
79191
81390
  /***/ }),
79192
81391