@argent/x-shared 1.79.0 → 1.79.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 (501) hide show
  1. package/dist/.ts-temp/tsconfig.tsbuildinfo +1 -1
  2. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +20 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.js +112 -488
  6. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -1
  7. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +11 -11
  8. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -1
  9. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +62 -85
  10. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
  11. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +153 -190
  12. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -1
  13. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +56 -65
  14. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
  15. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +125 -151
  16. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
  17. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +470 -575
  18. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  19. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +26 -40
  20. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -1
  21. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -4
  22. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
  23. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +38 -42
  24. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  25. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +28 -42
  26. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  27. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +17 -26
  28. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
  29. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +52 -59
  30. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  31. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +20 -19
  32. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
  33. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +118 -113
  34. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
  35. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +95 -105
  36. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  37. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +26 -32
  38. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.cjs +1 -1
  39. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.js +71 -82
  40. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.cjs +1 -1
  41. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.js +20 -20
  42. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.cjs +1 -1
  43. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.js +125 -124
  44. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.cjs +1 -1
  45. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.js +102 -116
  46. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.cjs +1 -1
  47. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.js +62 -76
  48. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -1
  49. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +519 -614
  50. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -1
  51. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +15 -19
  52. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -1
  53. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +15 -19
  54. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -1
  55. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -6
  56. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -1
  57. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +15 -19
  58. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -1
  59. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +5 -5
  60. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -1
  61. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +10 -12
  62. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -1
  63. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -5
  64. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -1
  65. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +6 -7
  66. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -1
  67. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +6 -8
  68. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
  69. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +7 -9
  70. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -1
  71. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +6 -8
  72. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -1
  73. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +9 -9
  74. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -1
  75. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +7 -7
  76. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -1
  77. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +5 -5
  78. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -1
  79. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +10 -15
  80. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -1
  81. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +26 -32
  82. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -1
  83. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +5 -5
  84. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -1
  85. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -5
  86. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -1
  87. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +7 -7
  88. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -1
  89. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -4
  90. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -1
  91. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +6 -6
  92. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -1
  93. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +8 -8
  94. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -1
  95. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +12 -13
  96. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -1
  97. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +5 -5
  98. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -1
  99. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +6 -6
  100. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -1
  101. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +6 -6
  102. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -1
  103. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +11 -11
  104. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -1
  105. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +8 -8
  106. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -1
  107. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +7 -7
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -1
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +6 -6
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -1
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +9 -9
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -1
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +5 -5
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +8 -11
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -1
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +7 -7
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -1
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +6 -6
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -1
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +6 -6
  122. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
  123. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +11 -11
  124. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
  125. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +7 -7
  126. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
  127. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +6 -6
  128. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
  129. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +6 -6
  130. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
  131. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +7 -7
  132. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -1
  133. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +4 -4
  134. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -1
  135. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +6 -6
  136. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -1
  137. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +4 -4
  138. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -1
  139. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +6 -6
  140. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -1
  141. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +5 -5
  142. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -1
  143. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +8 -8
  144. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -1
  145. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +6 -8
  146. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -1
  147. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +14 -16
  148. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -1
  149. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +5 -5
  150. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -1
  151. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +10 -11
  152. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -1
  153. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +6 -6
  154. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -1
  155. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +4 -5
  156. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -1
  157. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +6 -6
  158. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -1
  159. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +121 -118
  160. package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.cjs +1 -1
  161. package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js +377 -417
  162. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -1
  163. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +546 -635
  164. package/dist/paymaster.cjs +1 -1
  165. package/dist/paymaster.js +2 -11
  166. package/dist/simulation.cjs +1 -1
  167. package/dist/simulation.js +22 -90
  168. package/dist/src/account/account.model.cjs +1 -1
  169. package/dist/src/account/account.model.js +58 -52
  170. package/dist/src/account/accountv4.cjs +1 -1
  171. package/dist/src/account/accountv4.js +9 -11
  172. package/dist/src/account/preferences.model.cjs +1 -1
  173. package/dist/src/account/preferences.model.js +12 -10
  174. package/dist/src/accountNameGenerator/colors.cjs +1 -1
  175. package/dist/src/accountNameGenerator/colors.js +24 -24
  176. package/dist/src/accountNameGenerator/index.cjs +1 -1
  177. package/dist/src/accountNameGenerator/index.js +23 -23
  178. package/dist/src/accountNameGenerator/x-names.json.cjs +1 -1
  179. package/dist/src/accountNameGenerator/x-names.json.js +1922 -7
  180. package/dist/src/assets/tokens.json.cjs +1 -1
  181. package/dist/src/assets/tokens.json.js +180 -180
  182. package/dist/src/backend/schema.cjs +1 -1
  183. package/dist/src/backend/schema.js +9 -12
  184. package/dist/src/backend/sessionKeys/schema.cjs +1 -1
  185. package/dist/src/backend/sessionKeys/schema.js +27 -30
  186. package/dist/src/bigdecimal/constants.cjs +1 -1
  187. package/dist/src/bigdecimal/constants.js +6 -3
  188. package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -1
  189. package/dist/src/bigdecimal/createUnitsSchema.js +7 -7
  190. package/dist/src/bigdecimal/formatUnits.cjs +1 -1
  191. package/dist/src/bigdecimal/formatUnits.js +9 -10
  192. package/dist/src/bigdecimal/index.cjs +1 -1
  193. package/dist/src/bigdecimal/index.js +45 -41
  194. package/dist/src/bigdecimal/lib.cjs +1 -1
  195. package/dist/src/bigdecimal/lib.js +105 -117
  196. package/dist/src/bigdecimal/parseUnits.cjs +1 -1
  197. package/dist/src/bigdecimal/parseUnits.js +18 -21
  198. package/dist/src/bigdecimal/utils.cjs +1 -1
  199. package/dist/src/bigdecimal/utils.js +33 -30
  200. package/dist/src/cache/CacheService.cjs +1 -1
  201. package/dist/src/cache/CacheService.js +32 -36
  202. package/dist/src/chains/starknet/address.cjs +1 -1
  203. package/dist/src/chains/starknet/address.js +73 -117
  204. package/dist/src/chains/starknet/addressDomain.cjs +1 -1
  205. package/dist/src/chains/starknet/addressDomain.js +14 -29
  206. package/dist/src/chains/starknet/addressInput.cjs +1 -1
  207. package/dist/src/chains/starknet/addressInput.js +6 -7
  208. package/dist/src/chains/starknet/argentName.cjs +1 -1
  209. package/dist/src/chains/starknet/argentName.js +10 -14
  210. package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -1
  211. package/dist/src/chains/starknet/cairoVersionSchema.js +5 -5
  212. package/dist/src/chains/starknet/constants.cjs +1 -1
  213. package/dist/src/chains/starknet/constants.js +4 -10
  214. package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -1
  215. package/dist/src/chains/starknet/getAddressFromArgentName.js +38 -46
  216. package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -1
  217. package/dist/src/chains/starknet/getAddressFromStarkName.js +59 -66
  218. package/dist/src/chains/starknet/network.cjs +1 -1
  219. package/dist/src/chains/starknet/network.js +20 -26
  220. package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -1
  221. package/dist/src/chains/starknet/services/address/StarknetAddressService.js +31 -36
  222. package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -1
  223. package/dist/src/chains/starknet/services/deploymentData/constants.js +14 -21
  224. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -1
  225. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +15 -17
  226. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -1
  227. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +61 -65
  228. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -1
  229. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +46 -65
  230. package/dist/src/chains/starknet/starknetId.cjs +1 -1
  231. package/dist/src/chains/starknet/starknetId.js +10 -14
  232. package/dist/src/currencyFetchService/CurrencyFetchService.cjs +1 -1
  233. package/dist/src/currencyFetchService/CurrencyFetchService.js +13 -18
  234. package/dist/src/currencyFetchService/types.ts.cjs +1 -1
  235. package/dist/src/currencyFetchService/types.ts.js +9 -12
  236. package/dist/src/errors/account.cjs +1 -1
  237. package/dist/src/errors/account.js +12 -13
  238. package/dist/src/errors/address.cjs +1 -1
  239. package/dist/src/errors/address.js +11 -12
  240. package/dist/src/errors/baseErrors.cjs +1 -1
  241. package/dist/src/errors/baseErrors.js +14 -14
  242. package/dist/src/errors/call.cjs +1 -1
  243. package/dist/src/errors/call.js +12 -13
  244. package/dist/src/errors/network.cjs +1 -1
  245. package/dist/src/errors/network.js +11 -12
  246. package/dist/src/errors/review.cjs +1 -1
  247. package/dist/src/errors/review.js +11 -12
  248. package/dist/src/errors/swap.cjs +1 -1
  249. package/dist/src/errors/swap.js +12 -13
  250. package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
  251. package/dist/src/features/paymaster/PaymasterService.js +73 -87
  252. package/dist/src/features/paymaster/types.cjs +1 -1
  253. package/dist/src/features/paymaster/types.js +41 -51
  254. package/dist/src/features/simulation/activity/normalize.cjs +1 -1
  255. package/dist/src/features/simulation/activity/normalize.js +36 -38
  256. package/dist/src/features/simulation/activity/schema.cjs +1 -1
  257. package/dist/src/features/simulation/activity/schema.js +224 -250
  258. package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
  259. package/dist/src/features/simulation/activity/utils/createNativeActivity.js +23 -27
  260. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -1
  261. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +14 -21
  262. package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -1
  263. package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +5 -5
  264. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -1
  265. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +4 -4
  266. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -1
  267. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +15 -19
  268. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -1
  269. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +15 -19
  270. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -1
  271. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +5 -5
  272. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -1
  273. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +19 -21
  274. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -1
  275. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +15 -19
  276. package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
  277. package/dist/src/features/simulation/activity/utils/isSwapActivity.js +17 -18
  278. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
  279. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +15 -19
  280. package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -1
  281. package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +12 -12
  282. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -1
  283. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +32 -32
  284. package/dist/src/features/simulation/fees/schema.cjs +1 -1
  285. package/dist/src/features/simulation/fees/schema.js +33 -47
  286. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
  287. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +15 -17
  288. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -1
  289. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +5 -5
  290. package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
  291. package/dist/src/features/simulation/transactionReview/schema.js +221 -242
  292. package/dist/src/features/simulation/warning/helper.cjs +1 -1
  293. package/dist/src/features/simulation/warning/helper.js +12 -11
  294. package/dist/src/features/simulation/warning/schema.cjs +1 -1
  295. package/dist/src/features/simulation/warning/schema.js +10 -11
  296. package/dist/src/features/swap/models/order.model.cjs +1 -1
  297. package/dist/src/features/swap/models/order.model.js +16 -19
  298. package/dist/src/features/swap/models/quote.model.cjs +1 -1
  299. package/dist/src/features/swap/models/quote.model.js +31 -35
  300. package/dist/src/features/swap/models/trade.model.cjs +1 -1
  301. package/dist/src/features/swap/models/trade.model.js +25 -27
  302. package/dist/src/features/swap/services/SwapSharedService.cjs +1 -1
  303. package/dist/src/features/swap/services/SwapSharedService.js +71 -75
  304. package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
  305. package/dist/src/features/swap/services/SwapTransactionService.js +57 -63
  306. package/dist/src/features/swap/utils/slippage.cjs +1 -1
  307. package/dist/src/features/swap/utils/slippage.js +18 -25
  308. package/dist/src/features/swap/utils/totalFee.cjs +1 -1
  309. package/dist/src/features/swap/utils/totalFee.js +12 -12
  310. package/dist/src/http/DateService.cjs +1 -1
  311. package/dist/src/http/DateService.js +15 -18
  312. package/dist/src/http/HttpError.cjs +1 -1
  313. package/dist/src/http/HttpError.js +7 -7
  314. package/dist/src/http/HttpService.cjs +1 -1
  315. package/dist/src/http/HttpService.js +117 -134
  316. package/dist/src/http/IHttpService.cjs +1 -1
  317. package/dist/src/http/IHttpService.js +6 -6
  318. package/dist/src/http/SWRService.cjs +1 -1
  319. package/dist/src/http/SWRService.js +50 -57
  320. package/dist/src/http/fetcher.cjs +1 -1
  321. package/dist/src/http/fetcher.js +29 -35
  322. package/dist/src/http/time.cjs +1 -1
  323. package/dist/src/http/time.js +15 -18
  324. package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -1
  325. package/dist/src/knownDapps/KnownDappsBackendService.js +13 -14
  326. package/dist/src/knownDapps/schema.cjs +1 -1
  327. package/dist/src/knownDapps/schema.js +41 -44
  328. package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -1
  329. package/dist/src/knownDapps/utils/getDapplandUrl.js +7 -8
  330. package/dist/src/nameResolution/ResolveNameService.cjs +1 -1
  331. package/dist/src/nameResolution/ResolveNameService.js +34 -41
  332. package/dist/src/nameResolution/schema.cjs +1 -1
  333. package/dist/src/nameResolution/schema.js +20 -25
  334. package/dist/src/nfts/BackendNftService.cjs +1 -1
  335. package/dist/src/nfts/BackendNftService.js +103 -116
  336. package/dist/src/nfts/BackendPaginationError.cjs +1 -1
  337. package/dist/src/nfts/BackendPaginationError.js +11 -12
  338. package/dist/src/nfts/utils.cjs +1 -1
  339. package/dist/src/nfts/utils.js +11 -14
  340. package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -1
  341. package/dist/src/onchainRecovery/OnchainRecoveryService.js +38 -68
  342. package/dist/src/onchainRecovery/schema.cjs +1 -1
  343. package/dist/src/onchainRecovery/schema.js +35 -49
  344. package/dist/src/platform/isBraveBrowser.cjs +1 -1
  345. package/dist/src/platform/isBraveBrowser.js +8 -10
  346. package/dist/src/platform/isBrowser.cjs +1 -1
  347. package/dist/src/platform/isBrowser.js +17 -22
  348. package/dist/src/signer/mergeOwnerGuardianSignatures.cjs +1 -1
  349. package/dist/src/signer/mergeOwnerGuardianSignatures.js +28 -30
  350. package/dist/src/signer/multisigner.cjs +1 -1
  351. package/dist/src/signer/multisigner.js +16 -17
  352. package/dist/src/signer/seedphrase.cjs +1 -1
  353. package/dist/src/signer/seedphrase.js +7 -7
  354. package/dist/src/staking/schema.cjs +1 -1
  355. package/dist/src/staking/schema.js +146 -162
  356. package/dist/src/storage/base.cjs +1 -1
  357. package/dist/src/storage/base.js +33 -34
  358. package/dist/src/storage/utils.cjs +1 -1
  359. package/dist/src/storage/utils.js +19 -28
  360. package/dist/src/tokens/balances.cjs +1 -1
  361. package/dist/src/tokens/balances.js +34 -38
  362. package/dist/src/tokens/constants.cjs +1 -1
  363. package/dist/src/tokens/constants.js +4 -4
  364. package/dist/src/tokens/convertCurrencyValueToTokenAmount.cjs +1 -1
  365. package/dist/src/tokens/convertCurrencyValueToTokenAmount.js +8 -9
  366. package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -1
  367. package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +14 -15
  368. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -1
  369. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +8 -9
  370. package/dist/src/tokens/ensureDecimals.cjs +1 -1
  371. package/dist/src/tokens/ensureDecimals.js +4 -4
  372. package/dist/src/tokens/getCurrencySymbol.cjs +1 -1
  373. package/dist/src/tokens/getCurrencySymbol.js +14 -14
  374. package/dist/src/tokens/isUnlimitedAmount.cjs +1 -1
  375. package/dist/src/tokens/isUnlimitedAmount.js +5 -5
  376. package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -1
  377. package/dist/src/tokens/prettifyCurrencyValue.js +13 -14
  378. package/dist/src/tokens/prettifyTokenAmount.cjs +1 -1
  379. package/dist/src/tokens/prettifyTokenAmount.js +22 -22
  380. package/dist/src/tokens/service/implementation.cjs +1 -1
  381. package/dist/src/tokens/service/implementation.js +28 -40
  382. package/dist/src/tokens/service/tokenError.cjs +1 -1
  383. package/dist/src/tokens/service/tokenError.js +11 -12
  384. package/dist/src/tokens/service/types/backend.model.cjs +1 -1
  385. package/dist/src/tokens/service/types/backend.model.js +128 -163
  386. package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
  387. package/dist/src/tokens/service/types/defiPosition.model.js +83 -99
  388. package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
  389. package/dist/src/tokens/service/types/defiPositionType.model.js +9 -9
  390. package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -1
  391. package/dist/src/tokens/service/types/unclaimedRewards.model.js +15 -16
  392. package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
  393. package/dist/src/tokens/service/types/webToken.model.js +28 -51
  394. package/dist/src/tokens/utils.cjs +1 -1
  395. package/dist/src/tokens/utils.js +5 -9
  396. package/dist/src/transactions/amount.cjs +1 -1
  397. package/dist/src/transactions/amount.js +17 -24
  398. package/dist/src/transactions/buildTransactions.cjs +1 -1
  399. package/dist/src/transactions/buildTransactions.js +30 -33
  400. package/dist/src/transactions/errors.cjs +1 -1
  401. package/dist/src/transactions/errors.js +11 -18
  402. package/dist/src/transactions/estimate/adjustment.cjs +1 -1
  403. package/dist/src/transactions/estimate/adjustment.js +6 -6
  404. package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -1
  405. package/dist/src/transactions/estimate/argentMaxFee.js +10 -13
  406. package/dist/src/transactions/estimate/error.cjs +1 -1
  407. package/dist/src/transactions/estimate/error.js +12 -13
  408. package/dist/src/transactions/estimate/model.cjs +1 -1
  409. package/dist/src/transactions/estimate/model.js +18 -13
  410. package/dist/src/transactions/estimate/utils.cjs +1 -1
  411. package/dist/src/transactions/estimate/utils.js +139 -172
  412. package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -1
  413. package/dist/src/transactions/findTransfersAndApprovals.js +34 -30
  414. package/dist/src/transactions/getPrettyRcpError.cjs +1 -1
  415. package/dist/src/transactions/getPrettyRcpError.js +8 -10
  416. package/dist/src/transactions/service/implementation.cjs +1 -1
  417. package/dist/src/transactions/service/implementation.js +187 -208
  418. package/dist/src/transactions/service/types.cjs +1 -1
  419. package/dist/src/transactions/service/types.js +9 -9
  420. package/dist/src/transactions/service/utils.cjs +1 -1
  421. package/dist/src/transactions/service/utils.js +24 -25
  422. package/dist/src/transactions/transactionExecuteTypes.cjs +1 -1
  423. package/dist/src/transactions/transactionExecuteTypes.js +8 -9
  424. package/dist/src/transactions/transactionReviewTypes.cjs +1 -1
  425. package/dist/src/transactions/transactionReviewTypes.js +9 -9
  426. package/dist/src/transactions/transactionVersion.cjs +1 -1
  427. package/dist/src/transactions/transactionVersion.js +8 -13
  428. package/dist/src/transactions/txv3.cjs +1 -1
  429. package/dist/src/transactions/txv3.js +10 -11
  430. package/dist/src/utils/address.cjs +1 -1
  431. package/dist/src/utils/address.js +4 -4
  432. package/dist/src/utils/arrays.cjs +1 -1
  433. package/dist/src/utils/arrays.js +4 -4
  434. package/dist/src/utils/avatarImage.cjs +4 -4
  435. package/dist/src/utils/avatarImage.js +35 -40
  436. package/dist/src/utils/base58.cjs +1 -1
  437. package/dist/src/utils/base58.js +12 -15
  438. package/dist/src/utils/bigNumber.cjs +1 -1
  439. package/dist/src/utils/bigNumber.d.ts +1 -1
  440. package/dist/src/utils/bigNumber.js +5 -7
  441. package/dist/src/utils/bips.cjs +1 -1
  442. package/dist/src/utils/bips.js +12 -10
  443. package/dist/src/utils/daysBetween.cjs +1 -1
  444. package/dist/src/utils/daysBetween.js +6 -6
  445. package/dist/src/utils/env.cjs +1 -1
  446. package/dist/src/utils/env.js +4 -4
  447. package/dist/src/utils/hex.cjs +1 -1
  448. package/dist/src/utils/hex.js +7 -8
  449. package/dist/src/utils/id.cjs +1 -1
  450. package/dist/src/utils/id.js +7 -7
  451. package/dist/src/utils/initials.cjs +1 -1
  452. package/dist/src/utils/initials.js +12 -15
  453. package/dist/src/utils/isContractDeployed.cjs +1 -1
  454. package/dist/src/utils/isContractDeployed.js +9 -9
  455. package/dist/src/utils/nonNullable.cjs +1 -1
  456. package/dist/src/utils/nonNullable.js +6 -6
  457. package/dist/src/utils/number/abbreviateNumber.cjs +1 -1
  458. package/dist/src/utils/number/abbreviateNumber.js +13 -14
  459. package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -1
  460. package/dist/src/utils/number/isAllowedAddressHexInputValue.js +4 -7
  461. package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -1
  462. package/dist/src/utils/number/isAllowedNumericInputValue.js +5 -5
  463. package/dist/src/utils/number/isNumeric.cjs +1 -1
  464. package/dist/src/utils/number/isNumeric.js +4 -4
  465. package/dist/src/utils/number/prettifyNumber.cjs +1 -1
  466. package/dist/src/utils/number/prettifyNumber.js +65 -75
  467. package/dist/src/utils/parseAmount.cjs +1 -1
  468. package/dist/src/utils/parseAmount.js +10 -11
  469. package/dist/src/utils/pluralise.cjs +1 -1
  470. package/dist/src/utils/pluralise.js +4 -4
  471. package/dist/src/utils/readFileAsString.cjs +1 -1
  472. package/dist/src/utils/readFileAsString.js +6 -6
  473. package/dist/src/utils/retryUntilInitialised.cjs +1 -1
  474. package/dist/src/utils/retryUntilInitialised.js +21 -20
  475. package/dist/src/utils/schemas.cjs +1 -1
  476. package/dist/src/utils/schemas.js +29 -26
  477. package/dist/src/utils/starknet/starknet.cjs +1 -1
  478. package/dist/src/utils/starknet/starknet.js +64 -77
  479. package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -1
  480. package/dist/src/utils/starknet/starknetLibTypes.js +7 -7
  481. package/dist/src/utils/starknet/starknetSchemas.cjs +1 -1
  482. package/dist/src/utils/starknet/starknetSchemas.js +84 -99
  483. package/dist/src/utils/transactions.cjs +1 -1
  484. package/dist/src/utils/transactions.js +10 -10
  485. package/dist/src/utils/url/urlWithQuery.cjs +1 -1
  486. package/dist/src/utils/url/urlWithQuery.js +8 -8
  487. package/dist/src/utils/voidify.cjs +1 -1
  488. package/dist/src/utils/voidify.js +7 -7
  489. package/dist/swap.cjs +1 -1
  490. package/dist/swap.js +8 -22
  491. package/package.json +15 -15
  492. package/dist/_virtual/_commonjsHelpers.cjs +0 -1
  493. package/dist/_virtual/_commonjsHelpers.js +0 -6
  494. package/dist/_virtual/numeral.cjs +0 -1
  495. package/dist/_virtual/numeral.js +0 -7
  496. package/dist/_virtual/numeral2.cjs +0 -1
  497. package/dist/_virtual/numeral2.js +0 -4
  498. package/dist/_virtual/semver.cjs +0 -1
  499. package/dist/_virtual/semver.js +0 -7
  500. package/dist/_virtual/semver2.cjs +0 -1
  501. package/dist/_virtual/semver2.js +0 -4
@@ -1,9 +1,7 @@
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;
1
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js
2
+ function e(e, t, n) {
3
+ for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
4
+ return -1;
6
5
  }
7
- export {
8
- f as default
9
- };
6
+ //#endregion
7
+ export { e as default };
@@ -1 +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;
1
+ var e=Function.prototype.toString;function t(t){if(t!=null){try{return e.call(t)}catch{}try{return t+``}catch{}}return``}exports.default=t;
@@ -1,17 +1,15 @@
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 "";
1
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
2
+ var e = Function.prototype.toString;
3
+ function t(t) {
4
+ if (t != null) {
5
+ try {
6
+ return e.call(t);
7
+ } catch {}
8
+ try {
9
+ return t + "";
10
+ } catch {}
11
+ }
12
+ return "";
14
13
  }
15
- export {
16
- e as default
17
- };
14
+ //#endregion
15
+ export { t as default };
@@ -1 +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;
1
+ function e(e,t){return e===t||e!==e&&t!==t}exports.default=e;
@@ -1,6 +1,6 @@
1
- function t(n, f) {
2
- return n === f || n !== n && f !== f;
1
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
2
+ function e(e, t) {
3
+ return e === t || e !== e && t !== t;
3
4
  }
4
- export {
5
- t as default
6
- };
5
+ //#endregion
6
+ export { e as default };
@@ -1 +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;
1
+ const e=require(`./_baseGetTag.cjs`),t=require(`./isObject.cjs`);var n=`[object AsyncFunction]`,r=`[object Function]`,i=`[object GeneratorFunction]`,a=`[object Proxy]`;function o(o){if(!t.default(o))return!1;var s=e.default(o);return s==r||s==i||s==n||s==a}exports.default=o;
@@ -1,12 +1,11 @@
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;
1
+ import e from "./_baseGetTag.js";
2
+ import t from "./isObject.js";
3
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
4
+ var n = "[object AsyncFunction]", r = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]";
5
+ function o(o) {
6
+ if (!t(o)) return !1;
7
+ var s = e(o);
8
+ return s == r || s == i || s == n || s == a;
9
9
  }
10
- export {
11
- g as default
12
- };
10
+ //#endregion
11
+ export { o as default };
@@ -1 +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;
1
+ function e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}exports.default=e;
@@ -1,7 +1,7 @@
1
- function n(t) {
2
- var e = typeof t;
3
- return t != null && (e == "object" || e == "function");
1
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
2
+ function e(e) {
3
+ var t = typeof e;
4
+ return e != null && (t == "object" || t == "function");
4
5
  }
5
- export {
6
- n as default
7
- };
6
+ //#endregion
7
+ export { e as default };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){}exports.default=e;
1
+ function e(){}exports.default=e;
@@ -1,5 +1,4 @@
1
- function o() {
2
- }
3
- export {
4
- o as default
5
- };
1
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js
2
+ function e() {}
3
+ //#endregion
4
+ export { e as default };
@@ -1 +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;
1
+ const e=require(`./_baseUniq.cjs`);function t(t,n){return n=typeof n==`function`?n:void 0,t&&t.length?e.default(t,void 0,n):[]}exports.default=t;
@@ -1,7 +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) : [];
1
+ import e from "./_baseUniq.js";
2
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
3
+ function t(t, n) {
4
+ return n = typeof n == "function" ? n : void 0, t && t.length ? e(t, void 0, n) : [];
4
5
  }
5
- export {
6
- u as default
7
- };
6
+ //#endregion
7
+ export { t as default };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs"),w=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs"),S=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"),F=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"),R=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs"),p=BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"),E=252;function g(e){for(;e[0]===0;)e=e.subarray(1);const n=e.length*8-E,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=F.weierstrass({a:BigInt(1),b:BigInt("3141592653589793238462643383279502884197169399375105820974944592307816406665"),Fp:c.Field(BigInt("0x800000000000011000000000000000000000000000000000000000000000001")),n:p,nBitLength:E,Gx:BigInt("874739451078007766457464989774322083649278607533249481151382481072868806602"),Gy:BigInt("152666792071518830868575557812948353041420400780739481342941381225525861407"),h:BigInt(1),lowS:!1,...R.getHash(w.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{ProjectivePoint:u}=b;function v(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 q=y(a[1],a[2]),x=y(a[3],a[4]);function k(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=k(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 $(e,n){let t=a[0];return t=B(t,e,q),t=B(t,n,x),v(t.toRawBytes(!0))}const D=i.bitMask(250),O=e=>i.bytesToNumberBE(h.keccak_256(e))&D;c.Field(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));const I=c.Field(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));function j(e,n,t){const r=e.fromBytes(w.sha256(S.utf8ToBytes(`${n}${t}`)));return e.create(r)}const A=[[3,1,1],[1,-1,1],[1,1,-2]].map(e=>e.map(BigInt));function P(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(j(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}P({Fp:I,rate:2,capacity:1,roundsFull:8,roundsPartial:83},A);exports.Fp251=I;exports.ProjectivePoint=u;exports.keccak=O;exports.pedersen=$;exports.poseidonBasic=P;
1
+ const e=require(`../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs`),t=require(`../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs`),n=require(`../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs`),r=require(`../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs`),i=require(`../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs`),a=require(`../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs`),o=require(`../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs`),s=require(`../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs`);var c=BigInt(`3618502788666131213697322783095070105526743751716087489154079457884512865583`),l=252;function u(e){for(;e[0]===0;)e=e.subarray(1);let t=e.length*8-l,n=r.bytesToNumberBE(e);return t>0?n>>BigInt(t):n}function d(e){return typeof e==`string`&&(e=y(e),e.length&1&&(e=`0`+e)),r.hexToBytes(e)}var f=o.weierstrass({a:BigInt(1),b:BigInt(`3141592653589793238462643383279502884197169399375105820974944592307816406665`),Fp:i.Field(BigInt(`0x800000000000011000000000000000000000000000000000000000000000001`)),n:c,nBitLength:l,Gx:BigInt(`874739451078007766457464989774322083649278607533249481151382481072868806602`),Gy:BigInt(`152666792071518830868575557812948353041420400780739481342941381225525861407`),h:BigInt(1),lowS:!1,...s.getHash(n.sha256),bits2int:u,bits2int_modN:e=>{let t=r.bytesToNumberBE(e).toString(16);return t.length===63&&(e=d(t+`0`)),i.mod(u(e),c)}});function p(e){return r.ensureBytes(``,typeof e==`string`?d(e):e)}var{CURVE:m,ProjectivePoint:h,Signature:g,utils:_}=f;function v(e){return`0x${r.bytesToHex(e.subarray(1)).replace(/^0+/gm,``)}`}function y(e){return e.replace(/^0x/i,``)}var b=[new h(2089986280348253421170679821480865132823066470938446095505822317253594081284n,1713931329540660377023406109199410414810705867260802078187082345529207694986n,1n),new h(996781205833008774514500082376783249102396023663454813447423147977397232763n,1668503676786377725805489344771023921079126552019160156920634619255970485781n,1n),new h(2251563274489750535117886426533222435294046428347329203627021249169616184184n,1798716007562728905295480679789526322175868328062420237419143593021674992973n,1n),new h(2138414695194151160943305727036575959195309218611738193261179310511854807447n,113410276730064486255102093846540133784865286929052426931474106396135072156n,1n),new h(2379962749567351885752724891227938183011949129833673362440656643086021394946n,776496453633298175483985398648758586525933812536653089401905292063708816422n,1n)];function x(e,t){let n=[],r=e;for(let e=0;e<248;e++)n.push(r),r=r.double();r=t;for(let e=0;e<4;e++)n.push(r),r=r.double();return n}var S=x(b[1],b[2]),C=x(b[3],b[4]);function w(e){let t;if(typeof e==`bigint`)t=e;else if(typeof e==`number`){if(!Number.isSafeInteger(e))throw Error(`Invalid pedersenArg: ${e}`);t=BigInt(e)}else t=r.bytesToNumberBE(p(e));if(!(0n<=t&&t<f.CURVE.Fp.ORDER))throw Error(`PedersenArg should be 0 <= value < CURVE.P: ${t}`);return t}function T(e,t,n){let r=w(t);for(let t=0;t<252;t++){let i=n[t];if(i.equals(e))throw Error(`Same point`);(r&1n)!=0n&&(e=e.add(i)),r>>=1n}return e}function E(e,t){let n=b[0];return n=T(n,e,S),n=T(n,t,C),v(n.toRawBytes(!0))}var D=r.bitMask(250),O=e=>r.bytesToNumberBE(t.keccak_256(e))&D;i.Field(BigInt(`14474011154664525231415395255581126252639794253786371766033694892385558855681`));var k=i.Field(BigInt(`3618502788666131213697322783095070105623107215331596699973092056135872020481`));function A(t,r,i){let a=t.fromBytes(n.sha256(e.utf8ToBytes(`${r}${i}`)));return t.create(a)}var j=[[3,1,1],[1,-1,1],[1,1,-2]].map(e=>e.map(BigInt));function M(e,t){if(i.validateField(e.Fp),!Number.isSafeInteger(e.rate)||!Number.isSafeInteger(e.capacity))throw Error(`Wrong poseidon opts: ${e}`);let n=e.rate+e.capacity,r=e.roundsFull+e.roundsPartial,o=[];for(let t=0;t<r;t++){let r=[];for(let i=0;i<n;i++)r.push(A(e.Fp,`Hades`,n*t+i));o.push(r)}let s=a.poseidon({...e,t:n,sboxPower:3,reversePartialPowIdx:!0,mds:t,roundConstants:o});return s.m=n,s.rate=e.rate,s.capacity=e.capacity,s}M({Fp:k,rate:2,capacity:1,roundsFull:8,roundsPartial:83},j),exports.keccak=O,exports.pedersen=E;
@@ -1,131 +1,134 @@
1
- import { keccak_256 as P } 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 S } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js";
4
- import { Field as l, mod as h, validateField as b } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js";
5
- import { poseidon as R } 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, bytesToHex as x, bitMask as F, ensureBytes as v, hexToBytes 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 e = n.length * 8 - w, t = c(n);
14
- return e > 0 ? t >> BigInt(e) : t;
1
+ import { utf8ToBytes as e } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js";
2
+ import { keccak_256 as t } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js";
3
+ import { sha256 as n } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js";
4
+ import { bitMask as r, bytesToHex as i, bytesToNumberBE as a, ensureBytes as o, hexToBytes as s } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js";
5
+ import { Field as c, mod as l, validateField as u } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js";
6
+ import { poseidon as d } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js";
7
+ import { weierstrass as f } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js";
8
+ import { getHash as p } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js";
9
+ //#region node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js
10
+ var m = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"), h = 252;
11
+ function g(e) {
12
+ for (; e[0] === 0;) e = e.subarray(1);
13
+ let t = e.length * 8 - h, n = a(e);
14
+ return t > 0 ? n >> BigInt(t) : n;
15
15
  }
16
- function I(n) {
17
- return typeof n == "string" && (n = k(n), n.length & 1 && (n = "0" + n)), T(n);
16
+ function _(e) {
17
+ return typeof e == "string" && (e = T(e), e.length & 1 && (e = "0" + e)), s(e);
18
18
  }
19
- const E = 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 e = c(n).toString(16);
33
- return e.length === 63 && (n = I(e + "0")), h(m(n), d);
34
- }
19
+ var v = f({
20
+ a: BigInt(1),
21
+ b: BigInt("3141592653589793238462643383279502884197169399375105820974944592307816406665"),
22
+ Fp: c(BigInt("0x800000000000011000000000000000000000000000000000000000000000001")),
23
+ n: m,
24
+ nBitLength: h,
25
+ Gx: BigInt("874739451078007766457464989774322083649278607533249481151382481072868806602"),
26
+ Gy: BigInt("152666792071518830868575557812948353041420400780739481342941381225525861407"),
27
+ h: BigInt(1),
28
+ lowS: !1,
29
+ ...p(n),
30
+ bits2int: g,
31
+ bits2int_modN: (e) => {
32
+ let t = a(e).toString(16);
33
+ return t.length === 63 && (e = _(t + "0")), l(g(e), m);
34
+ }
35
35
  });
36
- function $(n) {
37
- return v("", typeof n == "string" ? I(n) : n);
36
+ function y(e) {
37
+ return o("", typeof e == "string" ? _(e) : e);
38
38
  }
39
- const { ProjectivePoint: s } = E;
40
- function D(n) {
41
- return `0x${x(n.subarray(1)).replace(/^0+/gm, "")}`;
39
+ var { CURVE: b, ProjectivePoint: x, Signature: S, utils: C } = v;
40
+ function w(e) {
41
+ return `0x${i(e.subarray(1)).replace(/^0+/gm, "")}`;
42
42
  }
43
- function k(n) {
44
- return n.replace(/^0x/i, "");
43
+ function T(e) {
44
+ return e.replace(/^0x/i, "");
45
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)
46
+ var E = [
47
+ new x(2089986280348253421170679821480865132823066470938446095505822317253594081284n, 1713931329540660377023406109199410414810705867260802078187082345529207694986n, 1n),
48
+ new x(996781205833008774514500082376783249102396023663454813447423147977397232763n, 1668503676786377725805489344771023921079126552019160156920634619255970485781n, 1n),
49
+ new x(2251563274489750535117886426533222435294046428347329203627021249169616184184n, 1798716007562728905295480679789526322175868328062420237419143593021674992973n, 1n),
50
+ new x(2138414695194151160943305727036575959195309218611738193261179310511854807447n, 113410276730064486255102093846540133784865286929052426931474106396135072156n, 1n),
51
+ new x(2379962749567351885752724891227938183011949129833673362440656643086021394946n, 776496453633298175483985398648758586525933812536653089401905292063708816422n, 1n)
52
52
  ];
53
- function y(n, e) {
54
- const t = [];
55
- let r = n;
56
- for (let o = 0; o < 248; o++)
57
- t.push(r), r = r.double();
58
- r = e;
59
- for (let o = 0; o < 4; o++)
60
- t.push(r), r = r.double();
61
- return t;
53
+ function D(e, t) {
54
+ let n = [], r = e;
55
+ for (let e = 0; e < 248; e++) n.push(r), r = r.double();
56
+ r = t;
57
+ for (let e = 0; e < 4; e++) n.push(r), r = r.double();
58
+ return n;
62
59
  }
63
- const A = y(u[1], u[2]), C = y(u[3], u[4]);
64
- function O(n) {
65
- let e;
66
- if (typeof n == "bigint")
67
- e = n;
68
- else if (typeof n == "number") {
69
- if (!Number.isSafeInteger(n))
70
- throw new Error(`Invalid pedersenArg: ${n}`);
71
- e = BigInt(n);
72
- } else
73
- e = c($(n));
74
- if (!(0n <= e && e < E.CURVE.Fp.ORDER))
75
- throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${e}`);
76
- return e;
60
+ var O = D(E[1], E[2]), k = D(E[3], E[4]);
61
+ function A(e) {
62
+ let t;
63
+ if (typeof e == "bigint") t = e;
64
+ else if (typeof e == "number") {
65
+ if (!Number.isSafeInteger(e)) throw Error(`Invalid pedersenArg: ${e}`);
66
+ t = BigInt(e);
67
+ } else t = a(y(e));
68
+ if (!(0n <= t && t < v.CURVE.Fp.ORDER)) throw Error(`PedersenArg should be 0 <= value < CURVE.P: ${t}`);
69
+ return t;
77
70
  }
78
- function g(n, e, t) {
79
- let r = O(e);
80
- for (let o = 0; o < 252; o++) {
81
- const i = t[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;
71
+ function j(e, t, n) {
72
+ let r = A(t);
73
+ for (let t = 0; t < 252; t++) {
74
+ let i = n[t];
75
+ if (i.equals(e)) throw Error("Same point");
76
+ (r & 1n) != 0n && (e = e.add(i)), r >>= 1n;
77
+ }
78
+ return e;
87
79
  }
88
- function Q(n, e) {
89
- let t = u[0];
90
- return t = g(t, n, A), t = g(t, e, C), D(t.toRawBytes(!0));
80
+ function M(e, t) {
81
+ let n = E[0];
82
+ return n = j(n, e, O), n = j(n, t, k), w(n.toRawBytes(!0));
91
83
  }
92
- const M = F(250), Y = (n) => c(P(n)) & M;
93
- l(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));
94
- const j = l(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));
95
- function H(n, e, t) {
96
- const r = n.fromBytes(B(S(`${e}${t}`)));
97
- return n.create(r);
84
+ var N = r(250), P = (e) => a(t(e)) & N;
85
+ c(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));
86
+ var F = c(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));
87
+ function I(t, r, i) {
88
+ let a = t.fromBytes(n(e(`${r}${i}`)));
89
+ return t.create(a);
98
90
  }
99
- const L = [
100
- [3, 1, 1],
101
- [1, -1, 1],
102
- [1, 1, -2]
103
- ].map((n) => n.map(BigInt));
104
- function U(n, e) {
105
- if (b(n.Fp), !Number.isSafeInteger(n.rate) || !Number.isSafeInteger(n.capacity))
106
- throw new Error(`Wrong poseidon opts: ${n}`);
107
- const t = 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 < t; f++)
111
- p.push(H(n.Fp, "Hades", t * a + f));
112
- o.push(p);
113
- }
114
- const i = R({
115
- ...n,
116
- t,
117
- sboxPower: 3,
118
- reversePartialPowIdx: !0,
119
- mds: e,
120
- roundConstants: o
121
- });
122
- return i.m = t, i.rate = n.rate, i.capacity = n.capacity, i;
91
+ var L = [
92
+ [
93
+ 3,
94
+ 1,
95
+ 1
96
+ ],
97
+ [
98
+ 1,
99
+ -1,
100
+ 1
101
+ ],
102
+ [
103
+ 1,
104
+ 1,
105
+ -2
106
+ ]
107
+ ].map((e) => e.map(BigInt));
108
+ function R(e, t) {
109
+ if (u(e.Fp), !Number.isSafeInteger(e.rate) || !Number.isSafeInteger(e.capacity)) throw Error(`Wrong poseidon opts: ${e}`);
110
+ let n = e.rate + e.capacity, r = e.roundsFull + e.roundsPartial, i = [];
111
+ for (let t = 0; t < r; t++) {
112
+ let r = [];
113
+ for (let i = 0; i < n; i++) r.push(I(e.Fp, "Hades", n * t + i));
114
+ i.push(r);
115
+ }
116
+ let a = d({
117
+ ...e,
118
+ t: n,
119
+ sboxPower: 3,
120
+ reversePartialPowIdx: !0,
121
+ mds: t,
122
+ roundConstants: i
123
+ });
124
+ return a.m = n, a.rate = e.rate, a.capacity = e.capacity, a;
123
125
  }
124
- U({ Fp: j, rate: 2, capacity: 1, roundsFull: 8, roundsPartial: 83 }, L);
125
- export {
126
- j as Fp251,
127
- s as ProjectivePoint,
128
- Y as keccak,
129
- Q as pedersen,
130
- U as poseidonBasic
131
- };
126
+ R({
127
+ Fp: F,
128
+ rate: 2,
129
+ capacity: 1,
130
+ roundsFull: 8,
131
+ roundsPartial: 83
132
+ }, L);
133
+ //#endregion
134
+ export { P as keccak, M as pedersen };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../../../../../_virtual/numeral2.cjs");var O=B.__module.exports,P;function L(){return P||(P=1,(function(S){(function(n,m){S.exports?S.exports=m():n.numeral=m()})(O,function(){var n,m,E="2.0.6",_={},N={},y={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:y.currentLocale,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat,scalePercentBy100:y.scalePercentBy100};function M(e,r){this._input=e,this._value=r}return n=function(e){var r,l,i,t;if(n.isNumeral(e))r=e.value();else if(e===0||typeof e>"u")r=0;else if(e===null||m.isNaN(e))r=null;else if(typeof e=="string")if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(l in _)if(t=typeof _[l].regexps.unformat=="function"?_[l].regexps.unformat():_[l].regexps.unformat,t&&e.match(t)){i=_[l].unformat;break}i=i||n._.stringToNumber,r=i(e)}else r=Number(e)||null;return new M(e,r)},n.version=E,n.isNumeral=function(e){return e instanceof M},n._=m={numberToFormat:function(e,r,l){var i=N[n.options.currentLocale],t=!1,o=!1,a=0,u="",f=1e12,s=1e9,d=1e6,w=1e3,h="",v=!1,p,x,b,g,T,$,F;if(e=e||0,x=Math.abs(e),n._.includes(r,"(")?(t=!0,r=r.replace(/[\(|\)]/g,"")):(n._.includes(r,"+")||n._.includes(r,"-"))&&(T=n._.includes(r,"+")?r.indexOf("+"):e<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),n._.includes(r,"a")&&(p=r.match(/a(k|m|b|t)?/),p=p?p[1]:!1,n._.includes(r," a")&&(u=" "),r=r.replace(new RegExp(u+"a[kmbt]?"),""),x>=f&&!p||p==="t"?(u+=i.abbreviations.trillion,e=e/f):x<f&&x>=s&&!p||p==="b"?(u+=i.abbreviations.billion,e=e/s):x<s&&x>=d&&!p||p==="m"?(u+=i.abbreviations.million,e=e/d):(x<d&&x>=w&&!p||p==="k")&&(u+=i.abbreviations.thousand,e=e/w)),n._.includes(r,"[.]")&&(o=!0,r=r.replace("[.]",".")),b=e.toString().split(".")[0],g=r.split(".")[1],$=r.indexOf(","),a=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,g?(n._.includes(g,"[")?(g=g.replace("]",""),g=g.split("["),h=n._.toFixed(e,g[0].length+g[1].length,l,g[1].length)):h=n._.toFixed(e,g.length,l),b=h.split(".")[0],n._.includes(h,".")?h=i.delimiters.decimal+h.split(".")[1]:h="",o&&Number(h.slice(1))===0&&(h="")):b=n._.toFixed(e,0,l),u&&!p&&Number(b)>=1e3&&u!==i.abbreviations.trillion)switch(b=String(Number(b)/1e3),u){case i.abbreviations.thousand:u=i.abbreviations.million;break;case i.abbreviations.million:u=i.abbreviations.billion;break;case i.abbreviations.billion:u=i.abbreviations.trillion;break}if(n._.includes(b,"-")&&(b=b.slice(1),v=!0),b.length<a)for(var k=a-b.length;k>0;k--)b="0"+b;return $>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),r.indexOf(".")===0&&(b=""),F=b+h+(u||""),t?F=(t&&v?"(":"")+F+(t&&v?")":""):T>=0?F=T===0?(v?"-":"+")+F:F+(v?"-":"+"):v&&(F="-"+F),F},stringToNumber:function(e){var r=N[c.currentLocale],l=e,i={thousand:3,million:6,billion:9,trillion:12},t,o,a;if(c.zeroFormat&&e===c.zeroFormat)o=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)o=null;else{o=1,r.delimiters.decimal!=="."&&(e=e.replace(/\./g,"").replace(r.delimiters.decimal,"."));for(t in i)if(a=new RegExp("[^a-zA-Z]"+r.abbreviations[t]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),l.match(a)){o*=Math.pow(10,i[t]);break}o*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),o*=Number(e)}return o},isNaN:function(e){return typeof e=="number"&&isNaN(e)},includes:function(e,r){return e.indexOf(r)!==-1},insert:function(e,r,l){return e.slice(0,l)+r+e.slice(l)},reduce:function(e,r){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof r!="function")throw new TypeError(r+" is not a function");var l=Object(e),i=l.length>>>0,t=0,o;if(arguments.length===3)o=arguments[2];else{for(;t<i&&!(t in l);)t++;if(t>=i)throw new TypeError("Reduce of empty array with no initial value");o=l[t++]}for(;t<i;t++)t in l&&(o=r(o,l[t],t,l));return o},multiplier:function(e){var r=e.toString().split(".");return r.length<2?1:Math.pow(10,r[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(r,l){var i=m.multiplier(l);return r>i?r:i},1)},toFixed:function(e,r,l,i){var t=e.toString().split("."),o=r-(i||0),a,u,f,s;return t.length===2?a=Math.min(Math.max(t[1].length,o),r):a=o,f=Math.pow(10,a),s=(l(e+"e+"+a)/f).toFixed(a),i>r-a&&(u=new RegExp("\\.?0{1,"+(i-(r-a))+"}$"),s=s.replace(u,"")),s}},n.options=c,n.formats=_,n.locales=N,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return N[c.currentLocale];if(e=e.toLowerCase(),!N[e])throw new Error("Unknown locale : "+e);return N[e]},n.reset=function(){for(var e in y)c[e]=y[e]},n.zeroFormat=function(e){c.zeroFormat=typeof e=="string"?e:null},n.nullFormat=function(e){c.nullFormat=typeof e=="string"?e:null},n.defaultFormat=function(e){c.defaultFormat=typeof e=="string"?e:"0.0"},n.register=function(e,r,l){if(r=r.toLowerCase(),this[e+"s"][r])throw new TypeError(r+" "+e+" already registered.");return this[e+"s"][r]=l,l},n.validate=function(e,r){var l,i,t,o,a,u,f,s;if(typeof e!="string"&&(e+=""),e=e.trim(),e.match(/^\d+$/))return!0;if(e==="")return!1;try{f=n.localeData(r)}catch{f=n.localeData(n.locale())}return t=f.currency.symbol,a=f.abbreviations,l=f.delimiters.decimal,f.delimiters.thousands==="."?i="\\.":i=f.delimiters.thousands,s=e.match(/^[^\d]+/),s!==null&&(e=e.substr(1),s[0]!==t)||(s=e.match(/[^\d]+$/),s!==null&&(e=e.slice(0,-1),s[0]!==a.thousand&&s[0]!==a.million&&s[0]!==a.billion&&s[0]!==a.trillion))?!1:(u=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)?!1:(o=e.split(l),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))},n.fn=M.prototype={clone:function(){return n(this)},format:function(e,r){var l=this._value,i=e||c.defaultFormat,t,o,a;if(r=r||Math.round,l===0&&c.zeroFormat!==null)o=c.zeroFormat;else if(l===null&&c.nullFormat!==null)o=c.nullFormat;else{for(t in _)if(i.match(_[t].regexps.format)){a=_[t].format;break}a=a||n._.numberToFormat,o=a(l,i,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i+Math.round(r*t)}return this._value=m.reduce([this._value,e],l,0)/r,this},subtract:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i-Math.round(r*t)}return this._value=m.reduce([e],l,Math.round(this._value*r))/r,this},multiply:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)*Math.round(i*a)/Math.round(a*a)}return this._value=m.reduce([this._value,e],r,1),this},divide:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)/Math.round(i*a)}return this._value=m.reduce([this._value,e],r),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var r=e%10;return~~(e%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th"},currency:{symbol:"$"}}),(function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,r,l){var i=n._.includes(r," BPS")?" ":"",t;return e=e*1e4,r=r.replace(/\s?BPS/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"BPS"),t=t.join("")):t=t+i+"BPS",t},unformat:function(e){return+(n._.stringToNumber(e)*1e-4).toFixed(15)}})})(),(function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=e.suffixes.concat(r.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),i=l.join("|");i="("+i.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,o,a){var u,f=n._.includes(o,"ib")?r:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"",d,w,h;for(o=o.replace(/\s?i?b/,""),d=0;d<=f.suffixes.length;d++)if(w=Math.pow(f.base,d),h=Math.pow(f.base,d+1),t===null||t===0||t>=w&&t<h){s+=f.suffixes[d],w>0&&(t=t/w);break}return u=n._.numberToFormat(t,o,a),u+s},unformat:function(t){var o=n._.stringToNumber(t),a,u;if(o){for(a=e.suffixes.length-1;a>=0;a--){if(n._.includes(t,e.suffixes[a])){u=Math.pow(e.base,a);break}if(n._.includes(t,r.suffixes[a])){u=Math.pow(r.base,a);break}}o*=u||1}return o}})})(),(function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,a,u;for(r=r.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,r,l),e>=0?(t.before=t.before.replace(/[\-\(]/,""),t.after=t.after.replace(/[\-\)]/,"")):e<0&&!n._.includes(t.before,"-")&&!n._.includes(t.before,"(")&&(t.before="-"+t.before),u=0;u<t.before.length;u++)switch(a=t.before[u],a){case"$":o=n._.insert(o,i.currency.symbol,u);break;case" ":o=n._.insert(o," ",u+i.currency.symbol.length-1);break}for(u=t.after.length-1;u>=0;u--)switch(a=t.after[u],a){case"$":o=u===t.after.length-1?o+i.currency.symbol:n._.insert(o,i.currency.symbol,-(t.after.length-(1+u)));break;case" ":o=u===t.after.length-1?o+" ":n._.insert(o," ",-(t.after.length-(1+u)+i.currency.symbol.length-1));break}return o}})})(),(function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,r,l){var i,t=typeof e=="number"&&!n._.isNaN(e)?e.toExponential():"0e+0",o=t.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),i=n._.numberToFormat(Number(o[0]),r,l),i+"e"+o[1]},unformat:function(e){var r=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),l=Number(r[0]),i=Number(r[1]);i=n._.includes(e,"e-")?i*=-1:i;function t(o,a,u,f){var s=n._.correctionFactor(o,a),d=o*s*(a*s)/(s*s);return d}return n._.reduce([l,Math.pow(10,i)],t,1)}})})(),(function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t,o=n._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(e),t=n._.numberToFormat(e,r,l),t+o}})})(),(function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,r,l){var i=n._.includes(r," %")?" ":"",t;return n.options.scalePercentBy100&&(e=e*100),r=r.replace(/\s?\%/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"%"),t=t.join("")):t=t+i+"%",t},unformat:function(e){var r=n._.stringToNumber(e);return n.options.scalePercentBy100?r*.01:r}})})(),(function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,r,l){var i=Math.floor(e/60/60),t=Math.floor((e-i*60*60)/60),o=Math.round(e-i*60*60-t*60);return i+":"+(t<10?"0"+t:t)+":"+(o<10?"0"+o:o)},unformat:function(e){var r=e.split(":"),l=0;return r.length===3?(l=l+Number(r[0])*60*60,l=l+Number(r[1])*60,l=l+Number(r[2])):r.length===2&&(l=l+Number(r[0])*60,l=l+Number(r[1])),Number(l)}})})(),n})})(B.__module)),B.__module.exports}exports.__require=L;
1
+ "use strict";var e=require(`../../../../../_virtual/_rolldown/runtime.cjs`).__commonJSMin(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define(n):typeof t==`object`&&t.exports?t.exports=n():e.numeral=n()})(e,function(){var e,t,n=`2.0.6`,r={},i={},a={currentLocale:`en`,zeroFormat:null,nullFormat:null,defaultFormat:`0,0`,scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return e=function(n){var i,a,c,l;if(e.isNumeral(n))i=n.value();else if(n===0||n===void 0)i=0;else if(n===null||t.isNaN(n))i=null;else if(typeof n==`string`)if(o.zeroFormat&&n===o.zeroFormat)i=0;else if(o.nullFormat&&n===o.nullFormat||!n.replace(/[^0-9]+/g,``).length)i=null;else{for(a in r)if(l=typeof r[a].regexps.unformat==`function`?r[a].regexps.unformat():r[a].regexps.unformat,l&&n.match(l)){c=r[a].unformat;break}c||=e._.stringToNumber,i=c(n)}else i=Number(n)||null;return new s(n,i)},e.version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var a=i[e.options.currentLocale],o=!1,s=!1,c=0,l=``,u=0xe8d4a51000,d=1e9,f=1e6,p=1e3,m=``,h=!1,g,_,v,y,b,x,S;if(t||=0,_=Math.abs(t),e._.includes(n,`(`)?(o=!0,n=n.replace(/[\(|\)]/g,``)):(e._.includes(n,`+`)||e._.includes(n,`-`))&&(b=e._.includes(n,`+`)?n.indexOf(`+`):t<0?n.indexOf(`-`):-1,n=n.replace(/[\+|\-]/g,``)),e._.includes(n,`a`)&&(g=n.match(/a(k|m|b|t)?/),g=g?g[1]:!1,e._.includes(n,` a`)&&(l=` `),n=n.replace(RegExp(l+`a[kmbt]?`),``),_>=u&&!g||g===`t`?(l+=a.abbreviations.trillion,t/=u):_<u&&_>=d&&!g||g===`b`?(l+=a.abbreviations.billion,t/=d):_<d&&_>=f&&!g||g===`m`?(l+=a.abbreviations.million,t/=f):(_<f&&_>=p&&!g||g===`k`)&&(l+=a.abbreviations.thousand,t/=p)),e._.includes(n,`[.]`)&&(s=!0,n=n.replace(`[.]`,`.`)),v=t.toString().split(`.`)[0],y=n.split(`.`)[1],x=n.indexOf(`,`),c=(n.split(`.`)[0].split(`,`)[0].match(/0/g)||[]).length,y?(e._.includes(y,`[`)?(y=y.replace(`]`,``),y=y.split(`[`),m=e._.toFixed(t,y[0].length+y[1].length,r,y[1].length)):m=e._.toFixed(t,y.length,r),v=m.split(`.`)[0],m=e._.includes(m,`.`)?a.delimiters.decimal+m.split(`.`)[1]:``,s&&Number(m.slice(1))===0&&(m=``)):v=e._.toFixed(t,0,r),l&&!g&&Number(v)>=1e3&&l!==a.abbreviations.trillion)switch(v=String(Number(v)/1e3),l){case a.abbreviations.thousand:l=a.abbreviations.million;break;case a.abbreviations.million:l=a.abbreviations.billion;break;case a.abbreviations.billion:l=a.abbreviations.trillion;break}if(e._.includes(v,`-`)&&(v=v.slice(1),h=!0),v.length<c)for(var C=c-v.length;C>0;C--)v=`0`+v;return x>-1&&(v=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1`+a.delimiters.thousands)),n.indexOf(`.`)===0&&(v=``),S=v+m+(l||``),o?S=(o&&h?`(`:``)+S+(o&&h?`)`:``):b>=0?S=b===0?(h?`-`:`+`)+S:S+(h?`-`:`+`):h&&(S=`-`+S),S},stringToNumber:function(e){var t=i[o.currentLocale],n=e,r={thousand:3,million:6,billion:9,trillion:12},a,s,c;if(o.zeroFormat&&e===o.zeroFormat)s=0;else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,``).length)s=null;else{for(a in s=1,t.delimiters.decimal!==`.`&&(e=e.replace(/\./g,``).replace(t.delimiters.decimal,`.`)),r)if(c=RegExp(`[^a-zA-Z]`+t.abbreviations[a]+`(?:\\)|(\\`+t.currency.symbol+`)?(?:\\))?)?$`),n.match(c)){s*=10**r[a];break}s*=(e.split(`-`).length+Math.min(e.split(`(`).length-1,e.split(`)`).length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,``),s*=Number(e)}return s},isNaN:function(e){return typeof e==`number`&&isNaN(e)},includes:function(e,t){return e.indexOf(t)!==-1},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(this===null)throw TypeError(`Array.prototype.reduce called on null or undefined`);if(typeof t!=`function`)throw TypeError(t+` is not a function`);var n=Object(e),r=n.length>>>0,i=0,a;if(arguments.length===3)a=arguments[2];else{for(;i<r&&!(i in n);)i++;if(i>=r)throw TypeError(`Reduce of empty array with no initial value`);a=n[i++]}for(;i<r;i++)i in n&&(a=t(a,n[i],i,n));return a},multiplier:function(e){var t=e.toString().split(`.`);return t.length<2?1:10**t[1].length},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,n){var r=t.multiplier(n);return e>r?e:r},1)},toFixed:function(e,t,n,r){var i=e.toString().split(`.`),a=t-(r||0),o=i.length===2?Math.min(Math.max(i[1].length,a),t):a,s,c=10**o,l=(n(e+`e+`+o)/c).toFixed(o);return r>t-o&&(s=RegExp(`\\.?0{1,`+(r-(t-o))+`}$`),l=l.replace(s,``)),l}},e.options=o,e.formats=r,e.locales=i,e.locale=function(e){return e&&(o.currentLocale=e.toLowerCase()),o.currentLocale},e.localeData=function(e){if(!e)return i[o.currentLocale];if(e=e.toLowerCase(),!i[e])throw Error(`Unknown locale : `+e);return i[e]},e.reset=function(){for(var e in a)o[e]=a[e]},e.zeroFormat=function(e){o.zeroFormat=typeof e==`string`?e:null},e.nullFormat=function(e){o.nullFormat=typeof e==`string`?e:null},e.defaultFormat=function(e){o.defaultFormat=typeof e==`string`?e:`0.0`},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+`s`][t])throw TypeError(t+` `+e+` already registered.`);return this[e+`s`][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,c,l,u;if(typeof t!=`string`&&(t+=``,console.warn&&console.warn(`Numeral.js: Value is not string. It has been co-erced to: `,t)),t=t.trim(),t.match(/^\d+$/))return!0;if(t===``)return!1;try{l=e.localeData(n)}catch{l=e.localeData(e.locale())}return a=l.currency.symbol,s=l.abbreviations,r=l.delimiters.decimal,i=l.delimiters.thousands===`.`?`\\.`:l.delimiters.thousands,u=t.match(/^[^\d]+/),u!==null&&(t=t.substr(1),u[0]!==a)||(u=t.match(/[^\d]+$/),u!==null&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion))?!1:(c=RegExp(i+`{2}`),t.match(/[^\d.,]/g)?!1:(o=t.split(r),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(c):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(c)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(c)&&!!o[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i=this._value,a=t||o.defaultFormat,s,c,l;if(n||=Math.round,i===0&&o.zeroFormat!==null)c=o.zeroFormat;else if(i===null&&o.nullFormat!==null)c=o.nullFormat;else{for(s in r)if(a.match(r[s].regexps.format)){l=r[s].format;break}l||=e._.numberToFormat,c=l(i,a,n)}return c},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register(`locale`,`en`,{delimiters:{thousands:`,`,decimal:`.`},abbreviations:{thousand:`k`,million:`m`,billion:`b`,trillion:`t`},ordinal:function(e){var t=e%10;return~~(e%100/10)==1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`},currency:{symbol:`$`}}),(function(){e.register(`format`,`bps`,{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i=e._.includes(n,` BPS`)?` `:``,a;return t*=1e4,n=n.replace(/\s?BPS/,``),a=e._.numberToFormat(t,n,r),e._.includes(a,`)`)?(a=a.split(``),a.splice(-1,0,i+`BPS`),a=a.join(``)):a=a+i+`BPS`,a},unformat:function(t){return+(e._.stringToNumber(t)*1e-4).toFixed(15)}})})(),(function(){var t={base:1e3,suffixes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`]},n={base:1024,suffixes:[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`]},r=t.suffixes.concat(n.suffixes.filter(function(e){return t.suffixes.indexOf(e)<0})).join(`|`);r=`(`+r.replace(`B`,`B(?!PS)`)+`)`,e.register(`format`,`bytes`,{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,a){var o,s=e._.includes(i,`ib`)?n:t,c=e._.includes(i,` b`)||e._.includes(i,` ib`)?` `:``,l,u,d;for(i=i.replace(/\s?i?b/,``),l=0;l<=s.suffixes.length;l++)if(u=s.base**+l,d=s.base**+(l+1),r===null||r===0||r>=u&&r<d){c+=s.suffixes[l],u>0&&(r/=u);break}return o=e._.numberToFormat(r,i,a),o+c},unformat:function(r){var i=e._.stringToNumber(r),a,o;if(i){for(a=t.suffixes.length-1;a>=0;a--){if(e._.includes(r,t.suffixes[a])){o=t.base**+a;break}if(e._.includes(r,n.suffixes[a])){o=n.base**+a;break}}i*=o||1}return i}})})(),(function(){e.register(`format`,`currency`,{regexps:{format:/(\$)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,s,c;for(n=n.replace(/\s?\$\s?/,``),o=e._.numberToFormat(t,n,r),t>=0?(a.before=a.before.replace(/[\-\(]/,``),a.after=a.after.replace(/[\-\)]/,``)):t<0&&!e._.includes(a.before,`-`)&&!e._.includes(a.before,`(`)&&(a.before=`-`+a.before),c=0;c<a.before.length;c++)switch(s=a.before[c],s){case`$`:o=e._.insert(o,i.currency.symbol,c);break;case` `:o=e._.insert(o,` `,c+i.currency.symbol.length-1);break}for(c=a.after.length-1;c>=0;c--)switch(s=a.after[c],s){case`$`:o=c===a.after.length-1?o+i.currency.symbol:e._.insert(o,i.currency.symbol,-(a.after.length-(1+c)));break;case` `:o=c===a.after.length-1?o+` `:e._.insert(o,` `,-(a.after.length-(1+c)+i.currency.symbol.length-1));break}return o}})})(),(function(){e.register(`format`,`exponential`,{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i,a=(typeof t==`number`&&!e._.isNaN(t)?t.toExponential():`0e+0`).split(`e`);return n=n.replace(/e[\+|\-]{1}0/,``),i=e._.numberToFormat(Number(a[0]),n,r),i+`e`+a[1]},unformat:function(t){var n=e._.includes(t,`e+`)?t.split(`e+`):t.split(`e-`),r=Number(n[0]),i=Number(n[1]);i=e._.includes(t,`e-`)?i*=-1:i;function a(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}return e._.reduce([r,10**i],a,1)}})})(),(function(){e.register(`format`,`ordinal`,{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a,o=e._.includes(n,` o`)?` `:``;return n=n.replace(/\s?o/,``),o+=i.ordinal(t),a=e._.numberToFormat(t,n,r),a+o}})})(),(function(){e.register(`format`,`percentage`,{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i=e._.includes(n,` %`)?` `:``,a;return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,``),a=e._.numberToFormat(t,n,r),e._.includes(a,`)`)?(a=a.split(``),a.splice(-1,0,i+`%`),a=a.join(``)):a=a+i+`%`,a},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?n*.01:n}})})(),(function(){e.register(`format`,`time`,{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-r*60*60)/60),a=Math.round(e-r*60*60-i*60);return r+`:`+(i<10?`0`+i:i)+`:`+(a<10?`0`+a:a)},unformat:function(e){var t=e.split(`:`),n=0;return t.length===3?(n+=Number(t[0])*60*60,n+=Number(t[1])*60,n+=Number(t[2])):t.length===2&&(n+=Number(t[0])*60,n+=Number(t[1])),Number(n)}})})(),e})}));Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e()}});