@blockscout/ui-toolkit 0.0.1-alpha.0 → 0.0.1-alpha.2

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 (367) hide show
  1. package/README.md +8 -0
  2. package/dist/chakra/accordion.d.ts +1 -1
  3. package/dist/chakra/drawer.d.ts +1 -1
  4. package/dist/chakra/popover.d.ts +1 -2
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.js +9284 -0
  7. package/dist/package/src/index.d.ts +7 -11
  8. package/dist/theme/foundations/semanticTokens.ts +1 -5
  9. package/dist/theme/recipes/alert.recipe.d.ts +6 -46
  10. package/dist/theme/recipes/alert.recipe.ts +45 -48
  11. package/dist/theme/recipes/badge.recipe.d.ts +11 -44
  12. package/dist/theme/recipes/badge.recipe.ts +11 -45
  13. package/dist/theme/recipes/button.recipe.d.ts +17 -20
  14. package/dist/theme/recipes/button.recipe.ts +42 -27
  15. package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
  16. package/dist/theme/recipes/close-button.recipe.ts +0 -3
  17. package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
  18. package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
  19. package/dist/theme/recipes/index.d.ts +47 -147
  20. package/dist/theme/recipes/link.recipe.d.ts +1 -9
  21. package/dist/theme/recipes/link.recipe.ts +1 -9
  22. package/dist/theme/recipes/list.recipe.d.ts +1 -1
  23. package/dist/theme/recipes/menu.recipe.d.ts +1 -1
  24. package/dist/theme/recipes/popover.recipe.ts +4 -3
  25. package/dist/theme/recipes/select.recipe.d.ts +1 -1
  26. package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
  27. package/dist/theme/recipes/skeleton.recipe.ts +10 -9
  28. package/dist/theme/recipes/table.recipe.d.ts +1 -1
  29. package/dist/theme/recipes/tag.recipe.d.ts +0 -12
  30. package/dist/theme/recipes/tag.recipe.ts +0 -13
  31. package/dist/theme/recipes/toast.recipe.d.ts +1 -1
  32. package/package.json +14 -26
  33. package/dist/_virtual/Button.js +0 -4
  34. package/dist/_virtual/Element.js +0 -4
  35. package/dist/_virtual/Link2.js +0 -4
  36. package/dist/_virtual/_commonjsHelpers.js +0 -8
  37. package/dist/_virtual/_interop_require_default.js +0 -4
  38. package/dist/_virtual/_interop_require_wildcard.js +0 -4
  39. package/dist/_virtual/add-base-path.js +0 -4
  40. package/dist/_virtual/add-locale.js +0 -4
  41. package/dist/_virtual/add-locale2.js +0 -4
  42. package/dist/_virtual/add-path-prefix.js +0 -4
  43. package/dist/_virtual/animate-scroll.js +0 -4
  44. package/dist/_virtual/app-paths.js +0 -4
  45. package/dist/_virtual/cancel-events.js +0 -4
  46. package/dist/_virtual/constants.js +0 -4
  47. package/dist/_virtual/detect-domain-locale.js +0 -4
  48. package/dist/_virtual/detect-domain-locale2.js +0 -4
  49. package/dist/_virtual/ensure-leading-slash.js +0 -4
  50. package/dist/_virtual/escape-regexp.js +0 -4
  51. package/dist/_virtual/format-url.js +0 -4
  52. package/dist/_virtual/get-domain-locale.js +0 -4
  53. package/dist/_virtual/has-base-path.js +0 -4
  54. package/dist/_virtual/index.js +0 -5
  55. package/dist/_virtual/index2.js +0 -4
  56. package/dist/_virtual/index3.js +0 -4
  57. package/dist/_virtual/index4.js +0 -4
  58. package/dist/_virtual/index5.js +0 -4
  59. package/dist/_virtual/interception-routes.js +0 -4
  60. package/dist/_virtual/interpolate-as.js +0 -4
  61. package/dist/_virtual/is-dynamic.js +0 -4
  62. package/dist/_virtual/is-local-url.js +0 -4
  63. package/dist/_virtual/jsx-runtime.js +0 -5
  64. package/dist/_virtual/jsx-runtime2.js +0 -4
  65. package/dist/_virtual/link.js +0 -7
  66. package/dist/_virtual/link3.js +0 -4
  67. package/dist/_virtual/normalize-locale-path.js +0 -4
  68. package/dist/_virtual/normalize-locale-path2.js +0 -4
  69. package/dist/_virtual/normalize-trailing-slash.js +0 -4
  70. package/dist/_virtual/omit.js +0 -4
  71. package/dist/_virtual/parse-path.js +0 -4
  72. package/dist/_virtual/passive-event-listeners.js +0 -4
  73. package/dist/_virtual/path-has-prefix.js +0 -4
  74. package/dist/_virtual/querystring.js +0 -4
  75. package/dist/_virtual/react-is.development.js +0 -4
  76. package/dist/_virtual/react-is.production.min.js +0 -4
  77. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  78. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
  79. package/dist/_virtual/remove-trailing-slash.js +0 -4
  80. package/dist/_virtual/request-idle-callback.js +0 -4
  81. package/dist/_virtual/resolve-href.js +0 -4
  82. package/dist/_virtual/route-matcher.js +0 -4
  83. package/dist/_virtual/route-regex.js +0 -4
  84. package/dist/_virtual/router-context.shared-runtime.js +0 -4
  85. package/dist/_virtual/scroll-element.js +0 -4
  86. package/dist/_virtual/scroll-events.js +0 -4
  87. package/dist/_virtual/scroll-hash.js +0 -4
  88. package/dist/_virtual/scroll-link.js +0 -4
  89. package/dist/_virtual/scroll-spy.js +0 -4
  90. package/dist/_virtual/scroller.js +0 -4
  91. package/dist/_virtual/segment.js +0 -4
  92. package/dist/_virtual/smooth.js +0 -4
  93. package/dist/_virtual/sorted-routes.js +0 -4
  94. package/dist/_virtual/use-intersection.js +0 -4
  95. package/dist/_virtual/use-merged-ref.js +0 -4
  96. package/dist/_virtual/utils.js +0 -4
  97. package/dist/_virtual/utils2.js +0 -4
  98. package/dist/chakra/accordion.js +0 -61
  99. package/dist/chakra/alert.js +0 -45
  100. package/dist/chakra/avatar.js +0 -36
  101. package/dist/chakra/badge.js +0 -18
  102. package/dist/chakra/button.js +0 -65
  103. package/dist/chakra/checkbox.js +0 -33
  104. package/dist/chakra/close-button.js +0 -13
  105. package/dist/chakra/collapsible.js +0 -58
  106. package/dist/chakra/color-mode.js +0 -35
  107. package/dist/chakra/dialog.js +0 -47
  108. package/dist/chakra/drawer.js +0 -39
  109. package/dist/chakra/field.js +0 -65
  110. package/dist/chakra/heading.js +0 -12
  111. package/dist/chakra/icon-button.js +0 -44
  112. package/dist/chakra/image.js +0 -30
  113. package/dist/chakra/input-group.js +0 -47
  114. package/dist/chakra/input.js +0 -5
  115. package/dist/chakra/link.js +0 -68
  116. package/dist/chakra/menu.js +0 -63
  117. package/dist/chakra/pin-input.js +0 -15
  118. package/dist/chakra/popover.js +0 -69
  119. package/dist/chakra/progress-circle.js +0 -17
  120. package/dist/chakra/provider.js +0 -10
  121. package/dist/chakra/radio.js +0 -17
  122. package/dist/chakra/rating.js +0 -21
  123. package/dist/chakra/select.js +0 -185
  124. package/dist/chakra/skeleton.js +0 -40
  125. package/dist/chakra/slider.js +0 -39
  126. package/dist/chakra/switch.js +0 -19
  127. package/dist/chakra/table.js +0 -66
  128. package/dist/chakra/tabs.js +0 -29
  129. package/dist/chakra/tag.js +0 -51
  130. package/dist/chakra/textarea.js +0 -5
  131. package/dist/chakra/toaster.js +0 -31
  132. package/dist/chakra/tooltip.js +0 -85
  133. package/dist/chakra.d.ts +0 -1
  134. package/dist/chakra.js +0 -155
  135. package/dist/components/ButtonBackTo.js +0 -22
  136. package/dist/components/Filter/FilterInput.js +0 -48
  137. package/dist/components/TruncatedTextTooltip.js +0 -49
  138. package/dist/components.d.ts +0 -2
  139. package/dist/components.js +0 -1
  140. package/dist/configs/app/api.js +0 -23
  141. package/dist/configs/app/app.js +0 -19
  142. package/dist/configs/app/chain.js +0 -30
  143. package/dist/configs/app/features/account.js +0 -13
  144. package/dist/configs/app/features/addressMetadata.js +0 -15
  145. package/dist/configs/app/features/addressProfileAPI.js +0 -25
  146. package/dist/configs/app/features/addressVerification.js +0 -17
  147. package/dist/configs/app/features/adsBanner.js +0 -50
  148. package/dist/configs/app/features/adsText.js +0 -16
  149. package/dist/configs/app/features/advancedFilter.js +0 -11
  150. package/dist/configs/app/features/beaconChain.js +0 -15
  151. package/dist/configs/app/features/blockchainInteraction.js +0 -15
  152. package/dist/configs/app/features/bridgedTokens.js +0 -16
  153. package/dist/configs/app/features/celo.js +0 -13
  154. package/dist/configs/app/features/csvExport.js +0 -14
  155. package/dist/configs/app/features/dataAvailability.js +0 -11
  156. package/dist/configs/app/features/deFiDropdown.js +0 -12
  157. package/dist/configs/app/features/easterEggBadge.js +0 -12
  158. package/dist/configs/app/features/externalTxs.js +0 -14
  159. package/dist/configs/app/features/faultProofSystem.js +0 -12
  160. package/dist/configs/app/features/gasTracker.js +0 -17
  161. package/dist/configs/app/features/getGasButton.js +0 -17
  162. package/dist/configs/app/features/googleAnalytics.js +0 -12
  163. package/dist/configs/app/features/graphqlApiDocs.js +0 -12
  164. package/dist/configs/app/features/growthBook.js +0 -12
  165. package/dist/configs/app/features/index.js +0 -92
  166. package/dist/configs/app/features/marketplace.js +0 -46
  167. package/dist/configs/app/features/metasuites.js +0 -11
  168. package/dist/configs/app/features/mixpanel.js +0 -12
  169. package/dist/configs/app/features/mudFramework.js +0 -12
  170. package/dist/configs/app/features/multichainButton.js +0 -18
  171. package/dist/configs/app/features/nameService.js +0 -15
  172. package/dist/configs/app/features/pools.js +0 -15
  173. package/dist/configs/app/features/publicTagsSubmission.js +0 -17
  174. package/dist/configs/app/features/restApiDocs.js +0 -12
  175. package/dist/configs/app/features/rewards.js +0 -17
  176. package/dist/configs/app/features/rollbar.js +0 -20
  177. package/dist/configs/app/features/rollup.js +0 -37
  178. package/dist/configs/app/features/safe.js +0 -23
  179. package/dist/configs/app/features/saveOnGas.js +0 -13
  180. package/dist/configs/app/features/sol2uml.js +0 -16
  181. package/dist/configs/app/features/stats.js +0 -16
  182. package/dist/configs/app/features/suave.js +0 -11
  183. package/dist/configs/app/features/txInterpretation.js +0 -16
  184. package/dist/configs/app/features/userOps.js +0 -11
  185. package/dist/configs/app/features/validators.js +0 -16
  186. package/dist/configs/app/features/verifiedTokens.js +0 -15
  187. package/dist/configs/app/features/web3Wallet.js +0 -24
  188. package/dist/configs/app/features/xStarScore.js +0 -12
  189. package/dist/configs/app/index.js +0 -19
  190. package/dist/configs/app/meta.js +0 -16
  191. package/dist/configs/app/services.js +0 -9
  192. package/dist/configs/app/ui/views/address.js +0 -36
  193. package/dist/configs/app/ui/views/block.js +0 -11
  194. package/dist/configs/app/ui/views/index.js +0 -12
  195. package/dist/configs/app/ui/views/nft.js +0 -10
  196. package/dist/configs/app/ui/views/token.js +0 -7
  197. package/dist/configs/app/ui/views/tx.js +0 -15
  198. package/dist/configs/app/ui.js +0 -128
  199. package/dist/configs/app/utils.js +0 -45
  200. package/dist/hooks/useClipboard.js +0 -27
  201. package/dist/hooks/useDisclosure.js +0 -17
  202. package/dist/hooks/useViewportSize.js +0 -17
  203. package/dist/hooks.d.ts +0 -1
  204. package/dist/hooks.js +0 -8
  205. package/dist/icons/arrows/east-mini.svg.js +0 -4
  206. package/dist/icons/arrows/east.svg.js +0 -4
  207. package/dist/icons/check.svg.js +0 -4
  208. package/dist/icons/close.svg.js +0 -4
  209. package/dist/icons/info_filled.svg.js +0 -4
  210. package/dist/icons/link_external.svg.js +0 -4
  211. package/dist/icons/star_filled.svg.js +0 -4
  212. package/dist/icons/star_outline.svg.js +0 -4
  213. package/dist/lib/consts.js +0 -10
  214. package/dist/lib/hooks/useFirstMountState.js +0 -8
  215. package/dist/lib/hooks/useIsMobile.js +0 -7
  216. package/dist/lib/hooks/useUpdateEffect.js +0 -12
  217. package/dist/lib/html-entities.js +0 -5
  218. package/dist/lib/isBrowser.js +0 -6
  219. package/dist/lib/regexp.js +0 -4
  220. package/dist/lib/settings/colorTheme.js +0 -33
  221. package/dist/lib/stripTrailingSlash.js +0 -4
  222. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -13
  223. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -30
  224. package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
  225. package/dist/node_modules/bignumber.js/bignumber.js +0 -627
  226. package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
  227. package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
  228. package/dist/node_modules/lodash.throttle/index.js +0 -95
  229. package/dist/node_modules/next/dist/client/add-base-path.js +0 -24
  230. package/dist/node_modules/next/dist/client/add-locale.js +0 -25
  231. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -25
  232. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -33
  233. package/dist/node_modules/next/dist/client/has-base-path.js +0 -23
  234. package/dist/node_modules/next/dist/client/link.js +0 -249
  235. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -23
  236. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -26
  237. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -40
  238. package/dist/node_modules/next/dist/client/resolve-href.js +0 -67
  239. package/dist/node_modules/next/dist/client/use-intersection.js +0 -85
  240. package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -44
  241. package/dist/node_modules/next/dist/lib/constants.js +0 -285
  242. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -21
  243. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -28
  244. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -37
  245. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -20
  246. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -25
  247. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -25
  248. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -39
  249. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -57
  250. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -32
  251. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -90
  252. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -49
  253. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -22
  254. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -29
  255. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -23
  256. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -29
  257. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -25
  258. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -64
  259. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -20
  260. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -42
  261. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -167
  262. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -154
  263. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -21
  264. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -49
  265. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -166
  266. package/dist/node_modules/next/link.js +0 -8
  267. package/dist/node_modules/next-themes/dist/index.js +0 -85
  268. package/dist/node_modules/object-assign/index.js +0 -54
  269. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  270. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  271. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  272. package/dist/node_modules/prop-types/index.js +0 -17
  273. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  274. package/dist/node_modules/prop-types/lib/has.js +0 -7
  275. package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
  276. package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
  277. package/dist/node_modules/react-icons/lu/index.js +0 -12
  278. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
  279. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
  280. package/dist/node_modules/react-is/index.js +0 -10
  281. package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
  282. package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
  283. package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
  284. package/dist/node_modules/react-scroll/modules/index.js +0 -26
  285. package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
  286. package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
  287. package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
  288. package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
  289. package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
  290. package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
  291. package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
  292. package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
  293. package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
  294. package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
  295. package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
  296. package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
  297. package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
  298. package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
  299. package/dist/package/node_modules/react/jsx-runtime.js +0 -10
  300. package/dist/theme/foundations/animations.js +0 -15
  301. package/dist/theme/foundations/borders.js +0 -12
  302. package/dist/theme/foundations/breakpoints.js +0 -11
  303. package/dist/theme/foundations/colors.js +0 -163
  304. package/dist/theme/foundations/durations.js +0 -12
  305. package/dist/theme/foundations/semanticTokens.js +0 -474
  306. package/dist/theme/foundations/shadows.js +0 -16
  307. package/dist/theme/foundations/typography.js +0 -92
  308. package/dist/theme/foundations/zIndex.js +0 -24
  309. package/dist/theme/globalCss.js +0 -51
  310. package/dist/theme/globals/address-entity.js +0 -34
  311. package/dist/theme/globals/recaptcha.js +0 -21
  312. package/dist/theme/globals/scrollbar.js +0 -33
  313. package/dist/theme/index.d.ts +0 -1
  314. package/dist/theme/index.ts +0 -1
  315. package/dist/theme/recipes/accordion.recipe.js +0 -143
  316. package/dist/theme/recipes/alert.recipe.js +0 -134
  317. package/dist/theme/recipes/badge.recipe.js +0 -119
  318. package/dist/theme/recipes/button.recipe.js +0 -272
  319. package/dist/theme/recipes/checkbox.recipe.js +0 -53
  320. package/dist/theme/recipes/checkmark.recipe.js +0 -73
  321. package/dist/theme/recipes/close-button.recipe.js +0 -39
  322. package/dist/theme/recipes/dialog.recipe.js +0 -210
  323. package/dist/theme/recipes/drawer.recipe.js +0 -168
  324. package/dist/theme/recipes/field.recipe.js +0 -174
  325. package/dist/theme/recipes/index.js +0 -69
  326. package/dist/theme/recipes/input.recipe.js +0 -116
  327. package/dist/theme/recipes/link.recipe.js +0 -88
  328. package/dist/theme/recipes/list.recipe.js +0 -65
  329. package/dist/theme/recipes/menu.recipe.js +0 -104
  330. package/dist/theme/recipes/pin-input.recipe.js +0 -34
  331. package/dist/theme/recipes/popover.recipe.js +0 -72
  332. package/dist/theme/recipes/progress-circle.recipe.js +0 -74
  333. package/dist/theme/recipes/radio-group.recipe.js +0 -69
  334. package/dist/theme/recipes/radiomark.recipe.js +0 -87
  335. package/dist/theme/recipes/rating-group.recipe.js +0 -84
  336. package/dist/theme/recipes/select.recipe.js +0 -275
  337. package/dist/theme/recipes/skeleton.recipe.js +0 -54
  338. package/dist/theme/recipes/spinner.recipe.js +0 -33
  339. package/dist/theme/recipes/stat.recipe.js +0 -101
  340. package/dist/theme/recipes/switch.recipe.js +0 -125
  341. package/dist/theme/recipes/table.recipe.js +0 -83
  342. package/dist/theme/recipes/tabs.recipe.js +0 -216
  343. package/dist/theme/recipes/tag.recipe.js +0 -157
  344. package/dist/theme/recipes/textarea.recipe.js +0 -86
  345. package/dist/theme/recipes/toast.recipe.js +0 -98
  346. package/dist/theme/recipes/tooltip.recipe.js +0 -87
  347. package/dist/theme/theme.js +0 -40
  348. package/dist/theme/utils/entries.js +0 -11
  349. package/dist/theme.d.ts +0 -2
  350. package/dist/theme.js +0 -4
  351. package/dist/types/client/adProviders.js +0 -12
  352. package/dist/types/client/contract.js +0 -13
  353. package/dist/types/client/gasTracker.js +0 -7
  354. package/dist/types/client/navigation.js +0 -4
  355. package/dist/types/client/rollup.js +0 -11
  356. package/dist/types/client/txInterpretation.js +0 -8
  357. package/dist/types/client/validators.js +0 -8
  358. package/dist/types/client/wallets.js +0 -8
  359. package/dist/types/homepage.js +0 -15
  360. package/dist/types/views/address.js +0 -14
  361. package/dist/types/views/block.js +0 -12
  362. package/dist/types/views/tx.js +0 -16
  363. package/dist/ui/shared/forms/validators/url.js +0 -12
  364. package/dist/utils/getComponentDisplayName.js +0 -7
  365. package/dist/utils/index.d.ts +0 -1
  366. package/dist/utils.d.ts +0 -2
  367. package/dist/utils.js +0 -4
@@ -1,627 +0,0 @@
1
- var Ee = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ce = Math.ceil, X = Math.floor, C = "[BigNumber Error] ", ge = C + "Number primitive has more than 15 significant digits: ", z = 1e14, N = 14, pe = 9007199254740991, ae = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], J = 1e7, k = 1e9;
2
- function we(O) {
3
- var E, x, R, g = h.prototype = { constructor: h, toString: null, valueOf: null }, T = new h(1), _ = 20, S = 4, L = -7, U = 21, Q = -1e7, $ = 1e7, Z = !1, b = 1, Y = 0, te = {
4
- prefix: "",
5
- groupSize: 3,
6
- secondaryGroupSize: 0,
7
- groupSeparator: ",",
8
- decimalSeparator: ".",
9
- fractionGroupSize: 0,
10
- fractionGroupSeparator: " ",
11
- // non-breaking space
12
- suffix: ""
13
- }, K = "0123456789abcdefghijklmnopqrstuvwxyz", fe = !0;
14
- function h(e, r) {
15
- var i, s, t, l, c, n, f, u, o = this;
16
- if (!(o instanceof h)) return new h(e, r);
17
- if (r == null) {
18
- if (e && e._isBigNumber === !0) {
19
- o.s = e.s, !e.c || e.e > $ ? o.c = o.e = null : e.e < Q ? o.c = [o.e = 0] : (o.e = e.e, o.c = e.c.slice());
20
- return;
21
- }
22
- if ((n = typeof e == "number") && e * 0 == 0) {
23
- if (o.s = 1 / e < 0 ? (e = -e, -1) : 1, e === ~~e) {
24
- for (l = 0, c = e; c >= 10; c /= 10, l++) ;
25
- l > $ ? o.c = o.e = null : (o.e = l, o.c = [e]);
26
- return;
27
- }
28
- u = String(e);
29
- } else {
30
- if (!Ee.test(u = String(e))) return R(o, u, n);
31
- o.s = u.charCodeAt(0) == 45 ? (u = u.slice(1), -1) : 1;
32
- }
33
- (l = u.indexOf(".")) > -1 && (u = u.replace(".", "")), (c = u.search(/e/i)) > 0 ? (l < 0 && (l = c), l += +u.slice(c + 1), u = u.substring(0, c)) : l < 0 && (l = u.length);
34
- } else {
35
- if (v(r, 2, K.length, "Base"), r == 10 && fe)
36
- return o = new h(e), G(o, _ + o.e + 1, S);
37
- if (u = String(e), n = typeof e == "number") {
38
- if (e * 0 != 0) return R(o, u, n, r);
39
- if (o.s = 1 / e < 0 ? (u = u.slice(1), -1) : 1, h.DEBUG && u.replace(/^0\.0*|\./, "").length > 15)
40
- throw Error(ge + e);
41
- } else
42
- o.s = u.charCodeAt(0) === 45 ? (u = u.slice(1), -1) : 1;
43
- for (i = K.slice(0, r), l = c = 0, f = u.length; c < f; c++)
44
- if (i.indexOf(s = u.charAt(c)) < 0) {
45
- if (s == ".") {
46
- if (c > l) {
47
- l = f;
48
- continue;
49
- }
50
- } else if (!t && (u == u.toUpperCase() && (u = u.toLowerCase()) || u == u.toLowerCase() && (u = u.toUpperCase()))) {
51
- t = !0, c = -1, l = 0;
52
- continue;
53
- }
54
- return R(o, String(e), n, r);
55
- }
56
- n = !1, u = x(u, r, 10, o.s), (l = u.indexOf(".")) > -1 ? u = u.replace(".", "") : l = u.length;
57
- }
58
- for (c = 0; u.charCodeAt(c) === 48; c++) ;
59
- for (f = u.length; u.charCodeAt(--f) === 48; ) ;
60
- if (u = u.slice(c, ++f)) {
61
- if (f -= c, n && h.DEBUG && f > 15 && (e > pe || e !== X(e)))
62
- throw Error(ge + o.s * e);
63
- if ((l = l - c - 1) > $)
64
- o.c = o.e = null;
65
- else if (l < Q)
66
- o.c = [o.e = 0];
67
- else {
68
- if (o.e = l, o.c = [], c = (l + 1) % N, l < 0 && (c += N), c < f) {
69
- for (c && o.c.push(+u.slice(0, c)), f -= N; c < f; )
70
- o.c.push(+u.slice(c, c += N));
71
- c = N - (u = u.slice(c)).length;
72
- } else
73
- c -= f;
74
- for (; c--; u += "0") ;
75
- o.c.push(+u);
76
- }
77
- } else
78
- o.c = [o.e = 0];
79
- }
80
- h.clone = we, h.ROUND_UP = 0, h.ROUND_DOWN = 1, h.ROUND_CEIL = 2, h.ROUND_FLOOR = 3, h.ROUND_HALF_UP = 4, h.ROUND_HALF_DOWN = 5, h.ROUND_HALF_EVEN = 6, h.ROUND_HALF_CEIL = 7, h.ROUND_HALF_FLOOR = 8, h.EUCLID = 9, h.config = h.set = function(e) {
81
- var r, i;
82
- if (e != null)
83
- if (typeof e == "object") {
84
- if (e.hasOwnProperty(r = "DECIMAL_PLACES") && (i = e[r], v(i, 0, k, r), _ = i), e.hasOwnProperty(r = "ROUNDING_MODE") && (i = e[r], v(i, 0, 8, r), S = i), e.hasOwnProperty(r = "EXPONENTIAL_AT") && (i = e[r], i && i.pop ? (v(i[0], -1e9, 0, r), v(i[1], 0, k, r), L = i[0], U = i[1]) : (v(i, -1e9, k, r), L = -(U = i < 0 ? -i : i))), e.hasOwnProperty(r = "RANGE"))
85
- if (i = e[r], i && i.pop)
86
- v(i[0], -1e9, -1, r), v(i[1], 1, k, r), Q = i[0], $ = i[1];
87
- else if (v(i, -1e9, k, r), i)
88
- Q = -($ = i < 0 ? -i : i);
89
- else
90
- throw Error(C + r + " cannot be zero: " + i);
91
- if (e.hasOwnProperty(r = "CRYPTO"))
92
- if (i = e[r], i === !!i)
93
- if (i)
94
- if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
95
- Z = i;
96
- else
97
- throw Z = !i, Error(C + "crypto unavailable");
98
- else
99
- Z = i;
100
- else
101
- throw Error(C + r + " not true or false: " + i);
102
- if (e.hasOwnProperty(r = "MODULO_MODE") && (i = e[r], v(i, 0, 9, r), b = i), e.hasOwnProperty(r = "POW_PRECISION") && (i = e[r], v(i, 0, k, r), Y = i), e.hasOwnProperty(r = "FORMAT"))
103
- if (i = e[r], typeof i == "object") te = i;
104
- else throw Error(C + r + " not an object: " + i);
105
- if (e.hasOwnProperty(r = "ALPHABET"))
106
- if (i = e[r], typeof i == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(i))
107
- fe = i.slice(0, 10) == "0123456789", K = i;
108
- else
109
- throw Error(C + r + " invalid: " + i);
110
- } else
111
- throw Error(C + "Object expected: " + e);
112
- return {
113
- DECIMAL_PLACES: _,
114
- ROUNDING_MODE: S,
115
- EXPONENTIAL_AT: [L, U],
116
- RANGE: [Q, $],
117
- CRYPTO: Z,
118
- MODULO_MODE: b,
119
- POW_PRECISION: Y,
120
- FORMAT: te,
121
- ALPHABET: K
122
- };
123
- }, h.isBigNumber = function(e) {
124
- if (!e || e._isBigNumber !== !0) return !1;
125
- if (!h.DEBUG) return !0;
126
- var r, i, s = e.c, t = e.e, l = e.s;
127
- e: if ({}.toString.call(s) == "[object Array]") {
128
- if ((l === 1 || l === -1) && t >= -1e9 && t <= k && t === X(t)) {
129
- if (s[0] === 0) {
130
- if (t === 0 && s.length === 1) return !0;
131
- break e;
132
- }
133
- if (r = (t + 1) % N, r < 1 && (r += N), String(s[0]).length == r) {
134
- for (r = 0; r < s.length; r++)
135
- if (i = s[r], i < 0 || i >= z || i !== X(i)) break e;
136
- if (i !== 0) return !0;
137
- }
138
- }
139
- } else if (s === null && t === null && (l === null || l === 1 || l === -1))
140
- return !0;
141
- throw Error(C + "Invalid BigNumber: " + e);
142
- }, h.maximum = h.max = function() {
143
- return he(arguments, g.lt);
144
- }, h.minimum = h.min = function() {
145
- return he(arguments, g.gt);
146
- }, h.random = function() {
147
- var e = 9007199254740992, r = Math.random() * e & 2097151 ? function() {
148
- return X(Math.random() * e);
149
- } : function() {
150
- return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
151
- };
152
- return function(i) {
153
- var s, t, l, c, n, f = 0, u = [], o = new h(T);
154
- if (i == null ? i = _ : v(i, 0, k), c = ce(i / N), Z)
155
- if (crypto.getRandomValues) {
156
- for (s = crypto.getRandomValues(new Uint32Array(c *= 2)); f < c; )
157
- n = s[f] * 131072 + (s[f + 1] >>> 11), n >= 9e15 ? (t = crypto.getRandomValues(new Uint32Array(2)), s[f] = t[0], s[f + 1] = t[1]) : (u.push(n % 1e14), f += 2);
158
- f = c / 2;
159
- } else if (crypto.randomBytes) {
160
- for (s = crypto.randomBytes(c *= 7); f < c; )
161
- n = (s[f] & 31) * 281474976710656 + s[f + 1] * 1099511627776 + s[f + 2] * 4294967296 + s[f + 3] * 16777216 + (s[f + 4] << 16) + (s[f + 5] << 8) + s[f + 6], n >= 9e15 ? crypto.randomBytes(7).copy(s, f) : (u.push(n % 1e14), f += 7);
162
- f = c / 7;
163
- } else
164
- throw Z = !1, Error(C + "crypto unavailable");
165
- if (!Z)
166
- for (; f < c; )
167
- n = r(), n < 9e15 && (u[f++] = n % 1e14);
168
- for (c = u[--f], i %= N, c && i && (n = ae[N - i], u[f] = X(c / n) * n); u[f] === 0; u.pop(), f--) ;
169
- if (f < 0)
170
- u = [l = 0];
171
- else {
172
- for (l = -1; u[0] === 0; u.splice(0, 1), l -= N) ;
173
- for (f = 1, n = u[0]; n >= 10; n /= 10, f++) ;
174
- f < N && (l -= N - f);
175
- }
176
- return o.e = l, o.c = u, o;
177
- };
178
- }(), h.sum = function() {
179
- for (var e = 1, r = arguments, i = new h(r[0]); e < r.length; ) i = i.plus(r[e++]);
180
- return i;
181
- }, x = /* @__PURE__ */ function() {
182
- var e = "0123456789";
183
- function r(i, s, t, l) {
184
- for (var c, n = [0], f, u = 0, o = i.length; u < o; ) {
185
- for (f = n.length; f--; n[f] *= s) ;
186
- for (n[0] += l.indexOf(i.charAt(u++)), c = 0; c < n.length; c++)
187
- n[c] > t - 1 && (n[c + 1] == null && (n[c + 1] = 0), n[c + 1] += n[c] / t | 0, n[c] %= t);
188
- }
189
- return n.reverse();
190
- }
191
- return function(i, s, t, l, c) {
192
- var n, f, u, o, a, p, w, A, B = i.indexOf("."), M = _, m = S;
193
- for (B >= 0 && (o = Y, Y = 0, i = i.replace(".", ""), A = new h(s), p = A.pow(i.length - B), Y = o, A.c = r(
194
- W(q(p.c), p.e, "0"),
195
- 10,
196
- t,
197
- e
198
- ), A.e = A.c.length), w = r(i, s, t, c ? (n = K, e) : (n = e, K)), u = o = w.length; w[--o] == 0; w.pop()) ;
199
- if (!w[0]) return n.charAt(0);
200
- if (B < 0 ? --u : (p.c = w, p.e = u, p.s = l, p = E(p, A, M, m, t), w = p.c, a = p.r, u = p.e), f = u + M + 1, B = w[f], o = t / 2, a = a || f < 0 || w[f + 1] != null, a = m < 4 ? (B != null || a) && (m == 0 || m == (p.s < 0 ? 3 : 2)) : B > o || B == o && (m == 4 || a || m == 6 && w[f - 1] & 1 || m == (p.s < 0 ? 8 : 7)), f < 1 || !w[0])
201
- i = a ? W(n.charAt(1), -M, n.charAt(0)) : n.charAt(0);
202
- else {
203
- if (w.length = f, a)
204
- for (--t; ++w[--f] > t; )
205
- w[f] = 0, f || (++u, w = [1].concat(w));
206
- for (o = w.length; !w[--o]; ) ;
207
- for (B = 0, i = ""; B <= o; i += n.charAt(w[B++])) ;
208
- i = W(i, u, n.charAt(0));
209
- }
210
- return i;
211
- };
212
- }(), E = /* @__PURE__ */ function() {
213
- function e(s, t, l) {
214
- var c, n, f, u, o = 0, a = s.length, p = t % J, w = t / J | 0;
215
- for (s = s.slice(); a--; )
216
- f = s[a] % J, u = s[a] / J | 0, c = w * f + u * p, n = p * f + c % J * J + o, o = (n / l | 0) + (c / J | 0) + w * u, s[a] = n % l;
217
- return o && (s = [o].concat(s)), s;
218
- }
219
- function r(s, t, l, c) {
220
- var n, f;
221
- if (l != c)
222
- f = l > c ? 1 : -1;
223
- else
224
- for (n = f = 0; n < l; n++)
225
- if (s[n] != t[n]) {
226
- f = s[n] > t[n] ? 1 : -1;
227
- break;
228
- }
229
- return f;
230
- }
231
- function i(s, t, l, c) {
232
- for (var n = 0; l--; )
233
- s[l] -= n, n = s[l] < t[l] ? 1 : 0, s[l] = n * c + s[l] - t[l];
234
- for (; !s[0] && s.length > 1; s.splice(0, 1)) ;
235
- }
236
- return function(s, t, l, c, n) {
237
- var f, u, o, a, p, w, A, B, M, m, d, D, re, se, ue, H, ee, F = s.s == t.s ? 1 : -1, P = s.c, I = t.c;
238
- if (!P || !P[0] || !I || !I[0])
239
- return new h(
240
- // Return NaN if either NaN, or both Infinity or 0.
241
- !s.s || !t.s || (P ? I && P[0] == I[0] : !I) ? NaN : (
242
- // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
243
- P && P[0] == 0 || !I ? F * 0 : F / 0
244
- )
245
- );
246
- for (B = new h(F), M = B.c = [], u = s.e - t.e, F = l + u + 1, n || (n = z, u = y(s.e / N) - y(t.e / N), F = F / N | 0), o = 0; I[o] == (P[o] || 0); o++) ;
247
- if (I[o] > (P[o] || 0) && u--, F < 0)
248
- M.push(1), a = !0;
249
- else {
250
- for (se = P.length, H = I.length, o = 0, F += 2, p = X(n / (I[0] + 1)), p > 1 && (I = e(I, p, n), P = e(P, p, n), H = I.length, se = P.length), re = H, m = P.slice(0, H), d = m.length; d < H; m[d++] = 0) ;
251
- ee = I.slice(), ee = [0].concat(ee), ue = I[0], I[1] >= n / 2 && ue++;
252
- do {
253
- if (p = 0, f = r(I, m, H, d), f < 0) {
254
- if (D = m[0], H != d && (D = D * n + (m[1] || 0)), p = X(D / ue), p > 1)
255
- for (p >= n && (p = n - 1), w = e(I, p, n), A = w.length, d = m.length; r(w, m, A, d) == 1; )
256
- p--, i(w, H < A ? ee : I, A, n), A = w.length, f = 1;
257
- else
258
- p == 0 && (f = p = 1), w = I.slice(), A = w.length;
259
- if (A < d && (w = [0].concat(w)), i(m, w, d, n), d = m.length, f == -1)
260
- for (; r(I, m, H, d) < 1; )
261
- p++, i(m, H < d ? ee : I, d, n), d = m.length;
262
- } else f === 0 && (p++, m = [0]);
263
- M[o++] = p, m[0] ? m[d++] = P[re] || 0 : (m = [P[re]], d = 1);
264
- } while ((re++ < se || m[0] != null) && F--);
265
- a = m[0] != null, M[0] || M.splice(0, 1);
266
- }
267
- if (n == z) {
268
- for (o = 1, F = M[0]; F >= 10; F /= 10, o++) ;
269
- G(B, l + (B.e = o + u * N - 1) + 1, c, a);
270
- } else
271
- B.e = u, B.r = +a;
272
- return B;
273
- };
274
- }();
275
- function le(e, r, i, s) {
276
- var t, l, c, n, f;
277
- if (i == null ? i = S : v(i, 0, 8), !e.c) return e.toString();
278
- if (t = e.c[0], c = e.e, r == null)
279
- f = q(e.c), f = s == 1 || s == 2 && (c <= L || c >= U) ? ne(f, c) : W(f, c, "0");
280
- else if (e = G(new h(e), r, i), l = e.e, f = q(e.c), n = f.length, s == 1 || s == 2 && (r <= l || l <= L)) {
281
- for (; n < r; f += "0", n++) ;
282
- f = ne(f, l);
283
- } else if (r -= c, f = W(f, l, "0"), l + 1 > n) {
284
- if (--r > 0) for (f += "."; r--; f += "0") ;
285
- } else if (r += l - n, r > 0)
286
- for (l + 1 == n && (f += "."); r--; f += "0") ;
287
- return e.s < 0 && t ? "-" + f : f;
288
- }
289
- function he(e, r) {
290
- for (var i, s = 1, t = new h(e[0]); s < e.length; s++)
291
- if (i = new h(e[s]), i.s)
292
- r.call(t, i) && (t = i);
293
- else {
294
- t = i;
295
- break;
296
- }
297
- return t;
298
- }
299
- function oe(e, r, i) {
300
- for (var s = 1, t = r.length; !r[--t]; r.pop()) ;
301
- for (t = r[0]; t >= 10; t /= 10, s++) ;
302
- return (i = s + i * N - 1) > $ ? e.c = e.e = null : i < Q ? e.c = [e.e = 0] : (e.e = i, e.c = r), e;
303
- }
304
- R = /* @__PURE__ */ function() {
305
- var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, r = /^([^.]+)\.$/, i = /^\.([^.]+)$/, s = /^-?(Infinity|NaN)$/, t = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
306
- return function(l, c, n, f) {
307
- var u, o = n ? c : c.replace(t, "");
308
- if (s.test(o))
309
- l.s = isNaN(o) ? null : o < 0 ? -1 : 1;
310
- else {
311
- if (!n && (o = o.replace(e, function(a, p, w) {
312
- return u = (w = w.toLowerCase()) == "x" ? 16 : w == "b" ? 2 : 8, !f || f == u ? p : a;
313
- }), f && (u = f, o = o.replace(r, "$1").replace(i, "0.$1")), c != o))
314
- return new h(o, u);
315
- if (h.DEBUG)
316
- throw Error(C + "Not a" + (f ? " base " + f : "") + " number: " + c);
317
- l.s = null;
318
- }
319
- l.c = l.e = null;
320
- };
321
- }();
322
- function G(e, r, i, s) {
323
- var t, l, c, n, f, u, o, a = e.c, p = ae;
324
- if (a) {
325
- e: {
326
- for (t = 1, n = a[0]; n >= 10; n /= 10, t++) ;
327
- if (l = r - t, l < 0)
328
- l += N, c = r, f = a[u = 0], o = f / p[t - c - 1] % 10 | 0;
329
- else if (u = ce((l + 1) / N), u >= a.length)
330
- if (s) {
331
- for (; a.length <= u; a.push(0)) ;
332
- f = o = 0, t = 1, l %= N, c = l - N + 1;
333
- } else
334
- break e;
335
- else {
336
- for (f = n = a[u], t = 1; n >= 10; n /= 10, t++) ;
337
- l %= N, c = l - N + t, o = c < 0 ? 0 : f / p[t - c - 1] % 10 | 0;
338
- }
339
- if (s = s || r < 0 || // Are there any non-zero digits after the rounding digit?
340
- // The expression n % pows10[d - j - 1] returns all digits of n to the right
341
- // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
342
- a[u + 1] != null || (c < 0 ? f : f % p[t - c - 1]), s = i < 4 ? (o || s) && (i == 0 || i == (e.s < 0 ? 3 : 2)) : o > 5 || o == 5 && (i == 4 || s || i == 6 && // Check whether the digit to the left of the rounding digit is odd.
343
- (l > 0 ? c > 0 ? f / p[t - c] : 0 : a[u - 1]) % 10 & 1 || i == (e.s < 0 ? 8 : 7)), r < 1 || !a[0])
344
- return a.length = 0, s ? (r -= e.e + 1, a[0] = p[(N - r % N) % N], e.e = -r || 0) : a[0] = e.e = 0, e;
345
- if (l == 0 ? (a.length = u, n = 1, u--) : (a.length = u + 1, n = p[N - l], a[u] = c > 0 ? X(f / p[t - c] % p[c]) * n : 0), s)
346
- for (; ; )
347
- if (u == 0) {
348
- for (l = 1, c = a[0]; c >= 10; c /= 10, l++) ;
349
- for (c = a[0] += n, n = 1; c >= 10; c /= 10, n++) ;
350
- l != n && (e.e++, a[0] == z && (a[0] = 1));
351
- break;
352
- } else {
353
- if (a[u] += n, a[u] != z) break;
354
- a[u--] = 0, n = 1;
355
- }
356
- for (l = a.length; a[--l] === 0; a.pop()) ;
357
- }
358
- e.e > $ ? e.c = e.e = null : e.e < Q && (e.c = [e.e = 0]);
359
- }
360
- return e;
361
- }
362
- function V(e) {
363
- var r, i = e.e;
364
- return i === null ? e.toString() : (r = q(e.c), r = i <= L || i >= U ? ne(r, i) : W(r, i, "0"), e.s < 0 ? "-" + r : r);
365
- }
366
- return g.absoluteValue = g.abs = function() {
367
- var e = new h(this);
368
- return e.s < 0 && (e.s = 1), e;
369
- }, g.comparedTo = function(e, r) {
370
- return j(this, new h(e, r));
371
- }, g.decimalPlaces = g.dp = function(e, r) {
372
- var i, s, t, l = this;
373
- if (e != null)
374
- return v(e, 0, k), r == null ? r = S : v(r, 0, 8), G(new h(l), e + l.e + 1, r);
375
- if (!(i = l.c)) return null;
376
- if (s = ((t = i.length - 1) - y(this.e / N)) * N, t = i[t]) for (; t % 10 == 0; t /= 10, s--) ;
377
- return s < 0 && (s = 0), s;
378
- }, g.dividedBy = g.div = function(e, r) {
379
- return E(this, new h(e, r), _, S);
380
- }, g.dividedToIntegerBy = g.idiv = function(e, r) {
381
- return E(this, new h(e, r), 0, 1);
382
- }, g.exponentiatedBy = g.pow = function(e, r) {
383
- var i, s, t, l, c, n, f, u, o, a = this;
384
- if (e = new h(e), e.c && !e.isInteger())
385
- throw Error(C + "Exponent not an integer: " + V(e));
386
- if (r != null && (r = new h(r)), n = e.e > 14, !a.c || !a.c[0] || a.c[0] == 1 && !a.e && a.c.length == 1 || !e.c || !e.c[0])
387
- return o = new h(Math.pow(+V(a), n ? 2 - ie(e) : +V(e))), r ? o.mod(r) : o;
388
- if (f = e.s < 0, r) {
389
- if (r.c ? !r.c[0] : !r.s) return new h(NaN);
390
- s = !f && a.isInteger() && r.isInteger(), s && (a = a.mod(r));
391
- } else {
392
- if (e.e > 9 && (a.e > 0 || a.e < -1 || (a.e == 0 ? a.c[0] > 1 || n && a.c[1] >= 24e7 : a.c[0] < 8e13 || n && a.c[0] <= 9999975e7)))
393
- return l = a.s < 0 && ie(e) ? -0 : 0, a.e > -1 && (l = 1 / l), new h(f ? 1 / l : l);
394
- Y && (l = ce(Y / N + 2));
395
- }
396
- for (n ? (i = new h(0.5), f && (e.s = 1), u = ie(e)) : (t = Math.abs(+V(e)), u = t % 2), o = new h(T); ; ) {
397
- if (u) {
398
- if (o = o.times(a), !o.c) break;
399
- l ? o.c.length > l && (o.c.length = l) : s && (o = o.mod(r));
400
- }
401
- if (t) {
402
- if (t = X(t / 2), t === 0) break;
403
- u = t % 2;
404
- } else if (e = e.times(i), G(e, e.e + 1, 1), e.e > 14)
405
- u = ie(e);
406
- else {
407
- if (t = +V(e), t === 0) break;
408
- u = t % 2;
409
- }
410
- a = a.times(a), l ? a.c && a.c.length > l && (a.c.length = l) : s && (a = a.mod(r));
411
- }
412
- return s ? o : (f && (o = T.div(o)), r ? o.mod(r) : l ? G(o, Y, S, c) : o);
413
- }, g.integerValue = function(e) {
414
- var r = new h(this);
415
- return e == null ? e = S : v(e, 0, 8), G(r, r.e + 1, e);
416
- }, g.isEqualTo = g.eq = function(e, r) {
417
- return j(this, new h(e, r)) === 0;
418
- }, g.isFinite = function() {
419
- return !!this.c;
420
- }, g.isGreaterThan = g.gt = function(e, r) {
421
- return j(this, new h(e, r)) > 0;
422
- }, g.isGreaterThanOrEqualTo = g.gte = function(e, r) {
423
- return (r = j(this, new h(e, r))) === 1 || r === 0;
424
- }, g.isInteger = function() {
425
- return !!this.c && y(this.e / N) > this.c.length - 2;
426
- }, g.isLessThan = g.lt = function(e, r) {
427
- return j(this, new h(e, r)) < 0;
428
- }, g.isLessThanOrEqualTo = g.lte = function(e, r) {
429
- return (r = j(this, new h(e, r))) === -1 || r === 0;
430
- }, g.isNaN = function() {
431
- return !this.s;
432
- }, g.isNegative = function() {
433
- return this.s < 0;
434
- }, g.isPositive = function() {
435
- return this.s > 0;
436
- }, g.isZero = function() {
437
- return !!this.c && this.c[0] == 0;
438
- }, g.minus = function(e, r) {
439
- var i, s, t, l, c = this, n = c.s;
440
- if (e = new h(e, r), r = e.s, !n || !r) return new h(NaN);
441
- if (n != r)
442
- return e.s = -r, c.plus(e);
443
- var f = c.e / N, u = e.e / N, o = c.c, a = e.c;
444
- if (!f || !u) {
445
- if (!o || !a) return o ? (e.s = -r, e) : new h(a ? c : NaN);
446
- if (!o[0] || !a[0])
447
- return a[0] ? (e.s = -r, e) : new h(o[0] ? c : (
448
- // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
449
- S == 3 ? -0 : 0
450
- ));
451
- }
452
- if (f = y(f), u = y(u), o = o.slice(), n = f - u) {
453
- for ((l = n < 0) ? (n = -n, t = o) : (u = f, t = a), t.reverse(), r = n; r--; t.push(0)) ;
454
- t.reverse();
455
- } else
456
- for (s = (l = (n = o.length) < (r = a.length)) ? n : r, n = r = 0; r < s; r++)
457
- if (o[r] != a[r]) {
458
- l = o[r] < a[r];
459
- break;
460
- }
461
- if (l && (t = o, o = a, a = t, e.s = -e.s), r = (s = a.length) - (i = o.length), r > 0) for (; r--; o[i++] = 0) ;
462
- for (r = z - 1; s > n; ) {
463
- if (o[--s] < a[s]) {
464
- for (i = s; i && !o[--i]; o[i] = r) ;
465
- --o[i], o[s] += z;
466
- }
467
- o[s] -= a[s];
468
- }
469
- for (; o[0] == 0; o.splice(0, 1), --u) ;
470
- return o[0] ? oe(e, o, u) : (e.s = S == 3 ? -1 : 1, e.c = [e.e = 0], e);
471
- }, g.modulo = g.mod = function(e, r) {
472
- var i, s, t = this;
473
- return e = new h(e, r), !t.c || !e.s || e.c && !e.c[0] ? new h(NaN) : !e.c || t.c && !t.c[0] ? new h(t) : (b == 9 ? (s = e.s, e.s = 1, i = E(t, e, 0, 3), e.s = s, i.s *= s) : i = E(t, e, 0, b), e = t.minus(i.times(e)), !e.c[0] && b == 1 && (e.s = t.s), e);
474
- }, g.multipliedBy = g.times = function(e, r) {
475
- var i, s, t, l, c, n, f, u, o, a, p, w, A, B, M, m = this, d = m.c, D = (e = new h(e, r)).c;
476
- if (!d || !D || !d[0] || !D[0])
477
- return !m.s || !e.s || d && !d[0] && !D || D && !D[0] && !d ? e.c = e.e = e.s = null : (e.s *= m.s, !d || !D ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
478
- for (s = y(m.e / N) + y(e.e / N), e.s *= m.s, f = d.length, a = D.length, f < a && (A = d, d = D, D = A, t = f, f = a, a = t), t = f + a, A = []; t--; A.push(0)) ;
479
- for (B = z, M = J, t = a; --t >= 0; ) {
480
- for (i = 0, p = D[t] % M, w = D[t] / M | 0, c = f, l = t + c; l > t; )
481
- u = d[--c] % M, o = d[c] / M | 0, n = w * u + o * p, u = p * u + n % M * M + A[l] + i, i = (u / B | 0) + (n / M | 0) + w * o, A[l--] = u % B;
482
- A[l] = i;
483
- }
484
- return i ? ++s : A.splice(0, 1), oe(e, A, s);
485
- }, g.negated = function() {
486
- var e = new h(this);
487
- return e.s = -e.s || null, e;
488
- }, g.plus = function(e, r) {
489
- var i, s = this, t = s.s;
490
- if (e = new h(e, r), r = e.s, !t || !r) return new h(NaN);
491
- if (t != r)
492
- return e.s = -r, s.minus(e);
493
- var l = s.e / N, c = e.e / N, n = s.c, f = e.c;
494
- if (!l || !c) {
495
- if (!n || !f) return new h(t / 0);
496
- if (!n[0] || !f[0]) return f[0] ? e : new h(n[0] ? s : t * 0);
497
- }
498
- if (l = y(l), c = y(c), n = n.slice(), t = l - c) {
499
- for (t > 0 ? (c = l, i = f) : (t = -t, i = n), i.reverse(); t--; i.push(0)) ;
500
- i.reverse();
501
- }
502
- for (t = n.length, r = f.length, t - r < 0 && (i = f, f = n, n = i, r = t), t = 0; r; )
503
- t = (n[--r] = n[r] + f[r] + t) / z | 0, n[r] = z === n[r] ? 0 : n[r] % z;
504
- return t && (n = [t].concat(n), ++c), oe(e, n, c);
505
- }, g.precision = g.sd = function(e, r) {
506
- var i, s, t, l = this;
507
- if (e != null && e !== !!e)
508
- return v(e, 1, k), r == null ? r = S : v(r, 0, 8), G(new h(l), e, r);
509
- if (!(i = l.c)) return null;
510
- if (t = i.length - 1, s = t * N + 1, t = i[t]) {
511
- for (; t % 10 == 0; t /= 10, s--) ;
512
- for (t = i[0]; t >= 10; t /= 10, s++) ;
513
- }
514
- return e && l.e + 1 > s && (s = l.e + 1), s;
515
- }, g.shiftedBy = function(e) {
516
- return v(e, -9007199254740991, pe), this.times("1e" + e);
517
- }, g.squareRoot = g.sqrt = function() {
518
- var e, r, i, s, t, l = this, c = l.c, n = l.s, f = l.e, u = _ + 4, o = new h("0.5");
519
- if (n !== 1 || !c || !c[0])
520
- return new h(!n || n < 0 && (!c || c[0]) ? NaN : c ? l : 1 / 0);
521
- if (n = Math.sqrt(+V(l)), n == 0 || n == 1 / 0 ? (r = q(c), (r.length + f) % 2 == 0 && (r += "0"), n = Math.sqrt(+r), f = y((f + 1) / 2) - (f < 0 || f % 2), n == 1 / 0 ? r = "5e" + f : (r = n.toExponential(), r = r.slice(0, r.indexOf("e") + 1) + f), i = new h(r)) : i = new h(n + ""), i.c[0]) {
522
- for (f = i.e, n = f + u, n < 3 && (n = 0); ; )
523
- if (t = i, i = o.times(t.plus(E(l, t, u, 1))), q(t.c).slice(0, n) === (r = q(i.c)).slice(0, n))
524
- if (i.e < f && --n, r = r.slice(n - 3, n + 1), r == "9999" || !s && r == "4999") {
525
- if (!s && (G(t, t.e + _ + 2, 0), t.times(t).eq(l))) {
526
- i = t;
527
- break;
528
- }
529
- u += 4, n += 4, s = 1;
530
- } else {
531
- (!+r || !+r.slice(1) && r.charAt(0) == "5") && (G(i, i.e + _ + 2, 1), e = !i.times(i).eq(l));
532
- break;
533
- }
534
- }
535
- return G(i, i.e + _ + 1, S, e);
536
- }, g.toExponential = function(e, r) {
537
- return e != null && (v(e, 0, k), e++), le(this, e, r, 1);
538
- }, g.toFixed = function(e, r) {
539
- return e != null && (v(e, 0, k), e = e + this.e + 1), le(this, e, r);
540
- }, g.toFormat = function(e, r, i) {
541
- var s, t = this;
542
- if (i == null)
543
- e != null && r && typeof r == "object" ? (i = r, r = null) : e && typeof e == "object" ? (i = e, e = r = null) : i = te;
544
- else if (typeof i != "object")
545
- throw Error(C + "Argument not an object: " + i);
546
- if (s = t.toFixed(e, r), t.c) {
547
- var l, c = s.split("."), n = +i.groupSize, f = +i.secondaryGroupSize, u = i.groupSeparator || "", o = c[0], a = c[1], p = t.s < 0, w = p ? o.slice(1) : o, A = w.length;
548
- if (f && (l = n, n = f, f = l, A -= l), n > 0 && A > 0) {
549
- for (l = A % n || n, o = w.substr(0, l); l < A; l += n) o += u + w.substr(l, n);
550
- f > 0 && (o += u + w.slice(l)), p && (o = "-" + o);
551
- }
552
- s = a ? o + (i.decimalSeparator || "") + ((f = +i.fractionGroupSize) ? a.replace(
553
- new RegExp("\\d{" + f + "}\\B", "g"),
554
- "$&" + (i.fractionGroupSeparator || "")
555
- ) : a) : o;
556
- }
557
- return (i.prefix || "") + s + (i.suffix || "");
558
- }, g.toFraction = function(e) {
559
- var r, i, s, t, l, c, n, f, u, o, a, p, w = this, A = w.c;
560
- if (e != null && (n = new h(e), !n.isInteger() && (n.c || n.s !== 1) || n.lt(T)))
561
- throw Error(C + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + V(n));
562
- if (!A) return new h(w);
563
- for (r = new h(T), u = i = new h(T), s = f = new h(T), p = q(A), l = r.e = p.length - w.e - 1, r.c[0] = ae[(c = l % N) < 0 ? N + c : c], e = !e || n.comparedTo(r) > 0 ? l > 0 ? r : u : n, c = $, $ = 1 / 0, n = new h(p), f.c[0] = 0; o = E(n, r, 0, 1), t = i.plus(o.times(s)), t.comparedTo(e) != 1; )
564
- i = s, s = t, u = f.plus(o.times(t = u)), f = t, r = n.minus(o.times(t = r)), n = t;
565
- return t = E(e.minus(i), s, 0, 1), f = f.plus(t.times(u)), i = i.plus(t.times(s)), f.s = u.s = w.s, l = l * 2, a = E(u, s, l, S).minus(w).abs().comparedTo(
566
- E(f, i, l, S).minus(w).abs()
567
- ) < 1 ? [u, s] : [f, i], $ = c, a;
568
- }, g.toNumber = function() {
569
- return +V(this);
570
- }, g.toPrecision = function(e, r) {
571
- return e != null && v(e, 1, k), le(this, e, r, 2);
572
- }, g.toString = function(e) {
573
- var r, i = this, s = i.s, t = i.e;
574
- return t === null ? s ? (r = "Infinity", s < 0 && (r = "-" + r)) : r = "NaN" : (e == null ? r = t <= L || t >= U ? ne(q(i.c), t) : W(q(i.c), t, "0") : e === 10 && fe ? (i = G(new h(i), _ + t + 1, S), r = W(q(i.c), i.e, "0")) : (v(e, 2, K.length, "Base"), r = x(W(q(i.c), t, "0"), 10, e, s, !0)), s < 0 && i.c[0] && (r = "-" + r)), r;
575
- }, g.valueOf = g.toJSON = function() {
576
- return V(this);
577
- }, g._isBigNumber = !0, g[Symbol.toStringTag] = "BigNumber", g[Symbol.for("nodejs.util.inspect.custom")] = g.valueOf, O != null && h.set(O), h;
578
- }
579
- function y(O) {
580
- var E = O | 0;
581
- return O > 0 || O === E ? E : E - 1;
582
- }
583
- function q(O) {
584
- for (var E, x, R = 1, g = O.length, T = O[0] + ""; R < g; ) {
585
- for (E = O[R++] + "", x = N - E.length; x--; E = "0" + E) ;
586
- T += E;
587
- }
588
- for (g = T.length; T.charCodeAt(--g) === 48; ) ;
589
- return T.slice(0, g + 1 || 1);
590
- }
591
- function j(O, E) {
592
- var x, R, g = O.c, T = E.c, _ = O.s, S = E.s, L = O.e, U = E.e;
593
- if (!_ || !S) return null;
594
- if (x = g && !g[0], R = T && !T[0], x || R) return x ? R ? 0 : -S : _;
595
- if (_ != S) return _;
596
- if (x = _ < 0, R = L == U, !g || !T) return R ? 0 : !g ^ x ? 1 : -1;
597
- if (!R) return L > U ^ x ? 1 : -1;
598
- for (S = (L = g.length) < (U = T.length) ? L : U, _ = 0; _ < S; _++) if (g[_] != T[_]) return g[_] > T[_] ^ x ? 1 : -1;
599
- return L == U ? 0 : L > U ^ x ? 1 : -1;
600
- }
601
- function v(O, E, x, R) {
602
- if (O < E || O > x || O !== X(O))
603
- throw Error(C + (R || "Argument") + (typeof O == "number" ? O < E || O > x ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(O));
604
- }
605
- function ie(O) {
606
- var E = O.c.length - 1;
607
- return y(O.e / N) == E && O.c[E] % 2 != 0;
608
- }
609
- function ne(O, E) {
610
- return (O.length > 1 ? O.charAt(0) + "." + O.slice(1) : O) + (E < 0 ? "e" : "e+") + E;
611
- }
612
- function W(O, E, x) {
613
- var R, g;
614
- if (E < 0) {
615
- for (g = x + "."; ++E; g += x) ;
616
- O = g + O;
617
- } else if (R = O.length, ++E > R) {
618
- for (g = x, E -= R; --E; g += x) ;
619
- O += g;
620
- } else E < R && (O = O.slice(0, E) + "." + O.slice(E));
621
- return O;
622
- }
623
- var Ne = we();
624
- export {
625
- Ne as BigNumber,
626
- Ne as default
627
- };
@@ -1,30 +0,0 @@
1
- function v(f, s, { signal: e, edges: t } = {}) {
2
- let u, l = null;
3
- const h = t != null && t.includes("leading"), m = t == null || t.includes("trailing"), i = () => {
4
- l !== null && (f.apply(u, l), u = void 0, l = null);
5
- }, T = () => {
6
- m && i(), o();
7
- };
8
- let n = null;
9
- const d = () => {
10
- n != null && clearTimeout(n), n = setTimeout(() => {
11
- n = null, T();
12
- }, s);
13
- }, r = () => {
14
- n !== null && (clearTimeout(n), n = null);
15
- }, o = () => {
16
- r(), u = void 0, l = null;
17
- }, a = () => {
18
- r(), i();
19
- }, c = function(...p) {
20
- if (e != null && e.aborted)
21
- return;
22
- u = this, l = p;
23
- const b = n == null;
24
- d(), h && b && i();
25
- };
26
- return c.schedule = d, c.cancel = o, c.flush = a, e == null || e.addEventListener("abort", o, { once: !0 }), c;
27
- }
28
- export {
29
- v as debounce
30
- };
@@ -1,11 +0,0 @@
1
- import { debounce as a } from "./debounce.js";
2
- function d(c, l, { signal: i, edges: u = ["leading", "trailing"] } = {}) {
3
- let e = null;
4
- const n = a(c, l, { signal: i, edges: u }), t = function(...o) {
5
- e == null ? e = Date.now() : Date.now() - e >= l && (e = Date.now(), n.cancel(), n(...o)), n(...o);
6
- };
7
- return t.cancel = n.cancel, t.flush = n.flush, t;
8
- }
9
- export {
10
- d as throttle
11
- };