appmap 0.62.1 → 0.65.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/ARCHITECTURE.md +4 -4
- data/CHANGELOG.md +39 -0
- data/README.md +2 -2
- data/Rakefile +8 -8
- data/lib/appmap/command/agent_setup/init.rb +1 -0
- data/lib/appmap/config.rb +2 -2
- data/lib/appmap/cucumber.rb +1 -0
- data/lib/appmap/depends/util.rb +2 -0
- data/lib/appmap/event.rb +38 -14
- data/lib/appmap/handler/rails/sql_handler.rb +0 -28
- data/lib/appmap/minitest.rb +1 -0
- data/lib/appmap/node_cli.rb +1 -1
- data/lib/appmap/rspec.rb +1 -0
- data/lib/appmap/service/validator/config_validator.rb +8 -4
- data/lib/appmap/swagger/rake_tasks.rb +1 -0
- data/lib/appmap/util.rb +1 -1
- data/lib/appmap/version.rb +2 -3
- data/node_modules/@appland/appmap/CHANGELOG.md +136 -0
- data/node_modules/@appland/appmap/package.json +50 -0
- data/node_modules/@appland/appmap/src/agentInstaller/buildToolInstallerBase.js +28 -0
- data/node_modules/@appland/appmap/src/agentInstaller/commandStruct.js +17 -0
- data/node_modules/@appland/appmap/src/agentInstaller/installAgentStep.js +30 -0
- data/node_modules/@appland/appmap/src/agentInstaller/javaAgentInstaller.js +321 -0
- data/node_modules/@appland/appmap/src/agentInstaller/pythonAgentInstaller.js +174 -0
- data/node_modules/@appland/appmap/src/agentInstaller/rubyAgentInstaller.js +129 -0
- data/node_modules/@appland/appmap/src/agentInstaller/types.d.ts +76 -0
- data/node_modules/@appland/{cli → appmap}/src/appMapCatalog.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/appland/getAppMap.js +0 -0
- data/node_modules/@appland/appmap/src/appland/listAppMaps.js +58 -0
- data/node_modules/@appland/{cli → appmap}/src/appland/settings.js +0 -0
- data/node_modules/@appland/appmap/src/appland/types.d.ts +16 -0
- data/node_modules/@appland/appmap/src/cli.js +729 -0
- data/node_modules/@appland/{cli → appmap}/src/database.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/depends.js +0 -0
- data/node_modules/@appland/appmap/src/errors/abortError.js +5 -0
- data/node_modules/@appland/appmap/src/errors/validationError.js +5 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/algorithms.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/base.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/classDependencies.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/classes.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/eventTree.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/httpClientRequests.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/httpServerRequests.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/info.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/labels.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/packageDependencies.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/packages.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/sqlNormalized.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/sqlTables.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/trace.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/unique.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/update.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprintDirectoryCommand.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprintQueue.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprintWatchCommand.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprinter.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/fingerprint/index.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/functionStats.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/fields.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/filter.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/home.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/print.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/reset.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/types.d.ts +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect/undoFilter.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inspect.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/inventoryCommand.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/codeObjectMatcher.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/constants.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/findCodeObjects.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/findEvents.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/matchFilter.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/matchSpec.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/trigram.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/types.d.ts +0 -0
- data/node_modules/@appland/{cli → appmap}/src/search/utils.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/README.md +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/command.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/method.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/model.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/path.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/response.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/schema.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/securitySchemes.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/settings.js +0 -0
- data/node_modules/@appland/{cli → appmap}/src/swagger/util.js +0 -0
- data/node_modules/@appland/appmap/src/utils.js +165 -0
- data/node_modules/@appland/appmap/tests/unit/agentInstall/python.js +0 -0
- data/node_modules/@appland/appmap/tests/unit/agentInstall/python.spec.js +109 -0
- data/node_modules/@appland/appmap/tests/unit/depends.spec.js +63 -0
- data/node_modules/@appland/appmap/tests/unit/fingerprint/canonicalize.spec.js +42 -0
- data/node_modules/@appland/{cli → appmap}/tests/unit/fingerprint/sql.spec.js +0 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/python/pip/requirements.txt +2 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/python/poetry/poetry.lock +2 -0
- data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/controllers/organizations_controller.rb +0 -0
- data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/models/configuration.rb +0 -0
- data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/models/show.rb +0 -0
- data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/models/user.rb +0 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.info.json +170 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.trace.json +213 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.update.json +54 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/revoke_api_key.appmap.json +884 -0
- data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/user_page_scenario.appmap.json +1750 -0
- data/node_modules/@appland/appmap/tests/unit/inspect.spec.js +105 -0
- data/node_modules/@appland/models/CHANGELOG.md +7 -0
- data/node_modules/@appland/models/package.json +2 -2
- data/node_modules/@tootallnate/once/dist/index.d.ts +14 -0
- data/node_modules/@tootallnate/once/dist/index.js +39 -0
- data/node_modules/@tootallnate/once/dist/index.js.map +1 -0
- data/node_modules/@tootallnate/once/package.json +45 -0
- data/node_modules/abab/CHANGELOG.md +45 -0
- data/node_modules/abab/LICENSE.md +13 -0
- data/node_modules/abab/README.md +51 -0
- data/node_modules/abab/index.d.ts +2 -0
- data/node_modules/abab/index.js +9 -0
- data/node_modules/abab/lib/atob.js +97 -0
- data/node_modules/abab/lib/btoa.js +58 -0
- data/node_modules/abab/package.json +42 -0
- data/node_modules/acorn/CHANGELOG.md +744 -0
- data/node_modules/acorn/LICENSE +21 -0
- data/node_modules/acorn/README.md +280 -0
- data/node_modules/acorn/bin/acorn +4 -0
- data/node_modules/acorn/dist/acorn.d.ts +211 -0
- data/node_modules/acorn/dist/acorn.js +5525 -0
- data/node_modules/acorn/dist/acorn.mjs +5494 -0
- data/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- data/node_modules/acorn/dist/bin.js +65 -0
- data/node_modules/acorn/package.json +46 -0
- data/node_modules/acorn-globals/LICENSE +19 -0
- data/node_modules/acorn-globals/README.md +81 -0
- data/node_modules/acorn-globals/index.js +179 -0
- data/node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md +620 -0
- data/node_modules/acorn-globals/node_modules/acorn/LICENSE +21 -0
- data/node_modules/acorn-globals/node_modules/acorn/README.md +269 -0
- data/node_modules/acorn-globals/node_modules/acorn/bin/acorn +4 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts +209 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js +5186 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js.map +1 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs +5155 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +1 -0
- data/node_modules/acorn-globals/node_modules/acorn/dist/bin.js +64 -0
- data/node_modules/acorn-globals/node_modules/acorn/package.json +35 -0
- data/node_modules/acorn-globals/package.json +35 -0
- data/node_modules/acorn-walk/CHANGELOG.md +131 -0
- data/node_modules/acorn-walk/LICENSE +19 -0
- data/node_modules/acorn-walk/README.md +126 -0
- data/node_modules/acorn-walk/dist/walk.d.ts +112 -0
- data/node_modules/acorn-walk/dist/walk.js +463 -0
- data/node_modules/acorn-walk/dist/walk.js.map +1 -0
- data/node_modules/acorn-walk/dist/walk.mjs +443 -0
- data/node_modules/acorn-walk/dist/walk.mjs.map +1 -0
- data/node_modules/acorn-walk/package.json +34 -0
- data/node_modules/agent-base/README.md +145 -0
- data/node_modules/agent-base/dist/src/index.d.ts +78 -0
- data/node_modules/agent-base/dist/src/index.js +203 -0
- data/node_modules/agent-base/dist/src/index.js.map +1 -0
- data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- data/node_modules/agent-base/dist/src/promisify.js +18 -0
- data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- data/node_modules/agent-base/package.json +64 -0
- data/node_modules/agent-base/src/index.ts +345 -0
- data/node_modules/agent-base/src/promisify.ts +33 -0
- data/node_modules/asynckit/LICENSE +21 -0
- data/node_modules/asynckit/README.md +233 -0
- data/node_modules/asynckit/bench.js +76 -0
- data/node_modules/asynckit/index.js +6 -0
- data/node_modules/asynckit/lib/abort.js +29 -0
- data/node_modules/asynckit/lib/async.js +34 -0
- data/node_modules/asynckit/lib/defer.js +26 -0
- data/node_modules/asynckit/lib/iterate.js +75 -0
- data/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- data/node_modules/asynckit/lib/readable_parallel.js +25 -0
- data/node_modules/asynckit/lib/readable_serial.js +25 -0
- data/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- data/node_modules/asynckit/lib/state.js +37 -0
- data/node_modules/asynckit/lib/streamify.js +141 -0
- data/node_modules/asynckit/lib/terminator.js +29 -0
- data/node_modules/asynckit/package.json +63 -0
- data/node_modules/asynckit/parallel.js +43 -0
- data/node_modules/asynckit/serial.js +17 -0
- data/node_modules/asynckit/serialOrdered.js +75 -0
- data/node_modules/asynckit/stream.js +21 -0
- data/node_modules/browser-process-hrtime/LICENSE +9 -0
- data/node_modules/browser-process-hrtime/README.md +27 -0
- data/node_modules/browser-process-hrtime/index.d.ts +4 -0
- data/node_modules/browser-process-hrtime/index.js +28 -0
- data/node_modules/browser-process-hrtime/package.json +15 -0
- data/node_modules/combined-stream/License +19 -0
- data/node_modules/combined-stream/Readme.md +138 -0
- data/node_modules/combined-stream/lib/combined_stream.js +208 -0
- data/node_modules/combined-stream/package.json +25 -0
- data/node_modules/combined-stream/yarn.lock +17 -0
- data/node_modules/cssom/LICENSE.txt +20 -0
- data/node_modules/cssom/README.mdown +67 -0
- data/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- data/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- data/node_modules/cssom/lib/CSSHostRule.js +37 -0
- data/node_modules/cssom/lib/CSSImportRule.js +132 -0
- data/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- data/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- data/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- data/node_modules/cssom/lib/CSSOM.js +3 -0
- data/node_modules/cssom/lib/CSSRule.js +43 -0
- data/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- data/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- data/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- data/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
- data/node_modules/cssom/lib/CSSValue.js +43 -0
- data/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- data/node_modules/cssom/lib/MatcherList.js +62 -0
- data/node_modules/cssom/lib/MediaList.js +61 -0
- data/node_modules/cssom/lib/StyleSheet.js +17 -0
- data/node_modules/cssom/lib/clone.js +71 -0
- data/node_modules/cssom/lib/index.js +21 -0
- data/node_modules/cssom/lib/parse.js +463 -0
- data/node_modules/cssom/package.json +18 -0
- data/node_modules/cssstyle/LICENSE +20 -0
- data/node_modules/cssstyle/README.md +15 -0
- data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +260 -0
- data/node_modules/cssstyle/lib/CSSStyleDeclaration.test.js +556 -0
- data/node_modules/cssstyle/lib/allExtraProperties.js +67 -0
- data/node_modules/cssstyle/lib/allProperties.js +462 -0
- data/node_modules/cssstyle/lib/allWebkitProperties.js +194 -0
- data/node_modules/cssstyle/lib/constants.js +6 -0
- data/node_modules/cssstyle/lib/implementedProperties.js +90 -0
- data/node_modules/cssstyle/lib/named_colors.json +152 -0
- data/node_modules/cssstyle/lib/parsers.js +722 -0
- data/node_modules/cssstyle/lib/parsers.test.js +139 -0
- data/node_modules/cssstyle/lib/properties/azimuth.js +67 -0
- data/node_modules/cssstyle/lib/properties/background.js +19 -0
- data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +24 -0
- data/node_modules/cssstyle/lib/properties/backgroundColor.js +36 -0
- data/node_modules/cssstyle/lib/properties/backgroundImage.js +32 -0
- data/node_modules/cssstyle/lib/properties/backgroundPosition.js +58 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +32 -0
- data/node_modules/cssstyle/lib/properties/border.js +33 -0
- data/node_modules/cssstyle/lib/properties/borderBottom.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderBottomColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderCollapse.js +26 -0
- data/node_modules/cssstyle/lib/properties/borderColor.js +30 -0
- data/node_modules/cssstyle/lib/properties/borderLeft.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderLeftColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRight.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderRightColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRightStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderRightWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderSpacing.js +41 -0
- data/node_modules/cssstyle/lib/properties/borderStyle.js +38 -0
- data/node_modules/cssstyle/lib/properties/borderTop.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderTopColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderTopStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderTopWidth.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderWidth.js +46 -0
- data/node_modules/cssstyle/lib/properties/bottom.js +14 -0
- data/node_modules/cssstyle/lib/properties/clear.js +16 -0
- data/node_modules/cssstyle/lib/properties/clip.js +47 -0
- data/node_modules/cssstyle/lib/properties/color.js +14 -0
- data/node_modules/cssstyle/lib/properties/cssFloat.js +12 -0
- data/node_modules/cssstyle/lib/properties/flex.js +45 -0
- data/node_modules/cssstyle/lib/properties/flexBasis.js +28 -0
- data/node_modules/cssstyle/lib/properties/flexGrow.js +19 -0
- data/node_modules/cssstyle/lib/properties/flexShrink.js +19 -0
- data/node_modules/cssstyle/lib/properties/float.js +12 -0
- data/node_modules/cssstyle/lib/properties/floodColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/font.js +43 -0
- data/node_modules/cssstyle/lib/properties/fontFamily.js +33 -0
- data/node_modules/cssstyle/lib/properties/fontSize.js +38 -0
- data/node_modules/cssstyle/lib/properties/fontStyle.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontVariant.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontWeight.js +33 -0
- data/node_modules/cssstyle/lib/properties/height.js +24 -0
- data/node_modules/cssstyle/lib/properties/left.js +14 -0
- data/node_modules/cssstyle/lib/properties/lightingColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/lineHeight.js +26 -0
- data/node_modules/cssstyle/lib/properties/margin.js +68 -0
- data/node_modules/cssstyle/lib/properties/marginBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/opacity.js +14 -0
- data/node_modules/cssstyle/lib/properties/outlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/padding.js +61 -0
- data/node_modules/cssstyle/lib/properties/paddingBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/right.js +14 -0
- data/node_modules/cssstyle/lib/properties/stopColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textOverlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/top.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/width.js +24 -0
- data/node_modules/cssstyle/lib/properties.js +1833 -0
- data/node_modules/cssstyle/lib/utils/colorSpace.js +21 -0
- data/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js +14 -0
- data/node_modules/cssstyle/node_modules/cssom/LICENSE.txt +20 -0
- data/node_modules/cssstyle/node_modules/cssom/README.mdown +67 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSHostRule.js +37 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSImportRule.js +132 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSOM.js +3 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSRule.js +43 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSValue.js +43 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/MatcherList.js +62 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/MediaList.js +61 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/StyleSheet.js +17 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/clone.js +82 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/index.js +21 -0
- data/node_modules/cssstyle/node_modules/cssom/lib/parse.js +464 -0
- data/node_modules/cssstyle/node_modules/cssom/package.json +18 -0
- data/node_modules/cssstyle/package.json +72 -0
- data/node_modules/data-urls/LICENSE.txt +7 -0
- data/node_modules/data-urls/README.md +64 -0
- data/node_modules/data-urls/lib/parser.js +74 -0
- data/node_modules/data-urls/lib/utils.js +23 -0
- data/node_modules/data-urls/package.json +53 -0
- data/node_modules/debug/LICENSE +19 -0
- data/node_modules/debug/README.md +455 -0
- data/node_modules/debug/package.json +59 -0
- data/node_modules/debug/src/browser.js +269 -0
- data/node_modules/debug/src/common.js +274 -0
- data/node_modules/debug/src/index.js +10 -0
- data/node_modules/debug/src/node.js +263 -0
- data/node_modules/decimal.js/CHANGELOG.md +231 -0
- data/node_modules/decimal.js/LICENCE.md +23 -0
- data/node_modules/decimal.js/README.md +246 -0
- data/node_modules/decimal.js/decimal.d.ts +300 -0
- data/node_modules/decimal.js/decimal.js +4934 -0
- data/node_modules/decimal.js/decimal.mjs +4898 -0
- data/node_modules/decimal.js/package.json +40 -0
- data/node_modules/deep-is/LICENSE +22 -0
- data/node_modules/deep-is/README.markdown +70 -0
- data/node_modules/deep-is/example/cmp.js +11 -0
- data/node_modules/deep-is/index.js +102 -0
- data/node_modules/deep-is/package.json +61 -0
- data/node_modules/deep-is/test/NaN.js +16 -0
- data/node_modules/deep-is/test/cmp.js +23 -0
- data/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
- data/node_modules/delayed-stream/License +19 -0
- data/node_modules/delayed-stream/Makefile +7 -0
- data/node_modules/delayed-stream/Readme.md +141 -0
- data/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- data/node_modules/delayed-stream/package.json +27 -0
- data/node_modules/domexception/LICENSE.txt +21 -0
- data/node_modules/domexception/README.md +31 -0
- data/node_modules/domexception/index.js +7 -0
- data/node_modules/domexception/lib/DOMException-impl.js +22 -0
- data/node_modules/domexception/lib/DOMException.js +205 -0
- data/node_modules/domexception/lib/legacy-error-codes.json +27 -0
- data/node_modules/domexception/lib/utils.js +115 -0
- data/node_modules/domexception/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/node_modules/domexception/node_modules/webidl-conversions/README.md +79 -0
- data/node_modules/domexception/node_modules/webidl-conversions/lib/index.js +361 -0
- data/node_modules/domexception/node_modules/webidl-conversions/package.json +30 -0
- data/node_modules/domexception/package.json +42 -0
- data/node_modules/domexception/webidl2js-wrapper.js +15 -0
- data/node_modules/escodegen/LICENSE.BSD +21 -0
- data/node_modules/escodegen/README.md +84 -0
- data/node_modules/escodegen/bin/escodegen.js +77 -0
- data/node_modules/escodegen/bin/esgenerate.js +64 -0
- data/node_modules/escodegen/escodegen.js +2647 -0
- data/node_modules/escodegen/package.json +62 -0
- data/node_modules/estraverse/LICENSE.BSD +19 -0
- data/node_modules/estraverse/README.md +153 -0
- data/node_modules/estraverse/estraverse.js +801 -0
- data/node_modules/estraverse/gulpfile.js +70 -0
- data/node_modules/estraverse/package.json +40 -0
- data/node_modules/esutils/LICENSE.BSD +19 -0
- data/node_modules/esutils/README.md +174 -0
- data/node_modules/esutils/lib/ast.js +144 -0
- data/node_modules/esutils/lib/code.js +135 -0
- data/node_modules/esutils/lib/keyword.js +165 -0
- data/node_modules/esutils/lib/utils.js +33 -0
- data/node_modules/esutils/package.json +44 -0
- data/node_modules/fast-levenshtein/LICENSE.md +25 -0
- data/node_modules/fast-levenshtein/README.md +104 -0
- data/node_modules/fast-levenshtein/levenshtein.js +136 -0
- data/node_modules/fast-levenshtein/package.json +39 -0
- data/node_modules/form-data/License +19 -0
- data/node_modules/form-data/README.md.bak +356 -0
- data/node_modules/form-data/Readme.md +356 -0
- data/node_modules/form-data/index.d.ts +62 -0
- data/node_modules/form-data/lib/browser.js +2 -0
- data/node_modules/form-data/lib/form_data.js +498 -0
- data/node_modules/form-data/lib/populate.js +10 -0
- data/node_modules/form-data/package.json +68 -0
- data/node_modules/html-encoding-sniffer/LICENSE.txt +7 -0
- data/node_modules/html-encoding-sniffer/README.md +38 -0
- data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +295 -0
- data/node_modules/html-encoding-sniffer/package.json +30 -0
- data/node_modules/http-proxy-agent/README.md +74 -0
- data/node_modules/http-proxy-agent/dist/agent.d.ts +32 -0
- data/node_modules/http-proxy-agent/dist/agent.js +145 -0
- data/node_modules/http-proxy-agent/dist/agent.js.map +1 -0
- data/node_modules/http-proxy-agent/dist/index.d.ts +21 -0
- data/node_modules/http-proxy-agent/dist/index.js +14 -0
- data/node_modules/http-proxy-agent/dist/index.js.map +1 -0
- data/node_modules/http-proxy-agent/package.json +57 -0
- data/node_modules/https-proxy-agent/README.md +137 -0
- data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- data/node_modules/https-proxy-agent/dist/agent.js +180 -0
- data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- data/node_modules/https-proxy-agent/dist/index.js +14 -0
- data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- data/node_modules/https-proxy-agent/package.json +56 -0
- data/node_modules/iconv-lite/Changelog.md +162 -0
- data/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/iconv-lite/README.md +156 -0
- data/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- data/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- data/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/iconv-lite/encodings/internal.js +188 -0
- data/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- data/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/iconv-lite/encodings/utf16.js +177 -0
- data/node_modules/iconv-lite/encodings/utf7.js +290 -0
- data/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/iconv-lite/lib/extend-node.js +217 -0
- data/node_modules/iconv-lite/lib/index.d.ts +24 -0
- data/node_modules/iconv-lite/lib/index.js +153 -0
- data/node_modules/iconv-lite/lib/streams.js +121 -0
- data/node_modules/iconv-lite/package.json +46 -0
- data/node_modules/is-potential-custom-element-name/LICENSE-MIT.txt +20 -0
- data/node_modules/is-potential-custom-element-name/README.md +40 -0
- data/node_modules/is-potential-custom-element-name/index.js +9 -0
- data/node_modules/is-potential-custom-element-name/package.json +35 -0
- data/node_modules/jsdom/LICENSE.txt +22 -0
- data/node_modules/jsdom/README.md +522 -0
- data/node_modules/jsdom/lib/api.js +333 -0
- data/node_modules/jsdom/lib/jsdom/browser/Window.js +933 -0
- data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +789 -0
- data/node_modules/jsdom/lib/jsdom/browser/js-globals.json +307 -0
- data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
- data/node_modules/jsdom/lib/jsdom/browser/parser/html.js +223 -0
- data/node_modules/jsdom/lib/jsdom/browser/parser/index.js +37 -0
- data/node_modules/jsdom/lib/jsdom/browser/parser/xml.js +202 -0
- data/node_modules/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
- data/node_modules/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +8 -0
- data/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +95 -0
- data/node_modules/jsdom/lib/jsdom/browser/resources/request-manager.js +33 -0
- data/node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js +142 -0
- data/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js +142 -0
- data/node_modules/jsdom/lib/jsdom/level2/style.js +57 -0
- data/node_modules/jsdom/lib/jsdom/level3/xpath.js +1874 -0
- data/node_modules/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +55 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +60 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes.js +312 -0
- data/node_modules/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
- data/node_modules/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
- data/node_modules/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +265 -0
- data/node_modules/jsdom/lib/jsdom/living/documents.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +58 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +29 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/serialization.js +45 -0
- data/node_modules/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
- data/node_modules/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
- data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +197 -0
- data/node_modules/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +403 -0
- data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/events/InputEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +49 -0
- data/node_modules/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
- data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +59 -0
- data/node_modules/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/fetch/Headers-impl.js +165 -0
- data/node_modules/jsdom/lib/jsdom/living/fetch/header-list.js +54 -0
- data/node_modules/jsdom/lib/jsdom/living/fetch/header-types.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/file-api/Blob-impl.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/file-api/File-impl.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/file-api/FileList-impl.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AbortController.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AbortSignal.js +159 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AbstractRange.js +162 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +44 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +215 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/BarProp.js +118 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/BinaryType.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Blob.js +198 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/BlobCallback.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CDATASection.js +114 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +436 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CloseEvent.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CloseEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEvent.js +217 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +242 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +200 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +232 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMStringMap.js +322 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMTokenList.js +531 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +3322 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +325 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +246 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +1609 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EndingType.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +186 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +80 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +390 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +52 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js +35 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +188 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +252 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/External.js +129 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/File.js +176 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FileList.js +305 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FileReader.js +440 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +142 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +36 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +421 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Function.js +46 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +915 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +739 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +115 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +188 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +808 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +487 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +291 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCollection.js +358 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +156 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +128 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +156 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +156 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +156 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +2269 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +346 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +315 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +226 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +457 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +459 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +683 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +300 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +115 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +621 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +789 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +1696 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +194 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +175 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +496 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +166 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +509 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +802 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +156 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +261 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +338 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +202 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +266 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +839 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +192 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +351 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +533 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +371 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +261 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +115 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +158 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +209 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +166 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +424 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +957 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +188 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +310 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +115 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +200 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +635 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +339 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +725 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +386 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +329 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +126 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +1088 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +152 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +334 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +192 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +114 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +310 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +153 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +44 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Headers.js +379 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/History.js +256 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/InputEvent.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/InputEventInit.js +59 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +413 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +104 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +370 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +301 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +94 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MimeType.js +151 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +330 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +463 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserver.js +171 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MutationRecord.js +216 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +522 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +297 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +736 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NodeFilter.js +74 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NodeIterator.js +196 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NodeList.js +309 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +46 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +60 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Performance.js +145 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Plugin.js +361 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PluginArray.js +340 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +142 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +166 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Range.js +619 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +143 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +64 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGElement.js +1986 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +144 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGNumber.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +681 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGStringList.js +504 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +114 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Screen.js +173 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +45 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Selection.js +527 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SelectionMode.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRoot.js +185 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/StaticRange.js +126 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +66 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Storage.js +389 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/StorageEvent.js +305 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/StorageEventInit.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/StyleSheetList.js +307 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/SupportedType.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +169 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TextTrackKind.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +208 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TouchEventInit.js +89 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +236 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +235 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +59 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ValidityState.js +228 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/VisibilityState.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/WebSocket.js +444 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/WheelEvent.js +183 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/WheelEventInit.js +68 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +114 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +617 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +341 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +114 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLSerializer.js +133 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +141 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/agent-factory.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/create-element.js +320 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +188 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/custom-elements.js +270 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/dates-and-times.js +270 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/details.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +54 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/events.js +24 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +104 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +306 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/html-constructor.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js +254 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/json.js +12 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js +198 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/namespaces.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/node.js +68 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set.js +104 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +76 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +47 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/shadow-dom.js +285 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/strings.js +148 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/style-rules.js +114 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +113 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/svg/render.js +46 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/text.js +19 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +72 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +75 -0
- data/node_modules/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +25 -0
- data/node_modules/jsdom/lib/jsdom/living/interfaces.js +217 -0
- data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
- data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +141 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
- data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
- data/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/node.js +331 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +20 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +946 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +578 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +25 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +160 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +226 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +261 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +371 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +132 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1128 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +101 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +74 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +265 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +74 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +272 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +1165 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +96 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +52 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/post-message.js +39 -0
- data/node_modules/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/range/Range-impl.js +889 -0
- data/node_modules/jsdom/lib/jsdom/living/range/StaticRange-impl.js +39 -0
- data/node_modules/jsdom/lib/jsdom/living/range/boundary-point.js +47 -0
- data/node_modules/jsdom/lib/jsdom/living/selection/Selection-impl.js +342 -0
- data/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/svg/SVGListBase.js +195 -0
- data/node_modules/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
- data/node_modules/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +127 -0
- data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
- data/node_modules/jsdom/lib/jsdom/living/traversal/helpers.js +44 -0
- data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +175 -0
- data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +328 -0
- data/node_modules/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
- data/node_modules/jsdom/lib/jsdom/living/window/BarProp-impl.js +10 -0
- data/node_modules/jsdom/lib/jsdom/living/window/External-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +238 -0
- data/node_modules/jsdom/lib/jsdom/living/window/Screen-impl.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/window/SessionHistory.js +163 -0
- data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +84 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +171 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1023 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +60 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js +438 -0
- data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +158 -0
- data/node_modules/jsdom/lib/jsdom/utils.js +165 -0
- data/node_modules/jsdom/lib/jsdom/virtual-console.js +34 -0
- data/node_modules/jsdom/lib/jsdom/vm-shim.js +106 -0
- data/node_modules/jsdom/package.json +116 -0
- data/node_modules/levn/LICENSE +22 -0
- data/node_modules/levn/README.md +196 -0
- data/node_modules/levn/lib/cast.js +298 -0
- data/node_modules/levn/lib/coerce.js +285 -0
- data/node_modules/levn/lib/index.js +22 -0
- data/node_modules/levn/lib/parse-string.js +113 -0
- data/node_modules/levn/lib/parse.js +102 -0
- data/node_modules/levn/package.json +47 -0
- data/node_modules/lodash/LICENSE +47 -0
- data/node_modules/lodash/README.md +39 -0
- data/node_modules/lodash/_DataView.js +7 -0
- data/node_modules/lodash/_Hash.js +32 -0
- data/node_modules/lodash/_LazyWrapper.js +28 -0
- data/node_modules/lodash/_ListCache.js +32 -0
- data/node_modules/lodash/_LodashWrapper.js +22 -0
- data/node_modules/lodash/_Map.js +7 -0
- data/node_modules/lodash/_MapCache.js +32 -0
- data/node_modules/lodash/_Promise.js +7 -0
- data/node_modules/lodash/_Set.js +7 -0
- data/node_modules/lodash/_SetCache.js +27 -0
- data/node_modules/lodash/_Stack.js +27 -0
- data/node_modules/lodash/_Symbol.js +6 -0
- data/node_modules/lodash/_Uint8Array.js +6 -0
- data/node_modules/lodash/_WeakMap.js +7 -0
- data/node_modules/lodash/_apply.js +21 -0
- data/node_modules/lodash/_arrayAggregator.js +22 -0
- data/node_modules/lodash/_arrayEach.js +22 -0
- data/node_modules/lodash/_arrayEachRight.js +21 -0
- data/node_modules/lodash/_arrayEvery.js +23 -0
- data/node_modules/lodash/_arrayFilter.js +25 -0
- data/node_modules/lodash/_arrayIncludes.js +17 -0
- data/node_modules/lodash/_arrayIncludesWith.js +22 -0
- data/node_modules/lodash/_arrayLikeKeys.js +49 -0
- data/node_modules/lodash/_arrayMap.js +21 -0
- data/node_modules/lodash/_arrayPush.js +20 -0
- data/node_modules/lodash/_arrayReduce.js +26 -0
- data/node_modules/lodash/_arrayReduceRight.js +24 -0
- data/node_modules/lodash/_arraySample.js +15 -0
- data/node_modules/lodash/_arraySampleSize.js +17 -0
- data/node_modules/lodash/_arrayShuffle.js +15 -0
- data/node_modules/lodash/_arraySome.js +23 -0
- data/node_modules/lodash/_asciiSize.js +12 -0
- data/node_modules/lodash/_asciiToArray.js +12 -0
- data/node_modules/lodash/_asciiWords.js +15 -0
- data/node_modules/lodash/_assignMergeValue.js +20 -0
- data/node_modules/lodash/_assignValue.js +28 -0
- data/node_modules/lodash/_assocIndexOf.js +21 -0
- data/node_modules/lodash/_baseAggregator.js +21 -0
- data/node_modules/lodash/_baseAssign.js +17 -0
- data/node_modules/lodash/_baseAssignIn.js +17 -0
- data/node_modules/lodash/_baseAssignValue.js +25 -0
- data/node_modules/lodash/_baseAt.js +23 -0
- data/node_modules/lodash/_baseClamp.js +22 -0
- data/node_modules/lodash/_baseClone.js +166 -0
- data/node_modules/lodash/_baseConforms.js +18 -0
- data/node_modules/lodash/_baseConformsTo.js +27 -0
- data/node_modules/lodash/_baseCreate.js +30 -0
- data/node_modules/lodash/_baseDelay.js +21 -0
- data/node_modules/lodash/_baseDifference.js +67 -0
- data/node_modules/lodash/_baseEach.js +14 -0
- data/node_modules/lodash/_baseEachRight.js +14 -0
- data/node_modules/lodash/_baseEvery.js +21 -0
- data/node_modules/lodash/_baseExtremum.js +32 -0
- data/node_modules/lodash/_baseFill.js +32 -0
- data/node_modules/lodash/_baseFilter.js +21 -0
- data/node_modules/lodash/_baseFindIndex.js +24 -0
- data/node_modules/lodash/_baseFindKey.js +23 -0
- data/node_modules/lodash/_baseFlatten.js +38 -0
- data/node_modules/lodash/_baseFor.js +16 -0
- data/node_modules/lodash/_baseForOwn.js +16 -0
- data/node_modules/lodash/_baseForOwnRight.js +16 -0
- data/node_modules/lodash/_baseForRight.js +15 -0
- data/node_modules/lodash/_baseFunctions.js +19 -0
- data/node_modules/lodash/_baseGet.js +24 -0
- data/node_modules/lodash/_baseGetAllKeys.js +20 -0
- data/node_modules/lodash/_baseGetTag.js +28 -0
- data/node_modules/lodash/_baseGt.js +14 -0
- data/node_modules/lodash/_baseHas.js +19 -0
- data/node_modules/lodash/_baseHasIn.js +13 -0
- data/node_modules/lodash/_baseInRange.js +18 -0
- data/node_modules/lodash/_baseIndexOf.js +20 -0
- data/node_modules/lodash/_baseIndexOfWith.js +23 -0
- data/node_modules/lodash/_baseIntersection.js +74 -0
- data/node_modules/lodash/_baseInverter.js +21 -0
- data/node_modules/lodash/_baseInvoke.js +24 -0
- data/node_modules/lodash/_baseIsArguments.js +18 -0
- data/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- data/node_modules/lodash/_baseIsDate.js +18 -0
- data/node_modules/lodash/_baseIsEqual.js +28 -0
- data/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- data/node_modules/lodash/_baseIsMap.js +18 -0
- data/node_modules/lodash/_baseIsMatch.js +62 -0
- data/node_modules/lodash/_baseIsNaN.js +12 -0
- data/node_modules/lodash/_baseIsNative.js +47 -0
- data/node_modules/lodash/_baseIsRegExp.js +18 -0
- data/node_modules/lodash/_baseIsSet.js +18 -0
- data/node_modules/lodash/_baseIsTypedArray.js +60 -0
- data/node_modules/lodash/_baseIteratee.js +31 -0
- data/node_modules/lodash/_baseKeys.js +30 -0
- data/node_modules/lodash/_baseKeysIn.js +33 -0
- data/node_modules/lodash/_baseLodash.js +10 -0
- data/node_modules/lodash/_baseLt.js +14 -0
- data/node_modules/lodash/_baseMap.js +22 -0
- data/node_modules/lodash/_baseMatches.js +22 -0
- data/node_modules/lodash/_baseMatchesProperty.js +33 -0
- data/node_modules/lodash/_baseMean.js +20 -0
- data/node_modules/lodash/_baseMerge.js +42 -0
- data/node_modules/lodash/_baseMergeDeep.js +94 -0
- data/node_modules/lodash/_baseNth.js +20 -0
- data/node_modules/lodash/_baseOrderBy.js +49 -0
- data/node_modules/lodash/_basePick.js +19 -0
- data/node_modules/lodash/_basePickBy.js +30 -0
- data/node_modules/lodash/_baseProperty.js +14 -0
- data/node_modules/lodash/_basePropertyDeep.js +16 -0
- data/node_modules/lodash/_basePropertyOf.js +14 -0
- data/node_modules/lodash/_basePullAll.js +51 -0
- data/node_modules/lodash/_basePullAt.js +37 -0
- data/node_modules/lodash/_baseRandom.js +18 -0
- data/node_modules/lodash/_baseRange.js +28 -0
- data/node_modules/lodash/_baseReduce.js +23 -0
- data/node_modules/lodash/_baseRepeat.js +35 -0
- data/node_modules/lodash/_baseRest.js +17 -0
- data/node_modules/lodash/_baseSample.js +15 -0
- data/node_modules/lodash/_baseSampleSize.js +18 -0
- data/node_modules/lodash/_baseSet.js +51 -0
- data/node_modules/lodash/_baseSetData.js +17 -0
- data/node_modules/lodash/_baseSetToString.js +22 -0
- data/node_modules/lodash/_baseShuffle.js +15 -0
- data/node_modules/lodash/_baseSlice.js +31 -0
- data/node_modules/lodash/_baseSome.js +22 -0
- data/node_modules/lodash/_baseSortBy.js +21 -0
- data/node_modules/lodash/_baseSortedIndex.js +42 -0
- data/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- data/node_modules/lodash/_baseSortedUniq.js +30 -0
- data/node_modules/lodash/_baseSum.js +24 -0
- data/node_modules/lodash/_baseTimes.js +20 -0
- data/node_modules/lodash/_baseToNumber.js +24 -0
- data/node_modules/lodash/_baseToPairs.js +18 -0
- data/node_modules/lodash/_baseToString.js +37 -0
- data/node_modules/lodash/_baseTrim.js +19 -0
- data/node_modules/lodash/_baseUnary.js +14 -0
- data/node_modules/lodash/_baseUniq.js +72 -0
- data/node_modules/lodash/_baseUnset.js +20 -0
- data/node_modules/lodash/_baseUpdate.js +18 -0
- data/node_modules/lodash/_baseValues.js +19 -0
- data/node_modules/lodash/_baseWhile.js +26 -0
- data/node_modules/lodash/_baseWrapperValue.js +25 -0
- data/node_modules/lodash/_baseXor.js +36 -0
- data/node_modules/lodash/_baseZipObject.js +23 -0
- data/node_modules/lodash/_cacheHas.js +13 -0
- data/node_modules/lodash/_castArrayLikeObject.js +14 -0
- data/node_modules/lodash/_castFunction.js +14 -0
- data/node_modules/lodash/_castPath.js +21 -0
- data/node_modules/lodash/_castRest.js +14 -0
- data/node_modules/lodash/_castSlice.js +18 -0
- data/node_modules/lodash/_charsEndIndex.js +19 -0
- data/node_modules/lodash/_charsStartIndex.js +20 -0
- data/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- data/node_modules/lodash/_cloneBuffer.js +35 -0
- data/node_modules/lodash/_cloneDataView.js +16 -0
- data/node_modules/lodash/_cloneRegExp.js +17 -0
- data/node_modules/lodash/_cloneSymbol.js +18 -0
- data/node_modules/lodash/_cloneTypedArray.js +16 -0
- data/node_modules/lodash/_compareAscending.js +41 -0
- data/node_modules/lodash/_compareMultiple.js +44 -0
- data/node_modules/lodash/_composeArgs.js +39 -0
- data/node_modules/lodash/_composeArgsRight.js +41 -0
- data/node_modules/lodash/_copyArray.js +20 -0
- data/node_modules/lodash/_copyObject.js +40 -0
- data/node_modules/lodash/_copySymbols.js +16 -0
- data/node_modules/lodash/_copySymbolsIn.js +16 -0
- data/node_modules/lodash/_coreJsData.js +6 -0
- data/node_modules/lodash/_countHolders.js +21 -0
- data/node_modules/lodash/_createAggregator.js +23 -0
- data/node_modules/lodash/_createAssigner.js +37 -0
- data/node_modules/lodash/_createBaseEach.js +32 -0
- data/node_modules/lodash/_createBaseFor.js +25 -0
- data/node_modules/lodash/_createBind.js +28 -0
- data/node_modules/lodash/_createCaseFirst.js +33 -0
- data/node_modules/lodash/_createCompounder.js +24 -0
- data/node_modules/lodash/_createCtor.js +37 -0
- data/node_modules/lodash/_createCurry.js +46 -0
- data/node_modules/lodash/_createFind.js +25 -0
- data/node_modules/lodash/_createFlow.js +78 -0
- data/node_modules/lodash/_createHybrid.js +92 -0
- data/node_modules/lodash/_createInverter.js +17 -0
- data/node_modules/lodash/_createMathOperation.js +38 -0
- data/node_modules/lodash/_createOver.js +27 -0
- data/node_modules/lodash/_createPadding.js +33 -0
- data/node_modules/lodash/_createPartial.js +43 -0
- data/node_modules/lodash/_createRange.js +30 -0
- data/node_modules/lodash/_createRecurry.js +56 -0
- data/node_modules/lodash/_createRelationalOperation.js +20 -0
- data/node_modules/lodash/_createRound.js +35 -0
- data/node_modules/lodash/_createSet.js +19 -0
- data/node_modules/lodash/_createToPairs.js +30 -0
- data/node_modules/lodash/_createWrap.js +106 -0
- data/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- data/node_modules/lodash/_customDefaultsMerge.js +28 -0
- data/node_modules/lodash/_customOmitClone.js +16 -0
- data/node_modules/lodash/_deburrLetter.js +71 -0
- data/node_modules/lodash/_defineProperty.js +11 -0
- data/node_modules/lodash/_equalArrays.js +84 -0
- data/node_modules/lodash/_equalByTag.js +112 -0
- data/node_modules/lodash/_equalObjects.js +90 -0
- data/node_modules/lodash/_escapeHtmlChar.js +21 -0
- data/node_modules/lodash/_escapeStringChar.js +22 -0
- data/node_modules/lodash/_flatRest.js +16 -0
- data/node_modules/lodash/_freeGlobal.js +4 -0
- data/node_modules/lodash/_getAllKeys.js +16 -0
- data/node_modules/lodash/_getAllKeysIn.js +17 -0
- data/node_modules/lodash/_getData.js +15 -0
- data/node_modules/lodash/_getFuncName.js +31 -0
- data/node_modules/lodash/_getHolder.js +13 -0
- data/node_modules/lodash/_getMapData.js +18 -0
- data/node_modules/lodash/_getMatchData.js +24 -0
- data/node_modules/lodash/_getNative.js +17 -0
- data/node_modules/lodash/_getPrototype.js +6 -0
- data/node_modules/lodash/_getRawTag.js +46 -0
- data/node_modules/lodash/_getSymbols.js +30 -0
- data/node_modules/lodash/_getSymbolsIn.js +25 -0
- data/node_modules/lodash/_getTag.js +58 -0
- data/node_modules/lodash/_getValue.js +13 -0
- data/node_modules/lodash/_getView.js +33 -0
- data/node_modules/lodash/_getWrapDetails.js +17 -0
- data/node_modules/lodash/_hasPath.js +39 -0
- data/node_modules/lodash/_hasUnicode.js +26 -0
- data/node_modules/lodash/_hasUnicodeWord.js +15 -0
- data/node_modules/lodash/_hashClear.js +15 -0
- data/node_modules/lodash/_hashDelete.js +17 -0
- data/node_modules/lodash/_hashGet.js +30 -0
- data/node_modules/lodash/_hashHas.js +23 -0
- data/node_modules/lodash/_hashSet.js +23 -0
- data/node_modules/lodash/_initCloneArray.js +26 -0
- data/node_modules/lodash/_initCloneByTag.js +77 -0
- data/node_modules/lodash/_initCloneObject.js +18 -0
- data/node_modules/lodash/_insertWrapDetails.js +23 -0
- data/node_modules/lodash/_isFlattenable.js +20 -0
- data/node_modules/lodash/_isIndex.js +25 -0
- data/node_modules/lodash/_isIterateeCall.js +30 -0
- data/node_modules/lodash/_isKey.js +29 -0
- data/node_modules/lodash/_isKeyable.js +15 -0
- data/node_modules/lodash/_isLaziable.js +28 -0
- data/node_modules/lodash/_isMaskable.js +14 -0
- data/node_modules/lodash/_isMasked.js +20 -0
- data/node_modules/lodash/_isPrototype.js +18 -0
- data/node_modules/lodash/_isStrictComparable.js +15 -0
- data/node_modules/lodash/_iteratorToArray.js +18 -0
- data/node_modules/lodash/_lazyClone.js +23 -0
- data/node_modules/lodash/_lazyReverse.js +23 -0
- data/node_modules/lodash/_lazyValue.js +69 -0
- data/node_modules/lodash/_listCacheClear.js +13 -0
- data/node_modules/lodash/_listCacheDelete.js +35 -0
- data/node_modules/lodash/_listCacheGet.js +19 -0
- data/node_modules/lodash/_listCacheHas.js +16 -0
- data/node_modules/lodash/_listCacheSet.js +26 -0
- data/node_modules/lodash/_mapCacheClear.js +21 -0
- data/node_modules/lodash/_mapCacheDelete.js +18 -0
- data/node_modules/lodash/_mapCacheGet.js +16 -0
- data/node_modules/lodash/_mapCacheHas.js +16 -0
- data/node_modules/lodash/_mapCacheSet.js +22 -0
- data/node_modules/lodash/_mapToArray.js +18 -0
- data/node_modules/lodash/_matchesStrictComparable.js +20 -0
- data/node_modules/lodash/_memoizeCapped.js +26 -0
- data/node_modules/lodash/_mergeData.js +90 -0
- data/node_modules/lodash/_metaMap.js +6 -0
- data/node_modules/lodash/_nativeCreate.js +6 -0
- data/node_modules/lodash/_nativeKeys.js +6 -0
- data/node_modules/lodash/_nativeKeysIn.js +20 -0
- data/node_modules/lodash/_nodeUtil.js +30 -0
- data/node_modules/lodash/_objectToString.js +22 -0
- data/node_modules/lodash/_overArg.js +15 -0
- data/node_modules/lodash/_overRest.js +36 -0
- data/node_modules/lodash/_parent.js +16 -0
- data/node_modules/lodash/_reEscape.js +4 -0
- data/node_modules/lodash/_reEvaluate.js +4 -0
- data/node_modules/lodash/_reInterpolate.js +4 -0
- data/node_modules/lodash/_realNames.js +4 -0
- data/node_modules/lodash/_reorder.js +29 -0
- data/node_modules/lodash/_replaceHolders.js +29 -0
- data/node_modules/lodash/_root.js +9 -0
- data/node_modules/lodash/_safeGet.js +21 -0
- data/node_modules/lodash/_setCacheAdd.js +19 -0
- data/node_modules/lodash/_setCacheHas.js +14 -0
- data/node_modules/lodash/_setData.js +20 -0
- data/node_modules/lodash/_setToArray.js +18 -0
- data/node_modules/lodash/_setToPairs.js +18 -0
- data/node_modules/lodash/_setToString.js +14 -0
- data/node_modules/lodash/_setWrapToString.js +21 -0
- data/node_modules/lodash/_shortOut.js +37 -0
- data/node_modules/lodash/_shuffleSelf.js +28 -0
- data/node_modules/lodash/_stackClear.js +15 -0
- data/node_modules/lodash/_stackDelete.js +18 -0
- data/node_modules/lodash/_stackGet.js +14 -0
- data/node_modules/lodash/_stackHas.js +14 -0
- data/node_modules/lodash/_stackSet.js +34 -0
- data/node_modules/lodash/_strictIndexOf.js +23 -0
- data/node_modules/lodash/_strictLastIndexOf.js +21 -0
- data/node_modules/lodash/_stringSize.js +18 -0
- data/node_modules/lodash/_stringToArray.js +18 -0
- data/node_modules/lodash/_stringToPath.js +27 -0
- data/node_modules/lodash/_toKey.js +21 -0
- data/node_modules/lodash/_toSource.js +26 -0
- data/node_modules/lodash/_trimmedEndIndex.js +19 -0
- data/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- data/node_modules/lodash/_unicodeSize.js +44 -0
- data/node_modules/lodash/_unicodeToArray.js +40 -0
- data/node_modules/lodash/_unicodeWords.js +69 -0
- data/node_modules/lodash/_updateWrapDetails.js +46 -0
- data/node_modules/lodash/_wrapperClone.js +23 -0
- data/node_modules/lodash/add.js +22 -0
- data/node_modules/lodash/after.js +42 -0
- data/node_modules/lodash/array.js +67 -0
- data/node_modules/lodash/ary.js +29 -0
- data/node_modules/lodash/assign.js +58 -0
- data/node_modules/lodash/assignIn.js +40 -0
- data/node_modules/lodash/assignInWith.js +38 -0
- data/node_modules/lodash/assignWith.js +37 -0
- data/node_modules/lodash/at.js +23 -0
- data/node_modules/lodash/attempt.js +35 -0
- data/node_modules/lodash/before.js +40 -0
- data/node_modules/lodash/bind.js +57 -0
- data/node_modules/lodash/bindAll.js +41 -0
- data/node_modules/lodash/bindKey.js +68 -0
- data/node_modules/lodash/camelCase.js +29 -0
- data/node_modules/lodash/capitalize.js +23 -0
- data/node_modules/lodash/castArray.js +44 -0
- data/node_modules/lodash/ceil.js +26 -0
- data/node_modules/lodash/chain.js +38 -0
- data/node_modules/lodash/chunk.js +50 -0
- data/node_modules/lodash/clamp.js +39 -0
- data/node_modules/lodash/clone.js +36 -0
- data/node_modules/lodash/cloneDeep.js +29 -0
- data/node_modules/lodash/cloneDeepWith.js +40 -0
- data/node_modules/lodash/cloneWith.js +42 -0
- data/node_modules/lodash/collection.js +30 -0
- data/node_modules/lodash/commit.js +33 -0
- data/node_modules/lodash/compact.js +31 -0
- data/node_modules/lodash/concat.js +43 -0
- data/node_modules/lodash/cond.js +60 -0
- data/node_modules/lodash/conforms.js +35 -0
- data/node_modules/lodash/conformsTo.js +32 -0
- data/node_modules/lodash/constant.js +26 -0
- data/node_modules/lodash/core.js +3877 -0
- data/node_modules/lodash/core.min.js +29 -0
- data/node_modules/lodash/countBy.js +40 -0
- data/node_modules/lodash/create.js +43 -0
- data/node_modules/lodash/curry.js +57 -0
- data/node_modules/lodash/curryRight.js +54 -0
- data/node_modules/lodash/date.js +3 -0
- data/node_modules/lodash/debounce.js +191 -0
- data/node_modules/lodash/deburr.js +45 -0
- data/node_modules/lodash/defaultTo.js +25 -0
- data/node_modules/lodash/defaults.js +64 -0
- data/node_modules/lodash/defaultsDeep.js +30 -0
- data/node_modules/lodash/defer.js +26 -0
- data/node_modules/lodash/delay.js +28 -0
- data/node_modules/lodash/difference.js +33 -0
- data/node_modules/lodash/differenceBy.js +44 -0
- data/node_modules/lodash/differenceWith.js +40 -0
- data/node_modules/lodash/divide.js +22 -0
- data/node_modules/lodash/drop.js +38 -0
- data/node_modules/lodash/dropRight.js +39 -0
- data/node_modules/lodash/dropRightWhile.js +45 -0
- data/node_modules/lodash/dropWhile.js +45 -0
- data/node_modules/lodash/each.js +1 -0
- data/node_modules/lodash/eachRight.js +1 -0
- data/node_modules/lodash/endsWith.js +43 -0
- data/node_modules/lodash/entries.js +1 -0
- data/node_modules/lodash/entriesIn.js +1 -0
- data/node_modules/lodash/eq.js +37 -0
- data/node_modules/lodash/escape.js +43 -0
- data/node_modules/lodash/escapeRegExp.js +32 -0
- data/node_modules/lodash/every.js +56 -0
- data/node_modules/lodash/extend.js +1 -0
- data/node_modules/lodash/extendWith.js +1 -0
- data/node_modules/lodash/fill.js +45 -0
- data/node_modules/lodash/filter.js +52 -0
- data/node_modules/lodash/find.js +42 -0
- data/node_modules/lodash/findIndex.js +55 -0
- data/node_modules/lodash/findKey.js +44 -0
- data/node_modules/lodash/findLast.js +25 -0
- data/node_modules/lodash/findLastIndex.js +59 -0
- data/node_modules/lodash/findLastKey.js +44 -0
- data/node_modules/lodash/first.js +1 -0
- data/node_modules/lodash/flake.lock +40 -0
- data/node_modules/lodash/flake.nix +20 -0
- data/node_modules/lodash/flatMap.js +29 -0
- data/node_modules/lodash/flatMapDeep.js +31 -0
- data/node_modules/lodash/flatMapDepth.js +31 -0
- data/node_modules/lodash/flatten.js +22 -0
- data/node_modules/lodash/flattenDeep.js +25 -0
- data/node_modules/lodash/flattenDepth.js +33 -0
- data/node_modules/lodash/flip.js +28 -0
- data/node_modules/lodash/floor.js +26 -0
- data/node_modules/lodash/flow.js +27 -0
- data/node_modules/lodash/flowRight.js +26 -0
- data/node_modules/lodash/forEach.js +41 -0
- data/node_modules/lodash/forEachRight.js +31 -0
- data/node_modules/lodash/forIn.js +39 -0
- data/node_modules/lodash/forInRight.js +37 -0
- data/node_modules/lodash/forOwn.js +36 -0
- data/node_modules/lodash/forOwnRight.js +34 -0
- data/node_modules/lodash/fp/F.js +1 -0
- data/node_modules/lodash/fp/T.js +1 -0
- data/node_modules/lodash/fp/__.js +1 -0
- data/node_modules/lodash/fp/_baseConvert.js +569 -0
- data/node_modules/lodash/fp/_convertBrowser.js +18 -0
- data/node_modules/lodash/fp/_falseOptions.js +7 -0
- data/node_modules/lodash/fp/_mapping.js +358 -0
- data/node_modules/lodash/fp/_util.js +16 -0
- data/node_modules/lodash/fp/add.js +5 -0
- data/node_modules/lodash/fp/after.js +5 -0
- data/node_modules/lodash/fp/all.js +1 -0
- data/node_modules/lodash/fp/allPass.js +1 -0
- data/node_modules/lodash/fp/always.js +1 -0
- data/node_modules/lodash/fp/any.js +1 -0
- data/node_modules/lodash/fp/anyPass.js +1 -0
- data/node_modules/lodash/fp/apply.js +1 -0
- data/node_modules/lodash/fp/array.js +2 -0
- data/node_modules/lodash/fp/ary.js +5 -0
- data/node_modules/lodash/fp/assign.js +5 -0
- data/node_modules/lodash/fp/assignAll.js +5 -0
- data/node_modules/lodash/fp/assignAllWith.js +5 -0
- data/node_modules/lodash/fp/assignIn.js +5 -0
- data/node_modules/lodash/fp/assignInAll.js +5 -0
- data/node_modules/lodash/fp/assignInAllWith.js +5 -0
- data/node_modules/lodash/fp/assignInWith.js +5 -0
- data/node_modules/lodash/fp/assignWith.js +5 -0
- data/node_modules/lodash/fp/assoc.js +1 -0
- data/node_modules/lodash/fp/assocPath.js +1 -0
- data/node_modules/lodash/fp/at.js +5 -0
- data/node_modules/lodash/fp/attempt.js +5 -0
- data/node_modules/lodash/fp/before.js +5 -0
- data/node_modules/lodash/fp/bind.js +5 -0
- data/node_modules/lodash/fp/bindAll.js +5 -0
- data/node_modules/lodash/fp/bindKey.js +5 -0
- data/node_modules/lodash/fp/camelCase.js +5 -0
- data/node_modules/lodash/fp/capitalize.js +5 -0
- data/node_modules/lodash/fp/castArray.js +5 -0
- data/node_modules/lodash/fp/ceil.js +5 -0
- data/node_modules/lodash/fp/chain.js +5 -0
- data/node_modules/lodash/fp/chunk.js +5 -0
- data/node_modules/lodash/fp/clamp.js +5 -0
- data/node_modules/lodash/fp/clone.js +5 -0
- data/node_modules/lodash/fp/cloneDeep.js +5 -0
- data/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- data/node_modules/lodash/fp/cloneWith.js +5 -0
- data/node_modules/lodash/fp/collection.js +2 -0
- data/node_modules/lodash/fp/commit.js +5 -0
- data/node_modules/lodash/fp/compact.js +5 -0
- data/node_modules/lodash/fp/complement.js +1 -0
- data/node_modules/lodash/fp/compose.js +1 -0
- data/node_modules/lodash/fp/concat.js +5 -0
- data/node_modules/lodash/fp/cond.js +5 -0
- data/node_modules/lodash/fp/conforms.js +1 -0
- data/node_modules/lodash/fp/conformsTo.js +5 -0
- data/node_modules/lodash/fp/constant.js +5 -0
- data/node_modules/lodash/fp/contains.js +1 -0
- data/node_modules/lodash/fp/convert.js +18 -0
- data/node_modules/lodash/fp/countBy.js +5 -0
- data/node_modules/lodash/fp/create.js +5 -0
- data/node_modules/lodash/fp/curry.js +5 -0
- data/node_modules/lodash/fp/curryN.js +5 -0
- data/node_modules/lodash/fp/curryRight.js +5 -0
- data/node_modules/lodash/fp/curryRightN.js +5 -0
- data/node_modules/lodash/fp/date.js +2 -0
- data/node_modules/lodash/fp/debounce.js +5 -0
- data/node_modules/lodash/fp/deburr.js +5 -0
- data/node_modules/lodash/fp/defaultTo.js +5 -0
- data/node_modules/lodash/fp/defaults.js +5 -0
- data/node_modules/lodash/fp/defaultsAll.js +5 -0
- data/node_modules/lodash/fp/defaultsDeep.js +5 -0
- data/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- data/node_modules/lodash/fp/defer.js +5 -0
- data/node_modules/lodash/fp/delay.js +5 -0
- data/node_modules/lodash/fp/difference.js +5 -0
- data/node_modules/lodash/fp/differenceBy.js +5 -0
- data/node_modules/lodash/fp/differenceWith.js +5 -0
- data/node_modules/lodash/fp/dissoc.js +1 -0
- data/node_modules/lodash/fp/dissocPath.js +1 -0
- data/node_modules/lodash/fp/divide.js +5 -0
- data/node_modules/lodash/fp/drop.js +5 -0
- data/node_modules/lodash/fp/dropLast.js +1 -0
- data/node_modules/lodash/fp/dropLastWhile.js +1 -0
- data/node_modules/lodash/fp/dropRight.js +5 -0
- data/node_modules/lodash/fp/dropRightWhile.js +5 -0
- data/node_modules/lodash/fp/dropWhile.js +5 -0
- data/node_modules/lodash/fp/each.js +1 -0
- data/node_modules/lodash/fp/eachRight.js +1 -0
- data/node_modules/lodash/fp/endsWith.js +5 -0
- data/node_modules/lodash/fp/entries.js +1 -0
- data/node_modules/lodash/fp/entriesIn.js +1 -0
- data/node_modules/lodash/fp/eq.js +5 -0
- data/node_modules/lodash/fp/equals.js +1 -0
- data/node_modules/lodash/fp/escape.js +5 -0
- data/node_modules/lodash/fp/escapeRegExp.js +5 -0
- data/node_modules/lodash/fp/every.js +5 -0
- data/node_modules/lodash/fp/extend.js +1 -0
- data/node_modules/lodash/fp/extendAll.js +1 -0
- data/node_modules/lodash/fp/extendAllWith.js +1 -0
- data/node_modules/lodash/fp/extendWith.js +1 -0
- data/node_modules/lodash/fp/fill.js +5 -0
- data/node_modules/lodash/fp/filter.js +5 -0
- data/node_modules/lodash/fp/find.js +5 -0
- data/node_modules/lodash/fp/findFrom.js +5 -0
- data/node_modules/lodash/fp/findIndex.js +5 -0
- data/node_modules/lodash/fp/findIndexFrom.js +5 -0
- data/node_modules/lodash/fp/findKey.js +5 -0
- data/node_modules/lodash/fp/findLast.js +5 -0
- data/node_modules/lodash/fp/findLastFrom.js +5 -0
- data/node_modules/lodash/fp/findLastIndex.js +5 -0
- data/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- data/node_modules/lodash/fp/findLastKey.js +5 -0
- data/node_modules/lodash/fp/first.js +1 -0
- data/node_modules/lodash/fp/flatMap.js +5 -0
- data/node_modules/lodash/fp/flatMapDeep.js +5 -0
- data/node_modules/lodash/fp/flatMapDepth.js +5 -0
- data/node_modules/lodash/fp/flatten.js +5 -0
- data/node_modules/lodash/fp/flattenDeep.js +5 -0
- data/node_modules/lodash/fp/flattenDepth.js +5 -0
- data/node_modules/lodash/fp/flip.js +5 -0
- data/node_modules/lodash/fp/floor.js +5 -0
- data/node_modules/lodash/fp/flow.js +5 -0
- data/node_modules/lodash/fp/flowRight.js +5 -0
- data/node_modules/lodash/fp/forEach.js +5 -0
- data/node_modules/lodash/fp/forEachRight.js +5 -0
- data/node_modules/lodash/fp/forIn.js +5 -0
- data/node_modules/lodash/fp/forInRight.js +5 -0
- data/node_modules/lodash/fp/forOwn.js +5 -0
- data/node_modules/lodash/fp/forOwnRight.js +5 -0
- data/node_modules/lodash/fp/fromPairs.js +5 -0
- data/node_modules/lodash/fp/function.js +2 -0
- data/node_modules/lodash/fp/functions.js +5 -0
- data/node_modules/lodash/fp/functionsIn.js +5 -0
- data/node_modules/lodash/fp/get.js +5 -0
- data/node_modules/lodash/fp/getOr.js +5 -0
- data/node_modules/lodash/fp/groupBy.js +5 -0
- data/node_modules/lodash/fp/gt.js +5 -0
- data/node_modules/lodash/fp/gte.js +5 -0
- data/node_modules/lodash/fp/has.js +5 -0
- data/node_modules/lodash/fp/hasIn.js +5 -0
- data/node_modules/lodash/fp/head.js +5 -0
- data/node_modules/lodash/fp/identical.js +1 -0
- data/node_modules/lodash/fp/identity.js +5 -0
- data/node_modules/lodash/fp/inRange.js +5 -0
- data/node_modules/lodash/fp/includes.js +5 -0
- data/node_modules/lodash/fp/includesFrom.js +5 -0
- data/node_modules/lodash/fp/indexBy.js +1 -0
- data/node_modules/lodash/fp/indexOf.js +5 -0
- data/node_modules/lodash/fp/indexOfFrom.js +5 -0
- data/node_modules/lodash/fp/init.js +1 -0
- data/node_modules/lodash/fp/initial.js +5 -0
- data/node_modules/lodash/fp/intersection.js +5 -0
- data/node_modules/lodash/fp/intersectionBy.js +5 -0
- data/node_modules/lodash/fp/intersectionWith.js +5 -0
- data/node_modules/lodash/fp/invert.js +5 -0
- data/node_modules/lodash/fp/invertBy.js +5 -0
- data/node_modules/lodash/fp/invertObj.js +1 -0
- data/node_modules/lodash/fp/invoke.js +5 -0
- data/node_modules/lodash/fp/invokeArgs.js +5 -0
- data/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- data/node_modules/lodash/fp/invokeMap.js +5 -0
- data/node_modules/lodash/fp/isArguments.js +5 -0
- data/node_modules/lodash/fp/isArray.js +5 -0
- data/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- data/node_modules/lodash/fp/isArrayLike.js +5 -0
- data/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- data/node_modules/lodash/fp/isBoolean.js +5 -0
- data/node_modules/lodash/fp/isBuffer.js +5 -0
- data/node_modules/lodash/fp/isDate.js +5 -0
- data/node_modules/lodash/fp/isElement.js +5 -0
- data/node_modules/lodash/fp/isEmpty.js +5 -0
- data/node_modules/lodash/fp/isEqual.js +5 -0
- data/node_modules/lodash/fp/isEqualWith.js +5 -0
- data/node_modules/lodash/fp/isError.js +5 -0
- data/node_modules/lodash/fp/isFinite.js +5 -0
- data/node_modules/lodash/fp/isFunction.js +5 -0
- data/node_modules/lodash/fp/isInteger.js +5 -0
- data/node_modules/lodash/fp/isLength.js +5 -0
- data/node_modules/lodash/fp/isMap.js +5 -0
- data/node_modules/lodash/fp/isMatch.js +5 -0
- data/node_modules/lodash/fp/isMatchWith.js +5 -0
- data/node_modules/lodash/fp/isNaN.js +5 -0
- data/node_modules/lodash/fp/isNative.js +5 -0
- data/node_modules/lodash/fp/isNil.js +5 -0
- data/node_modules/lodash/fp/isNull.js +5 -0
- data/node_modules/lodash/fp/isNumber.js +5 -0
- data/node_modules/lodash/fp/isObject.js +5 -0
- data/node_modules/lodash/fp/isObjectLike.js +5 -0
- data/node_modules/lodash/fp/isPlainObject.js +5 -0
- data/node_modules/lodash/fp/isRegExp.js +5 -0
- data/node_modules/lodash/fp/isSafeInteger.js +5 -0
- data/node_modules/lodash/fp/isSet.js +5 -0
- data/node_modules/lodash/fp/isString.js +5 -0
- data/node_modules/lodash/fp/isSymbol.js +5 -0
- data/node_modules/lodash/fp/isTypedArray.js +5 -0
- data/node_modules/lodash/fp/isUndefined.js +5 -0
- data/node_modules/lodash/fp/isWeakMap.js +5 -0
- data/node_modules/lodash/fp/isWeakSet.js +5 -0
- data/node_modules/lodash/fp/iteratee.js +5 -0
- data/node_modules/lodash/fp/join.js +5 -0
- data/node_modules/lodash/fp/juxt.js +1 -0
- data/node_modules/lodash/fp/kebabCase.js +5 -0
- data/node_modules/lodash/fp/keyBy.js +5 -0
- data/node_modules/lodash/fp/keys.js +5 -0
- data/node_modules/lodash/fp/keysIn.js +5 -0
- data/node_modules/lodash/fp/lang.js +2 -0
- data/node_modules/lodash/fp/last.js +5 -0
- data/node_modules/lodash/fp/lastIndexOf.js +5 -0
- data/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- data/node_modules/lodash/fp/lowerCase.js +5 -0
- data/node_modules/lodash/fp/lowerFirst.js +5 -0
- data/node_modules/lodash/fp/lt.js +5 -0
- data/node_modules/lodash/fp/lte.js +5 -0
- data/node_modules/lodash/fp/map.js +5 -0
- data/node_modules/lodash/fp/mapKeys.js +5 -0
- data/node_modules/lodash/fp/mapValues.js +5 -0
- data/node_modules/lodash/fp/matches.js +1 -0
- data/node_modules/lodash/fp/matchesProperty.js +5 -0
- data/node_modules/lodash/fp/math.js +2 -0
- data/node_modules/lodash/fp/max.js +5 -0
- data/node_modules/lodash/fp/maxBy.js +5 -0
- data/node_modules/lodash/fp/mean.js +5 -0
- data/node_modules/lodash/fp/meanBy.js +5 -0
- data/node_modules/lodash/fp/memoize.js +5 -0
- data/node_modules/lodash/fp/merge.js +5 -0
- data/node_modules/lodash/fp/mergeAll.js +5 -0
- data/node_modules/lodash/fp/mergeAllWith.js +5 -0
- data/node_modules/lodash/fp/mergeWith.js +5 -0
- data/node_modules/lodash/fp/method.js +5 -0
- data/node_modules/lodash/fp/methodOf.js +5 -0
- data/node_modules/lodash/fp/min.js +5 -0
- data/node_modules/lodash/fp/minBy.js +5 -0
- data/node_modules/lodash/fp/mixin.js +5 -0
- data/node_modules/lodash/fp/multiply.js +5 -0
- data/node_modules/lodash/fp/nAry.js +1 -0
- data/node_modules/lodash/fp/negate.js +5 -0
- data/node_modules/lodash/fp/next.js +5 -0
- data/node_modules/lodash/fp/noop.js +5 -0
- data/node_modules/lodash/fp/now.js +5 -0
- data/node_modules/lodash/fp/nth.js +5 -0
- data/node_modules/lodash/fp/nthArg.js +5 -0
- data/node_modules/lodash/fp/number.js +2 -0
- data/node_modules/lodash/fp/object.js +2 -0
- data/node_modules/lodash/fp/omit.js +5 -0
- data/node_modules/lodash/fp/omitAll.js +1 -0
- data/node_modules/lodash/fp/omitBy.js +5 -0
- data/node_modules/lodash/fp/once.js +5 -0
- data/node_modules/lodash/fp/orderBy.js +5 -0
- data/node_modules/lodash/fp/over.js +5 -0
- data/node_modules/lodash/fp/overArgs.js +5 -0
- data/node_modules/lodash/fp/overEvery.js +5 -0
- data/node_modules/lodash/fp/overSome.js +5 -0
- data/node_modules/lodash/fp/pad.js +5 -0
- data/node_modules/lodash/fp/padChars.js +5 -0
- data/node_modules/lodash/fp/padCharsEnd.js +5 -0
- data/node_modules/lodash/fp/padCharsStart.js +5 -0
- data/node_modules/lodash/fp/padEnd.js +5 -0
- data/node_modules/lodash/fp/padStart.js +5 -0
- data/node_modules/lodash/fp/parseInt.js +5 -0
- data/node_modules/lodash/fp/partial.js +5 -0
- data/node_modules/lodash/fp/partialRight.js +5 -0
- data/node_modules/lodash/fp/partition.js +5 -0
- data/node_modules/lodash/fp/path.js +1 -0
- data/node_modules/lodash/fp/pathEq.js +1 -0
- data/node_modules/lodash/fp/pathOr.js +1 -0
- data/node_modules/lodash/fp/paths.js +1 -0
- data/node_modules/lodash/fp/pick.js +5 -0
- data/node_modules/lodash/fp/pickAll.js +1 -0
- data/node_modules/lodash/fp/pickBy.js +5 -0
- data/node_modules/lodash/fp/pipe.js +1 -0
- data/node_modules/lodash/fp/placeholder.js +6 -0
- data/node_modules/lodash/fp/plant.js +5 -0
- data/node_modules/lodash/fp/pluck.js +1 -0
- data/node_modules/lodash/fp/prop.js +1 -0
- data/node_modules/lodash/fp/propEq.js +1 -0
- data/node_modules/lodash/fp/propOr.js +1 -0
- data/node_modules/lodash/fp/property.js +1 -0
- data/node_modules/lodash/fp/propertyOf.js +5 -0
- data/node_modules/lodash/fp/props.js +1 -0
- data/node_modules/lodash/fp/pull.js +5 -0
- data/node_modules/lodash/fp/pullAll.js +5 -0
- data/node_modules/lodash/fp/pullAllBy.js +5 -0
- data/node_modules/lodash/fp/pullAllWith.js +5 -0
- data/node_modules/lodash/fp/pullAt.js +5 -0
- data/node_modules/lodash/fp/random.js +5 -0
- data/node_modules/lodash/fp/range.js +5 -0
- data/node_modules/lodash/fp/rangeRight.js +5 -0
- data/node_modules/lodash/fp/rangeStep.js +5 -0
- data/node_modules/lodash/fp/rangeStepRight.js +5 -0
- data/node_modules/lodash/fp/rearg.js +5 -0
- data/node_modules/lodash/fp/reduce.js +5 -0
- data/node_modules/lodash/fp/reduceRight.js +5 -0
- data/node_modules/lodash/fp/reject.js +5 -0
- data/node_modules/lodash/fp/remove.js +5 -0
- data/node_modules/lodash/fp/repeat.js +5 -0
- data/node_modules/lodash/fp/replace.js +5 -0
- data/node_modules/lodash/fp/rest.js +5 -0
- data/node_modules/lodash/fp/restFrom.js +5 -0
- data/node_modules/lodash/fp/result.js +5 -0
- data/node_modules/lodash/fp/reverse.js +5 -0
- data/node_modules/lodash/fp/round.js +5 -0
- data/node_modules/lodash/fp/sample.js +5 -0
- data/node_modules/lodash/fp/sampleSize.js +5 -0
- data/node_modules/lodash/fp/seq.js +2 -0
- data/node_modules/lodash/fp/set.js +5 -0
- data/node_modules/lodash/fp/setWith.js +5 -0
- data/node_modules/lodash/fp/shuffle.js +5 -0
- data/node_modules/lodash/fp/size.js +5 -0
- data/node_modules/lodash/fp/slice.js +5 -0
- data/node_modules/lodash/fp/snakeCase.js +5 -0
- data/node_modules/lodash/fp/some.js +5 -0
- data/node_modules/lodash/fp/sortBy.js +5 -0
- data/node_modules/lodash/fp/sortedIndex.js +5 -0
- data/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- data/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- data/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- data/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- data/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- data/node_modules/lodash/fp/sortedUniq.js +5 -0
- data/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- data/node_modules/lodash/fp/split.js +5 -0
- data/node_modules/lodash/fp/spread.js +5 -0
- data/node_modules/lodash/fp/spreadFrom.js +5 -0
- data/node_modules/lodash/fp/startCase.js +5 -0
- data/node_modules/lodash/fp/startsWith.js +5 -0
- data/node_modules/lodash/fp/string.js +2 -0
- data/node_modules/lodash/fp/stubArray.js +5 -0
- data/node_modules/lodash/fp/stubFalse.js +5 -0
- data/node_modules/lodash/fp/stubObject.js +5 -0
- data/node_modules/lodash/fp/stubString.js +5 -0
- data/node_modules/lodash/fp/stubTrue.js +5 -0
- data/node_modules/lodash/fp/subtract.js +5 -0
- data/node_modules/lodash/fp/sum.js +5 -0
- data/node_modules/lodash/fp/sumBy.js +5 -0
- data/node_modules/lodash/fp/symmetricDifference.js +1 -0
- data/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- data/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- data/node_modules/lodash/fp/tail.js +5 -0
- data/node_modules/lodash/fp/take.js +5 -0
- data/node_modules/lodash/fp/takeLast.js +1 -0
- data/node_modules/lodash/fp/takeLastWhile.js +1 -0
- data/node_modules/lodash/fp/takeRight.js +5 -0
- data/node_modules/lodash/fp/takeRightWhile.js +5 -0
- data/node_modules/lodash/fp/takeWhile.js +5 -0
- data/node_modules/lodash/fp/tap.js +5 -0
- data/node_modules/lodash/fp/template.js +5 -0
- data/node_modules/lodash/fp/templateSettings.js +5 -0
- data/node_modules/lodash/fp/throttle.js +5 -0
- data/node_modules/lodash/fp/thru.js +5 -0
- data/node_modules/lodash/fp/times.js +5 -0
- data/node_modules/lodash/fp/toArray.js +5 -0
- data/node_modules/lodash/fp/toFinite.js +5 -0
- data/node_modules/lodash/fp/toInteger.js +5 -0
- data/node_modules/lodash/fp/toIterator.js +5 -0
- data/node_modules/lodash/fp/toJSON.js +5 -0
- data/node_modules/lodash/fp/toLength.js +5 -0
- data/node_modules/lodash/fp/toLower.js +5 -0
- data/node_modules/lodash/fp/toNumber.js +5 -0
- data/node_modules/lodash/fp/toPairs.js +5 -0
- data/node_modules/lodash/fp/toPairsIn.js +5 -0
- data/node_modules/lodash/fp/toPath.js +5 -0
- data/node_modules/lodash/fp/toPlainObject.js +5 -0
- data/node_modules/lodash/fp/toSafeInteger.js +5 -0
- data/node_modules/lodash/fp/toString.js +5 -0
- data/node_modules/lodash/fp/toUpper.js +5 -0
- data/node_modules/lodash/fp/transform.js +5 -0
- data/node_modules/lodash/fp/trim.js +5 -0
- data/node_modules/lodash/fp/trimChars.js +5 -0
- data/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- data/node_modules/lodash/fp/trimCharsStart.js +5 -0
- data/node_modules/lodash/fp/trimEnd.js +5 -0
- data/node_modules/lodash/fp/trimStart.js +5 -0
- data/node_modules/lodash/fp/truncate.js +5 -0
- data/node_modules/lodash/fp/unapply.js +1 -0
- data/node_modules/lodash/fp/unary.js +5 -0
- data/node_modules/lodash/fp/unescape.js +5 -0
- data/node_modules/lodash/fp/union.js +5 -0
- data/node_modules/lodash/fp/unionBy.js +5 -0
- data/node_modules/lodash/fp/unionWith.js +5 -0
- data/node_modules/lodash/fp/uniq.js +5 -0
- data/node_modules/lodash/fp/uniqBy.js +5 -0
- data/node_modules/lodash/fp/uniqWith.js +5 -0
- data/node_modules/lodash/fp/uniqueId.js +5 -0
- data/node_modules/lodash/fp/unnest.js +1 -0
- data/node_modules/lodash/fp/unset.js +5 -0
- data/node_modules/lodash/fp/unzip.js +5 -0
- data/node_modules/lodash/fp/unzipWith.js +5 -0
- data/node_modules/lodash/fp/update.js +5 -0
- data/node_modules/lodash/fp/updateWith.js +5 -0
- data/node_modules/lodash/fp/upperCase.js +5 -0
- data/node_modules/lodash/fp/upperFirst.js +5 -0
- data/node_modules/lodash/fp/useWith.js +1 -0
- data/node_modules/lodash/fp/util.js +2 -0
- data/node_modules/lodash/fp/value.js +5 -0
- data/node_modules/lodash/fp/valueOf.js +5 -0
- data/node_modules/lodash/fp/values.js +5 -0
- data/node_modules/lodash/fp/valuesIn.js +5 -0
- data/node_modules/lodash/fp/where.js +1 -0
- data/node_modules/lodash/fp/whereEq.js +1 -0
- data/node_modules/lodash/fp/without.js +5 -0
- data/node_modules/lodash/fp/words.js +5 -0
- data/node_modules/lodash/fp/wrap.js +5 -0
- data/node_modules/lodash/fp/wrapperAt.js +5 -0
- data/node_modules/lodash/fp/wrapperChain.js +5 -0
- data/node_modules/lodash/fp/wrapperLodash.js +5 -0
- data/node_modules/lodash/fp/wrapperReverse.js +5 -0
- data/node_modules/lodash/fp/wrapperValue.js +5 -0
- data/node_modules/lodash/fp/xor.js +5 -0
- data/node_modules/lodash/fp/xorBy.js +5 -0
- data/node_modules/lodash/fp/xorWith.js +5 -0
- data/node_modules/lodash/fp/zip.js +5 -0
- data/node_modules/lodash/fp/zipAll.js +5 -0
- data/node_modules/lodash/fp/zipObj.js +1 -0
- data/node_modules/lodash/fp/zipObject.js +5 -0
- data/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- data/node_modules/lodash/fp/zipWith.js +5 -0
- data/node_modules/lodash/fp.js +2 -0
- data/node_modules/lodash/fromPairs.js +28 -0
- data/node_modules/lodash/function.js +25 -0
- data/node_modules/lodash/functions.js +31 -0
- data/node_modules/lodash/functionsIn.js +31 -0
- data/node_modules/lodash/get.js +33 -0
- data/node_modules/lodash/groupBy.js +41 -0
- data/node_modules/lodash/gt.js +29 -0
- data/node_modules/lodash/gte.js +30 -0
- data/node_modules/lodash/has.js +35 -0
- data/node_modules/lodash/hasIn.js +34 -0
- data/node_modules/lodash/head.js +23 -0
- data/node_modules/lodash/identity.js +21 -0
- data/node_modules/lodash/inRange.js +55 -0
- data/node_modules/lodash/includes.js +53 -0
- data/node_modules/lodash/index.js +1 -0
- data/node_modules/lodash/indexOf.js +42 -0
- data/node_modules/lodash/initial.js +22 -0
- data/node_modules/lodash/intersection.js +30 -0
- data/node_modules/lodash/intersectionBy.js +45 -0
- data/node_modules/lodash/intersectionWith.js +41 -0
- data/node_modules/lodash/invert.js +42 -0
- data/node_modules/lodash/invertBy.js +56 -0
- data/node_modules/lodash/invoke.js +24 -0
- data/node_modules/lodash/invokeMap.js +41 -0
- data/node_modules/lodash/isArguments.js +36 -0
- data/node_modules/lodash/isArray.js +26 -0
- data/node_modules/lodash/isArrayBuffer.js +27 -0
- data/node_modules/lodash/isArrayLike.js +33 -0
- data/node_modules/lodash/isArrayLikeObject.js +33 -0
- data/node_modules/lodash/isBoolean.js +29 -0
- data/node_modules/lodash/isBuffer.js +38 -0
- data/node_modules/lodash/isDate.js +27 -0
- data/node_modules/lodash/isElement.js +25 -0
- data/node_modules/lodash/isEmpty.js +77 -0
- data/node_modules/lodash/isEqual.js +35 -0
- data/node_modules/lodash/isEqualWith.js +41 -0
- data/node_modules/lodash/isError.js +36 -0
- data/node_modules/lodash/isFinite.js +36 -0
- data/node_modules/lodash/isFunction.js +37 -0
- data/node_modules/lodash/isInteger.js +33 -0
- data/node_modules/lodash/isLength.js +35 -0
- data/node_modules/lodash/isMap.js +27 -0
- data/node_modules/lodash/isMatch.js +36 -0
- data/node_modules/lodash/isMatchWith.js +41 -0
- data/node_modules/lodash/isNaN.js +38 -0
- data/node_modules/lodash/isNative.js +40 -0
- data/node_modules/lodash/isNil.js +25 -0
- data/node_modules/lodash/isNull.js +22 -0
- data/node_modules/lodash/isNumber.js +38 -0
- data/node_modules/lodash/isObject.js +31 -0
- data/node_modules/lodash/isObjectLike.js +29 -0
- data/node_modules/lodash/isPlainObject.js +62 -0
- data/node_modules/lodash/isRegExp.js +27 -0
- data/node_modules/lodash/isSafeInteger.js +37 -0
- data/node_modules/lodash/isSet.js +27 -0
- data/node_modules/lodash/isString.js +30 -0
- data/node_modules/lodash/isSymbol.js +29 -0
- data/node_modules/lodash/isTypedArray.js +27 -0
- data/node_modules/lodash/isUndefined.js +22 -0
- data/node_modules/lodash/isWeakMap.js +28 -0
- data/node_modules/lodash/isWeakSet.js +28 -0
- data/node_modules/lodash/iteratee.js +53 -0
- data/node_modules/lodash/join.js +26 -0
- data/node_modules/lodash/kebabCase.js +28 -0
- data/node_modules/lodash/keyBy.js +36 -0
- data/node_modules/lodash/keys.js +37 -0
- data/node_modules/lodash/keysIn.js +32 -0
- data/node_modules/lodash/lang.js +58 -0
- data/node_modules/lodash/last.js +20 -0
- data/node_modules/lodash/lastIndexOf.js +46 -0
- data/node_modules/lodash/lodash.js +17209 -0
- data/node_modules/lodash/lodash.min.js +140 -0
- data/node_modules/lodash/lowerCase.js +27 -0
- data/node_modules/lodash/lowerFirst.js +22 -0
- data/node_modules/lodash/lt.js +29 -0
- data/node_modules/lodash/lte.js +30 -0
- data/node_modules/lodash/map.js +53 -0
- data/node_modules/lodash/mapKeys.js +36 -0
- data/node_modules/lodash/mapValues.js +43 -0
- data/node_modules/lodash/matches.js +46 -0
- data/node_modules/lodash/matchesProperty.js +44 -0
- data/node_modules/lodash/math.js +17 -0
- data/node_modules/lodash/max.js +29 -0
- data/node_modules/lodash/maxBy.js +34 -0
- data/node_modules/lodash/mean.js +22 -0
- data/node_modules/lodash/meanBy.js +31 -0
- data/node_modules/lodash/memoize.js +73 -0
- data/node_modules/lodash/merge.js +39 -0
- data/node_modules/lodash/mergeWith.js +39 -0
- data/node_modules/lodash/method.js +34 -0
- data/node_modules/lodash/methodOf.js +33 -0
- data/node_modules/lodash/min.js +29 -0
- data/node_modules/lodash/minBy.js +34 -0
- data/node_modules/lodash/mixin.js +74 -0
- data/node_modules/lodash/multiply.js +22 -0
- data/node_modules/lodash/negate.js +40 -0
- data/node_modules/lodash/next.js +35 -0
- data/node_modules/lodash/noop.js +17 -0
- data/node_modules/lodash/now.js +23 -0
- data/node_modules/lodash/nth.js +29 -0
- data/node_modules/lodash/nthArg.js +32 -0
- data/node_modules/lodash/number.js +5 -0
- data/node_modules/lodash/object.js +49 -0
- data/node_modules/lodash/omit.js +57 -0
- data/node_modules/lodash/omitBy.js +29 -0
- data/node_modules/lodash/once.js +25 -0
- data/node_modules/lodash/orderBy.js +47 -0
- data/node_modules/lodash/over.js +24 -0
- data/node_modules/lodash/overArgs.js +61 -0
- data/node_modules/lodash/overEvery.js +34 -0
- data/node_modules/lodash/overSome.js +37 -0
- data/node_modules/lodash/package.json +17 -0
- data/node_modules/lodash/pad.js +49 -0
- data/node_modules/lodash/padEnd.js +39 -0
- data/node_modules/lodash/padStart.js +39 -0
- data/node_modules/lodash/parseInt.js +43 -0
- data/node_modules/lodash/partial.js +50 -0
- data/node_modules/lodash/partialRight.js +49 -0
- data/node_modules/lodash/partition.js +43 -0
- data/node_modules/lodash/pick.js +25 -0
- data/node_modules/lodash/pickBy.js +37 -0
- data/node_modules/lodash/plant.js +48 -0
- data/node_modules/lodash/property.js +32 -0
- data/node_modules/lodash/propertyOf.js +30 -0
- data/node_modules/lodash/pull.js +29 -0
- data/node_modules/lodash/pullAll.js +29 -0
- data/node_modules/lodash/pullAllBy.js +33 -0
- data/node_modules/lodash/pullAllWith.js +32 -0
- data/node_modules/lodash/pullAt.js +43 -0
- data/node_modules/lodash/random.js +82 -0
- data/node_modules/lodash/range.js +46 -0
- data/node_modules/lodash/rangeRight.js +41 -0
- data/node_modules/lodash/rearg.js +33 -0
- data/node_modules/lodash/reduce.js +51 -0
- data/node_modules/lodash/reduceRight.js +36 -0
- data/node_modules/lodash/reject.js +46 -0
- data/node_modules/lodash/release.md +48 -0
- data/node_modules/lodash/remove.js +53 -0
- data/node_modules/lodash/repeat.js +37 -0
- data/node_modules/lodash/replace.js +29 -0
- data/node_modules/lodash/rest.js +40 -0
- data/node_modules/lodash/result.js +56 -0
- data/node_modules/lodash/reverse.js +34 -0
- data/node_modules/lodash/round.js +26 -0
- data/node_modules/lodash/sample.js +24 -0
- data/node_modules/lodash/sampleSize.js +37 -0
- data/node_modules/lodash/seq.js +16 -0
- data/node_modules/lodash/set.js +35 -0
- data/node_modules/lodash/setWith.js +32 -0
- data/node_modules/lodash/shuffle.js +25 -0
- data/node_modules/lodash/size.js +46 -0
- data/node_modules/lodash/slice.js +37 -0
- data/node_modules/lodash/snakeCase.js +28 -0
- data/node_modules/lodash/some.js +51 -0
- data/node_modules/lodash/sortBy.js +48 -0
- data/node_modules/lodash/sortedIndex.js +24 -0
- data/node_modules/lodash/sortedIndexBy.js +33 -0
- data/node_modules/lodash/sortedIndexOf.js +31 -0
- data/node_modules/lodash/sortedLastIndex.js +25 -0
- data/node_modules/lodash/sortedLastIndexBy.js +33 -0
- data/node_modules/lodash/sortedLastIndexOf.js +31 -0
- data/node_modules/lodash/sortedUniq.js +24 -0
- data/node_modules/lodash/sortedUniqBy.js +26 -0
- data/node_modules/lodash/split.js +52 -0
- data/node_modules/lodash/spread.js +63 -0
- data/node_modules/lodash/startCase.js +29 -0
- data/node_modules/lodash/startsWith.js +39 -0
- data/node_modules/lodash/string.js +33 -0
- data/node_modules/lodash/stubArray.js +23 -0
- data/node_modules/lodash/stubFalse.js +18 -0
- data/node_modules/lodash/stubObject.js +23 -0
- data/node_modules/lodash/stubString.js +18 -0
- data/node_modules/lodash/stubTrue.js +18 -0
- data/node_modules/lodash/subtract.js +22 -0
- data/node_modules/lodash/sum.js +24 -0
- data/node_modules/lodash/sumBy.js +33 -0
- data/node_modules/lodash/tail.js +22 -0
- data/node_modules/lodash/take.js +37 -0
- data/node_modules/lodash/takeRight.js +39 -0
- data/node_modules/lodash/takeRightWhile.js +45 -0
- data/node_modules/lodash/takeWhile.js +45 -0
- data/node_modules/lodash/tap.js +29 -0
- data/node_modules/lodash/template.js +272 -0
- data/node_modules/lodash/templateSettings.js +67 -0
- data/node_modules/lodash/throttle.js +69 -0
- data/node_modules/lodash/thru.js +28 -0
- data/node_modules/lodash/times.js +51 -0
- data/node_modules/lodash/toArray.js +58 -0
- data/node_modules/lodash/toFinite.js +42 -0
- data/node_modules/lodash/toInteger.js +36 -0
- data/node_modules/lodash/toIterator.js +23 -0
- data/node_modules/lodash/toJSON.js +1 -0
- data/node_modules/lodash/toLength.js +38 -0
- data/node_modules/lodash/toLower.js +28 -0
- data/node_modules/lodash/toNumber.js +64 -0
- data/node_modules/lodash/toPairs.js +30 -0
- data/node_modules/lodash/toPairsIn.js +30 -0
- data/node_modules/lodash/toPath.js +33 -0
- data/node_modules/lodash/toPlainObject.js +32 -0
- data/node_modules/lodash/toSafeInteger.js +37 -0
- data/node_modules/lodash/toString.js +28 -0
- data/node_modules/lodash/toUpper.js +28 -0
- data/node_modules/lodash/transform.js +65 -0
- data/node_modules/lodash/trim.js +47 -0
- data/node_modules/lodash/trimEnd.js +41 -0
- data/node_modules/lodash/trimStart.js +43 -0
- data/node_modules/lodash/truncate.js +111 -0
- data/node_modules/lodash/unary.js +22 -0
- data/node_modules/lodash/unescape.js +34 -0
- data/node_modules/lodash/union.js +26 -0
- data/node_modules/lodash/unionBy.js +39 -0
- data/node_modules/lodash/unionWith.js +34 -0
- data/node_modules/lodash/uniq.js +25 -0
- data/node_modules/lodash/uniqBy.js +31 -0
- data/node_modules/lodash/uniqWith.js +28 -0
- data/node_modules/lodash/uniqueId.js +28 -0
- data/node_modules/lodash/unset.js +34 -0
- data/node_modules/lodash/unzip.js +45 -0
- data/node_modules/lodash/unzipWith.js +39 -0
- data/node_modules/lodash/update.js +35 -0
- data/node_modules/lodash/updateWith.js +33 -0
- data/node_modules/lodash/upperCase.js +27 -0
- data/node_modules/lodash/upperFirst.js +22 -0
- data/node_modules/lodash/util.js +34 -0
- data/node_modules/lodash/value.js +1 -0
- data/node_modules/lodash/valueOf.js +1 -0
- data/node_modules/lodash/values.js +34 -0
- data/node_modules/lodash/valuesIn.js +32 -0
- data/node_modules/lodash/without.js +31 -0
- data/node_modules/lodash/words.js +35 -0
- data/node_modules/lodash/wrap.js +30 -0
- data/node_modules/lodash/wrapperAt.js +48 -0
- data/node_modules/lodash/wrapperChain.js +34 -0
- data/node_modules/lodash/wrapperLodash.js +147 -0
- data/node_modules/lodash/wrapperReverse.js +44 -0
- data/node_modules/lodash/wrapperValue.js +21 -0
- data/node_modules/lodash/xor.js +28 -0
- data/node_modules/lodash/xorBy.js +39 -0
- data/node_modules/lodash/xorWith.js +34 -0
- data/node_modules/lodash/zip.js +22 -0
- data/node_modules/lodash/zipObject.js +24 -0
- data/node_modules/lodash/zipObjectDeep.js +23 -0
- data/node_modules/lodash/zipWith.js +32 -0
- data/node_modules/mime-db/HISTORY.md +486 -0
- data/node_modules/mime-db/LICENSE +22 -0
- data/node_modules/mime-db/README.md +100 -0
- data/node_modules/mime-db/db.json +8417 -0
- data/node_modules/mime-db/index.js +11 -0
- data/node_modules/mime-db/package.json +59 -0
- data/node_modules/mime-types/HISTORY.md +378 -0
- data/node_modules/mime-types/LICENSE +23 -0
- data/node_modules/mime-types/README.md +113 -0
- data/node_modules/mime-types/index.js +188 -0
- data/node_modules/mime-types/package.json +44 -0
- data/node_modules/ms/index.js +162 -0
- data/node_modules/ms/license.md +21 -0
- data/node_modules/ms/package.json +37 -0
- data/node_modules/ms/readme.md +60 -0
- data/node_modules/nwsapi/LICENSE +22 -0
- data/node_modules/nwsapi/README.md +132 -0
- data/node_modules/nwsapi/dist/lint.log +0 -0
- data/node_modules/nwsapi/package.json +38 -0
- data/node_modules/nwsapi/src/modules/nwsapi-jquery.js +135 -0
- data/node_modules/nwsapi/src/modules/nwsapi-traversal.js +90 -0
- data/node_modules/nwsapi/src/nwsapi.js +1800 -0
- data/node_modules/optionator/CHANGELOG.md +56 -0
- data/node_modules/optionator/LICENSE +22 -0
- data/node_modules/optionator/README.md +238 -0
- data/node_modules/optionator/lib/help.js +260 -0
- data/node_modules/optionator/lib/index.js +465 -0
- data/node_modules/optionator/lib/util.js +54 -0
- data/node_modules/optionator/package.json +44 -0
- data/node_modules/parse5/LICENSE +19 -0
- data/node_modules/parse5/README.md +38 -0
- data/node_modules/parse5/lib/common/doctype.js +162 -0
- data/node_modules/parse5/lib/common/error-codes.js +65 -0
- data/node_modules/parse5/lib/common/foreign-content.js +265 -0
- data/node_modules/parse5/lib/common/html.js +272 -0
- data/node_modules/parse5/lib/common/unicode.js +109 -0
- data/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +43 -0
- data/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +52 -0
- data/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +24 -0
- data/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +17 -0
- data/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +35 -0
- data/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +223 -0
- data/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +146 -0
- data/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +64 -0
- data/node_modules/parse5/lib/index.js +29 -0
- data/node_modules/parse5/lib/parser/formatting-element-list.js +181 -0
- data/node_modules/parse5/lib/parser/index.js +2956 -0
- data/node_modules/parse5/lib/parser/open-element-stack.js +482 -0
- data/node_modules/parse5/lib/serializer/index.js +176 -0
- data/node_modules/parse5/lib/tokenizer/index.js +2196 -0
- data/node_modules/parse5/lib/tokenizer/named-entity-data.js +5 -0
- data/node_modules/parse5/lib/tokenizer/preprocessor.js +159 -0
- data/node_modules/parse5/lib/tree-adapters/default.js +221 -0
- data/node_modules/parse5/lib/utils/merge-options.js +13 -0
- data/node_modules/parse5/lib/utils/mixin.js +39 -0
- data/node_modules/parse5/package.json +35 -0
- data/node_modules/prelude-ls/CHANGELOG.md +99 -0
- data/node_modules/prelude-ls/LICENSE +22 -0
- data/node_modules/prelude-ls/README.md +15 -0
- data/node_modules/prelude-ls/lib/Func.js +65 -0
- data/node_modules/prelude-ls/lib/List.js +686 -0
- data/node_modules/prelude-ls/lib/Num.js +130 -0
- data/node_modules/prelude-ls/lib/Obj.js +154 -0
- data/node_modules/prelude-ls/lib/Str.js +92 -0
- data/node_modules/prelude-ls/lib/index.js +178 -0
- data/node_modules/prelude-ls/package.json +52 -0
- data/node_modules/psl/LICENSE +9 -0
- data/node_modules/psl/README.md +215 -0
- data/node_modules/psl/browserstack-logo.svg +90 -0
- data/node_modules/psl/data/rules.json +8834 -0
- data/node_modules/psl/dist/psl.js +9645 -0
- data/node_modules/psl/dist/psl.min.js +1 -0
- data/node_modules/psl/index.js +269 -0
- data/node_modules/psl/package.json +44 -0
- data/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/punycode/README.md +122 -0
- data/node_modules/punycode/package.json +58 -0
- data/node_modules/punycode/punycode.es6.js +441 -0
- data/node_modules/punycode/punycode.js +440 -0
- data/node_modules/safer-buffer/LICENSE +21 -0
- data/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- data/node_modules/safer-buffer/Readme.md +156 -0
- data/node_modules/safer-buffer/dangerous.js +58 -0
- data/node_modules/safer-buffer/package.json +34 -0
- data/node_modules/safer-buffer/safer.js +77 -0
- data/node_modules/safer-buffer/tests.js +406 -0
- data/node_modules/saxes/README.md +323 -0
- data/node_modules/saxes/package.json +70 -0
- data/node_modules/saxes/saxes.d.ts +635 -0
- data/node_modules/saxes/saxes.js +2064 -0
- data/node_modules/saxes/saxes.js.map +1 -0
- data/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/README.md +742 -0
- data/node_modules/source-map/dist/source-map.debug.js +3234 -0
- data/node_modules/source-map/dist/source-map.js +3233 -0
- data/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- data/node_modules/source-map/lib/source-map-generator.js +425 -0
- data/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/source-map/lib/util.js +488 -0
- data/node_modules/source-map/package.json +73 -0
- data/node_modules/source-map/source-map.d.ts +98 -0
- data/node_modules/source-map/source-map.js +8 -0
- data/node_modules/symbol-tree/LICENSE +21 -0
- data/node_modules/symbol-tree/README.md +545 -0
- data/node_modules/symbol-tree/lib/SymbolTree.js +838 -0
- data/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
- data/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
- data/node_modules/symbol-tree/lib/TreePosition.js +11 -0
- data/node_modules/symbol-tree/package.json +47 -0
- data/node_modules/tough-cookie/LICENSE +12 -0
- data/node_modules/tough-cookie/README.md +582 -0
- data/node_modules/tough-cookie/lib/cookie.js +1671 -0
- data/node_modules/tough-cookie/lib/memstore.js +190 -0
- data/node_modules/tough-cookie/lib/pathMatch.js +61 -0
- data/node_modules/tough-cookie/lib/permuteDomain.js +70 -0
- data/node_modules/tough-cookie/lib/pubsuffix-psl.js +38 -0
- data/node_modules/tough-cookie/lib/store.js +76 -0
- data/node_modules/tough-cookie/lib/version.js +2 -0
- data/node_modules/tough-cookie/node_modules/universalify/LICENSE +20 -0
- data/node_modules/tough-cookie/node_modules/universalify/README.md +76 -0
- data/node_modules/tough-cookie/node_modules/universalify/index.js +25 -0
- data/node_modules/tough-cookie/node_modules/universalify/package.json +34 -0
- data/node_modules/tough-cookie/package.json +109 -0
- data/node_modules/tr46/LICENSE.md +21 -0
- data/node_modules/tr46/README.md +72 -0
- data/node_modules/tr46/index.js +297 -0
- data/node_modules/tr46/lib/mappingTable.json +1 -0
- data/node_modules/tr46/lib/regexes.js +29 -0
- data/node_modules/tr46/lib/statusMapping.js +11 -0
- data/node_modules/tr46/package.json +46 -0
- data/node_modules/type-check/LICENSE +22 -0
- data/node_modules/type-check/README.md +210 -0
- data/node_modules/type-check/lib/check.js +126 -0
- data/node_modules/type-check/lib/index.js +16 -0
- data/node_modules/type-check/lib/parse-type.js +196 -0
- data/node_modules/type-check/package.json +40 -0
- data/node_modules/w3c-hr-time/CHANGELOG.md +19 -0
- data/node_modules/w3c-hr-time/LICENSE.md +21 -0
- data/node_modules/w3c-hr-time/README.md +130 -0
- data/node_modules/w3c-hr-time/index.js +11 -0
- data/node_modules/w3c-hr-time/lib/calculate-clock-offset.js +39 -0
- data/node_modules/w3c-hr-time/lib/clock-is-accurate.js +61 -0
- data/node_modules/w3c-hr-time/lib/global-monotonic-clock.js +10 -0
- data/node_modules/w3c-hr-time/lib/performance.js +53 -0
- data/node_modules/w3c-hr-time/lib/utils.js +11 -0
- data/node_modules/w3c-hr-time/package.json +26 -0
- data/node_modules/w3c-xmlserializer/LICENSE.md +25 -0
- data/node_modules/w3c-xmlserializer/README.md +41 -0
- data/node_modules/w3c-xmlserializer/lib/attributes.js +128 -0
- data/node_modules/w3c-xmlserializer/lib/constants.js +44 -0
- data/node_modules/w3c-xmlserializer/lib/serialize.js +371 -0
- data/node_modules/w3c-xmlserializer/package.json +32 -0
- data/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/node_modules/webidl-conversions/README.md +101 -0
- data/node_modules/webidl-conversions/lib/index.js +489 -0
- data/node_modules/webidl-conversions/package.json +30 -0
- data/node_modules/whatwg-encoding/LICENSE.txt +7 -0
- data/node_modules/whatwg-encoding/README.md +50 -0
- data/node_modules/whatwg-encoding/lib/labels-to-names.json +207 -0
- data/node_modules/whatwg-encoding/lib/supported-names.json +37 -0
- data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +47 -0
- data/node_modules/whatwg-encoding/package.json +29 -0
- data/node_modules/whatwg-mimetype/LICENSE.txt +7 -0
- data/node_modules/whatwg-mimetype/README.md +101 -0
- data/node_modules/whatwg-mimetype/lib/mime-type.js +191 -0
- data/node_modules/whatwg-mimetype/lib/parser.js +124 -0
- data/node_modules/whatwg-mimetype/lib/serializer.js +25 -0
- data/node_modules/whatwg-mimetype/lib/utils.js +25 -0
- data/node_modules/whatwg-mimetype/package.json +43 -0
- data/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/node_modules/whatwg-url/README.md +104 -0
- data/node_modules/whatwg-url/dist/Function.js +46 -0
- data/node_modules/whatwg-url/dist/URL-impl.js +217 -0
- data/node_modules/whatwg-url/dist/URL.js +417 -0
- data/node_modules/whatwg-url/dist/URLSearchParams-impl.js +122 -0
- data/node_modules/whatwg-url/dist/URLSearchParams.js +457 -0
- data/node_modules/whatwg-url/dist/VoidFunction.js +30 -0
- data/node_modules/whatwg-url/dist/encoding.js +26 -0
- data/node_modules/whatwg-url/dist/infra.js +26 -0
- data/node_modules/whatwg-url/dist/percent-encoding.js +141 -0
- data/node_modules/whatwg-url/dist/url-state-machine.js +1210 -0
- data/node_modules/whatwg-url/dist/urlencoded.js +102 -0
- data/node_modules/whatwg-url/dist/utils.js +141 -0
- data/node_modules/whatwg-url/index.js +24 -0
- data/node_modules/whatwg-url/package.json +60 -0
- data/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
- data/node_modules/word-wrap/LICENSE +21 -0
- data/node_modules/word-wrap/README.md +182 -0
- data/node_modules/word-wrap/index.d.ts +50 -0
- data/node_modules/word-wrap/index.js +46 -0
- data/node_modules/word-wrap/package.json +77 -0
- data/node_modules/ws/LICENSE +21 -0
- data/node_modules/ws/README.md +496 -0
- data/node_modules/ws/browser.js +8 -0
- data/node_modules/ws/index.js +10 -0
- data/node_modules/ws/lib/buffer-util.js +129 -0
- data/node_modules/ws/lib/constants.js +10 -0
- data/node_modules/ws/lib/event-target.js +184 -0
- data/node_modules/ws/lib/extension.js +223 -0
- data/node_modules/ws/lib/limiter.js +55 -0
- data/node_modules/ws/lib/permessage-deflate.js +518 -0
- data/node_modules/ws/lib/receiver.js +607 -0
- data/node_modules/ws/lib/sender.js +409 -0
- data/node_modules/ws/lib/stream.js +177 -0
- data/node_modules/ws/lib/validation.js +104 -0
- data/node_modules/ws/lib/websocket-server.js +447 -0
- data/node_modules/ws/lib/websocket.js +1078 -0
- data/node_modules/ws/package.json +56 -0
- data/node_modules/xml-name-validator/LICENSE.txt +176 -0
- data/node_modules/xml-name-validator/README.md +36 -0
- data/node_modules/xml-name-validator/lib/generated-parser.js +504 -0
- data/node_modules/xml-name-validator/lib/grammar.pegjs +35 -0
- data/node_modules/xml-name-validator/lib/xml-name-validator.js +17 -0
- data/node_modules/xml-name-validator/package.json +28 -0
- data/node_modules/xmlchars/LICENSE +18 -0
- data/node_modules/xmlchars/README.md +33 -0
- data/node_modules/xmlchars/package.json +51 -0
- data/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
- data/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
- data/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
- data/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
- data/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
- data/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
- data/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
- data/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
- data/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
- data/node_modules/xmlchars/xmlchars.d.ts +170 -0
- data/node_modules/xmlchars/xmlchars.js +191 -0
- data/node_modules/xmlchars/xmlchars.js.map +1 -0
- data/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- data/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
- data/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
- data/package.json +1 -1
- data/release.sh +2 -1
- data/spec/depends/api_spec.rb +1 -1
- data/spec/fixtures/depends/revoke_api_key.appmap.json +3 -3
- data/spec/fixtures/depends/user_page_scenario.appmap.json +3 -3
- data/spec/fixtures/rails6_users_app/Gemfile +1 -1
- data/spec/fixtures/rails6_users_app/docker-compose.yml +1 -1
- data/spec/hook_spec.rb +6 -4
- data/spec/rails_recording_spec.rb +5 -2
- data/spec/railtie_spec.rb +3 -3
- data/spec/record_sql_rails_pg_spec.rb +1 -1
- data/spec/remote_recording_spec.rb +3 -3
- data/spec/spec_helper.rb +4 -0
- data/test/agent_setup_validate_test.rb +3 -3
- data/yarn.lock +408 -20
- metadata +2219 -100
- data/node_modules/@appland/cli/CHANGELOG.md +0 -96
- data/node_modules/@appland/cli/package.json +0 -49
- data/node_modules/@appland/cli/src/appland/listAppMaps.js +0 -58
- data/node_modules/@appland/cli/src/appland/types.d.ts +0 -16
- data/node_modules/@appland/cli/src/cli.js +0 -576
- data/node_modules/@appland/cli/src/utils.js +0 -164
- data/node_modules/@appland/cli/tests/unit/depends.spec.js +0 -55
- data/node_modules/@appland/cli/tests/unit/fingerprint/canonicalize.spec.js +0 -42
- data/node_modules/@appland/cli/tests/unit/fixtures/canonicalize/revoke_api_key.info.json +0 -246
- data/node_modules/@appland/cli/tests/unit/fixtures/canonicalize/revoke_api_key.trace.json +0 -289
- data/node_modules/@appland/cli/tests/unit/fixtures/canonicalize/revoke_api_key.update.json +0 -78
- data/node_modules/@appland/cli/tests/unit/fixtures/revoke_api_key.appmap.json +0 -899
- data/node_modules/@appland/cli/tests/unit/fixtures/user_page_scenario.appmap.json +0 -1774
- data/node_modules/@appland/cli/tests/unit/inspect.spec.js +0 -94
- data/node_modules/@rollup/plugin-alias/CHANGELOG.md +0 -92
- data/node_modules/@rollup/plugin-alias/LICENSE +0 -21
- data/node_modules/@rollup/plugin-alias/README.md +0 -174
- data/node_modules/@rollup/plugin-alias/dist/index.es.js +0 -95
- data/node_modules/@rollup/plugin-alias/dist/index.js +0 -101
- data/node_modules/@rollup/plugin-alias/package.json +0 -78
- data/node_modules/@rollup/plugin-alias/types/index.d.ts +0 -36
- data/node_modules/fsevents/LICENSE +0 -22
- data/node_modules/fsevents/README.md +0 -83
- data/node_modules/fsevents/fsevents.d.ts +0 -46
- data/node_modules/fsevents/fsevents.js +0 -82
- data/node_modules/fsevents/fsevents.node +0 -0
- data/node_modules/fsevents/package.json +0 -62
- data/node_modules/slash/index.d.ts +0 -25
- data/node_modules/slash/index.js +0 -11
- data/node_modules/slash/license +0 -9
- data/node_modules/slash/package.json +0 -35
- data/node_modules/slash/readme.md +0 -44
@@ -0,0 +1,90 @@
|
|
1
|
+
/*
|
2
|
+
* Element Traversal methods from Juriy Zaytsev (kangax)
|
3
|
+
* used to emulate Prototype up/down/previous/next methods
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function(D){
|
7
|
+
|
8
|
+
// TODO: all of this needs tests
|
9
|
+
var match = D.match, select = D.select, root = document.documentElement,
|
10
|
+
|
11
|
+
// Use the Element Traversal API if available.
|
12
|
+
nextElement = 'nextElementSibling',
|
13
|
+
previousElement = 'previousElementSibling',
|
14
|
+
parentElement = 'parentElement';
|
15
|
+
|
16
|
+
// Fall back to the DOM Level 1 API.
|
17
|
+
if (!(nextElement in root)) nextElement = 'nextSibling';
|
18
|
+
if (!(previousElement in root)) previousElement = 'previousSibling';
|
19
|
+
if (!(parentElement in root)) parentElement = 'parentNode';
|
20
|
+
|
21
|
+
function walkElements(property, element, expr) {
|
22
|
+
var i = 0, isIndex = typeof expr == 'number';
|
23
|
+
if (typeof expr == 'undefined') {
|
24
|
+
isIndex = true;
|
25
|
+
expr = 0;
|
26
|
+
}
|
27
|
+
while ((element = element[property])) {
|
28
|
+
if (element.nodeType != 1) continue;
|
29
|
+
if (isIndex) {
|
30
|
+
++i;
|
31
|
+
if (i == expr) return element;
|
32
|
+
} else if (match(element, expr)) {
|
33
|
+
return element;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return null;
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* @method up
|
41
|
+
* @param {HTMLElement} element element to walk from
|
42
|
+
* @param {String | Number} expr CSS expression or an index
|
43
|
+
* @return {HTMLElement | null}
|
44
|
+
*/
|
45
|
+
function up(element, expr) {
|
46
|
+
return walkElements(parentElement, element, expr);
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* @method next
|
50
|
+
* @param {HTMLElement} element element to walk from
|
51
|
+
* @param {String | Number} expr CSS expression or an index
|
52
|
+
* @return {HTMLElement | null}
|
53
|
+
*/
|
54
|
+
function next(element, expr) {
|
55
|
+
return walkElements(nextElement, element, expr);
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* @method previous
|
59
|
+
* @param {HTMLElement} element element to walk from
|
60
|
+
* @param {String | Number} expr CSS expression or an index
|
61
|
+
* @return {HTMLElement | null}
|
62
|
+
*/
|
63
|
+
function previous(element, expr) {
|
64
|
+
return walkElements(previousElement, element, expr);
|
65
|
+
}
|
66
|
+
/**
|
67
|
+
* @method down
|
68
|
+
* @param {HTMLElement} element element to walk from
|
69
|
+
* @param {String | Number} expr CSS expression or an index
|
70
|
+
* @return {HTMLElement | null}
|
71
|
+
*/
|
72
|
+
function down(element, expr) {
|
73
|
+
var isIndex = typeof expr == 'number', descendants, index, descendant;
|
74
|
+
if (expr === null) {
|
75
|
+
element = element.firstChild;
|
76
|
+
while (element && element.nodeType != 1) element = element[nextElement];
|
77
|
+
return element;
|
78
|
+
}
|
79
|
+
if (!isIndex && match(element, expr) || isIndex && expr === 0) return element;
|
80
|
+
descendants = select('*', element);
|
81
|
+
if (isIndex) return descendants[expr] || null;
|
82
|
+
index = 0;
|
83
|
+
while ((descendant = descendants[index]) && !match(descendant, expr)) { ++index; }
|
84
|
+
return descendant || null;
|
85
|
+
}
|
86
|
+
D.up = up;
|
87
|
+
D.down = down;
|
88
|
+
D.next = next;
|
89
|
+
D.previous = previous;
|
90
|
+
})(NW.Dom);
|
@@ -0,0 +1,1800 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2007-2019 Diego Perini
|
3
|
+
* All rights reserved.
|
4
|
+
*
|
5
|
+
* nwsapi.js - Fast CSS Selectors API Engine
|
6
|
+
*
|
7
|
+
* Author: Diego Perini <diego.perini at gmail com>
|
8
|
+
* Version: 2.2.0
|
9
|
+
* Created: 20070722
|
10
|
+
* Release: 20191102
|
11
|
+
*
|
12
|
+
* License:
|
13
|
+
* http://javascript.nwbox.com/nwsapi/MIT-LICENSE
|
14
|
+
* Download:
|
15
|
+
* http://javascript.nwbox.com/nwsapi/nwsapi.js
|
16
|
+
*/
|
17
|
+
|
18
|
+
(function Export(global, factory) {
|
19
|
+
|
20
|
+
'use strict';
|
21
|
+
|
22
|
+
if (typeof module == 'object' && typeof exports == 'object') {
|
23
|
+
module.exports = factory;
|
24
|
+
} else if (typeof define == 'function' && define['amd']) {
|
25
|
+
define(factory);
|
26
|
+
} else {
|
27
|
+
global.NW || (global.NW = { });
|
28
|
+
global.NW.Dom = factory(global, Export);
|
29
|
+
}
|
30
|
+
|
31
|
+
})(this, function Factory(global, Export) {
|
32
|
+
|
33
|
+
var version = 'nwsapi-2.2.0',
|
34
|
+
|
35
|
+
doc = global.document,
|
36
|
+
root = doc.documentElement,
|
37
|
+
slice = Array.prototype.slice,
|
38
|
+
|
39
|
+
WSP = '[\\x20\\t\\r\\n\\f]',
|
40
|
+
|
41
|
+
CFG = {
|
42
|
+
// extensions
|
43
|
+
operators: '[~*^$|]=|=',
|
44
|
+
combinators: '[\\x20\\t>+~](?=[^>+~])'
|
45
|
+
},
|
46
|
+
|
47
|
+
NOT = {
|
48
|
+
// not enclosed in double/single/parens/square
|
49
|
+
double_enc: '(?=(?:[^"]*["][^"]*["])*[^"]*$)',
|
50
|
+
single_enc: "(?=(?:[^']*['][^']*['])*[^']*$)",
|
51
|
+
parens_enc: '(?![^\\x28]*\\x29)',
|
52
|
+
square_enc: '(?![^\\x5b]*\\x5d)'
|
53
|
+
},
|
54
|
+
|
55
|
+
REX = {
|
56
|
+
// regular expressions
|
57
|
+
HasEscapes: RegExp('\\\\'),
|
58
|
+
HexNumbers: RegExp('^[0-9a-fA-F]'),
|
59
|
+
EscOrQuote: RegExp('^\\\\|[\\x22\\x27]'),
|
60
|
+
RegExpChar: RegExp('(?:(?!\\\\)[\\\\^$.*+?()[\\]{}|\\/])', 'g'),
|
61
|
+
TrimSpaces: RegExp('[\\r\\n\\f]|^' + WSP + '+|' + WSP + '+$', 'g'),
|
62
|
+
CommaGroup: RegExp('(\\s*,\\s*)' + NOT.square_enc + NOT.parens_enc, 'g'),
|
63
|
+
SplitGroup: RegExp('((?:\\x28[^\\x29]*\\x29|\\[[^\\]]*\\]|\\\\.|[^,])+)', 'g'),
|
64
|
+
FixEscapes: RegExp('\\\\([0-9a-fA-F]{1,6}' + WSP + '?|.)|([\\x22\\x27])', 'g'),
|
65
|
+
CombineWSP: RegExp('[\\n\\r\\f\\x20]+' + NOT.single_enc + NOT.double_enc, 'g'),
|
66
|
+
TabCharWSP: RegExp('(\\x20?\\t+\\x20?)' + NOT.single_enc + NOT.double_enc, 'g'),
|
67
|
+
PseudosWSP: RegExp('\\s+([-+])\\s+' + NOT.square_enc, 'g')
|
68
|
+
},
|
69
|
+
|
70
|
+
STD = {
|
71
|
+
combinator: RegExp('\\s?([>+~])\\s?', 'g'),
|
72
|
+
apimethods: RegExp('^(?:[a-z]+|\\*)\\|', 'i'),
|
73
|
+
namespaces: RegExp('(\\*|[a-z]+)\\|[-a-z]+', 'i')
|
74
|
+
},
|
75
|
+
|
76
|
+
GROUPS = {
|
77
|
+
// pseudo-classes requiring parameters
|
78
|
+
linguistic: '(dir|lang)\\x28\\s?([-\\w]{2,})\\s?(?:\\x29|$)',
|
79
|
+
logicalsel: '(matches|not)\\x28\\s?([^()]*|[^\\x28]*\\x28[^\\x29]*\\x29)\\s?(?:\\x29|$)',
|
80
|
+
treestruct: '(nth(?:-last)?(?:-child|-of-type))(?:\\x28\\s?(even|odd|(?:[-+]?\\d*)(?:n\\s?[-+]?\\s?\\d*)?)\\s?(?:\\x29|$))',
|
81
|
+
// pseudo-classes not requiring parameters
|
82
|
+
locationpc: '(link|visited|target)\\b',
|
83
|
+
useraction: '(hover|active|focus|focus-within)\\b',
|
84
|
+
structural: '(root|empty|(?:(?:first|last|only)(?:-child|-of-type)))\\b',
|
85
|
+
inputstate: '(enabled|disabled|read-only|read-write|placeholder-shown|default)\\b',
|
86
|
+
inputvalue: '(checked|indeterminate|required|optional|valid|invalid|in-range|out-of-range)\\b',
|
87
|
+
// pseudo-elements starting with single colon (:)
|
88
|
+
pseudo_sng: '(after|before|first-letter|first-line)\\b',
|
89
|
+
// pseudo-elements starting with double colon (::)
|
90
|
+
pseudo_dbl: ':(after|before|first-letter|first-line|selection|placeholder|-webkit-[-a-zA-Z0-9]{2,})\\b'
|
91
|
+
},
|
92
|
+
|
93
|
+
Patterns = {
|
94
|
+
// pseudo-classes
|
95
|
+
treestruct: RegExp('^:(?:' + GROUPS.treestruct + ')(.*)', 'i'),
|
96
|
+
structural: RegExp('^:(?:' + GROUPS.structural + ')(.*)', 'i'),
|
97
|
+
linguistic: RegExp('^:(?:' + GROUPS.linguistic + ')(.*)', 'i'),
|
98
|
+
useraction: RegExp('^:(?:' + GROUPS.useraction + ')(.*)', 'i'),
|
99
|
+
inputstate: RegExp('^:(?:' + GROUPS.inputstate + ')(.*)', 'i'),
|
100
|
+
inputvalue: RegExp('^:(?:' + GROUPS.inputvalue + ')(.*)', 'i'),
|
101
|
+
locationpc: RegExp('^:(?:' + GROUPS.locationpc + ')(.*)', 'i'),
|
102
|
+
logicalsel: RegExp('^:(?:' + GROUPS.logicalsel + ')(.*)', 'i'),
|
103
|
+
pseudo_dbl: RegExp('^:(?:' + GROUPS.pseudo_dbl + ')(.*)', 'i'),
|
104
|
+
pseudo_sng: RegExp('^:(?:' + GROUPS.pseudo_sng + ')(.*)', 'i'),
|
105
|
+
// combinator symbols
|
106
|
+
children: RegExp('^' + WSP + '?\\>' + WSP + '?(.*)'),
|
107
|
+
adjacent: RegExp('^' + WSP + '?\\+' + WSP + '?(.*)'),
|
108
|
+
relative: RegExp('^' + WSP + '?\\~' + WSP + '?(.*)'),
|
109
|
+
ancestor: RegExp('^' + WSP + '+(.*)'),
|
110
|
+
// universal & namespace
|
111
|
+
universal: RegExp('^\\*(.*)'),
|
112
|
+
namespace: RegExp('^(\\w+|\\*)?\\|(.*)')
|
113
|
+
},
|
114
|
+
|
115
|
+
// regexp to aproximate detection of RTL languages (Arabic)
|
116
|
+
RTL = RegExp('^[\\u0591-\\u08ff\\ufb1d-\\ufdfd\\ufe70-\\ufefc ]+$'),
|
117
|
+
|
118
|
+
// emulate firefox error strings
|
119
|
+
qsNotArgs = 'Not enough arguments',
|
120
|
+
qsInvalid = ' is not a valid selector',
|
121
|
+
|
122
|
+
// detect structural pseudo-classes in selectors
|
123
|
+
reNthElem = RegExp('(:nth(?:-last)?-child)', 'i'),
|
124
|
+
reNthType = RegExp('(:nth(?:-last)?-of-type)', 'i'),
|
125
|
+
|
126
|
+
// placeholder for global regexp
|
127
|
+
reOptimizer,
|
128
|
+
reValidator,
|
129
|
+
|
130
|
+
// special handling configuration flags
|
131
|
+
Config = {
|
132
|
+
IDS_DUPES: true,
|
133
|
+
MIXEDCASE: true,
|
134
|
+
LOGERRORS: true,
|
135
|
+
VERBOSITY: true
|
136
|
+
},
|
137
|
+
|
138
|
+
NAMESPACE,
|
139
|
+
QUIRKS_MODE,
|
140
|
+
HTML_DOCUMENT,
|
141
|
+
|
142
|
+
ATTR_STD_OPS = {
|
143
|
+
'=': 1, '^=': 1, '$=': 1, '|=': 1, '*=': 1, '~=': 1
|
144
|
+
},
|
145
|
+
|
146
|
+
HTML_TABLE = {
|
147
|
+
'accept': 1, 'accept-charset': 1, 'align': 1, 'alink': 1, 'axis': 1,
|
148
|
+
'bgcolor': 1, 'charset': 1, 'checked': 1, 'clear': 1, 'codetype': 1, 'color': 1,
|
149
|
+
'compact': 1, 'declare': 1, 'defer': 1, 'dir': 1, 'direction': 1, 'disabled': 1,
|
150
|
+
'enctype': 1, 'face': 1, 'frame': 1, 'hreflang': 1, 'http-equiv': 1, 'lang': 1,
|
151
|
+
'language': 1, 'link': 1, 'media': 1, 'method': 1, 'multiple': 1, 'nohref': 1,
|
152
|
+
'noresize': 1, 'noshade': 1, 'nowrap': 1, 'readonly': 1, 'rel': 1, 'rev': 1,
|
153
|
+
'rules': 1, 'scope': 1, 'scrolling': 1, 'selected': 1, 'shape': 1, 'target': 1,
|
154
|
+
'text': 1, 'type': 1, 'valign': 1, 'valuetype': 1, 'vlink': 1
|
155
|
+
},
|
156
|
+
|
157
|
+
Combinators = { },
|
158
|
+
|
159
|
+
Selectors = { },
|
160
|
+
|
161
|
+
Operators = {
|
162
|
+
'=': { p1: '^',
|
163
|
+
p2: '$',
|
164
|
+
p3: 'true' },
|
165
|
+
'^=': { p1: '^',
|
166
|
+
p2: '',
|
167
|
+
p3: 'true' },
|
168
|
+
'$=': { p1: '',
|
169
|
+
p2: '$',
|
170
|
+
p3: 'true' },
|
171
|
+
'*=': { p1: '',
|
172
|
+
p2: '',
|
173
|
+
p3: 'true' },
|
174
|
+
'|=': { p1: '^',
|
175
|
+
p2: '(-|$)',
|
176
|
+
p3: 'true' },
|
177
|
+
'~=': { p1: '(^|\\s)',
|
178
|
+
p2: '(\\s|$)',
|
179
|
+
p3: 'true' }
|
180
|
+
},
|
181
|
+
|
182
|
+
concatCall =
|
183
|
+
function(nodes, callback) {
|
184
|
+
var i = 0, l = nodes.length, list = Array(l);
|
185
|
+
while (l > i) {
|
186
|
+
if (false === callback(list[i] = nodes[i])) break;
|
187
|
+
++i;
|
188
|
+
}
|
189
|
+
return list;
|
190
|
+
},
|
191
|
+
|
192
|
+
concatList =
|
193
|
+
function(list, nodes) {
|
194
|
+
var i = -1, l = nodes.length;
|
195
|
+
while (l--) { list[list.length] = nodes[++i]; }
|
196
|
+
return list;
|
197
|
+
},
|
198
|
+
|
199
|
+
documentOrder =
|
200
|
+
function(a, b) {
|
201
|
+
if (!hasDupes && a === b) {
|
202
|
+
hasDupes = true;
|
203
|
+
return 0;
|
204
|
+
}
|
205
|
+
return a.compareDocumentPosition(b) & 4 ? -1 : 1;
|
206
|
+
},
|
207
|
+
|
208
|
+
hasDupes = false,
|
209
|
+
|
210
|
+
unique =
|
211
|
+
function(nodes) {
|
212
|
+
var i = 0, j = -1, l = nodes.length + 1, list = [ ];
|
213
|
+
while (--l) {
|
214
|
+
if (nodes[i++] === nodes[i]) continue;
|
215
|
+
list[++j] = nodes[i - 1];
|
216
|
+
}
|
217
|
+
hasDupes = false;
|
218
|
+
return list;
|
219
|
+
},
|
220
|
+
|
221
|
+
// check context for mixed content
|
222
|
+
hasMixedCaseTagNames =
|
223
|
+
function(context) {
|
224
|
+
var ns, api = 'getElementsByTagNameNS';
|
225
|
+
|
226
|
+
// current host context (ownerDocument)
|
227
|
+
context = context.ownerDocument || context;
|
228
|
+
|
229
|
+
// documentElement (root) element namespace or default html/xhtml namespace
|
230
|
+
ns = context.documentElement.namespaceURI || 'http://www.w3.org/1999/xhtml';
|
231
|
+
|
232
|
+
// checking the number of non HTML nodes in the document
|
233
|
+
return (context[api]('*', '*').length - context[api](ns, '*').length) > 0;
|
234
|
+
},
|
235
|
+
|
236
|
+
switchContext =
|
237
|
+
function(context, force) {
|
238
|
+
var oldDoc = doc;
|
239
|
+
doc = context.ownerDocument || context;
|
240
|
+
if (force || oldDoc !== doc) {
|
241
|
+
// force a new check for each document change
|
242
|
+
// performed before the next select operation
|
243
|
+
root = doc.documentElement;
|
244
|
+
HTML_DOCUMENT = isHTML(doc);
|
245
|
+
QUIRKS_MODE = HTML_DOCUMENT &&
|
246
|
+
doc.compatMode.indexOf('CSS') < 0;
|
247
|
+
NAMESPACE = root && root.namespaceURI;
|
248
|
+
Snapshot.doc = doc;
|
249
|
+
Snapshot.root = root;
|
250
|
+
}
|
251
|
+
return (Snapshot.from = context);
|
252
|
+
},
|
253
|
+
|
254
|
+
// convert single codepoint to UTF-16 encoding
|
255
|
+
codePointToUTF16 =
|
256
|
+
function(codePoint) {
|
257
|
+
// out of range, use replacement character
|
258
|
+
if (codePoint < 1 || codePoint > 0x10ffff ||
|
259
|
+
(codePoint > 0xd7ff && codePoint < 0xe000)) {
|
260
|
+
return '\\ufffd';
|
261
|
+
}
|
262
|
+
// javascript strings are UTF-16 encoded
|
263
|
+
if (codePoint < 0x10000) {
|
264
|
+
var lowHex = '000' + codePoint.toString(16);
|
265
|
+
return '\\u' + lowHex.substr(lowHex.length - 4);
|
266
|
+
}
|
267
|
+
// supplementary high + low surrogates
|
268
|
+
return '\\u' + (((codePoint - 0x10000) >> 0x0a) + 0xd800).toString(16) +
|
269
|
+
'\\u' + (((codePoint - 0x10000) % 0x400) + 0xdc00).toString(16);
|
270
|
+
},
|
271
|
+
|
272
|
+
// convert single codepoint to string
|
273
|
+
stringFromCodePoint =
|
274
|
+
function(codePoint) {
|
275
|
+
// out of range, use replacement character
|
276
|
+
if (codePoint < 1 || codePoint > 0x10ffff ||
|
277
|
+
(codePoint > 0xd7ff && codePoint < 0xe000)) {
|
278
|
+
return '\ufffd';
|
279
|
+
}
|
280
|
+
if (codePoint < 0x10000) {
|
281
|
+
return String.fromCharCode(codePoint);
|
282
|
+
}
|
283
|
+
return String.fromCodePoint ?
|
284
|
+
String.fromCodePoint(codePoint) :
|
285
|
+
String.fromCharCode(
|
286
|
+
((codePoint - 0x10000) >> 0x0a) + 0xd800,
|
287
|
+
((codePoint - 0x10000) % 0x400) + 0xdc00);
|
288
|
+
},
|
289
|
+
|
290
|
+
// convert escape sequence in a CSS string or identifier
|
291
|
+
// to javascript string with javascript escape sequences
|
292
|
+
convertEscapes =
|
293
|
+
function(str) {
|
294
|
+
return REX.HasEscapes.test(str) ?
|
295
|
+
str.replace(REX.FixEscapes,
|
296
|
+
function(substring, p1, p2) {
|
297
|
+
// unescaped " or '
|
298
|
+
return p2 ? '\\' + p2 :
|
299
|
+
// javascript strings are UTF-16 encoded
|
300
|
+
REX.HexNumbers.test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
|
301
|
+
// \' \"
|
302
|
+
REX.EscOrQuote.test(p1) ? substring :
|
303
|
+
// \g \h \. \# etc
|
304
|
+
p1;
|
305
|
+
}
|
306
|
+
) : str;
|
307
|
+
},
|
308
|
+
|
309
|
+
// convert escape sequence in a CSS string or identifier
|
310
|
+
// to javascript string with characters representations
|
311
|
+
unescapeIdentifier =
|
312
|
+
function(str) {
|
313
|
+
return REX.HasEscapes.test(str) ?
|
314
|
+
str.replace(REX.FixEscapes,
|
315
|
+
function(substring, p1, p2) {
|
316
|
+
// unescaped " or '
|
317
|
+
return p2 ? p2 :
|
318
|
+
// javascript strings are UTF-16 encoded
|
319
|
+
REX.HexNumbers.test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
|
320
|
+
// \' \"
|
321
|
+
REX.EscOrQuote.test(p1) ? substring :
|
322
|
+
// \g \h \. \# etc
|
323
|
+
p1;
|
324
|
+
}
|
325
|
+
) : str;
|
326
|
+
},
|
327
|
+
|
328
|
+
method = {
|
329
|
+
'#': 'getElementById',
|
330
|
+
'*': 'getElementsByTagName',
|
331
|
+
'.': 'getElementsByClassName'
|
332
|
+
},
|
333
|
+
|
334
|
+
compat = {
|
335
|
+
'#': function(c, n) { REX.HasEscapes.test(n) && (n = unescapeIdentifier(n)); return function(e, f) { return byId(n, c); }; },
|
336
|
+
'*': function(c, n) { REX.HasEscapes.test(n) && (n = unescapeIdentifier(n)); return function(e, f) { return byTag(n, c); }; },
|
337
|
+
'.': function(c, n) { REX.HasEscapes.test(n) && (n = unescapeIdentifier(n)); return function(e, f) { return byClass(n, c); }; }
|
338
|
+
},
|
339
|
+
|
340
|
+
// find duplicate ids using iterative walk
|
341
|
+
byIdRaw =
|
342
|
+
function(id, context) {
|
343
|
+
var node = context, nodes = [ ], next = node.firstElementChild;
|
344
|
+
while ((node = next)) {
|
345
|
+
node.id == id && (nodes[nodes.length] = node);
|
346
|
+
if ((next = node.firstElementChild || node.nextElementSibling)) continue;
|
347
|
+
while (!next && (node = node.parentElement) && node !== context) {
|
348
|
+
next = node.nextElementSibling;
|
349
|
+
}
|
350
|
+
}
|
351
|
+
return nodes;
|
352
|
+
},
|
353
|
+
|
354
|
+
// context agnostic getElementById
|
355
|
+
byId =
|
356
|
+
function(id, context) {
|
357
|
+
var e, nodes, api = method['#'];
|
358
|
+
|
359
|
+
// duplicates id allowed
|
360
|
+
if (Config.IDS_DUPES === false) {
|
361
|
+
if (api in context) {
|
362
|
+
return (e = context[api](id)) ? [ e ] : none;
|
363
|
+
}
|
364
|
+
} else {
|
365
|
+
if ('all' in context) {
|
366
|
+
if ((e = context.all[id])) {
|
367
|
+
if (e.nodeType == 1) return e.getAttribute('id') != id ? [ ] : [ e ];
|
368
|
+
else if (id == 'length') return (e = context[api](id)) ? [ e ] : none;
|
369
|
+
for (i = 0, l = e.length, nodes = [ ]; l > i; ++i) {
|
370
|
+
if (e[i].id == id) nodes[nodes.length] = e[i];
|
371
|
+
}
|
372
|
+
return nodes && nodes.length ? nodes : [ nodes ];
|
373
|
+
} else return none;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
|
377
|
+
return byIdRaw(id, context);
|
378
|
+
},
|
379
|
+
|
380
|
+
// context agnostic getElementsByTagName
|
381
|
+
byTag =
|
382
|
+
function(tag, context) {
|
383
|
+
var e, nodes, api = method['*'];
|
384
|
+
// DOCUMENT_NODE (9) & ELEMENT_NODE (1)
|
385
|
+
if (api in context) {
|
386
|
+
return slice.call(context[api](tag));
|
387
|
+
} else {
|
388
|
+
// DOCUMENT_FRAGMENT_NODE (11)
|
389
|
+
if ((e = context.firstElementChild)) {
|
390
|
+
tag = tag.toLowerCase();
|
391
|
+
if (!(e.nextElementSibling || tag == '*' || e.nodeName.toLowerCase() == tag)) {
|
392
|
+
return slice.call(e[api](tag));
|
393
|
+
} else {
|
394
|
+
nodes = [ ];
|
395
|
+
do {
|
396
|
+
if (tag == '*' || e.nodeName.toLowerCase() == tag) nodes[nodes.length] = e;
|
397
|
+
concatList(nodes, e[api](tag));
|
398
|
+
} while ((e = e.nextElementSibling));
|
399
|
+
}
|
400
|
+
} else nodes = none;
|
401
|
+
}
|
402
|
+
return nodes;
|
403
|
+
},
|
404
|
+
|
405
|
+
// context agnostic getElementsByClassName
|
406
|
+
byClass =
|
407
|
+
function(cls, context) {
|
408
|
+
var e, nodes, api = method['.'], reCls;
|
409
|
+
// DOCUMENT_NODE (9) & ELEMENT_NODE (1)
|
410
|
+
if (api in context) {
|
411
|
+
return slice.call(context[api](cls));
|
412
|
+
} else {
|
413
|
+
// DOCUMENT_FRAGMENT_NODE (11)
|
414
|
+
if ((e = context.firstElementChild)) {
|
415
|
+
reCls = RegExp('(^|\\s)' + cls + '(\\s|$)', QUIRKS_MODE ? 'i' : '');
|
416
|
+
if (!(e.nextElementSibling || reCls.test(e.className))) {
|
417
|
+
return slice.call(e[api](cls));
|
418
|
+
} else {
|
419
|
+
nodes = [ ];
|
420
|
+
do {
|
421
|
+
if (reCls.test(e.className)) nodes[nodes.length] = e;
|
422
|
+
concatList(nodes, e[api](cls));
|
423
|
+
} while ((e = e.nextElementSibling));
|
424
|
+
}
|
425
|
+
} else nodes = none;
|
426
|
+
}
|
427
|
+
return nodes;
|
428
|
+
},
|
429
|
+
|
430
|
+
// namespace aware hasAttribute
|
431
|
+
// helper for XML/XHTML documents
|
432
|
+
hasAttributeNS =
|
433
|
+
function(e, name) {
|
434
|
+
var i, l, attr = e.getAttributeNames();
|
435
|
+
name = RegExp(':?' + name + '$', HTML_DOCUMENT ? 'i' : '');
|
436
|
+
for (i = 0, l = attr.length; l > i; ++i) {
|
437
|
+
if (name.test(attr[i])) return true;
|
438
|
+
}
|
439
|
+
return false;
|
440
|
+
},
|
441
|
+
|
442
|
+
// fast resolver for the :nth-child() and :nth-last-child() pseudo-classes
|
443
|
+
nthElement = (function() {
|
444
|
+
var idx = 0, len = 0, set = 0, parent = undefined, parents = Array(), nodes = Array();
|
445
|
+
return function(element, dir) {
|
446
|
+
// ensure caches are emptied after each run, invoking with dir = 2
|
447
|
+
if (dir == 2) {
|
448
|
+
idx = 0; len = 0; set = 0; nodes.length = 0;
|
449
|
+
parents.length = 0; parent = undefined;
|
450
|
+
return -1;
|
451
|
+
}
|
452
|
+
var e, i, j, k, l;
|
453
|
+
if (parent === element.parentElement) {
|
454
|
+
i = set; j = idx; l = len;
|
455
|
+
} else {
|
456
|
+
l = parents.length;
|
457
|
+
parent = element.parentElement;
|
458
|
+
for (i = -1, j = 0, k = l - 1; l > j; ++j, --k) {
|
459
|
+
if (parents[j] === parent) { i = j; break; }
|
460
|
+
if (parents[k] === parent) { i = k; break; }
|
461
|
+
}
|
462
|
+
if (i < 0) {
|
463
|
+
parents[i = l] = parent;
|
464
|
+
l = 0; nodes[i] = Array();
|
465
|
+
e = parent && parent.firstElementChild || element;
|
466
|
+
while (e) { nodes[i][l] = e; if (e === element) j = l; e = e.nextElementSibling; ++l; }
|
467
|
+
set = i; idx = 0; len = l;
|
468
|
+
if (l < 2) return l;
|
469
|
+
} else {
|
470
|
+
l = nodes[i].length;
|
471
|
+
set = i;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
if (element !== nodes[i][j] && element !== nodes[i][j = 0]) {
|
475
|
+
for (j = 0, e = nodes[i], k = l - 1; l > j; ++j, --k) {
|
476
|
+
if (e[j] === element) { break; }
|
477
|
+
if (e[k] === element) { j = k; break; }
|
478
|
+
}
|
479
|
+
}
|
480
|
+
idx = j + 1; len = l;
|
481
|
+
return dir ? l - j : idx;
|
482
|
+
};
|
483
|
+
})(),
|
484
|
+
|
485
|
+
// fast resolver for the :nth-of-type() and :nth-last-of-type() pseudo-classes
|
486
|
+
nthOfType = (function() {
|
487
|
+
var idx = 0, len = 0, set = 0, parent = undefined, parents = Array(), nodes = Array();
|
488
|
+
return function(element, dir) {
|
489
|
+
// ensure caches are emptied after each run, invoking with dir = 2
|
490
|
+
if (dir == 2) {
|
491
|
+
idx = 0; len = 0; set = 0; nodes.length = 0;
|
492
|
+
parents.length = 0; parent = undefined;
|
493
|
+
return -1;
|
494
|
+
}
|
495
|
+
var e, i, j, k, l, name = element.nodeName;
|
496
|
+
if (nodes[set] && nodes[set][name] && parent === element.parentElement) {
|
497
|
+
i = set; j = idx; l = len;
|
498
|
+
} else {
|
499
|
+
l = parents.length;
|
500
|
+
parent = element.parentElement;
|
501
|
+
for (i = -1, j = 0, k = l - 1; l > j; ++j, --k) {
|
502
|
+
if (parents[j] === parent) { i = j; break; }
|
503
|
+
if (parents[k] === parent) { i = k; break; }
|
504
|
+
}
|
505
|
+
if (i < 0 || !nodes[i][name]) {
|
506
|
+
parents[i = l] = parent;
|
507
|
+
nodes[i] || (nodes[i] = Object());
|
508
|
+
l = 0; nodes[i][name] = Array();
|
509
|
+
e = parent && parent.firstElementChild || element;
|
510
|
+
while (e) { if (e === element) j = l; if (e.nodeName == name) { nodes[i][name][l] = e; ++l; } e = e.nextElementSibling; }
|
511
|
+
set = i; idx = j; len = l;
|
512
|
+
if (l < 2) return l;
|
513
|
+
} else {
|
514
|
+
l = nodes[i][name].length;
|
515
|
+
set = i;
|
516
|
+
}
|
517
|
+
}
|
518
|
+
if (element !== nodes[i][name][j] && element !== nodes[i][name][j = 0]) {
|
519
|
+
for (j = 0, e = nodes[i][name], k = l - 1; l > j; ++j, --k) {
|
520
|
+
if (e[j] === element) { break; }
|
521
|
+
if (e[k] === element) { j = k; break; }
|
522
|
+
}
|
523
|
+
}
|
524
|
+
idx = j + 1; len = l;
|
525
|
+
return dir ? l - j : idx;
|
526
|
+
};
|
527
|
+
})(),
|
528
|
+
|
529
|
+
// check if the document type is HTML
|
530
|
+
isHTML =
|
531
|
+
function(node) {
|
532
|
+
var doc = node.ownerDocument || node;
|
533
|
+
return doc.nodeType == 9 &&
|
534
|
+
// contentType not in IE <= 11
|
535
|
+
'contentType' in doc ?
|
536
|
+
doc.contentType.indexOf('/html') > 0 :
|
537
|
+
doc.createElement('DiV').nodeName == 'DIV';
|
538
|
+
},
|
539
|
+
|
540
|
+
// configure the engine to use special handling
|
541
|
+
configure =
|
542
|
+
function(option, clear) {
|
543
|
+
if (typeof option == 'string') { return !!Config[option]; }
|
544
|
+
if (typeof option != 'object') { return Config; }
|
545
|
+
for (var i in option) {
|
546
|
+
Config[i] = !!option[i];
|
547
|
+
}
|
548
|
+
// clear lambda cache
|
549
|
+
if (clear) {
|
550
|
+
matchResolvers = { };
|
551
|
+
selectResolvers = { };
|
552
|
+
}
|
553
|
+
setIdentifierSyntax();
|
554
|
+
return true;
|
555
|
+
},
|
556
|
+
|
557
|
+
// centralized error and exceptions handling
|
558
|
+
emit =
|
559
|
+
function(message, proto) {
|
560
|
+
var err;
|
561
|
+
if (Config.VERBOSITY) {
|
562
|
+
if (proto) {
|
563
|
+
err = new proto(message);
|
564
|
+
} else {
|
565
|
+
err = new global.DOMException(message, 'SyntaxError');
|
566
|
+
}
|
567
|
+
throw err;
|
568
|
+
}
|
569
|
+
if (Config.LOGERRORS && console && console.log) {
|
570
|
+
console.log(message);
|
571
|
+
}
|
572
|
+
},
|
573
|
+
|
574
|
+
// execute the engine initialization code
|
575
|
+
initialize =
|
576
|
+
function(doc) {
|
577
|
+
setIdentifierSyntax();
|
578
|
+
lastContext = switchContext(doc, true);
|
579
|
+
},
|
580
|
+
|
581
|
+
// build validation regexps used by the engine
|
582
|
+
setIdentifierSyntax =
|
583
|
+
function() {
|
584
|
+
|
585
|
+
//
|
586
|
+
// NOTE: SPECIAL CASES IN CSS SYNTAX PARSING RULES
|
587
|
+
//
|
588
|
+
// The <EOF-token> https://drafts.csswg.org/css-syntax/#typedef-eof-token
|
589
|
+
// allow mangled|unclosed selector syntax at the end of selectors strings
|
590
|
+
//
|
591
|
+
// Literal equivalent hex representations of the characters: " ' ` ] )
|
592
|
+
//
|
593
|
+
// \\x22 = " - double quotes \\x5b = [ - open square bracket
|
594
|
+
// \\x27 = ' - single quote \\x5d = ] - closed square bracket
|
595
|
+
// \\x60 = ` - back tick \\x28 = ( - open round parens
|
596
|
+
// \\x5c = \ - back slash \\x29 = ) - closed round parens
|
597
|
+
//
|
598
|
+
// using hex format prevents false matches of opened/closed instances
|
599
|
+
// pairs, coloring breakage and other editors highlightning problems.
|
600
|
+
//
|
601
|
+
|
602
|
+
var identifier =
|
603
|
+
// doesn't start with a digit
|
604
|
+
'(?=[^0-9])' +
|
605
|
+
// can start with double dash
|
606
|
+
'(?:-{2}' +
|
607
|
+
// may include ascii chars
|
608
|
+
'|[a-zA-Z0-9-_]' +
|
609
|
+
// non-ascii chars
|
610
|
+
'|[^\\x00-\\x9f]' +
|
611
|
+
// escaped chars
|
612
|
+
'|\\\\[^\\r\\n\\f0-9a-fA-F]' +
|
613
|
+
// unicode chars
|
614
|
+
'|\\\\[0-9a-fA-F]{1,6}(?:\\r\\n|\\s)?' +
|
615
|
+
// any escaped chars
|
616
|
+
'|\\\\.' +
|
617
|
+
')+',
|
618
|
+
|
619
|
+
pseudonames = '[-\\w]+',
|
620
|
+
pseudoparms = '(?:[-+]?\\d*)(?:n\\s?[-+]?\\s?\\d*)',
|
621
|
+
doublequote = '"[^"\\\\]*(?:\\\\.[^"\\\\]*)*(?:"|$)',
|
622
|
+
singlequote = "'[^'\\\\]*(?:\\\\.[^'\\\\]*)*(?:'|$)",
|
623
|
+
|
624
|
+
attrparser = identifier + '|' + doublequote + '|' + singlequote,
|
625
|
+
|
626
|
+
attrvalues = '([\\x22\\x27]?)((?!\\3)*|(?:\\\\?.)*?)(?:\\3|$)',
|
627
|
+
|
628
|
+
attributes =
|
629
|
+
'\\[' +
|
630
|
+
// attribute presence
|
631
|
+
'(?:\\*\\|)?' +
|
632
|
+
WSP + '?' +
|
633
|
+
'(' + identifier + '(?::' + identifier + ')?)' +
|
634
|
+
WSP + '?' +
|
635
|
+
'(?:' +
|
636
|
+
'(' + CFG.operators + ')' + WSP + '?' +
|
637
|
+
'(?:' + attrparser + ')' +
|
638
|
+
')?' +
|
639
|
+
// attribute case sensitivity
|
640
|
+
WSP + '?' + '(i)?' + WSP + '?' +
|
641
|
+
'(?:\\]|$)',
|
642
|
+
|
643
|
+
attrmatcher = attributes.replace(attrparser, attrvalues),
|
644
|
+
|
645
|
+
pseudoclass =
|
646
|
+
'(?:\\x28' + WSP + '*' +
|
647
|
+
'(?:' + pseudoparms + '?)?|' +
|
648
|
+
// universal * &
|
649
|
+
// namespace *|*
|
650
|
+
'(?:\\*|\\|)|' +
|
651
|
+
'(?:' +
|
652
|
+
'(?::' + pseudonames +
|
653
|
+
'(?:\\x28' + pseudoparms + '?(?:\\x29|$))?|' +
|
654
|
+
')|' +
|
655
|
+
'(?:[.#]?' + identifier + ')|' +
|
656
|
+
'(?:' + attributes + ')' +
|
657
|
+
')+|' +
|
658
|
+
'(?:' + WSP + '?,' + WSP + '?)|' +
|
659
|
+
'(?:' + WSP + '?)|' +
|
660
|
+
'(?:\\x29|$))*',
|
661
|
+
|
662
|
+
standardValidator =
|
663
|
+
'(?=' + WSP + '?[^>+~(){}<>])' +
|
664
|
+
'(?:' +
|
665
|
+
// universal * &
|
666
|
+
// namespace *|*
|
667
|
+
'(?:\\*|\\|)|' +
|
668
|
+
'(?:[.#]?' + identifier + ')+|' +
|
669
|
+
'(?:' + attributes + ')+|' +
|
670
|
+
'(?:::?' + pseudonames + pseudoclass + ')|' +
|
671
|
+
'(?:' + WSP + '?' + CFG.combinators + WSP + '?)|' +
|
672
|
+
'(?:' + WSP + '?,' + WSP + '?)|' +
|
673
|
+
'(?:' + WSP + '?)' +
|
674
|
+
')+';
|
675
|
+
|
676
|
+
// the following global RE is used to return the
|
677
|
+
// deepest nodeName in selector strings and then
|
678
|
+
// use it to retrieve all possible matching nodes
|
679
|
+
// that will be filtered by compiled resolvers
|
680
|
+
reOptimizer = RegExp(
|
681
|
+
'(?:([.:#*]?)' +
|
682
|
+
'(' + identifier + ')' +
|
683
|
+
'(?:' +
|
684
|
+
':[-\\w]+|' +
|
685
|
+
'\\[[^\\]]+(?:\\]|$)|' +
|
686
|
+
'\\x28[^\\x29]+(?:\\x29|$)' +
|
687
|
+
')*)$');
|
688
|
+
|
689
|
+
// global
|
690
|
+
reValidator = RegExp(standardValidator, 'g');
|
691
|
+
|
692
|
+
Patterns.id = RegExp('^#(' + identifier + ')(.*)');
|
693
|
+
Patterns.tagName = RegExp('^(' + identifier + ')(.*)');
|
694
|
+
Patterns.className = RegExp('^\\.(' + identifier + ')(.*)');
|
695
|
+
Patterns.attribute = RegExp('^(?:' + attrmatcher + ')(.*)');
|
696
|
+
},
|
697
|
+
|
698
|
+
F_INIT = '"use strict";return function Resolver(c,f,x,r)',
|
699
|
+
|
700
|
+
S_HEAD = 'var e,n,o,j=r.length-1,k=-1',
|
701
|
+
M_HEAD = 'var e,n,o',
|
702
|
+
|
703
|
+
S_LOOP = 'main:while((e=c[++k]))',
|
704
|
+
N_LOOP = 'main:while((e=c.item(++k)))',
|
705
|
+
M_LOOP = 'e=c;',
|
706
|
+
|
707
|
+
S_BODY = 'r[++j]=c[k];',
|
708
|
+
N_BODY = 'r[++j]=c.item(k);',
|
709
|
+
M_BODY = '',
|
710
|
+
|
711
|
+
S_TAIL = 'continue main;',
|
712
|
+
M_TAIL = 'r=true;',
|
713
|
+
|
714
|
+
S_TEST = 'if(f(c[k])){break main;}',
|
715
|
+
N_TEST = 'if(f(c.item(k))){break main;}',
|
716
|
+
M_TEST = 'f(c);',
|
717
|
+
|
718
|
+
S_VARS = [ ],
|
719
|
+
M_VARS = [ ],
|
720
|
+
|
721
|
+
// compile groups or single selector strings into
|
722
|
+
// executable functions for matching or selecting
|
723
|
+
compile =
|
724
|
+
function(selector, mode, callback) {
|
725
|
+
var factory, token, head = '', loop = '', macro = '', source = '', vars = '';
|
726
|
+
|
727
|
+
// 'mode' can be boolean or null
|
728
|
+
// true = select / false = match
|
729
|
+
// null to use collection.item()
|
730
|
+
switch (mode) {
|
731
|
+
case true:
|
732
|
+
if (selectLambdas[selector]) { return selectLambdas[selector]; }
|
733
|
+
macro = S_BODY + (callback ? S_TEST : '') + S_TAIL;
|
734
|
+
head = S_HEAD;
|
735
|
+
loop = S_LOOP;
|
736
|
+
break;
|
737
|
+
case false:
|
738
|
+
if (matchLambdas[selector]) { return matchLambdas[selector]; }
|
739
|
+
macro = M_BODY + (callback ? M_TEST : '') + M_TAIL;
|
740
|
+
head = M_HEAD;
|
741
|
+
loop = M_LOOP;
|
742
|
+
break;
|
743
|
+
case null:
|
744
|
+
if (selectLambdas[selector]) { return selectLambdas[selector]; }
|
745
|
+
macro = N_BODY + (callback ? N_TEST : '') + S_TAIL;
|
746
|
+
head = S_HEAD;
|
747
|
+
loop = N_LOOP;
|
748
|
+
break;
|
749
|
+
default:
|
750
|
+
break;
|
751
|
+
}
|
752
|
+
|
753
|
+
source = compileSelector(selector, macro, mode, callback, false);
|
754
|
+
|
755
|
+
loop += mode || mode === null ? '{' + source + '}' : source;
|
756
|
+
|
757
|
+
if (mode || mode === null && selector.includes(':nth')) {
|
758
|
+
loop += reNthElem.test(selector) ? 's.nthElement(null, 2);' : '';
|
759
|
+
loop += reNthType.test(selector) ? 's.nthOfType(null, 2);' : '';
|
760
|
+
}
|
761
|
+
|
762
|
+
if (S_VARS[0] || M_VARS[0]) {
|
763
|
+
vars = ',' + (S_VARS.join(',') || M_VARS.join(','));
|
764
|
+
S_VARS.length = 0;
|
765
|
+
M_VARS.length = 0;
|
766
|
+
}
|
767
|
+
|
768
|
+
factory = Function('s', F_INIT + '{' + head + vars + ';' + loop + 'return r;}')(Snapshot);
|
769
|
+
|
770
|
+
return mode || mode === null ? (selectLambdas[selector] = factory) : (matchLambdas[selector] = factory);
|
771
|
+
},
|
772
|
+
|
773
|
+
// build conditional code to check components of selector strings
|
774
|
+
compileSelector =
|
775
|
+
function(expression, source, mode, callback, not) {
|
776
|
+
|
777
|
+
// N is the negation pseudo-class flag
|
778
|
+
// D is the default inverted negation flag
|
779
|
+
var a, b, n, f, i, l, name, nested, NS,
|
780
|
+
N = not ? '!' : '', D = not ? '' : '!',
|
781
|
+
compat, expr, match, result, status, symbol, test,
|
782
|
+
type, selector = expression, selector_string, vars;
|
783
|
+
|
784
|
+
// original 'select' or 'match' selector string before normalization
|
785
|
+
selector_string = mode ? lastSelected : lastMatched;
|
786
|
+
|
787
|
+
// isolate selector combinators/components and normalize whitespace
|
788
|
+
selector = selector.replace(STD.combinator, '$1');//.replace(STD.whitespace, ' ');
|
789
|
+
|
790
|
+
while (selector) {
|
791
|
+
|
792
|
+
// get namespace prefix if present or get first char of selector
|
793
|
+
symbol = STD.apimethods.test(selector) ? '|' : selector[0];
|
794
|
+
|
795
|
+
switch (symbol) {
|
796
|
+
|
797
|
+
// universal resolver
|
798
|
+
case '*':
|
799
|
+
match = selector.match(Patterns.universal);
|
800
|
+
if (N == '!') {
|
801
|
+
source = 'if(' + N + 'true' +
|
802
|
+
'){' + source + '}';
|
803
|
+
}
|
804
|
+
break;
|
805
|
+
|
806
|
+
// id resolver
|
807
|
+
case '#':
|
808
|
+
match = selector.match(Patterns.id);
|
809
|
+
source = 'if(' + N + '(/^' + match[1] + '$/.test(e.getAttribute("id"))' +
|
810
|
+
')){' + source + '}';
|
811
|
+
break;
|
812
|
+
|
813
|
+
// class name resolver
|
814
|
+
case '.':
|
815
|
+
match = selector.match(Patterns.className);
|
816
|
+
compat = (QUIRKS_MODE ? 'i' : '') + '.test(e.getAttribute("class"))';
|
817
|
+
source = 'if(' + N + '(/(^|\\s)' + match[1] + '(\\s|$)/' + compat +
|
818
|
+
')){' + source + '}';
|
819
|
+
break;
|
820
|
+
|
821
|
+
// tag name resolver
|
822
|
+
case (/[a-z]/i.test(symbol) ? symbol : undefined):
|
823
|
+
match = selector.match(Patterns.tagName);
|
824
|
+
source = 'if(' + N + '(e.nodeName' +
|
825
|
+
(Config.MIXEDCASE || hasMixedCaseTagNames(doc) ?
|
826
|
+
'.toLowerCase()=="' + match[1].toLowerCase() + '"' :
|
827
|
+
'=="' + match[1].toUpperCase() + '"') +
|
828
|
+
')){' + source + '}';
|
829
|
+
break;
|
830
|
+
|
831
|
+
// namespace resolver
|
832
|
+
case '|':
|
833
|
+
match = selector.match(Patterns.namespace);
|
834
|
+
if (match[1] == '*') {
|
835
|
+
source = 'if(' + N + 'true){' + source + '}';
|
836
|
+
} else if (!match[1]) {
|
837
|
+
source = 'if(' + N + '(!e.namespaceURI)){' + source + '}';
|
838
|
+
} else if (typeof match[1] == 'string' && root.prefix == match[1]) {
|
839
|
+
source = 'if(' + N + '(e.namespaceURI=="' + NAMESPACE + '")){' + source + '}';
|
840
|
+
} else {
|
841
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
842
|
+
}
|
843
|
+
break;
|
844
|
+
|
845
|
+
// attributes resolver
|
846
|
+
case '[':
|
847
|
+
match = selector.match(Patterns.attribute);
|
848
|
+
NS = match[0].match(STD.namespaces);
|
849
|
+
name = match[1];
|
850
|
+
expr = name.split(':');
|
851
|
+
expr = expr.length == 2 ? expr[1] : expr[0];
|
852
|
+
if (match[2] && !(test = Operators[match[2]])) {
|
853
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
854
|
+
return '';
|
855
|
+
}
|
856
|
+
if (match[4] === '') {
|
857
|
+
test = match[2] == '~=' ?
|
858
|
+
{ p1: '^\\s', p2: '+$', p3: 'true' } :
|
859
|
+
match[2] in ATTR_STD_OPS && match[2] != '~=' ?
|
860
|
+
{ p1: '^', p2: '$', p3: 'true' } : test;
|
861
|
+
} else if (match[2] == '~=' && match[4].includes(' ')) {
|
862
|
+
// whitespace separated list but value contains space
|
863
|
+
source = 'if(' + N + 'false){' + source + '}';
|
864
|
+
break;
|
865
|
+
} else if (match[4]) {
|
866
|
+
match[4] = convertEscapes(match[4]).replace(REX.RegExpChar, '\\$&');
|
867
|
+
}
|
868
|
+
type = match[5] == 'i' || (HTML_DOCUMENT && HTML_TABLE[expr.toLowerCase()]) ? 'i' : '';
|
869
|
+
source = 'if(' + N + '(' +
|
870
|
+
(!match[2] ? (NS ? 's.hasAttributeNS(e,"' + name + '")' : 'e.hasAttribute("' + name + '")') :
|
871
|
+
!match[4] && ATTR_STD_OPS[match[2]] && match[2] != '~=' ? 'e.getAttribute("' + name + '")==""' :
|
872
|
+
'(/' + test.p1 + match[4] + test.p2 + '/' + type + ').test(e.getAttribute("' + name + '"))==' + test.p3) +
|
873
|
+
')){' + source + '}';
|
874
|
+
break;
|
875
|
+
|
876
|
+
// *** General sibling combinator
|
877
|
+
// E ~ F (F relative sibling of E)
|
878
|
+
case '~':
|
879
|
+
match = selector.match(Patterns.relative);
|
880
|
+
source = 'n=e;while((e=e.previousElementSibling)){' + source + '}e=n;';
|
881
|
+
break;
|
882
|
+
// *** Adjacent sibling combinator
|
883
|
+
// E + F (F adiacent sibling of E)
|
884
|
+
case '+':
|
885
|
+
match = selector.match(Patterns.adjacent);
|
886
|
+
source = 'n=e;if((e=e.previousElementSibling)){' + source + '}e=n;';
|
887
|
+
break;
|
888
|
+
// *** Descendant combinator
|
889
|
+
// E F (E ancestor of F)
|
890
|
+
case '\x09':
|
891
|
+
case '\x20':
|
892
|
+
match = selector.match(Patterns.ancestor);
|
893
|
+
source = 'n=e;while((e=e.parentElement)){' + source + '}e=n;';
|
894
|
+
break;
|
895
|
+
// *** Child combinator
|
896
|
+
// E > F (F children of E)
|
897
|
+
case '>':
|
898
|
+
match = selector.match(Patterns.children);
|
899
|
+
source = 'n=e;if((e=e.parentElement)){' + source + '}e=n;';
|
900
|
+
break;
|
901
|
+
|
902
|
+
// *** user supplied combinators extensions
|
903
|
+
case (symbol in Combinators ? symbol : undefined):
|
904
|
+
// for other registered combinators extensions
|
905
|
+
match[match.length - 1] = '*';
|
906
|
+
source = Combinators[symbol](match) + source;
|
907
|
+
break;
|
908
|
+
|
909
|
+
// *** tree-structural pseudo-classes
|
910
|
+
// :root, :empty, :first-child, :last-child, :only-child, :first-of-type, :last-of-type, :only-of-type
|
911
|
+
case ':':
|
912
|
+
if ((match = selector.match(Patterns.structural))) {
|
913
|
+
match[1] = match[1].toLowerCase();
|
914
|
+
switch (match[1]) {
|
915
|
+
case 'root':
|
916
|
+
// there can only be one :root element, so exit the loop once found
|
917
|
+
source = 'if(' + N + '(e===s.root)){' + source + (mode ? 'break main;' : '') + '}';
|
918
|
+
break;
|
919
|
+
case 'empty':
|
920
|
+
// matches elements that don't contain elements or text nodes
|
921
|
+
source = 'n=e.firstChild;while(n&&!(/1|3/).test(n.nodeType)){n=n.nextSibling}if(' + D + 'n){' + source + '}';
|
922
|
+
break;
|
923
|
+
|
924
|
+
// *** child-indexed pseudo-classes
|
925
|
+
// :first-child, :last-child, :only-child
|
926
|
+
case 'only-child':
|
927
|
+
source = 'if(' + N + '(!e.nextElementSibling&&!e.previousElementSibling)){' + source + '}';
|
928
|
+
break;
|
929
|
+
case 'last-child':
|
930
|
+
source = 'if(' + N + '(!e.nextElementSibling)){' + source + '}';
|
931
|
+
break;
|
932
|
+
case 'first-child':
|
933
|
+
source = 'if(' + N + '(!e.previousElementSibling)){' + source + '}';
|
934
|
+
break;
|
935
|
+
|
936
|
+
// *** typed child-indexed pseudo-classes
|
937
|
+
// :only-of-type, :last-of-type, :first-of-type
|
938
|
+
case 'only-of-type':
|
939
|
+
source = 'o=e.nodeName;' +
|
940
|
+
'n=e;while((n=n.nextElementSibling)&&n.nodeName!=o);if(!n){' +
|
941
|
+
'n=e;while((n=n.previousElementSibling)&&n.nodeName!=o);}if(' + D + 'n){' + source + '}';
|
942
|
+
break;
|
943
|
+
case 'last-of-type':
|
944
|
+
source = 'n=e;o=e.nodeName;while((n=n.nextElementSibling)&&n.nodeName!=o);if(' + D + 'n){' + source + '}';
|
945
|
+
break;
|
946
|
+
case 'first-of-type':
|
947
|
+
source = 'n=e;o=e.nodeName;while((n=n.previousElementSibling)&&n.nodeName!=o);if(' + D + 'n){' + source + '}';
|
948
|
+
break;
|
949
|
+
default:
|
950
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
951
|
+
break;
|
952
|
+
}
|
953
|
+
}
|
954
|
+
|
955
|
+
// *** child-indexed & typed child-indexed pseudo-classes
|
956
|
+
// :nth-child, :nth-of-type, :nth-last-child, :nth-last-of-type
|
957
|
+
else if ((match = selector.match(Patterns.treestruct))) {
|
958
|
+
match[1] = match[1].toLowerCase();
|
959
|
+
switch (match[1]) {
|
960
|
+
case 'nth-child':
|
961
|
+
case 'nth-of-type':
|
962
|
+
case 'nth-last-child':
|
963
|
+
case 'nth-last-of-type':
|
964
|
+
expr = /-of-type/i.test(match[1]);
|
965
|
+
if (match[1] && match[2]) {
|
966
|
+
type = /last/i.test(match[1]);
|
967
|
+
if (match[2] == 'n') {
|
968
|
+
source = 'if(' + N + 'true){' + source + '}';
|
969
|
+
break;
|
970
|
+
} else if (match[2] == '1') {
|
971
|
+
test = type ? 'next' : 'previous';
|
972
|
+
source = expr ? 'n=e;o=e.nodeName;' +
|
973
|
+
'while((n=n.' + test + 'ElementSibling)&&n.nodeName!=o);if(' + D + 'n){' + source + '}' :
|
974
|
+
'if(' + N + '!e.' + test + 'ElementSibling){' + source + '}';
|
975
|
+
break;
|
976
|
+
} else if (match[2] == 'even' || match[2] == '2n0' || match[2] == '2n+0' || match[2] == '2n') {
|
977
|
+
test = 'n%2==0';
|
978
|
+
} else if (match[2] == 'odd' || match[2] == '2n1' || match[2] == '2n+1') {
|
979
|
+
test = 'n%2==1';
|
980
|
+
} else {
|
981
|
+
f = /n/i.test(match[2]);
|
982
|
+
n = match[2].split('n');
|
983
|
+
a = parseInt(n[0], 10) || 0;
|
984
|
+
b = parseInt(n[1], 10) || 0;
|
985
|
+
if (n[0] == '-') { a = -1; }
|
986
|
+
if (n[0] == '+') { a = +1; }
|
987
|
+
test = (b ? '(n' + (b > 0 ? '-' : '+') + Math.abs(b) + ')' : 'n') + '%' + a + '==0' ;
|
988
|
+
test =
|
989
|
+
a >= +1 ? (f ? 'n>' + (b - 1) + (Math.abs(a) != 1 ? '&&' + test : '') : 'n==' + a) :
|
990
|
+
a <= -1 ? (f ? 'n<' + (b + 1) + (Math.abs(a) != 1 ? '&&' + test : '') : 'n==' + a) :
|
991
|
+
a === 0 ? (n[0] ? 'n==' + b : 'n>' + (b - 1)) : 'false';
|
992
|
+
}
|
993
|
+
expr = expr ? 'OfType' : 'Element';
|
994
|
+
type = type ? 'true' : 'false';
|
995
|
+
source = 'n=s.nth' + expr + '(e,' + type + ');if(' + N + '(' + test + ')){' + source + '}';
|
996
|
+
} else {
|
997
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
998
|
+
}
|
999
|
+
break;
|
1000
|
+
default:
|
1001
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1002
|
+
break;
|
1003
|
+
}
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
// *** logical combination pseudo-classes
|
1007
|
+
// :matches( s1, [ s2, ... ]), :not( s1, [ s2, ... ])
|
1008
|
+
else if ((match = selector.match(Patterns.logicalsel))) {
|
1009
|
+
match[1] = match[1].toLowerCase();
|
1010
|
+
switch (match[1]) {
|
1011
|
+
case 'matches':
|
1012
|
+
if (not === true || nested === true) {
|
1013
|
+
emit(':matches() pseudo-class cannot be nested');
|
1014
|
+
}
|
1015
|
+
nested = true;
|
1016
|
+
expr = match[2].replace(REX.CommaGroup, ',').replace(REX.TrimSpaces, '');
|
1017
|
+
// check nested compound selectors s1, s2
|
1018
|
+
expr = match[2].match(REX.SplitGroup);
|
1019
|
+
for (i = 0, l = expr.length; l > i; ++i) {
|
1020
|
+
expr[i] = expr[i].replace(REX.TrimSpaces, '');
|
1021
|
+
source = 'if(s.match("' + expr[i].replace(/\x22/g, '\\"') + '",e)){' + source + '}';
|
1022
|
+
}
|
1023
|
+
break;
|
1024
|
+
case 'not':
|
1025
|
+
if (not === true || nested === true) {
|
1026
|
+
emit(':not() pseudo-class cannot be nested');
|
1027
|
+
}
|
1028
|
+
expr = match[2].replace(REX.CommaGroup, ',').replace(REX.TrimSpaces, '');
|
1029
|
+
// check nested compound selectors s1, s2
|
1030
|
+
expr = match[2].match(REX.SplitGroup);
|
1031
|
+
for (i = 0, l = expr.length; l > i; ++i) {
|
1032
|
+
expr[i] = expr[i].replace(REX.TrimSpaces, '');
|
1033
|
+
source = compileSelector(expr[i], source, false, callback, true);
|
1034
|
+
}
|
1035
|
+
break;
|
1036
|
+
default:
|
1037
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1038
|
+
break;
|
1039
|
+
}
|
1040
|
+
}
|
1041
|
+
|
1042
|
+
// *** linguistic pseudo-classes
|
1043
|
+
// :dir( ltr / rtl ), :lang( en )
|
1044
|
+
else if ((match = selector.match(Patterns.linguistic))) {
|
1045
|
+
match[1] = match[1].toLowerCase();
|
1046
|
+
switch (match[1]) {
|
1047
|
+
case 'dir':
|
1048
|
+
source = 'var p;if(' + N + '(' +
|
1049
|
+
'(/' + match[2] + '/i.test(e.dir))||(p=s.ancestor("[dir]", e))&&' +
|
1050
|
+
'(/' + match[2] + '/i.test(p.dir))||(e.dir==""||e.dir=="auto")&&' +
|
1051
|
+
'(' + (match[2] == 'ltr' ? '!':'')+ RTL +'.test(e.textContent)))' +
|
1052
|
+
'){' + source + '};';
|
1053
|
+
break;
|
1054
|
+
case 'lang':
|
1055
|
+
expr = '(?:^|-)' + match[2] + '(?:-|$)';
|
1056
|
+
source = 'var p;if(' + N + '(' +
|
1057
|
+
'(e.isConnected&&(e.lang==""&&(p=s.ancestor("[lang]",e)))&&' +
|
1058
|
+
'(p.lang=="' + match[2] + '")||/'+ expr +'/i.test(e.lang)))' +
|
1059
|
+
'){' + source + '};';
|
1060
|
+
break;
|
1061
|
+
default:
|
1062
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1063
|
+
break;
|
1064
|
+
}
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
// *** location pseudo-classes
|
1068
|
+
// :link, :visited, :target
|
1069
|
+
else if ((match = selector.match(Patterns.locationpc))) {
|
1070
|
+
match[1] = match[1].toLowerCase();
|
1071
|
+
switch (match[1]) {
|
1072
|
+
case 'link':
|
1073
|
+
source = 'if(' + N + '(/^a|area|link$/i.test(e.nodeName)&&e.hasAttribute("href"))){' + source + '}';
|
1074
|
+
break;
|
1075
|
+
case 'visited':
|
1076
|
+
source = 'if(' + N + '(/^a|area|link$/i.test(e.nodeName)&&e.hasAttribute("href")&&e.visited)){' + source + '}';
|
1077
|
+
break;
|
1078
|
+
case 'target':
|
1079
|
+
source = 'if(' + N + '((s.doc.compareDocumentPosition(e)&16)&&s.doc.location.hash&&e.id==s.doc.location.hash.slice(1))){' + source + '}';
|
1080
|
+
break;
|
1081
|
+
default:
|
1082
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1083
|
+
break;
|
1084
|
+
}
|
1085
|
+
}
|
1086
|
+
|
1087
|
+
// *** user actions pseudo-classes
|
1088
|
+
// :hover, :active, :focus
|
1089
|
+
else if ((match = selector.match(Patterns.useraction))) {
|
1090
|
+
match[1] = match[1].toLowerCase();
|
1091
|
+
switch (match[1]) {
|
1092
|
+
case 'hover':
|
1093
|
+
source = 'hasFocus' in doc && doc.hasFocus() ?
|
1094
|
+
'if(' + N + '(e===s.doc.hoverElement)){' + source + '}' :
|
1095
|
+
'if(' + D + 'true){' + source + '}';
|
1096
|
+
break;
|
1097
|
+
case 'active':
|
1098
|
+
source = 'hasFocus' in doc && doc.hasFocus() ?
|
1099
|
+
'if(' + N + '(e===s.doc.activeElement)){' + source + '}' :
|
1100
|
+
'if(' + D + 'true){' + source + '}';
|
1101
|
+
break;
|
1102
|
+
case 'focus':
|
1103
|
+
source = 'hasFocus' in doc ?
|
1104
|
+
'if(' + N + '(e===s.doc.activeElement&&s.doc.hasFocus()&&(e.type||e.href||typeof e.tabIndex=="number"))){' + source + '}' :
|
1105
|
+
'if(' + N + '(e===s.doc.activeElement&&(e.type||e.href))){' + source + '}';
|
1106
|
+
break;
|
1107
|
+
case 'focus-within':
|
1108
|
+
source = 'hasFocus' in doc ?
|
1109
|
+
'n=s.doc.activeElement;while(e){if(e===n||e.parentNode===n)break;}' +
|
1110
|
+
'if(' + N + '(e===n&&s.doc.hasFocus()&&(e.type||e.href||typeof e.tabIndex=="number"))){' + source + '}' : source;
|
1111
|
+
break;
|
1112
|
+
default:
|
1113
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1114
|
+
break;
|
1115
|
+
}
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
// *** user interface and form pseudo-classes
|
1119
|
+
// :enabled, :disabled, :read-only, :read-write, :placeholder-shown, :default
|
1120
|
+
else if ((match = selector.match(Patterns.inputstate))) {
|
1121
|
+
match[1] = match[1].toLowerCase();
|
1122
|
+
switch (match[1]) {
|
1123
|
+
case 'enabled':
|
1124
|
+
source = 'if(' + N + '(("form" in e||/^optgroup$/i.test(e.nodeName))&&"disabled" in e &&e.disabled===false' +
|
1125
|
+
')){' + source + '}';
|
1126
|
+
break;
|
1127
|
+
case 'disabled':
|
1128
|
+
// https://www.w3.org/TR/html5/forms.html#enabling-and-disabling-form-controls:-the-disabled-attribute
|
1129
|
+
source = 'if(' + N + '(("form" in e||/^optgroup$/i.test(e.nodeName))&&"disabled" in e&&' +
|
1130
|
+
'(e.disabled===true||(n=s.ancestor("fieldset",e))&&(n=s.first("legend",n))&&!n.contains(e))' +
|
1131
|
+
')){' + source + '}';
|
1132
|
+
break;
|
1133
|
+
case 'read-only':
|
1134
|
+
source =
|
1135
|
+
'if(' + N + '(' +
|
1136
|
+
'(/^textarea$/i.test(e.nodeName)&&(e.readOnly||e.disabled))||' +
|
1137
|
+
'("|password|text|".includes("|"+e.type+"|")&&e.readOnly)' +
|
1138
|
+
')){' + source + '}';
|
1139
|
+
break;
|
1140
|
+
case 'read-write':
|
1141
|
+
source =
|
1142
|
+
'if(' + N + '(' +
|
1143
|
+
'((/^textarea$/i.test(e.nodeName)&&!e.readOnly&&!e.disabled)||' +
|
1144
|
+
'("|password|text|".includes("|"+e.type+"|")&&!e.readOnly&&!e.disabled))||' +
|
1145
|
+
'(e.hasAttribute("contenteditable")||(s.doc.designMode=="on"))' +
|
1146
|
+
')){' + source + '}';
|
1147
|
+
break;
|
1148
|
+
case 'placeholder-shown':
|
1149
|
+
source =
|
1150
|
+
'if(' + N + '(' +
|
1151
|
+
'(/^input|textarea$/i.test(e.nodeName))&&e.hasAttribute("placeholder")&&' +
|
1152
|
+
'("|textarea|password|number|search|email|text|tel|url|".includes("|"+e.type+"|"))&&' +
|
1153
|
+
'(!s.match(":focus",e))' +
|
1154
|
+
')){' + source + '}';
|
1155
|
+
break;
|
1156
|
+
case 'default':
|
1157
|
+
source =
|
1158
|
+
'if(' + N + '("form" in e && e.form)){' +
|
1159
|
+
'var x=0;n=[];' +
|
1160
|
+
'if(e.type=="image")n=e.form.getElementsByTagName("input");' +
|
1161
|
+
'if(e.type=="submit")n=e.form.elements;' +
|
1162
|
+
'while(n[x]&&e!==n[x]){' +
|
1163
|
+
'if(n[x].type=="image")break;' +
|
1164
|
+
'if(n[x].type=="submit")break;' +
|
1165
|
+
'x++;' +
|
1166
|
+
'}' +
|
1167
|
+
'}' +
|
1168
|
+
'if(' + N + '(e.form&&(e===n[x]&&"|image|submit|".includes("|"+e.type+"|"))||' +
|
1169
|
+
'((/^option$/i.test(e.nodeName))&&e.defaultSelected)||' +
|
1170
|
+
'(("|radio|checkbox|".includes("|"+e.type+"|"))&&e.defaultChecked)' +
|
1171
|
+
')){' + source + '}';
|
1172
|
+
break;
|
1173
|
+
default:
|
1174
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1175
|
+
break;
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
// *** input pseudo-classes (for form validation)
|
1180
|
+
// :checked, :indeterminate, :valid, :invalid, :in-range, :out-of-range, :required, :optional
|
1181
|
+
else if ((match = selector.match(Patterns.inputvalue))) {
|
1182
|
+
match[1] = match[1].toLowerCase();
|
1183
|
+
switch (match[1]) {
|
1184
|
+
case 'checked':
|
1185
|
+
source = 'if(' + N + '(/^input$/i.test(e.nodeName)&&' +
|
1186
|
+
'("|radio|checkbox|".includes("|"+e.type+"|")&&e.checked)||' +
|
1187
|
+
'(/^option$/i.test(e.nodeName)&&(e.selected||e.checked))' +
|
1188
|
+
')){' + source + '}';
|
1189
|
+
break;
|
1190
|
+
case 'indeterminate':
|
1191
|
+
source =
|
1192
|
+
'if(' + N + '(/^progress$/i.test(e.nodeName)&&!e.hasAttribute("value"))||' +
|
1193
|
+
'(/^input$/i.test(e.nodeName)&&("checkbox"==e.type&&e.indeterminate)||' +
|
1194
|
+
'("radio"==e.type&&e.name&&!s.first("input[name="+e.name+"]:checked",e.form))' +
|
1195
|
+
')){' + source + '}';
|
1196
|
+
break;
|
1197
|
+
case 'required':
|
1198
|
+
source =
|
1199
|
+
'if(' + N +
|
1200
|
+
'(/^input|select|textarea$/i.test(e.nodeName)&&e.required)' +
|
1201
|
+
'){' + source + '}';
|
1202
|
+
break;
|
1203
|
+
case 'optional':
|
1204
|
+
source =
|
1205
|
+
'if(' + N +
|
1206
|
+
'(/^input|select|textarea$/i.test(e.nodeName)&&!e.required)' +
|
1207
|
+
'){' + source + '}';
|
1208
|
+
break;
|
1209
|
+
case 'invalid':
|
1210
|
+
source =
|
1211
|
+
'if(' + N + '((' +
|
1212
|
+
'(/^form$/i.test(e.nodeName)&&!e.noValidate)||' +
|
1213
|
+
'(e.willValidate&&!e.formNoValidate))&&!e.checkValidity())||' +
|
1214
|
+
'(/^fieldset$/i.test(e.nodeName)&&s.first(":invalid",e))' +
|
1215
|
+
'){' + source + '}';
|
1216
|
+
break;
|
1217
|
+
case 'valid':
|
1218
|
+
source =
|
1219
|
+
'if(' + N + '((' +
|
1220
|
+
'(/^form$/i.test(e.nodeName)&&!e.noValidate)||' +
|
1221
|
+
'(e.willValidate&&!e.formNoValidate))&&e.checkValidity())||' +
|
1222
|
+
'(/^fieldset$/i.test(e.nodeName)&&s.first(":valid",e))' +
|
1223
|
+
'){' + source + '}';
|
1224
|
+
break;
|
1225
|
+
case 'in-range':
|
1226
|
+
source =
|
1227
|
+
'if(' + N +
|
1228
|
+
'(/^input$/i.test(e.nodeName))&&' +
|
1229
|
+
'(e.willValidate&&!e.formNoValidate)&&' +
|
1230
|
+
'(!e.validity.rangeUnderflow&&!e.validity.rangeOverflow)&&' +
|
1231
|
+
'("|date|datetime-local|month|number|range|time|week|".includes("|"+e.type+"|"))&&' +
|
1232
|
+
'("range"==e.type||e.getAttribute("min")||e.getAttribute("max"))' +
|
1233
|
+
'){' + source + '}';
|
1234
|
+
break;
|
1235
|
+
case 'out-of-range':
|
1236
|
+
source =
|
1237
|
+
'if(' + N +
|
1238
|
+
'(/^input$/i.test(e.nodeName))&&' +
|
1239
|
+
'(e.willValidate&&!e.formNoValidate)&&' +
|
1240
|
+
'(e.validity.rangeUnderflow||e.validity.rangeOverflow)&&' +
|
1241
|
+
'("|date|datetime-local|month|number|range|time|week|".includes("|"+e.type+"|"))&&' +
|
1242
|
+
'("range"==e.type||e.getAttribute("min")||e.getAttribute("max"))' +
|
1243
|
+
'){' + source + '}';
|
1244
|
+
break;
|
1245
|
+
default:
|
1246
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1247
|
+
break;
|
1248
|
+
}
|
1249
|
+
}
|
1250
|
+
|
1251
|
+
// allow pseudo-elements starting with single colon (:)
|
1252
|
+
// :after, :before, :first-letter, :first-line
|
1253
|
+
else if ((match = selector.match(Patterns.pseudo_sng))) {
|
1254
|
+
source = 'if(' + D + '(e.nodeType==1)){' + source + '}';
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
// allow pseudo-elements starting with double colon (::)
|
1258
|
+
// ::after, ::before, ::marker, ::placeholder, ::inactive-selection, ::selection, ::-webkit-<foo-bar>
|
1259
|
+
else if ((match = selector.match(Patterns.pseudo_dbl))) {
|
1260
|
+
source = 'if(' + D + '(e.nodeType==1)){' + source + '}';
|
1261
|
+
}
|
1262
|
+
|
1263
|
+
else {
|
1264
|
+
|
1265
|
+
// reset
|
1266
|
+
expr = false;
|
1267
|
+
status = false;
|
1268
|
+
|
1269
|
+
// process registered selector extensions
|
1270
|
+
for (expr in Selectors) {
|
1271
|
+
if ((match = selector.match(Selectors[expr].Expression))) {
|
1272
|
+
result = Selectors[expr].Callback(match, source, mode, callback);
|
1273
|
+
if ('match' in result) { match = result.match; }
|
1274
|
+
vars = result.modvar;
|
1275
|
+
if (mode) {
|
1276
|
+
// add extra select() vars
|
1277
|
+
vars && S_VARS.indexOf(vars) < 0 && (S_VARS[S_VARS.length] = vars);
|
1278
|
+
} else {
|
1279
|
+
// add extra match() vars
|
1280
|
+
vars && M_VARS.indexOf(vars) < 0 && (M_VARS[M_VARS.length] = vars);
|
1281
|
+
}
|
1282
|
+
// extension source code
|
1283
|
+
source = result.source;
|
1284
|
+
// extension status code
|
1285
|
+
status = result.status;
|
1286
|
+
// break on status error
|
1287
|
+
if (status) { break; }
|
1288
|
+
}
|
1289
|
+
}
|
1290
|
+
|
1291
|
+
if (!status) {
|
1292
|
+
emit('unknown pseudo-class selector \'' + selector + '\'');
|
1293
|
+
return '';
|
1294
|
+
}
|
1295
|
+
|
1296
|
+
if (!expr) {
|
1297
|
+
emit('unknown token in selector \'' + selector + '\'');
|
1298
|
+
return '';
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
}
|
1302
|
+
break;
|
1303
|
+
|
1304
|
+
default:
|
1305
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1306
|
+
break;
|
1307
|
+
|
1308
|
+
}
|
1309
|
+
// end of switch symbol
|
1310
|
+
|
1311
|
+
if (!match) {
|
1312
|
+
emit('\'' + selector_string + '\'' + qsInvalid);
|
1313
|
+
return '';
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
// pop last component
|
1317
|
+
selector = match.pop();
|
1318
|
+
}
|
1319
|
+
// end of while selector
|
1320
|
+
|
1321
|
+
return source;
|
1322
|
+
},
|
1323
|
+
|
1324
|
+
// replace ':scope' pseudo-class with element references
|
1325
|
+
makeref =
|
1326
|
+
function(selectors, element) {
|
1327
|
+
return selectors.replace(/:scope/i,
|
1328
|
+
element.nodeName.toLowerCase() +
|
1329
|
+
(element.id ? '#' + element.id : '') +
|
1330
|
+
(element.className ? '.' + element.classList[0] : ''));
|
1331
|
+
},
|
1332
|
+
|
1333
|
+
// equivalent of w3c 'closest' method
|
1334
|
+
ancestor =
|
1335
|
+
function _closest(selectors, element, callback) {
|
1336
|
+
|
1337
|
+
if ((/:scope/i).test(selectors)) {
|
1338
|
+
selectors = makeref(selectors, element);
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
while (element) {
|
1342
|
+
if (match(selectors, element, callback)) break;
|
1343
|
+
element = element.parentElement;
|
1344
|
+
}
|
1345
|
+
return element;
|
1346
|
+
},
|
1347
|
+
|
1348
|
+
match_assert =
|
1349
|
+
function(f, element, callback) {
|
1350
|
+
for (var i = 0, l = f.length, r = false; l > i; ++i)
|
1351
|
+
f[i](element, callback, null, false) && (r = true);
|
1352
|
+
return r;
|
1353
|
+
},
|
1354
|
+
|
1355
|
+
match_collect =
|
1356
|
+
function(selectors, callback) {
|
1357
|
+
for (var i = 0, l = selectors.length, f = [ ]; l > i; ++i)
|
1358
|
+
f[i] = compile(selectors[i], false, callback);
|
1359
|
+
return { factory: f };
|
1360
|
+
},
|
1361
|
+
|
1362
|
+
// equivalent of w3c 'matches' method
|
1363
|
+
match =
|
1364
|
+
function _matches(selectors, element, callback) {
|
1365
|
+
|
1366
|
+
var expressions, parsed;
|
1367
|
+
|
1368
|
+
if (element && matchResolvers[selectors]) {
|
1369
|
+
return match_assert(matchResolvers[selectors].factory, element, callback);
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
lastMatched = selectors;
|
1373
|
+
|
1374
|
+
// arguments validation
|
1375
|
+
if (arguments.length === 0) {
|
1376
|
+
emit(qsNotArgs, TypeError);
|
1377
|
+
return Config.VERBOSITY ? undefined : false;
|
1378
|
+
} else if (arguments[0] === '') {
|
1379
|
+
emit('\'\'' + qsInvalid);
|
1380
|
+
return Config.VERBOSITY ? undefined : false;
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
// input NULL or UNDEFINED
|
1384
|
+
if (typeof selectors != 'string') {
|
1385
|
+
selectors = '' + selectors;
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
if ((/:scope/i).test(selectors)) {
|
1389
|
+
selectors = makeref(selectors, element);
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
// normalize input string
|
1393
|
+
parsed = selectors.
|
1394
|
+
replace(/\x00|\\$/g, '\ufffd').
|
1395
|
+
replace(REX.CombineWSP, '\x20').
|
1396
|
+
replace(REX.PseudosWSP, '$1').
|
1397
|
+
replace(REX.TabCharWSP, '\t').
|
1398
|
+
replace(REX.CommaGroup, ',').
|
1399
|
+
replace(REX.TrimSpaces, '');
|
1400
|
+
|
1401
|
+
// parse, validate and split possible compound selectors
|
1402
|
+
if ((expressions = parsed.match(reValidator)) && expressions.join('') == parsed) {
|
1403
|
+
expressions = parsed.match(REX.SplitGroup);
|
1404
|
+
if (parsed[parsed.length - 1] == ',') {
|
1405
|
+
emit(qsInvalid);
|
1406
|
+
return Config.VERBOSITY ? undefined : false;
|
1407
|
+
}
|
1408
|
+
} else {
|
1409
|
+
emit('\'' + selectors + '\'' + qsInvalid);
|
1410
|
+
return Config.VERBOSITY ? undefined : false;
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
matchResolvers[selectors] = match_collect(expressions, callback);
|
1414
|
+
|
1415
|
+
return match_assert(matchResolvers[selectors].factory, element, callback);
|
1416
|
+
},
|
1417
|
+
|
1418
|
+
// equivalent of w3c 'querySelector' method
|
1419
|
+
first =
|
1420
|
+
function _querySelector(selectors, context, callback) {
|
1421
|
+
if (arguments.length === 0) {
|
1422
|
+
emit(qsNotArgs, TypeError);
|
1423
|
+
}
|
1424
|
+
return select(selectors, context,
|
1425
|
+
typeof callback == 'function' ?
|
1426
|
+
function firstMatch(element) {
|
1427
|
+
callback(element);
|
1428
|
+
return false;
|
1429
|
+
} :
|
1430
|
+
function firstMatch() {
|
1431
|
+
return false;
|
1432
|
+
}
|
1433
|
+
)[0] || null;
|
1434
|
+
},
|
1435
|
+
|
1436
|
+
// equivalent of w3c 'querySelectorAll' method
|
1437
|
+
select =
|
1438
|
+
function _querySelectorAll(selectors, context, callback) {
|
1439
|
+
|
1440
|
+
var expressions, nodes, parsed, resolver;
|
1441
|
+
|
1442
|
+
context || (context = doc);
|
1443
|
+
|
1444
|
+
if (selectors) {
|
1445
|
+
if ((resolver = selectResolvers[selectors])) {
|
1446
|
+
if (resolver.context === context && resolver.callback === callback) {
|
1447
|
+
var f = resolver.factory, h = resolver.htmlset, n = resolver.nodeset, nodes = [ ];
|
1448
|
+
if (n.length > 1) {
|
1449
|
+
for (var i = 0, l = n.length, list; l > i; ++i) {
|
1450
|
+
list = compat[n[i][0]](context, n[i].slice(1))();
|
1451
|
+
if (f[i] !== null) {
|
1452
|
+
f[i](list, callback, context, nodes);
|
1453
|
+
} else {
|
1454
|
+
nodes = nodes.concat(list);
|
1455
|
+
}
|
1456
|
+
}
|
1457
|
+
if (l > 1 && nodes.length > 1) {
|
1458
|
+
nodes.sort(documentOrder);
|
1459
|
+
hasDupes && (nodes = unique(nodes));
|
1460
|
+
}
|
1461
|
+
} else {
|
1462
|
+
if (f[0]) {
|
1463
|
+
nodes = f[0](h[0](), callback, context, nodes);
|
1464
|
+
} else {
|
1465
|
+
nodes = h[0]();
|
1466
|
+
}
|
1467
|
+
}
|
1468
|
+
return typeof callback == 'function' ?
|
1469
|
+
concatCall(nodes, callback) : nodes;
|
1470
|
+
}
|
1471
|
+
}
|
1472
|
+
}
|
1473
|
+
|
1474
|
+
lastSelected = selectors;
|
1475
|
+
|
1476
|
+
// arguments validation
|
1477
|
+
if (arguments.length === 0) {
|
1478
|
+
emit(qsNotArgs, TypeError);
|
1479
|
+
return Config.VERBOSITY ? undefined : none;
|
1480
|
+
} else if (arguments[0] === '') {
|
1481
|
+
emit('\'\'' + qsInvalid);
|
1482
|
+
return Config.VERBOSITY ? undefined : none;
|
1483
|
+
} else if (lastContext !== context) {
|
1484
|
+
lastContext = switchContext(context);
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
// input NULL or UNDEFINED
|
1488
|
+
if (typeof selectors != 'string') {
|
1489
|
+
selectors = '' + selectors;
|
1490
|
+
}
|
1491
|
+
|
1492
|
+
if ((/:scope/i).test(selectors)) {
|
1493
|
+
selectors = makeref(selectors, context);
|
1494
|
+
}
|
1495
|
+
|
1496
|
+
// normalize input string
|
1497
|
+
parsed = selectors.
|
1498
|
+
replace(/\x00|\\$/g, '\ufffd').
|
1499
|
+
replace(REX.CombineWSP, '\x20').
|
1500
|
+
replace(REX.PseudosWSP, '$1').
|
1501
|
+
replace(REX.TabCharWSP, '\t').
|
1502
|
+
replace(REX.CommaGroup, ',').
|
1503
|
+
replace(REX.TrimSpaces, '');
|
1504
|
+
|
1505
|
+
// parse, validate and split possible compound selectors
|
1506
|
+
if ((expressions = parsed.match(reValidator)) && expressions.join('') == parsed) {
|
1507
|
+
expressions = parsed.match(REX.SplitGroup);
|
1508
|
+
if (parsed[parsed.length - 1] == ',') {
|
1509
|
+
emit(qsInvalid);
|
1510
|
+
return Config.VERBOSITY ? undefined : false;
|
1511
|
+
}
|
1512
|
+
} else {
|
1513
|
+
emit('\'' + selectors + '\'' + qsInvalid);
|
1514
|
+
return Config.VERBOSITY ? undefined : false;
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
// save/reuse factory and closure collection
|
1518
|
+
selectResolvers[selectors] = collect(expressions, context, callback);
|
1519
|
+
|
1520
|
+
nodes = selectResolvers[selectors].results;
|
1521
|
+
|
1522
|
+
return typeof callback == 'function' ?
|
1523
|
+
concatCall(nodes, callback) : nodes;
|
1524
|
+
},
|
1525
|
+
|
1526
|
+
// optimize selectors avoiding duplicated checks
|
1527
|
+
optimize =
|
1528
|
+
function(selector, token) {
|
1529
|
+
var index = token.index,
|
1530
|
+
length = token[1].length + token[2].length;
|
1531
|
+
return selector.slice(0, index) +
|
1532
|
+
(' >+~'.indexOf(selector.charAt(index - 1)) > -1 ?
|
1533
|
+
(':['.indexOf(selector.charAt(index + length + 1)) > -1 ?
|
1534
|
+
'*' : '') : '') + selector.slice(index + length - (token[1] == '*' ? 1 : 0));
|
1535
|
+
},
|
1536
|
+
|
1537
|
+
// prepare factory resolvers and closure collections
|
1538
|
+
collect =
|
1539
|
+
function(selectors, context, callback) {
|
1540
|
+
var i, l, token, seen = { }, factory = [ ], htmlset = [ ], nodeset = [ ], results = [ ];
|
1541
|
+
for (i = 0, l = selectors.length; l > i; ++i) {
|
1542
|
+
if (!seen[selectors[i]] && (seen[selectors[i]] = true)) {
|
1543
|
+
|
1544
|
+
if ((token = selectors[i].match(reOptimizer)) && token[1] != ':') {
|
1545
|
+
token[1] || (token[1] = '*');
|
1546
|
+
selectors[i] = optimize(selectors[i], token);
|
1547
|
+
} else {
|
1548
|
+
token = ['', '*', '*'];
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
nodeset[i] = token[1] + token[2];
|
1552
|
+
htmlset[i] = compat[token[1]](context, token[2]);
|
1553
|
+
factory[i] = compile(selectors[i], true, null);
|
1554
|
+
|
1555
|
+
if (factory[i]) {
|
1556
|
+
factory[i](htmlset[i](), callback, context, results);
|
1557
|
+
} else {
|
1558
|
+
results = results.concat(htmlset[i]());
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
}
|
1562
|
+
}
|
1563
|
+
|
1564
|
+
if (l > 1) {
|
1565
|
+
results.sort(documentOrder);
|
1566
|
+
hasDupes && (results = unique(results));
|
1567
|
+
}
|
1568
|
+
|
1569
|
+
return {
|
1570
|
+
callback: callback,
|
1571
|
+
context: context,
|
1572
|
+
factory: factory,
|
1573
|
+
htmlset: htmlset,
|
1574
|
+
nodeset: nodeset,
|
1575
|
+
results: results
|
1576
|
+
};
|
1577
|
+
},
|
1578
|
+
|
1579
|
+
// QSA placeholders to native references
|
1580
|
+
_closest, _matches, _querySelector, _querySelectorAll,
|
1581
|
+
|
1582
|
+
// overrides QSA methods (only for browsers)
|
1583
|
+
install =
|
1584
|
+
function(all) {
|
1585
|
+
|
1586
|
+
// save native QSA references
|
1587
|
+
_closest = Element.prototype.closest;
|
1588
|
+
_matches = Element.prototype.matches;
|
1589
|
+
_querySelector = Document.prototype.querySelector;
|
1590
|
+
_querySelectorAll = Document.prototype.querySelectorAll;
|
1591
|
+
|
1592
|
+
Element.prototype.closest =
|
1593
|
+
function closest() {
|
1594
|
+
var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;
|
1595
|
+
if (!('nodeType' in this)) { emit('\'closest\' called on an object that does not implement interface ' + ctor + '.', TypeError); }
|
1596
|
+
return arguments.length < 1 ? ancestor.apply(this, [ ]) :
|
1597
|
+
arguments.length < 2 ? ancestor.apply(this, [ arguments[0], this ]) :
|
1598
|
+
ancestor.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);
|
1599
|
+
};
|
1600
|
+
|
1601
|
+
Element.prototype.matches =
|
1602
|
+
function matches() {
|
1603
|
+
var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;
|
1604
|
+
if (!('nodeType' in this)) { emit('\'matches\' called on an object that does not implement interface ' + ctor + '.', TypeError); }
|
1605
|
+
return arguments.length < 1 ? match.apply(this, [ ]) :
|
1606
|
+
arguments.length < 2 ? match.apply(this, [ arguments[0], this ]) :
|
1607
|
+
match.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);
|
1608
|
+
};
|
1609
|
+
|
1610
|
+
Element.prototype.querySelector =
|
1611
|
+
Document.prototype.querySelector =
|
1612
|
+
DocumentFragment.prototype.querySelector =
|
1613
|
+
function querySelector() {
|
1614
|
+
var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;
|
1615
|
+
if (!('nodeType' in this)) { emit('\'querySelector\' called on an object that does not implement interface ' + ctor + '.', TypeError); }
|
1616
|
+
return arguments.length < 1 ? first.apply(this, [ ]) :
|
1617
|
+
arguments.length < 2 ? first.apply(this, [ arguments[0], this ]) :
|
1618
|
+
first.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);
|
1619
|
+
};
|
1620
|
+
|
1621
|
+
Element.prototype.querySelectorAll =
|
1622
|
+
Document.prototype.querySelectorAll =
|
1623
|
+
DocumentFragment.prototype.querySelectorAll =
|
1624
|
+
function querySelectorAll() {
|
1625
|
+
var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;
|
1626
|
+
if (!('nodeType' in this)) { emit('\'querySelectorAll\' called on an object that does not implement interface ' + ctor + '.', TypeError); }
|
1627
|
+
return arguments.length < 1 ? select.apply(this, [ ]) :
|
1628
|
+
arguments.length < 2 ? select.apply(this, [ arguments[0], this ]) :
|
1629
|
+
select.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);
|
1630
|
+
};
|
1631
|
+
|
1632
|
+
if (all) {
|
1633
|
+
document.addEventListener('load', function(e) {
|
1634
|
+
var c, d, r, s, t = e.target;
|
1635
|
+
if (/iframe/i.test(t.nodeName)) {
|
1636
|
+
c = '(' + Export + ')(this, ' + Factory + ');'; d = t.contentDocument;
|
1637
|
+
s = d.createElement('script'); s.textContent = c + 'NW.Dom.install()';
|
1638
|
+
r = d.documentElement; r.removeChild(r.insertBefore(s, r.firstChild));
|
1639
|
+
}
|
1640
|
+
}, true);
|
1641
|
+
}
|
1642
|
+
|
1643
|
+
},
|
1644
|
+
|
1645
|
+
// restore QSA methods (only for browsers)
|
1646
|
+
uninstall =
|
1647
|
+
function() {
|
1648
|
+
// reinstates QSA native references
|
1649
|
+
Element.prototype.closest = _closest;
|
1650
|
+
Element.prototype.matches = _matches;
|
1651
|
+
Element.prototype.querySelector =
|
1652
|
+
Document.prototype.querySelector =
|
1653
|
+
DocumentFragment.prototype.querySelector = _querySelector;
|
1654
|
+
Element.prototype.querySelectorAll =
|
1655
|
+
Document.prototype.querySelectorAll =
|
1656
|
+
DocumentFragment.prototype.querySelectorAll = _querySelectorAll;
|
1657
|
+
},
|
1658
|
+
|
1659
|
+
// empty set
|
1660
|
+
none = Array(),
|
1661
|
+
|
1662
|
+
// context
|
1663
|
+
lastContext,
|
1664
|
+
|
1665
|
+
// selector
|
1666
|
+
lastMatched,
|
1667
|
+
lastSelected,
|
1668
|
+
|
1669
|
+
// cached lambdas
|
1670
|
+
matchLambdas = { },
|
1671
|
+
selectLambdas = { },
|
1672
|
+
|
1673
|
+
// cached resolvers
|
1674
|
+
matchResolvers = { },
|
1675
|
+
selectResolvers = { },
|
1676
|
+
|
1677
|
+
// passed to resolvers
|
1678
|
+
Snapshot = {
|
1679
|
+
|
1680
|
+
doc: doc,
|
1681
|
+
from: doc,
|
1682
|
+
root: root,
|
1683
|
+
|
1684
|
+
byTag: byTag,
|
1685
|
+
|
1686
|
+
first: first,
|
1687
|
+
match: match,
|
1688
|
+
|
1689
|
+
ancestor: ancestor,
|
1690
|
+
|
1691
|
+
nthOfType: nthOfType,
|
1692
|
+
nthElement: nthElement,
|
1693
|
+
|
1694
|
+
hasAttributeNS: hasAttributeNS
|
1695
|
+
},
|
1696
|
+
|
1697
|
+
// public exported methods/objects
|
1698
|
+
Dom = {
|
1699
|
+
|
1700
|
+
// exported cache objects
|
1701
|
+
|
1702
|
+
lastMatched: lastMatched,
|
1703
|
+
lastSelected: lastSelected,
|
1704
|
+
|
1705
|
+
matchLambdas: matchLambdas,
|
1706
|
+
selectLambdas: selectLambdas,
|
1707
|
+
|
1708
|
+
matchResolvers: matchResolvers,
|
1709
|
+
selectResolvers: selectResolvers,
|
1710
|
+
|
1711
|
+
// exported compiler macros
|
1712
|
+
|
1713
|
+
CFG: CFG,
|
1714
|
+
|
1715
|
+
M_BODY: M_BODY,
|
1716
|
+
S_BODY: S_BODY,
|
1717
|
+
M_TEST: M_TEST,
|
1718
|
+
S_TEST: S_TEST,
|
1719
|
+
|
1720
|
+
// exported engine methods
|
1721
|
+
|
1722
|
+
byId: byId,
|
1723
|
+
byTag: byTag,
|
1724
|
+
byClass: byClass,
|
1725
|
+
|
1726
|
+
match: match,
|
1727
|
+
first: first,
|
1728
|
+
select: select,
|
1729
|
+
closest: ancestor,
|
1730
|
+
|
1731
|
+
compile: compile,
|
1732
|
+
configure: configure,
|
1733
|
+
|
1734
|
+
emit: emit,
|
1735
|
+
Config: Config,
|
1736
|
+
Snapshot: Snapshot,
|
1737
|
+
|
1738
|
+
Version: version,
|
1739
|
+
|
1740
|
+
install: install,
|
1741
|
+
uninstall: uninstall,
|
1742
|
+
|
1743
|
+
Operators: Operators,
|
1744
|
+
Selectors: Selectors,
|
1745
|
+
|
1746
|
+
// register a new selector combinator symbol and its related function resolver
|
1747
|
+
registerCombinator:
|
1748
|
+
function(combinator, resolver) {
|
1749
|
+
var i = 0, l = combinator.length, symbol;
|
1750
|
+
for (; l > i; ++i) {
|
1751
|
+
if (combinator[i] != '=') {
|
1752
|
+
symbol = combinator[i];
|
1753
|
+
break;
|
1754
|
+
}
|
1755
|
+
}
|
1756
|
+
if (CFG.combinators.indexOf(symbol) < 0) {
|
1757
|
+
CFG.combinators = CFG.combinators.replace('](', symbol + '](');
|
1758
|
+
CFG.combinators = CFG.combinators.replace('])', symbol + '])');
|
1759
|
+
Combinators[combinator] = resolver;
|
1760
|
+
setIdentifierSyntax();
|
1761
|
+
} else {
|
1762
|
+
console.warn('Warning: the \'' + combinator + '\' combinator is already registered.');
|
1763
|
+
}
|
1764
|
+
},
|
1765
|
+
|
1766
|
+
// register a new attribute operator symbol and its related function resolver
|
1767
|
+
registerOperator:
|
1768
|
+
function(operator, resolver) {
|
1769
|
+
var i = 0, l = operator.length, symbol;
|
1770
|
+
for (; l > i; ++i) {
|
1771
|
+
if (operator[i] != '=') {
|
1772
|
+
symbol = operator[i];
|
1773
|
+
break;
|
1774
|
+
}
|
1775
|
+
}
|
1776
|
+
if (CFG.operators.indexOf(symbol) < 0 && !Operators[operator]) {
|
1777
|
+
CFG.operators = CFG.operators.replace(']=', symbol + ']=');
|
1778
|
+
Operators[operator] = resolver;
|
1779
|
+
setIdentifierSyntax();
|
1780
|
+
} else {
|
1781
|
+
console.warn('Warning: the \'' + operator + '\' operator is already registered.');
|
1782
|
+
}
|
1783
|
+
},
|
1784
|
+
|
1785
|
+
// register a new selector symbol and its related function resolver
|
1786
|
+
registerSelector:
|
1787
|
+
function(name, rexp, func) {
|
1788
|
+
Selectors[name] || (Selectors[name] = {
|
1789
|
+
Expression: rexp,
|
1790
|
+
Callback: func
|
1791
|
+
});
|
1792
|
+
}
|
1793
|
+
|
1794
|
+
};
|
1795
|
+
|
1796
|
+
initialize(doc);
|
1797
|
+
|
1798
|
+
return Dom;
|
1799
|
+
|
1800
|
+
});
|