@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.
- package/dist/.ts-temp/tsconfig.tsbuildinfo +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +112 -488
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +11 -11
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +62 -85
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +153 -190
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +56 -65
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +125 -151
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +470 -575
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +26 -40
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -4
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +38 -42
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +28 -42
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +17 -26
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +52 -59
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +20 -19
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +118 -113
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +95 -105
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +26 -32
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.js +71 -82
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.js +20 -20
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.js +125 -124
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.js +102 -116
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.js +62 -76
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -1
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +519 -614
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +10 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +6 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +7 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +9 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +10 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +26 -32
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +12 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +11 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +9 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +8 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +11 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +14 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +10 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +4 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +6 -6
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -1
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +121 -118
- package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.cjs +1 -1
- package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js +377 -417
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -1
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +546 -635
- package/dist/paymaster.cjs +1 -1
- package/dist/paymaster.js +2 -11
- package/dist/simulation.cjs +1 -1
- package/dist/simulation.js +22 -90
- package/dist/src/account/account.model.cjs +1 -1
- package/dist/src/account/account.model.js +58 -52
- package/dist/src/account/accountv4.cjs +1 -1
- package/dist/src/account/accountv4.js +9 -11
- package/dist/src/account/preferences.model.cjs +1 -1
- package/dist/src/account/preferences.model.js +12 -10
- package/dist/src/accountNameGenerator/colors.cjs +1 -1
- package/dist/src/accountNameGenerator/colors.js +24 -24
- package/dist/src/accountNameGenerator/index.cjs +1 -1
- package/dist/src/accountNameGenerator/index.js +23 -23
- package/dist/src/accountNameGenerator/x-names.json.cjs +1 -1
- package/dist/src/accountNameGenerator/x-names.json.js +1922 -7
- package/dist/src/assets/tokens.json.cjs +1 -1
- package/dist/src/assets/tokens.json.js +180 -180
- package/dist/src/backend/schema.cjs +1 -1
- package/dist/src/backend/schema.js +9 -12
- package/dist/src/backend/sessionKeys/schema.cjs +1 -1
- package/dist/src/backend/sessionKeys/schema.js +27 -30
- package/dist/src/bigdecimal/constants.cjs +1 -1
- package/dist/src/bigdecimal/constants.js +6 -3
- package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -1
- package/dist/src/bigdecimal/createUnitsSchema.js +7 -7
- package/dist/src/bigdecimal/formatUnits.cjs +1 -1
- package/dist/src/bigdecimal/formatUnits.js +9 -10
- package/dist/src/bigdecimal/index.cjs +1 -1
- package/dist/src/bigdecimal/index.js +45 -41
- package/dist/src/bigdecimal/lib.cjs +1 -1
- package/dist/src/bigdecimal/lib.js +105 -117
- package/dist/src/bigdecimal/parseUnits.cjs +1 -1
- package/dist/src/bigdecimal/parseUnits.js +18 -21
- package/dist/src/bigdecimal/utils.cjs +1 -1
- package/dist/src/bigdecimal/utils.js +33 -30
- package/dist/src/cache/CacheService.cjs +1 -1
- package/dist/src/cache/CacheService.js +32 -36
- package/dist/src/chains/starknet/address.cjs +1 -1
- package/dist/src/chains/starknet/address.js +73 -117
- package/dist/src/chains/starknet/addressDomain.cjs +1 -1
- package/dist/src/chains/starknet/addressDomain.js +14 -29
- package/dist/src/chains/starknet/addressInput.cjs +1 -1
- package/dist/src/chains/starknet/addressInput.js +6 -7
- package/dist/src/chains/starknet/argentName.cjs +1 -1
- package/dist/src/chains/starknet/argentName.js +10 -14
- package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -1
- package/dist/src/chains/starknet/cairoVersionSchema.js +5 -5
- package/dist/src/chains/starknet/constants.cjs +1 -1
- package/dist/src/chains/starknet/constants.js +4 -10
- package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromArgentName.js +38 -46
- package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromStarkName.js +59 -66
- package/dist/src/chains/starknet/network.cjs +1 -1
- package/dist/src/chains/starknet/network.js +20 -26
- package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -1
- package/dist/src/chains/starknet/services/address/StarknetAddressService.js +31 -36
- package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/constants.js +14 -21
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +15 -17
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +61 -65
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +46 -65
- package/dist/src/chains/starknet/starknetId.cjs +1 -1
- package/dist/src/chains/starknet/starknetId.js +10 -14
- package/dist/src/currencyFetchService/CurrencyFetchService.cjs +1 -1
- package/dist/src/currencyFetchService/CurrencyFetchService.js +13 -18
- package/dist/src/currencyFetchService/types.ts.cjs +1 -1
- package/dist/src/currencyFetchService/types.ts.js +9 -12
- package/dist/src/errors/account.cjs +1 -1
- package/dist/src/errors/account.js +12 -13
- package/dist/src/errors/address.cjs +1 -1
- package/dist/src/errors/address.js +11 -12
- package/dist/src/errors/baseErrors.cjs +1 -1
- package/dist/src/errors/baseErrors.js +14 -14
- package/dist/src/errors/call.cjs +1 -1
- package/dist/src/errors/call.js +12 -13
- package/dist/src/errors/network.cjs +1 -1
- package/dist/src/errors/network.js +11 -12
- package/dist/src/errors/review.cjs +1 -1
- package/dist/src/errors/review.js +11 -12
- package/dist/src/errors/swap.cjs +1 -1
- package/dist/src/errors/swap.js +12 -13
- package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
- package/dist/src/features/paymaster/PaymasterService.js +73 -87
- package/dist/src/features/paymaster/types.cjs +1 -1
- package/dist/src/features/paymaster/types.js +41 -51
- package/dist/src/features/simulation/activity/normalize.cjs +1 -1
- package/dist/src/features/simulation/activity/normalize.js +36 -38
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.js +224 -250
- package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +23 -27
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +14 -21
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +5 -5
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +4 -4
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +5 -5
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +19 -21
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isSwapActivity.js +17 -18
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +12 -12
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +32 -32
- package/dist/src/features/simulation/fees/schema.cjs +1 -1
- package/dist/src/features/simulation/fees/schema.js +33 -47
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +15 -17
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +5 -5
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.js +221 -242
- package/dist/src/features/simulation/warning/helper.cjs +1 -1
- package/dist/src/features/simulation/warning/helper.js +12 -11
- package/dist/src/features/simulation/warning/schema.cjs +1 -1
- package/dist/src/features/simulation/warning/schema.js +10 -11
- package/dist/src/features/swap/models/order.model.cjs +1 -1
- package/dist/src/features/swap/models/order.model.js +16 -19
- package/dist/src/features/swap/models/quote.model.cjs +1 -1
- package/dist/src/features/swap/models/quote.model.js +31 -35
- package/dist/src/features/swap/models/trade.model.cjs +1 -1
- package/dist/src/features/swap/models/trade.model.js +25 -27
- package/dist/src/features/swap/services/SwapSharedService.cjs +1 -1
- package/dist/src/features/swap/services/SwapSharedService.js +71 -75
- package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
- package/dist/src/features/swap/services/SwapTransactionService.js +57 -63
- package/dist/src/features/swap/utils/slippage.cjs +1 -1
- package/dist/src/features/swap/utils/slippage.js +18 -25
- package/dist/src/features/swap/utils/totalFee.cjs +1 -1
- package/dist/src/features/swap/utils/totalFee.js +12 -12
- package/dist/src/http/DateService.cjs +1 -1
- package/dist/src/http/DateService.js +15 -18
- package/dist/src/http/HttpError.cjs +1 -1
- package/dist/src/http/HttpError.js +7 -7
- package/dist/src/http/HttpService.cjs +1 -1
- package/dist/src/http/HttpService.js +117 -134
- package/dist/src/http/IHttpService.cjs +1 -1
- package/dist/src/http/IHttpService.js +6 -6
- package/dist/src/http/SWRService.cjs +1 -1
- package/dist/src/http/SWRService.js +50 -57
- package/dist/src/http/fetcher.cjs +1 -1
- package/dist/src/http/fetcher.js +29 -35
- package/dist/src/http/time.cjs +1 -1
- package/dist/src/http/time.js +15 -18
- package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -1
- package/dist/src/knownDapps/KnownDappsBackendService.js +13 -14
- package/dist/src/knownDapps/schema.cjs +1 -1
- package/dist/src/knownDapps/schema.js +41 -44
- package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -1
- package/dist/src/knownDapps/utils/getDapplandUrl.js +7 -8
- package/dist/src/nameResolution/ResolveNameService.cjs +1 -1
- package/dist/src/nameResolution/ResolveNameService.js +34 -41
- package/dist/src/nameResolution/schema.cjs +1 -1
- package/dist/src/nameResolution/schema.js +20 -25
- package/dist/src/nfts/BackendNftService.cjs +1 -1
- package/dist/src/nfts/BackendNftService.js +103 -116
- package/dist/src/nfts/BackendPaginationError.cjs +1 -1
- package/dist/src/nfts/BackendPaginationError.js +11 -12
- package/dist/src/nfts/utils.cjs +1 -1
- package/dist/src/nfts/utils.js +11 -14
- package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -1
- package/dist/src/onchainRecovery/OnchainRecoveryService.js +38 -68
- package/dist/src/onchainRecovery/schema.cjs +1 -1
- package/dist/src/onchainRecovery/schema.js +35 -49
- package/dist/src/platform/isBraveBrowser.cjs +1 -1
- package/dist/src/platform/isBraveBrowser.js +8 -10
- package/dist/src/platform/isBrowser.cjs +1 -1
- package/dist/src/platform/isBrowser.js +17 -22
- package/dist/src/signer/mergeOwnerGuardianSignatures.cjs +1 -1
- package/dist/src/signer/mergeOwnerGuardianSignatures.js +28 -30
- package/dist/src/signer/multisigner.cjs +1 -1
- package/dist/src/signer/multisigner.js +16 -17
- package/dist/src/signer/seedphrase.cjs +1 -1
- package/dist/src/signer/seedphrase.js +7 -7
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.js +146 -162
- package/dist/src/storage/base.cjs +1 -1
- package/dist/src/storage/base.js +33 -34
- package/dist/src/storage/utils.cjs +1 -1
- package/dist/src/storage/utils.js +19 -28
- package/dist/src/tokens/balances.cjs +1 -1
- package/dist/src/tokens/balances.js +34 -38
- package/dist/src/tokens/constants.cjs +1 -1
- package/dist/src/tokens/constants.js +4 -4
- package/dist/src/tokens/convertCurrencyValueToTokenAmount.cjs +1 -1
- package/dist/src/tokens/convertCurrencyValueToTokenAmount.js +8 -9
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -1
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +14 -15
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -1
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +8 -9
- package/dist/src/tokens/ensureDecimals.cjs +1 -1
- package/dist/src/tokens/ensureDecimals.js +4 -4
- package/dist/src/tokens/getCurrencySymbol.cjs +1 -1
- package/dist/src/tokens/getCurrencySymbol.js +14 -14
- package/dist/src/tokens/isUnlimitedAmount.cjs +1 -1
- package/dist/src/tokens/isUnlimitedAmount.js +5 -5
- package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -1
- package/dist/src/tokens/prettifyCurrencyValue.js +13 -14
- package/dist/src/tokens/prettifyTokenAmount.cjs +1 -1
- package/dist/src/tokens/prettifyTokenAmount.js +22 -22
- package/dist/src/tokens/service/implementation.cjs +1 -1
- package/dist/src/tokens/service/implementation.js +28 -40
- package/dist/src/tokens/service/tokenError.cjs +1 -1
- package/dist/src/tokens/service/tokenError.js +11 -12
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.js +128 -163
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.js +83 -99
- package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.js +9 -9
- package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -1
- package/dist/src/tokens/service/types/unclaimedRewards.model.js +15 -16
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
- package/dist/src/tokens/service/types/webToken.model.js +28 -51
- package/dist/src/tokens/utils.cjs +1 -1
- package/dist/src/tokens/utils.js +5 -9
- package/dist/src/transactions/amount.cjs +1 -1
- package/dist/src/transactions/amount.js +17 -24
- package/dist/src/transactions/buildTransactions.cjs +1 -1
- package/dist/src/transactions/buildTransactions.js +30 -33
- package/dist/src/transactions/errors.cjs +1 -1
- package/dist/src/transactions/errors.js +11 -18
- package/dist/src/transactions/estimate/adjustment.cjs +1 -1
- package/dist/src/transactions/estimate/adjustment.js +6 -6
- package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -1
- package/dist/src/transactions/estimate/argentMaxFee.js +10 -13
- package/dist/src/transactions/estimate/error.cjs +1 -1
- package/dist/src/transactions/estimate/error.js +12 -13
- package/dist/src/transactions/estimate/model.cjs +1 -1
- package/dist/src/transactions/estimate/model.js +18 -13
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.js +139 -172
- package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -1
- package/dist/src/transactions/findTransfersAndApprovals.js +34 -30
- package/dist/src/transactions/getPrettyRcpError.cjs +1 -1
- package/dist/src/transactions/getPrettyRcpError.js +8 -10
- package/dist/src/transactions/service/implementation.cjs +1 -1
- package/dist/src/transactions/service/implementation.js +187 -208
- package/dist/src/transactions/service/types.cjs +1 -1
- package/dist/src/transactions/service/types.js +9 -9
- package/dist/src/transactions/service/utils.cjs +1 -1
- package/dist/src/transactions/service/utils.js +24 -25
- package/dist/src/transactions/transactionExecuteTypes.cjs +1 -1
- package/dist/src/transactions/transactionExecuteTypes.js +8 -9
- package/dist/src/transactions/transactionReviewTypes.cjs +1 -1
- package/dist/src/transactions/transactionReviewTypes.js +9 -9
- package/dist/src/transactions/transactionVersion.cjs +1 -1
- package/dist/src/transactions/transactionVersion.js +8 -13
- package/dist/src/transactions/txv3.cjs +1 -1
- package/dist/src/transactions/txv3.js +10 -11
- package/dist/src/utils/address.cjs +1 -1
- package/dist/src/utils/address.js +4 -4
- package/dist/src/utils/arrays.cjs +1 -1
- package/dist/src/utils/arrays.js +4 -4
- package/dist/src/utils/avatarImage.cjs +4 -4
- package/dist/src/utils/avatarImage.js +35 -40
- package/dist/src/utils/base58.cjs +1 -1
- package/dist/src/utils/base58.js +12 -15
- package/dist/src/utils/bigNumber.cjs +1 -1
- package/dist/src/utils/bigNumber.d.ts +1 -1
- package/dist/src/utils/bigNumber.js +5 -7
- package/dist/src/utils/bips.cjs +1 -1
- package/dist/src/utils/bips.js +12 -10
- package/dist/src/utils/daysBetween.cjs +1 -1
- package/dist/src/utils/daysBetween.js +6 -6
- package/dist/src/utils/env.cjs +1 -1
- package/dist/src/utils/env.js +4 -4
- package/dist/src/utils/hex.cjs +1 -1
- package/dist/src/utils/hex.js +7 -8
- package/dist/src/utils/id.cjs +1 -1
- package/dist/src/utils/id.js +7 -7
- package/dist/src/utils/initials.cjs +1 -1
- package/dist/src/utils/initials.js +12 -15
- package/dist/src/utils/isContractDeployed.cjs +1 -1
- package/dist/src/utils/isContractDeployed.js +9 -9
- package/dist/src/utils/nonNullable.cjs +1 -1
- package/dist/src/utils/nonNullable.js +6 -6
- package/dist/src/utils/number/abbreviateNumber.cjs +1 -1
- package/dist/src/utils/number/abbreviateNumber.js +13 -14
- package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -1
- package/dist/src/utils/number/isAllowedAddressHexInputValue.js +4 -7
- package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -1
- package/dist/src/utils/number/isAllowedNumericInputValue.js +5 -5
- package/dist/src/utils/number/isNumeric.cjs +1 -1
- package/dist/src/utils/number/isNumeric.js +4 -4
- package/dist/src/utils/number/prettifyNumber.cjs +1 -1
- package/dist/src/utils/number/prettifyNumber.js +65 -75
- package/dist/src/utils/parseAmount.cjs +1 -1
- package/dist/src/utils/parseAmount.js +10 -11
- package/dist/src/utils/pluralise.cjs +1 -1
- package/dist/src/utils/pluralise.js +4 -4
- package/dist/src/utils/readFileAsString.cjs +1 -1
- package/dist/src/utils/readFileAsString.js +6 -6
- package/dist/src/utils/retryUntilInitialised.cjs +1 -1
- package/dist/src/utils/retryUntilInitialised.js +21 -20
- package/dist/src/utils/schemas.cjs +1 -1
- package/dist/src/utils/schemas.js +29 -26
- package/dist/src/utils/starknet/starknet.cjs +1 -1
- package/dist/src/utils/starknet/starknet.js +64 -77
- package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -1
- package/dist/src/utils/starknet/starknetLibTypes.js +7 -7
- package/dist/src/utils/starknet/starknetSchemas.cjs +1 -1
- package/dist/src/utils/starknet/starknetSchemas.js +84 -99
- package/dist/src/utils/transactions.cjs +1 -1
- package/dist/src/utils/transactions.js +10 -10
- package/dist/src/utils/url/urlWithQuery.cjs +1 -1
- package/dist/src/utils/url/urlWithQuery.js +8 -8
- package/dist/src/utils/voidify.cjs +1 -1
- package/dist/src/utils/voidify.js +7 -7
- package/dist/swap.cjs +1 -1
- package/dist/swap.js +8 -22
- package/package.json +15 -15
- package/dist/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/numeral.cjs +0 -1
- package/dist/_virtual/numeral.js +0 -7
- package/dist/_virtual/numeral2.cjs +0 -1
- package/dist/_virtual/numeral2.js +0 -4
- package/dist/_virtual/semver.cjs +0 -1
- package/dist/_virtual/semver.js +0 -7
- package/dist/_virtual/semver2.cjs +0 -1
- package/dist/_virtual/semver2.js +0 -4
|
@@ -1,417 +1,377 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
return r = r.replace(/\s?o/, ""), o += i.ordinal(e), t = n._.numberToFormat(e, r, l), t + o;
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
})(), (function() {
|
|
382
|
-
n.register("format", "percentage", {
|
|
383
|
-
regexps: {
|
|
384
|
-
format: /(%)/,
|
|
385
|
-
unformat: /(%)/
|
|
386
|
-
},
|
|
387
|
-
format: function(e, r, l) {
|
|
388
|
-
var i = n._.includes(r, " %") ? " " : "", t;
|
|
389
|
-
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;
|
|
390
|
-
},
|
|
391
|
-
unformat: function(e) {
|
|
392
|
-
var r = n._.stringToNumber(e);
|
|
393
|
-
return n.options.scalePercentBy100 ? r * 0.01 : r;
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
})(), (function() {
|
|
397
|
-
n.register("format", "time", {
|
|
398
|
-
regexps: {
|
|
399
|
-
format: /(:)/,
|
|
400
|
-
unformat: /(:)/
|
|
401
|
-
},
|
|
402
|
-
format: function(e, r, l) {
|
|
403
|
-
var i = Math.floor(e / 60 / 60), t = Math.floor((e - i * 60 * 60) / 60), o = Math.round(e - i * 60 * 60 - t * 60);
|
|
404
|
-
return i + ":" + (t < 10 ? "0" + t : t) + ":" + (o < 10 ? "0" + o : o);
|
|
405
|
-
},
|
|
406
|
-
unformat: function(e) {
|
|
407
|
-
var r = e.split(":"), l = 0;
|
|
408
|
-
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);
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
})(), n;
|
|
412
|
-
});
|
|
413
|
-
})(v), v.exports);
|
|
414
|
-
}
|
|
415
|
-
export {
|
|
416
|
-
z as __require
|
|
417
|
-
};
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
(function(e, n) {
|
|
5
|
+
typeof define == "function" && define.amd ? define(n) : typeof t == "object" && t.exports ? t.exports = n() : e.numeral = n();
|
|
6
|
+
})(e, function() {
|
|
7
|
+
var e, t, n = "2.0.6", r = {}, i = {}, a = {
|
|
8
|
+
currentLocale: "en",
|
|
9
|
+
zeroFormat: null,
|
|
10
|
+
nullFormat: null,
|
|
11
|
+
defaultFormat: "0,0",
|
|
12
|
+
scalePercentBy100: !0
|
|
13
|
+
}, o = {
|
|
14
|
+
currentLocale: a.currentLocale,
|
|
15
|
+
zeroFormat: a.zeroFormat,
|
|
16
|
+
nullFormat: a.nullFormat,
|
|
17
|
+
defaultFormat: a.defaultFormat,
|
|
18
|
+
scalePercentBy100: a.scalePercentBy100
|
|
19
|
+
};
|
|
20
|
+
function s(e, t) {
|
|
21
|
+
this._input = e, this._value = t;
|
|
22
|
+
}
|
|
23
|
+
return e = function(n) {
|
|
24
|
+
var i, a, c, l;
|
|
25
|
+
if (e.isNumeral(n)) i = n.value();
|
|
26
|
+
else if (n === 0 || n === void 0) i = 0;
|
|
27
|
+
else if (n === null || t.isNaN(n)) i = null;
|
|
28
|
+
else if (typeof n == "string") if (o.zeroFormat && n === o.zeroFormat) i = 0;
|
|
29
|
+
else if (o.nullFormat && n === o.nullFormat || !n.replace(/[^0-9]+/g, "").length) i = null;
|
|
30
|
+
else {
|
|
31
|
+
for (a in r) if (l = typeof r[a].regexps.unformat == "function" ? r[a].regexps.unformat() : r[a].regexps.unformat, l && n.match(l)) {
|
|
32
|
+
c = r[a].unformat;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
c ||= e._.stringToNumber, i = c(n);
|
|
36
|
+
}
|
|
37
|
+
else i = Number(n) || null;
|
|
38
|
+
return new s(n, i);
|
|
39
|
+
}, e.version = n, e.isNumeral = function(e) {
|
|
40
|
+
return e instanceof s;
|
|
41
|
+
}, e._ = t = {
|
|
42
|
+
numberToFormat: function(t, n, r) {
|
|
43
|
+
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;
|
|
44
|
+
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) {
|
|
45
|
+
case a.abbreviations.thousand:
|
|
46
|
+
l = a.abbreviations.million;
|
|
47
|
+
break;
|
|
48
|
+
case a.abbreviations.million:
|
|
49
|
+
l = a.abbreviations.billion;
|
|
50
|
+
break;
|
|
51
|
+
case a.abbreviations.billion:
|
|
52
|
+
l = a.abbreviations.trillion;
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
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;
|
|
56
|
+
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;
|
|
57
|
+
},
|
|
58
|
+
stringToNumber: function(e) {
|
|
59
|
+
var t = i[o.currentLocale], n = e, r = {
|
|
60
|
+
thousand: 3,
|
|
61
|
+
million: 6,
|
|
62
|
+
billion: 9,
|
|
63
|
+
trillion: 12
|
|
64
|
+
}, a, s, c;
|
|
65
|
+
if (o.zeroFormat && e === o.zeroFormat) s = 0;
|
|
66
|
+
else if (o.nullFormat && e === o.nullFormat || !e.replace(/[^0-9]+/g, "").length) s = null;
|
|
67
|
+
else {
|
|
68
|
+
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)) {
|
|
69
|
+
s *= 10 ** r[a];
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
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);
|
|
73
|
+
}
|
|
74
|
+
return s;
|
|
75
|
+
},
|
|
76
|
+
isNaN: function(e) {
|
|
77
|
+
return typeof e == "number" && isNaN(e);
|
|
78
|
+
},
|
|
79
|
+
includes: function(e, t) {
|
|
80
|
+
return e.indexOf(t) !== -1;
|
|
81
|
+
},
|
|
82
|
+
insert: function(e, t, n) {
|
|
83
|
+
return e.slice(0, n) + t + e.slice(n);
|
|
84
|
+
},
|
|
85
|
+
reduce: function(e, t) {
|
|
86
|
+
if (this === null) throw TypeError("Array.prototype.reduce called on null or undefined");
|
|
87
|
+
if (typeof t != "function") throw TypeError(t + " is not a function");
|
|
88
|
+
var n = Object(e), r = n.length >>> 0, i = 0, a;
|
|
89
|
+
if (arguments.length === 3) a = arguments[2];
|
|
90
|
+
else {
|
|
91
|
+
for (; i < r && !(i in n);) i++;
|
|
92
|
+
if (i >= r) throw TypeError("Reduce of empty array with no initial value");
|
|
93
|
+
a = n[i++];
|
|
94
|
+
}
|
|
95
|
+
for (; i < r; i++) i in n && (a = t(a, n[i], i, n));
|
|
96
|
+
return a;
|
|
97
|
+
},
|
|
98
|
+
multiplier: function(e) {
|
|
99
|
+
var t = e.toString().split(".");
|
|
100
|
+
return t.length < 2 ? 1 : 10 ** t[1].length;
|
|
101
|
+
},
|
|
102
|
+
correctionFactor: function() {
|
|
103
|
+
return Array.prototype.slice.call(arguments).reduce(function(e, n) {
|
|
104
|
+
var r = t.multiplier(n);
|
|
105
|
+
return e > r ? e : r;
|
|
106
|
+
}, 1);
|
|
107
|
+
},
|
|
108
|
+
toFixed: function(e, t, n, r) {
|
|
109
|
+
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);
|
|
110
|
+
return r > t - o && (s = RegExp("\\.?0{1," + (r - (t - o)) + "}$"), l = l.replace(s, "")), l;
|
|
111
|
+
}
|
|
112
|
+
}, e.options = o, e.formats = r, e.locales = i, e.locale = function(e) {
|
|
113
|
+
return e && (o.currentLocale = e.toLowerCase()), o.currentLocale;
|
|
114
|
+
}, e.localeData = function(e) {
|
|
115
|
+
if (!e) return i[o.currentLocale];
|
|
116
|
+
if (e = e.toLowerCase(), !i[e]) throw Error("Unknown locale : " + e);
|
|
117
|
+
return i[e];
|
|
118
|
+
}, e.reset = function() {
|
|
119
|
+
for (var e in a) o[e] = a[e];
|
|
120
|
+
}, e.zeroFormat = function(e) {
|
|
121
|
+
o.zeroFormat = typeof e == "string" ? e : null;
|
|
122
|
+
}, e.nullFormat = function(e) {
|
|
123
|
+
o.nullFormat = typeof e == "string" ? e : null;
|
|
124
|
+
}, e.defaultFormat = function(e) {
|
|
125
|
+
o.defaultFormat = typeof e == "string" ? e : "0.0";
|
|
126
|
+
}, e.register = function(e, t, n) {
|
|
127
|
+
if (t = t.toLowerCase(), this[e + "s"][t]) throw TypeError(t + " " + e + " already registered.");
|
|
128
|
+
return this[e + "s"][t] = n, n;
|
|
129
|
+
}, e.validate = function(t, n) {
|
|
130
|
+
var r, i, a, o, s, c, l, u;
|
|
131
|
+
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;
|
|
132
|
+
if (t === "") return !1;
|
|
133
|
+
try {
|
|
134
|
+
l = e.localeData(n);
|
|
135
|
+
} catch {
|
|
136
|
+
l = e.localeData(e.locale());
|
|
137
|
+
}
|
|
138
|
+
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+$/)));
|
|
139
|
+
}, e.fn = s.prototype = {
|
|
140
|
+
clone: function() {
|
|
141
|
+
return e(this);
|
|
142
|
+
},
|
|
143
|
+
format: function(t, n) {
|
|
144
|
+
var i = this._value, a = t || o.defaultFormat, s, c, l;
|
|
145
|
+
if (n ||= Math.round, i === 0 && o.zeroFormat !== null) c = o.zeroFormat;
|
|
146
|
+
else if (i === null && o.nullFormat !== null) c = o.nullFormat;
|
|
147
|
+
else {
|
|
148
|
+
for (s in r) if (a.match(r[s].regexps.format)) {
|
|
149
|
+
l = r[s].format;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
l ||= e._.numberToFormat, c = l(i, a, n);
|
|
153
|
+
}
|
|
154
|
+
return c;
|
|
155
|
+
},
|
|
156
|
+
value: function() {
|
|
157
|
+
return this._value;
|
|
158
|
+
},
|
|
159
|
+
input: function() {
|
|
160
|
+
return this._input;
|
|
161
|
+
},
|
|
162
|
+
set: function(e) {
|
|
163
|
+
return this._value = Number(e), this;
|
|
164
|
+
},
|
|
165
|
+
add: function(e) {
|
|
166
|
+
var n = t.correctionFactor.call(null, this._value, e);
|
|
167
|
+
function r(e, t, r, i) {
|
|
168
|
+
return e + Math.round(n * t);
|
|
169
|
+
}
|
|
170
|
+
return this._value = t.reduce([this._value, e], r, 0) / n, this;
|
|
171
|
+
},
|
|
172
|
+
subtract: function(e) {
|
|
173
|
+
var n = t.correctionFactor.call(null, this._value, e);
|
|
174
|
+
function r(e, t, r, i) {
|
|
175
|
+
return e - Math.round(n * t);
|
|
176
|
+
}
|
|
177
|
+
return this._value = t.reduce([e], r, Math.round(this._value * n)) / n, this;
|
|
178
|
+
},
|
|
179
|
+
multiply: function(e) {
|
|
180
|
+
function n(e, n, r, i) {
|
|
181
|
+
var a = t.correctionFactor(e, n);
|
|
182
|
+
return Math.round(e * a) * Math.round(n * a) / Math.round(a * a);
|
|
183
|
+
}
|
|
184
|
+
return this._value = t.reduce([this._value, e], n, 1), this;
|
|
185
|
+
},
|
|
186
|
+
divide: function(e) {
|
|
187
|
+
function n(e, n, r, i) {
|
|
188
|
+
var a = t.correctionFactor(e, n);
|
|
189
|
+
return Math.round(e * a) / Math.round(n * a);
|
|
190
|
+
}
|
|
191
|
+
return this._value = t.reduce([this._value, e], n), this;
|
|
192
|
+
},
|
|
193
|
+
difference: function(t) {
|
|
194
|
+
return Math.abs(e(this._value).subtract(t).value());
|
|
195
|
+
}
|
|
196
|
+
}, e.register("locale", "en", {
|
|
197
|
+
delimiters: {
|
|
198
|
+
thousands: ",",
|
|
199
|
+
decimal: "."
|
|
200
|
+
},
|
|
201
|
+
abbreviations: {
|
|
202
|
+
thousand: "k",
|
|
203
|
+
million: "m",
|
|
204
|
+
billion: "b",
|
|
205
|
+
trillion: "t"
|
|
206
|
+
},
|
|
207
|
+
ordinal: function(e) {
|
|
208
|
+
var t = e % 10;
|
|
209
|
+
return ~~(e % 100 / 10) == 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
210
|
+
},
|
|
211
|
+
currency: { symbol: "$" }
|
|
212
|
+
}), (function() {
|
|
213
|
+
e.register("format", "bps", {
|
|
214
|
+
regexps: {
|
|
215
|
+
format: /(BPS)/,
|
|
216
|
+
unformat: /(BPS)/
|
|
217
|
+
},
|
|
218
|
+
format: function(t, n, r) {
|
|
219
|
+
var i = e._.includes(n, " BPS") ? " " : "", a;
|
|
220
|
+
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;
|
|
221
|
+
},
|
|
222
|
+
unformat: function(t) {
|
|
223
|
+
return +(e._.stringToNumber(t) * 1e-4).toFixed(15);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
})(), (function() {
|
|
227
|
+
var t = {
|
|
228
|
+
base: 1e3,
|
|
229
|
+
suffixes: [
|
|
230
|
+
"B",
|
|
231
|
+
"KB",
|
|
232
|
+
"MB",
|
|
233
|
+
"GB",
|
|
234
|
+
"TB",
|
|
235
|
+
"PB",
|
|
236
|
+
"EB",
|
|
237
|
+
"ZB",
|
|
238
|
+
"YB"
|
|
239
|
+
]
|
|
240
|
+
}, n = {
|
|
241
|
+
base: 1024,
|
|
242
|
+
suffixes: [
|
|
243
|
+
"B",
|
|
244
|
+
"KiB",
|
|
245
|
+
"MiB",
|
|
246
|
+
"GiB",
|
|
247
|
+
"TiB",
|
|
248
|
+
"PiB",
|
|
249
|
+
"EiB",
|
|
250
|
+
"ZiB",
|
|
251
|
+
"YiB"
|
|
252
|
+
]
|
|
253
|
+
}, r = t.suffixes.concat(n.suffixes.filter(function(e) {
|
|
254
|
+
return t.suffixes.indexOf(e) < 0;
|
|
255
|
+
})).join("|");
|
|
256
|
+
r = "(" + r.replace("B", "B(?!PS)") + ")", e.register("format", "bytes", {
|
|
257
|
+
regexps: {
|
|
258
|
+
format: /([0\s]i?b)/,
|
|
259
|
+
unformat: new RegExp(r)
|
|
260
|
+
},
|
|
261
|
+
format: function(r, i, a) {
|
|
262
|
+
var o, s = e._.includes(i, "ib") ? n : t, c = e._.includes(i, " b") || e._.includes(i, " ib") ? " " : "", l, u, d;
|
|
263
|
+
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) {
|
|
264
|
+
c += s.suffixes[l], u > 0 && (r /= u);
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
return o = e._.numberToFormat(r, i, a), o + c;
|
|
268
|
+
},
|
|
269
|
+
unformat: function(r) {
|
|
270
|
+
var i = e._.stringToNumber(r), a, o;
|
|
271
|
+
if (i) {
|
|
272
|
+
for (a = t.suffixes.length - 1; a >= 0; a--) {
|
|
273
|
+
if (e._.includes(r, t.suffixes[a])) {
|
|
274
|
+
o = t.base ** +a;
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
if (e._.includes(r, n.suffixes[a])) {
|
|
278
|
+
o = n.base ** +a;
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
i *= o || 1;
|
|
283
|
+
}
|
|
284
|
+
return i;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
})(), (function() {
|
|
288
|
+
e.register("format", "currency", {
|
|
289
|
+
regexps: { format: /(\$)/ },
|
|
290
|
+
format: function(t, n, r) {
|
|
291
|
+
var i = e.locales[e.options.currentLocale], a = {
|
|
292
|
+
before: n.match(/^([\+|\-|\(|\s|\$]*)/)[0],
|
|
293
|
+
after: n.match(/([\+|\-|\)|\s|\$]*)$/)[0]
|
|
294
|
+
}, o, s, c;
|
|
295
|
+
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) {
|
|
296
|
+
case "$":
|
|
297
|
+
o = e._.insert(o, i.currency.symbol, c);
|
|
298
|
+
break;
|
|
299
|
+
case " ":
|
|
300
|
+
o = e._.insert(o, " ", c + i.currency.symbol.length - 1);
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
for (c = a.after.length - 1; c >= 0; c--) switch (s = a.after[c], s) {
|
|
304
|
+
case "$":
|
|
305
|
+
o = c === a.after.length - 1 ? o + i.currency.symbol : e._.insert(o, i.currency.symbol, -(a.after.length - (1 + c)));
|
|
306
|
+
break;
|
|
307
|
+
case " ":
|
|
308
|
+
o = c === a.after.length - 1 ? o + " " : e._.insert(o, " ", -(a.after.length - (1 + c) + i.currency.symbol.length - 1));
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
return o;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
})(), (function() {
|
|
315
|
+
e.register("format", "exponential", {
|
|
316
|
+
regexps: {
|
|
317
|
+
format: /(e\+|e-)/,
|
|
318
|
+
unformat: /(e\+|e-)/
|
|
319
|
+
},
|
|
320
|
+
format: function(t, n, r) {
|
|
321
|
+
var i, a = (typeof t == "number" && !e._.isNaN(t) ? t.toExponential() : "0e+0").split("e");
|
|
322
|
+
return n = n.replace(/e[\+|\-]{1}0/, ""), i = e._.numberToFormat(Number(a[0]), n, r), i + "e" + a[1];
|
|
323
|
+
},
|
|
324
|
+
unformat: function(t) {
|
|
325
|
+
var n = e._.includes(t, "e+") ? t.split("e+") : t.split("e-"), r = Number(n[0]), i = Number(n[1]);
|
|
326
|
+
i = e._.includes(t, "e-") ? i *= -1 : i;
|
|
327
|
+
function a(t, n, r, i) {
|
|
328
|
+
var a = e._.correctionFactor(t, n);
|
|
329
|
+
return t * a * (n * a) / (a * a);
|
|
330
|
+
}
|
|
331
|
+
return e._.reduce([r, 10 ** i], a, 1);
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
})(), (function() {
|
|
335
|
+
e.register("format", "ordinal", {
|
|
336
|
+
regexps: { format: /(o)/ },
|
|
337
|
+
format: function(t, n, r) {
|
|
338
|
+
var i = e.locales[e.options.currentLocale], a, o = e._.includes(n, " o") ? " " : "";
|
|
339
|
+
return n = n.replace(/\s?o/, ""), o += i.ordinal(t), a = e._.numberToFormat(t, n, r), a + o;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
})(), (function() {
|
|
343
|
+
e.register("format", "percentage", {
|
|
344
|
+
regexps: {
|
|
345
|
+
format: /(%)/,
|
|
346
|
+
unformat: /(%)/
|
|
347
|
+
},
|
|
348
|
+
format: function(t, n, r) {
|
|
349
|
+
var i = e._.includes(n, " %") ? " " : "", a;
|
|
350
|
+
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;
|
|
351
|
+
},
|
|
352
|
+
unformat: function(t) {
|
|
353
|
+
var n = e._.stringToNumber(t);
|
|
354
|
+
return e.options.scalePercentBy100 ? n * .01 : n;
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
})(), (function() {
|
|
358
|
+
e.register("format", "time", {
|
|
359
|
+
regexps: {
|
|
360
|
+
format: /(:)/,
|
|
361
|
+
unformat: /(:)/
|
|
362
|
+
},
|
|
363
|
+
format: function(e, t, n) {
|
|
364
|
+
var r = Math.floor(e / 60 / 60), i = Math.floor((e - r * 60 * 60) / 60), a = Math.round(e - r * 60 * 60 - i * 60);
|
|
365
|
+
return r + ":" + (i < 10 ? "0" + i : i) + ":" + (a < 10 ? "0" + a : a);
|
|
366
|
+
},
|
|
367
|
+
unformat: function(e) {
|
|
368
|
+
var t = e.split(":"), n = 0;
|
|
369
|
+
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);
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
})(), e;
|
|
373
|
+
});
|
|
374
|
+
}));
|
|
375
|
+
//#endregion
|
|
376
|
+
export default t();
|
|
377
|
+
export { t as require_numeral };
|