@unicom-cloud/utils 0.1.47 → 0.1.49
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/.virtual/_rolldown/runtime.js +1 -1
- package/.vite/manifest.json +143 -24
- package/array/index.js +1 -1
- package/assert/index.js +1 -1
- package/case-name/index.js +1 -1
- package/class-name/index.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +1 -1
- package/constant/protocol.js +1 -1
- package/constant/string.js +1 -1
- package/constant/ui.js +1 -1
- package/content-disposition/index.js +1 -1
- package/cookie/api.js +1 -1
- package/cookie/assign.js +1 -1
- package/cookie/converter.js +1 -1
- package/cookie/index.js +1 -1
- package/css/cssSupported.js +1 -1
- package/css/index.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/decimal/decimal.js +1 -1
- package/decimal/index.js +1 -1
- package/dom-align/LICENSE.md +9 -0
- package/dom-align/adjustForViewport.d.ts +2 -0
- package/dom-align/adjustForViewport.js +13 -0
- package/dom-align/align/align.d.ts +15 -0
- package/dom-align/align/align.js +88 -0
- package/dom-align/align/alignElement.d.ts +16 -0
- package/dom-align/align/alignElement.js +18 -0
- package/dom-align/align/alignPoint.d.ts +14 -0
- package/dom-align/align/alignPoint.js +21 -0
- package/dom-align/getAlignOffset.d.ts +8 -0
- package/dom-align/getAlignOffset.js +12 -0
- package/dom-align/getElFuturePos.d.ts +5 -0
- package/dom-align/getElFuturePos.js +13 -0
- package/dom-align/getOffsetParent.d.ts +2 -0
- package/dom-align/getOffsetParent.js +14 -0
- package/dom-align/getRegion.d.ts +5 -0
- package/dom-align/getRegion.js +18 -0
- package/dom-align/getVisibleRectForElement.d.ts +10 -0
- package/dom-align/getVisibleRectForElement.js +34 -0
- package/dom-align/index.d.ts +4 -0
- package/dom-align/index.js +8 -0
- package/dom-align/isAncestorFixed.d.ts +1 -0
- package/dom-align/isAncestorFixed.js +13 -0
- package/dom-align/propertyUtils.d.ts +8 -0
- package/dom-align/propertyUtils.js +57 -0
- package/dom-align/utils.d.ts +28 -0
- package/dom-align/utils.js +220 -0
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getElementCoordinates.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/emitter/index.js +1 -1
- package/emoji/emoji.js +1 -1
- package/emoji/emojis.js +1 -1
- package/emoji/index.js +1 -1
- package/escape/index.js +1 -1
- package/fflate/index.js +1 -1
- package/fflate/src/index.js +6 -6
- package/fflate/src/worker.js +1 -1
- package/file/fileRead.js +1 -1
- package/file/fileToDataURL.js +1 -1
- package/file/img.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/filesize/index.js +1 -1
- package/filesize/src/constants.js +1 -1
- package/filesize/src/filesize.js +1 -1
- package/filesize/src/helpers.js +1 -1
- package/function/index.js +1 -1
- package/idb/async-iterators.js +1 -1
- package/idb/database-extras.js +1 -1
- package/idb/entry.js +1 -1
- package/idb/index-.js +1 -1
- package/idb/index.js +1 -1
- package/idb/util.js +1 -1
- package/idb/wrap-idb-value.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/is/index.d.ts +5 -2
- package/is/index.js +11 -2
- package/is/lib/isAscii.js +1 -1
- package/is/lib/isBase64.js +1 -1
- package/is/lib/isChinese.js +1 -1
- package/is/lib/isDataURI.js +1 -1
- package/is/lib/isEmail.js +1 -1
- package/is/lib/isFQDN.js +1 -1
- package/is/lib/isFullWidth.js +1 -1
- package/is/lib/isHSL.js +1 -1
- package/is/lib/isHalfWidth.js +1 -1
- package/is/lib/isHash.js +1 -1
- package/is/lib/isHexColor.js +1 -1
- package/is/lib/isIMEI.js +1 -1
- package/is/lib/isIP.js +1 -1
- package/is/lib/isIPRange.js +1 -1
- package/is/lib/isIdentityCard.js +1 -1
- package/is/lib/isJWT.js +1 -1
- package/is/lib/isMACAddress.js +1 -1
- package/is/lib/isMD5.js +1 -1
- package/is/lib/isMimeType.js +1 -1
- package/is/lib/isMobilePhone.js +1 -1
- package/is/lib/isPort.js +1 -1
- package/is/lib/isRgbColor.js +1 -1
- package/is/lib/isSemVer.js +1 -1
- package/is/lib/isSlug.js +1 -1
- package/is/lib/isStrongPassword.js +1 -1
- package/is/lib/isURL.js +1 -1
- package/is/lib/isUUID.js +1 -1
- package/is/lib/isVariableWidth.js +1 -1
- package/lodash/_DataView.js +1 -1
- package/lodash/_Hash.js +1 -1
- package/lodash/_LazyWrapper.js +1 -1
- package/lodash/_ListCache.js +1 -1
- package/lodash/_LodashWrapper.js +1 -1
- package/lodash/_Map.js +1 -1
- package/lodash/_MapCache.js +1 -1
- package/lodash/_Promise.js +1 -1
- package/lodash/_Set.js +1 -1
- package/lodash/_SetCache.js +1 -1
- package/lodash/_Stack.js +1 -1
- package/lodash/_Symbol.js +1 -1
- package/lodash/_Uint8Array.js +1 -1
- package/lodash/_WeakMap.js +1 -1
- package/lodash/_addMapEntry.js +1 -1
- package/lodash/_addSetEntry.js +1 -1
- package/lodash/_apply.js +1 -1
- package/lodash/_arrayAggregator.js +1 -1
- package/lodash/_arrayEach.js +1 -1
- package/lodash/_arrayEachRight.js +1 -1
- package/lodash/_arrayEvery.js +1 -1
- package/lodash/_arrayFilter.js +1 -1
- package/lodash/_arrayIncludes.js +1 -1
- package/lodash/_arrayIncludesWith.js +1 -1
- package/lodash/_arrayLikeKeys.js +1 -1
- package/lodash/_arrayMap.js +1 -1
- package/lodash/_arrayPush.js +1 -1
- package/lodash/_arrayReduce.js +1 -1
- package/lodash/_arrayReduceRight.js +1 -1
- package/lodash/_arraySample.js +1 -1
- package/lodash/_arraySampleSize.js +1 -1
- package/lodash/_arrayShuffle.js +1 -1
- package/lodash/_arraySome.js +1 -1
- package/lodash/_asciiSize.js +1 -1
- package/lodash/_asciiToArray.js +1 -1
- package/lodash/_asciiWords.js +1 -1
- package/lodash/_assignMergeValue.js +1 -1
- package/lodash/_assignValue.js +1 -1
- package/lodash/_assocIndexOf.js +1 -1
- package/lodash/_baseAggregator.js +1 -1
- package/lodash/_baseAssign.js +1 -1
- package/lodash/_baseAssignIn.js +1 -1
- package/lodash/_baseAssignValue.js +1 -1
- package/lodash/_baseAt.js +1 -1
- package/lodash/_baseClamp.js +1 -1
- package/lodash/_baseClone.js +1 -1
- package/lodash/_baseConforms.js +1 -1
- package/lodash/_baseConformsTo.js +1 -1
- package/lodash/_baseCreate.js +1 -1
- package/lodash/_baseDelay.js +1 -1
- package/lodash/_baseDifference.js +1 -1
- package/lodash/_baseEach.js +1 -1
- package/lodash/_baseEachRight.js +1 -1
- package/lodash/_baseEvery.js +1 -1
- package/lodash/_baseExtremum.js +1 -1
- package/lodash/_baseFill.js +1 -1
- package/lodash/_baseFilter.js +1 -1
- package/lodash/_baseFindIndex.js +1 -1
- package/lodash/_baseFindKey.js +1 -1
- package/lodash/_baseFlatten.js +1 -1
- package/lodash/_baseFor.js +1 -1
- package/lodash/_baseForOwn.js +1 -1
- package/lodash/_baseForOwnRight.js +1 -1
- package/lodash/_baseForRight.js +1 -1
- package/lodash/_baseFunctions.js +1 -1
- package/lodash/_baseGet.js +1 -1
- package/lodash/_baseGetAllKeys.js +1 -1
- package/lodash/_baseGetTag.js +1 -1
- package/lodash/_baseGt.js +1 -1
- package/lodash/_baseHas.js +1 -1
- package/lodash/_baseHasIn.js +1 -1
- package/lodash/_baseInRange.js +1 -1
- package/lodash/_baseIndexOf.js +1 -1
- package/lodash/_baseIndexOfWith.js +1 -1
- package/lodash/_baseIntersection.js +1 -1
- package/lodash/_baseInverter.js +1 -1
- package/lodash/_baseInvoke.js +1 -1
- package/lodash/_baseIsArguments.js +1 -1
- package/lodash/_baseIsArrayBuffer.js +1 -1
- package/lodash/_baseIsDate.js +1 -1
- package/lodash/_baseIsEqual.js +1 -1
- package/lodash/_baseIsEqualDeep.js +1 -1
- package/lodash/_baseIsMap.js +1 -1
- package/lodash/_baseIsMatch.js +1 -1
- package/lodash/_baseIsNaN.js +1 -1
- package/lodash/_baseIsNative.js +1 -1
- package/lodash/_baseIsRegExp.js +1 -1
- package/lodash/_baseIsSet.js +1 -1
- package/lodash/_baseIsTypedArray.js +1 -1
- package/lodash/_baseIteratee.js +1 -1
- package/lodash/_baseKeys.js +1 -1
- package/lodash/_baseKeysIn.js +1 -1
- package/lodash/_baseLodash.js +1 -1
- package/lodash/_baseLt.js +1 -1
- package/lodash/_baseMap.js +1 -1
- package/lodash/_baseMatches.js +1 -1
- package/lodash/_baseMatchesProperty.js +1 -1
- package/lodash/_baseMean.js +1 -1
- package/lodash/_baseMerge.js +1 -1
- package/lodash/_baseMergeDeep.js +1 -1
- package/lodash/_baseNth.js +1 -1
- package/lodash/_baseOrderBy.js +1 -1
- package/lodash/_basePick.js +1 -1
- package/lodash/_basePickBy.js +1 -1
- package/lodash/_baseProperty.js +1 -1
- package/lodash/_basePropertyDeep.js +1 -1
- package/lodash/_basePropertyOf.js +1 -1
- package/lodash/_basePullAll.js +1 -1
- package/lodash/_basePullAt.js +1 -1
- package/lodash/_baseRandom.js +1 -1
- package/lodash/_baseRange.js +1 -1
- package/lodash/_baseReduce.js +1 -1
- package/lodash/_baseRepeat.js +1 -1
- package/lodash/_baseRest.js +1 -1
- package/lodash/_baseSample.js +1 -1
- package/lodash/_baseSampleSize.js +1 -1
- package/lodash/_baseSet.js +1 -1
- package/lodash/_baseSetData.js +1 -1
- package/lodash/_baseSetToString.js +1 -1
- package/lodash/_baseShuffle.js +1 -1
- package/lodash/_baseSlice.js +1 -1
- package/lodash/_baseSome.js +1 -1
- package/lodash/_baseSortBy.js +1 -1
- package/lodash/_baseSortedIndex.js +1 -1
- package/lodash/_baseSortedIndexBy.js +1 -1
- package/lodash/_baseSortedUniq.js +1 -1
- package/lodash/_baseSum.js +1 -1
- package/lodash/_baseTimes.js +1 -1
- package/lodash/_baseToNumber.js +1 -1
- package/lodash/_baseToPairs.js +1 -1
- package/lodash/_baseToString.js +1 -1
- package/lodash/_baseTrim.js +1 -1
- package/lodash/_baseUnary.js +1 -1
- package/lodash/_baseUniq.js +1 -1
- package/lodash/_baseUnset.js +1 -1
- package/lodash/_baseUpdate.js +1 -1
- package/lodash/_baseValues.js +1 -1
- package/lodash/_baseWhile.js +1 -1
- package/lodash/_baseWrapperValue.js +1 -1
- package/lodash/_baseXor.js +1 -1
- package/lodash/_baseZipObject.js +1 -1
- package/lodash/_cacheHas.js +1 -1
- package/lodash/_castArrayLikeObject.js +1 -1
- package/lodash/_castFunction.js +1 -1
- package/lodash/_castPath.js +1 -1
- package/lodash/_castRest.js +1 -1
- package/lodash/_castSlice.js +1 -1
- package/lodash/_charsEndIndex.js +1 -1
- package/lodash/_charsStartIndex.js +1 -1
- package/lodash/_cloneArrayBuffer.js +1 -1
- package/lodash/_cloneBuffer.js +1 -1
- package/lodash/_cloneDataView.js +1 -1
- package/lodash/_cloneMap.js +1 -1
- package/lodash/_cloneRegExp.js +1 -1
- package/lodash/_cloneSet.js +1 -1
- package/lodash/_cloneSymbol.js +1 -1
- package/lodash/_cloneTypedArray.js +1 -1
- package/lodash/_compareAscending.js +1 -1
- package/lodash/_compareMultiple.js +1 -1
- package/lodash/_composeArgs.js +1 -1
- package/lodash/_composeArgsRight.js +1 -1
- package/lodash/_copyArray.js +1 -1
- package/lodash/_copyObject.js +1 -1
- package/lodash/_copySymbols.js +1 -1
- package/lodash/_copySymbolsIn.js +1 -1
- package/lodash/_coreJsData.js +1 -1
- package/lodash/_countHolders.js +1 -1
- package/lodash/_createAggregator.js +1 -1
- package/lodash/_createAssigner.js +1 -1
- package/lodash/_createBaseEach.js +1 -1
- package/lodash/_createBaseFor.js +1 -1
- package/lodash/_createBind.js +1 -1
- package/lodash/_createCaseFirst.js +1 -1
- package/lodash/_createCompounder.js +1 -1
- package/lodash/_createCtor.js +1 -1
- package/lodash/_createCurry.js +1 -1
- package/lodash/_createFind.js +1 -1
- package/lodash/_createFlow.js +1 -1
- package/lodash/_createHybrid.js +1 -1
- package/lodash/_createInverter.js +1 -1
- package/lodash/_createMathOperation.js +1 -1
- package/lodash/_createOver.js +1 -1
- package/lodash/_createPadding.js +1 -1
- package/lodash/_createPartial.js +1 -1
- package/lodash/_createRange.js +1 -1
- package/lodash/_createRecurry.js +1 -1
- package/lodash/_createRelationalOperation.js +1 -1
- package/lodash/_createRound.js +1 -1
- package/lodash/_createSet.js +1 -1
- package/lodash/_createToPairs.js +1 -1
- package/lodash/_createWrap.js +1 -1
- package/lodash/_customDefaultsAssignIn.js +1 -1
- package/lodash/_customDefaultsMerge.js +1 -1
- package/lodash/_customOmitClone.js +1 -1
- package/lodash/_deburrLetter.js +1 -1
- package/lodash/_defineProperty.js +1 -1
- package/lodash/_equalArrays.js +1 -1
- package/lodash/_equalByTag.js +1 -1
- package/lodash/_equalObjects.js +1 -1
- package/lodash/_escapeHtmlChar.js +1 -1
- package/lodash/_escapeStringChar.js +1 -1
- package/lodash/_flatRest.js +1 -1
- package/lodash/_freeGlobal.js +1 -1
- package/lodash/_getAllKeys.js +1 -1
- package/lodash/_getAllKeysIn.js +1 -1
- package/lodash/_getData.js +1 -1
- package/lodash/_getFuncName.js +1 -1
- package/lodash/_getHolder.js +1 -1
- package/lodash/_getMapData.js +1 -1
- package/lodash/_getMatchData.js +1 -1
- package/lodash/_getNative.js +1 -1
- package/lodash/_getPrototype.js +1 -1
- package/lodash/_getRawTag.js +1 -1
- package/lodash/_getSymbols.js +1 -1
- package/lodash/_getSymbolsIn.js +1 -1
- package/lodash/_getTag.js +1 -1
- package/lodash/_getValue.js +1 -1
- package/lodash/_getView.js +1 -1
- package/lodash/_getWrapDetails.js +1 -1
- package/lodash/_hasPath.js +1 -1
- package/lodash/_hasUnicode.js +1 -1
- package/lodash/_hasUnicodeWord.js +1 -1
- package/lodash/_hashClear.js +1 -1
- package/lodash/_hashDelete.js +1 -1
- package/lodash/_hashGet.js +1 -1
- package/lodash/_hashHas.js +1 -1
- package/lodash/_hashSet.js +1 -1
- package/lodash/_initCloneArray.js +1 -1
- package/lodash/_initCloneByTag.js +1 -1
- package/lodash/_initCloneObject.js +1 -1
- package/lodash/_insertWrapDetails.js +1 -1
- package/lodash/_isFlattenable.js +1 -1
- package/lodash/_isIndex.js +1 -1
- package/lodash/_isIterateeCall.js +1 -1
- package/lodash/_isKey.js +1 -1
- package/lodash/_isKeyable.js +1 -1
- package/lodash/_isLaziable.js +1 -1
- package/lodash/_isMaskable.js +1 -1
- package/lodash/_isMasked.js +1 -1
- package/lodash/_isPrototype.js +1 -1
- package/lodash/_isStrictComparable.js +1 -1
- package/lodash/_iteratorToArray.js +1 -1
- package/lodash/_lazyClone.js +1 -1
- package/lodash/_lazyReverse.js +1 -1
- package/lodash/_lazyValue.js +1 -1
- package/lodash/_listCacheClear.js +1 -1
- package/lodash/_listCacheDelete.js +1 -1
- package/lodash/_listCacheGet.js +1 -1
- package/lodash/_listCacheHas.js +1 -1
- package/lodash/_listCacheSet.js +1 -1
- package/lodash/_mapCacheClear.js +1 -1
- package/lodash/_mapCacheDelete.js +1 -1
- package/lodash/_mapCacheGet.js +1 -1
- package/lodash/_mapCacheHas.js +1 -1
- package/lodash/_mapCacheSet.js +1 -1
- package/lodash/_mapToArray.js +1 -1
- package/lodash/_matchesStrictComparable.js +1 -1
- package/lodash/_memoizeCapped.js +1 -1
- package/lodash/_mergeData.js +1 -1
- package/lodash/_metaMap.js +1 -1
- package/lodash/_nativeCreate.js +1 -1
- package/lodash/_nativeKeys.js +1 -1
- package/lodash/_nativeKeysIn.js +1 -1
- package/lodash/_nodeUtil.js +1 -1
- package/lodash/_objectToString.js +1 -1
- package/lodash/_overArg.js +1 -1
- package/lodash/_overRest.js +1 -1
- package/lodash/_parent.js +1 -1
- package/lodash/_reEscape.js +1 -1
- package/lodash/_reEvaluate.js +1 -1
- package/lodash/_reInterpolate.js +1 -1
- package/lodash/_realNames.js +1 -1
- package/lodash/_reorder.js +1 -1
- package/lodash/_replaceHolders.js +1 -1
- package/lodash/_root.js +1 -1
- package/lodash/_safeGet.js +1 -1
- package/lodash/_setCacheAdd.js +1 -1
- package/lodash/_setCacheHas.js +1 -1
- package/lodash/_setData.js +1 -1
- package/lodash/_setToArray.js +1 -1
- package/lodash/_setToPairs.js +1 -1
- package/lodash/_setToString.js +1 -1
- package/lodash/_setWrapToString.js +1 -1
- package/lodash/_shortOut.js +1 -1
- package/lodash/_shuffleSelf.js +1 -1
- package/lodash/_stackClear.js +1 -1
- package/lodash/_stackDelete.js +1 -1
- package/lodash/_stackGet.js +1 -1
- package/lodash/_stackHas.js +1 -1
- package/lodash/_stackSet.js +1 -1
- package/lodash/_strictIndexOf.js +1 -1
- package/lodash/_strictLastIndexOf.js +1 -1
- package/lodash/_stringSize.js +1 -1
- package/lodash/_stringToArray.js +1 -1
- package/lodash/_stringToPath.js +1 -1
- package/lodash/_toKey.js +1 -1
- package/lodash/_toSource.js +1 -1
- package/lodash/_trimmedEndIndex.js +1 -1
- package/lodash/_unescapeHtmlChar.js +1 -1
- package/lodash/_unicodeSize.js +1 -1
- package/lodash/_unicodeToArray.js +1 -1
- package/lodash/_unicodeWords.js +1 -1
- package/lodash/_updateWrapDetails.js +1 -1
- package/lodash/_wrapperClone.js +1 -1
- package/lodash/add.js +1 -1
- package/lodash/after.js +1 -1
- package/lodash/array.default.js +1 -1
- package/lodash/array.js +1 -1
- package/lodash/ary.js +1 -1
- package/lodash/assign.js +1 -1
- package/lodash/assignIn.js +1 -1
- package/lodash/assignInWith.js +1 -1
- package/lodash/assignWith.js +1 -1
- package/lodash/at.js +1 -1
- package/lodash/attempt.js +1 -1
- package/lodash/before.js +1 -1
- package/lodash/bind.js +1 -1
- package/lodash/bindAll.js +1 -1
- package/lodash/bindKey.js +1 -1
- package/lodash/camelCase.js +1 -1
- package/lodash/capitalize.js +1 -1
- package/lodash/castArray.js +1 -1
- package/lodash/ceil.js +1 -1
- package/lodash/chain.js +1 -1
- package/lodash/chunk.js +1 -1
- package/lodash/clamp.js +1 -1
- package/lodash/clone.js +1 -1
- package/lodash/cloneDeep.js +1 -1
- package/lodash/cloneDeepWith.js +1 -1
- package/lodash/cloneWith.js +1 -1
- package/lodash/collection.default.js +1 -1
- package/lodash/collection.js +1 -1
- package/lodash/commit.js +1 -1
- package/lodash/compact.js +1 -1
- package/lodash/concat.js +1 -1
- package/lodash/cond.js +1 -1
- package/lodash/conforms.js +1 -1
- package/lodash/conformsTo.js +1 -1
- package/lodash/constant.js +1 -1
- package/lodash/countBy.js +1 -1
- package/lodash/create.js +1 -1
- package/lodash/curry.js +1 -1
- package/lodash/curryRight.js +1 -1
- package/lodash/date.default.js +1 -1
- package/lodash/date.js +1 -1
- package/lodash/debounce.js +1 -1
- package/lodash/deburr.js +1 -1
- package/lodash/defaultTo.js +1 -1
- package/lodash/defaults.js +1 -1
- package/lodash/defaultsDeep.js +1 -1
- package/lodash/defer.js +1 -1
- package/lodash/delay.js +1 -1
- package/lodash/difference.js +1 -1
- package/lodash/differenceBy.js +1 -1
- package/lodash/differenceWith.js +1 -1
- package/lodash/divide.js +1 -1
- package/lodash/drop.js +1 -1
- package/lodash/dropRight.js +1 -1
- package/lodash/dropRightWhile.js +1 -1
- package/lodash/dropWhile.js +1 -1
- package/lodash/each.js +1 -1
- package/lodash/eachRight.js +1 -1
- package/lodash/endsWith.js +1 -1
- package/lodash/entries.js +1 -1
- package/lodash/entriesIn.js +1 -1
- package/lodash/eq.js +1 -1
- package/lodash/escape.js +1 -1
- package/lodash/escapeRegExp.js +1 -1
- package/lodash/every.js +1 -1
- package/lodash/extend.js +1 -1
- package/lodash/extendWith.js +1 -1
- package/lodash/fill.js +1 -1
- package/lodash/filter.js +1 -1
- package/lodash/find.js +1 -1
- package/lodash/findIndex.js +1 -1
- package/lodash/findKey.js +1 -1
- package/lodash/findLast.js +1 -1
- package/lodash/findLastIndex.js +1 -1
- package/lodash/findLastKey.js +1 -1
- package/lodash/first.js +1 -1
- package/lodash/flatMap.js +1 -1
- package/lodash/flatMapDeep.js +1 -1
- package/lodash/flatMapDepth.js +1 -1
- package/lodash/flatten.js +1 -1
- package/lodash/flattenDeep.js +1 -1
- package/lodash/flattenDepth.js +1 -1
- package/lodash/flip.js +1 -1
- package/lodash/floor.js +1 -1
- package/lodash/flow.js +1 -1
- package/lodash/flowRight.js +1 -1
- package/lodash/forEach.js +1 -1
- package/lodash/forEachRight.js +1 -1
- package/lodash/forIn.js +1 -1
- package/lodash/forInRight.js +1 -1
- package/lodash/forOwn.js +1 -1
- package/lodash/forOwnRight.js +1 -1
- package/lodash/fromPairs.js +1 -1
- package/lodash/function.default.js +1 -1
- package/lodash/function.js +1 -1
- package/lodash/functions.js +1 -1
- package/lodash/functionsIn.js +1 -1
- package/lodash/get.js +1 -1
- package/lodash/groupBy.js +1 -1
- package/lodash/gt.js +1 -1
- package/lodash/gte.js +1 -1
- package/lodash/has.js +1 -1
- package/lodash/hasIn.js +1 -1
- package/lodash/head.js +1 -1
- package/lodash/identity.js +1 -1
- package/lodash/inRange.js +1 -1
- package/lodash/includes.js +1 -1
- package/lodash/index.js +1 -1
- package/lodash/indexOf.js +1 -1
- package/lodash/initial.js +1 -1
- package/lodash/intersection.js +1 -1
- package/lodash/intersectionBy.js +1 -1
- package/lodash/intersectionWith.js +1 -1
- package/lodash/invert.js +1 -1
- package/lodash/invertBy.js +1 -1
- package/lodash/invoke.js +1 -1
- package/lodash/invokeMap.js +1 -1
- package/lodash/isArguments.js +1 -1
- package/lodash/isArray.js +1 -1
- package/lodash/isArrayBuffer.js +1 -1
- package/lodash/isArrayLike.js +1 -1
- package/lodash/isArrayLikeObject.js +1 -1
- package/lodash/isBoolean.js +1 -1
- package/lodash/isBuffer.js +1 -1
- package/lodash/isDate.js +1 -1
- package/lodash/isElement.js +1 -1
- package/lodash/isEmpty.js +1 -1
- package/lodash/isEqual.js +1 -1
- package/lodash/isEqualWith.js +1 -1
- package/lodash/isError.js +1 -1
- package/lodash/isFinite.js +1 -1
- package/lodash/isFunction.js +1 -1
- package/lodash/isInteger.js +1 -1
- package/lodash/isLength.js +1 -1
- package/lodash/isMap.js +1 -1
- package/lodash/isMatch.js +1 -1
- package/lodash/isMatchWith.js +1 -1
- package/lodash/isNaN.js +1 -1
- package/lodash/isNative.js +1 -1
- package/lodash/isNil.js +1 -1
- package/lodash/isNull.js +1 -1
- package/lodash/isNumber.js +1 -1
- package/lodash/isObject.js +1 -1
- package/lodash/isObjectLike.js +1 -1
- package/lodash/isPlainObject.js +1 -1
- package/lodash/isPromise.js +1 -1
- package/lodash/isRegExp.js +1 -1
- package/lodash/isSafeInteger.js +1 -1
- package/lodash/isSet.js +1 -1
- package/lodash/isString.js +1 -1
- package/lodash/isSymbol.js +1 -1
- package/lodash/isTypedArray.js +1 -1
- package/lodash/isUndefined.js +1 -1
- package/lodash/isWeakMap.js +1 -1
- package/lodash/isWeakSet.js +1 -1
- package/lodash/iteratee.js +1 -1
- package/lodash/join.js +1 -1
- package/lodash/kebabCase.js +1 -1
- package/lodash/keyBy.js +1 -1
- package/lodash/keys.js +1 -1
- package/lodash/keysIn.js +1 -1
- package/lodash/lang.default.js +1 -1
- package/lodash/lang.js +1 -1
- package/lodash/last.js +1 -1
- package/lodash/lastIndexOf.js +1 -1
- package/lodash/lodash.default.js +1 -1
- package/lodash/lodash.js +1 -1
- package/lodash/lowerCase.js +1 -1
- package/lodash/lowerFirst.js +1 -1
- package/lodash/lt.js +1 -1
- package/lodash/lte.js +1 -1
- package/lodash/map.js +1 -1
- package/lodash/mapKeys.js +1 -1
- package/lodash/mapValues.js +1 -1
- package/lodash/matches.js +1 -1
- package/lodash/matchesProperty.js +1 -1
- package/lodash/math.default.js +1 -1
- package/lodash/math.js +1 -1
- package/lodash/max.js +1 -1
- package/lodash/maxBy.js +1 -1
- package/lodash/mean.js +1 -1
- package/lodash/meanBy.js +1 -1
- package/lodash/memoize.js +1 -1
- package/lodash/merge.js +1 -1
- package/lodash/mergeWith.js +1 -1
- package/lodash/method.js +1 -1
- package/lodash/methodOf.js +1 -1
- package/lodash/min.js +1 -1
- package/lodash/minBy.js +1 -1
- package/lodash/mixin.js +1 -1
- package/lodash/multiply.js +1 -1
- package/lodash/negate.js +1 -1
- package/lodash/next.js +1 -1
- package/lodash/noop.js +1 -1
- package/lodash/now.js +1 -1
- package/lodash/nth.js +1 -1
- package/lodash/nthArg.js +1 -1
- package/lodash/number.default.js +1 -1
- package/lodash/number.js +1 -1
- package/lodash/object.default.js +1 -1
- package/lodash/object.js +1 -1
- package/lodash/omit.js +1 -1
- package/lodash/omitBy.js +1 -1
- package/lodash/once.js +1 -1
- package/lodash/orderBy.js +1 -1
- package/lodash/over.js +1 -1
- package/lodash/overArgs.js +1 -1
- package/lodash/overEvery.js +1 -1
- package/lodash/overSome.js +1 -1
- package/lodash/pad.js +1 -1
- package/lodash/padEnd.js +1 -1
- package/lodash/padStart.js +1 -1
- package/lodash/parseInt.js +1 -1
- package/lodash/partial.js +1 -1
- package/lodash/partialRight.js +1 -1
- package/lodash/partition.js +1 -1
- package/lodash/pick.js +1 -1
- package/lodash/pickBy.js +1 -1
- package/lodash/plant.js +1 -1
- package/lodash/property.js +1 -1
- package/lodash/propertyOf.js +1 -1
- package/lodash/pull.js +1 -1
- package/lodash/pullAll.js +1 -1
- package/lodash/pullAllBy.js +1 -1
- package/lodash/pullAllWith.js +1 -1
- package/lodash/pullAt.js +1 -1
- package/lodash/random.js +1 -1
- package/lodash/range.js +1 -1
- package/lodash/rangeRight.js +1 -1
- package/lodash/rearg.js +1 -1
- package/lodash/reduce.js +1 -1
- package/lodash/reduceRight.js +1 -1
- package/lodash/reject.js +1 -1
- package/lodash/remove.js +1 -1
- package/lodash/repeat.js +1 -1
- package/lodash/replace.js +1 -1
- package/lodash/rest.js +1 -1
- package/lodash/result.js +1 -1
- package/lodash/reverse.js +1 -1
- package/lodash/round.js +1 -1
- package/lodash/sample.js +1 -1
- package/lodash/sampleSize.js +1 -1
- package/lodash/seq.default.js +1 -1
- package/lodash/seq.js +1 -1
- package/lodash/set.js +1 -1
- package/lodash/setWith.js +1 -1
- package/lodash/shuffle.js +1 -1
- package/lodash/size.js +1 -1
- package/lodash/slice.js +1 -1
- package/lodash/snakeCase.js +1 -1
- package/lodash/some.js +1 -1
- package/lodash/sortBy.js +1 -1
- package/lodash/sortedIndex.js +1 -1
- package/lodash/sortedIndexBy.js +1 -1
- package/lodash/sortedIndexOf.js +1 -1
- package/lodash/sortedLastIndex.js +1 -1
- package/lodash/sortedLastIndexBy.js +1 -1
- package/lodash/sortedLastIndexOf.js +1 -1
- package/lodash/sortedUniq.js +1 -1
- package/lodash/sortedUniqBy.js +1 -1
- package/lodash/split.js +1 -1
- package/lodash/spread.js +1 -1
- package/lodash/startCase.js +1 -1
- package/lodash/startsWith.js +1 -1
- package/lodash/string.default.js +1 -1
- package/lodash/string.js +1 -1
- package/lodash/stubArray.js +1 -1
- package/lodash/stubFalse.js +1 -1
- package/lodash/stubObject.js +1 -1
- package/lodash/stubString.js +1 -1
- package/lodash/stubTrue.js +1 -1
- package/lodash/subtract.js +1 -1
- package/lodash/sum.js +1 -1
- package/lodash/sumBy.js +1 -1
- package/lodash/tail.js +1 -1
- package/lodash/take.js +1 -1
- package/lodash/takeRight.js +1 -1
- package/lodash/takeRightWhile.js +1 -1
- package/lodash/takeWhile.js +1 -1
- package/lodash/tap.js +1 -1
- package/lodash/template.js +1 -1
- package/lodash/templateSettings.js +1 -1
- package/lodash/throttle.js +1 -1
- package/lodash/thru.js +1 -1
- package/lodash/times.js +1 -1
- package/lodash/toArray.js +1 -1
- package/lodash/toFinite.js +1 -1
- package/lodash/toInteger.js +1 -1
- package/lodash/toIterator.js +1 -1
- package/lodash/toJSON.js +1 -1
- package/lodash/toLength.js +1 -1
- package/lodash/toLower.js +1 -1
- package/lodash/toNumber.js +1 -1
- package/lodash/toPairs.js +1 -1
- package/lodash/toPairsIn.js +1 -1
- package/lodash/toPath.js +1 -1
- package/lodash/toPlainObject.js +1 -1
- package/lodash/toSafeInteger.js +1 -1
- package/lodash/toString.js +1 -1
- package/lodash/toUpper.js +1 -1
- package/lodash/transform.js +1 -1
- package/lodash/trim.js +1 -1
- package/lodash/trimEnd.js +1 -1
- package/lodash/trimStart.js +1 -1
- package/lodash/truncate.js +1 -1
- package/lodash/unary.js +1 -1
- package/lodash/unescape.js +1 -1
- package/lodash/union.js +1 -1
- package/lodash/unionBy.js +1 -1
- package/lodash/unionWith.js +1 -1
- package/lodash/uniq.js +1 -1
- package/lodash/uniqBy.js +1 -1
- package/lodash/uniqWith.js +1 -1
- package/lodash/uniqueId.js +1 -1
- package/lodash/unset.js +1 -1
- package/lodash/unzip.js +1 -1
- package/lodash/unzipWith.js +1 -1
- package/lodash/update.js +1 -1
- package/lodash/updateWith.js +1 -1
- package/lodash/upperCase.js +1 -1
- package/lodash/upperFirst.js +1 -1
- package/lodash/util.default.js +1 -1
- package/lodash/util.js +1 -1
- package/lodash/value.js +1 -1
- package/lodash/valueOf.js +1 -1
- package/lodash/values.js +1 -1
- package/lodash/valuesIn.js +1 -1
- package/lodash/without.js +1 -1
- package/lodash/words.js +1 -1
- package/lodash/wrap.js +1 -1
- package/lodash/wrapperAt.js +1 -1
- package/lodash/wrapperChain.js +1 -1
- package/lodash/wrapperLodash.js +1 -1
- package/lodash/wrapperReverse.js +1 -1
- package/lodash/wrapperValue.js +1 -1
- package/lodash/xor.js +1 -1
- package/lodash/xorBy.js +1 -1
- package/lodash/xorWith.js +1 -1
- package/lodash/zip.js +1 -1
- package/lodash/zipObject.js +1 -1
- package/lodash/zipObjectDeep.js +1 -1
- package/lodash/zipWith.js +1 -1
- package/math/index.js +1 -1
- package/md5/index.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mousetrap/Mousetrap.d.ts +115 -0
- package/mousetrap/Mousetrap.js +261 -0
- package/mousetrap/index.d.ts +3 -0
- package/mousetrap/index.js +7 -0
- package/mousetrap/plugins/bind-dictionary/index.d.ts +1 -0
- package/mousetrap/plugins/global-bind/index.d.ts +1 -0
- package/mousetrap/plugins/pause/index.d.ts +1 -0
- package/mousetrap/plugins/record/index.d.ts +1 -0
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/object/index.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/lib/common/constant.js +1 -1
- package/pinyin/lib/common/segmentit/AC.js +1 -1
- package/pinyin/lib/common/segmentit/TrieNode.js +1 -1
- package/pinyin/lib/common/segmentit/index.js +1 -1
- package/pinyin/lib/common/segmentit/max-probability.js +1 -1
- package/pinyin/lib/common/segmentit/min-tokenization.js +1 -1
- package/pinyin/lib/common/segmentit/reverse-max-match.js +1 -1
- package/pinyin/lib/common/utils.js +1 -1
- package/pinyin/lib/core/convert/index.js +1 -1
- package/pinyin/lib/core/custom/index.js +1 -1
- package/pinyin/lib/core/dict/index.js +1 -1
- package/pinyin/lib/core/html/index.js +1 -1
- package/pinyin/lib/core/match/index.js +1 -1
- package/pinyin/lib/core/pinyin/handle.js +1 -1
- package/pinyin/lib/core/pinyin/index.js +1 -1
- package/pinyin/lib/core/pinyin/middlewares.js +1 -1
- package/pinyin/lib/core/polyphonic/index.js +1 -1
- package/pinyin/lib/core/segment/index.js +1 -1
- package/pinyin/lib/core/segment/middlewares.js +1 -1
- package/pinyin/lib/core/traditional/index.js +1 -1
- package/pinyin/lib/data/dict1.js +1 -1
- package/pinyin/lib/data/dict2.js +1 -1
- package/pinyin/lib/data/dict3.js +1 -1
- package/pinyin/lib/data/dict4.js +1 -1
- package/pinyin/lib/data/dict5.js +1 -1
- package/pinyin/lib/data/special.js +1 -1
- package/pinyin/lib/data/surname.js +1 -1
- package/pinyin/lib/index.js +1 -1
- package/query-string/index.d.ts +55 -2
- package/query-string/index.js +264 -4
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/sanitize-url/index.js +1 -1
- package/screenfull/index.js +1 -1
- package/sleep/index.js +1 -1
- package/snapdom/index.browser.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.d.ts +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +6 -2
- package/snapdom/src/core/cache.js +2 -2
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +119 -116
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.d.ts +0 -5
- package/snapdom/src/core/plugins.js +2 -2
- package/snapdom/src/core/prepare.js +7 -7
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/index.browser.js +1 -1
- package/snapdom/src/index.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +5 -5
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.d.ts +2 -34
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +34 -29
- package/snapdom/src/modules/iconFonts.js +49 -48
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pictureResolver.js +1 -1
- package/snapdom/src/modules/pseudo.d.ts +1 -1
- package/snapdom/src/modules/pseudo.js +59 -41
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +75 -73
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/capture.helpers.js +1 -1
- package/snapdom/src/utils/clone.helpers.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/debug.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +6 -6
- package/snapdom/src/utils/index.js +1 -1
- package/snapdom/src/utils/prepare.helpers.js +1 -1
- package/snapdom/src/utils/transforms.helpers.js +68 -45
- package/string/chars.js +1 -1
- package/string/index.js +1 -1
- package/tinycolor/conversion.js +1 -1
- package/tinycolor/css-color-names.js +4 -3
- package/tinycolor/format-input.js +1 -1
- package/tinycolor/from-ratio.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/interfaces.js +1 -1
- package/tinycolor/public_api.js +1 -1
- package/tinycolor/random.js +1 -1
- package/tinycolor/readability.js +1 -1
- package/tinycolor/to-ms-filter.js +1 -1
- package/tinycolor/umd_api.js +1 -1
- package/tinycolor/utils.js +1 -1
- package/tree/index.js +1 -1
- package/tree/searchTree.js +1 -1
- package/tween/easing.js +1 -1
- package/tween/index.js +1 -1
- package/tween/tween.js +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/validate/index.js +1 -1
- package/validate/interface.js +1 -1
- package/validate/locale/en-US.js +1 -1
- package/validate/locale/index.js +1 -1
- package/validate/locale/zh-CN.js +1 -1
- package/validate/rules/array.js +1 -1
- package/validate/rules/base.js +1 -1
- package/validate/rules/boolean.js +1 -1
- package/validate/rules/custom.js +1 -1
- package/validate/rules/number.js +1 -1
- package/validate/rules/object.js +1 -1
- package/validate/rules/string.js +1 -1
- package/validate/rules/type.js +1 -1
- package/version/index.js +1 -1
- package/xlsx/crc32.js +1 -1
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +1 -1
- package/pinyin-match/core.d.ts +0 -3
- package/pinyin-match/index.d.ts +0 -1
- package/pinyin-match/simplified.d.ts +0 -4
- package/pinyin-match/simplified_dict.d.ts +0 -408
- package/pinyin-match/traditional.d.ts +0 -4
- package/pinyin-match/traditional_dict.d.ts +0 -401
- package/query-string/LICENSE +0 -20
- package/query-string/base.d.ts +0 -11
- package/query-string/base.js +0 -255
- package/query-string/splitOnFirst.d.ts +0 -1
- package/query-string/splitOnFirst.js +0 -12
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
|
-
import {
|
|
3
|
+
import { getStyle as t, getStyleKey as n, shouldIgnoreProp as r } from "../utils/css.js";
|
|
4
4
|
import "../utils/index.js";
|
|
5
5
|
//#region utils/snapdom/src/modules/styles.js
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
|
|
6
|
+
var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new Map(), o = 2e3, s = 0;
|
|
7
|
+
function c() {
|
|
8
|
+
s++, a.size > o && a.clear();
|
|
9
9
|
}
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
if (!
|
|
13
|
-
|
|
10
|
+
var l = !1;
|
|
11
|
+
function u(e = document.documentElement) {
|
|
12
|
+
if (!l) {
|
|
13
|
+
l = !0;
|
|
14
14
|
try {
|
|
15
|
-
new MutationObserver(() =>
|
|
15
|
+
new MutationObserver(() => c()).observe(e, {
|
|
16
16
|
subtree: !0,
|
|
17
17
|
childList: !0,
|
|
18
18
|
characterData: !0,
|
|
@@ -20,7 +20,7 @@ function l(e = document.documentElement) {
|
|
|
20
20
|
});
|
|
21
21
|
} catch {}
|
|
22
22
|
try {
|
|
23
|
-
new MutationObserver(() =>
|
|
23
|
+
new MutationObserver(() => c()).observe(document.head, {
|
|
24
24
|
subtree: !0,
|
|
25
25
|
childList: !0,
|
|
26
26
|
characterData: !0,
|
|
@@ -29,17 +29,17 @@ function l(e = document.documentElement) {
|
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
let e = document.fonts;
|
|
32
|
-
e && (e.addEventListener?.("loadingdone",
|
|
32
|
+
e && (e.addEventListener?.("loadingdone", c), e.ready?.then(() => c()).catch(() => {}));
|
|
33
33
|
} catch {}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let
|
|
36
|
+
function d(e, t = {}) {
|
|
37
|
+
let n = {}, i = e.getPropertyValue("visibility"), a = t.excludeStyleProps;
|
|
38
38
|
for (let t = 0; t < e.length; t++) {
|
|
39
39
|
let i = e[t];
|
|
40
|
-
if (
|
|
40
|
+
if (r(i) || a && (a instanceof RegExp && a.test(i) || typeof a == "function" && a(i))) continue;
|
|
41
41
|
let o = e.getPropertyValue(i);
|
|
42
|
-
(i === "background-image" || i === "content") && o.includes("url(") && !o.includes("data:") && (o = "none"),
|
|
42
|
+
(i === "background-image" || i === "content") && o.includes("url(") && !o.includes("data:") && (o = "none"), n[i] = o;
|
|
43
43
|
}
|
|
44
44
|
for (let t of [
|
|
45
45
|
"text-decoration-line",
|
|
@@ -48,18 +48,18 @@ function u(e, t = {}) {
|
|
|
48
48
|
"text-decoration-thickness",
|
|
49
49
|
"text-underline-offset",
|
|
50
50
|
"text-decoration-skip-ink"
|
|
51
|
-
]) if (!
|
|
52
|
-
let
|
|
53
|
-
|
|
51
|
+
]) if (!n[t]) try {
|
|
52
|
+
let r = e.getPropertyValue(t);
|
|
53
|
+
r && (n[t] = r);
|
|
54
54
|
} catch {}
|
|
55
55
|
for (let t of [
|
|
56
56
|
"-webkit-text-stroke",
|
|
57
57
|
"-webkit-text-stroke-width",
|
|
58
58
|
"-webkit-text-stroke-color",
|
|
59
59
|
"paint-order"
|
|
60
|
-
]) if (!
|
|
61
|
-
let
|
|
62
|
-
|
|
60
|
+
]) if (!n[t]) try {
|
|
61
|
+
let r = e.getPropertyValue(t);
|
|
62
|
+
r && (n[t] = r);
|
|
63
63
|
} catch {}
|
|
64
64
|
if (t.embedFonts) {
|
|
65
65
|
for (let t of [
|
|
@@ -69,42 +69,44 @@ function u(e, t = {}) {
|
|
|
69
69
|
"font-variant",
|
|
70
70
|
"font-variant-ligatures",
|
|
71
71
|
"font-optical-sizing"
|
|
72
|
-
]) if (!
|
|
73
|
-
let
|
|
74
|
-
|
|
72
|
+
]) if (!n[t]) try {
|
|
73
|
+
let r = e.getPropertyValue(t);
|
|
74
|
+
r && (n[t] = r);
|
|
75
75
|
} catch {}
|
|
76
76
|
}
|
|
77
|
-
i === "hidden" && (
|
|
77
|
+
i === "hidden" && (n.opacity = "0");
|
|
78
78
|
try {
|
|
79
|
-
(
|
|
79
|
+
(n["content-visibility"] || e.getPropertyValue("content-visibility")) === "hidden" && (n.visibility = "hidden");
|
|
80
80
|
} catch {}
|
|
81
81
|
let o = parseFloat(e.getPropertyValue("border-top-width") || 0) || 0, s = parseFloat(e.getPropertyValue("border-right-width") || 0) || 0, c = parseFloat(e.getPropertyValue("border-bottom-width") || 0) || 0, l = parseFloat(e.getPropertyValue("border-left-width") || 0) || 0;
|
|
82
82
|
if (o === 0 && s === 0 && c === 0 && l === 0) {
|
|
83
|
-
let t = (e.getPropertyValue("border-image-source") || "").trim(),
|
|
84
|
-
for (let e of /* @__PURE__ */ "border.border-top.border-right.border-bottom.border-left.border-width.border-style.border-color.border-top-width.border-top-style.border-top-color.border-right-width.border-right-style.border-right-color.border-bottom-width.border-bottom-style.border-bottom-color.border-left-width.border-left-style.border-left-color.border-block.border-block-width.border-block-style.border-block-color.border-inline.border-inline-width.border-inline-style.border-inline-color".split(".")) delete
|
|
85
|
-
|
|
83
|
+
let t = (e.getPropertyValue("border-image-source") || "").trim(), r = t && t !== "none";
|
|
84
|
+
for (let e of /* @__PURE__ */ "border.border-top.border-right.border-bottom.border-left.border-width.border-style.border-color.border-top-width.border-top-style.border-top-color.border-right-width.border-right-style.border-right-color.border-bottom-width.border-bottom-style.border-bottom-color.border-left-width.border-left-style.border-left-color.border-block.border-block-width.border-block-style.border-block-color.border-inline.border-inline-width.border-inline-style.border-inline-color".split(".")) delete n[e];
|
|
85
|
+
r || (n.border = "none");
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return n;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
let t =
|
|
92
|
-
return t || (t = Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : +(e[0] > t[0])).map(([e, t]) => `${e}:${t}`).join(";"),
|
|
89
|
+
var f = /* @__PURE__ */ new WeakMap();
|
|
90
|
+
function p(e) {
|
|
91
|
+
let t = f.get(e);
|
|
92
|
+
return t || (t = Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : +(e[0] > t[0])).map(([e, t]) => `${e}:${t}`).join(";"), f.set(e, t), t);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let
|
|
96
|
-
if (
|
|
97
|
-
let
|
|
98
|
-
return
|
|
99
|
-
epoch:
|
|
100
|
-
snapshot:
|
|
101
|
-
|
|
94
|
+
function m(e, t = null, n = {}) {
|
|
95
|
+
let r = i.get(e), a = !!(n && n.embedFonts), o = n && n.excludeStyleProps || null;
|
|
96
|
+
if (r && r.epoch === s && r.embedFonts === a && r.excludeStyleProps === o) return r.snapshot;
|
|
97
|
+
let c = t || getComputedStyle(e), l = d(c, n);
|
|
98
|
+
return S(e, c, l), i.set(e, {
|
|
99
|
+
epoch: s,
|
|
100
|
+
snapshot: l,
|
|
101
|
+
embedFonts: a,
|
|
102
|
+
excludeStyleProps: o
|
|
103
|
+
}), l;
|
|
102
104
|
}
|
|
103
|
-
function
|
|
105
|
+
function h(t, n) {
|
|
104
106
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? {
|
|
105
107
|
session: t,
|
|
106
108
|
persist: {
|
|
107
|
-
snapshotKeyCache:
|
|
109
|
+
snapshotKeyCache: a,
|
|
108
110
|
defaultStyle: e.defaultStyle,
|
|
109
111
|
baseStyle: e.baseStyle,
|
|
110
112
|
image: e.image,
|
|
@@ -116,7 +118,7 @@ function m(t, n) {
|
|
|
116
118
|
} : {
|
|
117
119
|
session: e.session,
|
|
118
120
|
persist: {
|
|
119
|
-
snapshotKeyCache:
|
|
121
|
+
snapshotKeyCache: a,
|
|
120
122
|
defaultStyle: e.defaultStyle,
|
|
121
123
|
baseStyle: e.baseStyle,
|
|
122
124
|
image: e.image,
|
|
@@ -127,54 +129,54 @@ function m(t, n) {
|
|
|
127
129
|
options: t || n || {}
|
|
128
130
|
};
|
|
129
131
|
}
|
|
130
|
-
function
|
|
132
|
+
function g(e, t, n) {
|
|
131
133
|
if (!(!e.style || e.style.length === 0)) for (let r = 0; r < e.style.length; r++) {
|
|
132
134
|
let i = e.style[r], a = n.getPropertyValue(i);
|
|
133
135
|
a && t.style.setProperty(i, a);
|
|
134
136
|
}
|
|
135
137
|
}
|
|
136
|
-
async function
|
|
138
|
+
async function _(e, t, r, i) {
|
|
137
139
|
if (e.tagName === "STYLE") return;
|
|
138
|
-
let o =
|
|
139
|
-
|
|
140
|
-
let { session:
|
|
141
|
-
if (!
|
|
140
|
+
let o = h(r, i), s = o.options && o.options.cache || "auto";
|
|
141
|
+
s !== "disabled" && u(document.documentElement), s === "disabled" && !o.session.__bumpedForDisabled && (c(), a.clear(), o.session.__bumpedForDisabled = !0);
|
|
142
|
+
let { session: l, persist: d } = o;
|
|
143
|
+
if (!l.styleCache.has(e)) {
|
|
142
144
|
let t = null;
|
|
143
145
|
try {
|
|
144
146
|
t = getComputedStyle(e);
|
|
145
147
|
} catch {}
|
|
146
|
-
|
|
148
|
+
l.styleCache.set(e, t || getComputedStyle(document.documentElement));
|
|
147
149
|
}
|
|
148
|
-
let
|
|
149
|
-
e.getAttribute?.("style") &&
|
|
150
|
-
let _ =
|
|
151
|
-
if (
|
|
152
|
-
let e =
|
|
150
|
+
let f = l.styleCache.get(e);
|
|
151
|
+
e.getAttribute?.("style") && g(e, t, f);
|
|
152
|
+
let _ = m(e, f, o.options);
|
|
153
|
+
if (b(e)) {
|
|
154
|
+
let e = f.getPropertyValue("min-width");
|
|
153
155
|
(!e || e === "auto" || e === "0px") && (_["min-width"] = "0px");
|
|
154
156
|
}
|
|
155
|
-
let v =
|
|
156
|
-
|
|
157
|
+
let v = p(_), y = d.snapshotKeyCache.get(v);
|
|
158
|
+
y || (y = n(_, e.tagName?.toLowerCase() || "div"), d.snapshotKeyCache.set(v, y)), l.styleMap.set(t, y);
|
|
157
159
|
}
|
|
158
|
-
function
|
|
160
|
+
function v(e) {
|
|
159
161
|
return e instanceof HTMLImageElement || e instanceof HTMLCanvasElement || e instanceof HTMLVideoElement || e instanceof HTMLIFrameElement || e instanceof SVGElement || e instanceof HTMLObjectElement || e instanceof HTMLEmbedElement;
|
|
160
162
|
}
|
|
161
|
-
function
|
|
163
|
+
function y(e) {
|
|
162
164
|
return e.backgroundImage && e.backgroundImage !== "none" || e.backgroundColor && e.backgroundColor !== "rgba(0, 0, 0, 0)" && e.backgroundColor !== "transparent" || (parseFloat(e.borderTopWidth) || 0) > 0 || (parseFloat(e.borderBottomWidth) || 0) > 0 || (parseFloat(e.paddingTop) || 0) > 0 || (parseFloat(e.paddingBottom) || 0) > 0 ? !0 : (e.overflowBlock || e.overflowY || "visible") !== "visible";
|
|
163
165
|
}
|
|
164
|
-
function
|
|
165
|
-
let
|
|
166
|
-
if (!
|
|
167
|
-
let
|
|
168
|
-
return
|
|
166
|
+
function b(e) {
|
|
167
|
+
let n = e.parentElement;
|
|
168
|
+
if (!n) return !1;
|
|
169
|
+
let r = t(n).display || "";
|
|
170
|
+
return r.includes("flex") || r.includes("grid");
|
|
169
171
|
}
|
|
170
|
-
function
|
|
172
|
+
function x(e, t) {
|
|
171
173
|
if (e.textContent && /\S/.test(e.textContent)) return !0;
|
|
172
174
|
let n = e.firstElementChild, r = e.lastElementChild;
|
|
173
175
|
if (n && n.tagName === "BR" || r && r.tagName === "BR") return !0;
|
|
174
176
|
let i = e.scrollHeight;
|
|
175
177
|
return i === 0 ? !1 : i > (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
|
|
176
178
|
}
|
|
177
|
-
function
|
|
179
|
+
function S(e, t, n) {
|
|
178
180
|
if (e instanceof HTMLElement && e.style && e.style.height) return;
|
|
179
181
|
let r = e.tagName && e.tagName.toLowerCase();
|
|
180
182
|
if (!r || ![
|
|
@@ -190,14 +192,14 @@ function x(e, t, n) {
|
|
|
190
192
|
let i = parseFloat(t.height);
|
|
191
193
|
if (Number.isFinite(i) && e.scrollHeight > 0 && Math.abs(i - e.scrollHeight) > 2 || t.aspectRatio && t.aspectRatio !== "none" && t.aspectRatio !== "auto") return;
|
|
192
194
|
let a = t.display || "";
|
|
193
|
-
if (a.includes("flex") || a.includes("grid") ||
|
|
195
|
+
if (a.includes("flex") || a.includes("grid") || v(e)) return;
|
|
194
196
|
let o = t.position;
|
|
195
|
-
if (o === "absolute" || o === "fixed" || o === "sticky" || t.transform !== "none" ||
|
|
197
|
+
if (o === "absolute" || o === "fixed" || o === "sticky" || t.transform !== "none" || y(t) || b(e)) return;
|
|
196
198
|
let s = t.overflowX || t.overflow || "visible", c = t.overflowY || t.overflow || "visible";
|
|
197
199
|
if (s !== "visible" || c !== "visible") return;
|
|
198
200
|
let l = t.clip;
|
|
199
|
-
l && l !== "auto" && l !== "rect(auto, auto, auto, auto)" || t.visibility === "hidden" || t.opacity === "0" ||
|
|
201
|
+
l && l !== "auto" && l !== "rect(auto, auto, auto, auto)" || t.visibility === "hidden" || t.opacity === "0" || x(e, t) && (delete n.height, delete n["block-size"]);
|
|
200
202
|
}
|
|
201
203
|
//#endregion
|
|
202
|
-
export {
|
|
204
|
+
export { _ as inlineAllStyles };
|
|
203
205
|
/* 独立思考,明辨是非 */
|
package/snapdom/src/utils/css.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
3
|
import { extractURL as t, resolveURL as n, safeEncodeURI as r } from "./helpers.js";
|
|
4
4
|
import { snapFetch as i } from "../modules/snapFetch.js";
|
|
@@ -7,9 +7,9 @@ async function a(a, o = {}) {
|
|
|
7
7
|
if (/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(a) || a.trim() === "none") return a;
|
|
8
8
|
let s = t(a);
|
|
9
9
|
if (!s) return a;
|
|
10
|
-
let c = r(n(s));
|
|
11
|
-
if (e.background.has(
|
|
12
|
-
let t = e.background.get(
|
|
10
|
+
let c = r(n(s)), l = (o.useProxy || "") + "|" + c;
|
|
11
|
+
if (e.background.has(l)) {
|
|
12
|
+
let t = e.background.get(l);
|
|
13
13
|
return t ? `url("${t}")` : "none";
|
|
14
14
|
}
|
|
15
15
|
try {
|
|
@@ -17,9 +17,9 @@ async function a(a, o = {}) {
|
|
|
17
17
|
as: "dataURL",
|
|
18
18
|
useProxy: o.useProxy
|
|
19
19
|
});
|
|
20
|
-
return t.ok ? (e.background.set(
|
|
20
|
+
return t.ok ? (e.background.set(l, t.data), `url("${t.data}")`) : (e.background.set(l, null), "none");
|
|
21
21
|
} catch {
|
|
22
|
-
return e.background.set(
|
|
22
|
+
return e.background.set(l, null), "none";
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
import {
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import { getStyle as e } from "./css.js";
|
|
3
|
+
import { limitDecimals as t } from "./capture.helpers.js";
|
|
3
4
|
//#region utils/snapdom/src/utils/transforms.helpers.js
|
|
4
|
-
function
|
|
5
|
+
function n(e) {
|
|
5
6
|
let t = e.boxShadow || "";
|
|
6
7
|
if (!t || t === "none") return {
|
|
7
8
|
top: 0,
|
|
@@ -9,30 +10,39 @@ function t(e) {
|
|
|
9
10
|
bottom: 0,
|
|
10
11
|
left: 0
|
|
11
12
|
};
|
|
12
|
-
let n =
|
|
13
|
+
let n = [], r = "", i = 0;
|
|
14
|
+
for (let e = 0; e < t.length; e++) {
|
|
15
|
+
let a = t[e];
|
|
16
|
+
a === "(" ? i++ : a === ")" && (i = Math.max(0, i - 1)), a === "," && i === 0 ? (n.push(r), r = "") : r += a;
|
|
17
|
+
}
|
|
18
|
+
r.trim() && n.push(r);
|
|
19
|
+
let a = 0, o = 0, s = 0, c = 0;
|
|
13
20
|
for (let e of n) {
|
|
21
|
+
if (/\binset\b/i.test(e)) continue;
|
|
14
22
|
let t = e.match(/-?\d+(\.\d+)?px/g)?.map((e) => parseFloat(e)) || [];
|
|
15
23
|
if (t.length < 2) continue;
|
|
16
|
-
let [n,
|
|
17
|
-
|
|
24
|
+
let [n, r, i = 0, l = 0] = t, u = Math.abs(n) + i + l, d = Math.abs(r) + i + l;
|
|
25
|
+
o = Math.max(o, u + Math.max(n, 0)), c = Math.max(c, u + Math.max(-n, 0)), s = Math.max(s, d + Math.max(r, 0)), a = Math.max(a, d + Math.max(-r, 0));
|
|
18
26
|
}
|
|
19
27
|
return {
|
|
20
|
-
top: Math.ceil(
|
|
21
|
-
right: Math.ceil(
|
|
22
|
-
bottom: Math.ceil(
|
|
23
|
-
left: Math.ceil(
|
|
28
|
+
top: Math.ceil(a),
|
|
29
|
+
right: Math.ceil(o),
|
|
30
|
+
bottom: Math.ceil(s),
|
|
31
|
+
left: Math.ceil(c)
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
|
-
function
|
|
27
|
-
let t =
|
|
34
|
+
function r(e) {
|
|
35
|
+
let t = e.filter && e.filter !== "none" ? e.filter : e.webkitFilter || "", n = /blur\(\s*([0-9.]+)px\s*\)/gi, r = 0, i;
|
|
36
|
+
for (; i = n.exec(t);) r += parseFloat(i[1]) || 0;
|
|
37
|
+
let a = Math.ceil(r);
|
|
28
38
|
return {
|
|
29
|
-
top:
|
|
30
|
-
right:
|
|
31
|
-
bottom:
|
|
32
|
-
left:
|
|
39
|
+
top: a,
|
|
40
|
+
right: a,
|
|
41
|
+
bottom: a,
|
|
42
|
+
left: a
|
|
33
43
|
};
|
|
34
44
|
}
|
|
35
|
-
function
|
|
45
|
+
function i(e) {
|
|
36
46
|
if ((e.outlineStyle || "none") === "none") return {
|
|
37
47
|
top: 0,
|
|
38
48
|
right: 0,
|
|
@@ -47,8 +57,8 @@ function r(e) {
|
|
|
47
57
|
left: r
|
|
48
58
|
};
|
|
49
59
|
}
|
|
50
|
-
function
|
|
51
|
-
let n = `${
|
|
60
|
+
function a(e) {
|
|
61
|
+
let n = `${e.filter || ""} ${e.webkitFilter || ""}`.trim();
|
|
52
62
|
if (!n || n === "none") return {
|
|
53
63
|
bleed: {
|
|
54
64
|
top: 0,
|
|
@@ -66,15 +76,15 @@ function i(t) {
|
|
|
66
76
|
}
|
|
67
77
|
return {
|
|
68
78
|
bleed: {
|
|
69
|
-
top:
|
|
70
|
-
right:
|
|
71
|
-
bottom:
|
|
72
|
-
left:
|
|
79
|
+
top: t(i),
|
|
80
|
+
right: t(a),
|
|
81
|
+
bottom: t(o),
|
|
82
|
+
left: t(s)
|
|
73
83
|
},
|
|
74
84
|
has: c
|
|
75
85
|
};
|
|
76
86
|
}
|
|
77
|
-
function
|
|
87
|
+
function o(e, t) {
|
|
78
88
|
if (!e || !t || !t.style) return null;
|
|
79
89
|
let n = getComputedStyle(e);
|
|
80
90
|
try {
|
|
@@ -84,15 +94,28 @@ function a(e, t) {
|
|
|
84
94
|
"translate" in t.style && (t.style.translate = "none"), "rotate" in t.style && (t.style.rotate = "none");
|
|
85
95
|
} catch {}
|
|
86
96
|
let r = n.transform || "none";
|
|
87
|
-
if (!r || r === "none")
|
|
88
|
-
let n =
|
|
89
|
-
|
|
97
|
+
if (!r || r === "none") {
|
|
98
|
+
let n = null;
|
|
99
|
+
try {
|
|
100
|
+
n = l(e).scale;
|
|
101
|
+
} catch {}
|
|
102
|
+
try {
|
|
103
|
+
t.style.transform = "none";
|
|
104
|
+
} catch {}
|
|
105
|
+
if (!n) return {
|
|
90
106
|
a: 1,
|
|
91
107
|
b: 0,
|
|
92
108
|
c: 0,
|
|
93
109
|
d: 1
|
|
94
110
|
};
|
|
95
|
-
|
|
111
|
+
let r = n.trim().split(/\s+/).map(parseFloat), i = Number.isFinite(r[0]) ? r[0] : 1;
|
|
112
|
+
return {
|
|
113
|
+
a: i,
|
|
114
|
+
b: 0,
|
|
115
|
+
c: 0,
|
|
116
|
+
d: Number.isFinite(r[1]) ? r[1] : i
|
|
117
|
+
};
|
|
118
|
+
}
|
|
96
119
|
function i(e, t, n, r) {
|
|
97
120
|
let i = Math.sqrt(e * e + t * t) || 0, a = 0, o = 0;
|
|
98
121
|
if (i > 0) {
|
|
@@ -140,7 +163,7 @@ function a(e, t) {
|
|
|
140
163
|
return null;
|
|
141
164
|
}
|
|
142
165
|
}
|
|
143
|
-
function
|
|
166
|
+
function s(e, t, n, r, i) {
|
|
144
167
|
let a = n.a, o = n.b, s = n.c, c = n.d, l = n.e || 0, u = n.f || 0;
|
|
145
168
|
function d(e, t) {
|
|
146
169
|
let n = e - r, d = t - i, f = a * n + s * d, p = o * n + c * d;
|
|
@@ -162,7 +185,7 @@ function o(e, t, n, r, i) {
|
|
|
162
185
|
height: g - m
|
|
163
186
|
};
|
|
164
187
|
}
|
|
165
|
-
function
|
|
188
|
+
function c(e, t, n) {
|
|
166
189
|
let r = (e.transformOrigin || "0 0").trim().split(/\s+/), [i, a] = [r[0] || "0", r[1] || "0"], o = (e, t) => {
|
|
167
190
|
let n = e.toLowerCase();
|
|
168
191
|
return n === "left" || n === "top" ? 0 : n === "center" ? t / 2 : n === "right" || n === "bottom" ? t : n.endsWith("px") ? parseFloat(n) || 0 : n.endsWith("%") ? (parseFloat(n) || 0) * t / 100 : /^-?\d+(\.\d+)?$/.test(n) && parseFloat(n) || 0;
|
|
@@ -172,7 +195,7 @@ function s(e, t, n) {
|
|
|
172
195
|
oy: o(a, n)
|
|
173
196
|
};
|
|
174
197
|
}
|
|
175
|
-
function
|
|
198
|
+
function l(e) {
|
|
176
199
|
let t = {
|
|
177
200
|
rotate: "0deg",
|
|
178
201
|
scale: null,
|
|
@@ -215,9 +238,9 @@ function c(e) {
|
|
|
215
238
|
let r = getComputedStyle(e);
|
|
216
239
|
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;
|
|
217
240
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
if (
|
|
241
|
+
var u = null;
|
|
242
|
+
function d() {
|
|
243
|
+
if (u) return u;
|
|
221
244
|
let e = document.createElement("div");
|
|
222
245
|
return e.id = "snapdom-measure-slot", e.setAttribute("aria-hidden", "true"), Object.assign(e.style, {
|
|
223
246
|
position: "absolute",
|
|
@@ -229,21 +252,21 @@ function u() {
|
|
|
229
252
|
opacity: "0",
|
|
230
253
|
pointerEvents: "none",
|
|
231
254
|
contain: "size layout style"
|
|
232
|
-
}), document.documentElement.appendChild(e),
|
|
255
|
+
}), document.documentElement.appendChild(e), u = e, e;
|
|
233
256
|
}
|
|
234
|
-
function
|
|
235
|
-
let t =
|
|
257
|
+
function f(e) {
|
|
258
|
+
let t = d(), n = document.createElement("div");
|
|
236
259
|
n.style.transformOrigin = "0 0", e.baseTransform && (n.style.transform = e.baseTransform), e.rotate && (n.style.rotate = e.rotate), e.scale && (n.style.scale = e.scale), e.translate && (n.style.translate = e.translate), t.appendChild(n);
|
|
237
|
-
let r =
|
|
260
|
+
let r = m(n);
|
|
238
261
|
return t.removeChild(n), r;
|
|
239
262
|
}
|
|
240
|
-
function
|
|
241
|
-
let
|
|
242
|
-
if (
|
|
243
|
-
let
|
|
244
|
-
return !!(
|
|
263
|
+
function p(t) {
|
|
264
|
+
let n = e(t), r = n.transform || "none";
|
|
265
|
+
if (r !== "none" && !/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(r)) return !0;
|
|
266
|
+
let i = n.rotate && n.rotate !== "none" && n.rotate !== "0deg", a = n.scale && n.scale !== "none" && n.scale !== "1", o = n.translate && n.translate !== "none" && n.translate !== "0px 0px";
|
|
267
|
+
return !!(i || a || o);
|
|
245
268
|
}
|
|
246
|
-
function
|
|
269
|
+
function m(e) {
|
|
247
270
|
let t = getComputedStyle(e).transform;
|
|
248
271
|
if (!t || t === "none") return new DOMMatrix();
|
|
249
272
|
try {
|
|
@@ -253,5 +276,5 @@ function p(e) {
|
|
|
253
276
|
}
|
|
254
277
|
}
|
|
255
278
|
//#endregion
|
|
256
|
-
export {
|
|
279
|
+
export { s as bboxWithOriginFull, p as hasBBoxAffectingTransform, o as normalizeRootTransforms, n as parseBoxShadow, r as parseFilterBlur, a as parseFilterDropShadows, i as parseOutline, c as parseTransformOriginPx, l as readIndividualTransforms, f as readTotalTransformMatrix };
|
|
257
280
|
/* 独立思考,明辨是非 */
|
package/string/chars.js
CHANGED
package/string/index.js
CHANGED
package/tinycolor/conversion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
//#region utils/tinycolor/css-color-names.ts
|
|
3
3
|
var e = {
|
|
4
4
|
aliceblue: "#f0f8ff",
|
|
@@ -14,6 +14,7 @@ var e = {
|
|
|
14
14
|
blueviolet: "#8a2be2",
|
|
15
15
|
brown: "#a52a2a",
|
|
16
16
|
burlywood: "#deb887",
|
|
17
|
+
burntsienna: "#ea7e5d",
|
|
17
18
|
cadetblue: "#5f9ea0",
|
|
18
19
|
chartreuse: "#7fff00",
|
|
19
20
|
chocolate: "#d2691e",
|
|
@@ -52,8 +53,8 @@ var e = {
|
|
|
52
53
|
fuchsia: "#ff00ff",
|
|
53
54
|
gainsboro: "#dcdcdc",
|
|
54
55
|
ghostwhite: "#f8f8ff",
|
|
55
|
-
goldenrod: "#daa520",
|
|
56
56
|
gold: "#ffd700",
|
|
57
|
+
goldenrod: "#daa520",
|
|
57
58
|
gray: "#808080",
|
|
58
59
|
green: "#008000",
|
|
59
60
|
greenyellow: "#adff2f",
|
|
@@ -64,8 +65,8 @@ var e = {
|
|
|
64
65
|
indigo: "#4b0082",
|
|
65
66
|
ivory: "#fffff0",
|
|
66
67
|
khaki: "#f0e68c",
|
|
67
|
-
lavenderblush: "#fff0f5",
|
|
68
68
|
lavender: "#e6e6fa",
|
|
69
|
+
lavenderblush: "#fff0f5",
|
|
69
70
|
lawngreen: "#7cfc00",
|
|
70
71
|
lemonchiffon: "#fffacd",
|
|
71
72
|
lightblue: "#add8e6",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
import { hasOwn as e } from "../object/index.js";
|
|
3
3
|
import { boundAlpha as t, convertToPercentage as n } from "./utils.js";
|
|
4
4
|
import { cmykToRgb as r, convertHexToDecimal as i, hslToRgb as a, hsvToRgb as o, parseIntFromHex as s, rgbToRgb as c } from "./conversion.js";
|
package/tinycolor/from-ratio.js
CHANGED
package/tinycolor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
import { bound01 as e, boundAlpha as t, clamp01 as n, convertToPercentage as r, isOnePointZero as i, isPercentage as a, pad2 as o } from "./utils.js";
|
|
3
3
|
import { cmykToRgb as s, convertDecimalToHex as c, convertHexToDecimal as l, hslToRgb as u, hsvToRgb as d, numberInputToObject as f, parseIntFromHex as p, rgbToCmyk as m, rgbToHex as h, rgbToHsl as g, rgbToHsv as _, rgbToRgb as v, rgbaToArgbHex as y, rgbaToHex as b } from "./conversion.js";
|
|
4
4
|
import { names as x } from "./css-color-names.js";
|