@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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("../../../../../_virtual/semver2.cjs");var J;function Xe(){return J||(J=1,(function(K,l){l=K.exports=f;var I;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?I=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:I=function(){},l.SEMVER_SPEC_VERSION="2.0.0";var y=256,G=Number.MAX_SAFE_INTEGER||9007199254740991,_=16,Q=y-6,D=l.re=[],h=l.safeRe=[],s=l.src=[],n=l.tokens={},k=0;function R(e){n[e]=k++}var $="[a-zA-Z0-9-]",B=[["\\s",1],["\\d",y],[$,Q]];function g(e){for(var r=0;r<B.length;r++){var t=B[r][0],i=B[r][1];e=e.split(t+"*").join(t+"{0,"+i+"}").split(t+"+").join(t+"{1,"+i+"}")}return e}R("NUMERICIDENTIFIER"),s[n.NUMERICIDENTIFIER]="0|[1-9]\\d*",R("NUMERICIDENTIFIERLOOSE"),s[n.NUMERICIDENTIFIERLOOSE]="\\d+",R("NONNUMERICIDENTIFIER"),s[n.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+$+"*",R("MAINVERSION"),s[n.MAINVERSION]="("+s[n.NUMERICIDENTIFIER]+")\\.("+s[n.NUMERICIDENTIFIER]+")\\.("+s[n.NUMERICIDENTIFIER]+")",R("MAINVERSIONLOOSE"),s[n.MAINVERSIONLOOSE]="("+s[n.NUMERICIDENTIFIERLOOSE]+")\\.("+s[n.NUMERICIDENTIFIERLOOSE]+")\\.("+s[n.NUMERICIDENTIFIERLOOSE]+")",R("PRERELEASEIDENTIFIER"),s[n.PRERELEASEIDENTIFIER]="(?:"+s[n.NUMERICIDENTIFIER]+"|"+s[n.NONNUMERICIDENTIFIER]+")",R("PRERELEASEIDENTIFIERLOOSE"),s[n.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[n.NUMERICIDENTIFIERLOOSE]+"|"+s[n.NONNUMERICIDENTIFIER]+")",R("PRERELEASE"),s[n.PRERELEASE]="(?:-("+s[n.PRERELEASEIDENTIFIER]+"(?:\\."+s[n.PRERELEASEIDENTIFIER]+")*))",R("PRERELEASELOOSE"),s[n.PRERELEASELOOSE]="(?:-?("+s[n.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[n.PRERELEASEIDENTIFIERLOOSE]+")*))",R("BUILDIDENTIFIER"),s[n.BUILDIDENTIFIER]=$+"+",R("BUILD"),s[n.BUILD]="(?:\\+("+s[n.BUILDIDENTIFIER]+"(?:\\."+s[n.BUILDIDENTIFIER]+")*))",R("FULL"),R("FULLPLAIN"),s[n.FULLPLAIN]="v?"+s[n.MAINVERSION]+s[n.PRERELEASE]+"?"+s[n.BUILD]+"?",s[n.FULL]="^"+s[n.FULLPLAIN]+"$",R("LOOSEPLAIN"),s[n.LOOSEPLAIN]="[v=\\s]*"+s[n.MAINVERSIONLOOSE]+s[n.PRERELEASELOOSE]+"?"+s[n.BUILD]+"?",R("LOOSE"),s[n.LOOSE]="^"+s[n.LOOSEPLAIN]+"$",R("GTLT"),s[n.GTLT]="((?:<|>)?=?)",R("XRANGEIDENTIFIERLOOSE"),s[n.XRANGEIDENTIFIERLOOSE]=s[n.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",R("XRANGEIDENTIFIER"),s[n.XRANGEIDENTIFIER]=s[n.NUMERICIDENTIFIER]+"|x|X|\\*",R("XRANGEPLAIN"),s[n.XRANGEPLAIN]="[v=\\s]*("+s[n.XRANGEIDENTIFIER]+")(?:\\.("+s[n.XRANGEIDENTIFIER]+")(?:\\.("+s[n.XRANGEIDENTIFIER]+")(?:"+s[n.PRERELEASE]+")?"+s[n.BUILD]+"?)?)?",R("XRANGEPLAINLOOSE"),s[n.XRANGEPLAINLOOSE]="[v=\\s]*("+s[n.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[n.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[n.XRANGEIDENTIFIERLOOSE]+")(?:"+s[n.PRERELEASELOOSE]+")?"+s[n.BUILD]+"?)?)?",R("XRANGE"),s[n.XRANGE]="^"+s[n.GTLT]+"\\s*"+s[n.XRANGEPLAIN]+"$",R("XRANGELOOSE"),s[n.XRANGELOOSE]="^"+s[n.GTLT]+"\\s*"+s[n.XRANGEPLAINLOOSE]+"$",R("COERCE"),s[n.COERCE]="(^|[^\\d])(\\d{1,"+_+"})(?:\\.(\\d{1,"+_+"}))?(?:\\.(\\d{1,"+_+"}))?(?:$|[^\\d])",R("COERCERTL"),D[n.COERCERTL]=new RegExp(s[n.COERCE],"g"),h[n.COERCERTL]=new RegExp(g(s[n.COERCE]),"g"),R("LONETILDE"),s[n.LONETILDE]="(?:~>?)",R("TILDETRIM"),s[n.TILDETRIM]="(\\s*)"+s[n.LONETILDE]+"\\s+",D[n.TILDETRIM]=new RegExp(s[n.TILDETRIM],"g"),h[n.TILDETRIM]=new RegExp(g(s[n.TILDETRIM]),"g");var W="$1~";R("TILDE"),s[n.TILDE]="^"+s[n.LONETILDE]+s[n.XRANGEPLAIN]+"$",R("TILDELOOSE"),s[n.TILDELOOSE]="^"+s[n.LONETILDE]+s[n.XRANGEPLAINLOOSE]+"$",R("LONECARET"),s[n.LONECARET]="(?:\\^)",R("CARETTRIM"),s[n.CARETTRIM]="(\\s*)"+s[n.LONECARET]+"\\s+",D[n.CARETTRIM]=new RegExp(s[n.CARETTRIM],"g"),h[n.CARETTRIM]=new RegExp(g(s[n.CARETTRIM]),"g");var x="$1^";R("CARET"),s[n.CARET]="^"+s[n.LONECARET]+s[n.XRANGEPLAIN]+"$",R("CARETLOOSE"),s[n.CARETLOOSE]="^"+s[n.LONECARET]+s[n.XRANGEPLAINLOOSE]+"$",R("COMPARATORLOOSE"),s[n.COMPARATORLOOSE]="^"+s[n.GTLT]+"\\s*("+s[n.LOOSEPLAIN]+")$|^$",R("COMPARATOR"),s[n.COMPARATOR]="^"+s[n.GTLT]+"\\s*("+s[n.FULLPLAIN]+")$|^$",R("COMPARATORTRIM"),s[n.COMPARATORTRIM]="(\\s*)"+s[n.GTLT]+"\\s*("+s[n.LOOSEPLAIN]+"|"+s[n.XRANGEPLAIN]+")",D[n.COMPARATORTRIM]=new RegExp(s[n.COMPARATORTRIM],"g"),h[n.COMPARATORTRIM]=new RegExp(g(s[n.COMPARATORTRIM]),"g");var ee="$1$2$3";R("HYPHENRANGE"),s[n.HYPHENRANGE]="^\\s*("+s[n.XRANGEPLAIN]+")\\s+-\\s+("+s[n.XRANGEPLAIN]+")\\s*$",R("HYPHENRANGELOOSE"),s[n.HYPHENRANGELOOSE]="^\\s*("+s[n.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[n.XRANGEPLAINLOOSE]+")\\s*$",R("STAR"),s[n.STAR]="(<|>)?=?\\s*\\*";for(var S=0;S<k;S++)I(S,s[S]),D[S]||(D[S]=new RegExp(s[S]),h[S]=new RegExp(g(s[S])));l.parse=C;function C(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof f)return e;if(typeof e!="string"||e.length>y)return null;var t=r.loose?h[n.LOOSE]:h[n.FULL];if(!t.test(e))return null;try{return new f(e,r)}catch{return null}}l.valid=re;function re(e,r){var t=C(e,r);return t?t.version:null}l.clean=te;function te(e,r){var t=C(e.trim().replace(/^[=v]+/,""),r);return t?t.version:null}l.SemVer=f;function f(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof f){if(e.loose===r.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>y)throw new TypeError("version is longer than "+y+" characters");if(!(this instanceof f))return new f(e,r);I("SemVer",e,r),this.options=r,this.loose=!!r.loose;var t=e.trim().match(r.loose?h[n.LOOSE]:h[n.FULL]);if(!t)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>G||this.major<0)throw new TypeError("Invalid major version");if(this.minor>G||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>G||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(i){if(/^[0-9]+$/.test(i)){var a=+i;if(a>=0&&a<G)return a}return i}):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}f.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},f.prototype.toString=function(){return this.version},f.prototype.compare=function(e){return I("SemVer.compare",this.version,this.options,e),e instanceof f||(e=new f(e,this.options)),this.compareMain(e)||this.comparePre(e)},f.prototype.compareMain=function(e){return e instanceof f||(e=new f(e,this.options)),w(this.major,e.major)||w(this.minor,e.minor)||w(this.patch,e.patch)},f.prototype.comparePre=function(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var r=0;do{var t=this.prerelease[r],i=e.prerelease[r];if(I("prerelease compare",r,t,i),t===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(t===void 0)return-1;if(t===i)continue;return w(t,i)}while(++r)},f.prototype.compareBuild=function(e){e instanceof f||(e=new f(e,this.options));var r=0;do{var t=this.build[r],i=e.build[r];if(I("prerelease compare",r,t,i),t===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(t===void 0)return-1;if(t===i)continue;return w(t,i)}while(++r)},f.prototype.inc=function(e,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var t=this.prerelease.length;--t>=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},l.inc=ne;function ne(e,r,t,i){typeof t=="string"&&(i=t,t=void 0);try{return new f(e,t).inc(r,i).version}catch{return null}}l.diff=ie;function ie(e,r){if(V(e,r))return null;var t=C(e),i=C(r),a="";if(t.prerelease.length||i.prerelease.length){a="pre";var E="prerelease"}for(var u in t)if((u==="major"||u==="minor"||u==="patch")&&t[u]!==i[u])return a+u;return E}l.compareIdentifiers=w;var Y=/^[0-9]+$/;function w(e,r){var t=Y.test(e),i=Y.test(r);return t&&i&&(e=+e,r=+r),e===r?0:t&&!i?-1:i&&!t?1:e<r?-1:1}l.rcompareIdentifiers=se;function se(e,r){return w(r,e)}l.major=ae;function ae(e,r){return new f(e,r).major}l.minor=Ee;function Ee(e,r){return new f(e,r).minor}l.patch=ue;function ue(e,r){return new f(e,r).patch}l.compare=m;function m(e,r,t){return new f(e,t).compare(new f(r,t))}l.compareLoose=le;function le(e,r){return m(e,r,!0)}l.compareBuild=fe;function fe(e,r,t){var i=new f(e,t),a=new f(r,t);return i.compare(a)||i.compareBuild(a)}l.rcompare=ce;function ce(e,r,t){return m(r,e,t)}l.sort=Re;function Re(e,r){return e.sort(function(t,i){return l.compareBuild(t,i,r)})}l.rsort=oe;function oe(e,r){return e.sort(function(t,i){return l.compareBuild(i,t,r)})}l.gt=F;function F(e,r,t){return m(e,r,t)>0}l.lt=X;function X(e,r,t){return m(e,r,t)<0}l.eq=V;function V(e,r,t){return m(e,r,t)===0}l.neq=z;function z(e,r,t){return m(e,r,t)!==0}l.gte=H;function H(e,r,t){return m(e,r,t)>=0}l.lte=b;function b(e,r,t){return m(e,r,t)<=0}l.cmp=j;function j(e,r,t,i){switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return V(e,t,i);case"!=":return z(e,t,i);case">":return F(e,t,i);case">=":return H(e,t,i);case"<":return X(e,t,i);case"<=":return b(e,t,i);default:throw new TypeError("Invalid operator: "+r)}}l.Comparator=T;function T(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof T){if(e.loose===!!r.loose)return e;e=e.value}if(!(this instanceof T))return new T(e,r);e=e.trim().split(/\s+/).join(" "),I("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===P?this.value="":this.value=this.operator+this.semver.version,I("comp",this)}var P={};T.prototype.parse=function(e){var r=this.options.loose?h[n.COMPARATORLOOSE]:h[n.COMPARATOR],t=e.match(r);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=t[1]!==void 0?t[1]:"",this.operator==="="&&(this.operator=""),t[2]?this.semver=new f(t[2],this.options.loose):this.semver=P},T.prototype.toString=function(){return this.value},T.prototype.test=function(e){if(I("Comparator.test",e,this.options.loose),this.semver===P||e===P)return!0;if(typeof e=="string")try{e=new f(e,this.options)}catch{return!1}return j(e,this.operator,this.semver,this.options)},T.prototype.intersects=function(e,r){if(!(e instanceof T))throw new TypeError("a Comparator is required");(!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1});var t;if(this.operator==="")return this.value===""?!0:(t=new O(e.value,r),U(this.value,t,r));if(e.operator==="")return e.value===""?!0:(t=new O(this.value,r),U(e.semver,t,r));var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),E=this.semver.version===e.semver.version,u=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=j(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=j(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||a||E&&u||o||c},l.Range=O;function O(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof O)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new O(e.raw,r);if(e instanceof T)return new O(e.value,r);if(!(this instanceof O))return new O(e,r);if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}O.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var r=this.options.loose,t=r?h[n.HYPHENRANGELOOSE]:h[n.HYPHENRANGE];e=e.replace(t,Se),I("hyphen replace",e),e=e.replace(h[n.COMPARATORTRIM],ee),I("comparator trim",e,h[n.COMPARATORTRIM]),e=e.replace(h[n.TILDETRIM],W),e=e.replace(h[n.CARETTRIM],x),e=e.split(/\s+/).join(" ");var i=r?h[n.COMPARATORLOOSE]:h[n.COMPARATOR],a=e.split(" ").map(function(E){return he(E,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(E){return!!E.match(i)})),a=a.map(function(E){return new T(E,this.options)},this),a},O.prototype.intersects=function(e,r){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some(function(t){return Z(t,r)&&e.set.some(function(i){return Z(i,r)&&t.every(function(a){return i.every(function(E){return a.intersects(E,r)})})})})};function Z(e,r){for(var t=!0,i=e.slice(),a=i.pop();t&&i.length;)t=i.every(function(E){return a.intersects(E,r)}),a=i.pop();return t}l.toComparators=Ie;function Ie(e,r){return new O(e,r).set.map(function(t){return t.map(function(i){return i.value}).join(" ").trim().split(" ")})}function he(e,r){return I("comp",e,r),e=Ne(e,r),I("caret",e),e=Oe(e,r),I("tildes",e),e=Ae(e,r),I("xrange",e),e=ve(e,r),I("stars",e),e}function L(e){return!e||e.toLowerCase()==="x"||e==="*"}function Oe(e,r){return e.trim().split(/\s+/).map(function(t){return Le(t,r)}).join(" ")}function Le(e,r){var t=r.loose?h[n.TILDELOOSE]:h[n.TILDE];return e.replace(t,function(i,a,E,u,o){I("tilde",e,i,a,E,u,o);var c;return L(a)?c="":L(E)?c=">="+a+".0.0 <"+(+a+1)+".0.0":L(u)?c=">="+a+"."+E+".0 <"+a+"."+(+E+1)+".0":o?(I("replaceTilde pr",o),c=">="+a+"."+E+"."+u+"-"+o+" <"+a+"."+(+E+1)+".0"):c=">="+a+"."+E+"."+u+" <"+a+"."+(+E+1)+".0",I("tilde return",c),c})}function Ne(e,r){return e.trim().split(/\s+/).map(function(t){return Te(t,r)}).join(" ")}function Te(e,r){I("caret",e,r);var t=r.loose?h[n.CARETLOOSE]:h[n.CARET];return e.replace(t,function(i,a,E,u,o){I("caret",e,i,a,E,u,o);var c;return L(a)?c="":L(E)?c=">="+a+".0.0 <"+(+a+1)+".0.0":L(u)?a==="0"?c=">="+a+"."+E+".0 <"+a+"."+(+E+1)+".0":c=">="+a+"."+E+".0 <"+(+a+1)+".0.0":o?(I("replaceCaret pr",o),a==="0"?E==="0"?c=">="+a+"."+E+"."+u+"-"+o+" <"+a+"."+E+"."+(+u+1):c=">="+a+"."+E+"."+u+"-"+o+" <"+a+"."+(+E+1)+".0":c=">="+a+"."+E+"."+u+"-"+o+" <"+(+a+1)+".0.0"):(I("no pr"),a==="0"?E==="0"?c=">="+a+"."+E+"."+u+" <"+a+"."+E+"."+(+u+1):c=">="+a+"."+E+"."+u+" <"+a+"."+(+E+1)+".0":c=">="+a+"."+E+"."+u+" <"+(+a+1)+".0.0"),I("caret return",c),c})}function Ae(e,r){return I("replaceXRanges",e,r),e.split(/\s+/).map(function(t){return pe(t,r)}).join(" ")}function pe(e,r){e=e.trim();var t=r.loose?h[n.XRANGELOOSE]:h[n.XRANGE];return e.replace(t,function(i,a,E,u,o,c){I("xRange",e,i,a,E,u,o,c);var p=L(E),v=p||L(u),A=v||L(o),N=A;return a==="="&&N&&(a=""),c=r.includePrerelease?"-0":"",p?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&N?(v&&(u=0),o=0,a===">"?(a=">=",v?(E=+E+1,u=0,o=0):(u=+u+1,o=0)):a==="<="&&(a="<",v?E=+E+1:u=+u+1),i=a+E+"."+u+"."+o+c):v?i=">="+E+".0.0"+c+" <"+(+E+1)+".0.0"+c:A&&(i=">="+E+"."+u+".0"+c+" <"+E+"."+(+u+1)+".0"+c),I("xRange return",i),i})}function ve(e,r){return I("replaceStars",e,r),e.trim().replace(h[n.STAR],"")}function Se(e,r,t,i,a,E,u,o,c,p,v,A,N){return L(t)?r="":L(i)?r=">="+t+".0.0":L(a)?r=">="+t+"."+i+".0":r=">="+r,L(c)?o="":L(p)?o="<"+(+c+1)+".0.0":L(v)?o="<"+c+"."+(+p+1)+".0":A?o="<="+c+"."+p+"."+v+"-"+A:o="<="+o,(r+" "+o).trim()}O.prototype.test=function(e){if(!e)return!1;if(typeof e=="string")try{e=new f(e,this.options)}catch{return!1}for(var r=0;r<this.set.length;r++)if(me(this.set[r],e,this.options))return!0;return!1};function me(e,r,t){for(var i=0;i<e.length;i++)if(!e[i].test(r))return!1;if(r.prerelease.length&&!t.includePrerelease){for(i=0;i<e.length;i++)if(I(e[i].semver),e[i].semver!==P&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}l.satisfies=U;function U(e,r,t){try{r=new O(r,t)}catch{return!1}return r.test(e)}l.maxSatisfying=de;function de(e,r,t){var i=null,a=null;try{var E=new O(r,t)}catch{return null}return e.forEach(function(u){E.test(u)&&(!i||a.compare(u)===-1)&&(i=u,a=new f(i,t))}),i}l.minSatisfying=Ce;function Ce(e,r,t){var i=null,a=null;try{var E=new O(r,t)}catch{return null}return e.forEach(function(u){E.test(u)&&(!i||a.compare(u)===1)&&(i=u,a=new f(i,t))}),i}l.minVersion=we;function we(e,r){e=new O(e,r);var t=new f("0.0.0");if(e.test(t)||(t=new f("0.0.0-0"),e.test(t)))return t;t=null;for(var i=0;i<e.set.length;++i){var a=e.set[i];a.forEach(function(E){var u=new f(E.semver.version);switch(E.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!t||F(t,u))&&(t=u);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+E.operator)}})}return t&&e.test(t)?t:null}l.validRange=De;function De(e,r){try{return new O(e,r).range||"*"}catch{return null}}l.ltr=Pe;function Pe(e,r,t){return q(e,r,"<",t)}l.gtr=ye;function ye(e,r,t){return q(e,r,">",t)}l.outside=q;function q(e,r,t,i){e=new f(e,i),r=new O(r,i);var a,E,u,o,c;switch(t){case">":a=F,E=b,u=X,o=">",c=">=";break;case"<":a=X,E=H,u=F,o="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(U(e,r,i))return!1;for(var p=0;p<r.set.length;++p){var v=r.set[p],A=null,N=null;if(v.forEach(function(d){d.semver===P&&(d=new T(">=0.0.0")),A=A||d,N=N||d,a(d.semver,A.semver,i)?A=d:u(d.semver,N.semver,i)&&(N=d)}),A.operator===o||A.operator===c||(!N.operator||N.operator===o)&&E(e,N.semver))return!1;if(N.operator===c&&u(e,N.semver))return!1}return!0}l.prerelease=ge;function ge(e,r){var t=C(e,r);return t&&t.prerelease.length?t.prerelease:null}l.intersects=Fe;function Fe(e,r,t){return e=new O(e,t),r=new O(r,t),e.intersects(r)}l.coerce=Ge;function Ge(e,r){if(e instanceof f)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;r=r||{};var t=null;if(!r.rtl)t=e.match(h[n.COERCE]);else{for(var i;(i=h[n.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),h[n.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;h[n.COERCERTL].lastIndex=-1}return t===null?null:C(t[2]+"."+(t[3]||"0")+"."+(t[4]||"0"),r)}})(M.__module,M.__module.exports)),M.__module.exports}exports.__require=Xe;
|
|
1
|
+
"use strict";var e=require(`../../../../../_virtual/_rolldown/runtime.cjs`).__commonJSMin(((e,t)=>{e=t.exports=S;var n=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift(`SEMVER`),console.log.apply(console,e)}:function(){};e.SEMVER_SPEC_VERSION=`2.0.0`;var r=256,i=2**53-1||9007199254740991,a=16,o=r-6,s=e.re=[],c=e.safeRe=[],l=e.src=[],u=e.tokens={},d=0;function f(e){u[e]=d++}var p=`[a-zA-Z0-9-]`,m=[[`\\s`,1],[`\\d`,r],[p,o]];function h(e){for(var t=0;t<m.length;t++){var n=m[t][0],r=m[t][1];e=e.split(n+`*`).join(n+`{0,`+r+`}`).split(n+`+`).join(n+`{1,`+r+`}`)}return e}f(`NUMERICIDENTIFIER`),l[u.NUMERICIDENTIFIER]=`0|[1-9]\\d*`,f(`NUMERICIDENTIFIERLOOSE`),l[u.NUMERICIDENTIFIERLOOSE]=`\\d+`,f(`NONNUMERICIDENTIFIER`),l[u.NONNUMERICIDENTIFIER]=`\\d*[a-zA-Z-]`+p+`*`,f(`MAINVERSION`),l[u.MAINVERSION]=`(`+l[u.NUMERICIDENTIFIER]+`)\\.(`+l[u.NUMERICIDENTIFIER]+`)\\.(`+l[u.NUMERICIDENTIFIER]+`)`,f(`MAINVERSIONLOOSE`),l[u.MAINVERSIONLOOSE]=`(`+l[u.NUMERICIDENTIFIERLOOSE]+`)\\.(`+l[u.NUMERICIDENTIFIERLOOSE]+`)\\.(`+l[u.NUMERICIDENTIFIERLOOSE]+`)`,f(`PRERELEASEIDENTIFIER`),l[u.PRERELEASEIDENTIFIER]=`(?:`+l[u.NUMERICIDENTIFIER]+`|`+l[u.NONNUMERICIDENTIFIER]+`)`,f(`PRERELEASEIDENTIFIERLOOSE`),l[u.PRERELEASEIDENTIFIERLOOSE]=`(?:`+l[u.NUMERICIDENTIFIERLOOSE]+`|`+l[u.NONNUMERICIDENTIFIER]+`)`,f(`PRERELEASE`),l[u.PRERELEASE]=`(?:-(`+l[u.PRERELEASEIDENTIFIER]+`(?:\\.`+l[u.PRERELEASEIDENTIFIER]+`)*))`,f(`PRERELEASELOOSE`),l[u.PRERELEASELOOSE]=`(?:-?(`+l[u.PRERELEASEIDENTIFIERLOOSE]+`(?:\\.`+l[u.PRERELEASEIDENTIFIERLOOSE]+`)*))`,f(`BUILDIDENTIFIER`),l[u.BUILDIDENTIFIER]=p+`+`,f(`BUILD`),l[u.BUILD]=`(?:\\+(`+l[u.BUILDIDENTIFIER]+`(?:\\.`+l[u.BUILDIDENTIFIER]+`)*))`,f(`FULL`),f(`FULLPLAIN`),l[u.FULLPLAIN]=`v?`+l[u.MAINVERSION]+l[u.PRERELEASE]+`?`+l[u.BUILD]+`?`,l[u.FULL]=`^`+l[u.FULLPLAIN]+`$`,f(`LOOSEPLAIN`),l[u.LOOSEPLAIN]=`[v=\\s]*`+l[u.MAINVERSIONLOOSE]+l[u.PRERELEASELOOSE]+`?`+l[u.BUILD]+`?`,f(`LOOSE`),l[u.LOOSE]=`^`+l[u.LOOSEPLAIN]+`$`,f(`GTLT`),l[u.GTLT]=`((?:<|>)?=?)`,f(`XRANGEIDENTIFIERLOOSE`),l[u.XRANGEIDENTIFIERLOOSE]=l[u.NUMERICIDENTIFIERLOOSE]+`|x|X|\\*`,f(`XRANGEIDENTIFIER`),l[u.XRANGEIDENTIFIER]=l[u.NUMERICIDENTIFIER]+`|x|X|\\*`,f(`XRANGEPLAIN`),l[u.XRANGEPLAIN]=`[v=\\s]*(`+l[u.XRANGEIDENTIFIER]+`)(?:\\.(`+l[u.XRANGEIDENTIFIER]+`)(?:\\.(`+l[u.XRANGEIDENTIFIER]+`)(?:`+l[u.PRERELEASE]+`)?`+l[u.BUILD]+`?)?)?`,f(`XRANGEPLAINLOOSE`),l[u.XRANGEPLAINLOOSE]=`[v=\\s]*(`+l[u.XRANGEIDENTIFIERLOOSE]+`)(?:\\.(`+l[u.XRANGEIDENTIFIERLOOSE]+`)(?:\\.(`+l[u.XRANGEIDENTIFIERLOOSE]+`)(?:`+l[u.PRERELEASELOOSE]+`)?`+l[u.BUILD]+`?)?)?`,f(`XRANGE`),l[u.XRANGE]=`^`+l[u.GTLT]+`\\s*`+l[u.XRANGEPLAIN]+`$`,f(`XRANGELOOSE`),l[u.XRANGELOOSE]=`^`+l[u.GTLT]+`\\s*`+l[u.XRANGEPLAINLOOSE]+`$`,f(`COERCE`),l[u.COERCE]=`(^|[^\\d])(\\d{1,`+a+`})(?:\\.(\\d{1,`+a+`}))?(?:\\.(\\d{1,`+a+`}))?(?:$|[^\\d])`,f(`COERCERTL`),s[u.COERCERTL]=new RegExp(l[u.COERCE],`g`),c[u.COERCERTL]=new RegExp(h(l[u.COERCE]),`g`),f(`LONETILDE`),l[u.LONETILDE]=`(?:~>?)`,f(`TILDETRIM`),l[u.TILDETRIM]=`(\\s*)`+l[u.LONETILDE]+`\\s+`,s[u.TILDETRIM]=new RegExp(l[u.TILDETRIM],`g`),c[u.TILDETRIM]=new RegExp(h(l[u.TILDETRIM]),`g`);var g=`$1~`;f(`TILDE`),l[u.TILDE]=`^`+l[u.LONETILDE]+l[u.XRANGEPLAIN]+`$`,f(`TILDELOOSE`),l[u.TILDELOOSE]=`^`+l[u.LONETILDE]+l[u.XRANGEPLAINLOOSE]+`$`,f(`LONECARET`),l[u.LONECARET]=`(?:\\^)`,f(`CARETTRIM`),l[u.CARETTRIM]=`(\\s*)`+l[u.LONECARET]+`\\s+`,s[u.CARETTRIM]=new RegExp(l[u.CARETTRIM],`g`),c[u.CARETTRIM]=new RegExp(h(l[u.CARETTRIM]),`g`);var ee=`$1^`;f(`CARET`),l[u.CARET]=`^`+l[u.LONECARET]+l[u.XRANGEPLAIN]+`$`,f(`CARETLOOSE`),l[u.CARETLOOSE]=`^`+l[u.LONECARET]+l[u.XRANGEPLAINLOOSE]+`$`,f(`COMPARATORLOOSE`),l[u.COMPARATORLOOSE]=`^`+l[u.GTLT]+`\\s*(`+l[u.LOOSEPLAIN]+`)$|^$`,f(`COMPARATOR`),l[u.COMPARATOR]=`^`+l[u.GTLT]+`\\s*(`+l[u.FULLPLAIN]+`)$|^$`,f(`COMPARATORTRIM`),l[u.COMPARATORTRIM]=`(\\s*)`+l[u.GTLT]+`\\s*(`+l[u.LOOSEPLAIN]+`|`+l[u.XRANGEPLAIN]+`)`,s[u.COMPARATORTRIM]=new RegExp(l[u.COMPARATORTRIM],`g`),c[u.COMPARATORTRIM]=new RegExp(h(l[u.COMPARATORTRIM]),`g`);var _=`$1$2$3`;f(`HYPHENRANGE`),l[u.HYPHENRANGE]=`^\\s*(`+l[u.XRANGEPLAIN]+`)\\s+-\\s+(`+l[u.XRANGEPLAIN]+`)\\s*$`,f(`HYPHENRANGELOOSE`),l[u.HYPHENRANGELOOSE]=`^\\s*(`+l[u.XRANGEPLAINLOOSE]+`)\\s+-\\s+(`+l[u.XRANGEPLAINLOOSE]+`)\\s*$`,f(`STAR`),l[u.STAR]=`(<|>)?=?\\s*\\*`;for(var v=0;v<d;v++)n(v,l[v]),s[v]||(s[v]=new RegExp(l[v]),c[v]=new RegExp(h(l[v])));e.parse=y;function y(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof S)return e;if(typeof e!=`string`||e.length>r||!(t.loose?c[u.LOOSE]:c[u.FULL]).test(e))return null;try{return new S(e,t)}catch{return null}}e.valid=b;function b(e,t){var n=y(e,t);return n?n.version:null}e.clean=x;function x(e,t){var n=y(e.trim().replace(/^[=v]+/,``),t);return n?n.version:null}e.SemVer=S;function S(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof S){if(e.loose===t.loose)return e;e=e.version}else if(typeof e!=`string`)throw TypeError(`Invalid Version: `+e);if(e.length>r)throw TypeError(`version is longer than `+r+` characters`);if(!(this instanceof S))return new S(e,t);n(`SemVer`,e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?c[u.LOOSE]:c[u.FULL]);if(!a)throw TypeError(`Invalid Version: `+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);a[4]?this.prerelease=a[4].split(`.`).map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=a[5]?a[5].split(`.`):[],this.format()}S.prototype.format=function(){return this.version=this.major+`.`+this.minor+`.`+this.patch,this.prerelease.length&&(this.version+=`-`+this.prerelease.join(`.`)),this.version},S.prototype.toString=function(){return this.version},S.prototype.compare=function(e){return n(`SemVer.compare`,this.version,this.options,e),e instanceof S||(e=new S(e,this.options)),this.compareMain(e)||this.comparePre(e)},S.prototype.compareMain=function(e){return e instanceof S||(e=new S(e,this.options)),E(this.major,e.major)||E(this.minor,e.minor)||E(this.patch,e.patch)},S.prototype.comparePre=function(e){if(e instanceof S||(e=new S(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n(`prerelease compare`,t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return E(r,i)}while(++t)},S.prototype.compareBuild=function(e){e instanceof S||(e=new S(e,this.options));var t=0;do{var r=this.build[t],i=e.build[t];if(n(`prerelease compare`,t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return E(r,i)}while(++t)},S.prototype.inc=function(e,t){switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t),this.inc(`pre`,t);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t),this.inc(`pre`,t);break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:if(this.prerelease.length===0)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)typeof this.prerelease[n]==`number`&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: `+e)}return this.format(),this.raw=this.version,this},e.inc=C;function C(e,t,n,r){typeof n==`string`&&(r=n,n=void 0);try{return new S(e,n).inc(t,r).version}catch{return null}}e.diff=w;function w(e,t){if(L(e,t))return null;var n=y(e),r=y(t),i=``;if(n.prerelease.length||r.prerelease.length){i=`pre`;var a=`prerelease`}for(var o in n)if((o===`major`||o===`minor`||o===`patch`)&&n[o]!==r[o])return i+o;return a}e.compareIdentifiers=E;var T=/^[0-9]+$/;function E(e,t){var n=T.test(e),r=T.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}e.rcompareIdentifiers=te;function te(e,t){return E(t,e)}e.major=D;function D(e,t){return new S(e,t).major}e.minor=O;function O(e,t){return new S(e,t).minor}e.patch=k;function k(e,t){return new S(e,t).patch}e.compare=A;function A(e,t,n){return new S(e,n).compare(new S(t,n))}e.compareLoose=j;function j(e,t){return A(e,t,!0)}e.compareBuild=M;function M(e,t,n){var r=new S(e,n),i=new S(t,n);return r.compare(i)||r.compareBuild(i)}e.rcompare=N;function N(e,t,n){return A(t,e,n)}e.sort=P;function P(t,n){return t.sort(function(t,r){return e.compareBuild(t,r,n)})}e.rsort=ne;function ne(t,n){return t.sort(function(t,r){return e.compareBuild(r,t,n)})}e.gt=F;function F(e,t,n){return A(e,t,n)>0}e.lt=I;function I(e,t,n){return A(e,t,n)<0}e.eq=L;function L(e,t,n){return A(e,t,n)===0}e.neq=R;function R(e,t,n){return A(e,t,n)!==0}e.gte=z;function z(e,t,n){return A(e,t,n)>=0}e.lte=B;function B(e,t,n){return A(e,t,n)<=0}e.cmp=V;function V(e,t,n,r){switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof n==`object`&&(n=n.version),e===n;case`!==`:return typeof e==`object`&&(e=e.version),typeof n==`object`&&(n=n.version),e!==n;case``:case`=`:case`==`:return L(e,n,r);case`!=`:return R(e,n,r);case`>`:return F(e,n,r);case`>=`:return z(e,n,r);case`<`:return I(e,n,r);case`<=`:return B(e,n,r);default:throw TypeError(`Invalid operator: `+t)}}e.Comparator=H;function H(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof H){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof H))return new H(e,t);e=e.trim().split(/\s+/).join(` `),n(`comparator`,e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===U?this.value=``:this.value=this.operator+this.semver.version,n(`comp`,this)}var U={};H.prototype.parse=function(e){var t=this.options.loose?c[u.COMPARATORLOOSE]:c[u.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: `+e);this.operator=n[1]===void 0?``:n[1],this.operator===`=`&&(this.operator=``),n[2]?this.semver=new S(n[2],this.options.loose):this.semver=U},H.prototype.toString=function(){return this.value},H.prototype.test=function(e){if(n(`Comparator.test`,e,this.options.loose),this.semver===U||e===U)return!0;if(typeof e==`string`)try{e=new S(e,this.options)}catch{return!1}return V(e,this.operator,this.semver,this.options)},H.prototype.intersects=function(e,t){if(!(e instanceof H))throw TypeError(`a Comparator is required`);(!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1});var n;if(this.operator===``)return this.value===``?!0:(n=new W(e.value,t),Z(this.value,n,t));if(e.operator===``)return e.value===``?!0:(n=new W(this.value,t),Z(e.semver,n,t));var r=(this.operator===`>=`||this.operator===`>`)&&(e.operator===`>=`||e.operator===`>`),i=(this.operator===`<=`||this.operator===`<`)&&(e.operator===`<=`||e.operator===`<`),a=this.semver.version===e.semver.version,o=(this.operator===`>=`||this.operator===`<=`)&&(e.operator===`>=`||e.operator===`<=`),s=V(this.semver,`<`,e.semver,t)&&(this.operator===`>=`||this.operator===`>`)&&(e.operator===`<=`||e.operator===`<`),c=V(this.semver,`>`,e.semver,t)&&(this.operator===`<=`||this.operator===`<`)&&(e.operator===`>=`||e.operator===`>`);return r||i||a&&o||s||c},e.Range=W;function W(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new W(e.raw,t);if(e instanceof H)return new W(e.value,t);if(!(this instanceof W))return new W(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(` `),this.set=this.raw.split(`||`).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw TypeError(`Invalid SemVer Range: `+this.raw);this.format()}W.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(` `).trim()}).join(`||`).trim(),this.range},W.prototype.toString=function(){return this.range},W.prototype.parseRange=function(e){var t=this.options.loose,r=t?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(r,ce),n(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],_),n(`comparator trim`,e,c[u.COMPARATORTRIM]),e=e.replace(c[u.TILDETRIM],g),e=e.replace(c[u.CARETTRIM],ee),e=e.split(/\s+/).join(` `);var i=t?c[u.COMPARATORLOOSE]:c[u.COMPARATOR],a=e.split(` `).map(function(e){return q(e,this.options)},this).join(` `).split(/\s+/);return this.options.loose&&(a=a.filter(function(e){return!!e.match(i)})),a=a.map(function(e){return new H(e,this.options)},this),a},W.prototype.intersects=function(e,t){if(!(e instanceof W))throw TypeError(`a Range is required`);return this.set.some(function(n){return G(n,t)&&e.set.some(function(e){return G(e,t)&&n.every(function(n){return e.every(function(e){return n.intersects(e,t)})})})})};function G(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every(function(e){return i.intersects(e,t)}),i=r.pop();return n}e.toComparators=K;function K(e,t){return new W(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(` `).trim().split(` `)})}function q(e,t){return n(`comp`,e,t),e=X(e,t),n(`caret`,e),e=Y(e,t),n(`tildes`,e),e=ae(e,t),n(`xrange`,e),e=se(e,t),n(`stars`,e),e}function J(e){return!e||e.toLowerCase()===`x`||e===`*`}function Y(e,t){return e.trim().split(/\s+/).map(function(e){return re(e,t)}).join(` `)}function re(e,t){var r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,function(t,r,i,a,o){n(`tilde`,e,t,r,i,a,o);var s;return J(r)?s=``:J(i)?s=`>=`+r+`.0.0 <`+(+r+1)+`.0.0`:J(a)?s=`>=`+r+`.`+i+`.0 <`+r+`.`+(+i+1)+`.0`:o?(n(`replaceTilde pr`,o),s=`>=`+r+`.`+i+`.`+a+`-`+o+` <`+r+`.`+(+i+1)+`.0`):s=`>=`+r+`.`+i+`.`+a+` <`+r+`.`+(+i+1)+`.0`,n(`tilde return`,s),s})}function X(e,t){return e.trim().split(/\s+/).map(function(e){return ie(e,t)}).join(` `)}function ie(e,t){n(`caret`,e,t);var r=t.loose?c[u.CARETLOOSE]:c[u.CARET];return e.replace(r,function(t,r,i,a,o){n(`caret`,e,t,r,i,a,o);var s;return J(r)?s=``:J(i)?s=`>=`+r+`.0.0 <`+(+r+1)+`.0.0`:J(a)?s=r===`0`?`>=`+r+`.`+i+`.0 <`+r+`.`+(+i+1)+`.0`:`>=`+r+`.`+i+`.0 <`+(+r+1)+`.0.0`:o?(n(`replaceCaret pr`,o),s=r===`0`?i===`0`?`>=`+r+`.`+i+`.`+a+`-`+o+` <`+r+`.`+i+`.`+(+a+1):`>=`+r+`.`+i+`.`+a+`-`+o+` <`+r+`.`+(+i+1)+`.0`:`>=`+r+`.`+i+`.`+a+`-`+o+` <`+(+r+1)+`.0.0`):(n(`no pr`),s=r===`0`?i===`0`?`>=`+r+`.`+i+`.`+a+` <`+r+`.`+i+`.`+(+a+1):`>=`+r+`.`+i+`.`+a+` <`+r+`.`+(+i+1)+`.0`:`>=`+r+`.`+i+`.`+a+` <`+(+r+1)+`.0.0`),n(`caret return`,s),s})}function ae(e,t){return n(`replaceXRanges`,e,t),e.split(/\s+/).map(function(e){return oe(e,t)}).join(` `)}function oe(e,t){e=e.trim();var r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,function(r,i,a,o,s,c){n(`xRange`,e,r,i,a,o,s,c);var l=J(a),u=l||J(o),d=u||J(s),f=d;return i===`=`&&f&&(i=``),c=t.includePrerelease?`-0`:``,l?r=i===`>`||i===`<`?`<0.0.0-0`:`*`:i&&f?(u&&(o=0),s=0,i===`>`?(i=`>=`,u?(a=+a+1,o=0,s=0):(o=+o+1,s=0)):i===`<=`&&(i=`<`,u?a=+a+1:o=+o+1),r=i+a+`.`+o+`.`+s+c):u?r=`>=`+a+`.0.0`+c+` <`+(+a+1)+`.0.0`+c:d&&(r=`>=`+a+`.`+o+`.0`+c+` <`+a+`.`+(+o+1)+`.0`+c),n(`xRange return`,r),r})}function se(e,t){return n(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)}function ce(e,t,n,r,i,a,o,s,c,l,u,d,f){return t=J(n)?``:J(r)?`>=`+n+`.0.0`:J(i)?`>=`+n+`.`+r+`.0`:`>=`+t,s=J(c)?``:J(l)?`<`+(+c+1)+`.0.0`:J(u)?`<`+c+`.`+(+l+1)+`.0`:d?`<=`+c+`.`+l+`.`+u+`-`+d:`<=`+s,(t+` `+s).trim()}W.prototype.test=function(e){if(!e)return!1;if(typeof e==`string`)try{e=new S(e,this.options)}catch{return!1}for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1};function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==U&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}e.satisfies=Z;function Z(e,t,n){try{t=new W(t,n)}catch{return!1}return t.test(e)}e.maxSatisfying=ue;function ue(e,t,n){var r=null,i=null;try{var a=new W(t,n)}catch{return null}return e.forEach(function(e){a.test(e)&&(!r||i.compare(e)===-1)&&(r=e,i=new S(r,n))}),r}e.minSatisfying=Q;function Q(e,t,n){var r=null,i=null;try{var a=new W(t,n)}catch{return null}return e.forEach(function(e){a.test(e)&&(!r||i.compare(e)===1)&&(r=e,i=new S(r,n))}),r}e.minVersion=de;function de(e,t){e=new W(e,t);var n=new S(`0.0.0`);if(e.test(n)||(n=new S(`0.0.0-0`),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach(function(e){var t=new S(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!n||F(n,t))&&(n=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: `+e.operator)}});return n&&e.test(n)?n:null}e.validRange=fe;function fe(e,t){try{return new W(e,t).range||`*`}catch{return null}}e.ltr=pe;function pe(e,t,n){return $(e,t,`<`,n)}e.gtr=me;function me(e,t,n){return $(e,t,`>`,n)}e.outside=$;function $(e,t,n,r){e=new S(e,r),t=new W(t,r);var i,a,o,s,c;switch(n){case`>`:i=F,a=B,o=I,s=`>`,c=`>=`;break;case`<`:i=I,a=z,o=F,s=`<`,c=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(Z(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],d=null,f=null;if(u.forEach(function(e){e.semver===U&&(e=new H(`>=0.0.0`)),d||=e,f||=e,i(e.semver,d.semver,r)?d=e:o(e.semver,f.semver,r)&&(f=e)}),d.operator===s||d.operator===c||(!f.operator||f.operator===s)&&a(e,f.semver)||f.operator===c&&o(e,f.semver))return!1}return!0}e.prerelease=he;function he(e,t){var n=y(e,t);return n&&n.prerelease.length?n.prerelease:null}e.intersects=ge;function ge(e,t,n){return e=new W(e,n),t=new W(t,n),e.intersects(t)}e.coerce=_e;function _e(e,t){if(e instanceof S)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};var n=null;if(!t.rtl)n=e.match(c[u.COERCE]);else{for(var r;(r=c[u.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),c[u.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;c[u.COERCERTL].lastIndex=-1}return n===null?null:y(n[2]+`.`+(n[3]||`0`)+`.`+(n[4]||`0`),t)}}));Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e()}});
|