@argent/x-shared 1.37.0 → 1.38.1

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 (669) hide show
  1. package/dist/.eslintrc.d.cts +45 -0
  2. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  3. package/dist/_virtual/_commonjsHelpers.js +6 -0
  4. package/dist/_virtual/semver.cjs +1 -0
  5. package/dist/_virtual/semver.js +4 -0
  6. package/dist/commitlint.config.d.cts +2 -0
  7. package/dist/index.cjs +1 -0
  8. package/dist/index.d.ts +2 -19
  9. package/dist/index.js +424 -4
  10. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
  11. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +14 -0
  12. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
  13. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
  14. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
  15. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +203 -0
  16. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -0
  17. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +68 -0
  18. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
  19. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +166 -0
  20. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
  21. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
  22. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  23. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +48 -0
  24. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
  25. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -0
  26. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
  27. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +42 -0
  28. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  29. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +47 -0
  30. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  31. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +31 -0
  32. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
  33. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +61 -0
  34. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  35. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +21 -0
  36. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
  37. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +114 -0
  38. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  39. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +107 -0
  40. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  41. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +38 -0
  42. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  43. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js +32 -0
  44. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  45. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js +21 -0
  46. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  47. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js +107 -0
  48. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  49. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js +44 -0
  50. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -0
  51. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +622 -0
  52. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -0
  53. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +20 -0
  54. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -0
  55. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +20 -0
  56. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -0
  57. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -0
  58. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -0
  59. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +20 -0
  60. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -0
  61. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +6 -0
  62. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -0
  63. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +13 -0
  64. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -0
  65. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
  66. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -0
  67. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +8 -0
  68. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -0
  69. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +9 -0
  70. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -0
  71. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +10 -0
  72. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -0
  73. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +9 -0
  74. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -0
  75. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
  76. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -0
  77. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +9 -0
  78. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -0
  79. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +6 -0
  80. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -0
  81. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +16 -0
  82. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -0
  83. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +33 -0
  84. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -0
  85. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +6 -0
  86. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -0
  87. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -0
  88. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -0
  89. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +9 -0
  90. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -0
  91. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
  92. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -0
  93. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +8 -0
  94. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -0
  95. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +9 -0
  96. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -0
  97. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
  98. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -0
  99. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +6 -0
  100. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -0
  101. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +7 -0
  102. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -0
  103. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +7 -0
  104. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -0
  105. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +13 -0
  106. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -0
  107. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +9 -0
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -0
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +9 -0
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -0
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +7 -0
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -0
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +11 -0
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -0
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +6 -0
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -0
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +12 -0
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -0
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +8 -0
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -0
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +7 -0
  122. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -0
  123. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +8 -0
  124. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -0
  125. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +13 -0
  126. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -0
  127. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  128. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -0
  129. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +7 -0
  130. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -0
  131. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +7 -0
  132. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -0
  133. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +8 -0
  134. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -0
  135. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +5 -0
  136. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -0
  137. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
  138. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -0
  139. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
  140. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -0
  141. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +7 -0
  142. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -0
  143. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +6 -0
  144. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -0
  145. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +9 -0
  146. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -0
  147. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +9 -0
  148. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -0
  149. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +17 -0
  150. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -0
  151. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +6 -0
  152. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -0
  153. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +12 -0
  154. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -0
  155. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
  156. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -0
  157. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +5 -0
  158. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -0
  159. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +7 -0
  160. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -0
  161. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +134 -0
  162. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -0
  163. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +629 -0
  164. package/dist/simulation.cjs +1 -0
  165. package/dist/simulation.d.ts +1 -1
  166. package/dist/simulation.js +69 -1
  167. package/dist/src/account/account.model.cjs +1 -0
  168. package/dist/src/account/account.model.js +45 -0
  169. package/dist/src/account/accountv4.cjs +1 -0
  170. package/dist/src/account/accountv4.js +14 -0
  171. package/dist/src/account/preferences.model.cjs +1 -0
  172. package/dist/src/account/preferences.model.js +11 -0
  173. package/dist/src/assets/tokens.json.cjs +1 -0
  174. package/dist/src/assets/tokens.json.js +181 -0
  175. package/dist/src/backend/schema.cjs +1 -0
  176. package/dist/src/backend/schema.js +14 -0
  177. package/dist/src/bigdecimal/constants.cjs +1 -0
  178. package/dist/src/bigdecimal/constants.js +4 -0
  179. package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -0
  180. package/dist/src/bigdecimal/createUnitsSchema.js +8 -0
  181. package/dist/src/bigdecimal/formatUnits.cjs +1 -0
  182. package/dist/src/bigdecimal/formatUnits.js +11 -0
  183. package/dist/src/bigdecimal/index.cjs +1 -0
  184. package/dist/src/bigdecimal/index.js +33 -0
  185. package/dist/src/bigdecimal/lib.cjs +1 -0
  186. package/dist/src/bigdecimal/lib.js +53 -0
  187. package/dist/src/bigdecimal/parseUnits.cjs +1 -0
  188. package/dist/src/bigdecimal/parseUnits.js +11 -0
  189. package/dist/src/bigdecimal/utils.cjs +1 -0
  190. package/dist/src/bigdecimal/utils.js +37 -0
  191. package/dist/src/cache/CacheService.cjs +1 -0
  192. package/dist/src/cache/CacheService.js +37 -0
  193. package/dist/src/chains/starknet/address.cjs +1 -0
  194. package/dist/src/chains/starknet/address.js +64 -0
  195. package/dist/src/chains/starknet/addressDomain.cjs +1 -0
  196. package/dist/src/chains/starknet/addressDomain.js +29 -0
  197. package/dist/src/chains/starknet/addressInput.cjs +1 -0
  198. package/dist/src/chains/starknet/addressInput.js +7 -0
  199. package/dist/src/chains/starknet/argentName.cjs +1 -0
  200. package/dist/src/chains/starknet/argentName.js +14 -0
  201. package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -0
  202. package/dist/src/chains/starknet/cairoVersionSchema.js +5 -0
  203. package/dist/src/chains/starknet/constants.cjs +1 -0
  204. package/dist/src/chains/starknet/constants.js +10 -0
  205. package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -0
  206. package/dist/src/chains/starknet/getAddressFromArgentName.js +48 -0
  207. package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -0
  208. package/dist/src/chains/starknet/getAddressFromStarkName.js +70 -0
  209. package/dist/src/chains/starknet/network.cjs +1 -0
  210. package/dist/src/chains/starknet/network.js +20 -0
  211. package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -0
  212. package/dist/src/chains/starknet/services/address/StarknetAddressService.js +38 -0
  213. package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -0
  214. package/dist/src/chains/starknet/services/deploymentData/constants.js +22 -0
  215. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -0
  216. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +19 -0
  217. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -0
  218. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +69 -0
  219. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -0
  220. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +59 -0
  221. package/dist/src/chains/starknet/starknetId.cjs +1 -0
  222. package/dist/src/chains/starknet/starknetId.js +14 -0
  223. package/dist/src/errors/account.cjs +1 -0
  224. package/dist/src/errors/account.js +14 -0
  225. package/dist/src/errors/address.cjs +1 -0
  226. package/dist/src/errors/address.js +14 -0
  227. package/dist/src/errors/baseErrors.cjs +1 -0
  228. package/dist/src/errors/baseErrors.js +15 -0
  229. package/dist/src/errors/call.cjs +1 -0
  230. package/dist/src/errors/call.js +14 -0
  231. package/dist/src/errors/network.cjs +1 -0
  232. package/dist/src/errors/network.js +14 -0
  233. package/dist/src/errors/review.cjs +1 -0
  234. package/dist/src/errors/review.js +14 -0
  235. package/dist/src/errors/swap.cjs +1 -0
  236. package/dist/src/errors/swap.js +14 -0
  237. package/dist/src/features/simulation/activity/normalize.cjs +1 -0
  238. package/dist/src/features/simulation/activity/normalize.js +40 -0
  239. package/dist/src/features/simulation/activity/schema.cjs +1 -0
  240. package/dist/src/features/simulation/activity/schema.js +236 -0
  241. package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -0
  242. package/dist/src/features/simulation/activity/utils/createNativeActivity.js +31 -0
  243. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -0
  244. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +24 -0
  245. package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -0
  246. package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +6 -0
  247. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -0
  248. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +10 -0
  249. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -0
  250. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +11 -0
  251. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -0
  252. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +26 -0
  253. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -0
  254. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +22 -0
  255. package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -0
  256. package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +13 -0
  257. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -0
  258. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +33 -0
  259. package/dist/src/features/simulation/fees/schema.cjs +1 -0
  260. package/dist/src/features/simulation/fees/schema.js +20 -0
  261. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -0
  262. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +18 -0
  263. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -0
  264. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +6 -0
  265. package/dist/src/features/simulation/transactionReview/schema.cjs +1 -0
  266. package/dist/src/features/simulation/transactionReview/schema.js +215 -0
  267. package/dist/src/features/simulation/warning/helper.cjs +1 -0
  268. package/dist/src/features/simulation/warning/helper.js +12 -0
  269. package/dist/src/features/simulation/warning/schema.cjs +1 -0
  270. package/dist/src/features/simulation/warning/schema.js +11 -0
  271. package/dist/src/features/swap/models/order.model.cjs +1 -0
  272. package/dist/src/features/swap/models/order.model.js +20 -0
  273. package/dist/src/features/swap/models/quote.model.cjs +1 -0
  274. package/dist/src/features/swap/models/quote.model.js +36 -0
  275. package/dist/src/features/swap/models/trade.model.cjs +1 -0
  276. package/dist/src/features/swap/models/trade.model.js +28 -0
  277. package/dist/src/features/swap/services/implementation.cjs +1 -0
  278. package/dist/src/features/swap/services/implementation.js +76 -0
  279. package/dist/src/features/swap/utils/slippage.cjs +1 -0
  280. package/dist/src/features/swap/utils/slippage.js +28 -0
  281. package/dist/src/features/swap/utils/totalFee.cjs +1 -0
  282. package/dist/src/features/swap/utils/totalFee.js +13 -0
  283. package/dist/src/http/DateService.cjs +1 -0
  284. package/dist/src/http/DateService.js +17 -0
  285. package/dist/src/http/HttpError.cjs +1 -0
  286. package/dist/src/http/HttpError.js +8 -0
  287. package/dist/src/http/HttpService.cjs +1 -0
  288. package/dist/src/http/HttpService.js +90 -0
  289. package/dist/src/http/IHttpService.cjs +1 -0
  290. package/dist/src/http/IHttpService.js +7 -0
  291. package/dist/src/http/SWRService.cjs +1 -0
  292. package/dist/src/http/SWRService.js +60 -0
  293. package/dist/src/http/fetcher.cjs +1 -0
  294. package/dist/src/http/fetcher.js +36 -0
  295. package/dist/{http → src/http}/index.d.ts +0 -1
  296. package/dist/src/http/time.cjs +1 -0
  297. package/dist/src/http/time.js +19 -0
  298. package/dist/src/index.d.ts +17 -0
  299. package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -0
  300. package/dist/src/knownDapps/KnownDappsBackendService.js +16 -0
  301. package/dist/src/knownDapps/schema.cjs +1 -0
  302. package/dist/src/knownDapps/schema.js +44 -0
  303. package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -0
  304. package/dist/src/knownDapps/utils/getDapplandUrl.js +12 -0
  305. package/dist/src/nameResolution/ResolveNameService.cjs +1 -0
  306. package/dist/src/nameResolution/ResolveNameService.js +42 -0
  307. package/dist/src/nameResolution/schema.cjs +1 -0
  308. package/dist/src/nameResolution/schema.js +25 -0
  309. package/dist/src/nfts/BackendNftService.cjs +1 -0
  310. package/dist/src/nfts/BackendNftService.js +119 -0
  311. package/dist/src/nfts/BackendPaginationError.cjs +1 -0
  312. package/dist/src/nfts/BackendPaginationError.js +13 -0
  313. package/dist/{nfts → src/nfts}/index.d.ts +0 -1
  314. package/dist/src/nfts/utils.cjs +1 -0
  315. package/dist/src/nfts/utils.js +14 -0
  316. package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -0
  317. package/dist/src/onchainRecovery/OnchainRecoveryService.js +69 -0
  318. package/dist/src/onchainRecovery/schema.cjs +1 -0
  319. package/dist/src/onchainRecovery/schema.js +49 -0
  320. package/dist/src/platform/isBraveBrowser.cjs +1 -0
  321. package/dist/src/platform/isBraveBrowser.js +11 -0
  322. package/dist/src/platform/isBrowser.cjs +1 -0
  323. package/dist/src/platform/isBrowser.js +28 -0
  324. package/dist/src/signer/multisigner.cjs +1 -0
  325. package/dist/src/signer/multisigner.js +19 -0
  326. package/dist/src/signer/seedphrase.cjs +1 -0
  327. package/dist/src/signer/seedphrase.js +7 -0
  328. package/dist/src/tokens/balances.cjs +1 -0
  329. package/dist/src/tokens/balances.js +38 -0
  330. package/dist/src/tokens/constants.cjs +1 -0
  331. package/dist/src/tokens/constants.js +4 -0
  332. package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -0
  333. package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +16 -0
  334. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -0
  335. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +11 -0
  336. package/dist/src/tokens/ensureDecimals.cjs +1 -0
  337. package/dist/src/tokens/ensureDecimals.js +5 -0
  338. package/dist/src/tokens/getCurrencySymbol.cjs +1 -0
  339. package/dist/src/tokens/getCurrencySymbol.js +15 -0
  340. package/dist/src/tokens/isUnlimitedAmount.cjs +1 -0
  341. package/dist/src/tokens/isUnlimitedAmount.js +5 -0
  342. package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -0
  343. package/dist/src/tokens/prettifyCurrencyValue.js +11 -0
  344. package/dist/src/tokens/prettifyTokenAmount.cjs +1 -0
  345. package/dist/src/tokens/prettifyTokenAmount.js +23 -0
  346. package/dist/src/tokens/service/implementation.cjs +1 -0
  347. package/dist/{tokens → src/tokens}/service/implementation.d.ts +21 -2
  348. package/dist/src/tokens/service/implementation.js +64 -0
  349. package/dist/src/tokens/service/tokenError.cjs +1 -0
  350. package/dist/src/tokens/service/tokenError.js +14 -0
  351. package/dist/src/tokens/service/types/backend.model.cjs +1 -0
  352. package/dist/{tokens → src/tokens}/service/types/backend.model.d.ts +818 -73
  353. package/dist/src/tokens/service/types/backend.model.js +134 -0
  354. package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -0
  355. package/dist/{tokens → src/tokens}/service/types/defiPosition.model.d.ts +1024 -64
  356. package/dist/src/tokens/service/types/defiPosition.model.js +75 -0
  357. package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -0
  358. package/dist/{tokens → src/tokens}/service/types/defiPositionType.model.d.ts +1 -1
  359. package/dist/src/tokens/service/types/defiPositionType.model.js +10 -0
  360. package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -0
  361. package/dist/src/tokens/service/types/unclaimedRewards.model.js +16 -0
  362. package/dist/src/tokens/service/types/webToken.model.cjs +1 -0
  363. package/dist/src/tokens/service/types/webToken.model.js +45 -0
  364. package/dist/src/transactions/amount.cjs +1 -0
  365. package/dist/src/transactions/amount.js +24 -0
  366. package/dist/src/transactions/buildTransactions.cjs +1 -0
  367. package/dist/src/transactions/buildTransactions.js +34 -0
  368. package/dist/src/transactions/errors.cjs +1 -0
  369. package/dist/src/transactions/errors.js +19 -0
  370. package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -0
  371. package/dist/src/transactions/estimate/argentMaxFee.js +13 -0
  372. package/dist/src/transactions/estimate/error.cjs +1 -0
  373. package/dist/src/transactions/estimate/error.js +14 -0
  374. package/dist/src/transactions/estimate/model.cjs +1 -0
  375. package/dist/src/transactions/estimate/model.js +14 -0
  376. package/dist/src/transactions/estimate/utils.cjs +1 -0
  377. package/dist/src/transactions/estimate/utils.js +232 -0
  378. package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -0
  379. package/dist/src/transactions/findTransfersAndApprovals.js +31 -0
  380. package/dist/src/transactions/getPrettyRcpError.cjs +1 -0
  381. package/dist/src/transactions/getPrettyRcpError.js +11 -0
  382. package/dist/src/transactions/getTransactionVersion.cjs +1 -0
  383. package/dist/src/transactions/getTransactionVersion.js +18 -0
  384. package/dist/{transactions → src/transactions}/index.d.ts +0 -6
  385. package/dist/src/transactions/service/implementation.cjs +1 -0
  386. package/dist/src/transactions/service/implementation.js +182 -0
  387. package/dist/src/transactions/service/types.cjs +1 -0
  388. package/dist/src/transactions/service/types.js +10 -0
  389. package/dist/src/transactions/transactionReviewTypes.cjs +1 -0
  390. package/dist/src/transactions/transactionReviewTypes.js +10 -0
  391. package/dist/src/transactions/transactionVersion.cjs +1 -0
  392. package/dist/src/transactions/transactionVersion.js +14 -0
  393. package/dist/src/transactions/txv3.cjs +1 -0
  394. package/dist/src/transactions/txv3.js +14 -0
  395. package/dist/src/utils/address.cjs +1 -0
  396. package/dist/src/utils/address.js +4 -0
  397. package/dist/src/utils/arrays.cjs +1 -0
  398. package/dist/src/utils/arrays.js +4 -0
  399. package/dist/src/utils/avatarImage.cjs +4 -0
  400. package/dist/src/utils/avatarImage.js +42 -0
  401. package/dist/src/utils/base58.cjs +1 -0
  402. package/dist/src/utils/base58.js +15 -0
  403. package/dist/src/utils/bigNumber.cjs +1 -0
  404. package/dist/src/utils/bigNumber.js +7 -0
  405. package/dist/src/utils/bips.cjs +1 -0
  406. package/dist/src/utils/bips.js +11 -0
  407. package/dist/src/utils/daysBetween.cjs +1 -0
  408. package/dist/src/utils/daysBetween.js +7 -0
  409. package/dist/src/utils/env.cjs +1 -0
  410. package/dist/src/utils/env.js +4 -0
  411. package/dist/src/utils/hex.cjs +1 -0
  412. package/dist/src/utils/hex.js +9 -0
  413. package/dist/src/utils/id.cjs +1 -0
  414. package/dist/src/utils/id.js +8 -0
  415. package/dist/{utils → src/utils}/index.d.ts +0 -1
  416. package/dist/src/utils/initials.cjs +1 -0
  417. package/dist/src/utils/initials.js +16 -0
  418. package/dist/src/utils/isContractDeployed.cjs +1 -0
  419. package/dist/src/utils/isContractDeployed.js +10 -0
  420. package/dist/src/utils/nonNullable.cjs +1 -0
  421. package/dist/src/utils/nonNullable.js +7 -0
  422. package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -0
  423. package/dist/src/utils/number/isAllowedAddressHexInputValue.js +7 -0
  424. package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -0
  425. package/dist/src/utils/number/isAllowedNumericInputValue.js +8 -0
  426. package/dist/src/utils/number/isNumeric.cjs +1 -0
  427. package/dist/src/utils/number/isNumeric.js +4 -0
  428. package/dist/src/utils/number/prettifyNumber.cjs +1 -0
  429. package/dist/src/utils/number/prettifyNumber.js +47 -0
  430. package/dist/src/utils/parseAmount.cjs +1 -0
  431. package/dist/src/utils/parseAmount.js +14 -0
  432. package/dist/src/utils/pluralise.cjs +1 -0
  433. package/dist/src/utils/pluralise.js +4 -0
  434. package/dist/src/utils/readFileAsString.cjs +1 -0
  435. package/dist/src/utils/readFileAsString.js +10 -0
  436. package/dist/src/utils/schemas.cjs +1 -0
  437. package/dist/src/utils/schemas.js +29 -0
  438. package/dist/src/utils/starknet/starknet.cjs +1 -0
  439. package/dist/src/utils/starknet/starknet.js +57 -0
  440. package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -0
  441. package/dist/src/utils/starknet/starknetLibTypes.js +7 -0
  442. package/dist/src/utils/starknet/starknetSchemas.cjs +1 -0
  443. package/dist/src/utils/starknet/starknetSchemas.js +102 -0
  444. package/dist/src/utils/transactions.cjs +1 -0
  445. package/dist/src/utils/transactions.js +11 -0
  446. package/dist/src/utils/url/urlWithQuery.cjs +1 -0
  447. package/dist/src/utils/url/urlWithQuery.js +9 -0
  448. package/dist/src/utils/voidify.cjs +1 -0
  449. package/dist/src/utils/voidify.js +8 -0
  450. package/dist/swap.cjs +1 -0
  451. package/dist/swap.d.ts +1 -1
  452. package/dist/swap.js +20 -1
  453. package/package.json +14 -28
  454. package/dist/bips-DKbEGvGl.mjs +0 -114
  455. package/dist/bips-DxN0hSiY.js +0 -1
  456. package/dist/hooks/index.d.ts +0 -2
  457. package/dist/hooks/useDebounce.d.ts +0 -1
  458. package/dist/hooks/useDebouncedValue.d.ts +0 -1
  459. package/dist/http/swr.d.ts +0 -21
  460. package/dist/index.mjs +0 -4466
  461. package/dist/nfts/useNfts.d.ts +0 -23
  462. package/dist/providers/WebAmplitude/WebAmplitudeProvider.d.ts +0 -7
  463. package/dist/providers/WebAmplitude/index.d.ts +0 -2
  464. package/dist/providers/WebAmplitude/service.d.ts +0 -7
  465. package/dist/providers/WebAmplitude/types.d.ts +0 -6
  466. package/dist/providers/WebAmplitude/utils.d.ts +0 -2
  467. package/dist/providers/index.d.ts +0 -1
  468. package/dist/simulation.mjs +0 -255
  469. package/dist/swap.mjs +0 -183
  470. package/dist/transactionVersion-C7p_qk9x.js +0 -1
  471. package/dist/transactionVersion-Cjoucwcx.mjs +0 -793
  472. package/dist/transactions/useBalanceChange.d.ts +0 -5
  473. package/dist/transactions/useErc20Transactions.d.ts +0 -6
  474. package/dist/transactions/useErc721Transactions.d.ts +0 -5
  475. package/dist/transactions/useErc721Transfers.d.ts +0 -5
  476. package/dist/transactions/useMaxAmountTransaction.d.ts +0 -7
  477. package/dist/transactions/useTransactionReview.d.ts +0 -15
  478. package/dist/transactions/useTransactionReviewV2web.d.ts +0 -1004
  479. package/dist/utils/useEventEmitter.d.ts +0 -67
  480. package/dist/webToken.model-5HUiR8ER.js +0 -1
  481. package/dist/webToken.model-CpudLBp0.mjs +0 -1913
  482. package/dist/{account → src/account}/account.model.d.ts +0 -0
  483. package/dist/{account → src/account}/accountv4.d.ts +0 -0
  484. package/dist/{account → src/account}/index.d.ts +0 -0
  485. package/dist/{account → src/account}/preferences.model.d.ts +0 -0
  486. package/dist/{backend → src/backend}/index.d.ts +0 -0
  487. package/dist/{backend → src/backend}/schema.d.ts +0 -0
  488. package/dist/{backend → src/backend}/types.d.ts +0 -0
  489. package/dist/{bigdecimal → src/bigdecimal}/constants.d.ts +0 -0
  490. package/dist/{bigdecimal → src/bigdecimal}/createUnitsSchema.d.ts +0 -0
  491. package/dist/{bigdecimal → src/bigdecimal}/formatUnits.d.ts +0 -0
  492. package/dist/{bigdecimal → src/bigdecimal}/index.d.ts +0 -0
  493. package/dist/{bigdecimal → src/bigdecimal}/lib.d.ts +0 -0
  494. package/dist/{bigdecimal → src/bigdecimal}/parseUnits.d.ts +0 -0
  495. package/dist/{bigdecimal → src/bigdecimal}/type.d.ts +0 -0
  496. package/dist/{bigdecimal → src/bigdecimal}/types.d.ts +0 -0
  497. package/dist/{bigdecimal → src/bigdecimal}/utils.d.ts +0 -0
  498. package/dist/{cache → src/cache}/CacheService.d.ts +0 -0
  499. package/dist/{cache → src/cache}/ICacheService.d.ts +0 -0
  500. package/dist/{cache → src/cache}/index.d.ts +0 -0
  501. package/dist/{chains → src/chains}/index.d.ts +0 -0
  502. package/dist/{chains → src/chains}/starknet/address.d.ts +0 -0
  503. package/dist/{chains → src/chains}/starknet/addressDomain.d.ts +0 -0
  504. package/dist/{chains → src/chains}/starknet/addressInput.d.ts +0 -0
  505. package/dist/{chains → src/chains}/starknet/argentName.d.ts +0 -0
  506. package/dist/{chains → src/chains}/starknet/cairoVersionSchema.d.ts +0 -0
  507. package/dist/{chains → src/chains}/starknet/constants.d.ts +0 -0
  508. package/dist/{chains → src/chains}/starknet/getAddressFromArgentName.d.ts +0 -0
  509. package/dist/{chains → src/chains}/starknet/getAddressFromStarkName.d.ts +0 -0
  510. package/dist/{chains → src/chains}/starknet/index.d.ts +0 -0
  511. package/dist/{chains → src/chains}/starknet/network.d.ts +0 -0
  512. package/dist/{chains → src/chains}/starknet/services/address/IStarknetAddressService.d.ts +0 -0
  513. package/dist/{chains → src/chains}/starknet/services/address/StarknetAddressService.d.ts +0 -0
  514. package/dist/{chains → src/chains}/starknet/services/address/index.d.ts +0 -0
  515. package/dist/{chains → src/chains}/starknet/services/deploymentData/constants.d.ts +0 -0
  516. package/dist/{chains → src/chains}/starknet/services/deploymentData/deploymentData.schema.d.ts +0 -0
  517. package/dist/{chains → src/chains}/starknet/services/deploymentData/findImplementationForAccount.d.ts +0 -0
  518. package/dist/{chains → src/chains}/starknet/services/deploymentData/getAccountClassHash.d.ts +0 -0
  519. package/dist/{chains → src/chains}/starknet/services/deploymentData/index.d.ts +0 -0
  520. package/dist/{chains → src/chains}/starknet/services/index.d.ts +0 -0
  521. package/dist/{chains → src/chains}/starknet/starknetId.d.ts +0 -0
  522. package/dist/{errors → src/errors}/account.d.ts +0 -0
  523. package/dist/{errors → src/errors}/address.d.ts +0 -0
  524. package/dist/{errors → src/errors}/baseErrors.d.ts +0 -0
  525. package/dist/{errors → src/errors}/call.d.ts +0 -0
  526. package/dist/{errors → src/errors}/network.d.ts +0 -0
  527. package/dist/{errors → src/errors}/review.d.ts +0 -0
  528. package/dist/{errors → src/errors}/swap.d.ts +0 -0
  529. package/dist/{features → src/features}/simulation/activity/index.d.ts +0 -0
  530. package/dist/{features → src/features}/simulation/activity/normalize.d.ts +0 -0
  531. package/dist/{features → src/features}/simulation/activity/schema.d.ts +200 -200
  532. package/dist/{features → src/features}/simulation/activity/utils/createNativeActivity.d.ts +6 -6
  533. package/dist/{features → src/features}/simulation/activity/utils/getAnyActivityTitle.d.ts +0 -0
  534. package/dist/{features → src/features}/simulation/activity/utils/getOverallLastModified.d.ts +0 -0
  535. package/dist/{features → src/features}/simulation/activity/utils/hasDelegationActivity.d.ts +0 -0
  536. package/dist/{features → src/features}/simulation/activity/utils/index.d.ts +0 -0
  537. package/dist/{features → src/features}/simulation/activity/utils/isMulticallWithDeploymentActivity.d.ts +0 -0
  538. package/dist/{features → src/features}/simulation/activity/utils/isRejectOnChainActivity.d.ts +0 -0
  539. package/dist/{features → src/features}/simulation/activity/utils/isUpgradeActivity.d.ts +0 -0
  540. package/dist/{features → src/features}/simulation/activity/utils/parseAccountActivities.d.ts +0 -0
  541. package/dist/{features → src/features}/simulation/activity/utils/parseFinanceActivities.d.ts +0 -0
  542. package/dist/{features → src/features}/simulation/fees/index.d.ts +0 -0
  543. package/dist/{features → src/features}/simulation/fees/schema.d.ts +0 -0
  544. package/dist/{features → src/features}/simulation/index.d.ts +0 -0
  545. package/dist/{features → src/features}/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.d.ts +0 -0
  546. package/dist/{features → src/features}/simulation/transactionReview/getMessageFromSimulationError.d.ts +0 -0
  547. package/dist/{features → src/features}/simulation/transactionReview/index.d.ts +0 -0
  548. package/dist/{features → src/features}/simulation/transactionReview/schema.d.ts +1324 -1324
  549. package/dist/{features → src/features}/simulation/warning/helper.d.ts +0 -0
  550. package/dist/{features → src/features}/simulation/warning/index.d.ts +0 -0
  551. package/dist/{features → src/features}/simulation/warning/schema.d.ts +0 -0
  552. package/dist/{features → src/features}/swap/index.d.ts +0 -0
  553. package/dist/{features → src/features}/swap/models/index.d.ts +0 -0
  554. package/dist/{features → src/features}/swap/models/order.model.d.ts +0 -0
  555. package/dist/{features → src/features}/swap/models/quote.model.d.ts +0 -0
  556. package/dist/{features → src/features}/swap/models/trade.model.d.ts +0 -0
  557. package/dist/{features → src/features}/swap/services/implementation.d.ts +0 -0
  558. package/dist/{features → src/features}/swap/services/index.d.ts +0 -0
  559. package/dist/{features → src/features}/swap/services/interface.d.ts +0 -0
  560. package/dist/{features → src/features}/swap/services/order.mock.d.ts +0 -0
  561. package/dist/{features → src/features}/swap/services/quote.mock.d.ts +0 -0
  562. package/dist/{features → src/features}/swap/tests/token.mock.d.ts +0 -0
  563. package/dist/{features → src/features}/swap/tests/trade.mock.d.ts +0 -0
  564. package/dist/{features → src/features}/swap/tests/walletAccount.mock.d.ts +0 -0
  565. package/dist/{features → src/features}/swap/utils/index.d.ts +0 -0
  566. package/dist/{features → src/features}/swap/utils/slippage.d.ts +0 -0
  567. package/dist/{features → src/features}/swap/utils/totalFee.d.ts +0 -0
  568. package/dist/{http → src/http}/DateService.d.ts +0 -0
  569. package/dist/{http → src/http}/HttpError.d.ts +0 -0
  570. package/dist/{http → src/http}/HttpService.d.ts +0 -0
  571. package/dist/{http → src/http}/IDateService.d.ts +0 -0
  572. package/dist/{http → src/http}/IHttpService.d.ts +0 -0
  573. package/dist/{http → src/http}/SWRService.d.ts +0 -0
  574. package/dist/{http → src/http}/apiData.d.ts +0 -0
  575. package/dist/{http → src/http}/fetcher.d.ts +0 -0
  576. package/dist/{http → src/http}/time.d.ts +0 -0
  577. package/dist/{knownDapps → src/knownDapps}/IKnownDappsBackendService.d.ts +0 -0
  578. package/dist/{knownDapps → src/knownDapps}/KnownDappsBackendService.d.ts +0 -0
  579. package/dist/{knownDapps → src/knownDapps}/index.d.ts +0 -0
  580. package/dist/{knownDapps → src/knownDapps}/schema.d.ts +0 -0
  581. package/dist/{knownDapps → src/knownDapps}/utils/getDapplandUrl.d.ts +0 -0
  582. package/dist/{knownDapps → src/knownDapps}/utils/index.d.ts +0 -0
  583. package/dist/{nameResolution → src/nameResolution}/IResolveNameService.d.ts +0 -0
  584. package/dist/{nameResolution → src/nameResolution}/ResolveNameService.d.ts +0 -0
  585. package/dist/{nameResolution → src/nameResolution}/index.d.ts +0 -0
  586. package/dist/{nameResolution → src/nameResolution}/schema.d.ts +0 -0
  587. package/dist/{nfts → src/nfts}/BackendNftService.d.ts +0 -0
  588. package/dist/{nfts → src/nfts}/BackendPaginationError.d.ts +0 -0
  589. package/dist/{nfts → src/nfts}/INFTService.d.ts +0 -0
  590. package/dist/{nfts → src/nfts}/utils.d.ts +0 -0
  591. package/dist/{onchainRecovery → src/onchainRecovery}/IOnchainRecoveryService.d.ts +0 -0
  592. package/dist/{onchainRecovery → src/onchainRecovery}/OnchainRecoveryService.d.ts +0 -0
  593. package/dist/{onchainRecovery → src/onchainRecovery}/index.d.ts +0 -0
  594. package/dist/{onchainRecovery → src/onchainRecovery}/schema.d.ts +0 -0
  595. package/dist/{platform → src/platform}/index.d.ts +0 -0
  596. package/dist/{platform → src/platform}/isBraveBrowser.d.ts +0 -0
  597. package/dist/{platform → src/platform}/isBrowser.d.ts +0 -0
  598. package/dist/{signer → src/signer}/index.d.ts +0 -0
  599. package/dist/{signer → src/signer}/multisigner.d.ts +0 -0
  600. package/dist/{signer → src/signer}/seedphrase.d.ts +0 -0
  601. package/dist/{tokens → src/tokens}/balances.d.ts +0 -0
  602. package/dist/{tokens → src/tokens}/constants.d.ts +0 -0
  603. package/dist/{tokens → src/tokens}/convertTokenAmountToCurrencyValue.d.ts +0 -0
  604. package/dist/{tokens → src/tokens}/convertTokenUnitAmountWithDecimals.d.ts +0 -0
  605. package/dist/{tokens → src/tokens}/ensureDecimals.d.ts +0 -0
  606. package/dist/{tokens → src/tokens}/getCurrencySymbol.d.ts +0 -0
  607. package/dist/{tokens → src/tokens}/index.d.ts +0 -0
  608. package/dist/{tokens → src/tokens}/isUnlimitedAmount.d.ts +0 -0
  609. package/dist/{tokens → src/tokens}/prettifyCurrencyValue.d.ts +0 -0
  610. package/dist/{tokens → src/tokens}/prettifyTokenAmount.d.ts +0 -0
  611. package/dist/{tokens → src/tokens}/service/index.d.ts +0 -0
  612. package/dist/{tokens → src/tokens}/service/interface.d.ts +0 -0
  613. package/dist/{tokens → src/tokens}/service/tokenError.d.ts +0 -0
  614. package/dist/{tokens → src/tokens}/service/types/index.d.ts +0 -0
  615. package/dist/{tokens → src/tokens}/service/types/unclaimedRewards.model.d.ts +0 -0
  616. package/dist/{tokens → src/tokens}/service/types/webToken.model.d.ts +0 -0
  617. package/dist/{tokens → src/tokens}/token.d.ts +0 -0
  618. package/dist/{transactions → src/transactions}/aggregatedSimDataTypes.d.ts +0 -0
  619. package/dist/{transactions → src/transactions}/amount.d.ts +0 -0
  620. package/dist/{transactions → src/transactions}/buildTransactions.d.ts +0 -0
  621. package/dist/{transactions → src/transactions}/deployAccountTypes.d.ts +0 -0
  622. package/dist/{transactions → src/transactions}/errors.d.ts +0 -0
  623. package/dist/{transactions → src/transactions}/estimate/argentMaxFee.d.ts +0 -0
  624. package/dist/{transactions → src/transactions}/estimate/error.d.ts +0 -0
  625. package/dist/{transactions → src/transactions}/estimate/index.d.ts +0 -0
  626. package/dist/{transactions → src/transactions}/estimate/model.d.ts +0 -0
  627. package/dist/{transactions → src/transactions}/estimate/utils.d.ts +0 -0
  628. package/dist/{transactions → src/transactions}/findTransfersAndApprovals.d.ts +0 -0
  629. package/dist/{transactions → src/transactions}/getPrettyRcpError.d.ts +0 -0
  630. package/dist/{transactions → src/transactions}/getTransactionVersion.d.ts +0 -0
  631. package/dist/{transactions → src/transactions}/service/implementation.d.ts +0 -0
  632. package/dist/{transactions → src/transactions}/service/index.d.ts +0 -0
  633. package/dist/{transactions → src/transactions}/service/interface.d.ts +0 -0
  634. package/dist/{transactions → src/transactions}/service/types.d.ts +2 -2
  635. /package/dist/{transactions → src/transactions}/transactionAction.d.ts +0 -0
  636. /package/dist/{transactions → src/transactions}/transactionReviewTypes.d.ts +0 -0
  637. /package/dist/{transactions → src/transactions}/transactionSimulationTypes.d.ts +0 -0
  638. /package/dist/{transactions → src/transactions}/transactionVersion.d.ts +0 -0
  639. /package/dist/{transactions → src/transactions}/txv3.d.ts +0 -0
  640. /package/dist/{transactions → src/transactions}/types.d.ts +0 -0
  641. /package/dist/{utils → src/utils}/address.d.ts +0 -0
  642. /package/dist/{utils → src/utils}/arrays.d.ts +0 -0
  643. /package/dist/{utils → src/utils}/avatarImage.d.ts +0 -0
  644. /package/dist/{utils → src/utils}/base58.d.ts +0 -0
  645. /package/dist/{utils → src/utils}/bigNumber.d.ts +0 -0
  646. /package/dist/{utils → src/utils}/bips.d.ts +0 -0
  647. /package/dist/{utils → src/utils}/daysBetween.d.ts +0 -0
  648. /package/dist/{utils → src/utils}/env.d.ts +0 -0
  649. /package/dist/{utils → src/utils}/hex.d.ts +0 -0
  650. /package/dist/{utils → src/utils}/id.d.ts +0 -0
  651. /package/dist/{utils → src/utils}/initials.d.ts +0 -0
  652. /package/dist/{utils → src/utils}/isContractDeployed.d.ts +0 -0
  653. /package/dist/{utils → src/utils}/nonNullable.d.ts +0 -0
  654. /package/dist/{utils → src/utils}/number/index.d.ts +0 -0
  655. /package/dist/{utils → src/utils}/number/isAllowedAddressHexInputValue.d.ts +0 -0
  656. /package/dist/{utils → src/utils}/number/isAllowedNumericInputValue.d.ts +0 -0
  657. /package/dist/{utils → src/utils}/number/isNumeric.d.ts +0 -0
  658. /package/dist/{utils → src/utils}/number/prettifyNumber.d.ts +0 -0
  659. /package/dist/{utils → src/utils}/parseAmount.d.ts +0 -0
  660. /package/dist/{utils → src/utils}/pluralise.d.ts +0 -0
  661. /package/dist/{utils → src/utils}/readFileAsString.d.ts +0 -0
  662. /package/dist/{utils → src/utils}/schemas.d.ts +0 -0
  663. /package/dist/{utils → src/utils}/starknet/starknet.d.ts +0 -0
  664. /package/dist/{utils → src/utils}/starknet/starknetLibTypes.d.ts +0 -0
  665. /package/dist/{utils → src/utils}/starknet/starknetSchemas.d.ts +0 -0
  666. /package/dist/{utils → src/utils}/transactions.d.ts +0 -0
  667. /package/dist/{utils → src/utils}/url/index.d.ts +0 -0
  668. /package/dist/{utils → src/utils}/url/urlWithQuery.d.ts +0 -0
  669. /package/dist/{utils → src/utils}/voidify.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t="__lodash_hash_undefined__";function _(e){return this.__data__.set(e,t),this}exports.default=_;
@@ -0,0 +1,7 @@
1
+ var t = "__lodash_hash_undefined__";
2
+ function a(_) {
3
+ return this.__data__.set(_, t), this;
4
+ }
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e){return this.__data__.has(e)}exports.default=t;
@@ -0,0 +1,6 @@
1
+ function t(a) {
2
+ return this.__data__.has(a);
3
+ }
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(e){var t=-1,r=Array(e.size);return e.forEach(function(u){r[++t]=u}),r}exports.default=o;
@@ -0,0 +1,9 @@
1
+ function t(r) {
2
+ var e = -1, a = Array(r.size);
3
+ return r.forEach(function(n) {
4
+ a[++e] = n;
5
+ }), a;
6
+ }
7
+ export {
8
+ t as default
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function l(t,n,u){for(var e=u-1,i=t.length;++e<i;)if(t[e]===n)return e;return-1}exports.default=l;
@@ -0,0 +1,9 @@
1
+ function f(t, n, i) {
2
+ for (var e = i - 1, r = t.length; ++e < r; )
3
+ if (t[e] === n)
4
+ return e;
5
+ return -1;
6
+ }
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=Function.prototype,o=r.toString;function u(t){if(t!=null){try{return o.call(t)}catch{}try{return t+""}catch{}}return""}exports.default=u;
@@ -0,0 +1,17 @@
1
+ var o = Function.prototype, n = o.toString;
2
+ function e(t) {
3
+ if (t != null) {
4
+ try {
5
+ return n.call(t);
6
+ } catch {
7
+ }
8
+ try {
9
+ return t + "";
10
+ } catch {
11
+ }
12
+ }
13
+ return "";
14
+ }
15
+ export {
16
+ e as default
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(e,t){return e===t||e!==e&&t!==t}exports.default=u;
@@ -0,0 +1,6 @@
1
+ function t(n, f) {
2
+ return n === f || n !== n && f !== f;
3
+ }
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./_baseGetTag.cjs"),o=require("./isObject.cjs");var r="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function i(t){if(!o.default(t))return!1;var e=n.default(t);return e==u||e==a||e==r||e==c}exports.default=i;
@@ -0,0 +1,12 @@
1
+ import o from "./_baseGetTag.js";
2
+ import r from "./isObject.js";
3
+ var e = "[object AsyncFunction]", a = "[object Function]", c = "[object GeneratorFunction]", i = "[object Proxy]";
4
+ function g(n) {
5
+ if (!r(n))
6
+ return !1;
7
+ var t = o(n);
8
+ return t == a || t == c || t == e || t == i;
9
+ }
10
+ export {
11
+ g as default
12
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}exports.default=u;
@@ -0,0 +1,7 @@
1
+ function n(t) {
2
+ var e = typeof t;
3
+ return t != null && (e == "object" || e == "function");
4
+ }
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){}exports.default=e;
@@ -0,0 +1,5 @@
1
+ function o() {
2
+ }
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./_baseUniq.cjs");function t(n,e){return e=typeof e=="function"?e:void 0,n&&n.length?u.default(n,void 0,e):[]}exports.default=t;
@@ -0,0 +1,7 @@
1
+ import i from "./_baseUniq.js";
2
+ function u(e, n) {
3
+ return n = typeof n == "function" ? n : void 0, e && e.length ? i(e, void 0, n) : [];
4
+ }
5
+ export {
6
+ u as default
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs"),E=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs"),h=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs"),c=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs"),N=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs"),R=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs"),i=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs"),F=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs"),p=BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"),w=252;function g(e){for(;e[0]===0;)e=e.subarray(1);const n=e.length*8-w,t=i.bytesToNumberBE(e);return n>0?t>>BigInt(n):t}function m(e){return typeof e=="string"&&(e=$(e),e.length&1&&(e="0"+e)),i.hexToBytes(e)}const b=R.weierstrass({a:BigInt(1),b:BigInt("3141592653589793238462643383279502884197169399375105820974944592307816406665"),Fp:c.Field(BigInt("0x800000000000011000000000000000000000000000000000000000000000001")),n:p,nBitLength:w,Gx:BigInt("874739451078007766457464989774322083649278607533249481151382481072868806602"),Gy:BigInt("152666792071518830868575557812948353041420400780739481342941381225525861407"),h:BigInt(1),lowS:!1,...F.getHash(E.sha256),bits2int:g,bits2int_modN:e=>{const n=i.bytesToNumberBE(e).toString(16);return n.length===63&&(e=m(n+"0")),c.mod(g(e),p)}});function T(e){return i.ensureBytes("",typeof e=="string"?m(e):e)}const{CURVE:v,ProjectivePoint:u,Signature:_,utils:q}=b;function x(e){return`0x${i.bytesToHex(e.subarray(1)).replace(/^0+/gm,"")}`}function $(e){return e.replace(/^0x/i,"")}const a=[new u(2089986280348253421170679821480865132823066470938446095505822317253594081284n,1713931329540660377023406109199410414810705867260802078187082345529207694986n,1n),new u(996781205833008774514500082376783249102396023663454813447423147977397232763n,1668503676786377725805489344771023921079126552019160156920634619255970485781n,1n),new u(2251563274489750535117886426533222435294046428347329203627021249169616184184n,1798716007562728905295480679789526322175868328062420237419143593021674992973n,1n),new u(2138414695194151160943305727036575959195309218611738193261179310511854807447n,113410276730064486255102093846540133784865286929052426931474106396135072156n,1n),new u(2379962749567351885752724891227938183011949129833673362440656643086021394946n,776496453633298175483985398648758586525933812536653089401905292063708816422n,1n)];function y(e,n){const t=[];let r=e;for(let o=0;o<248;o++)t.push(r),r=r.double();r=n;for(let o=0;o<4;o++)t.push(r),r=r.double();return t}const k=y(a[1],a[2]),C=y(a[3],a[4]);function D(e){let n;if(typeof e=="bigint")n=e;else if(typeof e=="number"){if(!Number.isSafeInteger(e))throw new Error(`Invalid pedersenArg: ${e}`);n=BigInt(e)}else n=i.bytesToNumberBE(T(e));if(!(0n<=n&&n<b.CURVE.Fp.ORDER))throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${n}`);return n}function B(e,n,t){let r=D(n);for(let o=0;o<252;o++){const s=t[o];if(s.equals(e))throw new Error("Same point");(r&1n)!==0n&&(e=e.add(s)),r>>=1n}return e}function O(e,n){let t=a[0];return t=B(t,e,k),t=B(t,n,C),x(t.toRawBytes(!0))}const j=i.bitMask(250),A=e=>i.bytesToNumberBE(P.keccak_256(e))&j;c.Field(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));const I=c.Field(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));function M(e,n,t){const r=e.fromBytes(E.sha256(h.utf8ToBytes(`${n}${t}`)));return e.create(r)}const U=[[3,1,1],[1,-1,1],[1,1,-2]].map(e=>e.map(BigInt));function S(e,n){if(c.validateField(e.Fp),!Number.isSafeInteger(e.rate)||!Number.isSafeInteger(e.capacity))throw new Error(`Wrong poseidon opts: ${e}`);const t=e.rate+e.capacity,r=e.roundsFull+e.roundsPartial,o=[];for(let l=0;l<r;l++){const f=[];for(let d=0;d<t;d++)f.push(M(e.Fp,"Hades",t*l+d));o.push(f)}const s=N.poseidon({...e,t,sboxPower:3,reversePartialPowIdx:!0,mds:n,roundConstants:o});return s.m=t,s.rate=e.rate,s.capacity=e.capacity,s}S({Fp:I,rate:2,capacity:1,roundsFull:8,roundsPartial:83},U);exports.CURVE=v;exports.Fp251=I;exports.ProjectivePoint=u;exports.Signature=_;exports.keccak=A;exports.pedersen=O;exports.poseidonBasic=S;exports.utils=q;
@@ -0,0 +1,134 @@
1
+ import { keccak_256 as y } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js";
2
+ import { sha256 as B } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js";
3
+ import { utf8ToBytes as P } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js";
4
+ import { Field as l, mod as h, validateField as R } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js";
5
+ import { poseidon as b } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js";
6
+ import { weierstrass as N } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js";
7
+ import { bytesToNumberBE as c, bitMask as x, hexToBytes as F, bytesToHex as v, ensureBytes as T } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js";
8
+ import { getHash as _ } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js";
9
+ const d = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"), w = 252;
10
+ function m(n) {
11
+ for (; n[0] === 0; )
12
+ n = n.subarray(1);
13
+ const t = n.length * 8 - w, e = c(n);
14
+ return t > 0 ? e >> BigInt(t) : e;
15
+ }
16
+ function E(n) {
17
+ return typeof n == "string" && (n = D(n), n.length & 1 && (n = "0" + n)), F(n);
18
+ }
19
+ const I = N({
20
+ a: BigInt(1),
21
+ b: BigInt("3141592653589793238462643383279502884197169399375105820974944592307816406665"),
22
+ Fp: l(BigInt("0x800000000000011000000000000000000000000000000000000000000000001")),
23
+ n: d,
24
+ nBitLength: w,
25
+ Gx: BigInt("874739451078007766457464989774322083649278607533249481151382481072868806602"),
26
+ Gy: BigInt("152666792071518830868575557812948353041420400780739481342941381225525861407"),
27
+ h: BigInt(1),
28
+ lowS: !1,
29
+ ..._(B),
30
+ bits2int: m,
31
+ bits2int_modN: (n) => {
32
+ const t = c(n).toString(16);
33
+ return t.length === 63 && (n = E(t + "0")), h(m(n), d);
34
+ }
35
+ });
36
+ function $(n) {
37
+ return T("", typeof n == "string" ? E(n) : n);
38
+ }
39
+ const { CURVE: Q, ProjectivePoint: s, Signature: Y, utils: Z } = I;
40
+ function C(n) {
41
+ return `0x${v(n.subarray(1)).replace(/^0+/gm, "")}`;
42
+ }
43
+ function D(n) {
44
+ return n.replace(/^0x/i, "");
45
+ }
46
+ const u = [
47
+ new s(2089986280348253421170679821480865132823066470938446095505822317253594081284n, 1713931329540660377023406109199410414810705867260802078187082345529207694986n, 1n),
48
+ new s(996781205833008774514500082376783249102396023663454813447423147977397232763n, 1668503676786377725805489344771023921079126552019160156920634619255970485781n, 1n),
49
+ new s(2251563274489750535117886426533222435294046428347329203627021249169616184184n, 1798716007562728905295480679789526322175868328062420237419143593021674992973n, 1n),
50
+ new s(2138414695194151160943305727036575959195309218611738193261179310511854807447n, 113410276730064486255102093846540133784865286929052426931474106396135072156n, 1n),
51
+ new s(2379962749567351885752724891227938183011949129833673362440656643086021394946n, 776496453633298175483985398648758586525933812536653089401905292063708816422n, 1n)
52
+ ];
53
+ function S(n, t) {
54
+ const e = [];
55
+ let r = n;
56
+ for (let o = 0; o < 248; o++)
57
+ e.push(r), r = r.double();
58
+ r = t;
59
+ for (let o = 0; o < 4; o++)
60
+ e.push(r), r = r.double();
61
+ return e;
62
+ }
63
+ const k = S(u[1], u[2]), A = S(u[3], u[4]);
64
+ function O(n) {
65
+ let t;
66
+ if (typeof n == "bigint")
67
+ t = n;
68
+ else if (typeof n == "number") {
69
+ if (!Number.isSafeInteger(n))
70
+ throw new Error(`Invalid pedersenArg: ${n}`);
71
+ t = BigInt(n);
72
+ } else
73
+ t = c($(n));
74
+ if (!(0n <= t && t < I.CURVE.Fp.ORDER))
75
+ throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${t}`);
76
+ return t;
77
+ }
78
+ function g(n, t, e) {
79
+ let r = O(t);
80
+ for (let o = 0; o < 252; o++) {
81
+ const i = e[o];
82
+ if (i.equals(n))
83
+ throw new Error("Same point");
84
+ (r & 1n) !== 0n && (n = n.add(i)), r >>= 1n;
85
+ }
86
+ return n;
87
+ }
88
+ function n0(n, t) {
89
+ let e = u[0];
90
+ return e = g(e, n, k), e = g(e, t, A), C(e.toRawBytes(!0));
91
+ }
92
+ const M = x(250), t0 = (n) => c(y(n)) & M;
93
+ l(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));
94
+ const U = l(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));
95
+ function V(n, t, e) {
96
+ const r = n.fromBytes(B(P(`${t}${e}`)));
97
+ return n.create(r);
98
+ }
99
+ const j = [
100
+ [3, 1, 1],
101
+ [1, -1, 1],
102
+ [1, 1, -2]
103
+ ].map((n) => n.map(BigInt));
104
+ function H(n, t) {
105
+ if (R(n.Fp), !Number.isSafeInteger(n.rate) || !Number.isSafeInteger(n.capacity))
106
+ throw new Error(`Wrong poseidon opts: ${n}`);
107
+ const e = n.rate + n.capacity, r = n.roundsFull + n.roundsPartial, o = [];
108
+ for (let a = 0; a < r; a++) {
109
+ const p = [];
110
+ for (let f = 0; f < e; f++)
111
+ p.push(V(n.Fp, "Hades", e * a + f));
112
+ o.push(p);
113
+ }
114
+ const i = b({
115
+ ...n,
116
+ t: e,
117
+ sboxPower: 3,
118
+ reversePartialPowIdx: !0,
119
+ mds: t,
120
+ roundConstants: o
121
+ });
122
+ return i.m = e, i.rate = n.rate, i.capacity = n.capacity, i;
123
+ }
124
+ H({ Fp: U, rate: 2, capacity: 1, roundsFull: 8, roundsPartial: 83 }, j);
125
+ export {
126
+ Q as CURVE,
127
+ U as Fp251,
128
+ s as ProjectivePoint,
129
+ Y as Signature,
130
+ t0 as keccak,
131
+ n0 as pedersen,
132
+ H as poseidonBasic,
133
+ Z as utils
134
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Ge=require("../../../../../_virtual/_commonjsHelpers.cjs"),q=require("../../../../../_virtual/semver.cjs");(function(J,l){l=J.exports=f;var I;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?I=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:I=function(){},l.SEMVER_SPEC_VERSION="2.0.0";var y=256,G=Number.MAX_SAFE_INTEGER||9007199254740991,M=16,K=y-6,D=l.re=[],h=l.safeRe=[],s=l.src=[],n=l.tokens={},k=0;function R(e){n[e]=k++}var _="[a-zA-Z0-9-]",$=[["\\s",1],["\\d",y],[_,K]];function g(e){for(var r=0;r<$.length;r++){var t=$[r][0],i=$[r][1];e=e.split(t+"*").join(t+"{0,"+i+"}").split(t+"+").join(t+"{1,"+i+"}")}return e}R("NUMERICIDENTIFIER"),s[n.NUMERICIDENTIFIER]="0|[1-9]\\d*",R("NUMERICIDENTIFIERLOOSE"),s[n.NUMERICIDENTIFIERLOOSE]="\\d+",R("NONNUMERICIDENTIFIER"),s[n.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",R("MAINVERSION"),s[n.MAINVERSION]="("+s[n.NUMERICIDENTIFIER]+")\\.("+s[n.NUMERICIDENTIFIER]+")\\.("+s[n.NUMERICIDENTIFIER]+")",R("MAINVERSIONLOOSE"),s[n.MAINVERSIONLOOSE]="("+s[n.NUMERICIDENTIFIERLOOSE]+")\\.("+s[n.NUMERICIDENTIFIERLOOSE]+")\\.("+s[n.NUMERICIDENTIFIERLOOSE]+")",R("PRERELEASEIDENTIFIER"),s[n.PRERELEASEIDENTIFIER]="(?:"+s[n.NUMERICIDENTIFIER]+"|"+s[n.NONNUMERICIDENTIFIER]+")",R("PRERELEASEIDENTIFIERLOOSE"),s[n.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[n.NUMERICIDENTIFIERLOOSE]+"|"+s[n.NONNUMERICIDENTIFIER]+")",R("PRERELEASE"),s[n.PRERELEASE]="(?:-("+s[n.PRERELEASEIDENTIFIER]+"(?:\\."+s[n.PRERELEASEIDENTIFIER]+")*))",R("PRERELEASELOOSE"),s[n.PRERELEASELOOSE]="(?:-?("+s[n.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[n.PRERELEASEIDENTIFIERLOOSE]+")*))",R("BUILDIDENTIFIER"),s[n.BUILDIDENTIFIER]=_+"+",R("BUILD"),s[n.BUILD]="(?:\\+("+s[n.BUILDIDENTIFIER]+"(?:\\."+s[n.BUILDIDENTIFIER]+")*))",R("FULL"),R("FULLPLAIN"),s[n.FULLPLAIN]="v?"+s[n.MAINVERSION]+s[n.PRERELEASE]+"?"+s[n.BUILD]+"?",s[n.FULL]="^"+s[n.FULLPLAIN]+"$",R("LOOSEPLAIN"),s[n.LOOSEPLAIN]="[v=\\s]*"+s[n.MAINVERSIONLOOSE]+s[n.PRERELEASELOOSE]+"?"+s[n.BUILD]+"?",R("LOOSE"),s[n.LOOSE]="^"+s[n.LOOSEPLAIN]+"$",R("GTLT"),s[n.GTLT]="((?:<|>)?=?)",R("XRANGEIDENTIFIERLOOSE"),s[n.XRANGEIDENTIFIERLOOSE]=s[n.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",R("XRANGEIDENTIFIER"),s[n.XRANGEIDENTIFIER]=s[n.NUMERICIDENTIFIER]+"|x|X|\\*",R("XRANGEPLAIN"),s[n.XRANGEPLAIN]="[v=\\s]*("+s[n.XRANGEIDENTIFIER]+")(?:\\.("+s[n.XRANGEIDENTIFIER]+")(?:\\.("+s[n.XRANGEIDENTIFIER]+")(?:"+s[n.PRERELEASE]+")?"+s[n.BUILD]+"?)?)?",R("XRANGEPLAINLOOSE"),s[n.XRANGEPLAINLOOSE]="[v=\\s]*("+s[n.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[n.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[n.XRANGEIDENTIFIERLOOSE]+")(?:"+s[n.PRERELEASELOOSE]+")?"+s[n.BUILD]+"?)?)?",R("XRANGE"),s[n.XRANGE]="^"+s[n.GTLT]+"\\s*"+s[n.XRANGEPLAIN]+"$",R("XRANGELOOSE"),s[n.XRANGELOOSE]="^"+s[n.GTLT]+"\\s*"+s[n.XRANGEPLAINLOOSE]+"$",R("COERCE"),s[n.COERCE]="(^|[^\\d])(\\d{1,"+M+"})(?:\\.(\\d{1,"+M+"}))?(?:\\.(\\d{1,"+M+"}))?(?:$|[^\\d])",R("COERCERTL"),D[n.COERCERTL]=new RegExp(s[n.COERCE],"g"),h[n.COERCERTL]=new RegExp(g(s[n.COERCE]),"g"),R("LONETILDE"),s[n.LONETILDE]="(?:~>?)",R("TILDETRIM"),s[n.TILDETRIM]="(\\s*)"+s[n.LONETILDE]+"\\s+",D[n.TILDETRIM]=new RegExp(s[n.TILDETRIM],"g"),h[n.TILDETRIM]=new RegExp(g(s[n.TILDETRIM]),"g");var Q="$1~";R("TILDE"),s[n.TILDE]="^"+s[n.LONETILDE]+s[n.XRANGEPLAIN]+"$",R("TILDELOOSE"),s[n.TILDELOOSE]="^"+s[n.LONETILDE]+s[n.XRANGEPLAINLOOSE]+"$",R("LONECARET"),s[n.LONECARET]="(?:\\^)",R("CARETTRIM"),s[n.CARETTRIM]="(\\s*)"+s[n.LONECARET]+"\\s+",D[n.CARETTRIM]=new RegExp(s[n.CARETTRIM],"g"),h[n.CARETTRIM]=new RegExp(g(s[n.CARETTRIM]),"g");var W="$1^";R("CARET"),s[n.CARET]="^"+s[n.LONECARET]+s[n.XRANGEPLAIN]+"$",R("CARETLOOSE"),s[n.CARETLOOSE]="^"+s[n.LONECARET]+s[n.XRANGEPLAINLOOSE]+"$",R("COMPARATORLOOSE"),s[n.COMPARATORLOOSE]="^"+s[n.GTLT]+"\\s*("+s[n.LOOSEPLAIN]+")$|^$",R("COMPARATOR"),s[n.COMPARATOR]="^"+s[n.GTLT]+"\\s*("+s[n.FULLPLAIN]+")$|^$",R("COMPARATORTRIM"),s[n.COMPARATORTRIM]="(\\s*)"+s[n.GTLT]+"\\s*("+s[n.LOOSEPLAIN]+"|"+s[n.XRANGEPLAIN]+")",D[n.COMPARATORTRIM]=new RegExp(s[n.COMPARATORTRIM],"g"),h[n.COMPARATORTRIM]=new RegExp(g(s[n.COMPARATORTRIM]),"g");var x="$1$2$3";R("HYPHENRANGE"),s[n.HYPHENRANGE]="^\\s*("+s[n.XRANGEPLAIN]+")\\s+-\\s+("+s[n.XRANGEPLAIN]+")\\s*$",R("HYPHENRANGELOOSE"),s[n.HYPHENRANGELOOSE]="^\\s*("+s[n.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[n.XRANGEPLAINLOOSE]+")\\s*$",R("STAR"),s[n.STAR]="(<|>)?=?\\s*\\*";for(var S=0;S<k;S++)I(S,s[S]),D[S]||(D[S]=new RegExp(s[S]),h[S]=new RegExp(g(s[S])));l.parse=d;function d(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof f)return e;if(typeof e!="string"||e.length>y)return null;var t=r.loose?h[n.LOOSE]:h[n.FULL];if(!t.test(e))return null;try{return new f(e,r)}catch{return null}}l.valid=ee;function ee(e,r){var t=d(e,r);return t?t.version:null}l.clean=re;function re(e,r){var t=d(e.trim().replace(/^[=v]+/,""),r);return t?t.version:null}l.SemVer=f;function f(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof f){if(e.loose===r.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>y)throw new TypeError("version is longer than "+y+" characters");if(!(this instanceof f))return new f(e,r);I("SemVer",e,r),this.options=r,this.loose=!!r.loose;var t=e.trim().match(r.loose?h[n.LOOSE]:h[n.FULL]);if(!t)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>G||this.major<0)throw new TypeError("Invalid major version");if(this.minor>G||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>G||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(i){if(/^[0-9]+$/.test(i)){var a=+i;if(a>=0&&a<G)return a}return i}):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}f.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},f.prototype.toString=function(){return this.version},f.prototype.compare=function(e){return I("SemVer.compare",this.version,this.options,e),e instanceof f||(e=new f(e,this.options)),this.compareMain(e)||this.comparePre(e)},f.prototype.compareMain=function(e){return e instanceof f||(e=new f(e,this.options)),w(this.major,e.major)||w(this.minor,e.minor)||w(this.patch,e.patch)},f.prototype.comparePre=function(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var r=0;do{var t=this.prerelease[r],i=e.prerelease[r];if(I("prerelease compare",r,t,i),t===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(t===void 0)return-1;if(t===i)continue;return w(t,i)}while(++r)},f.prototype.compareBuild=function(e){e instanceof f||(e=new f(e,this.options));var r=0;do{var t=this.build[r],i=e.build[r];if(I("prerelease compare",r,t,i),t===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(t===void 0)return-1;if(t===i)continue;return w(t,i)}while(++r)},f.prototype.inc=function(e,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var t=this.prerelease.length;--t>=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},l.inc=te;function te(e,r,t,i){typeof t=="string"&&(i=t,t=void 0);try{return new f(e,t).inc(r,i).version}catch{return null}}l.diff=ne;function ne(e,r){if(B(e,r))return null;var t=d(e),i=d(r),a="";if(t.prerelease.length||i.prerelease.length){a="pre";var E="prerelease"}for(var u in t)if((u==="major"||u==="minor"||u==="patch")&&t[u]!==i[u])return a+u;return E}l.compareIdentifiers=w;var Y=/^[0-9]+$/;function w(e,r){var t=Y.test(e),i=Y.test(r);return t&&i&&(e=+e,r=+r),e===r?0:t&&!i?-1:i&&!t?1:e<r?-1:1}l.rcompareIdentifiers=ie;function ie(e,r){return w(r,e)}l.major=se;function se(e,r){return new f(e,r).major}l.minor=ae;function ae(e,r){return new f(e,r).minor}l.patch=Ee;function Ee(e,r){return new f(e,r).patch}l.compare=m;function m(e,r,t){return new f(e,t).compare(new f(r,t))}l.compareLoose=ue;function ue(e,r){return m(e,r,!0)}l.compareBuild=le;function le(e,r,t){var i=new f(e,t),a=new f(r,t);return i.compare(a)||i.compareBuild(a)}l.rcompare=fe;function fe(e,r,t){return m(r,e,t)}l.sort=ce;function ce(e,r){return e.sort(function(t,i){return l.compareBuild(t,i,r)})}l.rsort=Re;function Re(e,r){return e.sort(function(t,i){return l.compareBuild(i,t,r)})}l.gt=F;function F(e,r,t){return m(e,r,t)>0}l.lt=j;function j(e,r,t){return m(e,r,t)<0}l.eq=B;function B(e,r,t){return m(e,r,t)===0}l.neq=z;function z(e,r,t){return m(e,r,t)!==0}l.gte=V;function V(e,r,t){return m(e,r,t)>=0}l.lte=H;function H(e,r,t){return m(e,r,t)<=0}l.cmp=X;function X(e,r,t,i){switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return B(e,t,i);case"!=":return z(e,t,i);case">":return F(e,t,i);case">=":return V(e,t,i);case"<":return j(e,t,i);case"<=":return H(e,t,i);default:throw new TypeError("Invalid operator: "+r)}}l.Comparator=T;function T(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof T){if(e.loose===!!r.loose)return e;e=e.value}if(!(this instanceof T))return new T(e,r);e=e.trim().split(/\s+/).join(" "),I("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===P?this.value="":this.value=this.operator+this.semver.version,I("comp",this)}var P={};T.prototype.parse=function(e){var r=this.options.loose?h[n.COMPARATORLOOSE]:h[n.COMPARATOR],t=e.match(r);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=t[1]!==void 0?t[1]:"",this.operator==="="&&(this.operator=""),t[2]?this.semver=new f(t[2],this.options.loose):this.semver=P},T.prototype.toString=function(){return this.value},T.prototype.test=function(e){if(I("Comparator.test",e,this.options.loose),this.semver===P||e===P)return!0;if(typeof e=="string")try{e=new f(e,this.options)}catch{return!1}return X(e,this.operator,this.semver,this.options)},T.prototype.intersects=function(e,r){if(!(e instanceof T))throw new TypeError("a Comparator is required");(!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1});var t;if(this.operator==="")return this.value===""?!0:(t=new O(e.value,r),U(this.value,t,r));if(e.operator==="")return e.value===""?!0:(t=new O(this.value,r),U(e.semver,t,r));var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),E=this.semver.version===e.semver.version,u=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=X(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=X(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||a||E&&u||o||c},l.Range=O;function O(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof O)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new O(e.raw,r);if(e instanceof T)return new O(e.value,r);if(!(this instanceof O))return new O(e,r);if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}O.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var r=this.options.loose,t=r?h[n.HYPHENRANGELOOSE]:h[n.HYPHENRANGE];e=e.replace(t,ve),I("hyphen replace",e),e=e.replace(h[n.COMPARATORTRIM],x),I("comparator trim",e,h[n.COMPARATORTRIM]),e=e.replace(h[n.TILDETRIM],Q),e=e.replace(h[n.CARETTRIM],W),e=e.split(/\s+/).join(" ");var i=r?h[n.COMPARATORLOOSE]:h[n.COMPARATOR],a=e.split(" ").map(function(E){return Ie(E,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(E){return!!E.match(i)})),a=a.map(function(E){return new T(E,this.options)},this),a},O.prototype.intersects=function(e,r){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some(function(t){return Z(t,r)&&e.set.some(function(i){return Z(i,r)&&t.every(function(a){return i.every(function(E){return a.intersects(E,r)})})})})};function Z(e,r){for(var t=!0,i=e.slice(),a=i.pop();t&&i.length;)t=i.every(function(E){return a.intersects(E,r)}),a=i.pop();return t}l.toComparators=oe;function oe(e,r){return new O(e,r).set.map(function(t){return t.map(function(i){return i.value}).join(" ").trim().split(" ")})}function Ie(e,r){return I("comp",e,r),e=Le(e,r),I("caret",e),e=he(e,r),I("tildes",e),e=Te(e,r),I("xrange",e),e=pe(e,r),I("stars",e),e}function L(e){return!e||e.toLowerCase()==="x"||e==="*"}function he(e,r){return e.trim().split(/\s+/).map(function(t){return Oe(t,r)}).join(" ")}function Oe(e,r){var t=r.loose?h[n.TILDELOOSE]:h[n.TILDE];return e.replace(t,function(i,a,E,u,o){I("tilde",e,i,a,E,u,o);var c;return L(a)?c="":L(E)?c=">="+a+".0.0 <"+(+a+1)+".0.0":L(u)?c=">="+a+"."+E+".0 <"+a+"."+(+E+1)+".0":o?(I("replaceTilde pr",o),c=">="+a+"."+E+"."+u+"-"+o+" <"+a+"."+(+E+1)+".0"):c=">="+a+"."+E+"."+u+" <"+a+"."+(+E+1)+".0",I("tilde return",c),c})}function Le(e,r){return e.trim().split(/\s+/).map(function(t){return Ne(t,r)}).join(" ")}function Ne(e,r){I("caret",e,r);var t=r.loose?h[n.CARETLOOSE]:h[n.CARET];return e.replace(t,function(i,a,E,u,o){I("caret",e,i,a,E,u,o);var c;return L(a)?c="":L(E)?c=">="+a+".0.0 <"+(+a+1)+".0.0":L(u)?a==="0"?c=">="+a+"."+E+".0 <"+a+"."+(+E+1)+".0":c=">="+a+"."+E+".0 <"+(+a+1)+".0.0":o?(I("replaceCaret pr",o),a==="0"?E==="0"?c=">="+a+"."+E+"."+u+"-"+o+" <"+a+"."+E+"."+(+u+1):c=">="+a+"."+E+"."+u+"-"+o+" <"+a+"."+(+E+1)+".0":c=">="+a+"."+E+"."+u+"-"+o+" <"+(+a+1)+".0.0"):(I("no pr"),a==="0"?E==="0"?c=">="+a+"."+E+"."+u+" <"+a+"."+E+"."+(+u+1):c=">="+a+"."+E+"."+u+" <"+a+"."+(+E+1)+".0":c=">="+a+"."+E+"."+u+" <"+(+a+1)+".0.0"),I("caret return",c),c})}function Te(e,r){return I("replaceXRanges",e,r),e.split(/\s+/).map(function(t){return Ae(t,r)}).join(" ")}function Ae(e,r){e=e.trim();var t=r.loose?h[n.XRANGELOOSE]:h[n.XRANGE];return e.replace(t,function(i,a,E,u,o,c){I("xRange",e,i,a,E,u,o,c);var p=L(E),v=p||L(u),A=v||L(o),N=A;return a==="="&&N&&(a=""),c=r.includePrerelease?"-0":"",p?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&N?(v&&(u=0),o=0,a===">"?(a=">=",v?(E=+E+1,u=0,o=0):(u=+u+1,o=0)):a==="<="&&(a="<",v?E=+E+1:u=+u+1),i=a+E+"."+u+"."+o+c):v?i=">="+E+".0.0"+c+" <"+(+E+1)+".0.0"+c:A&&(i=">="+E+"."+u+".0"+c+" <"+E+"."+(+u+1)+".0"+c),I("xRange return",i),i})}function pe(e,r){return I("replaceStars",e,r),e.trim().replace(h[n.STAR],"")}function ve(e,r,t,i,a,E,u,o,c,p,v,A,N){return L(t)?r="":L(i)?r=">="+t+".0.0":L(a)?r=">="+t+"."+i+".0":r=">="+r,L(c)?o="":L(p)?o="<"+(+c+1)+".0.0":L(v)?o="<"+c+"."+(+p+1)+".0":A?o="<="+c+"."+p+"."+v+"-"+A:o="<="+o,(r+" "+o).trim()}O.prototype.test=function(e){if(!e)return!1;if(typeof e=="string")try{e=new f(e,this.options)}catch{return!1}for(var r=0;r<this.set.length;r++)if(Se(this.set[r],e,this.options))return!0;return!1};function Se(e,r,t){for(var i=0;i<e.length;i++)if(!e[i].test(r))return!1;if(r.prerelease.length&&!t.includePrerelease){for(i=0;i<e.length;i++)if(I(e[i].semver),e[i].semver!==P&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}l.satisfies=U;function U(e,r,t){try{r=new O(r,t)}catch{return!1}return r.test(e)}l.maxSatisfying=me;function me(e,r,t){var i=null,a=null;try{var E=new O(r,t)}catch{return null}return e.forEach(function(u){E.test(u)&&(!i||a.compare(u)===-1)&&(i=u,a=new f(i,t))}),i}l.minSatisfying=Ce;function Ce(e,r,t){var i=null,a=null;try{var E=new O(r,t)}catch{return null}return e.forEach(function(u){E.test(u)&&(!i||a.compare(u)===1)&&(i=u,a=new f(i,t))}),i}l.minVersion=de;function de(e,r){e=new O(e,r);var t=new f("0.0.0");if(e.test(t)||(t=new f("0.0.0-0"),e.test(t)))return t;t=null;for(var i=0;i<e.set.length;++i){var a=e.set[i];a.forEach(function(E){var u=new f(E.semver.version);switch(E.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!t||F(t,u))&&(t=u);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+E.operator)}})}return t&&e.test(t)?t:null}l.validRange=we;function we(e,r){try{return new O(e,r).range||"*"}catch{return null}}l.ltr=De;function De(e,r,t){return b(e,r,"<",t)}l.gtr=Pe;function Pe(e,r,t){return b(e,r,">",t)}l.outside=b;function b(e,r,t,i){e=new f(e,i),r=new O(r,i);var a,E,u,o,c;switch(t){case">":a=F,E=H,u=j,o=">",c=">=";break;case"<":a=j,E=V,u=F,o="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(U(e,r,i))return!1;for(var p=0;p<r.set.length;++p){var v=r.set[p],A=null,N=null;if(v.forEach(function(C){C.semver===P&&(C=new T(">=0.0.0")),A=A||C,N=N||C,a(C.semver,A.semver,i)?A=C:u(C.semver,N.semver,i)&&(N=C)}),A.operator===o||A.operator===c||(!N.operator||N.operator===o)&&E(e,N.semver))return!1;if(N.operator===c&&u(e,N.semver))return!1}return!0}l.prerelease=ye;function ye(e,r){var t=d(e,r);return t&&t.prerelease.length?t.prerelease:null}l.intersects=ge;function ge(e,r,t){return e=new O(e,t),r=new O(r,t),e.intersects(r)}l.coerce=Fe;function Fe(e,r){if(e instanceof f)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;r=r||{};var t=null;if(!r.rtl)t=e.match(h[n.COERCE]);else{for(var i;(i=h[n.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),h[n.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;h[n.COERCERTL].lastIndex=-1}return t===null?null:d(t[2]+"."+(t[3]||"0")+"."+(t[4]||"0"),r)}})(q.__module,q.__module.exports);var je=q.__module.exports;const Xe=Ge.getDefaultExportFromCjs(je);exports.default=Xe;