@zipify/wysiwyg 1.1.0 → 1.2.0
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/.release-it.json +2 -1
- package/config/build/lambda.config.js +39 -0
- package/dist/cli.js +1 -1
- package/dist/lambda-to-json.zip +0 -0
- package/dist/wysiwyg.mjs +10 -17
- package/lib/entry-lambda-to-json.js +8 -0
- package/lib/extensions/Alignment.js +10 -8
- package/lib/extensions/FontSize.js +8 -3
- package/lib/extensions/LineHeight.js +10 -4
- package/lib/extensions/__tests__/__snapshots__/Alignment.test.js.snap +3 -3
- package/lib/extensions/__tests__/__snapshots__/FontSize.test.js.snap +9 -9
- package/lib/extensions/__tests__/__snapshots__/LineHeight.test.js.snap +5 -5
- package/lib/services/NodeFactory.js +4 -1
- package/node_modules_lambda/.bin/acorn +4 -0
- package/node_modules_lambda/.bin/escodegen +77 -0
- package/node_modules_lambda/.bin/esgenerate +64 -0
- package/node_modules_lambda/.bin/esparse +139 -0
- package/node_modules_lambda/.bin/esvalidate +236 -0
- package/node_modules_lambda/.package-lock.json +602 -0
- package/node_modules_lambda/@tootallnate/once/LICENSE +21 -0
- package/node_modules_lambda/@tootallnate/once/README.md +93 -0
- package/node_modules_lambda/@tootallnate/once/dist/index.d.ts +7 -0
- package/node_modules_lambda/@tootallnate/once/dist/index.js +24 -0
- package/node_modules_lambda/@tootallnate/once/dist/index.js.map +1 -0
- package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.d.ts +231 -0
- package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js +3 -0
- package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js.map +1 -0
- package/node_modules_lambda/@tootallnate/once/dist/types.d.ts +17 -0
- package/node_modules_lambda/@tootallnate/once/dist/types.js +3 -0
- package/node_modules_lambda/@tootallnate/once/dist/types.js.map +1 -0
- package/node_modules_lambda/@tootallnate/once/package.json +52 -0
- package/node_modules_lambda/abab/LICENSE.md +13 -0
- package/node_modules_lambda/abab/README.md +51 -0
- package/node_modules_lambda/abab/index.d.ts +2 -0
- package/node_modules_lambda/abab/index.js +9 -0
- package/node_modules_lambda/abab/lib/atob.js +101 -0
- package/node_modules_lambda/abab/lib/btoa.js +62 -0
- package/node_modules_lambda/abab/package.json +42 -0
- package/node_modules_lambda/acorn/CHANGELOG.md +798 -0
- package/node_modules_lambda/acorn/LICENSE +21 -0
- package/node_modules_lambda/acorn/README.md +273 -0
- package/node_modules_lambda/acorn/bin/acorn +4 -0
- package/node_modules_lambda/acorn/dist/acorn.d.ts +252 -0
- package/node_modules_lambda/acorn/dist/acorn.js +5608 -0
- package/node_modules_lambda/acorn/dist/acorn.mjs +5577 -0
- package/node_modules_lambda/acorn/dist/acorn.mjs.d.ts +2 -0
- package/node_modules_lambda/acorn/dist/bin.js +91 -0
- package/node_modules_lambda/acorn/package.json +50 -0
- package/node_modules_lambda/acorn-globals/LICENSE +19 -0
- package/node_modules_lambda/acorn-globals/README.md +81 -0
- package/node_modules_lambda/acorn-globals/index.js +179 -0
- package/node_modules_lambda/acorn-globals/node_modules/.bin/acorn +4 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/CHANGELOG.md +620 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/LICENSE +21 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/README.md +269 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/bin/acorn +4 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.d.ts +209 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js +5186 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js.map +1 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs +5155 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +1 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/bin.js +64 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/package.json +35 -0
- package/node_modules_lambda/acorn-globals/package.json +35 -0
- package/node_modules_lambda/acorn-walk/CHANGELOG.md +131 -0
- package/node_modules_lambda/acorn-walk/LICENSE +19 -0
- package/node_modules_lambda/acorn-walk/README.md +126 -0
- package/node_modules_lambda/acorn-walk/dist/walk.d.ts +112 -0
- package/node_modules_lambda/acorn-walk/dist/walk.js +463 -0
- package/node_modules_lambda/acorn-walk/dist/walk.js.map +1 -0
- package/node_modules_lambda/acorn-walk/dist/walk.mjs +443 -0
- package/node_modules_lambda/acorn-walk/dist/walk.mjs.map +1 -0
- package/node_modules_lambda/acorn-walk/package.json +34 -0
- package/node_modules_lambda/agent-base/README.md +145 -0
- package/node_modules_lambda/agent-base/dist/src/index.d.ts +78 -0
- package/node_modules_lambda/agent-base/dist/src/index.js +203 -0
- package/node_modules_lambda/agent-base/dist/src/index.js.map +1 -0
- package/node_modules_lambda/agent-base/dist/src/promisify.d.ts +4 -0
- package/node_modules_lambda/agent-base/dist/src/promisify.js +18 -0
- package/node_modules_lambda/agent-base/dist/src/promisify.js.map +1 -0
- package/node_modules_lambda/agent-base/package.json +64 -0
- package/node_modules_lambda/agent-base/src/index.ts +345 -0
- package/node_modules_lambda/agent-base/src/promisify.ts +33 -0
- package/node_modules_lambda/asynckit/LICENSE +21 -0
- package/node_modules_lambda/asynckit/README.md +233 -0
- package/node_modules_lambda/asynckit/bench.js +76 -0
- package/node_modules_lambda/asynckit/index.js +6 -0
- package/node_modules_lambda/asynckit/lib/abort.js +29 -0
- package/node_modules_lambda/asynckit/lib/async.js +34 -0
- package/node_modules_lambda/asynckit/lib/defer.js +26 -0
- package/node_modules_lambda/asynckit/lib/iterate.js +75 -0
- package/node_modules_lambda/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules_lambda/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules_lambda/asynckit/lib/readable_serial.js +25 -0
- package/node_modules_lambda/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules_lambda/asynckit/lib/state.js +37 -0
- package/node_modules_lambda/asynckit/lib/streamify.js +141 -0
- package/node_modules_lambda/asynckit/lib/terminator.js +29 -0
- package/node_modules_lambda/asynckit/package.json +63 -0
- package/node_modules_lambda/asynckit/parallel.js +43 -0
- package/node_modules_lambda/asynckit/serial.js +17 -0
- package/node_modules_lambda/asynckit/serialOrdered.js +75 -0
- package/node_modules_lambda/asynckit/stream.js +21 -0
- package/node_modules_lambda/browser-process-hrtime/LICENSE +9 -0
- package/node_modules_lambda/browser-process-hrtime/README.md +27 -0
- package/node_modules_lambda/browser-process-hrtime/index.d.ts +4 -0
- package/node_modules_lambda/browser-process-hrtime/index.js +28 -0
- package/node_modules_lambda/browser-process-hrtime/package.json +15 -0
- package/node_modules_lambda/combined-stream/License +19 -0
- package/node_modules_lambda/combined-stream/Readme.md +138 -0
- package/node_modules_lambda/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules_lambda/combined-stream/package.json +25 -0
- package/node_modules_lambda/combined-stream/yarn.lock +17 -0
- package/node_modules_lambda/cssom/LICENSE.txt +20 -0
- package/node_modules_lambda/cssom/README.mdown +67 -0
- package/node_modules_lambda/cssom/lib/CSSConditionRule.js +25 -0
- package/node_modules_lambda/cssom/lib/CSSDocumentRule.js +39 -0
- package/node_modules_lambda/cssom/lib/CSSFontFaceRule.js +36 -0
- package/node_modules_lambda/cssom/lib/CSSGroupingRule.js +68 -0
- package/node_modules_lambda/cssom/lib/CSSHostRule.js +37 -0
- package/node_modules_lambda/cssom/lib/CSSImportRule.js +132 -0
- package/node_modules_lambda/cssom/lib/CSSKeyframeRule.js +37 -0
- package/node_modules_lambda/cssom/lib/CSSKeyframesRule.js +39 -0
- package/node_modules_lambda/cssom/lib/CSSMediaRule.js +53 -0
- package/node_modules_lambda/cssom/lib/CSSOM.js +3 -0
- package/node_modules_lambda/cssom/lib/CSSRule.js +43 -0
- package/node_modules_lambda/cssom/lib/CSSStyleDeclaration.js +148 -0
- package/node_modules_lambda/cssom/lib/CSSStyleRule.js +190 -0
- package/node_modules_lambda/cssom/lib/CSSStyleSheet.js +88 -0
- package/node_modules_lambda/cssom/lib/CSSSupportsRule.js +36 -0
- package/node_modules_lambda/cssom/lib/CSSValue.js +43 -0
- package/node_modules_lambda/cssom/lib/CSSValueExpression.js +344 -0
- package/node_modules_lambda/cssom/lib/MatcherList.js +62 -0
- package/node_modules_lambda/cssom/lib/MediaList.js +61 -0
- package/node_modules_lambda/cssom/lib/StyleSheet.js +17 -0
- package/node_modules_lambda/cssom/lib/clone.js +74 -0
- package/node_modules_lambda/cssom/lib/index.js +23 -0
- package/node_modules_lambda/cssom/lib/parse.js +465 -0
- package/node_modules_lambda/cssom/package.json +18 -0
- package/node_modules_lambda/cssstyle/LICENSE +20 -0
- package/node_modules_lambda/cssstyle/README.md +15 -0
- package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.js +260 -0
- package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.test.js +556 -0
- package/node_modules_lambda/cssstyle/lib/allExtraProperties.js +67 -0
- package/node_modules_lambda/cssstyle/lib/allProperties.js +462 -0
- package/node_modules_lambda/cssstyle/lib/allWebkitProperties.js +194 -0
- package/node_modules_lambda/cssstyle/lib/constants.js +6 -0
- package/node_modules_lambda/cssstyle/lib/implementedProperties.js +90 -0
- package/node_modules_lambda/cssstyle/lib/named_colors.json +152 -0
- package/node_modules_lambda/cssstyle/lib/parsers.js +722 -0
- package/node_modules_lambda/cssstyle/lib/parsers.test.js +139 -0
- package/node_modules_lambda/cssstyle/lib/properties/azimuth.js +67 -0
- package/node_modules_lambda/cssstyle/lib/properties/background.js +19 -0
- package/node_modules_lambda/cssstyle/lib/properties/backgroundAttachment.js +24 -0
- package/node_modules_lambda/cssstyle/lib/properties/backgroundColor.js +36 -0
- package/node_modules_lambda/cssstyle/lib/properties/backgroundImage.js +32 -0
- package/node_modules_lambda/cssstyle/lib/properties/backgroundPosition.js +58 -0
- package/node_modules_lambda/cssstyle/lib/properties/backgroundRepeat.js +32 -0
- package/node_modules_lambda/cssstyle/lib/properties/border.js +33 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderBottom.js +17 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderBottomColor.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderBottomStyle.js +21 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderBottomWidth.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderCollapse.js +26 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderColor.js +30 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderLeft.js +17 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderLeftColor.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderLeftStyle.js +21 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderLeftWidth.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderRight.js +17 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderRightColor.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderRightStyle.js +21 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderRightWidth.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderSpacing.js +41 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderStyle.js +38 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderTop.js +17 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderTopColor.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderTopStyle.js +21 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderTopWidth.js +17 -0
- package/node_modules_lambda/cssstyle/lib/properties/borderWidth.js +46 -0
- package/node_modules_lambda/cssstyle/lib/properties/bottom.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/clear.js +16 -0
- package/node_modules_lambda/cssstyle/lib/properties/clip.js +47 -0
- package/node_modules_lambda/cssstyle/lib/properties/color.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/cssFloat.js +12 -0
- package/node_modules_lambda/cssstyle/lib/properties/flex.js +45 -0
- package/node_modules_lambda/cssstyle/lib/properties/flexBasis.js +28 -0
- package/node_modules_lambda/cssstyle/lib/properties/flexGrow.js +19 -0
- package/node_modules_lambda/cssstyle/lib/properties/flexShrink.js +19 -0
- package/node_modules_lambda/cssstyle/lib/properties/float.js +12 -0
- package/node_modules_lambda/cssstyle/lib/properties/floodColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/font.js +43 -0
- package/node_modules_lambda/cssstyle/lib/properties/fontFamily.js +33 -0
- package/node_modules_lambda/cssstyle/lib/properties/fontSize.js +38 -0
- package/node_modules_lambda/cssstyle/lib/properties/fontStyle.js +18 -0
- package/node_modules_lambda/cssstyle/lib/properties/fontVariant.js +18 -0
- package/node_modules_lambda/cssstyle/lib/properties/fontWeight.js +33 -0
- package/node_modules_lambda/cssstyle/lib/properties/height.js +24 -0
- package/node_modules_lambda/cssstyle/lib/properties/left.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/lightingColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/lineHeight.js +26 -0
- package/node_modules_lambda/cssstyle/lib/properties/margin.js +68 -0
- package/node_modules_lambda/cssstyle/lib/properties/marginBottom.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/marginLeft.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/marginRight.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/marginTop.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/opacity.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/outlineColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/padding.js +61 -0
- package/node_modules_lambda/cssstyle/lib/properties/paddingBottom.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/paddingLeft.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/paddingRight.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/paddingTop.js +13 -0
- package/node_modules_lambda/cssstyle/lib/properties/right.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/stopColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/textLineThroughColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/textOverlineColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/textUnderlineColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/top.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
- package/node_modules_lambda/cssstyle/lib/properties/width.js +24 -0
- package/node_modules_lambda/cssstyle/lib/properties.js +1833 -0
- package/node_modules_lambda/cssstyle/lib/utils/colorSpace.js +21 -0
- package/node_modules_lambda/cssstyle/lib/utils/getBasicPropertyDescriptor.js +14 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/LICENSE.txt +20 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/README.mdown +67 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSHostRule.js +37 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSImportRule.js +132 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSOM.js +3 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSRule.js +43 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValue.js +43 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MatcherList.js +62 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MediaList.js +61 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/StyleSheet.js +17 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/clone.js +82 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/index.js +21 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/parse.js +464 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/package.json +18 -0
- package/node_modules_lambda/cssstyle/package.json +72 -0
- package/node_modules_lambda/data-urls/LICENSE.txt +7 -0
- package/node_modules_lambda/data-urls/README.md +62 -0
- package/node_modules_lambda/data-urls/lib/parser.js +69 -0
- package/node_modules_lambda/data-urls/lib/utils.js +18 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/README.md +106 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/index.js +27 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/Function.js +42 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL-impl.js +209 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL.js +442 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams-impl.js +130 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams.js +472 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/VoidFunction.js +26 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/encoding.js +16 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/infra.js +26 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/percent-encoding.js +142 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/url-state-machine.js +1244 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/urlencoded.js +106 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/utils.js +190 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/package.json +58 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
- package/node_modules_lambda/data-urls/package.json +54 -0
- package/node_modules_lambda/debug/LICENSE +20 -0
- package/node_modules_lambda/debug/README.md +481 -0
- package/node_modules_lambda/debug/package.json +59 -0
- package/node_modules_lambda/debug/src/browser.js +269 -0
- package/node_modules_lambda/debug/src/common.js +274 -0
- package/node_modules_lambda/debug/src/index.js +10 -0
- package/node_modules_lambda/debug/src/node.js +263 -0
- package/node_modules_lambda/decimal.js/CHANGELOG.md +231 -0
- package/node_modules_lambda/decimal.js/LICENCE.md +23 -0
- package/node_modules_lambda/decimal.js/README.md +246 -0
- package/node_modules_lambda/decimal.js/decimal.d.ts +300 -0
- package/node_modules_lambda/decimal.js/decimal.js +4934 -0
- package/node_modules_lambda/decimal.js/decimal.mjs +4898 -0
- package/node_modules_lambda/decimal.js/package.json +40 -0
- package/node_modules_lambda/deep-is/.travis.yml +5 -0
- package/node_modules_lambda/deep-is/LICENSE +22 -0
- package/node_modules_lambda/deep-is/README.markdown +70 -0
- package/node_modules_lambda/deep-is/example/cmp.js +11 -0
- package/node_modules_lambda/deep-is/index.js +102 -0
- package/node_modules_lambda/deep-is/package.json +58 -0
- package/node_modules_lambda/deep-is/test/NaN.js +16 -0
- package/node_modules_lambda/deep-is/test/cmp.js +23 -0
- package/node_modules_lambda/deep-is/test/neg-vs-pos-0.js +15 -0
- package/node_modules_lambda/delayed-stream/License +19 -0
- package/node_modules_lambda/delayed-stream/Makefile +7 -0
- package/node_modules_lambda/delayed-stream/Readme.md +141 -0
- package/node_modules_lambda/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules_lambda/delayed-stream/package.json +27 -0
- package/node_modules_lambda/domexception/LICENSE.txt +21 -0
- package/node_modules_lambda/domexception/README.md +31 -0
- package/node_modules_lambda/domexception/index.js +7 -0
- package/node_modules_lambda/domexception/lib/DOMException-impl.js +22 -0
- package/node_modules_lambda/domexception/lib/DOMException.js +222 -0
- package/node_modules_lambda/domexception/lib/Function.js +42 -0
- package/node_modules_lambda/domexception/lib/VoidFunction.js +26 -0
- package/node_modules_lambda/domexception/lib/legacy-error-codes.json +24 -0
- package/node_modules_lambda/domexception/lib/utils.js +190 -0
- package/node_modules_lambda/domexception/package.json +42 -0
- package/node_modules_lambda/domexception/webidl2js-wrapper.js +15 -0
- package/node_modules_lambda/escodegen/LICENSE.BSD +21 -0
- package/node_modules_lambda/escodegen/README.md +84 -0
- package/node_modules_lambda/escodegen/bin/escodegen.js +77 -0
- package/node_modules_lambda/escodegen/bin/esgenerate.js +64 -0
- package/node_modules_lambda/escodegen/escodegen.js +2647 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/.jshintrc +16 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/README.md +153 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/estraverse.js +805 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/gulpfile.js +70 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/package.json +40 -0
- package/node_modules_lambda/escodegen/node_modules/levn/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/levn/README.md +196 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/cast.js +298 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/coerce.js +285 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/index.js +22 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/parse-string.js +113 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/parse.js +102 -0
- package/node_modules_lambda/escodegen/node_modules/levn/package.json +47 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/CHANGELOG.md +56 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/README.md +238 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/help.js +260 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/index.js +465 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/util.js +54 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/package.json +44 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/CHANGELOG.md +99 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/README.md +15 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Func.js +65 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/List.js +686 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Num.js +130 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Obj.js +154 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Str.js +92 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/index.js +178 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/package.json +52 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/CHANGELOG.md +301 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/LICENSE +28 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/README.md +742 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/util.js +488 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/package.json +73 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/source-map.js +8 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/README.md +210 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/check.js +126 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/index.js +16 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/parse-type.js +196 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/package.json +40 -0
- package/node_modules_lambda/escodegen/package.json +62 -0
- package/node_modules_lambda/esprima/ChangeLog +235 -0
- package/node_modules_lambda/esprima/LICENSE.BSD +21 -0
- package/node_modules_lambda/esprima/README.md +46 -0
- package/node_modules_lambda/esprima/bin/esparse.js +139 -0
- package/node_modules_lambda/esprima/bin/esvalidate.js +236 -0
- package/node_modules_lambda/esprima/dist/esprima.js +6709 -0
- package/node_modules_lambda/esprima/package.json +112 -0
- package/node_modules_lambda/esutils/LICENSE.BSD +19 -0
- package/node_modules_lambda/esutils/README.md +174 -0
- package/node_modules_lambda/esutils/lib/ast.js +144 -0
- package/node_modules_lambda/esutils/lib/code.js +135 -0
- package/node_modules_lambda/esutils/lib/keyword.js +165 -0
- package/node_modules_lambda/esutils/lib/utils.js +33 -0
- package/node_modules_lambda/esutils/package.json +44 -0
- package/node_modules_lambda/fast-levenshtein/LICENSE.md +25 -0
- package/node_modules_lambda/fast-levenshtein/README.md +104 -0
- package/node_modules_lambda/fast-levenshtein/levenshtein.js +136 -0
- package/node_modules_lambda/fast-levenshtein/package.json +39 -0
- package/node_modules_lambda/form-data/License +19 -0
- package/node_modules_lambda/form-data/README.md.bak +358 -0
- package/node_modules_lambda/form-data/Readme.md +358 -0
- package/node_modules_lambda/form-data/index.d.ts +62 -0
- package/node_modules_lambda/form-data/lib/browser.js +2 -0
- package/node_modules_lambda/form-data/lib/form_data.js +501 -0
- package/node_modules_lambda/form-data/lib/populate.js +10 -0
- package/node_modules_lambda/form-data/package.json +68 -0
- package/node_modules_lambda/html-encoding-sniffer/LICENSE.txt +7 -0
- package/node_modules_lambda/html-encoding-sniffer/README.md +40 -0
- package/node_modules_lambda/html-encoding-sniffer/lib/html-encoding-sniffer.js +295 -0
- package/node_modules_lambda/html-encoding-sniffer/package.json +31 -0
- package/node_modules_lambda/http-proxy-agent/README.md +74 -0
- package/node_modules_lambda/http-proxy-agent/dist/agent.d.ts +32 -0
- package/node_modules_lambda/http-proxy-agent/dist/agent.js +145 -0
- package/node_modules_lambda/http-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules_lambda/http-proxy-agent/dist/index.d.ts +21 -0
- package/node_modules_lambda/http-proxy-agent/dist/index.js +14 -0
- package/node_modules_lambda/http-proxy-agent/dist/index.js.map +1 -0
- package/node_modules_lambda/http-proxy-agent/package.json +57 -0
- package/node_modules_lambda/https-proxy-agent/README.md +137 -0
- package/node_modules_lambda/https-proxy-agent/dist/agent.d.ts +30 -0
- package/node_modules_lambda/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules_lambda/https-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules_lambda/https-proxy-agent/dist/index.d.ts +23 -0
- package/node_modules_lambda/https-proxy-agent/dist/index.js +14 -0
- package/node_modules_lambda/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules_lambda/https-proxy-agent/package.json +56 -0
- package/node_modules_lambda/is-potential-custom-element-name/LICENSE-MIT.txt +20 -0
- package/node_modules_lambda/is-potential-custom-element-name/README.md +40 -0
- package/node_modules_lambda/is-potential-custom-element-name/index.js +9 -0
- package/node_modules_lambda/is-potential-custom-element-name/package.json +35 -0
- package/node_modules_lambda/jsdom/LICENSE.txt +22 -0
- package/node_modules_lambda/jsdom/README.md +522 -0
- package/node_modules_lambda/jsdom/lib/api.js +333 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/Window.js +933 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/default-stylesheet.js +789 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/js-globals.json +307 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/html.js +224 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/index.js +37 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/xml.js +202 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +8 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +95 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/request-manager.js +33 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-loader.js +142 -0
- package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-queue.js +142 -0
- package/node_modules_lambda/jsdom/lib/jsdom/level2/style.js +57 -0
- package/node_modules_lambda/jsdom/lib/jsdom/level3/xpath.js +1874 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +69 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/Attr-impl.js +60 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/attributes.js +312 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +265 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/documents.js +15 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +58 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +29 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/serialization.js +45 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/Event-impl.js +197 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +18 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventTarget-impl.js +405 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/InputEvent-impl.js +11 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +49 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/UIEvent-impl.js +59 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/Headers-impl.js +170 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-list.js +54 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-types.js +103 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/Blob-impl.js +93 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/File-impl.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileList-impl.js +15 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +130 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortController.js +143 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortSignal.js +184 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbstractRange.js +171 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +44 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +28 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Attr.js +217 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BarProp.js +117 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BinaryType.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Blob.js +203 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobCallback.js +30 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +42 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CDATASection.js +109 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CharacterData.js +453 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEvent.js +168 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEventInit.js +65 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Comment.js +120 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEvent.js +219 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +32 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +34 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +242 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEvent.js +206 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEventInit.js +32 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMImplementation.js +237 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMParser.js +140 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMStringMap.js +323 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMTokenList.js +563 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Document.js +3593 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentFragment.js +334 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentType.js +252 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Element.js +1718 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +26 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +29 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EndingType.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEvent.js +192 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +92 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Event.js +430 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +36 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventInit.js +58 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListener.js +35 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +28 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventModifierInit.js +221 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventTarget.js +259 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/External.js +130 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/File.js +177 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileList.js +324 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +33 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileReader.js +468 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEvent.js +144 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEventInit.js +36 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FormData.js +452 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Function.js +42 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +31 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +1023 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +822 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +110 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +193 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +877 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +522 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +304 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCollection.js +378 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +156 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +125 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +156 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +156 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +156 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLElement.js +2549 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +371 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +329 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +236 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +501 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +494 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +708 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +320 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +110 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +670 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +870 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +1875 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +199 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +179 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +166 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +542 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +168 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +546 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +888 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +156 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +276 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +365 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLModElement.js +207 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +281 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +921 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +197 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +376 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +537 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +392 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +276 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +110 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +158 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +218 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +166 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +459 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +1013 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +192 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +330 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +110 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +207 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +700 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +364 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +799 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +414 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +346 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +123 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +1171 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +153 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +152 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +356 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +197 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +109 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +329 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +157 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +50 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Headers.js +408 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/History.js +266 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEvent.js +168 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEventInit.js +68 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +445 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +116 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Location.js +404 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEvent.js +317 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEventInit.js +100 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeType.js +156 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +352 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEvent.js +499 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEventInit.js +111 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationCallback.js +34 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserver.js +178 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +121 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationRecord.js +229 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +553 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Navigator.js +326 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Node.js +763 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeFilter.js +75 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeIterator.js +207 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeList.js +328 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +42 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +56 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +144 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +35 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Performance.js +142 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Plugin.js +385 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PluginArray.js +362 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEvent.js +144 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +122 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEvent.js +170 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +65 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Range.js +641 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +149 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +64 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGElement.js +2227 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +139 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGNumber.js +132 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +737 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGStringList.js +537 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +109 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Screen.js +180 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +45 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +14 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollOptions.js +30 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Selection.js +569 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SelectionMode.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRoot.js +187 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +30 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRange.js +123 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +72 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Storage.js +423 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEvent.js +318 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEventInit.js +99 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StyleSheetList.js +326 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SupportedType.js +18 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Text.js +170 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TextTrackKind.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEvent.js +222 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEventInit.js +89 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TreeWalker.js +255 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEvent.js +235 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEventInit.js +62 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ValidityState.js +249 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VisibilityState.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VoidFunction.js +26 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WebSocket.js +476 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEvent.js +191 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEventInit.js +71 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLDocument.js +109 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +655 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +334 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +14 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +109 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLSerializer.js +132 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/generated/utils.js +190 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/agent-factory.js +15 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/binary-data.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-element.js +320 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +188 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/custom-elements.js +270 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/dates-and-times.js +270 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/details.js +15 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/document-base-url.js +54 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/events.js +24 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/focusing.js +104 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/form-controls.js +306 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/html-constructor.js +78 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/http-request.js +254 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/internal-constants.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/json.js +12 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/mutation-observers.js +198 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/namespaces.js +15 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/node.js +68 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/ordered-set.js +104 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/page-transition-event.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +76 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/selectors.js +47 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/shadow-dom.js +285 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/strings.js +148 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/style-rules.js +114 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/stylesheets.js +113 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/render.js +46 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/text.js +19 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/traversal.js +72 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/validate-names.js +65 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +25 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/interfaces.js +217 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/named-properties-window.js +141 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/node-document-position.js +10 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/node-type.js +16 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/node.js +331 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Comment-impl.js +20 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Document-impl.js +946 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Element-impl.js +582 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +25 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +95 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +17 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +130 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +160 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +232 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +261 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +17 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +371 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +132 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1129 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +101 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +85 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +74 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +265 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +74 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +272 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Node-impl.js +1159 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +42 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +40 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Text-impl.js +96 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +52 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/post-message.js +39 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/Range-impl.js +897 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/StaticRange-impl.js +39 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/range/boundary-point.js +47 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/selection/Selection-impl.js +342 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +38 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGListBase.js +195 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +127 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/helpers.js +44 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +175 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +328 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/BarProp-impl.js +10 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/External-impl.js +9 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/History-impl.js +134 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/Location-impl.js +238 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/Screen-impl.js +13 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/SessionHistory.js +163 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/window/navigation.js +85 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/FormData-impl.js +171 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1023 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +60 -0
- package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-utils.js +438 -0
- package/node_modules_lambda/jsdom/lib/jsdom/named-properties-tracker.js +158 -0
- package/node_modules_lambda/jsdom/lib/jsdom/utils.js +165 -0
- package/node_modules_lambda/jsdom/lib/jsdom/virtual-console.js +34 -0
- package/node_modules_lambda/jsdom/lib/jsdom/vm-shim.js +106 -0
- package/node_modules_lambda/jsdom/package.json +116 -0
- package/node_modules_lambda/mime-db/HISTORY.md +507 -0
- package/node_modules_lambda/mime-db/LICENSE +23 -0
- package/node_modules_lambda/mime-db/README.md +100 -0
- package/node_modules_lambda/mime-db/db.json +8519 -0
- package/node_modules_lambda/mime-db/index.js +12 -0
- package/node_modules_lambda/mime-db/package.json +60 -0
- package/node_modules_lambda/mime-types/HISTORY.md +397 -0
- package/node_modules_lambda/mime-types/LICENSE +23 -0
- package/node_modules_lambda/mime-types/README.md +113 -0
- package/node_modules_lambda/mime-types/index.js +188 -0
- package/node_modules_lambda/mime-types/package.json +44 -0
- package/node_modules_lambda/ms/index.js +162 -0
- package/node_modules_lambda/ms/license.md +21 -0
- package/node_modules_lambda/ms/package.json +37 -0
- package/node_modules_lambda/ms/readme.md +60 -0
- package/node_modules_lambda/nwsapi/LICENSE +22 -0
- package/node_modules_lambda/nwsapi/README.md +132 -0
- package/node_modules_lambda/nwsapi/dist/lint.log +0 -0
- package/node_modules_lambda/nwsapi/package.json +38 -0
- package/node_modules_lambda/nwsapi/src/modules/nwsapi-jquery.js +135 -0
- package/node_modules_lambda/nwsapi/src/modules/nwsapi-traversal.js +90 -0
- package/node_modules_lambda/nwsapi/src/nwsapi.js +1800 -0
- package/node_modules_lambda/parse5/LICENSE +19 -0
- package/node_modules_lambda/parse5/README.md +38 -0
- package/node_modules_lambda/parse5/lib/common/doctype.js +162 -0
- package/node_modules_lambda/parse5/lib/common/error-codes.js +65 -0
- package/node_modules_lambda/parse5/lib/common/foreign-content.js +265 -0
- package/node_modules_lambda/parse5/lib/common/html.js +272 -0
- package/node_modules_lambda/parse5/lib/common/unicode.js +109 -0
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/mixin-base.js +43 -0
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/parser-mixin.js +52 -0
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +24 -0
- package/node_modules_lambda/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +17 -0
- package/node_modules_lambda/parse5/lib/extensions/location-info/open-element-stack-mixin.js +35 -0
- package/node_modules_lambda/parse5/lib/extensions/location-info/parser-mixin.js +223 -0
- package/node_modules_lambda/parse5/lib/extensions/location-info/tokenizer-mixin.js +146 -0
- package/node_modules_lambda/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +64 -0
- package/node_modules_lambda/parse5/lib/index.js +29 -0
- package/node_modules_lambda/parse5/lib/parser/formatting-element-list.js +181 -0
- package/node_modules_lambda/parse5/lib/parser/index.js +2956 -0
- package/node_modules_lambda/parse5/lib/parser/open-element-stack.js +482 -0
- package/node_modules_lambda/parse5/lib/serializer/index.js +176 -0
- package/node_modules_lambda/parse5/lib/tokenizer/index.js +2196 -0
- package/node_modules_lambda/parse5/lib/tokenizer/named-entity-data.js +5 -0
- package/node_modules_lambda/parse5/lib/tokenizer/preprocessor.js +159 -0
- package/node_modules_lambda/parse5/lib/tree-adapters/default.js +221 -0
- package/node_modules_lambda/parse5/lib/utils/merge-options.js +13 -0
- package/node_modules_lambda/parse5/lib/utils/mixin.js +39 -0
- package/node_modules_lambda/parse5/package.json +35 -0
- package/node_modules_lambda/psl/LICENSE +9 -0
- package/node_modules_lambda/psl/README.md +215 -0
- package/node_modules_lambda/psl/browserstack-logo.svg +90 -0
- package/node_modules_lambda/psl/data/rules.json +8834 -0
- package/node_modules_lambda/psl/dist/psl.js +9645 -0
- package/node_modules_lambda/psl/dist/psl.min.js +1 -0
- package/node_modules_lambda/psl/index.js +269 -0
- package/node_modules_lambda/psl/package.json +44 -0
- package/node_modules_lambda/punycode/LICENSE-MIT.txt +20 -0
- package/node_modules_lambda/punycode/README.md +122 -0
- package/node_modules_lambda/punycode/package.json +58 -0
- package/node_modules_lambda/punycode/punycode.es6.js +441 -0
- package/node_modules_lambda/punycode/punycode.js +440 -0
- package/node_modules_lambda/safer-buffer/LICENSE +21 -0
- package/node_modules_lambda/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules_lambda/safer-buffer/Readme.md +156 -0
- package/node_modules_lambda/safer-buffer/dangerous.js +58 -0
- package/node_modules_lambda/safer-buffer/package.json +34 -0
- package/node_modules_lambda/safer-buffer/safer.js +77 -0
- package/node_modules_lambda/safer-buffer/tests.js +406 -0
- package/node_modules_lambda/saxes/README.md +323 -0
- package/node_modules_lambda/saxes/package.json +70 -0
- package/node_modules_lambda/saxes/saxes.d.ts +635 -0
- package/node_modules_lambda/saxes/saxes.js +2064 -0
- package/node_modules_lambda/saxes/saxes.js.map +1 -0
- package/node_modules_lambda/symbol-tree/LICENSE +21 -0
- package/node_modules_lambda/symbol-tree/README.md +545 -0
- package/node_modules_lambda/symbol-tree/lib/SymbolTree.js +838 -0
- package/node_modules_lambda/symbol-tree/lib/SymbolTreeNode.js +54 -0
- package/node_modules_lambda/symbol-tree/lib/TreeIterator.js +69 -0
- package/node_modules_lambda/symbol-tree/lib/TreePosition.js +11 -0
- package/node_modules_lambda/symbol-tree/package.json +47 -0
- package/node_modules_lambda/tough-cookie/LICENSE +12 -0
- package/node_modules_lambda/tough-cookie/README.md +582 -0
- package/node_modules_lambda/tough-cookie/lib/cookie.js +1671 -0
- package/node_modules_lambda/tough-cookie/lib/memstore.js +190 -0
- package/node_modules_lambda/tough-cookie/lib/pathMatch.js +61 -0
- package/node_modules_lambda/tough-cookie/lib/permuteDomain.js +70 -0
- package/node_modules_lambda/tough-cookie/lib/pubsuffix-psl.js +38 -0
- package/node_modules_lambda/tough-cookie/lib/store.js +76 -0
- package/node_modules_lambda/tough-cookie/lib/version.js +2 -0
- package/node_modules_lambda/tough-cookie/package.json +109 -0
- package/node_modules_lambda/tr46/LICENSE.md +21 -0
- package/node_modules_lambda/tr46/README.md +78 -0
- package/node_modules_lambda/tr46/index.js +298 -0
- package/node_modules_lambda/tr46/lib/mappingTable.json +1 -0
- package/node_modules_lambda/tr46/lib/regexes.js +29 -0
- package/node_modules_lambda/tr46/lib/statusMapping.js +11 -0
- package/node_modules_lambda/tr46/package.json +47 -0
- package/node_modules_lambda/universalify/LICENSE +20 -0
- package/node_modules_lambda/universalify/README.md +76 -0
- package/node_modules_lambda/universalify/index.js +25 -0
- package/node_modules_lambda/universalify/package.json +34 -0
- package/node_modules_lambda/w3c-hr-time/CHANGELOG.md +19 -0
- package/node_modules_lambda/w3c-hr-time/LICENSE.md +21 -0
- package/node_modules_lambda/w3c-hr-time/README.md +130 -0
- package/node_modules_lambda/w3c-hr-time/index.js +11 -0
- package/node_modules_lambda/w3c-hr-time/lib/calculate-clock-offset.js +39 -0
- package/node_modules_lambda/w3c-hr-time/lib/clock-is-accurate.js +61 -0
- package/node_modules_lambda/w3c-hr-time/lib/global-monotonic-clock.js +10 -0
- package/node_modules_lambda/w3c-hr-time/lib/performance.js +53 -0
- package/node_modules_lambda/w3c-hr-time/lib/utils.js +11 -0
- package/node_modules_lambda/w3c-hr-time/package.json +26 -0
- package/node_modules_lambda/w3c-xmlserializer/LICENSE.md +25 -0
- package/node_modules_lambda/w3c-xmlserializer/README.md +41 -0
- package/node_modules_lambda/w3c-xmlserializer/lib/attributes.js +125 -0
- package/node_modules_lambda/w3c-xmlserializer/lib/constants.js +44 -0
- package/node_modules_lambda/w3c-xmlserializer/lib/serialize.js +365 -0
- package/node_modules_lambda/w3c-xmlserializer/package.json +33 -0
- package/node_modules_lambda/webidl-conversions/LICENSE.md +12 -0
- package/node_modules_lambda/webidl-conversions/README.md +99 -0
- package/node_modules_lambda/webidl-conversions/lib/index.js +450 -0
- package/node_modules_lambda/webidl-conversions/package.json +35 -0
- package/node_modules_lambda/whatwg-encoding/LICENSE.txt +7 -0
- package/node_modules_lambda/whatwg-encoding/README.md +50 -0
- package/node_modules_lambda/whatwg-encoding/lib/labels-to-names.json +216 -0
- package/node_modules_lambda/whatwg-encoding/lib/supported-names.json +37 -0
- package/node_modules_lambda/whatwg-encoding/lib/whatwg-encoding.js +47 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/.github/dependabot.yml +11 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/Changelog.md +212 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/README.md +130 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +198 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +197 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf32.js +319 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.js +180 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +109 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/package.json +44 -0
- package/node_modules_lambda/whatwg-encoding/package.json +33 -0
- package/node_modules_lambda/whatwg-mimetype/LICENSE.txt +7 -0
- package/node_modules_lambda/whatwg-mimetype/README.md +101 -0
- package/node_modules_lambda/whatwg-mimetype/lib/mime-type-parameters.js +70 -0
- package/node_modules_lambda/whatwg-mimetype/lib/mime-type.js +127 -0
- package/node_modules_lambda/whatwg-mimetype/lib/parser.js +105 -0
- package/node_modules_lambda/whatwg-mimetype/lib/serializer.js +25 -0
- package/node_modules_lambda/whatwg-mimetype/lib/utils.js +60 -0
- package/node_modules_lambda/whatwg-mimetype/package.json +47 -0
- package/node_modules_lambda/whatwg-url/LICENSE.txt +21 -0
- package/node_modules_lambda/whatwg-url/README.md +105 -0
- package/node_modules_lambda/whatwg-url/index.js +25 -0
- package/node_modules_lambda/whatwg-url/lib/Function.js +42 -0
- package/node_modules_lambda/whatwg-url/lib/URL-impl.js +217 -0
- package/node_modules_lambda/whatwg-url/lib/URL.js +442 -0
- package/node_modules_lambda/whatwg-url/lib/URLSearchParams-impl.js +130 -0
- package/node_modules_lambda/whatwg-url/lib/URLSearchParams.js +472 -0
- package/node_modules_lambda/whatwg-url/lib/VoidFunction.js +26 -0
- package/node_modules_lambda/whatwg-url/lib/encoding.js +16 -0
- package/node_modules_lambda/whatwg-url/lib/infra.js +26 -0
- package/node_modules_lambda/whatwg-url/lib/percent-encoding.js +142 -0
- package/node_modules_lambda/whatwg-url/lib/url-state-machine.js +1234 -0
- package/node_modules_lambda/whatwg-url/lib/urlencoded.js +106 -0
- package/node_modules_lambda/whatwg-url/lib/utils.js +190 -0
- package/node_modules_lambda/whatwg-url/package.json +58 -0
- package/node_modules_lambda/whatwg-url/webidl2js-wrapper.js +7 -0
- package/node_modules_lambda/word-wrap/LICENSE +21 -0
- package/node_modules_lambda/word-wrap/README.md +182 -0
- package/node_modules_lambda/word-wrap/index.d.ts +50 -0
- package/node_modules_lambda/word-wrap/index.js +46 -0
- package/node_modules_lambda/word-wrap/package.json +77 -0
- package/node_modules_lambda/ws/LICENSE +19 -0
- package/node_modules_lambda/ws/README.md +495 -0
- package/node_modules_lambda/ws/browser.js +8 -0
- package/node_modules_lambda/ws/index.js +13 -0
- package/node_modules_lambda/ws/lib/buffer-util.js +127 -0
- package/node_modules_lambda/ws/lib/constants.js +12 -0
- package/node_modules_lambda/ws/lib/event-target.js +266 -0
- package/node_modules_lambda/ws/lib/extension.js +203 -0
- package/node_modules_lambda/ws/lib/limiter.js +55 -0
- package/node_modules_lambda/ws/lib/permessage-deflate.js +511 -0
- package/node_modules_lambda/ws/lib/receiver.js +618 -0
- package/node_modules_lambda/ws/lib/sender.js +478 -0
- package/node_modules_lambda/ws/lib/stream.js +159 -0
- package/node_modules_lambda/ws/lib/subprotocol.js +62 -0
- package/node_modules_lambda/ws/lib/validation.js +125 -0
- package/node_modules_lambda/ws/lib/websocket-server.js +535 -0
- package/node_modules_lambda/ws/lib/websocket.js +1296 -0
- package/node_modules_lambda/ws/package.json +61 -0
- package/node_modules_lambda/ws/wrapper.mjs +8 -0
- package/node_modules_lambda/xml-name-validator/LICENSE.txt +176 -0
- package/node_modules_lambda/xml-name-validator/README.md +35 -0
- package/node_modules_lambda/xml-name-validator/lib/xml-name-validator.js +9 -0
- package/node_modules_lambda/xml-name-validator/package.json +30 -0
- package/node_modules_lambda/xmlchars/LICENSE +18 -0
- package/node_modules_lambda/xmlchars/README.md +33 -0
- package/node_modules_lambda/xmlchars/package.json +51 -0
- package/node_modules_lambda/xmlchars/xml/1.0/ed4.d.ts +31 -0
- package/node_modules_lambda/xmlchars/xml/1.0/ed4.js +44 -0
- package/node_modules_lambda/xmlchars/xml/1.0/ed4.js.map +1 -0
- package/node_modules_lambda/xmlchars/xml/1.0/ed5.d.ts +51 -0
- package/node_modules_lambda/xmlchars/xml/1.0/ed5.js +105 -0
- package/node_modules_lambda/xmlchars/xml/1.0/ed5.js.map +1 -0
- package/node_modules_lambda/xmlchars/xml/1.1/ed2.d.ts +73 -0
- package/node_modules_lambda/xmlchars/xml/1.1/ed2.js +145 -0
- package/node_modules_lambda/xmlchars/xml/1.1/ed2.js.map +1 -0
- package/node_modules_lambda/xmlchars/xmlchars.d.ts +170 -0
- package/node_modules_lambda/xmlchars/xmlchars.js +191 -0
- package/node_modules_lambda/xmlchars/xmlchars.js.map +1 -0
- package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js.map +1 -0
- package/package.json +8 -3
|
@@ -0,0 +1,933 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vm = require("vm");
|
|
3
|
+
const webIDLConversions = require("webidl-conversions");
|
|
4
|
+
const { CSSStyleDeclaration } = require("cssstyle");
|
|
5
|
+
const { Performance: RawPerformance } = require("w3c-hr-time");
|
|
6
|
+
const notImplemented = require("./not-implemented");
|
|
7
|
+
const { installInterfaces } = require("../living/interfaces");
|
|
8
|
+
const { define, mixin } = require("../utils");
|
|
9
|
+
const Element = require("../living/generated/Element");
|
|
10
|
+
const EventTarget = require("../living/generated/EventTarget");
|
|
11
|
+
const EventHandlerNonNull = require("../living/generated/EventHandlerNonNull");
|
|
12
|
+
const IDLFunction = require("../living/generated/Function");
|
|
13
|
+
const OnBeforeUnloadEventHandlerNonNull = require("../living/generated/OnBeforeUnloadEventHandlerNonNull");
|
|
14
|
+
const OnErrorEventHandlerNonNull = require("../living/generated/OnErrorEventHandlerNonNull");
|
|
15
|
+
const { fireAPageTransitionEvent } = require("../living/helpers/page-transition-event");
|
|
16
|
+
const namedPropertiesWindow = require("../living/named-properties-window");
|
|
17
|
+
const postMessage = require("../living/post-message");
|
|
18
|
+
const DOMException = require("domexception/webidl2js-wrapper");
|
|
19
|
+
const { btoa, atob } = require("abab");
|
|
20
|
+
const idlUtils = require("../living/generated/utils");
|
|
21
|
+
const WebSocketImpl = require("../living/websockets/WebSocket-impl").implementation;
|
|
22
|
+
const BarProp = require("../living/generated/BarProp");
|
|
23
|
+
const documents = require("../living/documents.js");
|
|
24
|
+
const External = require("../living/generated/External");
|
|
25
|
+
const Navigator = require("../living/generated/Navigator");
|
|
26
|
+
const Performance = require("../living/generated/Performance");
|
|
27
|
+
const Screen = require("../living/generated/Screen");
|
|
28
|
+
const Storage = require("../living/generated/Storage");
|
|
29
|
+
const Selection = require("../living/generated/Selection");
|
|
30
|
+
const reportException = require("../living/helpers/runtime-script-errors");
|
|
31
|
+
const { getCurrentEventHandlerValue } = require("../living/helpers/create-event-accessor.js");
|
|
32
|
+
const { fireAnEvent } = require("../living/helpers/events");
|
|
33
|
+
const SessionHistory = require("../living/window/SessionHistory");
|
|
34
|
+
const { forEachMatchingSheetRuleOfElement, getResolvedValue, propertiesWithResolvedValueImplemented,
|
|
35
|
+
SHADOW_DOM_PSEUDO_REGEXP } = require("../living/helpers/style-rules.js");
|
|
36
|
+
const CustomElementRegistry = require("../living/generated/CustomElementRegistry");
|
|
37
|
+
const jsGlobals = require("./js-globals.json");
|
|
38
|
+
|
|
39
|
+
const GlobalEventHandlersImpl = require("../living/nodes/GlobalEventHandlers-impl").implementation;
|
|
40
|
+
const WindowEventHandlersImpl = require("../living/nodes/WindowEventHandlers-impl").implementation;
|
|
41
|
+
|
|
42
|
+
const events = new Set([
|
|
43
|
+
// GlobalEventHandlers
|
|
44
|
+
"abort", "autocomplete",
|
|
45
|
+
"autocompleteerror", "blur",
|
|
46
|
+
"cancel", "canplay", "canplaythrough",
|
|
47
|
+
"change", "click",
|
|
48
|
+
"close", "contextmenu",
|
|
49
|
+
"cuechange", "dblclick",
|
|
50
|
+
"drag", "dragend",
|
|
51
|
+
"dragenter",
|
|
52
|
+
"dragleave", "dragover",
|
|
53
|
+
"dragstart", "drop",
|
|
54
|
+
"durationchange", "emptied",
|
|
55
|
+
"ended", "focus",
|
|
56
|
+
"input", "invalid",
|
|
57
|
+
"keydown", "keypress",
|
|
58
|
+
"keyup", "load", "loadeddata",
|
|
59
|
+
"loadedmetadata", "loadstart",
|
|
60
|
+
"mousedown", "mouseenter",
|
|
61
|
+
"mouseleave", "mousemove",
|
|
62
|
+
"mouseout", "mouseover",
|
|
63
|
+
"mouseup", "wheel",
|
|
64
|
+
"pause", "play",
|
|
65
|
+
"playing", "progress",
|
|
66
|
+
"ratechange", "reset",
|
|
67
|
+
"resize", "scroll",
|
|
68
|
+
"securitypolicyviolation",
|
|
69
|
+
"seeked", "seeking",
|
|
70
|
+
"select", "sort", "stalled",
|
|
71
|
+
"submit", "suspend",
|
|
72
|
+
"timeupdate", "toggle",
|
|
73
|
+
"volumechange", "waiting",
|
|
74
|
+
|
|
75
|
+
// WindowEventHandlers
|
|
76
|
+
"afterprint",
|
|
77
|
+
"beforeprint",
|
|
78
|
+
"hashchange",
|
|
79
|
+
"languagechange",
|
|
80
|
+
"message",
|
|
81
|
+
"messageerror",
|
|
82
|
+
"offline",
|
|
83
|
+
"online",
|
|
84
|
+
"pagehide",
|
|
85
|
+
"pageshow",
|
|
86
|
+
"popstate",
|
|
87
|
+
"rejectionhandled",
|
|
88
|
+
"storage",
|
|
89
|
+
"unhandledrejection",
|
|
90
|
+
"unload"
|
|
91
|
+
|
|
92
|
+
// "error" and "beforeunload" are added separately
|
|
93
|
+
]);
|
|
94
|
+
|
|
95
|
+
exports.createWindow = function (options) {
|
|
96
|
+
return new Window(options);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const jsGlobalEntriesToInstall = Object.entries(jsGlobals).filter(([name]) => name in global);
|
|
100
|
+
|
|
101
|
+
// https://html.spec.whatwg.org/#the-window-object
|
|
102
|
+
function setupWindow(windowInstance, { runScripts }) {
|
|
103
|
+
if (runScripts === "outside-only" || runScripts === "dangerously") {
|
|
104
|
+
contextifyWindow(windowInstance);
|
|
105
|
+
|
|
106
|
+
// Without this, these globals will only appear to scripts running inside the context using vm.runScript; they will
|
|
107
|
+
// not appear to scripts running from the outside, including to JSDOM implementation code.
|
|
108
|
+
for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
|
|
109
|
+
const propDesc = { ...globalPropDesc, value: vm.runInContext(globalName, windowInstance) };
|
|
110
|
+
Object.defineProperty(windowInstance, globalName, propDesc);
|
|
111
|
+
}
|
|
112
|
+
} else {
|
|
113
|
+
// Without contextifying the window, none of the globals will exist. So, let's at least alias them from the Node.js
|
|
114
|
+
// context. See https://github.com/jsdom/jsdom/issues/2727 for more background and discussion.
|
|
115
|
+
for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
|
|
116
|
+
const propDesc = { ...globalPropDesc, value: global[globalName] };
|
|
117
|
+
Object.defineProperty(windowInstance, globalName, propDesc);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
installInterfaces(windowInstance, ["Window"]);
|
|
122
|
+
|
|
123
|
+
const EventTargetConstructor = windowInstance.EventTarget;
|
|
124
|
+
|
|
125
|
+
// eslint-disable-next-line func-name-matching, func-style, no-shadow
|
|
126
|
+
const windowConstructor = function Window() {
|
|
127
|
+
throw new TypeError("Illegal constructor");
|
|
128
|
+
};
|
|
129
|
+
Object.setPrototypeOf(windowConstructor, EventTargetConstructor);
|
|
130
|
+
|
|
131
|
+
Object.defineProperty(windowInstance, "Window", {
|
|
132
|
+
configurable: true,
|
|
133
|
+
writable: true,
|
|
134
|
+
value: windowConstructor
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const windowPrototype = Object.create(EventTargetConstructor.prototype);
|
|
138
|
+
Object.defineProperties(windowPrototype, {
|
|
139
|
+
constructor: {
|
|
140
|
+
value: windowConstructor,
|
|
141
|
+
writable: true,
|
|
142
|
+
configurable: true
|
|
143
|
+
},
|
|
144
|
+
[Symbol.toStringTag]: {
|
|
145
|
+
value: "Window",
|
|
146
|
+
configurable: true
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
windowConstructor.prototype = windowPrototype;
|
|
151
|
+
Object.setPrototypeOf(windowInstance, windowPrototype);
|
|
152
|
+
|
|
153
|
+
EventTarget.setup(windowInstance, windowInstance);
|
|
154
|
+
mixin(windowInstance, WindowEventHandlersImpl.prototype);
|
|
155
|
+
mixin(windowInstance, GlobalEventHandlersImpl.prototype);
|
|
156
|
+
windowInstance._initGlobalEvents();
|
|
157
|
+
|
|
158
|
+
Object.defineProperty(windowInstance, "onbeforeunload", {
|
|
159
|
+
configurable: true,
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get() {
|
|
162
|
+
return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "beforeunload"));
|
|
163
|
+
},
|
|
164
|
+
set(V) {
|
|
165
|
+
if (!idlUtils.isObject(V)) {
|
|
166
|
+
V = null;
|
|
167
|
+
} else {
|
|
168
|
+
V = OnBeforeUnloadEventHandlerNonNull.convert(windowInstance, V, {
|
|
169
|
+
context: "Failed to set the 'onbeforeunload' property on 'Window': The provided value"
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
this._setEventHandlerFor("beforeunload", V);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
Object.defineProperty(windowInstance, "onerror", {
|
|
177
|
+
configurable: true,
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get() {
|
|
180
|
+
return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "error"));
|
|
181
|
+
},
|
|
182
|
+
set(V) {
|
|
183
|
+
if (!idlUtils.isObject(V)) {
|
|
184
|
+
V = null;
|
|
185
|
+
} else {
|
|
186
|
+
V = OnErrorEventHandlerNonNull.convert(windowInstance, V, {
|
|
187
|
+
context: "Failed to set the 'onerror' property on 'Window': The provided value"
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
this._setEventHandlerFor("error", V);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
for (const event of events) {
|
|
195
|
+
Object.defineProperty(windowInstance, `on${event}`, {
|
|
196
|
+
configurable: true,
|
|
197
|
+
enumerable: true,
|
|
198
|
+
get() {
|
|
199
|
+
return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, event));
|
|
200
|
+
},
|
|
201
|
+
set(V) {
|
|
202
|
+
if (!idlUtils.isObject(V)) {
|
|
203
|
+
V = null;
|
|
204
|
+
} else {
|
|
205
|
+
V = EventHandlerNonNull.convert(windowInstance, V, {
|
|
206
|
+
context: `Failed to set the 'on${event}' property on 'Window': The provided value`
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
this._setEventHandlerFor(event, V);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
windowInstance._globalObject = windowInstance;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// NOTE: per https://heycam.github.io/webidl/#Global, all properties on the Window object must be own-properties.
|
|
218
|
+
// That is why we assign everything inside of the constructor, instead of using a shared prototype.
|
|
219
|
+
// You can verify this in e.g. Firefox or Internet Explorer, which do a good job with Web IDL compliance.
|
|
220
|
+
function Window(options) {
|
|
221
|
+
setupWindow(this, { runScripts: options.runScripts });
|
|
222
|
+
|
|
223
|
+
const rawPerformance = new RawPerformance();
|
|
224
|
+
const windowInitialized = rawPerformance.now();
|
|
225
|
+
|
|
226
|
+
const window = this;
|
|
227
|
+
|
|
228
|
+
// ### PRIVATE DATA PROPERTIES
|
|
229
|
+
|
|
230
|
+
this._resourceLoader = options.resourceLoader;
|
|
231
|
+
|
|
232
|
+
// vm initialization is deferred until script processing is activated
|
|
233
|
+
this._globalProxy = this;
|
|
234
|
+
Object.defineProperty(idlUtils.implForWrapper(this), idlUtils.wrapperSymbol, { get: () => this._globalProxy });
|
|
235
|
+
|
|
236
|
+
// List options explicitly to be clear which are passed through
|
|
237
|
+
this._document = documents.createWrapper(window, {
|
|
238
|
+
parsingMode: options.parsingMode,
|
|
239
|
+
contentType: options.contentType,
|
|
240
|
+
encoding: options.encoding,
|
|
241
|
+
cookieJar: options.cookieJar,
|
|
242
|
+
url: options.url,
|
|
243
|
+
lastModified: options.lastModified,
|
|
244
|
+
referrer: options.referrer,
|
|
245
|
+
parseOptions: options.parseOptions,
|
|
246
|
+
defaultView: this._globalProxy,
|
|
247
|
+
global: this,
|
|
248
|
+
parentOrigin: options.parentOrigin
|
|
249
|
+
}, { alwaysUseDocumentClass: true });
|
|
250
|
+
|
|
251
|
+
if (vm.isContext(window)) {
|
|
252
|
+
const documentImpl = idlUtils.implForWrapper(window._document);
|
|
253
|
+
documentImpl._defaultView = window._globalProxy = vm.runInContext("this", window);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const documentOrigin = idlUtils.implForWrapper(this._document)._origin;
|
|
257
|
+
this._origin = documentOrigin;
|
|
258
|
+
|
|
259
|
+
// https://html.spec.whatwg.org/#session-history
|
|
260
|
+
this._sessionHistory = new SessionHistory({
|
|
261
|
+
document: idlUtils.implForWrapper(this._document),
|
|
262
|
+
url: idlUtils.implForWrapper(this._document)._URL,
|
|
263
|
+
stateObject: null
|
|
264
|
+
}, this);
|
|
265
|
+
|
|
266
|
+
this._virtualConsole = options.virtualConsole;
|
|
267
|
+
|
|
268
|
+
this._runScripts = options.runScripts;
|
|
269
|
+
|
|
270
|
+
// Set up the window as if it's a top level window.
|
|
271
|
+
// If it's not, then references will be corrected by frame/iframe code.
|
|
272
|
+
this._parent = this._top = this._globalProxy;
|
|
273
|
+
this._frameElement = null;
|
|
274
|
+
|
|
275
|
+
// This implements window.frames.length, since window.frames returns a
|
|
276
|
+
// self reference to the window object. This value is incremented in the
|
|
277
|
+
// HTMLFrameElement implementation.
|
|
278
|
+
this._length = 0;
|
|
279
|
+
|
|
280
|
+
// https://dom.spec.whatwg.org/#window-current-event
|
|
281
|
+
this._currentEvent = undefined;
|
|
282
|
+
|
|
283
|
+
this._pretendToBeVisual = options.pretendToBeVisual;
|
|
284
|
+
this._storageQuota = options.storageQuota;
|
|
285
|
+
|
|
286
|
+
// Some properties (such as localStorage and sessionStorage) share data
|
|
287
|
+
// between windows in the same origin. This object is intended
|
|
288
|
+
// to contain such data.
|
|
289
|
+
if (options.commonForOrigin && options.commonForOrigin[documentOrigin]) {
|
|
290
|
+
this._commonForOrigin = options.commonForOrigin;
|
|
291
|
+
} else {
|
|
292
|
+
this._commonForOrigin = {
|
|
293
|
+
[documentOrigin]: {
|
|
294
|
+
localStorageArea: new Map(),
|
|
295
|
+
sessionStorageArea: new Map(),
|
|
296
|
+
windowsInSameOrigin: [this]
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
this._currentOriginData = this._commonForOrigin[documentOrigin];
|
|
302
|
+
|
|
303
|
+
// ### WEB STORAGE
|
|
304
|
+
|
|
305
|
+
this._localStorage = Storage.create(window, [], {
|
|
306
|
+
associatedWindow: this,
|
|
307
|
+
storageArea: this._currentOriginData.localStorageArea,
|
|
308
|
+
type: "localStorage",
|
|
309
|
+
url: this._document.documentURI,
|
|
310
|
+
storageQuota: this._storageQuota
|
|
311
|
+
});
|
|
312
|
+
this._sessionStorage = Storage.create(window, [], {
|
|
313
|
+
associatedWindow: this,
|
|
314
|
+
storageArea: this._currentOriginData.sessionStorageArea,
|
|
315
|
+
type: "sessionStorage",
|
|
316
|
+
url: this._document.documentURI,
|
|
317
|
+
storageQuota: this._storageQuota
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// ### SELECTION
|
|
321
|
+
|
|
322
|
+
// https://w3c.github.io/selection-api/#dfn-selection
|
|
323
|
+
this._selection = Selection.createImpl(window);
|
|
324
|
+
|
|
325
|
+
// https://w3c.github.io/selection-api/#dom-window
|
|
326
|
+
this.getSelection = function () {
|
|
327
|
+
return window._selection;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
// ### GETTERS
|
|
331
|
+
|
|
332
|
+
const locationbar = BarProp.create(window);
|
|
333
|
+
const menubar = BarProp.create(window);
|
|
334
|
+
const personalbar = BarProp.create(window);
|
|
335
|
+
const scrollbars = BarProp.create(window);
|
|
336
|
+
const statusbar = BarProp.create(window);
|
|
337
|
+
const toolbar = BarProp.create(window);
|
|
338
|
+
const external = External.create(window);
|
|
339
|
+
const navigator = Navigator.create(window, [], { userAgent: this._resourceLoader._userAgent });
|
|
340
|
+
const performance = Performance.create(window, [], { rawPerformance });
|
|
341
|
+
const screen = Screen.create(window);
|
|
342
|
+
const customElementRegistry = CustomElementRegistry.create(window);
|
|
343
|
+
|
|
344
|
+
define(this, {
|
|
345
|
+
get length() {
|
|
346
|
+
return window._length;
|
|
347
|
+
},
|
|
348
|
+
get window() {
|
|
349
|
+
return window._globalProxy;
|
|
350
|
+
},
|
|
351
|
+
get frameElement() {
|
|
352
|
+
return idlUtils.wrapperForImpl(window._frameElement);
|
|
353
|
+
},
|
|
354
|
+
get frames() {
|
|
355
|
+
return window._globalProxy;
|
|
356
|
+
},
|
|
357
|
+
get self() {
|
|
358
|
+
return window._globalProxy;
|
|
359
|
+
},
|
|
360
|
+
get parent() {
|
|
361
|
+
return window._parent;
|
|
362
|
+
},
|
|
363
|
+
get top() {
|
|
364
|
+
return window._top;
|
|
365
|
+
},
|
|
366
|
+
get document() {
|
|
367
|
+
return window._document;
|
|
368
|
+
},
|
|
369
|
+
get external() {
|
|
370
|
+
return external;
|
|
371
|
+
},
|
|
372
|
+
get location() {
|
|
373
|
+
return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
|
|
374
|
+
},
|
|
375
|
+
get history() {
|
|
376
|
+
return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._history);
|
|
377
|
+
},
|
|
378
|
+
get navigator() {
|
|
379
|
+
return navigator;
|
|
380
|
+
},
|
|
381
|
+
get locationbar() {
|
|
382
|
+
return locationbar;
|
|
383
|
+
},
|
|
384
|
+
get menubar() {
|
|
385
|
+
return menubar;
|
|
386
|
+
},
|
|
387
|
+
get personalbar() {
|
|
388
|
+
return personalbar;
|
|
389
|
+
},
|
|
390
|
+
get scrollbars() {
|
|
391
|
+
return scrollbars;
|
|
392
|
+
},
|
|
393
|
+
get statusbar() {
|
|
394
|
+
return statusbar;
|
|
395
|
+
},
|
|
396
|
+
get toolbar() {
|
|
397
|
+
return toolbar;
|
|
398
|
+
},
|
|
399
|
+
get performance() {
|
|
400
|
+
return performance;
|
|
401
|
+
},
|
|
402
|
+
get screen() {
|
|
403
|
+
return screen;
|
|
404
|
+
},
|
|
405
|
+
get origin() {
|
|
406
|
+
return window._origin;
|
|
407
|
+
},
|
|
408
|
+
// The origin IDL attribute is defined with [Replaceable].
|
|
409
|
+
set origin(value) {
|
|
410
|
+
Object.defineProperty(this, "origin", {
|
|
411
|
+
value,
|
|
412
|
+
writable: true,
|
|
413
|
+
enumerable: true,
|
|
414
|
+
configurable: true
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
get localStorage() {
|
|
418
|
+
if (idlUtils.implForWrapper(this._document)._origin === "null") {
|
|
419
|
+
throw DOMException.create(window, [
|
|
420
|
+
"localStorage is not available for opaque origins",
|
|
421
|
+
"SecurityError"
|
|
422
|
+
]);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return this._localStorage;
|
|
426
|
+
},
|
|
427
|
+
get sessionStorage() {
|
|
428
|
+
if (idlUtils.implForWrapper(this._document)._origin === "null") {
|
|
429
|
+
throw DOMException.create(window, [
|
|
430
|
+
"sessionStorage is not available for opaque origins",
|
|
431
|
+
"SecurityError"
|
|
432
|
+
]);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return this._sessionStorage;
|
|
436
|
+
},
|
|
437
|
+
get customElements() {
|
|
438
|
+
return customElementRegistry;
|
|
439
|
+
},
|
|
440
|
+
get event() {
|
|
441
|
+
return window._currentEvent ? idlUtils.wrapperForImpl(window._currentEvent) : undefined;
|
|
442
|
+
},
|
|
443
|
+
set event(value) {
|
|
444
|
+
Object.defineProperty(window, "event", { configurable: true, enumerable: true, writable: true, value });
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
namedPropertiesWindow.initializeWindow(this, this._globalProxy);
|
|
449
|
+
|
|
450
|
+
// ### METHODS
|
|
451
|
+
|
|
452
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
|
|
453
|
+
|
|
454
|
+
// In the spec the list of active timers is a set of IDs. We make it a map of IDs to Node.js timer objects, so that
|
|
455
|
+
// we can call Node.js-side clearTimeout() when clearing, and thus allow process shutdown faster.
|
|
456
|
+
const listOfActiveTimers = new Map();
|
|
457
|
+
let latestTimerId = 0;
|
|
458
|
+
|
|
459
|
+
this.setTimeout = function (handler, timeout = 0, ...args) {
|
|
460
|
+
if (typeof handler !== "function") {
|
|
461
|
+
handler = webIDLConversions.DOMString(handler);
|
|
462
|
+
}
|
|
463
|
+
timeout = webIDLConversions.long(timeout);
|
|
464
|
+
|
|
465
|
+
return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: false });
|
|
466
|
+
};
|
|
467
|
+
this.setInterval = function (handler, timeout = 0, ...args) {
|
|
468
|
+
if (typeof handler !== "function") {
|
|
469
|
+
handler = webIDLConversions.DOMString(handler);
|
|
470
|
+
}
|
|
471
|
+
timeout = webIDLConversions.long(timeout);
|
|
472
|
+
|
|
473
|
+
return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: true });
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
this.clearTimeout = function (handle = 0) {
|
|
477
|
+
handle = webIDLConversions.long(handle);
|
|
478
|
+
|
|
479
|
+
const nodejsTimer = listOfActiveTimers.get(handle);
|
|
480
|
+
if (nodejsTimer) {
|
|
481
|
+
clearTimeout(nodejsTimer);
|
|
482
|
+
listOfActiveTimers.delete(handle);
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
this.clearInterval = function (handle = 0) {
|
|
486
|
+
handle = webIDLConversions.long(handle);
|
|
487
|
+
|
|
488
|
+
const nodejsTimer = listOfActiveTimers.get(handle);
|
|
489
|
+
if (nodejsTimer) {
|
|
490
|
+
// We use setTimeout() in timerInitializationSteps even for this.setInterval().
|
|
491
|
+
clearTimeout(nodejsTimer);
|
|
492
|
+
listOfActiveTimers.delete(handle);
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
function timerInitializationSteps(handler, timeout, args, { methodContext, repeat, previousHandle }) {
|
|
497
|
+
// This appears to be unspecced, but matches browser behavior for close()ed windows.
|
|
498
|
+
if (!methodContext._document) {
|
|
499
|
+
return 0;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// TODO: implement timer nesting level behavior.
|
|
503
|
+
|
|
504
|
+
const methodContextProxy = methodContext._globalProxy;
|
|
505
|
+
const handle = previousHandle !== undefined ? previousHandle : ++latestTimerId;
|
|
506
|
+
|
|
507
|
+
function task() {
|
|
508
|
+
if (!listOfActiveTimers.has(handle)) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
try {
|
|
513
|
+
if (typeof handler === "function") {
|
|
514
|
+
handler.apply(methodContextProxy, args);
|
|
515
|
+
} else if (window._runScripts === "dangerously") {
|
|
516
|
+
vm.runInContext(handler, window, { filename: window.location.href, displayErrors: false });
|
|
517
|
+
}
|
|
518
|
+
} catch (e) {
|
|
519
|
+
reportException(window, e, window.location.href);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
if (listOfActiveTimers.has(handle)) {
|
|
523
|
+
if (repeat) {
|
|
524
|
+
timerInitializationSteps(handler, timeout, args, { methodContext, repeat: true, previousHandle: handle });
|
|
525
|
+
} else {
|
|
526
|
+
listOfActiveTimers.delete(handle);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
if (timeout < 0) {
|
|
532
|
+
timeout = 0;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
const nodejsTimer = setTimeout(task, timeout);
|
|
536
|
+
listOfActiveTimers.set(handle, nodejsTimer);
|
|
537
|
+
|
|
538
|
+
return handle;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing
|
|
542
|
+
|
|
543
|
+
this.queueMicrotask = function (callback) {
|
|
544
|
+
callback = IDLFunction.convert(this, callback);
|
|
545
|
+
|
|
546
|
+
queueMicrotask(() => {
|
|
547
|
+
try {
|
|
548
|
+
callback();
|
|
549
|
+
} catch (e) {
|
|
550
|
+
reportException(window, e, window.location.href);
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames
|
|
556
|
+
|
|
557
|
+
let animationFrameCallbackId = 0;
|
|
558
|
+
const mapOfAnimationFrameCallbacks = new Map();
|
|
559
|
+
let animationFrameNodejsInterval = null;
|
|
560
|
+
|
|
561
|
+
// Unlike the spec, where an animation frame happens every 60 Hz regardless, we optimize so that if there are no
|
|
562
|
+
// requestAnimationFrame() calls outstanding, we don't fire the timer. This helps us track that.
|
|
563
|
+
let numberOfOngoingAnimationFrameCallbacks = 0;
|
|
564
|
+
|
|
565
|
+
if (this._pretendToBeVisual) {
|
|
566
|
+
this.requestAnimationFrame = function (callback) {
|
|
567
|
+
callback = IDLFunction.convert(this, callback);
|
|
568
|
+
|
|
569
|
+
const handle = ++animationFrameCallbackId;
|
|
570
|
+
mapOfAnimationFrameCallbacks.set(handle, callback);
|
|
571
|
+
|
|
572
|
+
++numberOfOngoingAnimationFrameCallbacks;
|
|
573
|
+
if (numberOfOngoingAnimationFrameCallbacks === 1) {
|
|
574
|
+
animationFrameNodejsInterval = setInterval(() => {
|
|
575
|
+
runAnimationFrameCallbacks(rawPerformance.now() - windowInitialized);
|
|
576
|
+
}, 1000 / 60);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
return handle;
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
this.cancelAnimationFrame = function (handle) {
|
|
583
|
+
handle = webIDLConversions["unsigned long"](handle);
|
|
584
|
+
|
|
585
|
+
removeAnimationFrameCallback(handle);
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
function runAnimationFrameCallbacks(now) {
|
|
589
|
+
// Converting to an array is important to get a sync snapshot and thus match spec semantics.
|
|
590
|
+
const callbackHandles = [...mapOfAnimationFrameCallbacks.keys()];
|
|
591
|
+
for (const handle of callbackHandles) {
|
|
592
|
+
// This has() can be false if a callback calls cancelAnimationFrame().
|
|
593
|
+
if (mapOfAnimationFrameCallbacks.has(handle)) {
|
|
594
|
+
const callback = mapOfAnimationFrameCallbacks.get(handle);
|
|
595
|
+
removeAnimationFrameCallback(handle);
|
|
596
|
+
try {
|
|
597
|
+
callback(now);
|
|
598
|
+
} catch (e) {
|
|
599
|
+
reportException(window, e, window.location.href);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
function removeAnimationFrameCallback(handle) {
|
|
606
|
+
if (mapOfAnimationFrameCallbacks.has(handle)) {
|
|
607
|
+
--numberOfOngoingAnimationFrameCallbacks;
|
|
608
|
+
if (numberOfOngoingAnimationFrameCallbacks === 0) {
|
|
609
|
+
clearInterval(animationFrameNodejsInterval);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
mapOfAnimationFrameCallbacks.delete(handle);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
function stopAllTimers() {
|
|
618
|
+
for (const nodejsTimer of listOfActiveTimers.values()) {
|
|
619
|
+
clearTimeout(nodejsTimer);
|
|
620
|
+
}
|
|
621
|
+
listOfActiveTimers.clear();
|
|
622
|
+
|
|
623
|
+
clearInterval(animationFrameNodejsInterval);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
function Option(text, value, defaultSelected, selected) {
|
|
627
|
+
if (text === undefined) {
|
|
628
|
+
text = "";
|
|
629
|
+
}
|
|
630
|
+
text = webIDLConversions.DOMString(text);
|
|
631
|
+
|
|
632
|
+
if (value !== undefined) {
|
|
633
|
+
value = webIDLConversions.DOMString(value);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
defaultSelected = webIDLConversions.boolean(defaultSelected);
|
|
637
|
+
selected = webIDLConversions.boolean(selected);
|
|
638
|
+
|
|
639
|
+
const option = window._document.createElement("option");
|
|
640
|
+
const impl = idlUtils.implForWrapper(option);
|
|
641
|
+
|
|
642
|
+
if (text !== "") {
|
|
643
|
+
impl.text = text;
|
|
644
|
+
}
|
|
645
|
+
if (value !== undefined) {
|
|
646
|
+
impl.setAttributeNS(null, "value", value);
|
|
647
|
+
}
|
|
648
|
+
if (defaultSelected) {
|
|
649
|
+
impl.setAttributeNS(null, "selected", "");
|
|
650
|
+
}
|
|
651
|
+
impl._selectedness = selected;
|
|
652
|
+
|
|
653
|
+
return option;
|
|
654
|
+
}
|
|
655
|
+
Object.defineProperty(Option, "prototype", {
|
|
656
|
+
value: this.HTMLOptionElement.prototype,
|
|
657
|
+
configurable: false,
|
|
658
|
+
enumerable: false,
|
|
659
|
+
writable: false
|
|
660
|
+
});
|
|
661
|
+
Object.defineProperty(window, "Option", {
|
|
662
|
+
value: Option,
|
|
663
|
+
configurable: true,
|
|
664
|
+
enumerable: false,
|
|
665
|
+
writable: true
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
function Image(...args) {
|
|
669
|
+
const img = window._document.createElement("img");
|
|
670
|
+
const impl = idlUtils.implForWrapper(img);
|
|
671
|
+
|
|
672
|
+
if (args.length > 0) {
|
|
673
|
+
impl.setAttributeNS(null, "width", String(args[0]));
|
|
674
|
+
}
|
|
675
|
+
if (args.length > 1) {
|
|
676
|
+
impl.setAttributeNS(null, "height", String(args[1]));
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
return img;
|
|
680
|
+
}
|
|
681
|
+
Object.defineProperty(Image, "prototype", {
|
|
682
|
+
value: this.HTMLImageElement.prototype,
|
|
683
|
+
configurable: false,
|
|
684
|
+
enumerable: false,
|
|
685
|
+
writable: false
|
|
686
|
+
});
|
|
687
|
+
Object.defineProperty(window, "Image", {
|
|
688
|
+
value: Image,
|
|
689
|
+
configurable: true,
|
|
690
|
+
enumerable: false,
|
|
691
|
+
writable: true
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
function Audio(src) {
|
|
695
|
+
const audio = window._document.createElement("audio");
|
|
696
|
+
const impl = idlUtils.implForWrapper(audio);
|
|
697
|
+
impl.setAttributeNS(null, "preload", "auto");
|
|
698
|
+
|
|
699
|
+
if (src !== undefined) {
|
|
700
|
+
impl.setAttributeNS(null, "src", String(src));
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
return audio;
|
|
704
|
+
}
|
|
705
|
+
Object.defineProperty(Audio, "prototype", {
|
|
706
|
+
value: this.HTMLAudioElement.prototype,
|
|
707
|
+
configurable: false,
|
|
708
|
+
enumerable: false,
|
|
709
|
+
writable: false
|
|
710
|
+
});
|
|
711
|
+
Object.defineProperty(window, "Audio", {
|
|
712
|
+
value: Audio,
|
|
713
|
+
configurable: true,
|
|
714
|
+
enumerable: false,
|
|
715
|
+
writable: true
|
|
716
|
+
});
|
|
717
|
+
|
|
718
|
+
this.postMessage = postMessage(window);
|
|
719
|
+
|
|
720
|
+
this.atob = function (str) {
|
|
721
|
+
const result = atob(str);
|
|
722
|
+
if (result === null) {
|
|
723
|
+
throw DOMException.create(window, [
|
|
724
|
+
"The string to be decoded contains invalid characters.",
|
|
725
|
+
"InvalidCharacterError"
|
|
726
|
+
]);
|
|
727
|
+
}
|
|
728
|
+
return result;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
this.btoa = function (str) {
|
|
732
|
+
const result = btoa(str);
|
|
733
|
+
if (result === null) {
|
|
734
|
+
throw DOMException.create(window, [
|
|
735
|
+
"The string to be encoded contains invalid characters.",
|
|
736
|
+
"InvalidCharacterError"
|
|
737
|
+
]);
|
|
738
|
+
}
|
|
739
|
+
return result;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
this.stop = function () {
|
|
743
|
+
const manager = idlUtils.implForWrapper(this._document)._requestManager;
|
|
744
|
+
if (manager) {
|
|
745
|
+
manager.close();
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
this.close = function () {
|
|
750
|
+
// Recursively close child frame windows, then ourselves (depth-first).
|
|
751
|
+
for (let i = 0; i < this.length; ++i) {
|
|
752
|
+
this[i].close();
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// Clear out all listeners. Any in-flight or upcoming events should not get delivered.
|
|
756
|
+
idlUtils.implForWrapper(this)._eventListeners = Object.create(null);
|
|
757
|
+
|
|
758
|
+
if (this._document) {
|
|
759
|
+
if (this._document.body) {
|
|
760
|
+
this._document.body.innerHTML = "";
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
if (this._document.close) {
|
|
764
|
+
// It's especially important to clear out the listeners here because document.close() causes a "load" event to
|
|
765
|
+
// fire.
|
|
766
|
+
idlUtils.implForWrapper(this._document)._eventListeners = Object.create(null);
|
|
767
|
+
this._document.close();
|
|
768
|
+
}
|
|
769
|
+
const doc = idlUtils.implForWrapper(this._document);
|
|
770
|
+
if (doc._requestManager) {
|
|
771
|
+
doc._requestManager.close();
|
|
772
|
+
}
|
|
773
|
+
delete this._document;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
stopAllTimers();
|
|
777
|
+
WebSocketImpl.cleanUpWindow(this);
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
this.getComputedStyle = function (elt, pseudoElt = undefined) {
|
|
781
|
+
elt = Element.convert(this, elt);
|
|
782
|
+
if (pseudoElt !== undefined && pseudoElt !== null) {
|
|
783
|
+
pseudoElt = webIDLConversions.DOMString(pseudoElt);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
if (pseudoElt !== undefined && pseudoElt !== null && pseudoElt !== "") {
|
|
787
|
+
// TODO: Parse pseudoElt
|
|
788
|
+
|
|
789
|
+
if (SHADOW_DOM_PSEUDO_REGEXP.test(pseudoElt)) {
|
|
790
|
+
throw new TypeError("Tried to get the computed style of a Shadow DOM pseudo-element.");
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
notImplemented("window.computedStyle(elt, pseudoElt)", this);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
const declaration = new CSSStyleDeclaration();
|
|
797
|
+
const { forEach } = Array.prototype;
|
|
798
|
+
const { style } = elt;
|
|
799
|
+
|
|
800
|
+
forEachMatchingSheetRuleOfElement(elt, rule => {
|
|
801
|
+
forEach.call(rule.style, property => {
|
|
802
|
+
declaration.setProperty(
|
|
803
|
+
property,
|
|
804
|
+
rule.style.getPropertyValue(property),
|
|
805
|
+
rule.style.getPropertyPriority(property)
|
|
806
|
+
);
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
// https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle
|
|
811
|
+
const declarations = Object.keys(propertiesWithResolvedValueImplemented);
|
|
812
|
+
forEach.call(declarations, property => {
|
|
813
|
+
declaration.setProperty(property, getResolvedValue(elt, property));
|
|
814
|
+
});
|
|
815
|
+
|
|
816
|
+
forEach.call(style, property => {
|
|
817
|
+
declaration.setProperty(property, style.getPropertyValue(property), style.getPropertyPriority(property));
|
|
818
|
+
});
|
|
819
|
+
|
|
820
|
+
return declaration;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
this.getSelection = function () {
|
|
824
|
+
return window._document.getSelection();
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
// The captureEvents() and releaseEvents() methods must do nothing
|
|
828
|
+
this.captureEvents = function () {};
|
|
829
|
+
|
|
830
|
+
this.releaseEvents = function () {};
|
|
831
|
+
|
|
832
|
+
// ### PUBLIC DATA PROPERTIES (TODO: should be getters)
|
|
833
|
+
|
|
834
|
+
function wrapConsoleMethod(method) {
|
|
835
|
+
return (...args) => {
|
|
836
|
+
window._virtualConsole.emit(method, ...args);
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
this.console = {
|
|
841
|
+
assert: wrapConsoleMethod("assert"),
|
|
842
|
+
clear: wrapConsoleMethod("clear"),
|
|
843
|
+
count: wrapConsoleMethod("count"),
|
|
844
|
+
countReset: wrapConsoleMethod("countReset"),
|
|
845
|
+
debug: wrapConsoleMethod("debug"),
|
|
846
|
+
dir: wrapConsoleMethod("dir"),
|
|
847
|
+
dirxml: wrapConsoleMethod("dirxml"),
|
|
848
|
+
error: wrapConsoleMethod("error"),
|
|
849
|
+
group: wrapConsoleMethod("group"),
|
|
850
|
+
groupCollapsed: wrapConsoleMethod("groupCollapsed"),
|
|
851
|
+
groupEnd: wrapConsoleMethod("groupEnd"),
|
|
852
|
+
info: wrapConsoleMethod("info"),
|
|
853
|
+
log: wrapConsoleMethod("log"),
|
|
854
|
+
table: wrapConsoleMethod("table"),
|
|
855
|
+
time: wrapConsoleMethod("time"),
|
|
856
|
+
timeLog: wrapConsoleMethod("timeLog"),
|
|
857
|
+
timeEnd: wrapConsoleMethod("timeEnd"),
|
|
858
|
+
trace: wrapConsoleMethod("trace"),
|
|
859
|
+
warn: wrapConsoleMethod("warn")
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
function notImplementedMethod(name) {
|
|
863
|
+
return function () {
|
|
864
|
+
notImplemented(name, window);
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
define(this, {
|
|
869
|
+
name: "",
|
|
870
|
+
status: "",
|
|
871
|
+
devicePixelRatio: 1,
|
|
872
|
+
innerWidth: 1024,
|
|
873
|
+
innerHeight: 768,
|
|
874
|
+
outerWidth: 1024,
|
|
875
|
+
outerHeight: 768,
|
|
876
|
+
pageXOffset: 0,
|
|
877
|
+
pageYOffset: 0,
|
|
878
|
+
screenX: 0,
|
|
879
|
+
screenLeft: 0,
|
|
880
|
+
screenY: 0,
|
|
881
|
+
screenTop: 0,
|
|
882
|
+
scrollX: 0,
|
|
883
|
+
scrollY: 0,
|
|
884
|
+
|
|
885
|
+
alert: notImplementedMethod("window.alert"),
|
|
886
|
+
blur: notImplementedMethod("window.blur"),
|
|
887
|
+
confirm: notImplementedMethod("window.confirm"),
|
|
888
|
+
focus: notImplementedMethod("window.focus"),
|
|
889
|
+
moveBy: notImplementedMethod("window.moveBy"),
|
|
890
|
+
moveTo: notImplementedMethod("window.moveTo"),
|
|
891
|
+
open: notImplementedMethod("window.open"),
|
|
892
|
+
print: notImplementedMethod("window.print"),
|
|
893
|
+
prompt: notImplementedMethod("window.prompt"),
|
|
894
|
+
resizeBy: notImplementedMethod("window.resizeBy"),
|
|
895
|
+
resizeTo: notImplementedMethod("window.resizeTo"),
|
|
896
|
+
scroll: notImplementedMethod("window.scroll"),
|
|
897
|
+
scrollBy: notImplementedMethod("window.scrollBy"),
|
|
898
|
+
scrollTo: notImplementedMethod("window.scrollTo")
|
|
899
|
+
});
|
|
900
|
+
|
|
901
|
+
// ### INITIALIZATION
|
|
902
|
+
|
|
903
|
+
process.nextTick(() => {
|
|
904
|
+
if (!window.document) {
|
|
905
|
+
return; // window might've been closed already
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
if (window.document.readyState === "complete") {
|
|
909
|
+
fireAnEvent("load", window, undefined, {}, true);
|
|
910
|
+
} else {
|
|
911
|
+
window.document.addEventListener("load", () => {
|
|
912
|
+
fireAnEvent("load", window, undefined, {}, true);
|
|
913
|
+
if (!window._document) {
|
|
914
|
+
return; // window might've been closed already
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
const documentImpl = idlUtils.implForWrapper(window._document);
|
|
918
|
+
if (!documentImpl._pageShowingFlag) {
|
|
919
|
+
documentImpl._pageShowingFlag = true;
|
|
920
|
+
fireAPageTransitionEvent("pageshow", window, false);
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
function contextifyWindow(window) {
|
|
928
|
+
if (vm.isContext(window)) {
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
vm.createContext(window);
|
|
933
|
+
}
|