@peter.naydenov/cuts 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +5 -0
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/findInstructions.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/main.js.html +1 -1
- package/coverage/lcov-report/src/methods/hide.js.html +1 -1
- package/coverage/lcov-report/src/methods/index.html +1 -1
- package/coverage/lcov-report/src/methods/jump.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpBack.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpsReset.js.html +1 -1
- package/coverage/lcov-report/src/methods/listShortcuts.js.html +1 -1
- package/coverage/lcov-report/src/methods/setScenes.js.html +1 -1
- package/coverage/lcov-report/src/methods/show.js.html +1 -1
- package/coverage/lcov-report/src/setInstruction.js.html +1 -1
- package/package.json +14 -18
- package/playwright.config.js +13 -0
- package/test/01-findPosition.test.js +119 -0
- package/test/02-cuts.test.js +412 -0
- package/test-e2e/01-general.test.js +290 -0
- package/test-e2e/index.html +30 -0
- package/test-e2e/node_modules/.package-lock.json +584 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js +36 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js +983 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js +267 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/_metadata.json +44 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js +223 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/package.json +3 -0
- package/test-e2e/node_modules/.vite/deps/vue.js +2 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js +8579 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/test-e2e/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/test-e2e/node_modules/@babel/parser/LICENSE +19 -0
- package/test-e2e/node_modules/@babel/parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js +14582 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/parser/package.json +50 -0
- package/test-e2e/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/test-e2e/node_modules/@babel/types/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/types/README.md +19 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js +582 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.flow +2650 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/package.json +39 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/test-e2e/node_modules/@oxc-project/types/LICENSE +22 -0
- package/test-e2e/node_modules/@oxc-project/types/README.md +3 -0
- package/test-e2e/node_modules/@oxc-project/types/package.json +26 -0
- package/test-e2e/node_modules/@oxc-project/types/types.d.ts +1912 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/CODE_OF_CONDUCT.md +128 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/Changelog.md +88 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/README.md +294 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/SECURITY.md +18 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/base.css +224 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/block-navigation.js +87 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/favicon.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/index.html +116 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/main.js.html +592 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.js +2 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sorter.js +196 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov.info +246 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46509-1760816753149-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46510-1760816753116-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/notice-desk.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/package.json +64 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/rollup.config.js +37 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/src/main.js +168 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/tsconfig.json +11 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/API.md +939 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CODE_OF_CONDUCT.md +84 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CONTRIBUTING.md +476 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Changelog.md +217 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/How.to.create.plugins.md +929 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Migration.guide.md +176 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README-v.2.x.x.md +375 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README.md +900 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/eslint.config.js +80 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-COTh6lXR.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-DOkKC3NI.js +53 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/bg.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.ico +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.svg +5 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/html.meta.json.gz +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/index.html +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/index.html +126 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/javascript.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/jsconfig.json +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/package.json +66 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/rollup.config.js +40 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/shortcuts.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/main.js +302 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_normalizeWithPlugins.js +49 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_readShortcutWithPlugins.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_setupPlugin.js +93 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_systemAction.js +33 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/changeContext.js +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/index.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/listShortcuts.js +34 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/load.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/unload.js +38 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_listenDOM.js +165 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_normalizeShortcutName.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_readClickEvent.js +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_registerShortcutEvents.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_defaults.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_listenDOM.js +127 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_registerShortcutEvents.js +147 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/index.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_listenDOM.js +154 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_registerShortcutEvents.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/index.js +71 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_listenDOM.js +186 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_normalizeShortcutName.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_readKeyEvent.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_registerShortcutEvents.js +57 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_specialChars.js +43 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_listenDOM.js +141 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_registerShortcutEvents.js +50 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/index.js +61 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/style.css +97 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/01-general.test.js +275 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/02-key.test.js +473 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/03-click.test.js +596 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/04-form.test.js +327 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/05-hover.test.js +463 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/06-scroll.test.js +374 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/Block.jsx +15 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/setup.js +18 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/style.css +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/wait.js +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/tsconfig.json +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vite.config.js +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vitest.config.js +23 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/fixtures/example.json +5 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/commands.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component-index.html +12 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component.js +27 -0
- package/{cypress.config.mjs → test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress.config.js} +2 -3
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/index.html +13 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/package.json +43 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/readme.md +233 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/rollup.config.js +42 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/App.vue +44 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/assets/vue.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/components/HelloWorld.vue +26 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/main.js +101 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/style.css +90 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/test/01_general.cy.js +98 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/vite.config.js +7 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/README.md +77 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/README.md +278 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.d.mts +120 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.mjs +1745 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/package.json +65 -0
- package/test-e2e/node_modules/@vue/compiler-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-core/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6888 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5835 -0
- package/test-e2e/node_modules/@vue/compiler-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-core/package.json +58 -0
- package/test-e2e/node_modules/@vue/compiler-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-dom/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +934 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +6644 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +690 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +6814 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-dom/package.json +57 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/README.md +79 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +25619 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +487 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +50833 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/package.json +67 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/test-e2e/node_modules/@vue/reactivity/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/reactivity/README.md +19 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.js +2033 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.d.ts +756 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +2031 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1990 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.js +2087 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/index.js +7 -0
- package/test-e2e/node_modules/@vue/reactivity/package.json +55 -0
- package/test-e2e/node_modules/@vue/runtime-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-core/README.md +28 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +8718 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1866 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8647 -0
- package/test-e2e/node_modules/@vue/runtime-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-core/package.json +52 -0
- package/test-e2e/node_modules/@vue/runtime-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-dom/README.md +13 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1946 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1450 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12794 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1985 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +12847 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/package.json +60 -0
- package/test-e2e/node_modules/@vue/server-renderer/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/server-renderer/README.md +178 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +1159 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +8627 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1097 -0
- package/test-e2e/node_modules/@vue/server-renderer/index.js +7 -0
- package/test-e2e/node_modules/@vue/server-renderer/package.json +55 -0
- package/test-e2e/node_modules/@vue/shared/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/shared/README.md +3 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.js +612 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.d.ts +334 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.esm-bundler.js +536 -0
- package/test-e2e/node_modules/@vue/shared/index.js +7 -0
- package/test-e2e/node_modules/@vue/shared/package.json +47 -0
- package/test-e2e/node_modules/ask-for-promise/LICENSE +21 -0
- package/test-e2e/node_modules/ask-for-promise/README.md +278 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.cjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.esm.mjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.umd.js +1 -0
- package/test-e2e/node_modules/ask-for-promise/package.json +77 -0
- package/test-e2e/node_modules/ask-for-promise/src/askForPromise.js +277 -0
- package/test-e2e/node_modules/ask-for-promise/types/index.d.ts +18 -0
- package/test-e2e/node_modules/csstype/LICENSE +19 -0
- package/test-e2e/node_modules/csstype/README.md +291 -0
- package/test-e2e/node_modules/csstype/index.d.ts +22569 -0
- package/test-e2e/node_modules/csstype/index.js.flow +6863 -0
- package/test-e2e/node_modules/csstype/package.json +70 -0
- package/test-e2e/node_modules/detect-libc/LICENSE +201 -0
- package/test-e2e/node_modules/detect-libc/README.md +163 -0
- package/test-e2e/node_modules/detect-libc/index.d.ts +14 -0
- package/test-e2e/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/test-e2e/node_modules/detect-libc/lib/elf.js +39 -0
- package/test-e2e/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/test-e2e/node_modules/detect-libc/lib/process.js +24 -0
- package/test-e2e/node_modules/detect-libc/package.json +44 -0
- package/test-e2e/node_modules/entities/LICENSE +11 -0
- package/test-e2e/node_modules/entities/decode.d.ts +3 -0
- package/test-e2e/node_modules/entities/decode.js +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js +92 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js +138 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js +131 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/package.json +3 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js +554 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js +88 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js +134 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js +107 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/package.json +3 -0
- package/test-e2e/node_modules/entities/escape.d.ts +3 -0
- package/test-e2e/node_modules/entities/escape.js +3 -0
- package/test-e2e/node_modules/entities/package.json +120 -0
- package/test-e2e/node_modules/entities/readme.md +143 -0
- package/test-e2e/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/test-e2e/node_modules/entities/src/decode.ts +685 -0
- package/test-e2e/node_modules/entities/src/encode.ts +93 -0
- package/test-e2e/node_modules/entities/src/escape.ts +161 -0
- package/test-e2e/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-html.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/test-e2e/node_modules/entities/src/index.ts +187 -0
- package/test-e2e/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/test-e2e/node_modules/entities/src/internal/decode-shared.ts +30 -0
- package/test-e2e/node_modules/entities/src/internal/encode-shared.ts +121 -0
- package/test-e2e/node_modules/estree-walker/CHANGELOG.md +92 -0
- package/test-e2e/node_modules/estree-walker/LICENSE +7 -0
- package/test-e2e/node_modules/estree-walker/README.md +48 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/test-e2e/node_modules/estree-walker/package.json +37 -0
- package/test-e2e/node_modules/estree-walker/src/async.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/index.js +35 -0
- package/test-e2e/node_modules/estree-walker/src/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/src/sync.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/walker.js +61 -0
- package/test-e2e/node_modules/estree-walker/types/async.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/index.d.ts +56 -0
- package/test-e2e/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
- package/test-e2e/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/test-e2e/node_modules/fdir/LICENSE +7 -0
- package/test-e2e/node_modules/fdir/README.md +91 -0
- package/test-e2e/node_modules/fdir/dist/index.cjs +588 -0
- package/test-e2e/node_modules/fdir/dist/index.d.cts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.d.mts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.mjs +570 -0
- package/test-e2e/node_modules/fdir/package.json +103 -0
- package/test-e2e/node_modules/lightningcss/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss/README.md +105 -0
- package/test-e2e/node_modules/lightningcss/node/ast.d.ts +9892 -0
- package/test-e2e/node_modules/lightningcss/node/ast.js.flow +10539 -0
- package/test-e2e/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
- package/test-e2e/node_modules/lightningcss/node/composeVisitors.js +450 -0
- package/test-e2e/node_modules/lightningcss/node/flags.js +28 -0
- package/test-e2e/node_modules/lightningcss/node/index.d.ts +494 -0
- package/test-e2e/node_modules/lightningcss/node/index.js +59 -0
- package/test-e2e/node_modules/lightningcss/node/index.js.flow +843 -0
- package/test-e2e/node_modules/lightningcss/node/index.mjs +4 -0
- package/test-e2e/node_modules/lightningcss/node/targets.d.ts +40 -0
- package/test-e2e/node_modules/lightningcss/node/targets.js.flow +39 -0
- package/test-e2e/node_modules/lightningcss/package.json +110 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/README.md +1 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/package.json +34 -0
- package/test-e2e/node_modules/magic-string/LICENSE +7 -0
- package/test-e2e/node_modules/magic-string/README.md +325 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js +1594 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs +1588 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js +1682 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
- package/test-e2e/node_modules/magic-string/package.json +67 -0
- package/test-e2e/node_modules/nanoid/LICENSE +20 -0
- package/test-e2e/node_modules/nanoid/README.md +39 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.cjs +69 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/async/index.cjs +71 -0
- package/test-e2e/node_modules/nanoid/async/index.d.ts +56 -0
- package/test-e2e/node_modules/nanoid/async/index.js +35 -0
- package/test-e2e/node_modules/nanoid/async/index.native.js +26 -0
- package/test-e2e/node_modules/nanoid/async/package.json +12 -0
- package/test-e2e/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/test-e2e/node_modules/nanoid/index.browser.cjs +72 -0
- package/test-e2e/node_modules/nanoid/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/index.cjs +85 -0
- package/test-e2e/node_modules/nanoid/index.d.cts +91 -0
- package/test-e2e/node_modules/nanoid/index.d.ts +91 -0
- package/test-e2e/node_modules/nanoid/index.js +45 -0
- package/test-e2e/node_modules/nanoid/nanoid.js +1 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.js +21 -0
- package/test-e2e/node_modules/nanoid/non-secure/package.json +6 -0
- package/test-e2e/node_modules/nanoid/package.json +89 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.cjs +7 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/test-e2e/node_modules/picocolors/LICENSE +15 -0
- package/test-e2e/node_modules/picocolors/README.md +21 -0
- package/test-e2e/node_modules/picocolors/package.json +25 -0
- package/test-e2e/node_modules/picocolors/picocolors.browser.js +4 -0
- package/test-e2e/node_modules/picocolors/picocolors.d.ts +5 -0
- package/test-e2e/node_modules/picocolors/picocolors.js +75 -0
- package/test-e2e/node_modules/picocolors/types.d.ts +51 -0
- package/test-e2e/node_modules/picomatch/LICENSE +21 -0
- package/test-e2e/node_modules/picomatch/README.md +749 -0
- package/test-e2e/node_modules/picomatch/index.js +17 -0
- package/test-e2e/node_modules/picomatch/lib/constants.js +184 -0
- package/test-e2e/node_modules/picomatch/lib/parse.js +1386 -0
- package/test-e2e/node_modules/picomatch/lib/picomatch.js +349 -0
- package/test-e2e/node_modules/picomatch/lib/scan.js +391 -0
- package/test-e2e/node_modules/picomatch/lib/utils.js +72 -0
- package/test-e2e/node_modules/picomatch/package.json +82 -0
- package/test-e2e/node_modules/picomatch/posix.js +3 -0
- package/test-e2e/node_modules/postcss/LICENSE +20 -0
- package/test-e2e/node_modules/postcss/README.md +28 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.js +25 -0
- package/test-e2e/node_modules/postcss/lib/comment.d.ts +67 -0
- package/test-e2e/node_modules/postcss/lib/comment.js +13 -0
- package/test-e2e/node_modules/postcss/lib/container.d.ts +478 -0
- package/test-e2e/node_modules/postcss/lib/container.js +447 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/test-e2e/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/test-e2e/node_modules/postcss/lib/declaration.js +24 -0
- package/test-e2e/node_modules/postcss/lib/document.d.ts +68 -0
- package/test-e2e/node_modules/postcss/lib/document.js +33 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.js +54 -0
- package/test-e2e/node_modules/postcss/lib/input.d.ts +226 -0
- package/test-e2e/node_modules/postcss/lib/input.js +273 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.js +550 -0
- package/test-e2e/node_modules/postcss/lib/list.d.ts +60 -0
- package/test-e2e/node_modules/postcss/lib/list.js +58 -0
- package/test-e2e/node_modules/postcss/lib/map-generator.js +376 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.js +137 -0
- package/test-e2e/node_modules/postcss/lib/node.d.ts +555 -0
- package/test-e2e/node_modules/postcss/lib/node.js +449 -0
- package/test-e2e/node_modules/postcss/lib/parse.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/parse.js +42 -0
- package/test-e2e/node_modules/postcss/lib/parser.js +611 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.ts +456 -0
- package/test-e2e/node_modules/postcss/lib/postcss.js +101 -0
- package/test-e2e/node_modules/postcss/lib/postcss.mjs +30 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.js +145 -0
- package/test-e2e/node_modules/postcss/lib/processor.d.ts +114 -0
- package/test-e2e/node_modules/postcss/lib/processor.js +67 -0
- package/test-e2e/node_modules/postcss/lib/result.d.ts +204 -0
- package/test-e2e/node_modules/postcss/lib/result.js +42 -0
- package/test-e2e/node_modules/postcss/lib/root.d.ts +86 -0
- package/test-e2e/node_modules/postcss/lib/root.js +61 -0
- package/test-e2e/node_modules/postcss/lib/rule.d.ts +126 -0
- package/test-e2e/node_modules/postcss/lib/rule.js +27 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.js +353 -0
- package/test-e2e/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/stringify.js +11 -0
- package/test-e2e/node_modules/postcss/lib/symbols.js +5 -0
- package/test-e2e/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/test-e2e/node_modules/postcss/lib/tokenize.js +266 -0
- package/test-e2e/node_modules/postcss/lib/warn-once.js +13 -0
- package/test-e2e/node_modules/postcss/lib/warning.d.ts +146 -0
- package/test-e2e/node_modules/postcss/lib/warning.js +37 -0
- package/test-e2e/node_modules/postcss/package.json +88 -0
- package/test-e2e/node_modules/rolldown/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/README.md +11 -0
- package/test-e2e/node_modules/rolldown/bin/cli.mjs +2 -0
- package/test-e2e/node_modules/rolldown/dist/cli.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/cli.mjs +1191 -0
- package/test-e2e/node_modules/rolldown/dist/config.d.mts +14 -0
- package/test-e2e/node_modules/rolldown/dist/config.mjs +4 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.mjs +320 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.d.mts +196 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.mjs +386 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/index.d.mts +4 -0
- package/test-e2e/node_modules/rolldown/dist/index.mjs +50 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts +1872 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-s-V_wTpj.mjs +582 -0
- package/test-e2e/node_modules/rolldown/dist/shared/bindingify-input-options-DYpBf1OG.mjs +2235 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-BaEBnHl3.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-DYemMpPL.d.mts +37 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts +3795 -0
- package/test-e2e/node_modules/rolldown/dist/shared/error-w0u7biK-.mjs +85 -0
- package/test-e2e/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/test-e2e/node_modules/rolldown/dist/shared/load-config-pmbgQdFU.mjs +120 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
- package/test-e2e/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
- package/test-e2e/node_modules/rolldown/dist/shared/normalize-string-or-regex-CVvpepxa.mjs +66 -0
- package/test-e2e/node_modules/rolldown/dist/shared/parse-BywQARUG.mjs +74 -0
- package/test-e2e/node_modules/rolldown/dist/shared/prompt-BYQIwEjg.mjs +845 -0
- package/test-e2e/node_modules/rolldown/dist/shared/resolve-tsconfig-CNjJwuKB.mjs +113 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-BLMDGLfI.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-build-DtGk-m96.mjs +3321 -0
- package/test-e2e/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts +149 -0
- package/test-e2e/node_modules/rolldown/dist/shared/watch-Cixa7HbR.mjs +374 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.d.mts +376 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.mjs +2414 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/README.md +83 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/rolldown/package.json +153 -0
- package/test-e2e/node_modules/source-map-js/LICENSE +28 -0
- package/test-e2e/node_modules/source-map-js/README.md +765 -0
- package/test-e2e/node_modules/source-map-js/lib/array-set.js +121 -0
- package/test-e2e/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/test-e2e/node_modules/source-map-js/lib/base64.js +67 -0
- package/test-e2e/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/test-e2e/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/test-e2e/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.js +413 -0
- package/test-e2e/node_modules/source-map-js/lib/util.js +594 -0
- package/test-e2e/node_modules/source-map-js/package.json +71 -0
- package/test-e2e/node_modules/source-map-js/source-map.d.ts +104 -0
- package/test-e2e/node_modules/source-map-js/source-map.js +8 -0
- package/test-e2e/node_modules/tinyglobby/LICENSE +21 -0
- package/test-e2e/node_modules/tinyglobby/README.md +25 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/test-e2e/node_modules/tinyglobby/package.json +73 -0
- package/test-e2e/node_modules/vite/LICENSE.md +2230 -0
- package/test-e2e/node_modules/vite/README.md +20 -0
- package/test-e2e/node_modules/vite/bin/openChrome.js +68 -0
- package/test-e2e/node_modules/vite/bin/vite.js +79 -0
- package/test-e2e/node_modules/vite/client.d.ts +282 -0
- package/test-e2e/node_modules/vite/dist/client/client.mjs +1235 -0
- package/test-e2e/node_modules/vite/dist/client/env.mjs +18 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build2.js +5378 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/chunk.js +37 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/config.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/dist.js +6719 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/lib.js +371 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/logger.js +322 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/node.js +34785 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/optimizer.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/preview.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/server.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/cli.js +837 -0
- package/test-e2e/node_modules/vite/dist/node/index.d.ts +3867 -0
- package/test-e2e/node_modules/vite/dist/node/index.js +3 -0
- package/test-e2e/node_modules/vite/dist/node/internal.d.ts +2 -0
- package/test-e2e/node_modules/vite/dist/node/internal.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.d.ts +315 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.js +1262 -0
- package/test-e2e/node_modules/vite/misc/false.js +1 -0
- package/test-e2e/node_modules/vite/misc/true.js +1 -0
- package/test-e2e/node_modules/vite/package.json +192 -0
- package/test-e2e/node_modules/vite/types/customEvent.d.ts +79 -0
- package/test-e2e/node_modules/vite/types/hmrPayload.d.ts +80 -0
- package/test-e2e/node_modules/vite/types/hot.d.ts +39 -0
- package/test-e2e/node_modules/vite/types/import-meta.d.ts +5 -0
- package/test-e2e/node_modules/vite/types/importGlob.d.ts +89 -0
- package/test-e2e/node_modules/vite/types/importMeta.d.ts +30 -0
- package/test-e2e/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/test-e2e/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
- package/test-e2e/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
- package/test-e2e/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
- package/test-e2e/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
- package/test-e2e/node_modules/vite/types/metadata.d.ts +47 -0
- package/test-e2e/node_modules/vue/LICENSE +21 -0
- package/test-e2e/node_modules/vue/README.md +58 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.js +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.mjs +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.js +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.mjs +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/package.json +4 -0
- package/test-e2e/node_modules/vue/compiler-sfc/register-ts.js +3 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.js +80 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/test-e2e/node_modules/vue/dist/vue.d.mts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.d.ts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.js +18708 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-bundler.js +71 -0
- package/test-e2e/node_modules/vue/dist/vue.global.js +18588 -0
- package/test-e2e/node_modules/vue/dist/vue.global.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.js +12817 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.js +12871 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.prod.js +7 -0
- package/test-e2e/node_modules/vue/index.js +7 -0
- package/test-e2e/node_modules/vue/index.mjs +1 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.d.ts +25 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.js +15 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.mjs +12 -0
- package/test-e2e/node_modules/vue/jsx-runtime/package.json +5 -0
- package/test-e2e/node_modules/vue/jsx.d.ts +22 -0
- package/test-e2e/node_modules/vue/package.json +112 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.js +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.mjs +1 -0
- package/test-e2e/node_modules/vue/server-renderer/package.json +4 -0
- package/test-e2e/package-lock.json +1164 -0
- package/test-e2e/package.json +17 -0
- package/test-e2e/vite.config.js +17 -0
- package/test-results/.last-run.json +4 -0
- package/vite.config.js +12 -2
- package/vitest.config.js +1 -1
- package/cypress/support/component-index.html +0 -11
- package/test/01-general.cy.js +0 -348
- /package/{test → test-e2e}/blue.vue +0 -0
- /package/{test → test-e2e}/dummy.vue +0 -0
- /package/{test → test-e2e}/gray.vue +0 -0
- /package/{test → test-e2e}/red.vue +0 -0
|
@@ -0,0 +1,1745 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import { createFilter, formatPostcssSourceMap, isCSSRequest, normalizePath, transformWithEsbuild } from "vite";
|
|
4
|
+
import { computed, shallowRef } from "vue";
|
|
5
|
+
import { exactRegex, makeIdFiltersToMatchWithQuery } from "@rolldown/pluginutils";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import crypto from "node:crypto";
|
|
8
|
+
import { isatty } from "node:tty";
|
|
9
|
+
import { formatWithOptions, inspect } from "node:util";
|
|
10
|
+
|
|
11
|
+
//#region package.json
|
|
12
|
+
var version = "6.0.5";
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/compiler.ts
|
|
16
|
+
function resolveCompiler(root) {
|
|
17
|
+
const compiler = tryResolveCompiler(root) || tryResolveCompiler();
|
|
18
|
+
if (!compiler) throw new Error("Failed to resolve vue/compiler-sfc.\n@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.");
|
|
19
|
+
return compiler;
|
|
20
|
+
}
|
|
21
|
+
function tryResolveCompiler(root) {
|
|
22
|
+
const vueMeta = tryRequire("vue/package.json", root);
|
|
23
|
+
if (vueMeta && vueMeta.version.split(".")[0] >= 3) return tryRequire("vue/compiler-sfc", root);
|
|
24
|
+
}
|
|
25
|
+
const _require = createRequire(import.meta.url);
|
|
26
|
+
function tryRequire(id, from) {
|
|
27
|
+
try {
|
|
28
|
+
return from ? _require(_require.resolve(id, { paths: [from] })) : _require(id);
|
|
29
|
+
} catch (e) {}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/utils/query.ts
|
|
34
|
+
function parseVueRequest(id) {
|
|
35
|
+
const [filename, rawQuery] = id.split(`?`, 2);
|
|
36
|
+
const query = Object.fromEntries(new URLSearchParams(rawQuery));
|
|
37
|
+
if (query.vue != null) query.vue = true;
|
|
38
|
+
if (query.index != null) query.index = Number(query.index);
|
|
39
|
+
if (query.raw != null) query.raw = true;
|
|
40
|
+
if (query.url != null) query.url = true;
|
|
41
|
+
if (query.scoped != null) query.scoped = true;
|
|
42
|
+
return {
|
|
43
|
+
filename,
|
|
44
|
+
query
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/utils/descriptorCache.ts
|
|
50
|
+
const cache = /* @__PURE__ */ new Map();
|
|
51
|
+
const hmrCache = /* @__PURE__ */ new Map();
|
|
52
|
+
const prevCache = /* @__PURE__ */ new Map();
|
|
53
|
+
function createDescriptor(filename, source, { root, isProduction, sourceMap, compiler, template, features }, hmr = false) {
|
|
54
|
+
const { descriptor, errors } = compiler.parse(source, {
|
|
55
|
+
filename,
|
|
56
|
+
sourceMap,
|
|
57
|
+
templateParseOptions: template?.compilerOptions
|
|
58
|
+
});
|
|
59
|
+
const normalizedPath = normalizePath(path.relative(root, filename));
|
|
60
|
+
const componentIdGenerator = features?.componentIdGenerator;
|
|
61
|
+
if (componentIdGenerator === "filepath") descriptor.id = getHash(normalizedPath);
|
|
62
|
+
else if (componentIdGenerator === "filepath-source") descriptor.id = getHash(normalizedPath + source);
|
|
63
|
+
else if (typeof componentIdGenerator === "function") descriptor.id = componentIdGenerator(normalizedPath, source, isProduction, getHash);
|
|
64
|
+
else descriptor.id = getHash(normalizedPath + (isProduction ? source : ""));
|
|
65
|
+
(hmr ? hmrCache : cache).set(filename, descriptor);
|
|
66
|
+
return {
|
|
67
|
+
descriptor,
|
|
68
|
+
errors
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function getPrevDescriptor(filename) {
|
|
72
|
+
return prevCache.get(filename);
|
|
73
|
+
}
|
|
74
|
+
function invalidateDescriptor(filename, hmr = false) {
|
|
75
|
+
const _cache = hmr ? hmrCache : cache;
|
|
76
|
+
const prev = _cache.get(filename);
|
|
77
|
+
_cache.delete(filename);
|
|
78
|
+
if (prev) prevCache.set(filename, prev);
|
|
79
|
+
}
|
|
80
|
+
function getDescriptor(filename, options, createIfNotFound = true, hmr = false, code) {
|
|
81
|
+
const _cache = hmr ? hmrCache : cache;
|
|
82
|
+
if (_cache.has(filename)) return _cache.get(filename);
|
|
83
|
+
if (createIfNotFound) {
|
|
84
|
+
const { descriptor, errors } = createDescriptor(filename, code ?? fs.readFileSync(filename, "utf-8"), options, hmr);
|
|
85
|
+
if (errors.length && !hmr) throw errors[0];
|
|
86
|
+
return descriptor;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function getSrcDescriptor(filename, query) {
|
|
90
|
+
if (query.scoped) return cache.get(`${filename}?src=${query.src}`);
|
|
91
|
+
return cache.get(filename);
|
|
92
|
+
}
|
|
93
|
+
function getTempSrcDescriptor(filename, query) {
|
|
94
|
+
return {
|
|
95
|
+
filename,
|
|
96
|
+
id: query.id || "",
|
|
97
|
+
styles: [{
|
|
98
|
+
scoped: query.scoped,
|
|
99
|
+
loc: { start: {
|
|
100
|
+
line: 0,
|
|
101
|
+
column: 0
|
|
102
|
+
} }
|
|
103
|
+
}],
|
|
104
|
+
isTemp: true
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function setSrcDescriptor(filename, entry, scoped) {
|
|
108
|
+
if (scoped) {
|
|
109
|
+
cache.set(`${filename}?src=${entry.id}`, entry);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
cache.set(filename, entry);
|
|
113
|
+
}
|
|
114
|
+
function getHash(text) {
|
|
115
|
+
return crypto.hash("sha256", text, "hex").substring(0, 8);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region ../../node_modules/.pnpm/slash@5.1.0/node_modules/slash/index.js
|
|
120
|
+
function slash(path) {
|
|
121
|
+
if (path.startsWith("\\\\?\\")) return path;
|
|
122
|
+
return path.replace(/\\/g, "/");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/utils/error.ts
|
|
127
|
+
function createRollupError(id, error) {
|
|
128
|
+
const { message, name, stack } = error;
|
|
129
|
+
const rollupError = {
|
|
130
|
+
id,
|
|
131
|
+
plugin: "vue",
|
|
132
|
+
message,
|
|
133
|
+
name,
|
|
134
|
+
stack
|
|
135
|
+
};
|
|
136
|
+
if ("code" in error && error.loc) rollupError.loc = {
|
|
137
|
+
file: id,
|
|
138
|
+
line: error.loc.start.line,
|
|
139
|
+
column: error.loc.start.column
|
|
140
|
+
};
|
|
141
|
+
return rollupError;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/template.ts
|
|
146
|
+
async function transformTemplateAsModule(code, filename, descriptor, options, pluginContext, ssr, customElement) {
|
|
147
|
+
const result = compile(code, filename, descriptor, options, pluginContext, ssr, customElement);
|
|
148
|
+
let returnCode = result.code;
|
|
149
|
+
if (options.devServer && options.devServer.config.server.hmr !== false && !ssr && !options.isProduction) returnCode += `\nimport.meta.hot.accept(({ render }) => {
|
|
150
|
+
__VUE_HMR_RUNTIME__.rerender(${JSON.stringify(descriptor.id)}, render)
|
|
151
|
+
})`;
|
|
152
|
+
return {
|
|
153
|
+
code: returnCode,
|
|
154
|
+
map: result.map
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* transform the template directly in the main SFC module
|
|
159
|
+
*/
|
|
160
|
+
function transformTemplateInMain(code, descriptor, options, pluginContext, ssr, customElement) {
|
|
161
|
+
const result = compile(code, descriptor.filename, descriptor, options, pluginContext, ssr, customElement);
|
|
162
|
+
return {
|
|
163
|
+
...result,
|
|
164
|
+
code: result.code.replace(/\nexport (function|const) (render|ssrRender)/, "\n$1 _sfc_$2")
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function compile(code, filename, descriptor, options, pluginContext, ssr, customElement) {
|
|
168
|
+
resolveScript(descriptor, options, ssr, customElement);
|
|
169
|
+
const result = options.compiler.compileTemplate({
|
|
170
|
+
...resolveTemplateCompilerOptions(descriptor, options, filename, ssr),
|
|
171
|
+
source: code
|
|
172
|
+
});
|
|
173
|
+
if (result.errors.length) result.errors.forEach((error) => pluginContext.error(typeof error === "string" ? {
|
|
174
|
+
id: filename,
|
|
175
|
+
message: error
|
|
176
|
+
} : createRollupError(filename, error)));
|
|
177
|
+
if (result.tips.length) result.tips.forEach((tip) => pluginContext.warn({
|
|
178
|
+
id: filename,
|
|
179
|
+
message: tip
|
|
180
|
+
}));
|
|
181
|
+
return result;
|
|
182
|
+
}
|
|
183
|
+
function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
|
|
184
|
+
const block = descriptor.template;
|
|
185
|
+
if (!block) return;
|
|
186
|
+
const resolvedScript = getResolvedScript(descriptor, ssr);
|
|
187
|
+
const hasScoped = descriptor.styles.some((s) => s.scoped);
|
|
188
|
+
const { id, cssVars } = descriptor;
|
|
189
|
+
let transformAssetUrls = options.template?.transformAssetUrls;
|
|
190
|
+
let assetUrlOptions;
|
|
191
|
+
if (transformAssetUrls === false) {} else if (options.devServer) {
|
|
192
|
+
if (filename.startsWith(options.root)) {
|
|
193
|
+
const devBase = options.devServer.config.base;
|
|
194
|
+
assetUrlOptions = {
|
|
195
|
+
base: (options.devServer.config.server?.origin ?? "") + devBase + slash(path.relative(options.root, path.dirname(filename))),
|
|
196
|
+
includeAbsolute: !!devBase
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
} else assetUrlOptions = { includeAbsolute: true };
|
|
200
|
+
if (transformAssetUrls && typeof transformAssetUrls === "object") if (Object.values(transformAssetUrls).some((val) => Array.isArray(val))) transformAssetUrls = {
|
|
201
|
+
...assetUrlOptions,
|
|
202
|
+
tags: transformAssetUrls
|
|
203
|
+
};
|
|
204
|
+
else transformAssetUrls = {
|
|
205
|
+
...assetUrlOptions,
|
|
206
|
+
...transformAssetUrls
|
|
207
|
+
};
|
|
208
|
+
else transformAssetUrls = assetUrlOptions;
|
|
209
|
+
let preprocessOptions = block.lang && options.template?.preprocessOptions;
|
|
210
|
+
if (block.lang === "pug") preprocessOptions = {
|
|
211
|
+
doctype: "html",
|
|
212
|
+
...preprocessOptions
|
|
213
|
+
};
|
|
214
|
+
const expressionPlugins = options.template?.compilerOptions?.expressionPlugins || [];
|
|
215
|
+
const lang = descriptor.scriptSetup?.lang || descriptor.script?.lang;
|
|
216
|
+
if (lang && /tsx?$/.test(lang) && !expressionPlugins.includes("typescript")) expressionPlugins.push("typescript");
|
|
217
|
+
return {
|
|
218
|
+
...options.template,
|
|
219
|
+
vapor: descriptor.vapor,
|
|
220
|
+
id,
|
|
221
|
+
ast: canReuseAST(options.compiler.version) ? descriptor.template?.ast : void 0,
|
|
222
|
+
filename,
|
|
223
|
+
scoped: hasScoped,
|
|
224
|
+
slotted: descriptor.slotted,
|
|
225
|
+
isProd: options.isProduction,
|
|
226
|
+
inMap: block.src ? void 0 : block.map,
|
|
227
|
+
ssr,
|
|
228
|
+
ssrCssVars: cssVars,
|
|
229
|
+
transformAssetUrls,
|
|
230
|
+
preprocessLang: block.lang === "html" ? void 0 : block.lang,
|
|
231
|
+
preprocessOptions,
|
|
232
|
+
compilerOptions: {
|
|
233
|
+
...options.template?.compilerOptions,
|
|
234
|
+
scopeId: hasScoped ? `data-v-${id}` : void 0,
|
|
235
|
+
bindingMetadata: resolvedScript ? resolvedScript.bindings : void 0,
|
|
236
|
+
expressionPlugins,
|
|
237
|
+
sourceMap: options.sourceMap
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Versions before 3.4.3 have issues when the user has passed additional
|
|
243
|
+
* template parse options e.g. `isCustomElement`.
|
|
244
|
+
*/
|
|
245
|
+
function canReuseAST(version) {
|
|
246
|
+
if (version) {
|
|
247
|
+
const [_, minor, patch] = version.split(".").map(Number);
|
|
248
|
+
if (minor >= 4 && patch >= 3) return true;
|
|
249
|
+
}
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/script.ts
|
|
255
|
+
let clientCache = /* @__PURE__ */ new WeakMap();
|
|
256
|
+
let ssrCache = /* @__PURE__ */ new WeakMap();
|
|
257
|
+
const typeDepToSFCMap = /* @__PURE__ */ new Map();
|
|
258
|
+
function invalidateScript(filename) {
|
|
259
|
+
const desc = cache.get(filename);
|
|
260
|
+
if (desc) {
|
|
261
|
+
clientCache.delete(desc);
|
|
262
|
+
ssrCache.delete(desc);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function getResolvedScript(descriptor, ssr) {
|
|
266
|
+
return (ssr ? ssrCache : clientCache).get(descriptor);
|
|
267
|
+
}
|
|
268
|
+
function setResolvedScript(descriptor, script, ssr) {
|
|
269
|
+
(ssr ? ssrCache : clientCache).set(descriptor, script);
|
|
270
|
+
}
|
|
271
|
+
function clearScriptCache() {
|
|
272
|
+
clientCache = /* @__PURE__ */ new WeakMap();
|
|
273
|
+
ssrCache = /* @__PURE__ */ new WeakMap();
|
|
274
|
+
}
|
|
275
|
+
function isUseInlineTemplate(descriptor, options) {
|
|
276
|
+
return !options.devServer && !options.devToolsEnabled && !!descriptor.scriptSetup && !descriptor.template?.src;
|
|
277
|
+
}
|
|
278
|
+
const scriptIdentifier = `_sfc_main`;
|
|
279
|
+
function resolveScript(descriptor, options, ssr, customElement) {
|
|
280
|
+
if (!descriptor.script && !descriptor.scriptSetup) return null;
|
|
281
|
+
const cached = getResolvedScript(descriptor, ssr);
|
|
282
|
+
if (cached) return cached;
|
|
283
|
+
const resolved = options.compiler.compileScript(descriptor, {
|
|
284
|
+
...options.script,
|
|
285
|
+
id: descriptor.id,
|
|
286
|
+
isProd: options.isProduction,
|
|
287
|
+
inlineTemplate: isUseInlineTemplate(descriptor, options),
|
|
288
|
+
templateOptions: resolveTemplateCompilerOptions(descriptor, options, descriptor.filename, ssr),
|
|
289
|
+
sourceMap: options.sourceMap,
|
|
290
|
+
genDefaultAs: canInlineMain(descriptor, options) ? scriptIdentifier : void 0,
|
|
291
|
+
customElement,
|
|
292
|
+
propsDestructure: options.features?.propsDestructure ?? options.script?.propsDestructure
|
|
293
|
+
});
|
|
294
|
+
if (!options.isProduction && resolved?.deps) {
|
|
295
|
+
for (const [key, sfcs] of typeDepToSFCMap) if (sfcs.has(descriptor.filename) && !resolved.deps.includes(key)) sfcs.delete(descriptor.filename);
|
|
296
|
+
for (const dep of resolved.deps) {
|
|
297
|
+
const existingSet = typeDepToSFCMap.get(dep);
|
|
298
|
+
if (!existingSet) typeDepToSFCMap.set(dep, new Set([descriptor.filename]));
|
|
299
|
+
else existingSet.add(descriptor.filename);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
setResolvedScript(descriptor, resolved, ssr);
|
|
303
|
+
return resolved;
|
|
304
|
+
}
|
|
305
|
+
function canInlineMain(descriptor, options) {
|
|
306
|
+
if (descriptor.script?.src || descriptor.scriptSetup?.src) return false;
|
|
307
|
+
const lang = descriptor.script?.lang || descriptor.scriptSetup?.lang;
|
|
308
|
+
if (!lang || lang === "js") return true;
|
|
309
|
+
if (lang === "ts" && options.devServer) return true;
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
315
|
+
var comma = ",".charCodeAt(0);
|
|
316
|
+
var semicolon = ";".charCodeAt(0);
|
|
317
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
318
|
+
var intToChar = new Uint8Array(64);
|
|
319
|
+
var charToInt = new Uint8Array(128);
|
|
320
|
+
for (let i = 0; i < chars.length; i++) {
|
|
321
|
+
const c = chars.charCodeAt(i);
|
|
322
|
+
intToChar[i] = c;
|
|
323
|
+
charToInt[c] = i;
|
|
324
|
+
}
|
|
325
|
+
function decodeInteger(reader, relative) {
|
|
326
|
+
let value = 0;
|
|
327
|
+
let shift = 0;
|
|
328
|
+
let integer = 0;
|
|
329
|
+
do {
|
|
330
|
+
integer = charToInt[reader.next()];
|
|
331
|
+
value |= (integer & 31) << shift;
|
|
332
|
+
shift += 5;
|
|
333
|
+
} while (integer & 32);
|
|
334
|
+
const shouldNegate = value & 1;
|
|
335
|
+
value >>>= 1;
|
|
336
|
+
if (shouldNegate) value = -2147483648 | -value;
|
|
337
|
+
return relative + value;
|
|
338
|
+
}
|
|
339
|
+
function encodeInteger(builder, num, relative) {
|
|
340
|
+
let delta = num - relative;
|
|
341
|
+
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
342
|
+
do {
|
|
343
|
+
let clamped = delta & 31;
|
|
344
|
+
delta >>>= 5;
|
|
345
|
+
if (delta > 0) clamped |= 32;
|
|
346
|
+
builder.write(intToChar[clamped]);
|
|
347
|
+
} while (delta > 0);
|
|
348
|
+
return num;
|
|
349
|
+
}
|
|
350
|
+
function hasMoreVlq(reader, max) {
|
|
351
|
+
if (reader.pos >= max) return false;
|
|
352
|
+
return reader.peek() !== comma;
|
|
353
|
+
}
|
|
354
|
+
var bufLength = 1024 * 16;
|
|
355
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
356
|
+
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
357
|
+
} } : { decode(buf) {
|
|
358
|
+
let out = "";
|
|
359
|
+
for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
|
|
360
|
+
return out;
|
|
361
|
+
} };
|
|
362
|
+
var StringWriter = class {
|
|
363
|
+
constructor() {
|
|
364
|
+
this.pos = 0;
|
|
365
|
+
this.out = "";
|
|
366
|
+
this.buffer = new Uint8Array(bufLength);
|
|
367
|
+
}
|
|
368
|
+
write(v) {
|
|
369
|
+
const { buffer } = this;
|
|
370
|
+
buffer[this.pos++] = v;
|
|
371
|
+
if (this.pos === bufLength) {
|
|
372
|
+
this.out += td.decode(buffer);
|
|
373
|
+
this.pos = 0;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
flush() {
|
|
377
|
+
const { buffer, out, pos } = this;
|
|
378
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
var StringReader = class {
|
|
382
|
+
constructor(buffer) {
|
|
383
|
+
this.pos = 0;
|
|
384
|
+
this.buffer = buffer;
|
|
385
|
+
}
|
|
386
|
+
next() {
|
|
387
|
+
return this.buffer.charCodeAt(this.pos++);
|
|
388
|
+
}
|
|
389
|
+
peek() {
|
|
390
|
+
return this.buffer.charCodeAt(this.pos);
|
|
391
|
+
}
|
|
392
|
+
indexOf(char) {
|
|
393
|
+
const { buffer, pos } = this;
|
|
394
|
+
const idx = buffer.indexOf(char, pos);
|
|
395
|
+
return idx === -1 ? buffer.length : idx;
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
function decode(mappings) {
|
|
399
|
+
const { length } = mappings;
|
|
400
|
+
const reader = new StringReader(mappings);
|
|
401
|
+
const decoded = [];
|
|
402
|
+
let genColumn = 0;
|
|
403
|
+
let sourcesIndex = 0;
|
|
404
|
+
let sourceLine = 0;
|
|
405
|
+
let sourceColumn = 0;
|
|
406
|
+
let namesIndex = 0;
|
|
407
|
+
do {
|
|
408
|
+
const semi = reader.indexOf(";");
|
|
409
|
+
const line = [];
|
|
410
|
+
let sorted = true;
|
|
411
|
+
let lastCol = 0;
|
|
412
|
+
genColumn = 0;
|
|
413
|
+
while (reader.pos < semi) {
|
|
414
|
+
let seg;
|
|
415
|
+
genColumn = decodeInteger(reader, genColumn);
|
|
416
|
+
if (genColumn < lastCol) sorted = false;
|
|
417
|
+
lastCol = genColumn;
|
|
418
|
+
if (hasMoreVlq(reader, semi)) {
|
|
419
|
+
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
420
|
+
sourceLine = decodeInteger(reader, sourceLine);
|
|
421
|
+
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
422
|
+
if (hasMoreVlq(reader, semi)) {
|
|
423
|
+
namesIndex = decodeInteger(reader, namesIndex);
|
|
424
|
+
seg = [
|
|
425
|
+
genColumn,
|
|
426
|
+
sourcesIndex,
|
|
427
|
+
sourceLine,
|
|
428
|
+
sourceColumn,
|
|
429
|
+
namesIndex
|
|
430
|
+
];
|
|
431
|
+
} else seg = [
|
|
432
|
+
genColumn,
|
|
433
|
+
sourcesIndex,
|
|
434
|
+
sourceLine,
|
|
435
|
+
sourceColumn
|
|
436
|
+
];
|
|
437
|
+
} else seg = [genColumn];
|
|
438
|
+
line.push(seg);
|
|
439
|
+
reader.pos++;
|
|
440
|
+
}
|
|
441
|
+
if (!sorted) sort(line);
|
|
442
|
+
decoded.push(line);
|
|
443
|
+
reader.pos = semi + 1;
|
|
444
|
+
} while (reader.pos <= length);
|
|
445
|
+
return decoded;
|
|
446
|
+
}
|
|
447
|
+
function sort(line) {
|
|
448
|
+
line.sort(sortComparator$1);
|
|
449
|
+
}
|
|
450
|
+
function sortComparator$1(a, b) {
|
|
451
|
+
return a[0] - b[0];
|
|
452
|
+
}
|
|
453
|
+
function encode(decoded) {
|
|
454
|
+
const writer = new StringWriter();
|
|
455
|
+
let sourcesIndex = 0;
|
|
456
|
+
let sourceLine = 0;
|
|
457
|
+
let sourceColumn = 0;
|
|
458
|
+
let namesIndex = 0;
|
|
459
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
460
|
+
const line = decoded[i];
|
|
461
|
+
if (i > 0) writer.write(semicolon);
|
|
462
|
+
if (line.length === 0) continue;
|
|
463
|
+
let genColumn = 0;
|
|
464
|
+
for (let j = 0; j < line.length; j++) {
|
|
465
|
+
const segment = line[j];
|
|
466
|
+
if (j > 0) writer.write(comma);
|
|
467
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
468
|
+
if (segment.length === 1) continue;
|
|
469
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
470
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
471
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
472
|
+
if (segment.length === 4) continue;
|
|
473
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return writer.flush();
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
481
|
+
const schemeRegex = /^[\w+.-]+:\/\//;
|
|
482
|
+
/**
|
|
483
|
+
* Matches the parts of a URL:
|
|
484
|
+
* 1. Scheme, including ":", guaranteed.
|
|
485
|
+
* 2. User/password, including "@", optional.
|
|
486
|
+
* 3. Host, guaranteed.
|
|
487
|
+
* 4. Port, including ":", optional.
|
|
488
|
+
* 5. Path, including "/", optional.
|
|
489
|
+
* 6. Query, including "?", optional.
|
|
490
|
+
* 7. Hash, including "#", optional.
|
|
491
|
+
*/
|
|
492
|
+
const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
493
|
+
/**
|
|
494
|
+
* File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start
|
|
495
|
+
* with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).
|
|
496
|
+
*
|
|
497
|
+
* 1. Host, optional.
|
|
498
|
+
* 2. Path, which may include "/", guaranteed.
|
|
499
|
+
* 3. Query, including "?", optional.
|
|
500
|
+
* 4. Hash, including "#", optional.
|
|
501
|
+
*/
|
|
502
|
+
const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
503
|
+
function isAbsoluteUrl(input) {
|
|
504
|
+
return schemeRegex.test(input);
|
|
505
|
+
}
|
|
506
|
+
function isSchemeRelativeUrl(input) {
|
|
507
|
+
return input.startsWith("//");
|
|
508
|
+
}
|
|
509
|
+
function isAbsolutePath(input) {
|
|
510
|
+
return input.startsWith("/");
|
|
511
|
+
}
|
|
512
|
+
function isFileUrl(input) {
|
|
513
|
+
return input.startsWith("file:");
|
|
514
|
+
}
|
|
515
|
+
function isRelative(input) {
|
|
516
|
+
return /^[.?#]/.test(input);
|
|
517
|
+
}
|
|
518
|
+
function parseAbsoluteUrl(input) {
|
|
519
|
+
const match = urlRegex.exec(input);
|
|
520
|
+
return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || "");
|
|
521
|
+
}
|
|
522
|
+
function parseFileUrl(input) {
|
|
523
|
+
const match = fileRegex.exec(input);
|
|
524
|
+
const path = match[2];
|
|
525
|
+
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match[3] || "", match[4] || "");
|
|
526
|
+
}
|
|
527
|
+
function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
528
|
+
return {
|
|
529
|
+
scheme,
|
|
530
|
+
user,
|
|
531
|
+
host,
|
|
532
|
+
port,
|
|
533
|
+
path,
|
|
534
|
+
query,
|
|
535
|
+
hash,
|
|
536
|
+
type: 7
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function parseUrl(input) {
|
|
540
|
+
if (isSchemeRelativeUrl(input)) {
|
|
541
|
+
const url = parseAbsoluteUrl("http:" + input);
|
|
542
|
+
url.scheme = "";
|
|
543
|
+
url.type = 6;
|
|
544
|
+
return url;
|
|
545
|
+
}
|
|
546
|
+
if (isAbsolutePath(input)) {
|
|
547
|
+
const url = parseAbsoluteUrl("http://foo.com" + input);
|
|
548
|
+
url.scheme = "";
|
|
549
|
+
url.host = "";
|
|
550
|
+
url.type = 5;
|
|
551
|
+
return url;
|
|
552
|
+
}
|
|
553
|
+
if (isFileUrl(input)) return parseFileUrl(input);
|
|
554
|
+
if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);
|
|
555
|
+
const url = parseAbsoluteUrl("http://foo.com/" + input);
|
|
556
|
+
url.scheme = "";
|
|
557
|
+
url.host = "";
|
|
558
|
+
url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
|
|
559
|
+
return url;
|
|
560
|
+
}
|
|
561
|
+
function stripPathFilename(path) {
|
|
562
|
+
if (path.endsWith("/..")) return path;
|
|
563
|
+
const index = path.lastIndexOf("/");
|
|
564
|
+
return path.slice(0, index + 1);
|
|
565
|
+
}
|
|
566
|
+
function mergePaths(url, base) {
|
|
567
|
+
normalizePath$1(base, base.type);
|
|
568
|
+
if (url.path === "/") url.path = base.path;
|
|
569
|
+
else url.path = stripPathFilename(base.path) + url.path;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* The path can have empty directories "//", unneeded parents "foo/..", or current directory
|
|
573
|
+
* "foo/.". We need to normalize to a standard representation.
|
|
574
|
+
*/
|
|
575
|
+
function normalizePath$1(url, type) {
|
|
576
|
+
const rel = type <= 4;
|
|
577
|
+
const pieces = url.path.split("/");
|
|
578
|
+
let pointer = 1;
|
|
579
|
+
let positive = 0;
|
|
580
|
+
let addTrailingSlash = false;
|
|
581
|
+
for (let i = 1; i < pieces.length; i++) {
|
|
582
|
+
const piece = pieces[i];
|
|
583
|
+
if (!piece) {
|
|
584
|
+
addTrailingSlash = true;
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
addTrailingSlash = false;
|
|
588
|
+
if (piece === ".") continue;
|
|
589
|
+
if (piece === "..") {
|
|
590
|
+
if (positive) {
|
|
591
|
+
addTrailingSlash = true;
|
|
592
|
+
positive--;
|
|
593
|
+
pointer--;
|
|
594
|
+
} else if (rel) pieces[pointer++] = piece;
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
pieces[pointer++] = piece;
|
|
598
|
+
positive++;
|
|
599
|
+
}
|
|
600
|
+
let path = "";
|
|
601
|
+
for (let i = 1; i < pointer; i++) path += "/" + pieces[i];
|
|
602
|
+
if (!path || addTrailingSlash && !path.endsWith("/..")) path += "/";
|
|
603
|
+
url.path = path;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Attempts to resolve `input` URL/path relative to `base`.
|
|
607
|
+
*/
|
|
608
|
+
function resolve(input, base) {
|
|
609
|
+
if (!input && !base) return "";
|
|
610
|
+
const url = parseUrl(input);
|
|
611
|
+
let inputType = url.type;
|
|
612
|
+
if (base && inputType !== 7) {
|
|
613
|
+
const baseUrl = parseUrl(base);
|
|
614
|
+
const baseType = baseUrl.type;
|
|
615
|
+
switch (inputType) {
|
|
616
|
+
case 1: url.hash = baseUrl.hash;
|
|
617
|
+
case 2: url.query = baseUrl.query;
|
|
618
|
+
case 3:
|
|
619
|
+
case 4: mergePaths(url, baseUrl);
|
|
620
|
+
case 5:
|
|
621
|
+
url.user = baseUrl.user;
|
|
622
|
+
url.host = baseUrl.host;
|
|
623
|
+
url.port = baseUrl.port;
|
|
624
|
+
case 6: url.scheme = baseUrl.scheme;
|
|
625
|
+
}
|
|
626
|
+
if (baseType > inputType) inputType = baseType;
|
|
627
|
+
}
|
|
628
|
+
normalizePath$1(url, inputType);
|
|
629
|
+
const queryHash = url.query + url.hash;
|
|
630
|
+
switch (inputType) {
|
|
631
|
+
case 2:
|
|
632
|
+
case 3: return queryHash;
|
|
633
|
+
case 4: {
|
|
634
|
+
const path = url.path.slice(1);
|
|
635
|
+
if (!path) return queryHash || ".";
|
|
636
|
+
if (isRelative(base || input) && !isRelative(path)) return "./" + path + queryHash;
|
|
637
|
+
return path + queryHash;
|
|
638
|
+
}
|
|
639
|
+
case 5: return url.path + queryHash;
|
|
640
|
+
default: return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
646
|
+
function stripFilename(path) {
|
|
647
|
+
if (!path) return "";
|
|
648
|
+
const index = path.lastIndexOf("/");
|
|
649
|
+
return path.slice(0, index + 1);
|
|
650
|
+
}
|
|
651
|
+
function resolver(mapUrl, sourceRoot) {
|
|
652
|
+
const from = stripFilename(mapUrl);
|
|
653
|
+
const prefix = sourceRoot ? sourceRoot + "/" : "";
|
|
654
|
+
return (source) => resolve(prefix + (source || ""), from);
|
|
655
|
+
}
|
|
656
|
+
var COLUMN$1 = 0;
|
|
657
|
+
function maybeSort(mappings, owned) {
|
|
658
|
+
const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
|
|
659
|
+
if (unsortedIndex === mappings.length) return mappings;
|
|
660
|
+
if (!owned) mappings = mappings.slice();
|
|
661
|
+
for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) mappings[i] = sortSegments(mappings[i], owned);
|
|
662
|
+
return mappings;
|
|
663
|
+
}
|
|
664
|
+
function nextUnsortedSegmentLine(mappings, start) {
|
|
665
|
+
for (let i = start; i < mappings.length; i++) if (!isSorted(mappings[i])) return i;
|
|
666
|
+
return mappings.length;
|
|
667
|
+
}
|
|
668
|
+
function isSorted(line) {
|
|
669
|
+
for (let j = 1; j < line.length; j++) if (line[j][COLUMN$1] < line[j - 1][COLUMN$1]) return false;
|
|
670
|
+
return true;
|
|
671
|
+
}
|
|
672
|
+
function sortSegments(line, owned) {
|
|
673
|
+
if (!owned) line = line.slice();
|
|
674
|
+
return line.sort(sortComparator);
|
|
675
|
+
}
|
|
676
|
+
function sortComparator(a, b) {
|
|
677
|
+
return a[COLUMN$1] - b[COLUMN$1];
|
|
678
|
+
}
|
|
679
|
+
function memoizedState() {
|
|
680
|
+
return {
|
|
681
|
+
lastKey: -1,
|
|
682
|
+
lastNeedle: -1,
|
|
683
|
+
lastIndex: -1
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
function parse(map) {
|
|
687
|
+
return typeof map === "string" ? JSON.parse(map) : map;
|
|
688
|
+
}
|
|
689
|
+
var TraceMap = class {
|
|
690
|
+
constructor(map, mapUrl) {
|
|
691
|
+
const isString = typeof map === "string";
|
|
692
|
+
if (!isString && map._decodedMemo) return map;
|
|
693
|
+
const parsed = parse(map);
|
|
694
|
+
const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
695
|
+
this.version = version;
|
|
696
|
+
this.file = file;
|
|
697
|
+
this.names = names || [];
|
|
698
|
+
this.sourceRoot = sourceRoot;
|
|
699
|
+
this.sources = sources;
|
|
700
|
+
this.sourcesContent = sourcesContent;
|
|
701
|
+
this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
702
|
+
const resolve = resolver(mapUrl, sourceRoot);
|
|
703
|
+
this.resolvedSources = sources.map(resolve);
|
|
704
|
+
const { mappings } = parsed;
|
|
705
|
+
if (typeof mappings === "string") {
|
|
706
|
+
this._encoded = mappings;
|
|
707
|
+
this._decoded = void 0;
|
|
708
|
+
} else if (Array.isArray(mappings)) {
|
|
709
|
+
this._encoded = void 0;
|
|
710
|
+
this._decoded = maybeSort(mappings, isString);
|
|
711
|
+
} else if (parsed.sections) throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`);
|
|
712
|
+
else throw new Error(`invalid source map: ${JSON.stringify(parsed)}`);
|
|
713
|
+
this._decodedMemo = memoizedState();
|
|
714
|
+
this._bySources = void 0;
|
|
715
|
+
this._bySourceMemos = void 0;
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
function cast$1(map) {
|
|
719
|
+
return map;
|
|
720
|
+
}
|
|
721
|
+
function decodedMappings(map) {
|
|
722
|
+
var _a;
|
|
723
|
+
return (_a = cast$1(map))._decoded || (_a._decoded = decode(cast$1(map)._encoded));
|
|
724
|
+
}
|
|
725
|
+
function eachMapping(map, cb) {
|
|
726
|
+
const decoded = decodedMappings(map);
|
|
727
|
+
const { names, resolvedSources } = map;
|
|
728
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
729
|
+
const line = decoded[i];
|
|
730
|
+
for (let j = 0; j < line.length; j++) {
|
|
731
|
+
const seg = line[j];
|
|
732
|
+
const generatedLine = i + 1;
|
|
733
|
+
const generatedColumn = seg[0];
|
|
734
|
+
let source = null;
|
|
735
|
+
let originalLine = null;
|
|
736
|
+
let originalColumn = null;
|
|
737
|
+
let name = null;
|
|
738
|
+
if (seg.length !== 1) {
|
|
739
|
+
source = resolvedSources[seg[1]];
|
|
740
|
+
originalLine = seg[2] + 1;
|
|
741
|
+
originalColumn = seg[3];
|
|
742
|
+
}
|
|
743
|
+
if (seg.length === 5) name = names[seg[4]];
|
|
744
|
+
cb({
|
|
745
|
+
generatedLine,
|
|
746
|
+
generatedColumn,
|
|
747
|
+
source,
|
|
748
|
+
originalLine,
|
|
749
|
+
originalColumn,
|
|
750
|
+
name
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
//#endregion
|
|
757
|
+
//#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
758
|
+
var SetArray = class {
|
|
759
|
+
constructor() {
|
|
760
|
+
this._indexes = { __proto__: null };
|
|
761
|
+
this.array = [];
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
function cast(set) {
|
|
765
|
+
return set;
|
|
766
|
+
}
|
|
767
|
+
function get(setarr, key) {
|
|
768
|
+
return cast(setarr)._indexes[key];
|
|
769
|
+
}
|
|
770
|
+
function put(setarr, key) {
|
|
771
|
+
const index = get(setarr, key);
|
|
772
|
+
if (index !== void 0) return index;
|
|
773
|
+
const { array, _indexes: indexes } = cast(setarr);
|
|
774
|
+
return indexes[key] = array.push(key) - 1;
|
|
775
|
+
}
|
|
776
|
+
var COLUMN = 0;
|
|
777
|
+
var SOURCES_INDEX = 1;
|
|
778
|
+
var SOURCE_LINE = 2;
|
|
779
|
+
var SOURCE_COLUMN = 3;
|
|
780
|
+
var NAMES_INDEX = 4;
|
|
781
|
+
var NO_NAME = -1;
|
|
782
|
+
var GenMapping = class {
|
|
783
|
+
constructor({ file, sourceRoot } = {}) {
|
|
784
|
+
this._names = new SetArray();
|
|
785
|
+
this._sources = new SetArray();
|
|
786
|
+
this._sourcesContent = [];
|
|
787
|
+
this._mappings = [];
|
|
788
|
+
this.file = file;
|
|
789
|
+
this.sourceRoot = sourceRoot;
|
|
790
|
+
this._ignoreList = new SetArray();
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
function cast2(map) {
|
|
794
|
+
return map;
|
|
795
|
+
}
|
|
796
|
+
function addMapping(map, mapping) {
|
|
797
|
+
return addMappingInternal(false, map, mapping);
|
|
798
|
+
}
|
|
799
|
+
function toDecodedMap(map) {
|
|
800
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList } = cast2(map);
|
|
801
|
+
removeEmptyFinalLines(mappings);
|
|
802
|
+
return {
|
|
803
|
+
version: 3,
|
|
804
|
+
file: map.file || void 0,
|
|
805
|
+
names: names.array,
|
|
806
|
+
sourceRoot: map.sourceRoot || void 0,
|
|
807
|
+
sources: sources.array,
|
|
808
|
+
sourcesContent,
|
|
809
|
+
mappings,
|
|
810
|
+
ignoreList: ignoreList.array
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
function toEncodedMap(map) {
|
|
814
|
+
const decoded = toDecodedMap(map);
|
|
815
|
+
return Object.assign({}, decoded, { mappings: encode(decoded.mappings) });
|
|
816
|
+
}
|
|
817
|
+
function fromMap(input) {
|
|
818
|
+
const map = new TraceMap(input);
|
|
819
|
+
const gen = new GenMapping({
|
|
820
|
+
file: map.file,
|
|
821
|
+
sourceRoot: map.sourceRoot
|
|
822
|
+
});
|
|
823
|
+
putAll(cast2(gen)._names, map.names);
|
|
824
|
+
putAll(cast2(gen)._sources, map.sources);
|
|
825
|
+
cast2(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);
|
|
826
|
+
cast2(gen)._mappings = decodedMappings(map);
|
|
827
|
+
if (map.ignoreList) putAll(cast2(gen)._ignoreList, map.ignoreList);
|
|
828
|
+
return gen;
|
|
829
|
+
}
|
|
830
|
+
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
831
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map);
|
|
832
|
+
const line = getIndex(mappings, genLine);
|
|
833
|
+
const index = getColumnIndex(line, genColumn);
|
|
834
|
+
if (!source) {
|
|
835
|
+
if (skipable && skipSourceless(line, index)) return;
|
|
836
|
+
return insert(line, index, [genColumn]);
|
|
837
|
+
}
|
|
838
|
+
assert(sourceLine);
|
|
839
|
+
assert(sourceColumn);
|
|
840
|
+
const sourcesIndex = put(sources, source);
|
|
841
|
+
const namesIndex = name ? put(names, name) : NO_NAME;
|
|
842
|
+
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
|
|
843
|
+
if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) return;
|
|
844
|
+
return insert(line, index, name ? [
|
|
845
|
+
genColumn,
|
|
846
|
+
sourcesIndex,
|
|
847
|
+
sourceLine,
|
|
848
|
+
sourceColumn,
|
|
849
|
+
namesIndex
|
|
850
|
+
] : [
|
|
851
|
+
genColumn,
|
|
852
|
+
sourcesIndex,
|
|
853
|
+
sourceLine,
|
|
854
|
+
sourceColumn
|
|
855
|
+
]);
|
|
856
|
+
}
|
|
857
|
+
function assert(_val) {}
|
|
858
|
+
function getIndex(arr, index) {
|
|
859
|
+
for (let i = arr.length; i <= index; i++) arr[i] = [];
|
|
860
|
+
return arr[index];
|
|
861
|
+
}
|
|
862
|
+
function getColumnIndex(line, genColumn) {
|
|
863
|
+
let index = line.length;
|
|
864
|
+
for (let i = index - 1; i >= 0; index = i--) if (genColumn >= line[i][COLUMN]) break;
|
|
865
|
+
return index;
|
|
866
|
+
}
|
|
867
|
+
function insert(array, index, value) {
|
|
868
|
+
for (let i = array.length; i > index; i--) array[i] = array[i - 1];
|
|
869
|
+
array[index] = value;
|
|
870
|
+
}
|
|
871
|
+
function removeEmptyFinalLines(mappings) {
|
|
872
|
+
const { length } = mappings;
|
|
873
|
+
let len = length;
|
|
874
|
+
for (let i = len - 1; i >= 0; len = i, i--) if (mappings[i].length > 0) break;
|
|
875
|
+
if (len < length) mappings.length = len;
|
|
876
|
+
}
|
|
877
|
+
function putAll(setarr, array) {
|
|
878
|
+
for (let i = 0; i < array.length; i++) put(setarr, array[i]);
|
|
879
|
+
}
|
|
880
|
+
function skipSourceless(line, index) {
|
|
881
|
+
if (index === 0) return true;
|
|
882
|
+
return line[index - 1].length === 1;
|
|
883
|
+
}
|
|
884
|
+
function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
|
|
885
|
+
if (index === 0) return false;
|
|
886
|
+
const prev = line[index - 1];
|
|
887
|
+
if (prev.length === 1) return false;
|
|
888
|
+
return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
|
|
889
|
+
}
|
|
890
|
+
function addMappingInternal(skipable, map, mapping) {
|
|
891
|
+
const { generated, source, original, name, content } = mapping;
|
|
892
|
+
if (!source) return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);
|
|
893
|
+
assert(original);
|
|
894
|
+
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
//#endregion
|
|
898
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/core.js
|
|
899
|
+
function coerce(value) {
|
|
900
|
+
if (value instanceof Error) return value.stack || value.message;
|
|
901
|
+
return value;
|
|
902
|
+
}
|
|
903
|
+
function selectColor(colors, namespace) {
|
|
904
|
+
let hash = 0;
|
|
905
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
906
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
907
|
+
hash |= 0;
|
|
908
|
+
}
|
|
909
|
+
return colors[Math.abs(hash) % colors.length];
|
|
910
|
+
}
|
|
911
|
+
function matchesTemplate(search, template) {
|
|
912
|
+
let searchIndex = 0;
|
|
913
|
+
let templateIndex = 0;
|
|
914
|
+
let starIndex = -1;
|
|
915
|
+
let matchIndex = 0;
|
|
916
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
917
|
+
starIndex = templateIndex;
|
|
918
|
+
matchIndex = searchIndex;
|
|
919
|
+
templateIndex++;
|
|
920
|
+
} else {
|
|
921
|
+
searchIndex++;
|
|
922
|
+
templateIndex++;
|
|
923
|
+
}
|
|
924
|
+
else if (starIndex !== -1) {
|
|
925
|
+
templateIndex = starIndex + 1;
|
|
926
|
+
matchIndex++;
|
|
927
|
+
searchIndex = matchIndex;
|
|
928
|
+
} else return false;
|
|
929
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
930
|
+
return templateIndex === template.length;
|
|
931
|
+
}
|
|
932
|
+
function humanize(value) {
|
|
933
|
+
if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
|
|
934
|
+
return `${value}ms`;
|
|
935
|
+
}
|
|
936
|
+
let globalNamespaces = "";
|
|
937
|
+
function createDebug$1(namespace, options) {
|
|
938
|
+
let prevTime;
|
|
939
|
+
let enableOverride;
|
|
940
|
+
let namespacesCache;
|
|
941
|
+
let enabledCache;
|
|
942
|
+
const debug = (...args) => {
|
|
943
|
+
if (!debug.enabled) return;
|
|
944
|
+
const curr = Date.now();
|
|
945
|
+
const diff = curr - (prevTime || curr);
|
|
946
|
+
prevTime = curr;
|
|
947
|
+
args[0] = coerce(args[0]);
|
|
948
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
949
|
+
let index = 0;
|
|
950
|
+
args[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {
|
|
951
|
+
if (match === "%%") return "%";
|
|
952
|
+
index++;
|
|
953
|
+
const formatter = options.formatters[format];
|
|
954
|
+
if (typeof formatter === "function") {
|
|
955
|
+
const value = args[index];
|
|
956
|
+
match = formatter.call(debug, value);
|
|
957
|
+
args.splice(index, 1);
|
|
958
|
+
index--;
|
|
959
|
+
}
|
|
960
|
+
return match;
|
|
961
|
+
});
|
|
962
|
+
options.formatArgs.call(debug, diff, args);
|
|
963
|
+
debug.log(...args);
|
|
964
|
+
};
|
|
965
|
+
debug.extend = function(namespace$1, delimiter = ":") {
|
|
966
|
+
return createDebug$1(this.namespace + delimiter + namespace$1, {
|
|
967
|
+
useColors: this.useColors,
|
|
968
|
+
color: this.color,
|
|
969
|
+
formatArgs: this.formatArgs,
|
|
970
|
+
formatters: this.formatters,
|
|
971
|
+
inspectOpts: this.inspectOpts,
|
|
972
|
+
log: this.log,
|
|
973
|
+
humanize: this.humanize
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
Object.assign(debug, options);
|
|
977
|
+
debug.namespace = namespace;
|
|
978
|
+
Object.defineProperty(debug, "enabled", {
|
|
979
|
+
enumerable: true,
|
|
980
|
+
configurable: false,
|
|
981
|
+
get: () => {
|
|
982
|
+
if (enableOverride != null) return enableOverride;
|
|
983
|
+
if (namespacesCache !== globalNamespaces) {
|
|
984
|
+
namespacesCache = globalNamespaces;
|
|
985
|
+
enabledCache = enabled(namespace);
|
|
986
|
+
}
|
|
987
|
+
return enabledCache;
|
|
988
|
+
},
|
|
989
|
+
set: (v) => {
|
|
990
|
+
enableOverride = v;
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
return debug;
|
|
994
|
+
}
|
|
995
|
+
let names = [];
|
|
996
|
+
let skips = [];
|
|
997
|
+
function enable(namespaces$1) {
|
|
998
|
+
globalNamespaces = namespaces$1;
|
|
999
|
+
names = [];
|
|
1000
|
+
skips = [];
|
|
1001
|
+
const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
1002
|
+
for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
|
|
1003
|
+
else names.push(ns);
|
|
1004
|
+
}
|
|
1005
|
+
function enabled(name) {
|
|
1006
|
+
for (const skip of skips) if (matchesTemplate(name, skip)) return false;
|
|
1007
|
+
for (const ns of names) if (matchesTemplate(name, ns)) return true;
|
|
1008
|
+
return false;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
//#endregion
|
|
1012
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/node.js
|
|
1013
|
+
const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
1014
|
+
20,
|
|
1015
|
+
21,
|
|
1016
|
+
26,
|
|
1017
|
+
27,
|
|
1018
|
+
32,
|
|
1019
|
+
33,
|
|
1020
|
+
38,
|
|
1021
|
+
39,
|
|
1022
|
+
40,
|
|
1023
|
+
41,
|
|
1024
|
+
42,
|
|
1025
|
+
43,
|
|
1026
|
+
44,
|
|
1027
|
+
45,
|
|
1028
|
+
56,
|
|
1029
|
+
57,
|
|
1030
|
+
62,
|
|
1031
|
+
63,
|
|
1032
|
+
68,
|
|
1033
|
+
69,
|
|
1034
|
+
74,
|
|
1035
|
+
75,
|
|
1036
|
+
76,
|
|
1037
|
+
77,
|
|
1038
|
+
78,
|
|
1039
|
+
79,
|
|
1040
|
+
80,
|
|
1041
|
+
81,
|
|
1042
|
+
92,
|
|
1043
|
+
93,
|
|
1044
|
+
98,
|
|
1045
|
+
99,
|
|
1046
|
+
112,
|
|
1047
|
+
113,
|
|
1048
|
+
128,
|
|
1049
|
+
129,
|
|
1050
|
+
134,
|
|
1051
|
+
135,
|
|
1052
|
+
148,
|
|
1053
|
+
149,
|
|
1054
|
+
160,
|
|
1055
|
+
161,
|
|
1056
|
+
162,
|
|
1057
|
+
163,
|
|
1058
|
+
164,
|
|
1059
|
+
165,
|
|
1060
|
+
166,
|
|
1061
|
+
167,
|
|
1062
|
+
168,
|
|
1063
|
+
169,
|
|
1064
|
+
170,
|
|
1065
|
+
171,
|
|
1066
|
+
172,
|
|
1067
|
+
173,
|
|
1068
|
+
178,
|
|
1069
|
+
179,
|
|
1070
|
+
184,
|
|
1071
|
+
185,
|
|
1072
|
+
196,
|
|
1073
|
+
197,
|
|
1074
|
+
198,
|
|
1075
|
+
199,
|
|
1076
|
+
200,
|
|
1077
|
+
201,
|
|
1078
|
+
202,
|
|
1079
|
+
203,
|
|
1080
|
+
204,
|
|
1081
|
+
205,
|
|
1082
|
+
206,
|
|
1083
|
+
207,
|
|
1084
|
+
208,
|
|
1085
|
+
209,
|
|
1086
|
+
214,
|
|
1087
|
+
215,
|
|
1088
|
+
220,
|
|
1089
|
+
221
|
|
1090
|
+
] : [
|
|
1091
|
+
6,
|
|
1092
|
+
2,
|
|
1093
|
+
3,
|
|
1094
|
+
4,
|
|
1095
|
+
5,
|
|
1096
|
+
1
|
|
1097
|
+
];
|
|
1098
|
+
const inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
|
|
1099
|
+
const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
|
|
1100
|
+
let value = process.env[key];
|
|
1101
|
+
const lowerCase = typeof value === "string" && value.toLowerCase();
|
|
1102
|
+
if (value === "null") value = null;
|
|
1103
|
+
else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
|
|
1104
|
+
else if (lowerCase === "no" || lowerCase === "off" || lowerCase === "false" || lowerCase === "disabled") value = false;
|
|
1105
|
+
else value = Number(value);
|
|
1106
|
+
obj[prop] = value;
|
|
1107
|
+
return obj;
|
|
1108
|
+
}, {});
|
|
1109
|
+
function useColors() {
|
|
1110
|
+
return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
|
|
1111
|
+
}
|
|
1112
|
+
function getDate() {
|
|
1113
|
+
if (inspectOpts.hideDate) return "";
|
|
1114
|
+
return `${(/* @__PURE__ */ new Date()).toISOString()} `;
|
|
1115
|
+
}
|
|
1116
|
+
function formatArgs(diff, args) {
|
|
1117
|
+
const { namespace: name, useColors: useColors$1 } = this;
|
|
1118
|
+
if (useColors$1) {
|
|
1119
|
+
const c = this.color;
|
|
1120
|
+
const colorCode = `\u001B[3${c < 8 ? c : `8;5;${c}`}`;
|
|
1121
|
+
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
1122
|
+
args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
|
|
1123
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\u001B[0m`);
|
|
1124
|
+
} else args[0] = `${getDate()}${name} ${args[0]}`;
|
|
1125
|
+
}
|
|
1126
|
+
function log(...args) {
|
|
1127
|
+
process.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}\n`);
|
|
1128
|
+
}
|
|
1129
|
+
const defaultOptions = {
|
|
1130
|
+
useColors: useColors(),
|
|
1131
|
+
formatArgs,
|
|
1132
|
+
formatters: {
|
|
1133
|
+
o(v) {
|
|
1134
|
+
this.inspectOpts.colors = this.useColors;
|
|
1135
|
+
return inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
1136
|
+
},
|
|
1137
|
+
O(v) {
|
|
1138
|
+
this.inspectOpts.colors = this.useColors;
|
|
1139
|
+
return inspect(v, this.inspectOpts);
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
inspectOpts,
|
|
1143
|
+
log,
|
|
1144
|
+
humanize
|
|
1145
|
+
};
|
|
1146
|
+
function createDebug(namespace, options) {
|
|
1147
|
+
var _ref;
|
|
1148
|
+
const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
|
|
1149
|
+
return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
|
|
1150
|
+
}
|
|
1151
|
+
enable(process.env.DEBUG || "");
|
|
1152
|
+
|
|
1153
|
+
//#endregion
|
|
1154
|
+
//#region src/handleHotUpdate.ts
|
|
1155
|
+
const debug = createDebug("vite:hmr");
|
|
1156
|
+
/**
|
|
1157
|
+
* Vite-specific HMR handling
|
|
1158
|
+
*/
|
|
1159
|
+
async function handleHotUpdate({ file, modules, read }, options, customElement, typeDepModules) {
|
|
1160
|
+
const prevDescriptor = getDescriptor(file, options, false, true);
|
|
1161
|
+
if (!prevDescriptor) return;
|
|
1162
|
+
const { descriptor } = createDescriptor(file, await read(), options, true);
|
|
1163
|
+
let needRerender = false;
|
|
1164
|
+
const nonJsModules = modules.filter((m) => m.type !== "js");
|
|
1165
|
+
const jsModules = modules.filter((m) => m.type === "js");
|
|
1166
|
+
const affectedModules = new Set(nonJsModules);
|
|
1167
|
+
const mainModule = getMainModule(jsModules);
|
|
1168
|
+
const templateModule = jsModules.find((m) => /type=template/.test(m.url));
|
|
1169
|
+
resolveScript(descriptor, options, false, customElement);
|
|
1170
|
+
const scriptChanged = hasScriptChanged(prevDescriptor, descriptor);
|
|
1171
|
+
if (scriptChanged) affectedModules.add(getScriptModule(jsModules) || mainModule);
|
|
1172
|
+
if (!isEqualBlock(descriptor.template, prevDescriptor.template)) {
|
|
1173
|
+
if (!scriptChanged) setResolvedScript(descriptor, getResolvedScript(prevDescriptor, false), false);
|
|
1174
|
+
affectedModules.add(templateModule);
|
|
1175
|
+
needRerender = true;
|
|
1176
|
+
}
|
|
1177
|
+
let didUpdateStyle = false;
|
|
1178
|
+
const prevStyles = prevDescriptor.styles || [];
|
|
1179
|
+
const nextStyles = descriptor.styles || [];
|
|
1180
|
+
if (prevDescriptor.cssVars.join("") !== descriptor.cssVars.join("")) affectedModules.add(mainModule);
|
|
1181
|
+
if (prevStyles.some((s) => s.scoped) !== nextStyles.some((s) => s.scoped)) {
|
|
1182
|
+
affectedModules.add(templateModule);
|
|
1183
|
+
affectedModules.add(mainModule);
|
|
1184
|
+
}
|
|
1185
|
+
for (let i = 0; i < nextStyles.length; i++) {
|
|
1186
|
+
const prev = prevStyles[i];
|
|
1187
|
+
const next = nextStyles[i];
|
|
1188
|
+
if (!prev || !isEqualBlock(prev, next)) {
|
|
1189
|
+
didUpdateStyle = true;
|
|
1190
|
+
const mod = jsModules.find((m) => m.url.includes(`type=style&index=${i}`) && m.url.endsWith(`.${next.lang || "css"}`));
|
|
1191
|
+
if (mod) {
|
|
1192
|
+
affectedModules.add(mod);
|
|
1193
|
+
if (mod.url.includes("&inline")) affectedModules.add(mainModule);
|
|
1194
|
+
} else affectedModules.add(mainModule);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (prevStyles.length > nextStyles.length) affectedModules.add(mainModule);
|
|
1198
|
+
const prevCustoms = prevDescriptor.customBlocks || [];
|
|
1199
|
+
const nextCustoms = descriptor.customBlocks || [];
|
|
1200
|
+
if (prevCustoms.length !== nextCustoms.length) affectedModules.add(mainModule);
|
|
1201
|
+
else for (let i = 0; i < nextCustoms.length; i++) {
|
|
1202
|
+
const prev = prevCustoms[i];
|
|
1203
|
+
const next = nextCustoms[i];
|
|
1204
|
+
if (!prev || !isEqualBlock(prev, next)) {
|
|
1205
|
+
const mod = jsModules.find((m) => m.url.includes(`type=${prev.type}&index=${i}`));
|
|
1206
|
+
if (mod) affectedModules.add(mod);
|
|
1207
|
+
else affectedModules.add(mainModule);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
const updateType = [];
|
|
1211
|
+
if (needRerender) {
|
|
1212
|
+
updateType.push(`template`);
|
|
1213
|
+
if (!templateModule) affectedModules.add(mainModule);
|
|
1214
|
+
else if (mainModule && !affectedModules.has(mainModule)) [...mainModule.importers].filter((m) => isCSSRequest(m.url)).forEach((m) => affectedModules.add(m));
|
|
1215
|
+
}
|
|
1216
|
+
if (didUpdateStyle) updateType.push(`style`);
|
|
1217
|
+
if (updateType.length) {
|
|
1218
|
+
if (file.endsWith(".vue")) invalidateDescriptor(file);
|
|
1219
|
+
else cache.set(file, descriptor);
|
|
1220
|
+
debug(`[vue:update(${updateType.join("&")})] ${file}`);
|
|
1221
|
+
}
|
|
1222
|
+
return [...affectedModules, ...typeDepModules || []].filter(Boolean);
|
|
1223
|
+
}
|
|
1224
|
+
function isEqualBlock(a, b) {
|
|
1225
|
+
if (!a && !b) return true;
|
|
1226
|
+
if (!a || !b) return false;
|
|
1227
|
+
if (a.src && b.src && a.src === b.src) return true;
|
|
1228
|
+
if (a.content !== b.content) return false;
|
|
1229
|
+
const keysA = Object.keys(a.attrs);
|
|
1230
|
+
const keysB = Object.keys(b.attrs);
|
|
1231
|
+
if (keysA.length !== keysB.length) return false;
|
|
1232
|
+
return keysA.every((key) => a.attrs[key] === b.attrs[key]);
|
|
1233
|
+
}
|
|
1234
|
+
function isOnlyTemplateChanged(prev, next) {
|
|
1235
|
+
return !hasScriptChanged(prev, next) && prev.styles.length === next.styles.length && prev.styles.every((s, i) => isEqualBlock(s, next.styles[i])) && prev.customBlocks.length === next.customBlocks.length && prev.customBlocks.every((s, i) => isEqualBlock(s, next.customBlocks[i]));
|
|
1236
|
+
}
|
|
1237
|
+
function deepEqual(obj1, obj2, excludeProps = [], deepParentsOfObj1 = []) {
|
|
1238
|
+
if (typeof obj1 !== typeof obj2) return false;
|
|
1239
|
+
if (obj1 == null || obj2 == null || typeof obj1 !== "object" || deepParentsOfObj1.includes(obj1)) return obj1 === obj2;
|
|
1240
|
+
const keys1 = Object.keys(obj1);
|
|
1241
|
+
const keys2 = Object.keys(obj2);
|
|
1242
|
+
if (keys1.length !== keys2.length) return false;
|
|
1243
|
+
for (const key of keys1) {
|
|
1244
|
+
if (excludeProps.includes(key)) continue;
|
|
1245
|
+
if (!deepEqual(obj1[key], obj2[key], excludeProps, [...deepParentsOfObj1, obj1])) return false;
|
|
1246
|
+
}
|
|
1247
|
+
return true;
|
|
1248
|
+
}
|
|
1249
|
+
function isEqualAst(prev, next) {
|
|
1250
|
+
if (typeof prev === "undefined" || typeof next === "undefined") return prev === next;
|
|
1251
|
+
if (prev.length !== next.length) return false;
|
|
1252
|
+
for (let i = 0; i < prev.length; i++) {
|
|
1253
|
+
const prevNode = prev[i];
|
|
1254
|
+
const nextNode = next[i];
|
|
1255
|
+
if (!deepEqual(prevNode, nextNode, [
|
|
1256
|
+
"start",
|
|
1257
|
+
"end",
|
|
1258
|
+
"loc",
|
|
1259
|
+
"range",
|
|
1260
|
+
"leadingComments",
|
|
1261
|
+
"trailingComments",
|
|
1262
|
+
"innerComments",
|
|
1263
|
+
"_ownerScope",
|
|
1264
|
+
"_resolvedReference",
|
|
1265
|
+
"_resolvedElements"
|
|
1266
|
+
])) return false;
|
|
1267
|
+
}
|
|
1268
|
+
return true;
|
|
1269
|
+
}
|
|
1270
|
+
function hasScriptChanged(prev, next) {
|
|
1271
|
+
if (prev.vapor !== next.vapor) return true;
|
|
1272
|
+
const prevScript = getResolvedScript(prev, false);
|
|
1273
|
+
const nextScript = getResolvedScript(next, false);
|
|
1274
|
+
if (!isEqualBlock(prev.script, next.script) && !isEqualAst(prevScript?.scriptAst, nextScript?.scriptAst)) return true;
|
|
1275
|
+
if (!isEqualBlock(prev.scriptSetup, next.scriptSetup) && !isEqualAst(prevScript?.scriptSetupAst, nextScript?.scriptSetupAst)) return true;
|
|
1276
|
+
const prevImports = getResolvedScript(prev, false)?.imports;
|
|
1277
|
+
if (prevImports) return !next.template || next.shouldForceReload(prevImports);
|
|
1278
|
+
return false;
|
|
1279
|
+
}
|
|
1280
|
+
function getMainModule(jsModules) {
|
|
1281
|
+
return jsModules.filter((m) => !/type=/.test(m.url) || /type=script/.test(m.url)).sort((m1, m2) => {
|
|
1282
|
+
return m1.url.length - m2.url.length;
|
|
1283
|
+
})[0];
|
|
1284
|
+
}
|
|
1285
|
+
function getScriptModule(jsModules) {
|
|
1286
|
+
return jsModules.find((m) => /type=script.*&lang\.\w+$/.test(m.url));
|
|
1287
|
+
}
|
|
1288
|
+
function handleTypeDepChange(affectedComponents, { modules, server: { moduleGraph } }) {
|
|
1289
|
+
const affected = /* @__PURE__ */ new Set();
|
|
1290
|
+
for (const file of affectedComponents) {
|
|
1291
|
+
invalidateScript(file);
|
|
1292
|
+
const mods = moduleGraph.getModulesByFile(file);
|
|
1293
|
+
if (mods) {
|
|
1294
|
+
const arr = [...mods];
|
|
1295
|
+
affected.add(getScriptModule(arr) || getMainModule(arr));
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
return [...modules, ...affected];
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
//#endregion
|
|
1302
|
+
//#region src/helper.ts
|
|
1303
|
+
const EXPORT_HELPER_ID = "\0plugin-vue:export-helper";
|
|
1304
|
+
const helperCode = `
|
|
1305
|
+
export default (sfc, props) => {
|
|
1306
|
+
const target = sfc.__vccOpts || sfc;
|
|
1307
|
+
for (const [key, val] of props) {
|
|
1308
|
+
target[key] = val;
|
|
1309
|
+
}
|
|
1310
|
+
return target;
|
|
1311
|
+
}
|
|
1312
|
+
`;
|
|
1313
|
+
|
|
1314
|
+
//#endregion
|
|
1315
|
+
//#region src/main.ts
|
|
1316
|
+
async function transformMain(code, filename, options, pluginContext, ssr, customElement) {
|
|
1317
|
+
const { devServer, isProduction, devToolsEnabled } = options;
|
|
1318
|
+
const prevDescriptor = getPrevDescriptor(filename);
|
|
1319
|
+
const { descriptor, errors } = createDescriptor(filename, code, options);
|
|
1320
|
+
if (fs.existsSync(filename)) getDescriptor(filename, options, true, true, filename.endsWith(".vue") ? void 0 : code);
|
|
1321
|
+
if (errors.length) {
|
|
1322
|
+
errors.forEach((error) => pluginContext.error(createRollupError(filename, error)));
|
|
1323
|
+
return null;
|
|
1324
|
+
}
|
|
1325
|
+
const attachedProps = [];
|
|
1326
|
+
const hasScoped = descriptor.styles.some((s) => s.scoped);
|
|
1327
|
+
const { code: scriptCode, map: scriptMap } = await genScriptCode(descriptor, options, pluginContext, ssr, customElement);
|
|
1328
|
+
const hasTemplateImport = descriptor.template && !isUseInlineTemplate(descriptor, options);
|
|
1329
|
+
let templateCode = "";
|
|
1330
|
+
let templateMap = void 0;
|
|
1331
|
+
if (hasTemplateImport) ({code: templateCode, map: templateMap} = await genTemplateCode(descriptor, options, pluginContext, ssr, customElement));
|
|
1332
|
+
if (hasTemplateImport) attachedProps.push(ssr ? ["ssrRender", "_sfc_ssrRender"] : ["render", "_sfc_render"]);
|
|
1333
|
+
else if (prevDescriptor && !isEqualBlock(descriptor.template, prevDescriptor.template)) attachedProps.push([ssr ? "ssrRender" : "render", "() => {}"]);
|
|
1334
|
+
const stylesCode = await genStyleCode(descriptor, pluginContext, customElement, attachedProps);
|
|
1335
|
+
const customBlocksCode = await genCustomBlockCode(descriptor, pluginContext);
|
|
1336
|
+
const output = [
|
|
1337
|
+
scriptCode,
|
|
1338
|
+
templateCode,
|
|
1339
|
+
stylesCode,
|
|
1340
|
+
customBlocksCode
|
|
1341
|
+
];
|
|
1342
|
+
if (hasScoped) attachedProps.push([`__scopeId`, JSON.stringify(`data-v-${descriptor.id}`)]);
|
|
1343
|
+
if (devToolsEnabled || devServer && !isProduction) attachedProps.push([`__file`, JSON.stringify(isProduction ? path.basename(filename) : filename)]);
|
|
1344
|
+
if (devServer && devServer.config.server.hmr !== false && !ssr && !isProduction) {
|
|
1345
|
+
output.push(`_sfc_main.__hmrId = ${JSON.stringify(descriptor.id)}`);
|
|
1346
|
+
output.push("typeof __VUE_HMR_RUNTIME__ !== 'undefined' && __VUE_HMR_RUNTIME__.createRecord(_sfc_main.__hmrId, _sfc_main)");
|
|
1347
|
+
output.push(`import.meta.hot.on('file-changed', ({ file }) => {`, ` __VUE_HMR_RUNTIME__.CHANGED_FILE = file`, `})`);
|
|
1348
|
+
if (prevDescriptor && isOnlyTemplateChanged(prevDescriptor, descriptor)) output.push(`export const _rerender_only = __VUE_HMR_RUNTIME__.CHANGED_FILE === ${JSON.stringify(normalizePath(filename))}`);
|
|
1349
|
+
output.push(`import.meta.hot.accept(mod => {`, ` if (!mod) return`, ` const { default: updated, _rerender_only } = mod`, ` if (_rerender_only) {`, ` __VUE_HMR_RUNTIME__.rerender(updated.__hmrId, updated.render)`, ` } else {`, ` __VUE_HMR_RUNTIME__.reload(updated.__hmrId, updated)`, ` }`, `})`);
|
|
1350
|
+
}
|
|
1351
|
+
if (ssr) {
|
|
1352
|
+
const normalizedFilename = normalizePath(path.relative(options.root, filename));
|
|
1353
|
+
output.push(`import { useSSRContext as __vite_useSSRContext } from 'vue'`, `const _sfc_setup = _sfc_main.setup`, `_sfc_main.setup = (props, ctx) => {`, ` const ssrContext = __vite_useSSRContext()`, ` ;(ssrContext.modules || (ssrContext.modules = new Set())).add(${JSON.stringify(normalizedFilename)})`, ` return _sfc_setup ? _sfc_setup(props, ctx) : undefined`, `}`);
|
|
1354
|
+
}
|
|
1355
|
+
let resolvedMap = void 0;
|
|
1356
|
+
if (options.sourceMap) if (templateMap) {
|
|
1357
|
+
const gen = fromMap(scriptMap ?? {
|
|
1358
|
+
file: filename,
|
|
1359
|
+
sourceRoot: "",
|
|
1360
|
+
version: 3,
|
|
1361
|
+
sources: [],
|
|
1362
|
+
sourcesContent: [],
|
|
1363
|
+
names: [],
|
|
1364
|
+
mappings: ""
|
|
1365
|
+
});
|
|
1366
|
+
const tracer = new TraceMap(templateMap);
|
|
1367
|
+
const offset = (scriptCode.match(/\r?\n/g)?.length ?? 0) + 1;
|
|
1368
|
+
eachMapping(tracer, (m) => {
|
|
1369
|
+
if (m.source == null) return;
|
|
1370
|
+
addMapping(gen, {
|
|
1371
|
+
source: m.source,
|
|
1372
|
+
original: {
|
|
1373
|
+
line: m.originalLine,
|
|
1374
|
+
column: m.originalColumn
|
|
1375
|
+
},
|
|
1376
|
+
generated: {
|
|
1377
|
+
line: m.generatedLine + offset,
|
|
1378
|
+
column: m.generatedColumn
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
});
|
|
1382
|
+
resolvedMap = toEncodedMap(gen);
|
|
1383
|
+
resolvedMap.sourcesContent = templateMap.sourcesContent;
|
|
1384
|
+
} else resolvedMap = scriptMap;
|
|
1385
|
+
if (!attachedProps.length) output.push(`export default _sfc_main`);
|
|
1386
|
+
else output.push(`import _export_sfc from '${EXPORT_HELPER_ID}'`, `export default /*#__PURE__*/_export_sfc(_sfc_main, [${attachedProps.map(([key, val]) => `['${key}',${val}]`).join(",")}])`);
|
|
1387
|
+
let resolvedCode = output.join("\n");
|
|
1388
|
+
const lang = descriptor.scriptSetup?.lang || descriptor.script?.lang;
|
|
1389
|
+
if (lang && /tsx?$/.test(lang) && !descriptor.script?.src) {
|
|
1390
|
+
const { transformWithOxc } = await import("vite");
|
|
1391
|
+
if (transformWithOxc) {
|
|
1392
|
+
const { code, map } = await transformWithOxc(resolvedCode, filename, {
|
|
1393
|
+
...options.devServer?.config.oxc,
|
|
1394
|
+
lang: "ts",
|
|
1395
|
+
sourcemap: options.sourceMap
|
|
1396
|
+
}, resolvedMap);
|
|
1397
|
+
resolvedCode = code;
|
|
1398
|
+
resolvedMap = resolvedMap ? map : resolvedMap;
|
|
1399
|
+
} else {
|
|
1400
|
+
const { code, map } = await transformWithEsbuild(resolvedCode, filename, {
|
|
1401
|
+
target: "esnext",
|
|
1402
|
+
charset: "utf8",
|
|
1403
|
+
...options.devServer?.config.esbuild,
|
|
1404
|
+
loader: "ts",
|
|
1405
|
+
sourcemap: options.sourceMap
|
|
1406
|
+
}, resolvedMap);
|
|
1407
|
+
resolvedCode = code;
|
|
1408
|
+
resolvedMap = resolvedMap ? map : resolvedMap;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
return {
|
|
1412
|
+
code: resolvedCode,
|
|
1413
|
+
map: resolvedMap || { mappings: "" },
|
|
1414
|
+
meta: { vite: { lang: descriptor.script?.lang || descriptor.scriptSetup?.lang || "js" } }
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
async function genTemplateCode(descriptor, options, pluginContext, ssr, customElement) {
|
|
1418
|
+
const template = descriptor.template;
|
|
1419
|
+
const hasScoped = descriptor.styles.some((style) => style.scoped);
|
|
1420
|
+
if ((!template.lang || template.lang === "html") && !template.src) return transformTemplateInMain(template.content, descriptor, options, pluginContext, ssr, customElement);
|
|
1421
|
+
else {
|
|
1422
|
+
if (template.src) await linkSrcToDescriptor(template.src, descriptor, pluginContext, hasScoped);
|
|
1423
|
+
const src = template.src || descriptor.filename;
|
|
1424
|
+
const query = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
|
|
1425
|
+
const request = JSON.stringify(src + query);
|
|
1426
|
+
const renderFnName = ssr ? "ssrRender" : "render";
|
|
1427
|
+
return {
|
|
1428
|
+
code: `import { ${renderFnName} as _sfc_${renderFnName} } from ${request}`,
|
|
1429
|
+
map: void 0
|
|
1430
|
+
};
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
async function genScriptCode(descriptor, options, pluginContext, ssr, customElement) {
|
|
1434
|
+
let scriptCode = `const ${scriptIdentifier} = { ${descriptor.vapor ? "__vapor: true" : ""} }`;
|
|
1435
|
+
let map;
|
|
1436
|
+
const script = resolveScript(descriptor, options, ssr, customElement);
|
|
1437
|
+
if (script) if (canInlineMain(descriptor, options)) {
|
|
1438
|
+
if (!options.compiler.version) {
|
|
1439
|
+
const userPlugins = options.script?.babelParserPlugins || [];
|
|
1440
|
+
const defaultPlugins = script.lang === "ts" ? userPlugins.includes("decorators") ? ["typescript"] : ["typescript", "decorators-legacy"] : [];
|
|
1441
|
+
scriptCode = options.compiler.rewriteDefault(script.content, scriptIdentifier, [...defaultPlugins, ...userPlugins]);
|
|
1442
|
+
} else scriptCode = script.content;
|
|
1443
|
+
map = script.map;
|
|
1444
|
+
} else {
|
|
1445
|
+
if (script.src) await linkSrcToDescriptor(script.src, descriptor, pluginContext, false);
|
|
1446
|
+
const src = script.src || descriptor.filename;
|
|
1447
|
+
const langFallback = script.src && path.extname(src).slice(1) || "js";
|
|
1448
|
+
const attrsQuery = attrsToQuery(script.attrs, langFallback);
|
|
1449
|
+
const query = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
|
|
1450
|
+
const request = JSON.stringify(src + query);
|
|
1451
|
+
scriptCode = `import _sfc_main from ${request}\nexport * from ${request}`;
|
|
1452
|
+
}
|
|
1453
|
+
return {
|
|
1454
|
+
code: scriptCode,
|
|
1455
|
+
map
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
async function genStyleCode(descriptor, pluginContext, customElement, attachedProps) {
|
|
1459
|
+
let stylesCode = ``;
|
|
1460
|
+
let cssModulesMap;
|
|
1461
|
+
if (descriptor.styles.length) {
|
|
1462
|
+
for (let i = 0; i < descriptor.styles.length; i++) {
|
|
1463
|
+
const style = descriptor.styles[i];
|
|
1464
|
+
if (style.src) await linkSrcToDescriptor(style.src, descriptor, pluginContext, style.scoped);
|
|
1465
|
+
const src = style.src || descriptor.filename;
|
|
1466
|
+
const attrsQuery = attrsToQuery(style.attrs, "css");
|
|
1467
|
+
const srcQuery = style.src ? style.scoped ? `&src=${descriptor.id}` : "&src=true" : "";
|
|
1468
|
+
const directQuery = customElement ? `&inline` : ``;
|
|
1469
|
+
const scopedQuery = style.scoped ? `&scoped=${descriptor.id}` : ``;
|
|
1470
|
+
const styleRequest = src + `?vue&type=style&index=${i}${srcQuery}${directQuery}${scopedQuery}` + attrsQuery;
|
|
1471
|
+
if (style.module) {
|
|
1472
|
+
if (customElement) throw new Error(`<style module> is not supported in custom elements mode.`);
|
|
1473
|
+
const [importCode, nameMap] = genCSSModulesCode(i, styleRequest, style.module);
|
|
1474
|
+
stylesCode += importCode;
|
|
1475
|
+
Object.assign(cssModulesMap ||= {}, nameMap);
|
|
1476
|
+
} else if (customElement) stylesCode += `\nimport _style_${i} from ${JSON.stringify(styleRequest)}`;
|
|
1477
|
+
else stylesCode += `\nimport ${JSON.stringify(styleRequest)}`;
|
|
1478
|
+
}
|
|
1479
|
+
if (customElement) attachedProps.push([`styles`, `[${descriptor.styles.map((_, i) => `_style_${i}`).join(",")}]`]);
|
|
1480
|
+
}
|
|
1481
|
+
if (cssModulesMap) {
|
|
1482
|
+
const mappingCode = Object.entries(cssModulesMap).reduce((code, [key, value]) => code + `"${key}":${value},\n`, "{\n") + "}";
|
|
1483
|
+
stylesCode += `\nconst cssModules = ${mappingCode}`;
|
|
1484
|
+
attachedProps.push([`__cssModules`, `cssModules`]);
|
|
1485
|
+
}
|
|
1486
|
+
return stylesCode;
|
|
1487
|
+
}
|
|
1488
|
+
function genCSSModulesCode(index, request, moduleName) {
|
|
1489
|
+
const styleVar = `style${index}`;
|
|
1490
|
+
const exposedName = typeof moduleName === "string" ? moduleName : "$style";
|
|
1491
|
+
const moduleRequest = request.replace(/\.(\w+)$/, ".module.$1");
|
|
1492
|
+
return [`\nimport ${styleVar} from ${JSON.stringify(moduleRequest)}`, { [exposedName]: styleVar }];
|
|
1493
|
+
}
|
|
1494
|
+
async function genCustomBlockCode(descriptor, pluginContext) {
|
|
1495
|
+
let code = "";
|
|
1496
|
+
for (let index = 0; index < descriptor.customBlocks.length; index++) {
|
|
1497
|
+
const block = descriptor.customBlocks[index];
|
|
1498
|
+
if (block.src) await linkSrcToDescriptor(block.src, descriptor, pluginContext, false);
|
|
1499
|
+
const src = block.src || descriptor.filename;
|
|
1500
|
+
const attrsQuery = attrsToQuery(block.attrs, block.type);
|
|
1501
|
+
const srcQuery = block.src ? `&src=true` : ``;
|
|
1502
|
+
const query = `?vue&type=${block.type}&index=${index}${srcQuery}${attrsQuery}`;
|
|
1503
|
+
const request = JSON.stringify(src + query);
|
|
1504
|
+
code += `import block${index} from ${request}\n`;
|
|
1505
|
+
code += `if (typeof block${index} === 'function') block${index}(_sfc_main)\n`;
|
|
1506
|
+
}
|
|
1507
|
+
return code;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* For blocks with src imports, it is important to link the imported file
|
|
1511
|
+
* with its owner SFC descriptor so that we can get the information about
|
|
1512
|
+
* the owner SFC when compiling that file in the transform phase.
|
|
1513
|
+
*/
|
|
1514
|
+
async function linkSrcToDescriptor(src, descriptor, pluginContext, scoped) {
|
|
1515
|
+
setSrcDescriptor(((await pluginContext.resolve(src, descriptor.filename))?.id || src).replace(/\?.*$/, ""), descriptor, scoped);
|
|
1516
|
+
}
|
|
1517
|
+
const ignoreList = [
|
|
1518
|
+
"id",
|
|
1519
|
+
"index",
|
|
1520
|
+
"src",
|
|
1521
|
+
"type",
|
|
1522
|
+
"lang",
|
|
1523
|
+
"module",
|
|
1524
|
+
"scoped",
|
|
1525
|
+
"generic"
|
|
1526
|
+
];
|
|
1527
|
+
function attrsToQuery(attrs, langFallback, forceLangFallback = false) {
|
|
1528
|
+
let query = ``;
|
|
1529
|
+
for (const name in attrs) {
|
|
1530
|
+
const value = attrs[name];
|
|
1531
|
+
if (!ignoreList.includes(name)) query += `&${encodeURIComponent(name)}${value ? `=${encodeURIComponent(value)}` : ``}`;
|
|
1532
|
+
}
|
|
1533
|
+
if (langFallback || attrs.lang) query += `lang` in attrs ? forceLangFallback ? `&lang.${langFallback}` : `&lang.${attrs.lang}` : `&lang.${langFallback}`;
|
|
1534
|
+
return query;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
//#endregion
|
|
1538
|
+
//#region src/style.ts
|
|
1539
|
+
async function transformStyle(code, descriptor, index, options, pluginContext, filename) {
|
|
1540
|
+
const block = descriptor.styles[index];
|
|
1541
|
+
const result = await options.compiler.compileStyleAsync({
|
|
1542
|
+
...options.style,
|
|
1543
|
+
filename: descriptor.filename,
|
|
1544
|
+
id: `data-v-${descriptor.id}`,
|
|
1545
|
+
isProd: options.isProduction,
|
|
1546
|
+
source: code,
|
|
1547
|
+
scoped: block.scoped,
|
|
1548
|
+
...options.cssDevSourcemap ? { postcssOptions: { map: {
|
|
1549
|
+
from: filename,
|
|
1550
|
+
inline: false,
|
|
1551
|
+
annotation: false
|
|
1552
|
+
} } } : {}
|
|
1553
|
+
});
|
|
1554
|
+
if (result.errors.length) {
|
|
1555
|
+
result.errors.forEach((error) => {
|
|
1556
|
+
if (error.line && error.column) error.loc = {
|
|
1557
|
+
file: descriptor.filename,
|
|
1558
|
+
line: error.line + block.loc.start.line,
|
|
1559
|
+
column: error.column
|
|
1560
|
+
};
|
|
1561
|
+
pluginContext.error(error);
|
|
1562
|
+
});
|
|
1563
|
+
return null;
|
|
1564
|
+
}
|
|
1565
|
+
const map = result.map ? await formatPostcssSourceMap(result.map, filename) : { mappings: "" };
|
|
1566
|
+
return {
|
|
1567
|
+
code: result.code,
|
|
1568
|
+
map,
|
|
1569
|
+
meta: block.scoped && !descriptor.isTemp ? { vite: { cssScopeTo: [descriptor.filename, "default"] } } : void 0
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region src/index.ts
|
|
1575
|
+
function vuePlugin(rawOptions = {}) {
|
|
1576
|
+
clearScriptCache();
|
|
1577
|
+
const options = shallowRef({
|
|
1578
|
+
isProduction: process.env.NODE_ENV === "production",
|
|
1579
|
+
compiler: null,
|
|
1580
|
+
customElement: /\.ce\.vue$/,
|
|
1581
|
+
...rawOptions,
|
|
1582
|
+
root: process.cwd(),
|
|
1583
|
+
sourceMap: true,
|
|
1584
|
+
cssDevSourcemap: false
|
|
1585
|
+
});
|
|
1586
|
+
const include = shallowRef(rawOptions.include ?? /\.vue$/);
|
|
1587
|
+
const exclude = shallowRef(rawOptions.exclude);
|
|
1588
|
+
let optionsHookIsCalled = false;
|
|
1589
|
+
const filter = computed(() => createFilter(include.value, exclude.value));
|
|
1590
|
+
const customElementFilter = computed(() => {
|
|
1591
|
+
const customElement = options.value.features?.customElement || options.value.customElement;
|
|
1592
|
+
return typeof customElement === "boolean" ? () => customElement : createFilter(customElement);
|
|
1593
|
+
});
|
|
1594
|
+
let transformCachedModule = false;
|
|
1595
|
+
const plugin = {
|
|
1596
|
+
name: "vite:vue",
|
|
1597
|
+
api: {
|
|
1598
|
+
get options() {
|
|
1599
|
+
return options.value;
|
|
1600
|
+
},
|
|
1601
|
+
set options(value) {
|
|
1602
|
+
options.value = value;
|
|
1603
|
+
},
|
|
1604
|
+
get include() {
|
|
1605
|
+
return include.value;
|
|
1606
|
+
},
|
|
1607
|
+
set include(value) {
|
|
1608
|
+
if (optionsHookIsCalled) throw new Error("include cannot be updated after `options` hook is called");
|
|
1609
|
+
include.value = value;
|
|
1610
|
+
},
|
|
1611
|
+
get exclude() {
|
|
1612
|
+
return exclude.value;
|
|
1613
|
+
},
|
|
1614
|
+
set exclude(value) {
|
|
1615
|
+
if (optionsHookIsCalled) throw new Error("exclude cannot be updated after `options` hook is called");
|
|
1616
|
+
exclude.value = value;
|
|
1617
|
+
},
|
|
1618
|
+
version
|
|
1619
|
+
},
|
|
1620
|
+
handleHotUpdate(ctx) {
|
|
1621
|
+
ctx.server.ws.send({
|
|
1622
|
+
type: "custom",
|
|
1623
|
+
event: "file-changed",
|
|
1624
|
+
data: { file: normalizePath(ctx.file) }
|
|
1625
|
+
});
|
|
1626
|
+
if (options.value.compiler.invalidateTypeCache) options.value.compiler.invalidateTypeCache(ctx.file);
|
|
1627
|
+
let typeDepModules;
|
|
1628
|
+
const matchesFilter = filter.value(ctx.file);
|
|
1629
|
+
if (typeDepToSFCMap.has(ctx.file)) {
|
|
1630
|
+
typeDepModules = handleTypeDepChange(typeDepToSFCMap.get(ctx.file), ctx);
|
|
1631
|
+
if (!matchesFilter) return typeDepModules;
|
|
1632
|
+
}
|
|
1633
|
+
if (matchesFilter) return handleHotUpdate(ctx, options.value, customElementFilter.value(ctx.file), typeDepModules);
|
|
1634
|
+
},
|
|
1635
|
+
config(config) {
|
|
1636
|
+
const parseDefine = (v) => {
|
|
1637
|
+
try {
|
|
1638
|
+
return typeof v === "string" ? JSON.parse(v) : v;
|
|
1639
|
+
} catch (err) {
|
|
1640
|
+
return v;
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
return {
|
|
1644
|
+
resolve: { dedupe: config.build?.ssr ? [] : ["vue"] },
|
|
1645
|
+
define: {
|
|
1646
|
+
__VUE_OPTIONS_API__: options.value.features?.optionsAPI ?? parseDefine(config.define?.__VUE_OPTIONS_API__) ?? true,
|
|
1647
|
+
__VUE_PROD_DEVTOOLS__: (options.value.features?.prodDevtools || parseDefine(config.define?.__VUE_PROD_DEVTOOLS__)) ?? false,
|
|
1648
|
+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: (options.value.features?.prodHydrationMismatchDetails || parseDefine(config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__)) ?? false
|
|
1649
|
+
},
|
|
1650
|
+
ssr: { external: config.legacy?.buildSsrCjsExternalHeuristics ? ["vue", "@vue/server-renderer"] : [] }
|
|
1651
|
+
};
|
|
1652
|
+
},
|
|
1653
|
+
configResolved(config) {
|
|
1654
|
+
options.value = {
|
|
1655
|
+
...options.value,
|
|
1656
|
+
root: config.root,
|
|
1657
|
+
sourceMap: config.command === "build" ? !!config.build.sourcemap : true,
|
|
1658
|
+
cssDevSourcemap: config.css?.devSourcemap ?? false,
|
|
1659
|
+
isProduction: config.isProduction,
|
|
1660
|
+
devToolsEnabled: !!(options.value.features?.prodDevtools || config.define.__VUE_PROD_DEVTOOLS__ || !config.isProduction)
|
|
1661
|
+
};
|
|
1662
|
+
const _warn = config.logger.warn;
|
|
1663
|
+
config.logger.warn = (...args) => {
|
|
1664
|
+
if (args[0].match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
|
|
1665
|
+
_warn(...args);
|
|
1666
|
+
};
|
|
1667
|
+
transformCachedModule = config.command === "build" && options.value.sourceMap && config.build.watch != null;
|
|
1668
|
+
},
|
|
1669
|
+
options() {
|
|
1670
|
+
optionsHookIsCalled = true;
|
|
1671
|
+
plugin.transform.filter = { id: {
|
|
1672
|
+
include: [...makeIdFiltersToMatchWithQuery(ensureArray(include.value)), /[?&]vue\b/],
|
|
1673
|
+
exclude: exclude.value
|
|
1674
|
+
} };
|
|
1675
|
+
},
|
|
1676
|
+
shouldTransformCachedModule({ id }) {
|
|
1677
|
+
if (transformCachedModule && parseVueRequest(id).query.vue) return true;
|
|
1678
|
+
return false;
|
|
1679
|
+
},
|
|
1680
|
+
configureServer(server) {
|
|
1681
|
+
options.value.devServer = server;
|
|
1682
|
+
},
|
|
1683
|
+
buildStart() {
|
|
1684
|
+
const compiler = options.value.compiler = options.value.compiler || resolveCompiler(options.value.root);
|
|
1685
|
+
if (compiler.invalidateTypeCache) options.value.devServer?.watcher.on("unlink", (file) => {
|
|
1686
|
+
compiler.invalidateTypeCache(file);
|
|
1687
|
+
});
|
|
1688
|
+
},
|
|
1689
|
+
resolveId: {
|
|
1690
|
+
filter: { id: [exactRegex(EXPORT_HELPER_ID), /[?&]vue\b/] },
|
|
1691
|
+
handler(id) {
|
|
1692
|
+
if (id === EXPORT_HELPER_ID) return id;
|
|
1693
|
+
if (parseVueRequest(id).query.vue) return id;
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
load: {
|
|
1697
|
+
filter: { id: [exactRegex(EXPORT_HELPER_ID), /[?&]vue\b/] },
|
|
1698
|
+
handler(id, opt) {
|
|
1699
|
+
if (id === EXPORT_HELPER_ID) return helperCode;
|
|
1700
|
+
const ssr = opt?.ssr === true;
|
|
1701
|
+
const { filename, query } = parseVueRequest(id);
|
|
1702
|
+
if (query.vue) {
|
|
1703
|
+
if (query.src) return fs.readFileSync(filename, "utf-8");
|
|
1704
|
+
const descriptor = getDescriptor(filename, options.value);
|
|
1705
|
+
let block;
|
|
1706
|
+
if (query.type === "script") block = resolveScript(descriptor, options.value, ssr, customElementFilter.value(filename));
|
|
1707
|
+
else if (query.type === "template") block = descriptor.template;
|
|
1708
|
+
else if (query.type === "style") block = descriptor.styles[query.index];
|
|
1709
|
+
else if (query.index != null) block = descriptor.customBlocks[query.index];
|
|
1710
|
+
if (block) return {
|
|
1711
|
+
code: block.content,
|
|
1712
|
+
map: block.map
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
transform: { handler(code, id, opt) {
|
|
1718
|
+
const ssr = opt?.ssr === true;
|
|
1719
|
+
const { filename, query } = parseVueRequest(id);
|
|
1720
|
+
if (query.raw || query.url) return;
|
|
1721
|
+
if (!filter.value(filename) && !query.vue) return;
|
|
1722
|
+
if (!query.vue) return transformMain(code, filename, options.value, this, ssr, customElementFilter.value(filename));
|
|
1723
|
+
else {
|
|
1724
|
+
const descriptor = query.src ? getSrcDescriptor(filename, query) || getTempSrcDescriptor(filename, query) : getDescriptor(filename, options.value);
|
|
1725
|
+
if (query.src) this.addWatchFile(filename);
|
|
1726
|
+
if (query.type === "template") return transformTemplateAsModule(code, filename, descriptor, options.value, this, ssr, customElementFilter.value(filename));
|
|
1727
|
+
else if (query.type === "style") return transformStyle(code, descriptor, Number(query.index || 0), options.value, this, filename);
|
|
1728
|
+
}
|
|
1729
|
+
} }
|
|
1730
|
+
};
|
|
1731
|
+
return plugin;
|
|
1732
|
+
}
|
|
1733
|
+
function ensureArray(value) {
|
|
1734
|
+
return Array.isArray(value) ? value : [value];
|
|
1735
|
+
}
|
|
1736
|
+
function vuePluginCjs(options) {
|
|
1737
|
+
return vuePlugin.call(this, options);
|
|
1738
|
+
}
|
|
1739
|
+
Object.assign(vuePluginCjs, {
|
|
1740
|
+
default: vuePluginCjs,
|
|
1741
|
+
parseVueRequest
|
|
1742
|
+
});
|
|
1743
|
+
|
|
1744
|
+
//#endregion
|
|
1745
|
+
export { vuePlugin as default, vuePluginCjs as "module.exports", parseVueRequest };
|