@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,86 +1,359 @@
|
|
|
1
|
-
|
|
2
|
-
import { inlineBackgroundImages as
|
|
3
|
-
import { embedCustomFonts as
|
|
4
|
-
import { inlineImages as
|
|
5
|
-
import {
|
|
6
|
-
import { idle as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { inlineBackgroundImages as Ft } from "../modules/background.js";
|
|
3
|
+
import { collectUsedFontVariants as $t, collectUsedCodepoints as Pt, ensureFontsReady as Tt, embedCustomFonts as At } from "../modules/fonts.js";
|
|
4
|
+
import { inlineImages as Bt } from "../modules/images.js";
|
|
5
|
+
import { lineClamp as Xt } from "../modules/lineClamp.js";
|
|
6
|
+
import { idle as U, isSafari as G } from "../utils/browser.js";
|
|
7
|
+
import { collectUsedTagNames as Ot, generateDedupedBaseCSS as Yt } from "../utils/css.js";
|
|
8
|
+
import { applyCachePolicy as Wt, cache as et } from "./cache.js";
|
|
9
|
+
import { prepareClone as Ht } from "./prepare.js";
|
|
10
|
+
function Nt(e, t) {
|
|
11
|
+
if (!e || !t || !t.style) return;
|
|
12
|
+
const a = getComputedStyle(e);
|
|
13
|
+
try {
|
|
14
|
+
t.style.boxShadow = "none";
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
t.style.textShadow = "none";
|
|
19
|
+
} catch {
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
t.style.outline = "none";
|
|
23
|
+
} catch {
|
|
24
|
+
}
|
|
25
|
+
const c = (a.filter || "").replace(/\bblur\([^()]*\)\s*/gi, "").replace(/\bdrop-shadow\([^()]*\)\s*/gi, "").trim().replace(/\s+/g, " ");
|
|
26
|
+
try {
|
|
27
|
+
t.style.filter = c.length ? c : "none";
|
|
28
|
+
} catch {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async function oe(e, t) {
|
|
32
|
+
if (!e) throw new Error("Element cannot be null or undefined");
|
|
33
|
+
Wt(t.cache);
|
|
34
|
+
const a = t.fast, r = !!t.straighten, c = !!t.noShadows;
|
|
35
|
+
let n, o, i, s = "", l = "", x, h, d = null;
|
|
36
|
+
const f = Xt(e);
|
|
37
|
+
try {
|
|
38
|
+
({ clone: n, classCSS: o, styleCache: i } = await Ht(e, t)), r && n && (d = It(e, n)), c && n && Nt(e, n);
|
|
39
|
+
} finally {
|
|
40
|
+
f();
|
|
41
|
+
}
|
|
42
|
+
await new Promise((m) => {
|
|
43
|
+
U(
|
|
27
44
|
async () => {
|
|
28
|
-
await
|
|
45
|
+
await Bt(n, t), m();
|
|
29
46
|
},
|
|
30
|
-
{ fast:
|
|
47
|
+
{ fast: a }
|
|
31
48
|
);
|
|
32
|
-
}), await new Promise((
|
|
33
|
-
|
|
49
|
+
}), await new Promise((m) => {
|
|
50
|
+
U(
|
|
34
51
|
async () => {
|
|
35
|
-
await
|
|
52
|
+
await Ft(e, n, i, t), m();
|
|
36
53
|
},
|
|
37
|
-
{ fast:
|
|
54
|
+
{ fast: a }
|
|
38
55
|
);
|
|
39
|
-
}),
|
|
40
|
-
|
|
56
|
+
}), t.embedFonts && await new Promise((m) => {
|
|
57
|
+
U(
|
|
41
58
|
async () => {
|
|
42
|
-
|
|
59
|
+
const u = $t(e), S = Pt(e);
|
|
60
|
+
if (G()) {
|
|
61
|
+
const v = new Set(
|
|
62
|
+
Array.from(u).map((p) => String(p).split("__")[0]).filter(Boolean)
|
|
63
|
+
);
|
|
64
|
+
await Tt(v, 1);
|
|
65
|
+
}
|
|
66
|
+
s = await At({
|
|
67
|
+
required: u,
|
|
68
|
+
usedCodepoints: S,
|
|
69
|
+
exclude: t.excludeFonts,
|
|
70
|
+
useProxy: t.useProxy
|
|
71
|
+
}), m();
|
|
43
72
|
},
|
|
44
|
-
{ fast:
|
|
73
|
+
{ fast: a }
|
|
45
74
|
);
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
await new Promise((s) => {
|
|
58
|
-
l(
|
|
75
|
+
});
|
|
76
|
+
const y = Ot(n).sort(), b = y.join(",");
|
|
77
|
+
et.baseStyle.has(b) ? l = et.baseStyle.get(b) : await new Promise((m) => {
|
|
78
|
+
U(
|
|
79
|
+
() => {
|
|
80
|
+
l = Yt(y), et.baseStyle.set(b, l), m();
|
|
81
|
+
},
|
|
82
|
+
{ fast: a }
|
|
83
|
+
);
|
|
84
|
+
}), await new Promise((m) => {
|
|
85
|
+
U(
|
|
59
86
|
() => {
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
87
|
+
const u = getComputedStyle(e);
|
|
88
|
+
function S(C) {
|
|
89
|
+
const w = `${C.filter || ""} ${C.webkitFilter || ""}`.trim();
|
|
90
|
+
if (!w || w === "none")
|
|
91
|
+
return {
|
|
92
|
+
bleed: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
93
|
+
has: !1
|
|
94
|
+
};
|
|
95
|
+
const P = w.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi) || [];
|
|
96
|
+
let B = 0, I = 0, D = 0, E = 0, X = !1;
|
|
97
|
+
for (const vt of P) {
|
|
98
|
+
X = !0;
|
|
99
|
+
const St = vt.match(/-?\d+(?:\.\d+)?px/gi)?.map((Ct) => parseFloat(Ct)) || [], [R = 0, tt = 0, ut = 0] = St, mt = Math.abs(R) + ut, ft = Math.abs(tt) + ut;
|
|
100
|
+
I = Math.max(I, mt + Math.max(R, 0)), E = Math.max(E, mt + Math.max(-R, 0)), D = Math.max(D, ft + Math.max(tt, 0)), B = Math.max(B, ft + Math.max(-tt, 0));
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
bleed: {
|
|
104
|
+
top: Math.ceil(B),
|
|
105
|
+
right: Math.ceil(I),
|
|
106
|
+
bottom: Math.ceil(D),
|
|
107
|
+
left: Math.ceil(E)
|
|
108
|
+
},
|
|
109
|
+
has: X
|
|
110
|
+
};
|
|
66
111
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
112
|
+
const v = e.getBoundingClientRect(), p = Math.max(
|
|
113
|
+
1,
|
|
114
|
+
Math.ceil(
|
|
115
|
+
e.offsetWidth || parseFloat(u.width) || v.width || 1
|
|
116
|
+
)
|
|
117
|
+
), g = Math.max(
|
|
118
|
+
1,
|
|
119
|
+
Math.ceil(
|
|
120
|
+
e.offsetHeight || parseFloat(u.height) || v.height || 1
|
|
121
|
+
)
|
|
122
|
+
), nt = (C, w = NaN) => {
|
|
123
|
+
const P = typeof C == "string" ? parseFloat(C) : C;
|
|
124
|
+
return Number.isFinite(P) ? P : w;
|
|
125
|
+
}, V = nt(t.width), J = nt(t.height);
|
|
126
|
+
let T = p, A = g;
|
|
127
|
+
const Y = Number.isFinite(V), W = Number.isFinite(J), st = g > 0 ? p / g : 1;
|
|
128
|
+
Y && W ? (T = Math.max(1, Math.ceil(V)), A = Math.max(1, Math.ceil(J))) : Y ? (T = Math.max(1, Math.ceil(V)), A = Math.max(1, Math.ceil(T / (st || 1)))) : W ? (A = Math.max(1, Math.ceil(J)), T = Math.max(1, Math.ceil(A * (st || 1)))) : (T = p, A = g);
|
|
129
|
+
let H = 0, N = 0, j = p, k = g;
|
|
130
|
+
if (r && d && Number.isFinite(d.a)) {
|
|
131
|
+
const C = {
|
|
132
|
+
a: d.a,
|
|
133
|
+
b: d.b || 0,
|
|
134
|
+
c: d.c || 0,
|
|
135
|
+
d: d.d || 1,
|
|
136
|
+
e: 0,
|
|
137
|
+
f: 0
|
|
138
|
+
}, w = ht(p, g, C, 0, 0);
|
|
139
|
+
H = w.minX, N = w.minY, j = w.maxX, k = w.maxY;
|
|
140
|
+
} else if (!r && jt(e)) {
|
|
141
|
+
const w = u.transform && u.transform !== "none" ? u.transform : "", P = kt(e), B = qt({
|
|
142
|
+
baseTransform: w,
|
|
143
|
+
rotate: P.rotate || "0deg",
|
|
144
|
+
scale: P.scale,
|
|
145
|
+
translate: P.translate
|
|
146
|
+
}), { ox: I, oy: D } = Lt(u, p, g), E = B.is2D ? B : new DOMMatrix(B.toString()), X = ht(p, g, E, I, D);
|
|
147
|
+
H = X.minX, N = X.minY, j = X.maxX, k = X.maxY;
|
|
70
148
|
}
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
149
|
+
const z = Dt(u), L = Et(u), _ = Ut(u), q = S(u), K = c ? { top: 0, right: 0, bottom: 0, left: 0 } : {
|
|
150
|
+
top: z.top + L.top + _.top + q.bleed.top,
|
|
151
|
+
right: z.right + L.right + _.right + q.bleed.right,
|
|
152
|
+
bottom: z.bottom + L.bottom + _.bottom + q.bleed.bottom,
|
|
153
|
+
left: z.left + L.left + _.left + q.bleed.left
|
|
154
|
+
};
|
|
155
|
+
H -= K.left, N -= K.top, j += K.right, k += K.bottom;
|
|
156
|
+
const rt = Math.max(1, Math.ceil(j - H)), ot = Math.max(1, Math.ceil(k - N)), pt = Math.max(
|
|
157
|
+
1,
|
|
158
|
+
Math.round(rt * (Y || W ? T / p : 1))
|
|
159
|
+
), xt = Math.max(
|
|
160
|
+
1,
|
|
161
|
+
Math.round(ot * (W || Y ? A / g : 1))
|
|
162
|
+
), it = "http://www.w3.org/2000/svg", F = (G() ? 1 : 0) + (r ? 1 : 0), $ = document.createElementNS(it, "foreignObject"), gt = Math.floor(H), yt = Math.floor(N);
|
|
163
|
+
$.setAttribute("x", String(-(gt - F))), $.setAttribute("y", String(-(yt - F))), $.setAttribute("width", String(Math.ceil(p + F * 2))), $.setAttribute("height", String(Math.ceil(g + F * 2))), $.style.overflow = "visible";
|
|
164
|
+
const lt = document.createElement("style");
|
|
165
|
+
lt.textContent = l + s + "svg{overflow:visible;} foreignObject{overflow:visible;}" + o, $.appendChild(lt);
|
|
166
|
+
const O = document.createElement("div");
|
|
167
|
+
O.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), O.style.width = `${p}px`, O.style.height = `${g}px`, O.style.overflow = "visible", n.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), O.appendChild(n), $.appendChild(O);
|
|
168
|
+
const bt = new XMLSerializer().serializeToString($), Q = rt + F * 2, Z = ot + F * 2, ct = Y || W;
|
|
169
|
+
t.meta = { w0: p, h0: g, vbW: Q, vbH: Z, targetW: T, targetH: A };
|
|
170
|
+
const Mt = G() && ct ? Q : pt + F * 2, wt = G() && ct ? Z : xt + F * 2;
|
|
171
|
+
h = `<svg xmlns="${it}" width="${Mt}" height="${wt}" viewBox="0 0 ${Q} ${Z}">` + bt + "</svg>", x = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(h)}`, m();
|
|
77
172
|
},
|
|
78
|
-
{ fast:
|
|
173
|
+
{ fast: a }
|
|
79
174
|
);
|
|
80
175
|
});
|
|
81
|
-
const
|
|
82
|
-
return
|
|
176
|
+
const M = document.getElementById("snapdom-sandbox");
|
|
177
|
+
return M && M.style.position === "absolute" && M.remove(), x;
|
|
178
|
+
}
|
|
179
|
+
function It(e, t) {
|
|
180
|
+
if (!e || !t || !t.style) return null;
|
|
181
|
+
const a = getComputedStyle(e);
|
|
182
|
+
try {
|
|
183
|
+
t.style.transformOrigin = "0 0";
|
|
184
|
+
} catch {
|
|
185
|
+
}
|
|
186
|
+
try {
|
|
187
|
+
"translate" in t.style && (t.style.translate = "none"), "rotate" in t.style && (t.style.rotate = "none");
|
|
188
|
+
} catch {
|
|
189
|
+
}
|
|
190
|
+
const r = a.transform || "none";
|
|
191
|
+
if (r === "none")
|
|
192
|
+
try {
|
|
193
|
+
const n = dt(e);
|
|
194
|
+
if (n.a === 1 && n.b === 0 && n.c === 0 && n.d === 1)
|
|
195
|
+
return t.style.transform = "none", { a: 1, b: 0, c: 0, d: 1 };
|
|
196
|
+
} catch {
|
|
197
|
+
}
|
|
198
|
+
const c = r.match(/^matrix\(\s*([^)]+)\)$/i);
|
|
199
|
+
if (c) {
|
|
200
|
+
const n = c[1].split(",").map((o) => parseFloat(o.trim()));
|
|
201
|
+
if (n.length === 6 && n.every(Number.isFinite)) {
|
|
202
|
+
const [o, i, s, l] = n, x = Math.sqrt(o * o + i * i) || 0;
|
|
203
|
+
let h = 0, d = 0, f = 0, y = 0, b = 0, M = 0;
|
|
204
|
+
x > 0 && (h = o / x, d = i / x, f = h * s + d * l, y = s - h * f, b = l - d * f, M = Math.sqrt(y * y + b * b) || 0, M > 0 ? f = f / M : f = 0);
|
|
205
|
+
const m = x, u = 0, S = f * M, v = M;
|
|
206
|
+
try {
|
|
207
|
+
t.style.transform = `matrix(${m}, ${u}, ${S}, ${v}, 0, 0)`;
|
|
208
|
+
} catch {
|
|
209
|
+
}
|
|
210
|
+
return { a: m, b: u, c: S, d: v };
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
const n = String(r).trim();
|
|
215
|
+
return t.style.transform = n + " translate(0px, 0px) rotate(0deg)", null;
|
|
216
|
+
} catch {
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function Dt(e) {
|
|
221
|
+
const t = e.boxShadow || "";
|
|
222
|
+
if (!t || t === "none") return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
223
|
+
const a = t.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map((i) => i.trim());
|
|
224
|
+
let r = 0, c = 0, n = 0, o = 0;
|
|
225
|
+
for (const i of a) {
|
|
226
|
+
const s = i.match(/-?\d+(\.\d+)?px/g)?.map((b) => parseFloat(b)) || [];
|
|
227
|
+
if (s.length < 2) continue;
|
|
228
|
+
const [l, x, h = 0, d = 0] = s, f = Math.abs(l) + h + d, y = Math.abs(x) + h + d;
|
|
229
|
+
c = Math.max(c, f + Math.max(l, 0)), o = Math.max(o, f + Math.max(-l, 0)), n = Math.max(n, y + Math.max(x, 0)), r = Math.max(r, y + Math.max(-x, 0));
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
top: Math.ceil(r),
|
|
233
|
+
right: Math.ceil(c),
|
|
234
|
+
bottom: Math.ceil(n),
|
|
235
|
+
left: Math.ceil(o)
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
function Et(e) {
|
|
239
|
+
const t = (e.filter || "").match(/blur\(\s*([0-9.]+)px\s*\)/), a = t ? Math.ceil(parseFloat(t[1]) || 0) : 0;
|
|
240
|
+
return { top: a, right: a, bottom: a, left: a };
|
|
241
|
+
}
|
|
242
|
+
function Ut(e) {
|
|
243
|
+
if ((e.outlineStyle || "none") === "none")
|
|
244
|
+
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
245
|
+
const t = Math.ceil(parseFloat(e.outlineWidth || "0") || 0);
|
|
246
|
+
return { top: t, right: t, bottom: t, left: t };
|
|
247
|
+
}
|
|
248
|
+
function ht(e, t, a, r, c) {
|
|
249
|
+
const n = a.a, o = a.b, i = a.c, s = a.d, l = a.e || 0, x = a.f || 0;
|
|
250
|
+
function h(m, u) {
|
|
251
|
+
let S = m - r, v = u - c, p = n * S + i * v, g = o * S + s * v;
|
|
252
|
+
return p += r + l, g += c + x, [p, g];
|
|
253
|
+
}
|
|
254
|
+
const d = [h(0, 0), h(e, 0), h(0, t), h(e, t)];
|
|
255
|
+
let f = 1 / 0, y = 1 / 0, b = -1 / 0, M = -1 / 0;
|
|
256
|
+
for (const [m, u] of d)
|
|
257
|
+
m < f && (f = m), u < y && (y = u), m > b && (b = m), u > M && (M = u);
|
|
258
|
+
return {
|
|
259
|
+
minX: f,
|
|
260
|
+
minY: y,
|
|
261
|
+
maxX: b,
|
|
262
|
+
maxY: M,
|
|
263
|
+
width: b - f,
|
|
264
|
+
height: M - y
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function jt(e) {
|
|
268
|
+
return zt(e);
|
|
269
|
+
}
|
|
270
|
+
function dt(e) {
|
|
271
|
+
const t = getComputedStyle(e).transform;
|
|
272
|
+
if (!t || t === "none") return new DOMMatrix();
|
|
273
|
+
try {
|
|
274
|
+
return new DOMMatrix(t);
|
|
275
|
+
} catch {
|
|
276
|
+
return new WebKitCSSMatrix(t);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function kt(e) {
|
|
280
|
+
const t = { rotate: "0deg", scale: null, translate: null }, a = typeof e.computedStyleMap == "function" ? e.computedStyleMap() : null;
|
|
281
|
+
if (a) {
|
|
282
|
+
const c = (s) => {
|
|
283
|
+
try {
|
|
284
|
+
return typeof a.has == "function" && !a.has(s) || typeof a.get != "function" ? null : a.get(s);
|
|
285
|
+
} catch {
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
}, n = c("rotate");
|
|
289
|
+
if (n)
|
|
290
|
+
if (n.angle) {
|
|
291
|
+
const s = n.angle;
|
|
292
|
+
t.rotate = s.unit === "rad" ? s.value * 180 / Math.PI + "deg" : s.value + s.unit;
|
|
293
|
+
} else n.unit ? t.rotate = n.unit === "rad" ? n.value * 180 / Math.PI + "deg" : n.value + n.unit : t.rotate = String(n);
|
|
294
|
+
else {
|
|
295
|
+
const s = getComputedStyle(e);
|
|
296
|
+
t.rotate = s.rotate && s.rotate !== "none" ? s.rotate : "0deg";
|
|
297
|
+
}
|
|
298
|
+
const o = c("scale");
|
|
299
|
+
if (o) {
|
|
300
|
+
const s = "x" in o && o.x?.value != null ? o.x.value : Array.isArray(o) ? o[0]?.value : Number(o) || 1, l = "y" in o && o.y?.value != null ? o.y.value : Array.isArray(o) ? o[1]?.value : s;
|
|
301
|
+
t.scale = `${s} ${l}`;
|
|
302
|
+
} else {
|
|
303
|
+
const s = getComputedStyle(e);
|
|
304
|
+
t.scale = s.scale && s.scale !== "none" ? s.scale : null;
|
|
305
|
+
}
|
|
306
|
+
const i = c("translate");
|
|
307
|
+
if (i) {
|
|
308
|
+
const s = "x" in i && "value" in i.x ? i.x.value : Array.isArray(i) ? i[0]?.value : 0, l = "y" in i && "value" in i.y ? i.y.value : Array.isArray(i) ? i[1]?.value : 0, x = "x" in i && i.x?.unit ? i.x.unit : "px", h = "y" in i && i.y?.unit ? i.y.unit : "px";
|
|
309
|
+
t.translate = `${s}${x} ${l}${h}`;
|
|
310
|
+
} else {
|
|
311
|
+
const s = getComputedStyle(e);
|
|
312
|
+
t.translate = s.translate && s.translate !== "none" ? s.translate : null;
|
|
313
|
+
}
|
|
314
|
+
return t;
|
|
315
|
+
}
|
|
316
|
+
const r = getComputedStyle(e);
|
|
317
|
+
return t.rotate = r.rotate && r.rotate !== "none" ? r.rotate : "0deg", t.scale = r.scale && r.scale !== "none" ? r.scale : null, t.translate = r.translate && r.translate !== "none" ? r.translate : null, t;
|
|
318
|
+
}
|
|
319
|
+
function zt(e) {
|
|
320
|
+
const t = getComputedStyle(e), a = t.transform || "none";
|
|
321
|
+
if (a !== "none" && !/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(a)) return !0;
|
|
322
|
+
const c = t.rotate && t.rotate !== "none" && t.rotate !== "0deg", n = t.scale && t.scale !== "none" && t.scale !== "1", o = t.translate && t.translate !== "none" && t.translate !== "0px 0px";
|
|
323
|
+
return !!(c || n || o);
|
|
324
|
+
}
|
|
325
|
+
function Lt(e, t, a) {
|
|
326
|
+
const r = (e.transformOrigin || "0 0").trim().split(/\s+/), [c, n] = [r[0] || "0", r[1] || "0"], o = (i, s) => {
|
|
327
|
+
const l = i.toLowerCase();
|
|
328
|
+
return l === "left" || l === "top" ? 0 : l === "center" ? s / 2 : l === "right" || l === "bottom" ? s : l.endsWith("px") ? parseFloat(l) || 0 : l.endsWith("%") ? (parseFloat(l) || 0) * s / 100 : /^-?\d+(\.\d+)?$/.test(l) && parseFloat(l) || 0;
|
|
329
|
+
};
|
|
330
|
+
return {
|
|
331
|
+
ox: o(c, t),
|
|
332
|
+
oy: o(n, a)
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
var at = null;
|
|
336
|
+
function _t() {
|
|
337
|
+
if (at) return at;
|
|
338
|
+
const e = document.createElement("div");
|
|
339
|
+
return e.id = "snapdom-measure-slot", e.setAttribute("aria-hidden", "true"), Object.assign(e.style, {
|
|
340
|
+
position: "absolute",
|
|
341
|
+
left: "-99999px",
|
|
342
|
+
top: "0px",
|
|
343
|
+
width: "0px",
|
|
344
|
+
height: "0px",
|
|
345
|
+
overflow: "hidden",
|
|
346
|
+
opacity: "0",
|
|
347
|
+
pointerEvents: "none",
|
|
348
|
+
contain: "size layout style"
|
|
349
|
+
}), document.documentElement.appendChild(e), at = e, e;
|
|
350
|
+
}
|
|
351
|
+
function qt(e) {
|
|
352
|
+
const t = _t(), a = document.createElement("div");
|
|
353
|
+
a.style.transformOrigin = "0 0", e.baseTransform && (a.style.transform = e.baseTransform), e.rotate && (a.style.rotate = e.rotate), e.scale && (a.style.scale = e.scale), e.translate && (a.style.translate = e.translate), t.appendChild(a);
|
|
354
|
+
const r = dt(a);
|
|
355
|
+
return t.removeChild(a), r;
|
|
83
356
|
}
|
|
84
357
|
export {
|
|
85
|
-
|
|
358
|
+
oe as captureDOM
|
|
86
359
|
};
|