@unicom-cloud/utils 0.1.23 → 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 +50 -57
- 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,187 +1,186 @@
|
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { freezeSticky as b } from "../modules/changeCSS.js";
|
|
1
3
|
import { inlinePseudoElements as w } from "../modules/pseudo.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { snapFetch as A } from "../modules/snapFetch.js";
|
|
5
|
+
import { inlineExternalDefsAndSymbols as C } from "../modules/svgDefs.js";
|
|
6
|
+
import { generateCSSClasses as E } from "../utils/css.js";
|
|
7
|
+
import { stripTranslate as M } from "../utils/helpers.js";
|
|
8
|
+
import { cache as h } from "./cache.js";
|
|
5
9
|
import { deepClone as N } from "./clone.js";
|
|
6
|
-
async function
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
async function H(t, r = {}) {
|
|
11
|
+
const o = {
|
|
12
|
+
styleMap: h.session.styleMap,
|
|
13
|
+
styleCache: h.session.styleCache,
|
|
14
|
+
nodeMap: h.session.nodeMap
|
|
15
|
+
};
|
|
16
|
+
let s, c = "", y = "";
|
|
17
|
+
q(t);
|
|
10
18
|
try {
|
|
11
|
-
|
|
19
|
+
C(t);
|
|
12
20
|
} catch (e) {
|
|
13
21
|
console.warn("inlineExternal defs or symbol failed:", e);
|
|
14
22
|
}
|
|
15
23
|
try {
|
|
16
|
-
|
|
17
|
-
t,
|
|
18
|
-
i,
|
|
19
|
-
f,
|
|
20
|
-
r,
|
|
21
|
-
n,
|
|
22
|
-
a,
|
|
23
|
-
t
|
|
24
|
-
);
|
|
24
|
+
s = await N(t, o, r, t);
|
|
25
25
|
} catch (e) {
|
|
26
26
|
throw console.warn("deepClone failed:", e), e;
|
|
27
27
|
}
|
|
28
28
|
try {
|
|
29
|
-
await w(
|
|
30
|
-
t,
|
|
31
|
-
o,
|
|
32
|
-
i,
|
|
33
|
-
f,
|
|
34
|
-
n,
|
|
35
|
-
l,
|
|
36
|
-
a.useProxy
|
|
37
|
-
);
|
|
29
|
+
await w(t, s, o, r);
|
|
38
30
|
} catch (e) {
|
|
39
31
|
console.warn("inlinePseudoElements failed:", e);
|
|
40
32
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
for (const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
await k(s);
|
|
34
|
+
try {
|
|
35
|
+
const e = s.querySelectorAll("style[data-sd]");
|
|
36
|
+
for (const l of e)
|
|
37
|
+
y += l.textContent || "", l.remove();
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
const n = E(o.styleMap);
|
|
41
|
+
c = Array.from(n.entries()).map(([e, l]) => `.${l}{${e}}`).join(""), c = y + c;
|
|
42
|
+
for (const [e, l] of o.styleMap.entries()) {
|
|
43
|
+
if (e.tagName === "STYLE") continue;
|
|
44
|
+
if (e.getRootNode && e.getRootNode() instanceof ShadowRoot) {
|
|
45
|
+
e.setAttribute("style", l.replace(/;/g, "; "));
|
|
46
|
+
continue;
|
|
54
47
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
const i = n.get(l);
|
|
49
|
+
i && e.classList.add(i);
|
|
50
|
+
const f = e.style?.backgroundImage, d = e.dataset?.snapdomHasIcon;
|
|
51
|
+
f && f !== "none" && (e.style.backgroundImage = f), d && (e.style.verticalAlign = "middle", e.style.display = "inline");
|
|
52
|
+
}
|
|
53
|
+
for (const [e, l] of o.nodeMap.entries()) {
|
|
54
|
+
const i = l.scrollLeft, f = l.scrollTop;
|
|
55
|
+
if ((i || f) && e instanceof HTMLElement) {
|
|
61
56
|
e.style.overflow = "hidden", e.style.scrollbarWidth = "none", e.style.msOverflowStyle = "none";
|
|
62
|
-
const
|
|
63
|
-
for (
|
|
64
|
-
|
|
65
|
-
e.appendChild(
|
|
57
|
+
const u = document.createElement("div");
|
|
58
|
+
for (u.style.transform = `translate(${-i}px, ${-f}px)`, u.style.willChange = "transform", u.style.display = "inline-block", u.style.width = "100%"; e.firstChild; )
|
|
59
|
+
u.appendChild(e.firstChild);
|
|
60
|
+
e.appendChild(u);
|
|
66
61
|
}
|
|
67
62
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
const a = s instanceof HTMLElement && s.firstElementChild instanceof HTMLElement ? s.firstElementChild : s;
|
|
64
|
+
if (b(t, a), t === o.nodeMap.get(s)) {
|
|
65
|
+
const e = o.styleCache.get(t) || window.getComputedStyle(t);
|
|
66
|
+
o.styleCache.set(t, e);
|
|
67
|
+
const l = M(e.transform);
|
|
68
|
+
s.style.margin = "0", s.style.top = "auto", s.style.left = "auto", s.style.right = "auto", s.style.bottom = "auto", s.style.animation = "none", s.style.transition = "none", s.style.willChange = "auto", s.style.float = "none", s.style.clear = "none", s.style.transform = l || "";
|
|
73
69
|
}
|
|
74
|
-
for (const [e,
|
|
75
|
-
|
|
76
|
-
return { clone:
|
|
77
|
-
}
|
|
78
|
-
function E(t) {
|
|
79
|
-
const n = getComputedStyle(t), l = n.outlineStyle, a = n.outlineWidth, i = n.borderStyle, f = n.borderWidth, r = l !== "none" && parseFloat(a) > 0, o = i === "none" || parseFloat(f) === 0;
|
|
80
|
-
r && o && (t.style.border = `${a} solid transparent`);
|
|
70
|
+
for (const [e, l] of o.nodeMap.entries())
|
|
71
|
+
l.tagName === "PRE" && (e.style.marginTop = "0", e.style.marginBlockStart = "0");
|
|
72
|
+
return { clone: s, classCSS: c, styleCache: o.styleCache };
|
|
81
73
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const n = await fetch(t);
|
|
86
|
-
if (!n.ok)
|
|
87
|
-
throw new Error(`[SnapDOM] HTTP ${n.status} on blob fetch (${t})`);
|
|
88
|
-
const l = await n.blob(), a = await new Promise((i, f) => {
|
|
89
|
-
const r = new FileReader();
|
|
90
|
-
r.onloadend = () => {
|
|
91
|
-
const o = r.result;
|
|
92
|
-
typeof o == "string" && o.startsWith("data:") ? i(o) : f(new Error("[SnapDOM] Invalid data URL from blob"));
|
|
93
|
-
}, r.onerror = () => f(new Error("[SnapDOM] FileReader error")), r.readAsDataURL(l);
|
|
94
|
-
});
|
|
95
|
-
return h.set(t, a), a;
|
|
74
|
+
function q(t) {
|
|
75
|
+
const r = getComputedStyle(t), o = r.outlineStyle, s = r.outlineWidth, c = r.borderStyle, y = r.borderWidth, n = o !== "none" && parseFloat(s) > 0, a = c === "none" || parseFloat(y) === 0;
|
|
76
|
+
n && a && (t.style.border = `${s} solid transparent`);
|
|
96
77
|
}
|
|
97
|
-
var
|
|
78
|
+
var p = /* @__PURE__ */ new Map();
|
|
98
79
|
async function m(t) {
|
|
80
|
+
if (h.resource?.has(t)) return h.resource.get(t);
|
|
81
|
+
if (p.has(t)) return p.get(t);
|
|
82
|
+
const r = (async () => {
|
|
83
|
+
const o = await A(t, { as: "dataURL", silent: !0 });
|
|
84
|
+
if (!o.ok || typeof o.data != "string")
|
|
85
|
+
throw new Error(`[snapDOM] Failed to read blob URL: ${t}`);
|
|
86
|
+
return h.resource?.set(t, o.data), o.data;
|
|
87
|
+
})();
|
|
88
|
+
p.set(t, r);
|
|
89
|
+
try {
|
|
90
|
+
const o = await r;
|
|
91
|
+
return p.set(t, o), o;
|
|
92
|
+
} catch (o) {
|
|
93
|
+
throw p.delete(t), o;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
var L = /\bblob:[^)"'\s]+/g;
|
|
97
|
+
async function S(t) {
|
|
99
98
|
if (!t || t.indexOf("blob:") === -1) return t;
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
let
|
|
103
|
-
for (const
|
|
99
|
+
const r = Array.from(new Set(t.match(L) || []));
|
|
100
|
+
if (r.length === 0) return t;
|
|
101
|
+
let o = t;
|
|
102
|
+
for (const s of r)
|
|
104
103
|
try {
|
|
105
|
-
const
|
|
106
|
-
|
|
104
|
+
const c = await m(s);
|
|
105
|
+
o = o.split(s).join(c);
|
|
107
106
|
} catch {
|
|
108
107
|
}
|
|
109
|
-
return
|
|
108
|
+
return o;
|
|
110
109
|
}
|
|
111
110
|
function g(t) {
|
|
112
111
|
return typeof t == "string" && t.startsWith("blob:");
|
|
113
112
|
}
|
|
114
|
-
function
|
|
115
|
-
return (t || "").split(",").map((
|
|
116
|
-
const
|
|
117
|
-
return
|
|
113
|
+
function v(t) {
|
|
114
|
+
return (t || "").split(",").map((r) => r.trim()).filter(Boolean).map((r) => {
|
|
115
|
+
const o = r.match(/^(\S+)(\s+.+)?$/);
|
|
116
|
+
return o ? { url: o[1], desc: o[2] || "" } : null;
|
|
118
117
|
}).filter(Boolean);
|
|
119
118
|
}
|
|
120
|
-
function
|
|
121
|
-
return t.map((
|
|
119
|
+
function $(t) {
|
|
120
|
+
return t.map((r) => r.desc ? `${r.url} ${r.desc.trim()}` : r.url).join(", ");
|
|
122
121
|
}
|
|
123
|
-
async function
|
|
122
|
+
async function k(t) {
|
|
124
123
|
if (!t) return;
|
|
125
|
-
const
|
|
126
|
-
for (const
|
|
124
|
+
const r = t.querySelectorAll ? t.querySelectorAll("img") : [];
|
|
125
|
+
for (const n of r)
|
|
127
126
|
try {
|
|
128
|
-
const
|
|
129
|
-
if (g(
|
|
130
|
-
const
|
|
131
|
-
|
|
127
|
+
const e = n.getAttribute("src") || n.currentSrc || "";
|
|
128
|
+
if (g(e)) {
|
|
129
|
+
const i = await m(e);
|
|
130
|
+
n.setAttribute("src", i);
|
|
132
131
|
}
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
for (const d of
|
|
132
|
+
const l = n.getAttribute("srcset");
|
|
133
|
+
if (l && l.includes("blob:")) {
|
|
134
|
+
const i = v(l);
|
|
135
|
+
let f = !1;
|
|
136
|
+
for (const d of i)
|
|
138
137
|
if (g(d.url))
|
|
139
138
|
try {
|
|
140
|
-
d.url = await
|
|
139
|
+
d.url = await m(d.url), f = !0;
|
|
141
140
|
} catch {
|
|
142
141
|
}
|
|
143
|
-
|
|
142
|
+
f && n.setAttribute("srcset", $(i));
|
|
144
143
|
}
|
|
145
144
|
} catch {
|
|
146
145
|
}
|
|
147
|
-
const
|
|
148
|
-
for (const
|
|
146
|
+
const o = t.querySelectorAll ? t.querySelectorAll("image") : [];
|
|
147
|
+
for (const n of o)
|
|
149
148
|
try {
|
|
150
|
-
const
|
|
151
|
-
if (g(
|
|
152
|
-
const
|
|
153
|
-
|
|
149
|
+
const a = "http://www.w3.org/1999/xlink", e = n.getAttribute("href") || n.getAttributeNS?.(a, "href");
|
|
150
|
+
if (g(e)) {
|
|
151
|
+
const l = await m(e);
|
|
152
|
+
n.setAttribute("href", l), n.removeAttributeNS?.(a, "href");
|
|
154
153
|
}
|
|
155
154
|
} catch {
|
|
156
155
|
}
|
|
157
|
-
const
|
|
158
|
-
for (const
|
|
156
|
+
const s = t.querySelectorAll ? t.querySelectorAll("[style*='blob:']") : [];
|
|
157
|
+
for (const n of s)
|
|
159
158
|
try {
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
|
|
159
|
+
const a = n.getAttribute("style");
|
|
160
|
+
if (a && a.includes("blob:")) {
|
|
161
|
+
const e = await S(a);
|
|
162
|
+
n.setAttribute("style", e);
|
|
164
163
|
}
|
|
165
164
|
} catch {
|
|
166
165
|
}
|
|
167
|
-
const
|
|
168
|
-
for (const
|
|
166
|
+
const c = t.querySelectorAll ? t.querySelectorAll("style") : [];
|
|
167
|
+
for (const n of c)
|
|
169
168
|
try {
|
|
170
|
-
const
|
|
171
|
-
|
|
169
|
+
const a = n.textContent || "";
|
|
170
|
+
a.includes("blob:") && (n.textContent = await S(a));
|
|
172
171
|
} catch {
|
|
173
172
|
}
|
|
174
|
-
const
|
|
175
|
-
for (const
|
|
176
|
-
const
|
|
177
|
-
for (const
|
|
173
|
+
const y = ["poster"];
|
|
174
|
+
for (const n of y) {
|
|
175
|
+
const a = t.querySelectorAll ? t.querySelectorAll(`[${n}^='blob:']`) : [];
|
|
176
|
+
for (const e of a)
|
|
178
177
|
try {
|
|
179
|
-
const
|
|
180
|
-
g(
|
|
178
|
+
const l = e.getAttribute(n);
|
|
179
|
+
g(l) && e.setAttribute(n, await m(l));
|
|
181
180
|
} catch {
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
}
|
|
185
184
|
export {
|
|
186
|
-
|
|
185
|
+
H as prepareClone
|
|
187
186
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { createBackground as l } from "../utils/image.js";
|
|
3
|
+
import { toBlob as d } from "./toBlob.js";
|
|
4
|
+
import { toCanvas as f } from "./toCanvas.js";
|
|
5
|
+
async function k(t, a) {
|
|
6
|
+
if (a.dpr = 1, a.format === "svg") {
|
|
7
|
+
const m = await d(t, { ...a, type: "svg" }), o = URL.createObjectURL(m), c = document.createElement("a");
|
|
8
|
+
c.href = o, c.download = a.filename, c.click(), URL.revokeObjectURL(o);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const r = await f(t, a), n = a.backgroundColor ? l(r, a.backgroundColor) : r, e = document.createElement("a");
|
|
12
|
+
e.href = n.toDataURL(`image/${a.format}`, a.quality), e.download = a.filename, e.click();
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
k as download
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { createBackground as m } from "../utils/image.js";
|
|
3
|
+
import { toCanvas as s } from "./toCanvas.js";
|
|
4
|
+
async function i(a, o) {
|
|
5
|
+
const e = o.type;
|
|
6
|
+
if (e === "svg") {
|
|
7
|
+
const t = decodeURIComponent(a.split(",")[1]);
|
|
8
|
+
return new Blob([t], { type: "image/svg+xml" });
|
|
9
|
+
}
|
|
10
|
+
const n = await s(a, o), r = o.backgroundColor ? m(n, o.backgroundColor) : n;
|
|
11
|
+
return new Promise(
|
|
12
|
+
(t) => r.toBlob(
|
|
13
|
+
(c) => t(c),
|
|
14
|
+
`image/${e}`,
|
|
15
|
+
o.quality
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
i as toBlob
|
|
21
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { isSafari as b } from "../utils/browser.js";
|
|
3
|
+
function y(e) {
|
|
4
|
+
return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
|
|
5
|
+
}
|
|
6
|
+
function S(e) {
|
|
7
|
+
const s = e.indexOf(",");
|
|
8
|
+
return s >= 0 ? decodeURIComponent(e.slice(s + 1)) : "";
|
|
9
|
+
}
|
|
10
|
+
function M(e) {
|
|
11
|
+
return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`;
|
|
12
|
+
}
|
|
13
|
+
function C(e) {
|
|
14
|
+
let s = [], t = "", n = 0;
|
|
15
|
+
for (let r = 0; r < e.length; r++) {
|
|
16
|
+
const o = e[r];
|
|
17
|
+
o === "(" && n++, o === ")" && (n = Math.max(0, n - 1)), o === ";" && n === 0 ? (s.push(t), t = "") : t += o;
|
|
18
|
+
}
|
|
19
|
+
return t.trim() && s.push(t), s.map((r) => r.trim()).filter(Boolean);
|
|
20
|
+
}
|
|
21
|
+
function v(e) {
|
|
22
|
+
const s = [];
|
|
23
|
+
let t = "", n = 0;
|
|
24
|
+
for (let o = 0; o < e.length; o++) {
|
|
25
|
+
const a = e[o];
|
|
26
|
+
a === "(" && n++, a === ")" && (n = Math.max(0, n - 1)), a === "," && n === 0 ? (s.push(t.trim()), t = "") : t += a;
|
|
27
|
+
}
|
|
28
|
+
t.trim() && s.push(t.trim());
|
|
29
|
+
const r = [];
|
|
30
|
+
for (const o of s) {
|
|
31
|
+
if (/\binset\b/i.test(o)) continue;
|
|
32
|
+
const a = o.match(/-?\d+(?:\.\d+)?px/gi) || [], [i = "0px", l = "0px", f = "0px"] = a;
|
|
33
|
+
let c = o.replace(/-?\d+(?:\.\d+)?px/gi, "").replace(/\binset\b/gi, "").trim().replace(/\s{2,}/g, " ");
|
|
34
|
+
const m = !!c && c !== ",";
|
|
35
|
+
r.push(`drop-shadow(${i} ${l} ${f}${m ? ` ${c}` : ""})`);
|
|
36
|
+
}
|
|
37
|
+
return r.join(" ");
|
|
38
|
+
}
|
|
39
|
+
function $(e) {
|
|
40
|
+
const s = C(e);
|
|
41
|
+
let t = null, n = null, r = null;
|
|
42
|
+
const o = [];
|
|
43
|
+
for (const i of s) {
|
|
44
|
+
const l = i.indexOf(":");
|
|
45
|
+
if (l < 0) continue;
|
|
46
|
+
const f = i.slice(0, l).trim().toLowerCase(), c = i.slice(l + 1).trim();
|
|
47
|
+
f === "box-shadow" ? r = c : f === "filter" ? t = c : f === "-webkit-filter" ? n = c : o.push([f, c]);
|
|
48
|
+
}
|
|
49
|
+
if (r) {
|
|
50
|
+
const i = v(r);
|
|
51
|
+
i && (t = t ? `${t} ${i}` : i, n = n ? `${n} ${i}` : i);
|
|
52
|
+
}
|
|
53
|
+
const a = [...o];
|
|
54
|
+
return t && a.push(["filter", t]), n && a.push(["-webkit-filter", n]), a.map(([i, l]) => `${i}:${l}`).join(";");
|
|
55
|
+
}
|
|
56
|
+
function D(e) {
|
|
57
|
+
return e.replace(
|
|
58
|
+
/([^{}]+)\{([^}]*)\}/g,
|
|
59
|
+
(s, t, n) => `${t}{${$(n)}}`
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function F(e) {
|
|
63
|
+
return e = e.replace(
|
|
64
|
+
/<style[^>]*>([\s\S]*?)<\/style>/gi,
|
|
65
|
+
(s, t) => s.replace(t, D(t))
|
|
66
|
+
), e = e.replace(
|
|
67
|
+
/style=(['"])([\s\S]*?)\1/gi,
|
|
68
|
+
(s, t, n) => `style=${t}${$(n)}${t}`
|
|
69
|
+
), e;
|
|
70
|
+
}
|
|
71
|
+
function H(e) {
|
|
72
|
+
if (!b() || !y(e)) return e;
|
|
73
|
+
try {
|
|
74
|
+
const s = S(e), t = F(s);
|
|
75
|
+
return M(t);
|
|
76
|
+
} catch {
|
|
77
|
+
return e;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
async function k(e, s) {
|
|
81
|
+
let { width: t, height: n, scale: r = 1, dpr: o = 1, meta: a = {} } = s;
|
|
82
|
+
e = H(e);
|
|
83
|
+
const i = new Image();
|
|
84
|
+
i.loading = "eager", i.decoding = "sync", i.crossOrigin = "anonymous", i.src = e, await i.decode();
|
|
85
|
+
const l = i.naturalWidth, f = i.naturalHeight, c = Number.isFinite(a.w0) ? a.w0 : l, m = Number.isFinite(a.h0) ? a.h0 : f;
|
|
86
|
+
let h, u;
|
|
87
|
+
const g = Number.isFinite(t), x = Number.isFinite(n);
|
|
88
|
+
if (g && x)
|
|
89
|
+
h = Math.max(1, t), u = Math.max(1, n);
|
|
90
|
+
else if (g) {
|
|
91
|
+
const p = t / Math.max(1, c);
|
|
92
|
+
h = t, u = Math.round(m * p);
|
|
93
|
+
} else if (x) {
|
|
94
|
+
const p = n / Math.max(1, m);
|
|
95
|
+
u = n, h = Math.round(c * p);
|
|
96
|
+
} else
|
|
97
|
+
h = l, u = f;
|
|
98
|
+
h = Math.round(h * r), u = Math.round(u * r);
|
|
99
|
+
const d = document.createElement("canvas");
|
|
100
|
+
d.width = Math.ceil(h * o), d.height = Math.ceil(u * o), d.style.width = `${h}px`, d.style.height = `${u}px`;
|
|
101
|
+
const w = d.getContext("2d");
|
|
102
|
+
return o !== 1 && w.scale(o, o), w.drawImage(i, 0, 0, h, u), d;
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
k as toCanvas
|
|
106
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { rasterize as p } from "../modules/rasterize.js";
|
|
3
|
+
import { isSafari as f } from "../utils/browser.js";
|
|
4
|
+
async function x(i, g) {
|
|
5
|
+
const { scale: n = 1, width: h, height: o, meta: e = {} } = g, c = Number.isFinite(h), d = Number.isFinite(o), m = Number.isFinite(n) && n !== 1 || c || d;
|
|
6
|
+
if (f() && m)
|
|
7
|
+
return await p(i, {
|
|
8
|
+
...g,
|
|
9
|
+
format: "png",
|
|
10
|
+
quality: 1,
|
|
11
|
+
meta: e
|
|
12
|
+
});
|
|
13
|
+
const t = new Image();
|
|
14
|
+
if (t.decoding = "sync", t.loading = "eager", t.src = i, await t.decode(), c && d)
|
|
15
|
+
t.style.width = `${h}px`, t.style.height = `${o}px`;
|
|
16
|
+
else if (c) {
|
|
17
|
+
const s = Number.isFinite(e.w0) ? e.w0 : t.naturalWidth, a = Number.isFinite(e.h0) ? e.h0 : t.naturalHeight, r = h / Math.max(1, s);
|
|
18
|
+
t.style.width = `${h}px`, t.style.height = `${Math.round(a * r)}px`;
|
|
19
|
+
} else if (d) {
|
|
20
|
+
const s = Number.isFinite(e.w0) ? e.w0 : t.naturalWidth, a = Number.isFinite(e.h0) ? e.h0 : t.naturalHeight, r = o / Math.max(1, a);
|
|
21
|
+
t.style.height = `${o}px`, t.style.width = `${Math.round(s * r)}px`;
|
|
22
|
+
} else {
|
|
23
|
+
const s = Math.round(t.naturalWidth * n), a = Math.round(t.naturalHeight * n);
|
|
24
|
+
if (t.style.width = `${s}px`, t.style.height = `${a}px`, typeof i == "string" && i.startsWith("data:image/svg+xml"))
|
|
25
|
+
try {
|
|
26
|
+
const l = decodeURIComponent(i.split(",")[1]).replace(/width="[^"]*"/, `width="${s}"`).replace(/height="[^"]*"/, `height="${a}"`);
|
|
27
|
+
i = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(l)}`, t.src = i;
|
|
28
|
+
} catch {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
x as toImg,
|
|
35
|
+
x as toSvg
|
|
36
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
function f(n, s) {
|
|
3
|
+
if (!(n instanceof Element) || !(s instanceof Element)) return;
|
|
4
|
+
const y = n.getAttribute?.("style");
|
|
5
|
+
let o = !!(y && y.includes("var("));
|
|
6
|
+
if (!o && n.attributes?.length) {
|
|
7
|
+
const r = n.attributes;
|
|
8
|
+
for (let t = 0; t < r.length; t++) {
|
|
9
|
+
const e = r[t];
|
|
10
|
+
if (e && typeof e.value == "string" && e.value.includes("var(")) {
|
|
11
|
+
o = !0;
|
|
12
|
+
break;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (!o) return;
|
|
17
|
+
let l;
|
|
18
|
+
try {
|
|
19
|
+
l = getComputedStyle(n);
|
|
20
|
+
} catch {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const a = n.style;
|
|
24
|
+
if (a && a.length)
|
|
25
|
+
for (let r = 0; r < a.length; r++) {
|
|
26
|
+
const t = a[r], e = a.getPropertyValue(t);
|
|
27
|
+
if (!e || !e.includes("var(")) continue;
|
|
28
|
+
const i = l.getPropertyValue(t);
|
|
29
|
+
if (i)
|
|
30
|
+
try {
|
|
31
|
+
s.style.setProperty(
|
|
32
|
+
t,
|
|
33
|
+
i.trim(),
|
|
34
|
+
a.getPropertyPriority(t)
|
|
35
|
+
);
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (n.attributes?.length) {
|
|
40
|
+
const r = n.attributes;
|
|
41
|
+
for (let t = 0; t < r.length; t++) {
|
|
42
|
+
const e = r[t];
|
|
43
|
+
if (!e || typeof e.value != "string" || !e.value.includes("var("))
|
|
44
|
+
continue;
|
|
45
|
+
const i = e.name;
|
|
46
|
+
let c = "";
|
|
47
|
+
try {
|
|
48
|
+
c = l.getPropertyValue(i);
|
|
49
|
+
} catch {
|
|
50
|
+
}
|
|
51
|
+
if (c)
|
|
52
|
+
try {
|
|
53
|
+
s.style.setProperty(i, c.trim());
|
|
54
|
+
} catch {
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
f as resolveCSSVars
|
|
61
|
+
};
|
|
@@ -1,50 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/* 2025-10-28 09:57:10 */
|
|
2
|
+
import { getStyle as P, splitBackgroundImage as w } from "../utils/css.js";
|
|
3
|
+
import { inlineSingleBackgroundEntry as h } from "../utils/image.js";
|
|
4
|
+
async function A(k, g, n, p = {}) {
|
|
5
|
+
const a = [[k, g]], u = [
|
|
4
6
|
"background-image",
|
|
7
|
+
// Mask shorthands & images (both standard and WebKit)
|
|
5
8
|
"mask",
|
|
6
9
|
"mask-image",
|
|
10
|
+
"-webkit-mask",
|
|
7
11
|
"-webkit-mask-image",
|
|
12
|
+
// Mask sources (rare, but keep)
|
|
8
13
|
"mask-source",
|
|
9
14
|
"mask-box-image-source",
|
|
10
15
|
"mask-border-source",
|
|
11
16
|
"-webkit-mask-box-image-source",
|
|
17
|
+
// Border image
|
|
12
18
|
"border-image",
|
|
13
|
-
"border-image-source"
|
|
19
|
+
"border-image-source"
|
|
20
|
+
], b = [
|
|
21
|
+
"mask-position",
|
|
22
|
+
"mask-size",
|
|
23
|
+
"mask-repeat",
|
|
24
|
+
// WebKit variants
|
|
25
|
+
"-webkit-mask-position",
|
|
26
|
+
"-webkit-mask-size",
|
|
27
|
+
"-webkit-mask-repeat",
|
|
28
|
+
// Extra (optional but helpful across engines)
|
|
29
|
+
"mask-origin",
|
|
30
|
+
"mask-clip",
|
|
31
|
+
"-webkit-mask-origin",
|
|
32
|
+
"-webkit-mask-clip",
|
|
33
|
+
// Some engines expose X/Y position separately:
|
|
34
|
+
"-webkit-mask-position-x",
|
|
35
|
+
"-webkit-mask-position-y"
|
|
36
|
+
], d = [
|
|
14
37
|
"border-image-slice",
|
|
15
38
|
"border-image-width",
|
|
16
39
|
"border-image-outset",
|
|
17
40
|
"border-image-repeat"
|
|
18
41
|
];
|
|
19
|
-
for (;
|
|
20
|
-
const [
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
const e =
|
|
24
|
-
return e && e !== "none" ||
|
|
42
|
+
for (; a.length; ) {
|
|
43
|
+
const [i, s] = a.shift(), t = n.get(i) || P(i);
|
|
44
|
+
n.has(i) || n.set(i, t);
|
|
45
|
+
const f = (() => {
|
|
46
|
+
const e = t.getPropertyValue("border-image"), o = t.getPropertyValue("border-image-source");
|
|
47
|
+
return e && e !== "none" || o && o !== "none";
|
|
25
48
|
})();
|
|
26
|
-
for (const e of
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"border-image-repeat"
|
|
32
|
-
].includes(e) && !p)
|
|
33
|
-
continue;
|
|
34
|
-
const r = n.getPropertyValue(e);
|
|
35
|
-
if (!r || r === "none") continue;
|
|
36
|
-
const f = y(r), d = await Promise.all(
|
|
37
|
-
f.map((t) => P(t, b))
|
|
49
|
+
for (const e of u) {
|
|
50
|
+
const o = t.getPropertyValue(e);
|
|
51
|
+
if (!o || o === "none") continue;
|
|
52
|
+
const y = w(o), l = await Promise.all(
|
|
53
|
+
y.map((r) => h(r, p))
|
|
38
54
|
);
|
|
39
|
-
|
|
55
|
+
l.some((r) => r && r !== "none" && !/^url\(undefined/.test(r)) && s.style.setProperty(e, l.join(", "));
|
|
40
56
|
}
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
for (const e of b) {
|
|
58
|
+
const o = t.getPropertyValue(e);
|
|
59
|
+
!o || o === "initial" || s.style.setProperty(e, o);
|
|
60
|
+
}
|
|
61
|
+
if (f)
|
|
62
|
+
for (const e of d) {
|
|
63
|
+
const o = t.getPropertyValue(e);
|
|
64
|
+
!o || o === "initial" || s.style.setProperty(e, o);
|
|
65
|
+
}
|
|
66
|
+
const m = Array.from(i.children), c = Array.from(s.children);
|
|
67
|
+
for (let e = 0; e < Math.min(m.length, c.length); e++)
|
|
68
|
+
a.push([m[e], c[e]]);
|
|
46
69
|
}
|
|
47
70
|
}
|
|
48
71
|
export {
|
|
49
|
-
|
|
72
|
+
A as inlineBackgroundImages
|
|
50
73
|
};
|