@unicom-cloud/utils 0.1.22 → 0.1.24
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/case-name/index.js +8 -7
- package/caseName.js +8 -7
- package/class-name/index.js +1 -0
- package/className.js +1 -0
- package/clipboard-copy/index.js +8 -8
- package/clipboardCopy.js +3 -3
- package/constant/address.js +1 -0
- package/constant/chineseCharacters.js +1 -0
- package/constant/constellations.js +1 -0
- package/constant/domain.js +1 -0
- package/constant/emoji.js +1 -0
- package/constant/identity.js +1 -0
- package/constant/index.js +1 -0
- package/constant/keyboardCode.js +1 -0
- package/constant/licensePlate.js +1 -0
- package/constant/name.js +1 -0
- package/constant/platform.js +12 -11
- package/constant/protocol.js +1 -0
- package/constant/ui.js +1 -0
- package/constant.js +1 -0
- package/content-disposition/index.js +3 -3
- package/contentDisposition.js +6 -6
- package/cookie/index.js +1 -0
- package/cookie/src/index.js +1 -0
- package/cookie.js +1 -0
- package/date/convertTime.js +1 -0
- package/date/convertToDuration.js +18 -0
- package/date/index.js +10 -19
- package/date.js +8 -6
- package/decimal/decimal.js +3 -2
- package/decimal/index.js +1 -0
- package/decimal.js +1 -0
- package/dom-helpers/activeElement.js +13 -0
- package/dom-helpers/addClass.js +11 -0
- package/dom-helpers/addEventListener.js +34 -0
- package/dom-helpers/animate.js +51 -0
- package/dom-helpers/animationFrame.js +21 -0
- package/dom-helpers/attribute.js +11 -0
- package/dom-helpers/camelize.js +8 -0
- package/dom-helpers/camelizeStyle.js +9 -0
- package/dom-helpers/canUseDOM.js +5 -0
- package/dom-helpers/childElements.js +7 -0
- package/dom-helpers/childNodes.js +8 -0
- package/dom-helpers/clear.js +12 -0
- package/dom-helpers/closest.js +14 -0
- package/dom-helpers/collectElements.js +11 -0
- package/dom-helpers/collectSiblings.js +15 -0
- package/dom-helpers/contains.js +9 -0
- package/dom-helpers/css.js +16 -0
- package/dom-helpers/filterEventHandler.js +12 -0
- package/dom-helpers/getComputedStyle.js +8 -0
- package/dom-helpers/getScrollAccessor.js +15 -0
- package/dom-helpers/hasClass.js +9 -0
- package/dom-helpers/height.js +10 -0
- package/dom-helpers/hyphenate.js +8 -0
- package/dom-helpers/hyphenateStyle.js +9 -0
- package/dom-helpers/index.js +140 -0
- package/dom-helpers/insertAfter.js +7 -0
- package/dom-helpers/isDocument.js +7 -0
- package/dom-helpers/isInput.js +8 -0
- package/dom-helpers/isTransform.js +8 -0
- package/dom-helpers/isVisible.js +7 -0
- package/dom-helpers/isWindow.js +8 -0
- package/dom-helpers/listen.js +11 -0
- package/dom-helpers/matches.js +12 -0
- package/dom-helpers/nextUntil.js +8 -0
- package/dom-helpers/offset.js +19 -0
- package/dom-helpers/offsetParent.js +14 -0
- package/dom-helpers/ownerDocument.js +7 -0
- package/dom-helpers/ownerWindow.js +9 -0
- package/dom-helpers/parents.js +8 -0
- package/dom-helpers/position.js +29 -0
- package/dom-helpers/prepend.js +7 -0
- package/dom-helpers/querySelectorAll.js +8 -0
- package/dom-helpers/reflow.js +26 -0
- package/dom-helpers/remove.js +7 -0
- package/dom-helpers/removeClass.js +19 -0
- package/dom-helpers/removeEventListener.js +8 -0
- package/dom-helpers/scrollLeft.js +6 -0
- package/dom-helpers/scrollParent.js +17 -0
- package/dom-helpers/scrollTo.js +27 -0
- package/dom-helpers/scrollTop.js +6 -0
- package/dom-helpers/scrollbarSize.js +13 -0
- package/dom-helpers/siblings.js +11 -0
- package/dom-helpers/text.js +9 -0
- package/dom-helpers/toggleClass.js +10 -0
- package/dom-helpers/transitionEnd.js +34 -0
- package/dom-helpers/triggerEvent.js +10 -0
- package/dom-helpers/types.js +1 -0
- package/dom-helpers/width.js +10 -0
- package/domHelpers.js +94 -0
- package/emitter/index.js +1 -0
- package/emitter/src/index.js +1 -0
- package/emitter.js +1 -0
- package/file/fileToURL.js +11 -11
- package/file/index.js +1 -0
- package/file/saveAs.js +1 -0
- package/file.js +1 -0
- package/filesize/types/constants.d.ts +30 -0
- package/filesize/types/helpers.d.ts +130 -0
- package/idb/index.js +103 -0
- package/idb.js +5 -0
- package/index.js +1 -0
- package/invariant/index.js +1 -0
- package/invariant.js +1 -0
- package/is/index.js +119 -119
- package/is.js +38 -37
- package/js-cookie/index.js +1 -0
- package/js-cookie/src/api.js +1 -0
- package/js-cookie/src/assign.js +1 -0
- package/js-cookie/src/converter.js +1 -0
- package/jsCookie.js +1 -0
- package/lunar/index.js +1 -0
- package/lunar/lib/Holiday.js +1 -0
- package/lunar/lib/HolidayUtil.js +1 -0
- package/lunar/lib/I18n.js +1 -0
- package/lunar/lib/JieQi.js +1 -0
- package/lunar/lib/Lunar.js +1 -0
- package/lunar/lib/LunarMonth.js +1 -0
- package/lunar/lib/LunarTime.js +1 -0
- package/lunar/lib/LunarUtil.js +1 -0
- package/lunar/lib/LunarYear.js +1 -0
- package/lunar/lib/ShouXingUtil.js +1 -0
- package/lunar/lib/Solar.js +1 -0
- package/lunar/lib/SolarHalfYear.js +1 -0
- package/lunar/lib/SolarMonth.js +1 -0
- package/lunar/lib/SolarSeason.js +1 -0
- package/lunar/lib/SolarUtil.js +1 -0
- package/lunar/lib/SolarWeek.js +1 -0
- package/lunar/lib/SolarYear.js +1 -0
- package/lunar/lib/index.js +1 -0
- package/lunar.js +1 -0
- package/math/index.js +1 -0
- package/math.js +1 -0
- package/md5/index.js +1 -0
- package/md5.js +1 -0
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -0
- package/mock.js +1 -0
- package/normalize-wheel/ExecutionEnvironment.js +4 -2
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -0
- package/normalize-wheel/index.js +1 -0
- package/normalize-wheel/isEventSupported.js +1 -0
- package/normalizeWheel.js +1 -0
- package/number-to-chinese/index.js +1 -0
- package/numberToChinese.js +1 -0
- package/nzh/cn.js +1 -0
- package/nzh/hk.js +1 -0
- package/nzh/index.js +1 -0
- package/nzh/nzh.js +1 -0
- package/nzh/src/autoGet.js +1 -0
- package/nzh/src/index.js +1 -0
- package/nzh/src/langs/cn_b.js +1 -0
- package/nzh/src/langs/cn_s.js +1 -0
- package/nzh/src/langs/hk_b.js +1 -0
- package/nzh/src/langs/hk_s.js +1 -0
- package/nzh/src/utils.js +1 -0
- package/nzh.js +1 -0
- package/object-keys-sort/index.js +1 -0
- package/objectKeysSort.js +1 -0
- package/package.json +1 -1
- package/pinyin/index.js +1 -0
- package/pinyin/simplified.js +1 -0
- package/pinyin/src/core.js +44 -42
- package/pinyin/src/simplified.js +6 -5
- package/pinyin/src/simplified_dict.js +3 -3
- package/pinyin/src/traditional.js +4 -3
- package/pinyin/src/traditional_dict.js +3 -3
- package/pinyin/traditional.js +1 -0
- package/pinyin.js +1 -0
- package/query-string/base.d.ts +102 -12
- package/query-string/base.js +76 -67
- package/query-string/index.js +1 -0
- package/query-string/splitOnFirst.js +1 -0
- package/queryString.js +1 -0
- package/random/address.js +1 -0
- package/random/constellation.js +1 -0
- package/random/image.js +1 -0
- package/random/index.js +6 -5
- package/random/licensePlate.js +1 -0
- package/random/name.js +1 -0
- package/random/number.js +1 -0
- package/random/text.js +1 -0
- package/random/time.js +1 -0
- package/random/web.js +1 -0
- package/random.js +1 -0
- package/screenfull/index.js +47 -117
- package/screenfull.js +1 -0
- package/sleep/index.js +7 -0
- package/sleep.js +5 -0
- package/snapdom/index.js +1 -0
- package/snapdom/src/api/preCache.js +63 -35
- package/snapdom/src/api/snapdom.js +84 -106
- package/snapdom/src/core/cache.js +28 -5
- package/snapdom/src/core/capture.js +341 -68
- package/snapdom/src/core/clone.js +296 -93
- package/snapdom/src/core/context.js +57 -0
- package/snapdom/src/core/prepare.js +125 -126
- package/snapdom/src/exporters/download.js +16 -0
- package/snapdom/src/exporters/toBlob.js +21 -0
- package/snapdom/src/exporters/toCanvas.js +106 -0
- package/snapdom/src/exporters/toImg.js +36 -0
- package/snapdom/src/modules/CSSVar.js +61 -0
- package/snapdom/src/modules/background.js +52 -29
- package/snapdom/src/modules/changeCSS.js +61 -0
- package/snapdom/src/modules/counter.js +165 -0
- package/snapdom/src/modules/fonts.js +640 -179
- package/snapdom/src/modules/iconFonts.js +1 -0
- package/snapdom/src/modules/images.js +48 -13
- package/snapdom/src/modules/lineClamp.js +42 -0
- package/snapdom/src/modules/pseudo.js +194 -62
- package/snapdom/src/modules/rasterize.js +10 -0
- package/snapdom/src/modules/snapFetch.js +263 -0
- package/snapdom/src/modules/styles.js +144 -23
- package/snapdom/src/modules/svgDefs.js +1 -0
- package/snapdom/src/utils/browser.js +13 -0
- package/snapdom/src/utils/css.js +191 -0
- package/snapdom/src/utils/helpers.js +25 -234
- package/snapdom/src/utils/image.js +39 -0
- package/snapdom/types/snapdom.d.ts +291 -99
- package/snapdom.js +1 -0
- package/tinycolor/index.js +2 -1
- package/tinycolor/src/conversion.js +2 -1
- package/tinycolor/src/css-color-names.js +1 -0
- package/tinycolor/src/format-input.js +2 -1
- package/tinycolor/src/from-ratio.js +2 -1
- package/tinycolor/src/index.js +2 -1
- package/tinycolor/src/random.js +1 -0
- package/tinycolor/src/readability.js +1 -0
- package/tinycolor/src/to-ms-filter.js +1 -0
- package/tinycolor/src/{util.js → utils.js} +1 -0
- package/tinycolor.js +2 -1
- package/tree/index.js +69 -65
- package/tree/search/index.js +55 -66
- package/tree.js +11 -7
- package/types/date/convertToDuration.d.ts +2 -0
- package/types/date/index.d.ts +2 -2
- package/types/dom-helpers/activeElement.d.ts +6 -0
- package/types/dom-helpers/addClass.d.ts +7 -0
- package/types/dom-helpers/addEventListener.d.ts +16 -0
- package/types/dom-helpers/animate.d.ts +19 -0
- package/types/dom-helpers/animationFrame.d.ts +2 -0
- package/types/dom-helpers/attribute.d.ts +8 -0
- package/types/dom-helpers/camelize.d.ts +1 -0
- package/types/dom-helpers/camelizeStyle.d.ts +2 -0
- package/types/dom-helpers/canUseDOM.d.ts +2 -0
- package/types/dom-helpers/childElements.d.ts +6 -0
- package/types/dom-helpers/childNodes.d.ts +6 -0
- package/types/dom-helpers/clear.d.ts +6 -0
- package/types/dom-helpers/closest.d.ts +8 -0
- package/types/dom-helpers/collectElements.d.ts +3 -0
- package/types/dom-helpers/collectSiblings.d.ts +1 -0
- package/types/dom-helpers/contains.d.ts +7 -0
- package/types/dom-helpers/css.d.ts +3 -0
- package/types/dom-helpers/filterEventHandler.d.ts +2 -0
- package/types/dom-helpers/getComputedStyle.d.ts +7 -0
- package/types/dom-helpers/getScrollAccessor.d.ts +1 -0
- package/types/dom-helpers/hasClass.d.ts +7 -0
- package/types/dom-helpers/height.d.ts +7 -0
- package/types/dom-helpers/hyphenate.d.ts +1 -0
- package/types/dom-helpers/hyphenateStyle.d.ts +7 -0
- package/types/dom-helpers/index.d.ts +93 -0
- package/types/dom-helpers/insertAfter.d.ts +7 -0
- package/types/dom-helpers/isDocument.d.ts +1 -0
- package/types/dom-helpers/isInput.d.ts +6 -0
- package/types/dom-helpers/isTransform.d.ts +2 -0
- package/types/dom-helpers/isVisible.d.ts +6 -0
- package/types/dom-helpers/isWindow.d.ts +1 -0
- package/types/dom-helpers/listen.d.ts +3 -0
- package/types/dom-helpers/matches.d.ts +7 -0
- package/types/dom-helpers/nextUntil.d.ts +7 -0
- package/types/dom-helpers/offset.d.ts +11 -0
- package/types/dom-helpers/offsetParent.d.ts +1 -0
- package/types/dom-helpers/ownerDocument.d.ts +6 -0
- package/types/dom-helpers/ownerWindow.d.ts +6 -0
- package/types/dom-helpers/parents.d.ts +6 -0
- package/types/dom-helpers/position.d.ts +23 -0
- package/types/dom-helpers/prepend.d.ts +7 -0
- package/types/dom-helpers/querySelectorAll.d.ts +7 -0
- package/types/dom-helpers/reflow.d.ts +2 -0
- package/types/dom-helpers/remove.d.ts +6 -0
- package/types/dom-helpers/removeClass.d.ts +7 -0
- package/types/dom-helpers/removeEventListener.d.ts +11 -0
- package/types/dom-helpers/scrollLeft.d.ts +8 -0
- package/types/dom-helpers/scrollParent.d.ts +7 -0
- package/types/dom-helpers/scrollTo.d.ts +1 -0
- package/types/dom-helpers/scrollTop.d.ts +8 -0
- package/types/dom-helpers/scrollbarSize.d.ts +1 -0
- package/types/dom-helpers/siblings.d.ts +6 -0
- package/types/dom-helpers/text.d.ts +8 -0
- package/types/dom-helpers/toggleClass.d.ts +7 -0
- package/types/dom-helpers/transitionEnd.d.ts +2 -0
- package/types/dom-helpers/triggerEvent.d.ts +9 -0
- package/types/dom-helpers/types.d.ts +4 -0
- package/types/dom-helpers/width.d.ts +7 -0
- package/types/filesize/benchmarks/basic-performance.d.ts +1 -0
- package/types/filesize/benchmarks/index.d.ts +2 -0
- package/types/filesize/benchmarks/options-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/partial-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/stress-test.d.ts +1 -0
- package/types/filesize/src/constants.d.ts +5 -0
- package/types/filesize/src/helpers.d.ts +55 -0
- package/types/idb/index.d.ts +21 -0
- package/types/index.d.ts +1 -1
- package/types/is/index.d.ts +37 -37
- package/types/lodash/_DataView.d.ts +2 -0
- package/types/lodash/_Hash.d.ts +29 -0
- package/types/lodash/_LazyWrapper.d.ts +26 -0
- package/types/lodash/_ListCache.d.ts +29 -0
- package/types/lodash/_LodashWrapper.d.ts +24 -0
- package/types/lodash/_Map.d.ts +2 -0
- package/types/lodash/_MapCache.d.ts +29 -0
- package/types/lodash/_Promise.d.ts +2 -0
- package/types/lodash/_Set.d.ts +2 -0
- package/types/lodash/_SetCache.d.ts +28 -0
- package/types/lodash/_Stack.d.ts +32 -0
- package/types/lodash/_Symbol.d.ts +3 -0
- package/types/lodash/_Uint8Array.d.ts +3 -0
- package/types/lodash/_WeakMap.d.ts +2 -0
- package/types/lodash/_addMapEntry.d.ts +10 -0
- package/types/lodash/_addSetEntry.d.ts +10 -0
- package/types/lodash/_apply.d.ts +12 -0
- package/types/lodash/_arrayAggregator.d.ts +12 -0
- package/types/lodash/_arrayEach.d.ts +11 -0
- package/types/lodash/_arrayEachRight.d.ts +11 -0
- package/types/lodash/_arrayEvery.d.ts +12 -0
- package/types/lodash/_arrayFilter.d.ts +11 -0
- package/types/lodash/_arrayIncludes.d.ts +11 -0
- package/types/lodash/_arrayIncludesWith.d.ts +11 -0
- package/types/lodash/_arrayLikeKeys.d.ts +10 -0
- package/types/lodash/_arrayMap.d.ts +11 -0
- package/types/lodash/_arrayPush.d.ts +10 -0
- package/types/lodash/_arrayReduce.d.ts +14 -0
- package/types/lodash/_arrayReduceRight.d.ts +14 -0
- package/types/lodash/_arraySample.d.ts +9 -0
- package/types/lodash/_arraySampleSize.d.ts +10 -0
- package/types/lodash/_arrayShuffle.d.ts +9 -0
- package/types/lodash/_arraySome.d.ts +12 -0
- package/types/lodash/_asciiSize.d.ts +9 -0
- package/types/lodash/_asciiToArray.d.ts +9 -0
- package/types/lodash/_asciiWords.d.ts +9 -0
- package/types/lodash/_assignMergeValue.d.ts +11 -0
- package/types/lodash/_assignValue.d.ts +12 -0
- package/types/lodash/_assocIndexOf.d.ts +10 -0
- package/types/lodash/_baseAggregator.d.ts +13 -0
- package/types/lodash/_baseAssign.d.ts +11 -0
- package/types/lodash/_baseAssignIn.d.ts +11 -0
- package/types/lodash/_baseAssignValue.d.ts +11 -0
- package/types/lodash/_baseAt.d.ts +10 -0
- package/types/lodash/_baseClamp.d.ts +11 -0
- package/types/lodash/_baseClone.d.ts +18 -0
- package/types/lodash/_baseConforms.d.ts +9 -0
- package/types/lodash/_baseConformsTo.d.ts +10 -0
- package/types/lodash/_baseCreate.d.ts +2 -0
- package/types/lodash/_baseDelay.d.ts +12 -0
- package/types/lodash/_baseDifference.d.ts +13 -0
- package/types/lodash/_baseEach.d.ts +10 -0
- package/types/lodash/_baseEachRight.d.ts +10 -0
- package/types/lodash/_baseEvery.d.ts +11 -0
- package/types/lodash/_baseExtremum.d.ts +12 -0
- package/types/lodash/_baseFill.d.ts +12 -0
- package/types/lodash/_baseFilter.d.ts +10 -0
- package/types/lodash/_baseFindIndex.d.ts +13 -0
- package/types/lodash/_baseFindKey.d.ts +13 -0
- package/types/lodash/_baseFlatten.d.ts +13 -0
- package/types/lodash/_baseFor.d.ts +13 -0
- package/types/lodash/_baseForOwn.d.ts +10 -0
- package/types/lodash/_baseForOwnRight.d.ts +10 -0
- package/types/lodash/_baseForRight.d.ts +12 -0
- package/types/lodash/_baseFunctions.d.ts +11 -0
- package/types/lodash/_baseGet.d.ts +10 -0
- package/types/lodash/_baseGetAllKeys.d.ts +13 -0
- package/types/lodash/_baseGetTag.d.ts +9 -0
- package/types/lodash/_baseGt.d.ts +11 -0
- package/types/lodash/_baseHas.d.ts +10 -0
- package/types/lodash/_baseHasIn.d.ts +10 -0
- package/types/lodash/_baseInRange.d.ts +11 -0
- package/types/lodash/_baseIndexOf.d.ts +11 -0
- package/types/lodash/_baseIndexOfWith.d.ts +12 -0
- package/types/lodash/_baseIntersection.d.ts +12 -0
- package/types/lodash/_baseInverter.d.ts +13 -0
- package/types/lodash/_baseInvoke.d.ts +12 -0
- package/types/lodash/_baseIsArguments.d.ts +9 -0
- package/types/lodash/_baseIsArrayBuffer.d.ts +9 -0
- package/types/lodash/_baseIsDate.d.ts +9 -0
- package/types/lodash/_baseIsEqual.d.ts +16 -0
- package/types/lodash/_baseIsEqualDeep.d.ts +16 -0
- package/types/lodash/_baseIsMap.d.ts +9 -0
- package/types/lodash/_baseIsMatch.d.ts +12 -0
- package/types/lodash/_baseIsNaN.d.ts +9 -0
- package/types/lodash/_baseIsNative.d.ts +10 -0
- package/types/lodash/_baseIsRegExp.d.ts +9 -0
- package/types/lodash/_baseIsSet.d.ts +9 -0
- package/types/lodash/_baseIsTypedArray.d.ts +9 -0
- package/types/lodash/_baseIteratee.d.ts +9 -0
- package/types/lodash/_baseKeys.d.ts +9 -0
- package/types/lodash/_baseKeysIn.d.ts +9 -0
- package/types/lodash/_baseLodash.d.ts +7 -0
- package/types/lodash/_baseLt.d.ts +11 -0
- package/types/lodash/_baseMap.d.ts +10 -0
- package/types/lodash/_baseMatches.d.ts +9 -0
- package/types/lodash/_baseMatchesProperty.d.ts +10 -0
- package/types/lodash/_baseMean.d.ts +11 -0
- package/types/lodash/_baseMerge.d.ts +13 -0
- package/types/lodash/_baseMergeDeep.d.ts +17 -0
- package/types/lodash/_baseNth.d.ts +10 -0
- package/types/lodash/_baseOrderBy.d.ts +11 -0
- package/types/lodash/_basePick.d.ts +11 -0
- package/types/lodash/_basePickBy.d.ts +11 -0
- package/types/lodash/_baseProperty.d.ts +9 -0
- package/types/lodash/_basePropertyDeep.d.ts +9 -0
- package/types/lodash/_basePropertyOf.d.ts +9 -0
- package/types/lodash/_basePullAll.d.ts +13 -0
- package/types/lodash/_basePullAt.d.ts +11 -0
- package/types/lodash/_baseRandom.d.ts +11 -0
- package/types/lodash/_baseRange.d.ts +13 -0
- package/types/lodash/_baseReduce.d.ts +15 -0
- package/types/lodash/_baseRepeat.d.ts +10 -0
- package/types/lodash/_baseRest.d.ts +10 -0
- package/types/lodash/_baseSample.d.ts +9 -0
- package/types/lodash/_baseSampleSize.d.ts +10 -0
- package/types/lodash/_baseSet.d.ts +12 -0
- package/types/lodash/_baseSetData.d.ts +2 -0
- package/types/lodash/_baseSetToString.d.ts +2 -0
- package/types/lodash/_baseShuffle.d.ts +9 -0
- package/types/lodash/_baseSlice.d.ts +11 -0
- package/types/lodash/_baseSome.d.ts +11 -0
- package/types/lodash/_baseSortBy.d.ts +12 -0
- package/types/lodash/_baseSortedIndex.d.ts +14 -0
- package/types/lodash/_baseSortedIndexBy.d.ts +15 -0
- package/types/lodash/_baseSortedUniq.d.ts +11 -0
- package/types/lodash/_baseSum.d.ts +11 -0
- package/types/lodash/_baseTimes.d.ts +11 -0
- package/types/lodash/_baseToNumber.d.ts +10 -0
- package/types/lodash/_baseToPairs.d.ts +11 -0
- package/types/lodash/_baseToString.d.ts +10 -0
- package/types/lodash/_baseTrim.d.ts +9 -0
- package/types/lodash/_baseUnary.d.ts +9 -0
- package/types/lodash/_baseUniq.d.ts +11 -0
- package/types/lodash/_baseUnset.d.ts +10 -0
- package/types/lodash/_baseUpdate.d.ts +12 -0
- package/types/lodash/_baseValues.d.ts +12 -0
- package/types/lodash/_baseWhile.d.ts +13 -0
- package/types/lodash/_baseWrapperValue.d.ts +12 -0
- package/types/lodash/_baseXor.d.ts +12 -0
- package/types/lodash/_baseZipObject.d.ts +11 -0
- package/types/lodash/_cacheHas.d.ts +10 -0
- package/types/lodash/_castArrayLikeObject.d.ts +9 -0
- package/types/lodash/_castFunction.d.ts +9 -0
- package/types/lodash/_castPath.d.ts +10 -0
- package/types/lodash/_castRest.d.ts +11 -0
- package/types/lodash/_castSlice.d.ts +11 -0
- package/types/lodash/_charsEndIndex.d.ts +11 -0
- package/types/lodash/_charsStartIndex.d.ts +11 -0
- package/types/lodash/_cloneArrayBuffer.d.ts +9 -0
- package/types/lodash/_cloneBuffer.d.ts +10 -0
- package/types/lodash/_cloneDataView.d.ts +10 -0
- package/types/lodash/_cloneMap.d.ts +11 -0
- package/types/lodash/_cloneRegExp.d.ts +9 -0
- package/types/lodash/_cloneSet.d.ts +11 -0
- package/types/lodash/_cloneSymbol.d.ts +9 -0
- package/types/lodash/_cloneTypedArray.d.ts +10 -0
- package/types/lodash/_compareAscending.d.ts +10 -0
- package/types/lodash/_compareMultiple.d.ts +16 -0
- package/types/lodash/_composeArgs.d.ts +13 -0
- package/types/lodash/_composeArgsRight.d.ts +13 -0
- package/types/lodash/_copyArray.d.ts +10 -0
- package/types/lodash/_copyObject.d.ts +12 -0
- package/types/lodash/_copySymbols.d.ts +10 -0
- package/types/lodash/_copySymbolsIn.d.ts +10 -0
- package/types/lodash/_coreJsData.d.ts +3 -0
- package/types/lodash/_countHolders.d.ts +10 -0
- package/types/lodash/_createAggregator.d.ts +10 -0
- package/types/lodash/_createAssigner.d.ts +9 -0
- package/types/lodash/_createBaseEach.d.ts +10 -0
- package/types/lodash/_createBaseFor.d.ts +9 -0
- package/types/lodash/_createBind.d.ts +12 -0
- package/types/lodash/_createCaseFirst.d.ts +9 -0
- package/types/lodash/_createCompounder.d.ts +9 -0
- package/types/lodash/_createCtor.d.ts +10 -0
- package/types/lodash/_createCurry.d.ts +11 -0
- package/types/lodash/_createFind.d.ts +9 -0
- package/types/lodash/_createFlow.d.ts +9 -0
- package/types/lodash/_createHybrid.d.ts +21 -0
- package/types/lodash/_createInverter.d.ts +10 -0
- package/types/lodash/_createMathOperation.d.ts +10 -0
- package/types/lodash/_createOver.d.ts +9 -0
- package/types/lodash/_createPadding.d.ts +11 -0
- package/types/lodash/_createPartial.d.ts +14 -0
- package/types/lodash/_createRange.d.ts +9 -0
- package/types/lodash/_createRecurry.d.ts +19 -0
- package/types/lodash/_createRelationalOperation.d.ts +9 -0
- package/types/lodash/_createRound.d.ts +9 -0
- package/types/lodash/_createSet.d.ts +2 -0
- package/types/lodash/_createToPairs.d.ts +9 -0
- package/types/lodash/_createWrap.d.ts +27 -0
- package/types/lodash/_customDefaultsAssignIn.d.ts +14 -0
- package/types/lodash/_customDefaultsMerge.d.ts +16 -0
- package/types/lodash/_customOmitClone.d.ts +11 -0
- package/types/lodash/_deburrLetter.d.ts +10 -0
- package/types/lodash/_defineProperty.d.ts +2 -0
- package/types/lodash/_equalArrays.d.ts +15 -0
- package/types/lodash/_equalByTag.d.ts +19 -0
- package/types/lodash/_equalObjects.d.ts +15 -0
- package/types/lodash/_escapeHtmlChar.d.ts +9 -0
- package/types/lodash/_escapeStringChar.d.ts +9 -0
- package/types/lodash/_flatRest.d.ts +9 -0
- package/types/lodash/_freeGlobal.d.ts +3 -0
- package/types/lodash/_getAllKeys.d.ts +9 -0
- package/types/lodash/_getAllKeysIn.d.ts +10 -0
- package/types/lodash/_getData.d.ts +2 -0
- package/types/lodash/_getFuncName.d.ts +9 -0
- package/types/lodash/_getHolder.d.ts +9 -0
- package/types/lodash/_getMapData.d.ts +10 -0
- package/types/lodash/_getMatchData.d.ts +9 -0
- package/types/lodash/_getNative.d.ts +10 -0
- package/types/lodash/_getPrototype.d.ts +3 -0
- package/types/lodash/_getRawTag.d.ts +9 -0
- package/types/lodash/_getSymbols.d.ts +2 -0
- package/types/lodash/_getSymbolsIn.d.ts +2 -0
- package/types/lodash/_getTag.d.ts +10 -0
- package/types/lodash/_getValue.d.ts +10 -0
- package/types/lodash/_getView.d.ts +12 -0
- package/types/lodash/_getWrapDetails.d.ts +9 -0
- package/types/lodash/_hasPath.d.ts +11 -0
- package/types/lodash/_hasUnicode.d.ts +9 -0
- package/types/lodash/_hasUnicodeWord.d.ts +9 -0
- package/types/lodash/_hashClear.d.ts +13 -0
- package/types/lodash/_hashDelete.d.ts +12 -0
- package/types/lodash/_hashGet.d.ts +11 -0
- package/types/lodash/_hashHas.d.ts +11 -0
- package/types/lodash/_hashSet.d.ts +12 -0
- package/types/lodash/_initCloneArray.d.ts +9 -0
- package/types/lodash/_initCloneByTag.d.ts +14 -0
- package/types/lodash/_initCloneObject.d.ts +9 -0
- package/types/lodash/_insertWrapDetails.d.ts +10 -0
- package/types/lodash/_isFlattenable.d.ts +9 -0
- package/types/lodash/_isIndex.d.ts +10 -0
- package/types/lodash/_isIterateeCall.d.ts +12 -0
- package/types/lodash/_isKey.d.ts +10 -0
- package/types/lodash/_isKeyable.d.ts +9 -0
- package/types/lodash/_isLaziable.d.ts +10 -0
- package/types/lodash/_isMaskable.d.ts +10 -0
- package/types/lodash/_isMasked.d.ts +9 -0
- package/types/lodash/_isPrototype.d.ts +9 -0
- package/types/lodash/_isStrictComparable.d.ts +10 -0
- package/types/lodash/_iteratorToArray.d.ts +9 -0
- package/types/lodash/_lazyClone.d.ts +10 -0
- package/types/lodash/_lazyReverse.d.ts +10 -0
- package/types/lodash/_lazyValue.d.ts +10 -0
- package/types/lodash/_listCacheClear.d.ts +13 -0
- package/types/lodash/_listCacheDelete.d.ts +11 -0
- package/types/lodash/_listCacheGet.d.ts +11 -0
- package/types/lodash/_listCacheHas.d.ts +11 -0
- package/types/lodash/_listCacheSet.d.ts +12 -0
- package/types/lodash/_mapCacheClear.d.ts +18 -0
- package/types/lodash/_mapCacheDelete.d.ts +11 -0
- package/types/lodash/_mapCacheGet.d.ts +11 -0
- package/types/lodash/_mapCacheHas.d.ts +11 -0
- package/types/lodash/_mapCacheSet.d.ts +12 -0
- package/types/lodash/_mapToArray.d.ts +9 -0
- package/types/lodash/_matchesStrictComparable.d.ts +11 -0
- package/types/lodash/_memoizeCapped.d.ts +10 -0
- package/types/lodash/_mergeData.d.ts +18 -0
- package/types/lodash/_metaMap.d.ts +3 -0
- package/types/lodash/_nativeCreate.d.ts +2 -0
- package/types/lodash/_nativeKeys.d.ts +2 -0
- package/types/lodash/_nativeKeysIn.d.ts +11 -0
- package/types/lodash/_nodeUtil.d.ts +3 -0
- package/types/lodash/_objectToString.d.ts +9 -0
- package/types/lodash/_overArg.d.ts +10 -0
- package/types/lodash/_overRest.d.ts +11 -0
- package/types/lodash/_parent.d.ts +10 -0
- package/types/lodash/_reEscape.d.ts +3 -0
- package/types/lodash/_reEvaluate.d.ts +3 -0
- package/types/lodash/_reInterpolate.d.ts +3 -0
- package/types/lodash/_realNames.d.ts +3 -0
- package/types/lodash/_reorder.d.ts +12 -0
- package/types/lodash/_replaceHolders.d.ts +11 -0
- package/types/lodash/_root.d.ts +3 -0
- package/types/lodash/_safeGet.d.ts +10 -0
- package/types/lodash/_setCacheAdd.d.ts +12 -0
- package/types/lodash/_setCacheHas.d.ts +11 -0
- package/types/lodash/_setData.d.ts +16 -0
- package/types/lodash/_setToArray.d.ts +9 -0
- package/types/lodash/_setToPairs.d.ts +9 -0
- package/types/lodash/_setToString.d.ts +10 -0
- package/types/lodash/_setWrapToString.d.ts +12 -0
- package/types/lodash/_shortOut.d.ts +11 -0
- package/types/lodash/_shuffleSelf.d.ts +10 -0
- package/types/lodash/_stackClear.d.ts +14 -0
- package/types/lodash/_stackDelete.d.ts +24 -0
- package/types/lodash/_stackGet.d.ts +11 -0
- package/types/lodash/_stackHas.d.ts +11 -0
- package/types/lodash/_stackSet.d.ts +28 -0
- package/types/lodash/_strictIndexOf.d.ts +12 -0
- package/types/lodash/_strictLastIndexOf.d.ts +12 -0
- package/types/lodash/_stringSize.d.ts +9 -0
- package/types/lodash/_stringToArray.d.ts +9 -0
- package/types/lodash/_stringToPath.d.ts +9 -0
- package/types/lodash/_toKey.d.ts +9 -0
- package/types/lodash/_toSource.d.ts +9 -0
- package/types/lodash/_trimmedEndIndex.d.ts +10 -0
- package/types/lodash/_unescapeHtmlChar.d.ts +9 -0
- package/types/lodash/_unicodeSize.d.ts +9 -0
- package/types/lodash/_unicodeToArray.d.ts +9 -0
- package/types/lodash/_unicodeWords.d.ts +9 -0
- package/types/lodash/_updateWrapDetails.d.ts +10 -0
- package/types/lodash/_wrapperClone.d.ts +9 -0
- package/types/lodash/add.d.ts +17 -0
- package/types/lodash/after.d.ts +26 -0
- package/types/lodash/array.d.ts +66 -0
- package/types/lodash/array.default.d.ts +133 -0
- package/types/lodash/ary.d.ts +19 -0
- package/types/lodash/assign.d.ts +34 -0
- package/types/lodash/assignIn.d.ts +33 -0
- package/types/lodash/assignInWith.d.ts +31 -0
- package/types/lodash/assignWith.d.ts +30 -0
- package/types/lodash/at.d.ts +19 -0
- package/types/lodash/attempt.d.ts +24 -0
- package/types/lodash/before.d.ts +19 -0
- package/types/lodash/bind.d.ts +37 -0
- package/types/lodash/bindAll.d.ts +28 -0
- package/types/lodash/bindKey.d.ts +47 -0
- package/types/lodash/camelCase.d.ts +22 -0
- package/types/lodash/capitalize.d.ts +17 -0
- package/types/lodash/castArray.d.ts +35 -0
- package/types/lodash/ceil.d.ts +23 -0
- package/types/lodash/chain.d.ts +31 -0
- package/types/lodash/chunk.d.ts +23 -0
- package/types/lodash/clamp.d.ts +21 -0
- package/types/lodash/clone.d.ts +28 -0
- package/types/lodash/cloneDeep.d.ts +20 -0
- package/types/lodash/cloneDeepWith.d.ts +30 -0
- package/types/lodash/cloneWith.d.ts +33 -0
- package/types/lodash/collection.d.ts +29 -0
- package/types/lodash/collection.default.d.ts +59 -0
- package/types/lodash/commit.d.ts +28 -0
- package/types/lodash/compact.d.ts +17 -0
- package/types/lodash/concat.d.ts +24 -0
- package/types/lodash/cond.d.ts +31 -0
- package/types/lodash/conforms.d.ts +26 -0
- package/types/lodash/conformsTo.d.ts +26 -0
- package/types/lodash/constant.d.ts +21 -0
- package/types/lodash/countBy.d.ts +24 -0
- package/types/lodash/create.d.ts +36 -0
- package/types/lodash/curry.d.ts +46 -0
- package/types/lodash/curryRight.d.ts +43 -0
- package/types/lodash/date.d.ts +2 -0
- package/types/lodash/date.default.d.ts +5 -0
- package/types/lodash/debounce.d.ts +60 -0
- package/types/lodash/deburr.d.ts +20 -0
- package/types/lodash/defaultTo.d.ts +22 -0
- package/types/lodash/defaults.d.ts +23 -0
- package/types/lodash/defaultsDeep.d.ts +21 -0
- package/types/lodash/defer.d.ts +20 -0
- package/types/lodash/delay.d.ts +21 -0
- package/types/lodash/difference.d.ts +23 -0
- package/types/lodash/differenceBy.d.ts +28 -0
- package/types/lodash/differenceWith.d.ts +25 -0
- package/types/lodash/divide.d.ts +17 -0
- package/types/lodash/drop.d.ts +27 -0
- package/types/lodash/dropRight.d.ts +27 -0
- package/types/lodash/dropRightWhile.d.ts +37 -0
- package/types/lodash/dropWhile.d.ts +37 -0
- package/types/lodash/each.d.ts +1 -0
- package/types/lodash/eachRight.d.ts +1 -0
- package/types/lodash/endsWith.d.ts +25 -0
- package/types/lodash/entries.d.ts +1 -0
- package/types/lodash/entriesIn.d.ts +1 -0
- package/types/lodash/eq.d.ts +34 -0
- package/types/lodash/escape.d.ts +30 -0
- package/types/lodash/escapeRegExp.d.ts +17 -0
- package/types/lodash/every.d.ts +43 -0
- package/types/lodash/extend.d.ts +1 -0
- package/types/lodash/extendWith.d.ts +1 -0
- package/types/lodash/fill.d.ts +31 -0
- package/types/lodash/filter.d.ts +43 -0
- package/types/lodash/find.d.ts +38 -0
- package/types/lodash/findIndex.d.ts +37 -0
- package/types/lodash/findKey.d.ts +37 -0
- package/types/lodash/findLast.d.ts +21 -0
- package/types/lodash/findLastIndex.d.ts +37 -0
- package/types/lodash/findLastKey.d.ts +37 -0
- package/types/lodash/first.d.ts +1 -0
- package/types/lodash/flatMap.d.ts +23 -0
- package/types/lodash/flatMapDeep.d.ts +22 -0
- package/types/lodash/flatMapDepth.d.ts +23 -0
- package/types/lodash/flatten.d.ts +16 -0
- package/types/lodash/flattenDeep.d.ts +16 -0
- package/types/lodash/flattenDepth.d.ts +22 -0
- package/types/lodash/flip.d.ts +20 -0
- package/types/lodash/floor.d.ts +23 -0
- package/types/lodash/flow.d.ts +24 -0
- package/types/lodash/flowRight.d.ts +23 -0
- package/types/lodash/forEach.d.ts +32 -0
- package/types/lodash/forEachRight.d.ts +22 -0
- package/types/lodash/forIn.d.ts +30 -0
- package/types/lodash/forInRight.d.ts +28 -0
- package/types/lodash/forOwn.d.ts +30 -0
- package/types/lodash/forOwnRight.d.ts +28 -0
- package/types/lodash/fromPairs.d.ts +17 -0
- package/types/lodash/function.d.ts +24 -0
- package/types/lodash/function.default.d.ts +49 -0
- package/types/lodash/functions.d.ts +25 -0
- package/types/lodash/functionsIn.d.ts +25 -0
- package/types/lodash/get.d.ts +27 -0
- package/types/lodash/groupBy.d.ts +25 -0
- package/types/lodash/gt.d.ts +25 -0
- package/types/lodash/gte.d.ts +25 -0
- package/types/lodash/has.d.ts +29 -0
- package/types/lodash/hasIn.d.ts +28 -0
- package/types/lodash/head.d.ts +20 -0
- package/types/lodash/identity.d.ts +18 -0
- package/types/lodash/inRange.d.ts +40 -0
- package/types/lodash/includes.d.ts +32 -0
- package/types/lodash/index.d.ts +3 -0
- package/types/lodash/indexOf.d.ts +25 -0
- package/types/lodash/initial.d.ts +16 -0
- package/types/lodash/intersection.d.ts +19 -0
- package/types/lodash/intersectionBy.d.ts +25 -0
- package/types/lodash/intersectionWith.d.ts +23 -0
- package/types/lodash/invert.d.ts +20 -0
- package/types/lodash/invertBy.d.ts +28 -0
- package/types/lodash/invoke.d.ts +20 -0
- package/types/lodash/invokeMap.d.ts +25 -0
- package/types/lodash/isArguments.d.ts +2 -0
- package/types/lodash/isArray.d.ts +25 -0
- package/types/lodash/isArrayBuffer.d.ts +19 -0
- package/types/lodash/isArrayLike.d.ts +27 -0
- package/types/lodash/isArrayLikeObject.d.ts +27 -0
- package/types/lodash/isBoolean.d.ts +19 -0
- package/types/lodash/isBuffer.d.ts +19 -0
- package/types/lodash/isDate.d.ts +19 -0
- package/types/lodash/isElement.d.ts +19 -0
- package/types/lodash/isEmpty.d.ts +35 -0
- package/types/lodash/isEqual.d.ts +30 -0
- package/types/lodash/isEqualWith.d.ts +34 -0
- package/types/lodash/isError.d.ts +20 -0
- package/types/lodash/isFinite.d.ts +28 -0
- package/types/lodash/isFunction.d.ts +19 -0
- package/types/lodash/isInteger.d.ts +28 -0
- package/types/lodash/isLength.d.ts +28 -0
- package/types/lodash/isMap.d.ts +19 -0
- package/types/lodash/isMatch.d.ts +30 -0
- package/types/lodash/isMatchWith.d.ts +34 -0
- package/types/lodash/isNaN.d.ts +30 -0
- package/types/lodash/isNative.d.ts +28 -0
- package/types/lodash/isNil.d.ts +22 -0
- package/types/lodash/isNull.d.ts +19 -0
- package/types/lodash/isNumber.d.ts +28 -0
- package/types/lodash/isObject.d.ts +27 -0
- package/types/lodash/isObjectLike.d.ts +26 -0
- package/types/lodash/isPlainObject.d.ts +30 -0
- package/types/lodash/isPromise.d.ts +2 -0
- package/types/lodash/isRegExp.d.ts +19 -0
- package/types/lodash/isSafeInteger.d.ts +29 -0
- package/types/lodash/isSet.d.ts +19 -0
- package/types/lodash/isString.d.ts +19 -0
- package/types/lodash/isSymbol.d.ts +19 -0
- package/types/lodash/isTypedArray.d.ts +19 -0
- package/types/lodash/isUndefined.d.ts +19 -0
- package/types/lodash/isWeakMap.d.ts +19 -0
- package/types/lodash/isWeakSet.d.ts +19 -0
- package/types/lodash/iteratee.d.ts +44 -0
- package/types/lodash/join.d.ts +17 -0
- package/types/lodash/kebabCase.d.ts +23 -0
- package/types/lodash/keyBy.d.ts +30 -0
- package/types/lodash/keys.d.ts +30 -0
- package/types/lodash/keysIn.d.ts +25 -0
- package/types/lodash/lang.d.ts +57 -0
- package/types/lodash/lang.default.d.ts +115 -0
- package/types/lodash/last.d.ts +16 -0
- package/types/lodash/lastIndexOf.d.ts +23 -0
- package/types/lodash/lodash.d.ts +317 -0
- package/types/lodash/lodash.default.d.ts +2 -0
- package/types/lodash/lowerCase.d.ts +22 -0
- package/types/lodash/lowerFirst.d.ts +19 -0
- package/types/lodash/lt.d.ts +25 -0
- package/types/lodash/lte.d.ts +25 -0
- package/types/lodash/map.d.ts +44 -0
- package/types/lodash/mapKeys.d.ts +23 -0
- package/types/lodash/mapValues.d.ts +30 -0
- package/types/lodash/matches.d.ts +37 -0
- package/types/lodash/matchesProperty.d.ts +35 -0
- package/types/lodash/math.d.ts +16 -0
- package/types/lodash/math.default.d.ts +33 -0
- package/types/lodash/max.d.ts +20 -0
- package/types/lodash/maxBy.d.ts +25 -0
- package/types/lodash/mean.d.ts +16 -0
- package/types/lodash/meanBy.d.ts +25 -0
- package/types/lodash/memoize.d.ts +50 -0
- package/types/lodash/merge.d.ts +33 -0
- package/types/lodash/mergeWith.d.ts +33 -0
- package/types/lodash/method.d.ts +26 -0
- package/types/lodash/methodOf.d.ts +25 -0
- package/types/lodash/min.d.ts +20 -0
- package/types/lodash/minBy.d.ts +25 -0
- package/types/lodash/mixin.d.ts +40 -0
- package/types/lodash/multiply.d.ts +17 -0
- package/types/lodash/negate.d.ts +22 -0
- package/types/lodash/next.d.ts +27 -0
- package/types/lodash/noop.d.ts +14 -0
- package/types/lodash/now.d.ts +18 -0
- package/types/lodash/nth.d.ts +23 -0
- package/types/lodash/nthArg.d.ts +22 -0
- package/types/lodash/number.d.ts +4 -0
- package/types/lodash/number.default.d.ts +9 -0
- package/types/lodash/object.d.ts +48 -0
- package/types/lodash/object.default.d.ts +97 -0
- package/types/lodash/omit.d.ts +22 -0
- package/types/lodash/omitBy.d.ts +22 -0
- package/types/lodash/once.d.ts +20 -0
- package/types/lodash/orderBy.d.ts +31 -0
- package/types/lodash/over.d.ts +20 -0
- package/types/lodash/overArgs.d.ts +33 -0
- package/types/lodash/overEvery.d.ts +30 -0
- package/types/lodash/overSome.d.ts +33 -0
- package/types/lodash/pad.d.ts +25 -0
- package/types/lodash/padEnd.d.ts +25 -0
- package/types/lodash/padStart.d.ts +25 -0
- package/types/lodash/parseInt.d.ts +26 -0
- package/types/lodash/partial.d.ts +35 -0
- package/types/lodash/partialRight.d.ts +34 -0
- package/types/lodash/partition.d.ts +38 -0
- package/types/lodash/pick.d.ts +19 -0
- package/types/lodash/pickBy.d.ts +20 -0
- package/types/lodash/plant.d.ts +26 -0
- package/types/lodash/property.d.ts +24 -0
- package/types/lodash/propertyOf.d.ts +23 -0
- package/types/lodash/pull.d.ts +25 -0
- package/types/lodash/pullAll.d.ts +22 -0
- package/types/lodash/pullAllBy.d.ts +25 -0
- package/types/lodash/pullAllWith.d.ts +25 -0
- package/types/lodash/pullAt.d.ts +26 -0
- package/types/lodash/random.d.ts +33 -0
- package/types/lodash/range.d.ts +43 -0
- package/types/lodash/rangeRight.d.ts +38 -0
- package/types/lodash/rearg.d.ts +24 -0
- package/types/lodash/reduce.d.ts +39 -0
- package/types/lodash/reduceRight.d.ts +24 -0
- package/types/lodash/reject.d.ts +36 -0
- package/types/lodash/remove.d.ts +30 -0
- package/types/lodash/repeat.d.ts +24 -0
- package/types/lodash/replace.d.ts +21 -0
- package/types/lodash/rest.d.ts +27 -0
- package/types/lodash/result.d.ts +31 -0
- package/types/lodash/reverse.d.ts +25 -0
- package/types/lodash/round.d.ts +23 -0
- package/types/lodash/sample.d.ts +16 -0
- package/types/lodash/sampleSize.d.ts +22 -0
- package/types/lodash/seq.d.ts +15 -0
- package/types/lodash/seq.default.d.ts +31 -0
- package/types/lodash/set.d.ts +30 -0
- package/types/lodash/setWith.d.ts +26 -0
- package/types/lodash/shuffle.d.ts +17 -0
- package/types/lodash/size.d.ts +23 -0
- package/types/lodash/slice.d.ts +18 -0
- package/types/lodash/snakeCase.d.ts +23 -0
- package/types/lodash/some.d.ts +38 -0
- package/types/lodash/sortBy.d.ts +31 -0
- package/types/lodash/sortedIndex.d.ts +19 -0
- package/types/lodash/sortedIndexBy.d.ts +27 -0
- package/types/lodash/sortedIndexOf.d.ts +18 -0
- package/types/lodash/sortedLastIndex.d.ts +20 -0
- package/types/lodash/sortedLastIndexBy.d.ts +27 -0
- package/types/lodash/sortedLastIndexOf.d.ts +18 -0
- package/types/lodash/sortedUniq.d.ts +17 -0
- package/types/lodash/sortedUniqBy.d.ts +18 -0
- package/types/lodash/split.d.ts +21 -0
- package/types/lodash/spread.d.ts +36 -0
- package/types/lodash/startCase.d.ts +23 -0
- package/types/lodash/startsWith.d.ts +25 -0
- package/types/lodash/string.d.ts +32 -0
- package/types/lodash/string.default.d.ts +65 -0
- package/types/lodash/stubArray.d.ts +20 -0
- package/types/lodash/stubFalse.d.ts +15 -0
- package/types/lodash/stubObject.d.ts +20 -0
- package/types/lodash/stubString.d.ts +15 -0
- package/types/lodash/stubTrue.d.ts +15 -0
- package/types/lodash/subtract.d.ts +17 -0
- package/types/lodash/sum.d.ts +16 -0
- package/types/lodash/sumBy.d.ts +25 -0
- package/types/lodash/tail.d.ts +16 -0
- package/types/lodash/take.d.ts +27 -0
- package/types/lodash/takeRight.d.ts +27 -0
- package/types/lodash/takeRightWhile.d.ts +37 -0
- package/types/lodash/takeWhile.d.ts +37 -0
- package/types/lodash/tap.d.ts +25 -0
- package/types/lodash/template.d.ts +113 -0
- package/types/lodash/templateSettings.d.ts +11 -0
- package/types/lodash/throttle.d.ts +49 -0
- package/types/lodash/thru.d.ts +25 -0
- package/types/lodash/times.d.ts +21 -0
- package/types/lodash/toArray.d.ts +25 -0
- package/types/lodash/toFinite.d.ts +25 -0
- package/types/lodash/toInteger.d.ts +28 -0
- package/types/lodash/toIterator.d.ts +20 -0
- package/types/lodash/toJSON.d.ts +1 -0
- package/types/lodash/toLength.d.ts +29 -0
- package/types/lodash/toLower.d.ts +23 -0
- package/types/lodash/toNumber.d.ts +25 -0
- package/types/lodash/toPairs.d.ts +26 -0
- package/types/lodash/toPairsIn.d.ts +26 -0
- package/types/lodash/toPath.d.ts +19 -0
- package/types/lodash/toPlainObject.d.ts +26 -0
- package/types/lodash/toSafeInteger.d.ts +26 -0
- package/types/lodash/toString.d.ts +23 -0
- package/types/lodash/toUpper.d.ts +23 -0
- package/types/lodash/transform.d.ts +32 -0
- package/types/lodash/trim.d.ts +24 -0
- package/types/lodash/trimEnd.d.ts +21 -0
- package/types/lodash/trimStart.d.ts +21 -0
- package/types/lodash/truncate.d.ts +43 -0
- package/types/lodash/unary.d.ts +17 -0
- package/types/lodash/unescape.d.ts +21 -0
- package/types/lodash/union.d.ts +18 -0
- package/types/lodash/unionBy.d.ts +25 -0
- package/types/lodash/unionWith.d.ts +23 -0
- package/types/lodash/uniq.d.ts +20 -0
- package/types/lodash/uniqBy.d.ts +25 -0
- package/types/lodash/uniqWith.d.ts +22 -0
- package/types/lodash/uniqueId.d.ts +19 -0
- package/types/lodash/unset.d.ts +29 -0
- package/types/lodash/unzip.d.ts +21 -0
- package/types/lodash/unzipWith.d.ts +23 -0
- package/types/lodash/update.d.ts +29 -0
- package/types/lodash/updateWith.d.ts +26 -0
- package/types/lodash/upperCase.d.ts +22 -0
- package/types/lodash/upperFirst.d.ts +19 -0
- package/types/lodash/util.d.ts +33 -0
- package/types/lodash/util.default.d.ts +67 -0
- package/types/lodash/value.d.ts +1 -0
- package/types/lodash/valueOf.d.ts +1 -0
- package/types/lodash/values.d.ts +28 -0
- package/types/lodash/valuesIn.d.ts +26 -0
- package/types/lodash/without.d.ts +22 -0
- package/types/lodash/words.d.ts +21 -0
- package/types/lodash/wrap.d.ts +24 -0
- package/types/lodash/wrapperAt.d.ts +18 -0
- package/types/lodash/wrapperChain.d.ts +29 -0
- package/types/lodash/wrapperLodash.d.ts +239 -0
- package/types/lodash/wrapperReverse.d.ts +22 -0
- package/types/lodash/wrapperValue.d.ts +16 -0
- package/types/lodash/xor.d.ts +20 -0
- package/types/lodash/xorBy.d.ts +25 -0
- package/types/lodash/xorWith.d.ts +23 -0
- package/types/lodash/zip.d.ts +18 -0
- package/types/lodash/zipObject.d.ts +18 -0
- package/types/lodash/zipObjectDeep.d.ts +17 -0
- package/types/lodash/zipWith.d.ts +22 -0
- package/types/random/index.d.ts +4 -4
- package/types/screenfull/index.d.ts +1 -7
- package/types/sleep/index.d.ts +2 -0
- package/types/snapdom/src/api/preCache.d.ts +26 -3
- package/types/snapdom/src/api/snapdom.d.ts +86 -21
- package/types/snapdom/src/core/cache.d.ts +27 -12
- package/types/snapdom/src/core/capture.d.ts +18 -2
- package/types/snapdom/src/core/clone.d.ts +1 -10
- package/types/snapdom/src/core/context.d.ts +67 -0
- package/types/snapdom/src/core/prepare.d.ts +1 -2
- package/types/snapdom/src/exporters/download.d.ts +16 -0
- package/types/snapdom/src/exporters/toBlob.d.ts +14 -0
- package/types/snapdom/src/exporters/toCanvas.d.ts +14 -0
- package/types/snapdom/src/exporters/toImg.d.ts +11 -0
- package/types/snapdom/src/modules/CSSVar.d.ts +9 -0
- package/types/snapdom/src/modules/background.d.ts +6 -1
- package/types/snapdom/src/modules/changeCSS.d.ts +14 -0
- package/types/snapdom/src/modules/counter.d.ts +72 -0
- package/types/snapdom/src/modules/fonts.d.ts +67 -11
- package/types/snapdom/src/modules/images.d.ts +10 -4
- package/types/snapdom/src/modules/lineClamp.d.ts +13 -0
- package/types/snapdom/src/modules/pseudo.d.ts +4 -4
- package/types/snapdom/src/modules/rasterize.d.ts +16 -0
- package/types/snapdom/src/modules/snapFetch.d.ts +93 -0
- package/types/snapdom/src/modules/styles.d.ts +2 -1
- package/types/snapdom/src/utils/browser.d.ts +12 -0
- package/types/snapdom/src/utils/css.d.ts +68 -0
- package/types/snapdom/src/utils/helpers.d.ts +0 -61
- package/types/snapdom/src/utils/image.d.ts +21 -0
- package/types/snapdom/src/utils/index.d.ts +4 -0
- package/types/tinycolor/src/public_api.d.ts +1 -1
- package/types/tree/index.d.ts +6 -6
- package/ui-color/compareColorByRange.js +1 -0
- package/ui-color/index.js +1 -0
- package/uiColor.js +1 -0
- package/url-toolkit/index.js +1 -0
- package/url-toolkit/src/url-toolkit.js +1 -0
- package/urlToolkit.js +1 -0
- package/version/index.js +1 -0
- package/version.js +1 -0
- package/filesize/index.js +0 -8
- package/filesize/src/constants.js +0 -71
- package/filesize/src/filesize.js +0 -87
- package/filesize.js +0 -8
- package/snapdom/src/utils/cssTools.js +0 -118
- package/turbo-stream/index.js +0 -6
- package/turbo-stream/src/decode.js +0 -284
- package/turbo-stream/src/encode.js +0 -357
- package/turbo-stream/src/shared.js +0 -267
- package/turboStream.js +0 -6
- package/types/filesize/index.d.ts +0 -2
- package/types/snapdom/src/utils/cssTools.d.ts +0 -29
- package/types/turbo-stream/index.d.ts +0 -1
- package/types/turbo-stream/src/decode.d.ts +0 -7
- package/types/turbo-stream/src/encode.d.ts +0 -27
- package/types/turbo-stream/src/shared.d.ts +0 -107
- package/types/turbo-stream/src/turbo-stream.d.ts +0 -4
- /package/types/tinycolor/src/{util.d.ts → utils.d.ts} +0 -0
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { WaitGroup as v, STR_UNDEFINED as h, STR_NULL as M, STR_TRUE as B, STR_FALSE as C, STR_PROMISE as b, STR_READABLE_STREAM as O, STR_ASYNC_ITERABLE as F, STR_REFERENCE_SYMBOL as $, STR_DATE as x, STR_REGEXP as G, STR_URL as J, STR_ARRAY_BUFFER as V, STR_INT_8_ARRAY as j, STR_UINT_8_ARRAY as q, STR_UINT_8_ARRAY_CLAMPED as z, STR_INT_16_ARRAY as W, STR_UINT_16_ARRAY as K, STR_INT_32_ARRAY as X, STR_UINT_32_ARRAY as Z, STR_FLOAT_32_ARRAY as H, STR_FLOAT_64_ARRAY as Q, STR_BIG_INT_64_ARRAY as k, STR_BIG_UINT_64_ARRAY as ee, STR_DATA_VIEW as te, STR_FORM_DATA as ie, SUPPORTS_FILE as ne, STR_FILE as oe, STR_BLOB as se, STR_ERROR as re, STR_SET as ae, STR_MAP as fe, STR_PLUGIN as Y, STR_NaN as pe, STR_INFINITY as Re, STR_NEGATIVE_INFINITY as _e, STR_NEGATIVE_ZERO as le, STR_BIGINT as ue, STR_SYMBOL as Se, STR_REDACTED as Ae, STR_SUCCESS as L, STR_FAILURE as U } from "./shared.js";
|
|
2
|
-
const { NEGATIVE_INFINITY: ye, POSITIVE_INFINITY: ce, isNaN: Te } = Number, P = 1, D = 2;
|
|
3
|
-
function Ne(f, { plugins: t = [], redactErrors: _ = !0, signal: p } = {}) {
|
|
4
|
-
const y = () => p?.aborted ?? !1, c = new Promise((a, E) => {
|
|
5
|
-
p?.addEventListener("abort", (r) => {
|
|
6
|
-
E(new DOMException("Aborted", "AbortError"));
|
|
7
|
-
});
|
|
8
|
-
});
|
|
9
|
-
return new ReadableStream({
|
|
10
|
-
async start(a) {
|
|
11
|
-
const E = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), I = { refId: 0, promiseId: 0 }, T = new v(), e = [], u = (o) => {
|
|
12
|
-
de(
|
|
13
|
-
o,
|
|
14
|
-
e,
|
|
15
|
-
E,
|
|
16
|
-
r,
|
|
17
|
-
s,
|
|
18
|
-
I,
|
|
19
|
-
t,
|
|
20
|
-
_
|
|
21
|
-
), a.enqueue(e.join("") + `
|
|
22
|
-
`), e.length = 0;
|
|
23
|
-
}, i = (o, S) => {
|
|
24
|
-
T.done(), !y() && (a.enqueue(`${o}${L}`), u(S));
|
|
25
|
-
}, n = (o, S) => {
|
|
26
|
-
T.done(), !y() && (a.enqueue(`${o}${U}`), u(S));
|
|
27
|
-
}, s = {
|
|
28
|
-
push: (...o) => {
|
|
29
|
-
for (const [S, d, w] of o)
|
|
30
|
-
T.add(), S === P ? Promise.race([w, c]).then(
|
|
31
|
-
i.bind(null, d),
|
|
32
|
-
n.bind(null, d)
|
|
33
|
-
) : (async () => {
|
|
34
|
-
const g = w[Symbol.asyncIterator]();
|
|
35
|
-
let N;
|
|
36
|
-
do {
|
|
37
|
-
if (N = await g.next(), y()) return;
|
|
38
|
-
N.done || (a.enqueue(`${d}${L}`), u(N.value));
|
|
39
|
-
} while (!N.done);
|
|
40
|
-
})().then(
|
|
41
|
-
() => {
|
|
42
|
-
y() || a.enqueue(`${d}
|
|
43
|
-
`);
|
|
44
|
-
},
|
|
45
|
-
(g) => {
|
|
46
|
-
y() || (a.enqueue(`${d}${U}`), u(g));
|
|
47
|
-
}
|
|
48
|
-
).finally(() => {
|
|
49
|
-
T.done();
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
try {
|
|
54
|
-
u(f);
|
|
55
|
-
do
|
|
56
|
-
await Promise.race([T.wait(), c]);
|
|
57
|
-
while (T.p > 0);
|
|
58
|
-
a.close();
|
|
59
|
-
} catch (o) {
|
|
60
|
-
a.error(o);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const A = 1, m = 2;
|
|
66
|
-
class l {
|
|
67
|
-
constructor(t, _, p) {
|
|
68
|
-
this.type = t, this.prefix = _, this.value = p;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function de(f, t, _, p, y, c, a, E) {
|
|
72
|
-
const r = [
|
|
73
|
-
new l(
|
|
74
|
-
A,
|
|
75
|
-
"",
|
|
76
|
-
f
|
|
77
|
-
)
|
|
78
|
-
];
|
|
79
|
-
let I;
|
|
80
|
-
e: for (; (I = r.pop()) !== void 0; ) {
|
|
81
|
-
if (I.type === m) {
|
|
82
|
-
t.push(I.prefix);
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
const { prefix: T, value: e } = I;
|
|
86
|
-
if (t.push(T), e === void 0) {
|
|
87
|
-
t.push(h);
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
if (e === null) {
|
|
91
|
-
t.push(M);
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
if (e === !0) {
|
|
95
|
-
t.push(B);
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
if (e === !1) {
|
|
99
|
-
t.push(C);
|
|
100
|
-
continue;
|
|
101
|
-
}
|
|
102
|
-
const u = typeof e;
|
|
103
|
-
if (u === "object") {
|
|
104
|
-
if (e instanceof Promise || typeof e.then == "function") {
|
|
105
|
-
const i = p.get(e);
|
|
106
|
-
if (i !== void 0) {
|
|
107
|
-
t.push(b, i.toString());
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
|
-
const n = c.promiseId++;
|
|
111
|
-
p.set(e, n), t.push(b, n.toString()), y.push([
|
|
112
|
-
P,
|
|
113
|
-
n,
|
|
114
|
-
e
|
|
115
|
-
]);
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
if (e instanceof ReadableStream) {
|
|
119
|
-
const i = p.get(e);
|
|
120
|
-
if (i !== void 0) {
|
|
121
|
-
t.push(O, i.toString());
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
const n = c.promiseId++;
|
|
125
|
-
p.set(e, n), t.push(O, n.toString()), y.push([
|
|
126
|
-
D,
|
|
127
|
-
n,
|
|
128
|
-
{
|
|
129
|
-
[Symbol.asyncIterator]: async function* () {
|
|
130
|
-
const s = e.getReader();
|
|
131
|
-
try {
|
|
132
|
-
for (; ; ) {
|
|
133
|
-
const { done: o, value: S } = await s.read();
|
|
134
|
-
if (o)
|
|
135
|
-
return;
|
|
136
|
-
yield S;
|
|
137
|
-
}
|
|
138
|
-
} finally {
|
|
139
|
-
s.releaseLock();
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
]);
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
if (typeof e[Symbol.asyncIterator] == "function") {
|
|
147
|
-
const i = p.get(e);
|
|
148
|
-
if (i !== void 0) {
|
|
149
|
-
t.push(F, i.toString());
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
const n = c.promiseId++;
|
|
153
|
-
p.set(e, n), t.push(F, n.toString()), y.push([
|
|
154
|
-
D,
|
|
155
|
-
n,
|
|
156
|
-
e
|
|
157
|
-
]);
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
{
|
|
161
|
-
const i = _.get(e);
|
|
162
|
-
if (i !== void 0) {
|
|
163
|
-
t.push($, i.toString());
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
_.set(e, c.refId++);
|
|
167
|
-
}
|
|
168
|
-
if (e instanceof Date)
|
|
169
|
-
t.push(x, '"', e.toJSON(), '"');
|
|
170
|
-
else if (e instanceof RegExp)
|
|
171
|
-
t.push(G, JSON.stringify([e.source, e.flags]));
|
|
172
|
-
else if (e instanceof URL)
|
|
173
|
-
t.push(J, JSON.stringify(e));
|
|
174
|
-
else if (e instanceof ArrayBuffer)
|
|
175
|
-
t.push(
|
|
176
|
-
V,
|
|
177
|
-
R(new Uint8Array(e))
|
|
178
|
-
);
|
|
179
|
-
else if (e instanceof Int8Array)
|
|
180
|
-
t.push(j, R(e));
|
|
181
|
-
else if (e instanceof Uint8Array)
|
|
182
|
-
t.push(q, R(e));
|
|
183
|
-
else if (e instanceof Uint8ClampedArray)
|
|
184
|
-
t.push(z, R(e));
|
|
185
|
-
else if (e instanceof Int16Array)
|
|
186
|
-
t.push(W, R(e));
|
|
187
|
-
else if (e instanceof Uint16Array)
|
|
188
|
-
t.push(K, R(e));
|
|
189
|
-
else if (e instanceof Int32Array)
|
|
190
|
-
t.push(X, R(e));
|
|
191
|
-
else if (e instanceof Uint32Array)
|
|
192
|
-
t.push(Z, R(e));
|
|
193
|
-
else if (e instanceof Float32Array)
|
|
194
|
-
t.push(H, R(e));
|
|
195
|
-
else if (e instanceof Float64Array)
|
|
196
|
-
t.push(Q, R(e));
|
|
197
|
-
else if (e instanceof BigInt64Array)
|
|
198
|
-
t.push(k, R(e));
|
|
199
|
-
else if (e instanceof BigUint64Array)
|
|
200
|
-
t.push(ee, R(e));
|
|
201
|
-
else if (e instanceof DataView)
|
|
202
|
-
t.push(te, R(e));
|
|
203
|
-
else if (e instanceof FormData)
|
|
204
|
-
r.push(
|
|
205
|
-
new l(
|
|
206
|
-
A,
|
|
207
|
-
ie,
|
|
208
|
-
Array.from(e.entries())
|
|
209
|
-
)
|
|
210
|
-
);
|
|
211
|
-
else if (ne && e instanceof File)
|
|
212
|
-
r.push(
|
|
213
|
-
new l(A, oe, {
|
|
214
|
-
promise: e.arrayBuffer(),
|
|
215
|
-
size: e.size,
|
|
216
|
-
type: e.type,
|
|
217
|
-
name: e.name,
|
|
218
|
-
lastModified: e.lastModified
|
|
219
|
-
})
|
|
220
|
-
);
|
|
221
|
-
else if (e instanceof Blob)
|
|
222
|
-
r.push(
|
|
223
|
-
new l(A, se, {
|
|
224
|
-
promise: e.arrayBuffer(),
|
|
225
|
-
size: e.size,
|
|
226
|
-
type: e.type
|
|
227
|
-
})
|
|
228
|
-
);
|
|
229
|
-
else if (e instanceof Error)
|
|
230
|
-
r.push(
|
|
231
|
-
new l(
|
|
232
|
-
A,
|
|
233
|
-
re,
|
|
234
|
-
Ie(e, E)
|
|
235
|
-
)
|
|
236
|
-
);
|
|
237
|
-
else if (typeof e.toJSON == "function") {
|
|
238
|
-
const i = e.toJSON();
|
|
239
|
-
r.push(
|
|
240
|
-
new l(
|
|
241
|
-
A,
|
|
242
|
-
"",
|
|
243
|
-
i
|
|
244
|
-
)
|
|
245
|
-
), typeof i == "object" ? c.refId-- : _.delete(e);
|
|
246
|
-
} else {
|
|
247
|
-
if (typeof e[Symbol.iterator] == "function") {
|
|
248
|
-
const n = Array.isArray(e), s = n ? e : Array.from(e);
|
|
249
|
-
r.push(
|
|
250
|
-
new l(
|
|
251
|
-
m,
|
|
252
|
-
"]",
|
|
253
|
-
void 0
|
|
254
|
-
)
|
|
255
|
-
);
|
|
256
|
-
for (let o = s.length - 1; o >= 0; o--)
|
|
257
|
-
r.push(
|
|
258
|
-
new l(
|
|
259
|
-
A,
|
|
260
|
-
o === 0 ? "" : ",",
|
|
261
|
-
s[o]
|
|
262
|
-
)
|
|
263
|
-
);
|
|
264
|
-
t.push(
|
|
265
|
-
n ? "[" : e instanceof Set ? `${ae}[` : e instanceof Map ? `${fe}[` : "["
|
|
266
|
-
);
|
|
267
|
-
continue;
|
|
268
|
-
}
|
|
269
|
-
{
|
|
270
|
-
const i = a.length;
|
|
271
|
-
for (let n = 0; n < i; n++) {
|
|
272
|
-
const s = a[n](e);
|
|
273
|
-
if (Array.isArray(s)) {
|
|
274
|
-
r.push(
|
|
275
|
-
new l(
|
|
276
|
-
A,
|
|
277
|
-
Y,
|
|
278
|
-
s
|
|
279
|
-
)
|
|
280
|
-
), c.refId--, _.delete(e);
|
|
281
|
-
continue e;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
r.push(
|
|
286
|
-
new l(
|
|
287
|
-
m,
|
|
288
|
-
"}",
|
|
289
|
-
void 0
|
|
290
|
-
)
|
|
291
|
-
);
|
|
292
|
-
{
|
|
293
|
-
const i = Object.keys(e);
|
|
294
|
-
let n = i.length;
|
|
295
|
-
const s = new Array(n);
|
|
296
|
-
n -= 1;
|
|
297
|
-
for (let o = i.length - 1; o >= 0; o--) {
|
|
298
|
-
const S = i[o], d = o > 0 ? "," : "";
|
|
299
|
-
s[n - o] = new l(
|
|
300
|
-
A,
|
|
301
|
-
`${d}${JSON.stringify(S)}:`,
|
|
302
|
-
e[S]
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
r.push(...s);
|
|
306
|
-
}
|
|
307
|
-
t.push("{");
|
|
308
|
-
}
|
|
309
|
-
} else if (u === "string")
|
|
310
|
-
t.push(JSON.stringify(e));
|
|
311
|
-
else if (u === "number")
|
|
312
|
-
Te(e) ? t.push(pe) : e === ce ? t.push(Re) : e === ye ? t.push(_e) : Object.is(e, -0) ? t.push(le) : t.push(e.toString());
|
|
313
|
-
else if (u === "bigint")
|
|
314
|
-
t.push(ue, e.toString());
|
|
315
|
-
else if (u === "symbol") {
|
|
316
|
-
const i = Symbol.keyFor(e);
|
|
317
|
-
typeof i == "string" ? t.push(Se, JSON.stringify(i)) : t.push(h);
|
|
318
|
-
} else {
|
|
319
|
-
const i = a.length;
|
|
320
|
-
for (let n = 0; n < i; n++) {
|
|
321
|
-
const s = a[n](e);
|
|
322
|
-
if (Array.isArray(s)) {
|
|
323
|
-
r.push(
|
|
324
|
-
new l(
|
|
325
|
-
A,
|
|
326
|
-
Y,
|
|
327
|
-
s
|
|
328
|
-
)
|
|
329
|
-
);
|
|
330
|
-
continue e;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
t.push(h);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
function Ie(f, t) {
|
|
338
|
-
const _ = t === !0 || typeof t == "string" || typeof t > "u", p = typeof t == "string" ? t : Ae;
|
|
339
|
-
return {
|
|
340
|
-
name: _ ? "Error" : f.name,
|
|
341
|
-
message: _ ? p : f.message,
|
|
342
|
-
stack: _ ? void 0 : f.stack,
|
|
343
|
-
cause: f.cause
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
function R(f) {
|
|
347
|
-
const t = new Uint8Array(
|
|
348
|
-
f.buffer,
|
|
349
|
-
f.byteOffset,
|
|
350
|
-
f.byteLength
|
|
351
|
-
);
|
|
352
|
-
return `"${btoa(String.fromCharCode.apply(String, t))}"`;
|
|
353
|
-
}
|
|
354
|
-
export {
|
|
355
|
-
Ne as encode,
|
|
356
|
-
de as encodeSync
|
|
357
|
-
};
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
const u = "A", T = "*", S = "J", f = "j", y = "b", A = "K", l = "V", p = "D", E = "E", w = "!", I = "false", N = "k", b = "H", L = "h", B = "F", F = "I", U = "L", Y = "G", x = "O", m = "M", D = "NaN", M = "i", P = "z", O = "null", z = "P", G = "$", g = "R", C = "<redacted>", v = "@", j = "r", q = "S", V = ":", W = "s", k = "true", H = "l", J = "g", K = "o", Q = "C", X = "u", Z = "U";
|
|
2
|
-
let a = !0;
|
|
3
|
-
try {
|
|
4
|
-
new File([], "");
|
|
5
|
-
} catch {
|
|
6
|
-
a = !1;
|
|
7
|
-
}
|
|
8
|
-
class $ {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.p = 0, this.#e = [];
|
|
11
|
-
}
|
|
12
|
-
#e;
|
|
13
|
-
#t(t) {
|
|
14
|
-
this.p === 0 ? t() : this.#e.push(t);
|
|
15
|
-
}
|
|
16
|
-
add() {
|
|
17
|
-
this.p++;
|
|
18
|
-
}
|
|
19
|
-
done() {
|
|
20
|
-
if (--this.p === 0) {
|
|
21
|
-
let t;
|
|
22
|
-
for (; (t = this.#e.shift()) !== void 0; )
|
|
23
|
-
t();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
wait() {
|
|
27
|
-
return new Promise(this.#t.bind(this));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
class c {
|
|
31
|
-
constructor() {
|
|
32
|
-
this.promise = new Promise((t, e) => {
|
|
33
|
-
this.resolve = t, this.reject = e;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
class d {
|
|
38
|
-
#e = new c();
|
|
39
|
-
#t = this.#e;
|
|
40
|
-
constructor() {
|
|
41
|
-
this.iterable = async function* () {
|
|
42
|
-
let t = this.#e;
|
|
43
|
-
for (; ; ) {
|
|
44
|
-
const e = await t.promise;
|
|
45
|
-
if (e.done)
|
|
46
|
-
return;
|
|
47
|
-
yield e.value, t = e.next;
|
|
48
|
-
}
|
|
49
|
-
}.bind(this)();
|
|
50
|
-
}
|
|
51
|
-
resolve() {
|
|
52
|
-
this.#t.resolve({ done: !0 });
|
|
53
|
-
}
|
|
54
|
-
reject(t) {
|
|
55
|
-
this.#t.promise.catch(() => {
|
|
56
|
-
}), this.#t.reject(t);
|
|
57
|
-
}
|
|
58
|
-
yield(t) {
|
|
59
|
-
const e = new c();
|
|
60
|
-
this.#t.resolve({
|
|
61
|
-
done: !1,
|
|
62
|
-
value: t,
|
|
63
|
-
next: e
|
|
64
|
-
}), this.#t = e;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
class tt extends d {
|
|
68
|
-
constructor() {
|
|
69
|
-
super(...arguments), this.readable = new ReadableStream({
|
|
70
|
-
start: async (t) => {
|
|
71
|
-
try {
|
|
72
|
-
for await (const e of this.iterable)
|
|
73
|
-
t.enqueue(e);
|
|
74
|
-
t.close();
|
|
75
|
-
} catch (e) {
|
|
76
|
-
t.error(e);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
class h extends Blob {
|
|
83
|
-
#e;
|
|
84
|
-
#t;
|
|
85
|
-
#s = {};
|
|
86
|
-
constructor(t, e, s, o) {
|
|
87
|
-
if (super(), typeof t < "u") {
|
|
88
|
-
this.promise = t.promise;
|
|
89
|
-
let i = t.#s.start ?? 0;
|
|
90
|
-
typeof e < "u" && (i += e), this.#s.start = i;
|
|
91
|
-
let n = t.#s.end;
|
|
92
|
-
typeof s < "u" && (n = (t.#s.start ?? 0) + s), this.#s.end = n, this.#t = o ?? t?.type, this.#e = (n ?? t.size) - i;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
get size() {
|
|
96
|
-
if (typeof this.#e > "u")
|
|
97
|
-
throw new Error("Size is not set");
|
|
98
|
-
return this.#e;
|
|
99
|
-
}
|
|
100
|
-
set size(t) {
|
|
101
|
-
this.#e = t;
|
|
102
|
-
}
|
|
103
|
-
get type() {
|
|
104
|
-
if (typeof this.#t > "u")
|
|
105
|
-
throw new Error("Type is not set");
|
|
106
|
-
return this.#t;
|
|
107
|
-
}
|
|
108
|
-
set type(t) {
|
|
109
|
-
this.#t = t;
|
|
110
|
-
}
|
|
111
|
-
async arrayBuffer() {
|
|
112
|
-
if (!this.promise)
|
|
113
|
-
throw new Error("Promise is not set");
|
|
114
|
-
const t = await this.promise;
|
|
115
|
-
return this.#s ? t.slice(
|
|
116
|
-
this.#s.start,
|
|
117
|
-
this.#s.end
|
|
118
|
-
) : t;
|
|
119
|
-
}
|
|
120
|
-
bytes() {
|
|
121
|
-
return this.arrayBuffer().then((t) => new Uint8Array(t));
|
|
122
|
-
}
|
|
123
|
-
slice(t, e, s) {
|
|
124
|
-
return new h(this, t, e, s);
|
|
125
|
-
}
|
|
126
|
-
stream() {
|
|
127
|
-
return new ReadableStream({
|
|
128
|
-
start: async (t) => {
|
|
129
|
-
try {
|
|
130
|
-
t.enqueue(await this.bytes()), t.close();
|
|
131
|
-
} catch (e) {
|
|
132
|
-
t.error(e);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
text() {
|
|
138
|
-
return this.bytes().then((t) => new TextDecoder().decode(t));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
const _ = a ? File : Blob;
|
|
142
|
-
class R extends _ {
|
|
143
|
-
#e;
|
|
144
|
-
#t;
|
|
145
|
-
#s;
|
|
146
|
-
#n;
|
|
147
|
-
#i = {};
|
|
148
|
-
constructor(t, e, s, o) {
|
|
149
|
-
if (a ? super([], "") : super([]), typeof t < "u") {
|
|
150
|
-
this.promise = t.promise;
|
|
151
|
-
let i = t.#i.start ?? 0;
|
|
152
|
-
typeof e < "u" && (i += e), this.#i.start = i;
|
|
153
|
-
let n = t.#i.end;
|
|
154
|
-
typeof s < "u" && (n = (t.#i.start ?? 0) + s), this.#i.end = n, this.#t = o ?? t?.type, this.#s = t.name, this.#n = t.lastModified;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
get name() {
|
|
158
|
-
if (typeof this.#s > "u")
|
|
159
|
-
throw new Error("Name is not set");
|
|
160
|
-
return this.#s;
|
|
161
|
-
}
|
|
162
|
-
set name(t) {
|
|
163
|
-
this.#s = t;
|
|
164
|
-
}
|
|
165
|
-
get lastModified() {
|
|
166
|
-
if (typeof this.#n > "u")
|
|
167
|
-
throw new Error("Last modified is not set");
|
|
168
|
-
return this.#n;
|
|
169
|
-
}
|
|
170
|
-
set lastModified(t) {
|
|
171
|
-
this.#n = t;
|
|
172
|
-
}
|
|
173
|
-
get size() {
|
|
174
|
-
if (typeof this.#e > "u")
|
|
175
|
-
throw new Error("Size is not set");
|
|
176
|
-
return this.#e;
|
|
177
|
-
}
|
|
178
|
-
set size(t) {
|
|
179
|
-
this.#e = t;
|
|
180
|
-
}
|
|
181
|
-
get type() {
|
|
182
|
-
if (typeof this.#t > "u")
|
|
183
|
-
throw new Error("Type is not set");
|
|
184
|
-
return this.#t;
|
|
185
|
-
}
|
|
186
|
-
set type(t) {
|
|
187
|
-
this.#t = t;
|
|
188
|
-
}
|
|
189
|
-
async arrayBuffer() {
|
|
190
|
-
if (!this.promise)
|
|
191
|
-
throw new Error("Promise is not set");
|
|
192
|
-
const t = await this.promise;
|
|
193
|
-
return this.#i ? t.slice(
|
|
194
|
-
this.#i.start,
|
|
195
|
-
this.#i.end
|
|
196
|
-
) : t;
|
|
197
|
-
}
|
|
198
|
-
bytes() {
|
|
199
|
-
return this.arrayBuffer().then((t) => new Uint8Array(t));
|
|
200
|
-
}
|
|
201
|
-
slice(t, e, s) {
|
|
202
|
-
return new R(this, t, e, s);
|
|
203
|
-
}
|
|
204
|
-
stream() {
|
|
205
|
-
return new ReadableStream({
|
|
206
|
-
start: async (t) => {
|
|
207
|
-
try {
|
|
208
|
-
t.enqueue(await this.bytes()), t.close();
|
|
209
|
-
} catch (e) {
|
|
210
|
-
t.error(e);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
text() {
|
|
216
|
-
return this.bytes().then((t) => new TextDecoder().decode(t));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
export {
|
|
220
|
-
c as Deferred,
|
|
221
|
-
d as DeferredAsyncIterable,
|
|
222
|
-
tt as DeferredReadableStream,
|
|
223
|
-
u as STR_ARRAY_BUFFER,
|
|
224
|
-
T as STR_ASYNC_ITERABLE,
|
|
225
|
-
y as STR_BIGINT,
|
|
226
|
-
S as STR_BIG_INT_64_ARRAY,
|
|
227
|
-
f as STR_BIG_UINT_64_ARRAY,
|
|
228
|
-
A as STR_BLOB,
|
|
229
|
-
l as STR_DATA_VIEW,
|
|
230
|
-
p as STR_DATE,
|
|
231
|
-
E as STR_ERROR,
|
|
232
|
-
w as STR_FAILURE,
|
|
233
|
-
I as STR_FALSE,
|
|
234
|
-
N as STR_FILE,
|
|
235
|
-
b as STR_FLOAT_32_ARRAY,
|
|
236
|
-
L as STR_FLOAT_64_ARRAY,
|
|
237
|
-
B as STR_FORM_DATA,
|
|
238
|
-
F as STR_INFINITY,
|
|
239
|
-
U as STR_INT_16_ARRAY,
|
|
240
|
-
Y as STR_INT_32_ARRAY,
|
|
241
|
-
x as STR_INT_8_ARRAY,
|
|
242
|
-
m as STR_MAP,
|
|
243
|
-
M as STR_NEGATIVE_INFINITY,
|
|
244
|
-
P as STR_NEGATIVE_ZERO,
|
|
245
|
-
O as STR_NULL,
|
|
246
|
-
D as STR_NaN,
|
|
247
|
-
z as STR_PLUGIN,
|
|
248
|
-
G as STR_PROMISE,
|
|
249
|
-
g as STR_READABLE_STREAM,
|
|
250
|
-
C as STR_REDACTED,
|
|
251
|
-
v as STR_REFERENCE_SYMBOL,
|
|
252
|
-
j as STR_REGEXP,
|
|
253
|
-
q as STR_SET,
|
|
254
|
-
V as STR_SUCCESS,
|
|
255
|
-
W as STR_SYMBOL,
|
|
256
|
-
k as STR_TRUE,
|
|
257
|
-
H as STR_UINT_16_ARRAY,
|
|
258
|
-
J as STR_UINT_32_ARRAY,
|
|
259
|
-
K as STR_UINT_8_ARRAY,
|
|
260
|
-
Q as STR_UINT_8_ARRAY_CLAMPED,
|
|
261
|
-
X as STR_UNDEFINED,
|
|
262
|
-
Z as STR_URL,
|
|
263
|
-
a as SUPPORTS_FILE,
|
|
264
|
-
h as TurboBlob,
|
|
265
|
-
R as TurboFile,
|
|
266
|
-
$ as WaitGroup
|
|
267
|
-
};
|
package/turboStream.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export function precacheCommonTags(): void;
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves default CSS property values from a temporary element.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} tagName - The tag name to get default styles for
|
|
6
|
-
* @returns {Object} Object containing default values for all CSS properties
|
|
7
|
-
*/
|
|
8
|
-
export function getDefaultStyleForTag(tagName: string): Object;
|
|
9
|
-
export function getStyleKey(snapshot: any, tagName: any, compress?: boolean): string;
|
|
10
|
-
/**
|
|
11
|
-
* Collects all unique tag names used in the DOM tree rooted at the given node.
|
|
12
|
-
*
|
|
13
|
-
* @param {Node} root - The root node to search
|
|
14
|
-
* @returns {string[]} Array of unique tag names
|
|
15
|
-
*/
|
|
16
|
-
export function collectUsedTagNames(root: Node): string[];
|
|
17
|
-
/**
|
|
18
|
-
* Generates deduplicated base CSS for the given tag names.
|
|
19
|
-
*
|
|
20
|
-
* @param {string[]} usedTagNames - Array of tag names
|
|
21
|
-
* @returns {string} CSS string
|
|
22
|
-
*/
|
|
23
|
-
export function generateDedupedBaseCSS(usedTagNames: string[]): string;
|
|
24
|
-
/**
|
|
25
|
-
* Generates CSS classes from a style map.
|
|
26
|
-
*
|
|
27
|
-
* @returns {Map} Map of style keys to class names
|
|
28
|
-
*/
|
|
29
|
-
export function generateCSSClasses(styleMap: any): Map<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/turbo-stream";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type DecodePlugin = (type: string, ...data: unknown[]) => {
|
|
2
|
-
value: unknown;
|
|
3
|
-
} | false | null | undefined;
|
|
4
|
-
export type DecodeOptions = {
|
|
5
|
-
plugins?: DecodePlugin[];
|
|
6
|
-
};
|
|
7
|
-
export declare function decode<T>(stream: ReadableStream<string>, { plugins }?: DecodeOptions): Promise<T>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const ASYNC_FRAME_TYPE_PROMISE = 1;
|
|
2
|
-
declare const ASYNC_FRAME_TYPE_ITERABLE = 2;
|
|
3
|
-
type AsyncFrame = [
|
|
4
|
-
type: typeof ASYNC_FRAME_TYPE_PROMISE,
|
|
5
|
-
id: number,
|
|
6
|
-
promise: PromiseLike<unknown>
|
|
7
|
-
] | [
|
|
8
|
-
type: typeof ASYNC_FRAME_TYPE_ITERABLE,
|
|
9
|
-
id: number,
|
|
10
|
-
iterable: AsyncIterable<unknown>
|
|
11
|
-
];
|
|
12
|
-
export type EncodePlugin = (value: unknown) => [string, ...unknown[]] | false | null | undefined;
|
|
13
|
-
export type EncodeOptions = {
|
|
14
|
-
plugins?: EncodePlugin[];
|
|
15
|
-
redactErrors?: boolean | string;
|
|
16
|
-
signal?: AbortSignal;
|
|
17
|
-
};
|
|
18
|
-
export declare function encode(value: unknown, { plugins, redactErrors, signal }?: EncodeOptions): ReadableStream<string>;
|
|
19
|
-
export declare function encodeSync(value: unknown, chunks: {
|
|
20
|
-
push(...chunk: string[]): void;
|
|
21
|
-
}, refs: WeakMap<object, number>, promises: WeakMap<object, number>, asyncFrames: {
|
|
22
|
-
push(frame: AsyncFrame): void;
|
|
23
|
-
}, counters: {
|
|
24
|
-
refId: number;
|
|
25
|
-
promiseId: number;
|
|
26
|
-
}, plugins: EncodePlugin[], redactErrors: boolean | string): void;
|
|
27
|
-
export {};
|