@unicom-cloud/utils 0.1.31 → 0.1.33
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 +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +6 -5
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.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/emoji.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/isMobile.js +7 -0
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +18 -17
- package/constant/protocol.js +1 -1
- package/constant/string.js +1 -1
- package/constant/ui.js +1 -1
- package/constant.js +1 -1
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/api.js +1 -1
- package/cookie/src/assign.js +1 -1
- package/cookie/src/converter.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +5 -5
- package/date.js +5 -5
- package/decimal/decimal.js +1 -1
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- 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 +46 -0
- 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 +87 -84
- 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 +2 -2
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +65 -63
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +1 -1
- package/emitter.js +1 -1
- package/escape/index.js +11 -0
- package/escape.js +6 -0
- package/file/fileToURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/file.js +1 -1
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +196 -141
- package/is/lib/isAscii.js +9 -0
- package/is/lib/isBase64.js +13 -0
- package/is/lib/isChinese.js +19 -0
- package/is/lib/isDataURI.js +25 -0
- package/is/lib/isEmail.js +72 -0
- package/is/lib/isFQDN.js +21 -0
- package/is/lib/isFullWidth.js +10 -0
- package/is/lib/isHSL.js +11 -0
- package/is/lib/isHalfWidth.js +10 -0
- package/is/lib/isHash.js +23 -0
- package/is/lib/isHexColor.js +12 -0
- package/is/lib/isIMEI.js +19 -0
- package/is/lib/isIP.js +21 -0
- package/is/lib/isIPRange.js +25 -0
- package/is/lib/isIdentityCard.js +190 -0
- package/is/lib/isJWT.js +14 -0
- package/is/lib/isMACAddress.js +9 -0
- package/is/lib/isMD5.js +9 -0
- package/is/lib/isMimeType.js +9 -0
- package/is/lib/isMobilePhone.js +192 -0
- package/is/lib/isPort.js +7 -0
- package/is/lib/isRgbColor.js +18 -0
- package/is/lib/isSemVer.js +20 -0
- package/is/lib/isSlug.js +9 -0
- package/is/lib/isStrongPassword.js +48 -0
- package/is/lib/isURL.js +78 -0
- package/is/lib/isUUID.js +24 -0
- package/is/lib/isVariableWidth.js +10 -0
- package/is/lib/util/assertString.js +12 -0
- package/is.js +122 -66
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- 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/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.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/nzh.js +1 -1
- package/object-keys-sort/index.js +1 -1
- package/object-prototype-to-string-call/index.js +2 -2
- package/objectKeysSort.js +1 -1
- package/objectPrototypeToStringCall.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +6 -6
- package/pinyin/src/simplified_dict.js +5 -4
- package/pinyin/src/traditional.js +4 -4
- package/pinyin/src/traditional_dict.js +4 -3
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- 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/random.js +1 -1
- package/screenfull/index.js +1 -1
- package/screenfull.js +1 -1
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +198 -153
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +121 -326
- package/snapdom/src/core/clone.js +117 -266
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +48 -157
- package/snapdom/src/exporters/download.js +15 -11
- package/snapdom/src/exporters/toBlob.js +10 -15
- package/snapdom/src/exporters/toCanvas.js +72 -65
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +118 -112
- package/snapdom/src/modules/iconFonts.js +133 -69
- package/snapdom/src/modules/images.js +36 -33
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +275 -161
- package/snapdom/src/modules/rasterize.js +6 -7
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +89 -67
- package/snapdom/src/modules/svgDefs.js +73 -60
- package/snapdom/src/utils/browser.js +13 -8
- package/snapdom/src/utils/capture.helpers.js +131 -0
- package/snapdom/src/utils/clone.helpers.js +283 -0
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +15 -24
- package/snapdom/src/utils/prepare.helpers.js +8 -0
- package/snapdom/src/utils/transforms.helpers.js +211 -0
- package/snapdom.js +1 -1
- package/string/index.js +1 -1
- package/string.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +12 -11
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +30 -29
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +54 -75
- package/tree/search/index.js +1 -1
- package/tree.js +9 -11
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +15 -14
- package/tween.js +1 -1
- package/types/constant/isMobile.d.ts +3 -0
- package/types/date/index.d.ts +3 -3
- package/types/dom-helpers/getElementCoordinates.d.ts +40 -0
- package/types/dom-helpers/index.d.ts +3 -1
- package/types/escape/index.d.ts +2 -0
- package/types/is/index.d.ts +28 -1
- package/types/is/lib/isAscii.d.ts +1 -0
- package/types/is/lib/isBase64.d.ts +1 -0
- package/types/is/lib/isChinese.d.ts +4 -0
- package/types/is/lib/isDataURI.d.ts +1 -0
- package/types/is/lib/isEmail.d.ts +1 -0
- package/types/is/lib/isFQDN.d.ts +1 -0
- package/types/is/lib/isFullWidth.d.ts +2 -0
- package/types/is/lib/isHSL.d.ts +1 -0
- package/types/is/lib/isHalfWidth.d.ts +2 -0
- package/types/is/lib/isHash.d.ts +1 -0
- package/types/is/lib/isHexColor.d.ts +1 -0
- package/types/is/lib/isIMEI.d.ts +1 -0
- package/types/is/lib/isIP.d.ts +1 -0
- package/types/is/lib/isIPRange.d.ts +1 -0
- package/types/is/lib/isIdentityCard.d.ts +1 -0
- package/types/is/lib/isJWT.d.ts +1 -0
- package/types/is/lib/isMACAddress.d.ts +1 -0
- package/types/is/lib/isMD5.d.ts +1 -0
- package/types/is/lib/isMimeType.d.ts +1 -0
- package/types/is/lib/isMobilePhone.d.ts +2 -0
- package/types/is/lib/isOctal.d.ts +1 -0
- package/types/is/lib/isPort.d.ts +1 -0
- package/types/is/lib/isRgbColor.d.ts +1 -0
- package/types/is/lib/isSemVer.d.ts +1 -0
- package/types/is/lib/isSlug.d.ts +1 -0
- package/types/is/lib/isStrongPassword.d.ts +1 -0
- package/types/is/lib/isURL.d.ts +1 -0
- package/types/is/lib/isUUID.d.ts +1 -0
- package/types/is/lib/isVariableWidth.d.ts +1 -0
- package/types/is/lib/util/assertString.d.ts +1 -0
- package/types/pinyin/es/main.d.ts +4 -0
- package/types/pinyin/es/traditional.d.ts +4 -0
- package/types/snapdom/src/api/snapdom.d.ts +11 -79
- package/types/snapdom/src/exporters/toCanvas.d.ts +11 -3
- package/types/snapdom/src/exporters/toJpg.d.ts +1 -0
- package/types/snapdom/src/exporters/toPng.d.ts +6 -0
- package/types/snapdom/src/exporters/toSvg.d.ts +1 -0
- package/types/snapdom/src/exporters/toWebp.d.ts +1 -0
- package/types/snapdom/src/modules/iconFonts.d.ts +7 -20
- package/types/snapdom/src/modules/pseudo.d.ts +18 -0
- package/types/snapdom/src/modules/rasterize.d.ts +6 -10
- package/types/snapdom/src/utils/browser.d.ts +0 -3
- package/types/snapdom/src/utils/capture.helpers.d.ts +45 -0
- package/types/snapdom/src/utils/clone.helpers.d.ts +97 -0
- package/types/snapdom/src/utils/image.d.ts +0 -8
- package/types/snapdom/src/utils/index.d.ts +1 -1
- package/types/snapdom/src/utils/prepare.helpers.d.ts +9 -0
- package/types/snapdom/src/utils/transforms.helpers.d.ts +118 -0
- package/types/tree/index.d.ts +3 -4
- package/types/validate/src/index.d.ts +23 -25
- package/types/validate/src/interface.d.ts +5 -3
- package/types/validate/src/locale/en-US.d.ts +12 -2
- package/types/validate/src/locale/index.d.ts +171 -0
- package/types/validate/src/locale/zh-CN.d.ts +12 -2
- package/types/validate/src/rules/base.d.ts +3 -1
- package/types/validate/src/rules/custom.d.ts +1 -1
- package/types/validate/src/rules/type.d.ts +10 -0
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +8 -7
- package/uiColor.js +25 -24
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +23 -25
- package/validate/src/index.js +116 -73
- package/validate/src/locale/en-US.js +12 -2
- package/validate/src/locale/index.js +11 -0
- package/validate/src/locale/zh-CN.js +12 -2
- package/validate/src/rules/array.js +2 -2
- package/validate/src/rules/base.js +35 -31
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +2 -2
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +6 -5
- package/validate/src/rules/type.js +84 -14
- package/validate.js +23 -25
- package/version/index.js +1 -1
- package/version.js +1 -1
- package/xlsx/index.d.ts +4 -8
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +2 -2
- package/xlsx.js +1 -1
- package/types/validate/src/message.d.ts +0 -2
- package/types/validate/src/utils.d.ts +0 -3
- package/validate/src/message.js +0 -5
- package/validate/src/utils.js +0 -8
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* 2025-
|
|
1
|
+
/* 2025-12-17 18:26:57 */
|
|
2
2
|
import { cache as s } from "../core/cache.js";
|
|
3
|
-
import { NO_DEFAULTS_TAGS as
|
|
4
|
-
const
|
|
5
|
-
let
|
|
6
|
-
function
|
|
7
|
-
|
|
3
|
+
import { NO_DEFAULTS_TAGS as S, getStyleKey as E } from "../utils/css.js";
|
|
4
|
+
const b = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new Map();
|
|
5
|
+
let g = 0;
|
|
6
|
+
function l() {
|
|
7
|
+
g++;
|
|
8
8
|
}
|
|
9
|
-
let
|
|
9
|
+
let y = !1;
|
|
10
10
|
function k(t = document.documentElement) {
|
|
11
|
-
if (!
|
|
12
|
-
|
|
11
|
+
if (!y) {
|
|
12
|
+
y = !0;
|
|
13
13
|
try {
|
|
14
|
-
new MutationObserver(() =>
|
|
14
|
+
new MutationObserver(() => l()).observe(t, {
|
|
15
15
|
subtree: !0,
|
|
16
16
|
childList: !0,
|
|
17
17
|
characterData: !0,
|
|
@@ -20,7 +20,7 @@ function k(t = document.documentElement) {
|
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
22
|
try {
|
|
23
|
-
new MutationObserver(() =>
|
|
23
|
+
new MutationObserver(() => l()).observe(document.head, {
|
|
24
24
|
subtree: !0,
|
|
25
25
|
childList: !0,
|
|
26
26
|
characterData: !0,
|
|
@@ -30,21 +30,36 @@ function k(t = document.documentElement) {
|
|
|
30
30
|
}
|
|
31
31
|
try {
|
|
32
32
|
const e = document.fonts;
|
|
33
|
-
e && (e.addEventListener?.("loadingdone",
|
|
33
|
+
e && (e.addEventListener?.("loadingdone", l), e.ready?.then(() => l()).catch(() => {
|
|
34
34
|
}));
|
|
35
35
|
} catch {
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
for (let
|
|
42
|
-
const a = t[
|
|
43
|
-
let
|
|
44
|
-
(a === "background-image" || a === "content") &&
|
|
39
|
+
function T(t, e = {}) {
|
|
40
|
+
const i = {}, n = t.getPropertyValue("visibility");
|
|
41
|
+
for (let r = 0; r < t.length; r++) {
|
|
42
|
+
const a = t[r];
|
|
43
|
+
let u = t.getPropertyValue(a);
|
|
44
|
+
(a === "background-image" || a === "content") && u.includes("url(") && !u.includes("data:") && (u = "none"), i[a] = u;
|
|
45
45
|
}
|
|
46
|
+
const o = [
|
|
47
|
+
"text-decoration-line",
|
|
48
|
+
"text-decoration-color",
|
|
49
|
+
"text-decoration-style",
|
|
50
|
+
"text-decoration-thickness",
|
|
51
|
+
"text-underline-offset",
|
|
52
|
+
"text-decoration-skip-ink"
|
|
53
|
+
];
|
|
54
|
+
for (const r of o)
|
|
55
|
+
if (!i[r])
|
|
56
|
+
try {
|
|
57
|
+
const a = t.getPropertyValue(r);
|
|
58
|
+
a && (i[r] = a);
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
46
61
|
if (e.embedFonts) {
|
|
47
|
-
const
|
|
62
|
+
const r = [
|
|
48
63
|
"font-feature-settings",
|
|
49
64
|
"font-variation-settings",
|
|
50
65
|
"font-kerning",
|
|
@@ -52,34 +67,34 @@ function F(t, e = {}) {
|
|
|
52
67
|
"font-variant-ligatures",
|
|
53
68
|
"font-optical-sizing"
|
|
54
69
|
];
|
|
55
|
-
for (const a of
|
|
56
|
-
if (!
|
|
70
|
+
for (const a of r)
|
|
71
|
+
if (!i[a])
|
|
57
72
|
try {
|
|
58
|
-
const
|
|
59
|
-
|
|
73
|
+
const u = t.getPropertyValue(a);
|
|
74
|
+
u && (i[a] = u);
|
|
60
75
|
} catch {
|
|
61
76
|
}
|
|
62
77
|
}
|
|
63
|
-
return
|
|
78
|
+
return n === "hidden" && (i.opacity = "0"), i;
|
|
64
79
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
67
|
-
let e =
|
|
80
|
+
const v = /* @__PURE__ */ new WeakMap();
|
|
81
|
+
function w(t) {
|
|
82
|
+
let e = v.get(t);
|
|
68
83
|
return e || (e = Object.entries(t).sort(
|
|
69
|
-
(
|
|
70
|
-
).map(([
|
|
84
|
+
(n, o) => n[0] < o[0] ? -1 : n[0] > o[0] ? 1 : 0
|
|
85
|
+
).map(([n, o]) => `${n}:${o}`).join(";"), v.set(t, e), e);
|
|
71
86
|
}
|
|
72
|
-
function
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
return
|
|
87
|
+
function _(t, e = null, i = {}) {
|
|
88
|
+
const n = b.get(t);
|
|
89
|
+
if (n && n.epoch === g) return n.snapshot;
|
|
90
|
+
const o = e || getComputedStyle(t), r = T(o, i);
|
|
91
|
+
return H(t, o, r), b.set(t, { epoch: g, snapshot: r }), r;
|
|
77
92
|
}
|
|
78
|
-
function
|
|
93
|
+
function F(t, e) {
|
|
79
94
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? {
|
|
80
95
|
session: t,
|
|
81
96
|
persist: {
|
|
82
|
-
snapshotKeyCache:
|
|
97
|
+
snapshotKeyCache: p,
|
|
83
98
|
defaultStyle: s.defaultStyle,
|
|
84
99
|
baseStyle: s.baseStyle,
|
|
85
100
|
image: s.image,
|
|
@@ -91,7 +106,7 @@ function _(t, e) {
|
|
|
91
106
|
} : {
|
|
92
107
|
session: s.session,
|
|
93
108
|
persist: {
|
|
94
|
-
snapshotKeyCache:
|
|
109
|
+
snapshotKeyCache: p,
|
|
95
110
|
defaultStyle: s.defaultStyle,
|
|
96
111
|
baseStyle: s.baseStyle,
|
|
97
112
|
image: s.image,
|
|
@@ -102,51 +117,58 @@ function _(t, e) {
|
|
|
102
117
|
options: t || e || {}
|
|
103
118
|
};
|
|
104
119
|
}
|
|
105
|
-
async function
|
|
120
|
+
async function R(t, e, i, n) {
|
|
106
121
|
if (t.tagName === "STYLE") return;
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
const
|
|
110
|
-
|
|
122
|
+
const o = F(i, n), r = o.options && o.options.cache || "auto";
|
|
123
|
+
if (r !== "disabled" && k(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (l(), p.clear(), o.session.__bumpedForDisabled = !0), S.has(t.tagName?.toLowerCase())) {
|
|
124
|
+
const d = t.getAttribute?.("style");
|
|
125
|
+
d && e.setAttribute("style", d);
|
|
111
126
|
}
|
|
112
|
-
const { session:
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
if (!
|
|
117
|
-
const
|
|
118
|
-
|
|
127
|
+
const { session: a, persist: u } = o;
|
|
128
|
+
a.styleCache.has(t) || a.styleCache.set(t, getComputedStyle(t));
|
|
129
|
+
const c = a.styleCache.get(t), h = _(t, c, o.options), m = w(h);
|
|
130
|
+
let f = u.snapshotKeyCache.get(m);
|
|
131
|
+
if (!f) {
|
|
132
|
+
const d = t.tagName?.toLowerCase() || "div";
|
|
133
|
+
f = E(h, d), u.snapshotKeyCache.set(m, f);
|
|
119
134
|
}
|
|
120
|
-
|
|
135
|
+
a.styleMap.set(e, f);
|
|
121
136
|
}
|
|
122
137
|
function C(t) {
|
|
123
138
|
return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
|
|
124
139
|
}
|
|
125
|
-
function
|
|
140
|
+
function M(t) {
|
|
126
141
|
return t.backgroundImage && t.backgroundImage !== "none" || t.backgroundColor && t.backgroundColor !== "rgba(0, 0, 0, 0)" && t.backgroundColor !== "transparent" || (parseFloat(t.borderTopWidth) || 0) > 0 || (parseFloat(t.borderBottomWidth) || 0) > 0 || (parseFloat(t.paddingTop) || 0) > 0 || (parseFloat(t.paddingBottom) || 0) > 0 ? !0 : (t.overflowBlock || t.overflowY || "visible") !== "visible";
|
|
127
142
|
}
|
|
128
|
-
function
|
|
143
|
+
function L(t) {
|
|
129
144
|
const e = t.parentElement;
|
|
130
145
|
if (!e) return !1;
|
|
131
|
-
const
|
|
132
|
-
return
|
|
146
|
+
const i = getComputedStyle(e).display || "";
|
|
147
|
+
return i.includes("flex") || i.includes("grid");
|
|
133
148
|
}
|
|
134
|
-
function
|
|
149
|
+
function N(t, e) {
|
|
135
150
|
if (t.textContent && /\S/.test(t.textContent)) return !0;
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
return
|
|
151
|
+
const i = t.firstElementChild, n = t.lastElementChild;
|
|
152
|
+
if (i && i.tagName === "BR" || n && n.tagName === "BR") return !0;
|
|
153
|
+
const o = t.scrollHeight;
|
|
154
|
+
if (o === 0) return !1;
|
|
155
|
+
const r = parseFloat(e.paddingTop) || 0, a = parseFloat(e.paddingBottom) || 0;
|
|
156
|
+
return o > r + a;
|
|
142
157
|
}
|
|
143
|
-
function
|
|
158
|
+
function H(t, e, i) {
|
|
144
159
|
if (t instanceof HTMLElement && t.style && t.style.height) return;
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
147
|
-
|
|
148
|
-
|
|
160
|
+
const n = t.tagName && t.tagName.toLowerCase();
|
|
161
|
+
if (!n || n !== "div" && n !== "section" && n !== "article" && n !== "main" && n !== "aside" && n !== "header" && n !== "footer" && n !== "nav" && n !== "ol" && n !== "ul" && n !== "li")
|
|
162
|
+
return;
|
|
163
|
+
const o = e.display || "";
|
|
164
|
+
if (o.includes("flex") || o.includes("grid") || C(t)) return;
|
|
165
|
+
const r = e.position;
|
|
166
|
+
if (r === "absolute" || r === "fixed" || r === "sticky" || e.transform !== "none" || M(e) || L(t)) return;
|
|
167
|
+
const a = e.overflowX || e.overflow || "visible", u = e.overflowY || e.overflow || "visible";
|
|
168
|
+
if (a !== "visible" || u !== "visible") return;
|
|
169
|
+
const c = e.clip;
|
|
170
|
+
c && c !== "auto" && c !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || N(t, e) && (delete i.height, delete i["block-size"]);
|
|
149
171
|
}
|
|
150
172
|
export {
|
|
151
|
-
|
|
173
|
+
R as inlineAllStyles
|
|
152
174
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 2025-
|
|
2
|
-
function
|
|
3
|
-
if (!
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
1
|
+
/* 2025-12-17 18:26:57 */
|
|
2
|
+
function R(o, N) {
|
|
3
|
+
if (!o || !(o instanceof Element)) return;
|
|
4
|
+
const w = o.ownerDocument || document, v = w, y = o instanceof SVGSVGElement ? [o] : Array.from(o.querySelectorAll("svg"));
|
|
5
|
+
if (y.length === 0) return;
|
|
6
6
|
const m = /url\(\s*#([^)]+)\)/g, p = [
|
|
7
7
|
"fill",
|
|
8
8
|
"stroke",
|
|
@@ -13,81 +13,94 @@ function E(s, R) {
|
|
|
13
13
|
"marker-start",
|
|
14
14
|
"marker-mid",
|
|
15
15
|
"marker-end"
|
|
16
|
-
],
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
], x = (t) => window.CSS && CSS.escape ? CSS.escape(t) : t.replace(/[^a-zA-Z0-9_-]/g, "\\$&"), q = "http://www.w3.org/1999/xlink", b = (t) => {
|
|
17
|
+
if (!t || !t.getAttribute) return null;
|
|
18
|
+
let n = t.getAttribute("href") || t.getAttribute("xlink:href") || (typeof t.getAttributeNS == "function" ? t.getAttributeNS(q, "href") : null);
|
|
19
|
+
if (n) return n;
|
|
20
|
+
const r = t.attributes;
|
|
21
|
+
if (!r) return null;
|
|
22
|
+
for (let s = 0; s < r.length; s++) {
|
|
23
|
+
const e = r[s];
|
|
24
|
+
if (!e || !e.name) continue;
|
|
25
|
+
if (e.name === "href") return e.value;
|
|
26
|
+
const i = e.name.indexOf(":");
|
|
27
|
+
if (i !== -1 && e.name.slice(i + 1) === "href")
|
|
28
|
+
return e.value;
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}, c = new Set(
|
|
32
|
+
Array.from(o.querySelectorAll("[id]")).map((t) => t.id)
|
|
33
|
+
), d = /* @__PURE__ */ new Set();
|
|
19
34
|
let A = !1;
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
35
|
+
const h = (t, n = null) => {
|
|
36
|
+
if (!t) return;
|
|
22
37
|
m.lastIndex = 0;
|
|
23
|
-
let
|
|
24
|
-
for (;
|
|
38
|
+
let r;
|
|
39
|
+
for (; r = m.exec(t); ) {
|
|
25
40
|
A = !0;
|
|
26
|
-
const
|
|
27
|
-
|
|
41
|
+
const s = (r[1] || "").trim();
|
|
42
|
+
s && (c.has(s) || (d.add(s), n && !n.has(s) && n.add(s)));
|
|
28
43
|
}
|
|
29
|
-
},
|
|
30
|
-
const n =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const o = r.getAttribute("href") || r.getAttribute("xlink:href");
|
|
35
|
-
if (!o || !o.startsWith("#")) continue;
|
|
44
|
+
}, E = (t) => {
|
|
45
|
+
const n = t.querySelectorAll("use");
|
|
46
|
+
for (const e of n) {
|
|
47
|
+
const i = b(e);
|
|
48
|
+
if (!i || !i.startsWith("#")) continue;
|
|
36
49
|
A = !0;
|
|
37
|
-
const
|
|
38
|
-
|
|
50
|
+
const a = i.slice(1).trim();
|
|
51
|
+
a && !c.has(a) && d.add(a);
|
|
39
52
|
}
|
|
40
|
-
const
|
|
41
|
-
for (const
|
|
42
|
-
|
|
43
|
-
for (const
|
|
53
|
+
const s = t.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');
|
|
54
|
+
for (const e of s) {
|
|
55
|
+
h(e.getAttribute("style") || "");
|
|
56
|
+
for (const i of p) h(e.getAttribute(i));
|
|
44
57
|
}
|
|
45
58
|
};
|
|
46
|
-
for (const
|
|
59
|
+
for (const t of y) E(t);
|
|
47
60
|
if (!A) return;
|
|
48
|
-
let
|
|
49
|
-
|
|
61
|
+
let l = o.querySelector("svg.inline-defs-container");
|
|
62
|
+
l || (l = w.createElementNS("http://www.w3.org/2000/svg", "svg"), l.classList.add("inline-defs-container"), l.setAttribute("aria-hidden", "true"), l.setAttribute(
|
|
50
63
|
"style",
|
|
51
64
|
"position:absolute;width:0;height:0;overflow:hidden"
|
|
52
|
-
),
|
|
53
|
-
let
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
56
|
-
const n =
|
|
57
|
-
const
|
|
58
|
-
return
|
|
65
|
+
), o.insertBefore(l, o.firstChild || null));
|
|
66
|
+
let g = l.querySelector("defs") || null;
|
|
67
|
+
const I = (t) => {
|
|
68
|
+
if (!t || c.has(t)) return null;
|
|
69
|
+
const n = x(t), r = (s) => {
|
|
70
|
+
const e = v.querySelector(s);
|
|
71
|
+
return e && !o.contains(e) ? e : null;
|
|
59
72
|
};
|
|
60
|
-
return
|
|
73
|
+
return r(`svg defs > *#${n}`) || r(`svg > symbol#${n}`) || r(`*#${n}`);
|
|
61
74
|
};
|
|
62
|
-
if (!
|
|
63
|
-
const
|
|
64
|
-
for (;
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
const n =
|
|
75
|
+
if (!d.size) return;
|
|
76
|
+
const u = new Set(d), S = /* @__PURE__ */ new Set();
|
|
77
|
+
for (; u.size; ) {
|
|
78
|
+
const t = u.values().next().value;
|
|
79
|
+
if (u.delete(t), !t || c.has(t) || S.has(t)) continue;
|
|
80
|
+
const n = I(t);
|
|
68
81
|
if (!n) {
|
|
69
|
-
S.add(
|
|
82
|
+
S.add(t);
|
|
70
83
|
continue;
|
|
71
84
|
}
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
for (const
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
const
|
|
80
|
-
|
|
85
|
+
g || (g = w.createElementNS("http://www.w3.org/2000/svg", "defs"), l.appendChild(g));
|
|
86
|
+
const r = n.cloneNode(!0);
|
|
87
|
+
r.id || r.setAttribute("id", t), g.appendChild(r), S.add(t), c.add(t);
|
|
88
|
+
const s = [r, ...r.querySelectorAll("*")];
|
|
89
|
+
for (const e of s) {
|
|
90
|
+
const i = b(e);
|
|
91
|
+
if (i && i.startsWith("#")) {
|
|
92
|
+
const f = i.slice(1).trim();
|
|
93
|
+
f && !c.has(f) && !S.has(f) && u.add(f);
|
|
81
94
|
}
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
for (const
|
|
85
|
-
const k =
|
|
86
|
-
k &&
|
|
95
|
+
const a = e.getAttribute?.("style") || "";
|
|
96
|
+
a && h(a, u);
|
|
97
|
+
for (const f of p) {
|
|
98
|
+
const k = e.getAttribute?.(f);
|
|
99
|
+
k && h(k, u);
|
|
87
100
|
}
|
|
88
101
|
}
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
104
|
export {
|
|
92
|
-
|
|
105
|
+
R as inlineExternalDefsAndSymbols
|
|
93
106
|
};
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
/* 2025-
|
|
2
|
-
function
|
|
3
|
-
if (
|
|
1
|
+
/* 2025-12-17 18:26:57 */
|
|
2
|
+
function d(e, { fast: i = !1 } = {}) {
|
|
3
|
+
if (i) return e();
|
|
4
4
|
"requestIdleCallback" in window ? requestIdleCallback(e, { timeout: 50 }) : setTimeout(e, 1);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
function l() {
|
|
7
|
+
if (typeof navigator > "u") return !1;
|
|
8
|
+
const e = navigator.userAgent || "", i = e.toLowerCase(), t = i.includes("safari") && !i.includes("chrome") && !i.includes("crios") && // Chrome on iOS
|
|
9
|
+
!i.includes("fxios") && // Firefox on iOS
|
|
10
|
+
!i.includes("android"), s = /applewebkit/i.test(e), o = /mobile/i.test(e), a = !/safari/i.test(e), n = s && o && a, r = /(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e), c = /(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(
|
|
11
|
+
i
|
|
12
|
+
), u = /ipad|iphone|ipod/.test(i) && s;
|
|
13
|
+
return t || n || r || c || u;
|
|
9
14
|
}
|
|
10
15
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
d as idle,
|
|
17
|
+
l as isSafari
|
|
13
18
|
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* 2025-12-17 18:26:57 */
|
|
2
|
+
function M(e, t) {
|
|
3
|
+
if (!e || !t || !t.style) return;
|
|
4
|
+
const o = getComputedStyle(e);
|
|
5
|
+
try {
|
|
6
|
+
t.style.boxShadow = "none";
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
t.style.textShadow = "none";
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
t.style.outline = "none";
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
const s = (o.filter || "").replace(/\bblur\([^()]*\)\s*/gi, "").replace(/\bdrop-shadow\([^()]*\)\s*/gi, "").trim().replace(/\s+/g, " ");
|
|
18
|
+
try {
|
|
19
|
+
t.style.filter = s.length ? s : "none";
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function b(e) {
|
|
24
|
+
const t = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), o = [];
|
|
25
|
+
for (; t.nextNode(); ) o.push(t.currentNode);
|
|
26
|
+
for (const r of o) r.remove();
|
|
27
|
+
}
|
|
28
|
+
function g(e, t = {}) {
|
|
29
|
+
const { stripFrameworkDirectives: o = !0 } = t, r = /* @__PURE__ */ new Set(["xml", "xlink"]), s = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT);
|
|
30
|
+
for (; s.nextNode(); ) {
|
|
31
|
+
const n = s.currentNode;
|
|
32
|
+
for (const f of Array.from(n.attributes)) {
|
|
33
|
+
const i = f.name;
|
|
34
|
+
if (i.includes("@")) {
|
|
35
|
+
n.removeAttribute(i);
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (i.includes(":")) {
|
|
39
|
+
const l = i.split(":", 1)[0];
|
|
40
|
+
if (!r.has(l)) {
|
|
41
|
+
n.removeAttribute(i);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (o && (i.startsWith("x-") || // Alpine
|
|
46
|
+
i.startsWith("v-") || // Vue
|
|
47
|
+
i.startsWith(":") || // Vue/Alpine shorthand
|
|
48
|
+
i.startsWith("on:") || // Svelte
|
|
49
|
+
i.startsWith("bind:") || // Svelte
|
|
50
|
+
i.startsWith("let:") || // Svelte
|
|
51
|
+
i.startsWith("class:"))) {
|
|
52
|
+
n.removeAttribute(i);
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function k(e, t = {}) {
|
|
59
|
+
e && (g(e, t), b(e));
|
|
60
|
+
}
|
|
61
|
+
function x(e) {
|
|
62
|
+
try {
|
|
63
|
+
const t = e.getAttribute?.("style") || "";
|
|
64
|
+
return /\b(height|width|block-size|inline-size)\s*:/.test(t);
|
|
65
|
+
} catch {
|
|
66
|
+
return !1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function v(e) {
|
|
70
|
+
return e instanceof HTMLImageElement || e instanceof HTMLCanvasElement || e instanceof HTMLVideoElement || e instanceof HTMLIFrameElement || e instanceof SVGElement || e instanceof HTMLObjectElement || e instanceof HTMLEmbedElement;
|
|
71
|
+
}
|
|
72
|
+
function w(e, t) {
|
|
73
|
+
if (!(e instanceof Element) || x(e) || v(e)) return !1;
|
|
74
|
+
const o = t.position;
|
|
75
|
+
if (o === "absolute" || o === "fixed" || o === "sticky") return !1;
|
|
76
|
+
const r = t.display || "";
|
|
77
|
+
return !(r.includes("flex") || r.includes("grid") || r.startsWith("table") || t.transform && t.transform !== "none");
|
|
78
|
+
}
|
|
79
|
+
function H(e, t, o = /* @__PURE__ */ new Map()) {
|
|
80
|
+
function r(s, n) {
|
|
81
|
+
if (!(s instanceof Element) || !(n instanceof Element)) return;
|
|
82
|
+
const f = s.childElementCount > n.childElementCount, i = o.get(s) || getComputedStyle(s);
|
|
83
|
+
if (o.has(s) || o.set(s, i), f && w(s, i)) {
|
|
84
|
+
n.style.height || (n.style.height = "auto"), n.style.width || (n.style.width = "auto"), n.style.removeProperty("block-size"), n.style.removeProperty("inline-size"), n.style.minHeight || (n.style.minHeight = "0"), n.style.minWidth || (n.style.minWidth = "0"), n.style.maxHeight || (n.style.maxHeight = "none"), n.style.maxWidth || (n.style.maxWidth = "none");
|
|
85
|
+
const a = i.overflowY || i.overflowBlock || "visible", c = i.overflowX || i.overflowInline || "visible";
|
|
86
|
+
(a !== "visible" || c !== "visible") && (n.style.overflow = "visible");
|
|
87
|
+
}
|
|
88
|
+
const l = Array.from(s.children), u = Array.from(n.children);
|
|
89
|
+
for (let a = 0; a < Math.min(l.length, u.length); a++)
|
|
90
|
+
r(l[a], u[a]);
|
|
91
|
+
}
|
|
92
|
+
r(e, t);
|
|
93
|
+
}
|
|
94
|
+
function E(e) {
|
|
95
|
+
const t = getComputedStyle(e);
|
|
96
|
+
return !(t.display === "none" || t.position === "absolute" || t.position === "fixed" || t.position === "sticky" || (t.cssFloat || t.float || "none") !== "none" || t.transform && t.transform !== "none");
|
|
97
|
+
}
|
|
98
|
+
function W(e, t) {
|
|
99
|
+
if (!(e instanceof Element)) return !1;
|
|
100
|
+
if (e.getAttribute("data-capture") === "exclude" && t?.excludeMode === "remove")
|
|
101
|
+
return !0;
|
|
102
|
+
if (Array.isArray(t?.exclude))
|
|
103
|
+
for (const o of t.exclude)
|
|
104
|
+
try {
|
|
105
|
+
if (e.matches(o)) return t.excludeMode === "remove";
|
|
106
|
+
} catch {
|
|
107
|
+
}
|
|
108
|
+
return !1;
|
|
109
|
+
}
|
|
110
|
+
function S(e, t) {
|
|
111
|
+
const o = getComputedStyle(e), r = e.getBoundingClientRect();
|
|
112
|
+
let s = 1 / 0, n = -1 / 0, f = !1;
|
|
113
|
+
const i = Array.from(e.children);
|
|
114
|
+
for (const d of i) {
|
|
115
|
+
if (W(d, t) || !E(d)) continue;
|
|
116
|
+
const y = d.getBoundingClientRect(), m = y.top - r.top, h = y.bottom - r.top;
|
|
117
|
+
h <= m || (m < s && (s = m), h > n && (n = h), f = !0);
|
|
118
|
+
}
|
|
119
|
+
const l = f ? Math.max(0, n - s) : 0, u = parseFloat(o.borderTopWidth) || 0, a = parseFloat(o.borderBottomWidth) || 0, c = parseFloat(o.paddingTop) || 0, p = parseFloat(o.paddingBottom) || 0;
|
|
120
|
+
return u + a + c + p + l;
|
|
121
|
+
}
|
|
122
|
+
const A = (e, t = 3) => Number.isFinite(e) ? Math.round(e * 10 ** t) / 10 ** t : e;
|
|
123
|
+
export {
|
|
124
|
+
S as estimateKeptHeight,
|
|
125
|
+
A as limitDecimals,
|
|
126
|
+
b as removeAllComments,
|
|
127
|
+
g as sanitizeAttributesForXHTML,
|
|
128
|
+
k as sanitizeCloneForXHTML,
|
|
129
|
+
H as shrinkAutoSizeBoxes,
|
|
130
|
+
M as stripRootShadows
|
|
131
|
+
};
|