@peter.naydenov/cuts 2.0.1 → 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.
Files changed (1029) hide show
  1. package/Changelog.md +10 -0
  2. package/coverage/lcov-report/index.html +1 -1
  3. package/coverage/lcov-report/src/findInstructions.js.html +1 -1
  4. package/coverage/lcov-report/src/index.html +1 -1
  5. package/coverage/lcov-report/src/main.js.html +1 -1
  6. package/coverage/lcov-report/src/methods/hide.js.html +1 -1
  7. package/coverage/lcov-report/src/methods/index.html +1 -1
  8. package/coverage/lcov-report/src/methods/jump.js.html +1 -1
  9. package/coverage/lcov-report/src/methods/jumpBack.js.html +1 -1
  10. package/coverage/lcov-report/src/methods/jumpsReset.js.html +1 -1
  11. package/coverage/lcov-report/src/methods/listShortcuts.js.html +1 -1
  12. package/coverage/lcov-report/src/methods/setScenes.js.html +1 -1
  13. package/coverage/lcov-report/src/methods/show.js.html +1 -1
  14. package/coverage/lcov-report/src/setInstruction.js.html +1 -1
  15. package/package.json +15 -19
  16. package/playwright.config.js +13 -0
  17. package/test/01-findPosition.test.js +119 -0
  18. package/test/02-cuts.test.js +412 -0
  19. package/test-e2e/01-general.test.js +290 -0
  20. package/test-e2e/index.html +30 -0
  21. package/test-e2e/node_modules/.package-lock.json +584 -0
  22. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js +36 -0
  23. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js.map +1 -0
  24. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js +983 -0
  25. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js.map +1 -0
  26. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js +267 -0
  27. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js.map +1 -0
  28. package/test-e2e/node_modules/.vite/deps/_metadata.json +44 -0
  29. package/test-e2e/node_modules/.vite/deps/ask-for-promise.js +223 -0
  30. package/test-e2e/node_modules/.vite/deps/ask-for-promise.js.map +1 -0
  31. package/test-e2e/node_modules/.vite/deps/package.json +3 -0
  32. package/test-e2e/node_modules/.vite/deps/vue.js +2 -0
  33. package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js +8579 -0
  34. package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js.map +1 -0
  35. package/test-e2e/node_modules/@babel/helper-string-parser/LICENSE +22 -0
  36. package/test-e2e/node_modules/@babel/helper-string-parser/README.md +19 -0
  37. package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
  38. package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
  39. package/test-e2e/node_modules/@babel/helper-string-parser/package.json +31 -0
  40. package/test-e2e/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
  41. package/test-e2e/node_modules/@babel/helper-validator-identifier/README.md +19 -0
  42. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
  43. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
  44. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
  45. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
  46. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
  47. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
  48. package/test-e2e/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  49. package/test-e2e/node_modules/@babel/parser/CHANGELOG.md +1073 -0
  50. package/test-e2e/node_modules/@babel/parser/LICENSE +19 -0
  51. package/test-e2e/node_modules/@babel/parser/README.md +19 -0
  52. package/test-e2e/node_modules/@babel/parser/bin/babel-parser.js +15 -0
  53. package/test-e2e/node_modules/@babel/parser/lib/index.js +14582 -0
  54. package/test-e2e/node_modules/@babel/parser/lib/index.js.map +1 -0
  55. package/test-e2e/node_modules/@babel/parser/package.json +50 -0
  56. package/test-e2e/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
  57. package/test-e2e/node_modules/@babel/types/LICENSE +22 -0
  58. package/test-e2e/node_modules/@babel/types/README.md +19 -0
  59. package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
  60. package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
  61. package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
  62. package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
  63. package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
  64. package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
  65. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
  66. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
  67. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
  68. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
  69. package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
  70. package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
  71. package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
  72. package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
  73. package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
  74. package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
  75. package/test-e2e/node_modules/@babel/types/lib/builders/productions.js +12 -0
  76. package/test-e2e/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
  77. package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
  78. package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
  79. package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
  80. package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
  81. package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
  82. package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
  83. package/test-e2e/node_modules/@babel/types/lib/clone/clone.js +12 -0
  84. package/test-e2e/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
  85. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
  86. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
  87. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
  88. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
  89. package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
  90. package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
  91. package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
  92. package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
  93. package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js +15 -0
  94. package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
  95. package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js +22 -0
  96. package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
  97. package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
  98. package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
  99. package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
  100. package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
  101. package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
  102. package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
  103. package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
  104. package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
  105. package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
  106. package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
  107. package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
  108. package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
  109. package/test-e2e/node_modules/@babel/types/lib/constants/index.js +31 -0
  110. package/test-e2e/node_modules/@babel/types/lib/constants/index.js.map +1 -0
  111. package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
  112. package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
  113. package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
  114. package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
  115. package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
  116. package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
  117. package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
  118. package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
  119. package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
  120. package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
  121. package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
  122. package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
  123. package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
  124. package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
  125. package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
  126. package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
  127. package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
  128. package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
  129. package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
  130. package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
  131. package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
  132. package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
  133. package/test-e2e/node_modules/@babel/types/lib/definitions/core.js +1725 -0
  134. package/test-e2e/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
  135. package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
  136. package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
  137. package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
  138. package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
  139. package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js +495 -0
  140. package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
  141. package/test-e2e/node_modules/@babel/types/lib/definitions/index.js +106 -0
  142. package/test-e2e/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
  143. package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
  144. package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
  145. package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js +31 -0
  146. package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
  147. package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
  148. package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
  149. package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
  150. package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
  151. package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js +296 -0
  152. package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
  153. package/test-e2e/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
  154. package/test-e2e/node_modules/@babel/types/lib/index.d.ts +3617 -0
  155. package/test-e2e/node_modules/@babel/types/lib/index.js +582 -0
  156. package/test-e2e/node_modules/@babel/types/lib/index.js.flow +2650 -0
  157. package/test-e2e/node_modules/@babel/types/lib/index.js.map +1 -0
  158. package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
  159. package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
  160. package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
  161. package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
  162. package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
  163. package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
  164. package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
  165. package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
  166. package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
  167. package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
  168. package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
  169. package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
  170. package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
  171. package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
  172. package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
  173. package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
  174. package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
  175. package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
  176. package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
  177. package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
  178. package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
  179. package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
  180. package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
  181. package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
  182. package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
  183. package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
  184. package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
  185. package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
  186. package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js +13 -0
  187. package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
  188. package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
  189. package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
  190. package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
  191. package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
  192. package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
  193. package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
  194. package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
  195. package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
  196. package/test-e2e/node_modules/@babel/types/lib/validators/is.js +27 -0
  197. package/test-e2e/node_modules/@babel/types/lib/validators/is.js.map +1 -0
  198. package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
  199. package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
  200. package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
  201. package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
  202. package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
  203. package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
  204. package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js +13 -0
  205. package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
  206. package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js +12 -0
  207. package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
  208. package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
  209. package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
  210. package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
  211. package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
  212. package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
  213. package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
  214. package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js +18 -0
  215. package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
  216. package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
  217. package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
  218. package/test-e2e/node_modules/@babel/types/lib/validators/isType.js +17 -0
  219. package/test-e2e/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
  220. package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
  221. package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
  222. package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
  223. package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
  224. package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js +15 -0
  225. package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
  226. package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
  227. package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
  228. package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
  229. package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
  230. package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
  231. package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
  232. package/test-e2e/node_modules/@babel/types/lib/validators/validate.js +42 -0
  233. package/test-e2e/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
  234. package/test-e2e/node_modules/@babel/types/package.json +39 -0
  235. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
  236. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  237. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
  238. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
  239. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
  240. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
  241. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
  242. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
  243. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
  244. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
  245. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
  246. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
  247. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
  248. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  249. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
  250. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
  251. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
  252. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  253. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
  254. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
  255. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
  256. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  257. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
  258. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
  259. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
  260. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  261. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
  262. package/test-e2e/node_modules/@oxc-project/types/LICENSE +22 -0
  263. package/test-e2e/node_modules/@oxc-project/types/README.md +3 -0
  264. package/test-e2e/node_modules/@oxc-project/types/package.json +26 -0
  265. package/test-e2e/node_modules/@oxc-project/types/types.d.ts +1912 -0
  266. package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  267. package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  268. package/test-e2e/node_modules/@peter.naydenov/notice/CODE_OF_CONDUCT.md +128 -0
  269. package/test-e2e/node_modules/@peter.naydenov/notice/Changelog.md +88 -0
  270. package/test-e2e/node_modules/@peter.naydenov/notice/LICENSE +21 -0
  271. package/test-e2e/node_modules/@peter.naydenov/notice/README.md +294 -0
  272. package/test-e2e/node_modules/@peter.naydenov/notice/SECURITY.md +18 -0
  273. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/base.css +224 -0
  274. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/block-navigation.js +87 -0
  275. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/favicon.png +0 -0
  276. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/index.html +116 -0
  277. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/main.js.html +592 -0
  278. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.css +1 -0
  279. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.js +2 -0
  280. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  281. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sorter.js +196 -0
  282. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov.info +246 -0
  283. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46509-1760816753149-0.json +1 -0
  284. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46510-1760816753116-0.json +1 -0
  285. package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.cjs +1 -0
  286. package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.esm.mjs +1 -0
  287. package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.umd.js +1 -0
  288. package/test-e2e/node_modules/@peter.naydenov/notice/notice-desk.png +0 -0
  289. package/test-e2e/node_modules/@peter.naydenov/notice/package.json +64 -0
  290. package/test-e2e/node_modules/@peter.naydenov/notice/rollup.config.js +37 -0
  291. package/test-e2e/node_modules/@peter.naydenov/notice/src/main.js +168 -0
  292. package/test-e2e/node_modules/@peter.naydenov/notice/tsconfig.json +11 -0
  293. package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts +12 -0
  294. package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts.map +1 -0
  295. package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts +12 -0
  296. package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts.map +1 -0
  297. package/test-e2e/node_modules/@peter.naydenov/shortcuts/API.md +939 -0
  298. package/test-e2e/node_modules/@peter.naydenov/shortcuts/CODE_OF_CONDUCT.md +84 -0
  299. package/test-e2e/node_modules/@peter.naydenov/shortcuts/CONTRIBUTING.md +476 -0
  300. package/test-e2e/node_modules/@peter.naydenov/shortcuts/Changelog.md +217 -0
  301. package/test-e2e/node_modules/@peter.naydenov/shortcuts/How.to.create.plugins.md +929 -0
  302. package/test-e2e/node_modules/@peter.naydenov/shortcuts/LICENSE +21 -0
  303. package/test-e2e/node_modules/@peter.naydenov/shortcuts/Migration.guide.md +176 -0
  304. package/test-e2e/node_modules/@peter.naydenov/shortcuts/README-v.2.x.x.md +375 -0
  305. package/test-e2e/node_modules/@peter.naydenov/shortcuts/README.md +900 -0
  306. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/main.d.ts +172 -0
  307. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_normalizeWithPlugins.d.ts +64 -0
  308. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_readShortcutWithPlugins.d.ts +9 -0
  309. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_setupPlugin.d.ts +9 -0
  310. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_systemAction.d.ts +9 -0
  311. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/changeContext.d.ts +9 -0
  312. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/index.d.ts +19 -0
  313. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/listShortcuts.d.ts +2 -0
  314. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/load.d.ts +9 -0
  315. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/unload.d.ts +9 -0
  316. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_findTarget.d.ts +10 -0
  317. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_listenDOM.d.ts +78 -0
  318. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_normalizeShortcutName.d.ts +8 -0
  319. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_readClickEvent.d.ts +2 -0
  320. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_registerShortcutEvents.d.ts +28 -0
  321. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/index.d.ts +16 -0
  322. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_defaults.d.ts +17 -0
  323. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_listenDOM.d.ts +68 -0
  324. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_normalizeShortcutName.d.ts +2 -0
  325. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_registerShortcutEvents.d.ts +96 -0
  326. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/index.d.ts +9 -0
  327. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_findTarget.d.ts +10 -0
  328. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_listenDOM.d.ts +68 -0
  329. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
  330. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
  331. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/index.d.ts +14 -0
  332. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_listenDOM.d.ts +63 -0
  333. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_normalizeShortcutName.d.ts +2 -0
  334. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_readKeyEvent.d.ts +2 -0
  335. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_registerShortcutEvents.d.ts +28 -0
  336. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_specialChars.d.ts +7 -0
  337. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/index.d.ts +14 -0
  338. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_listenDOM.d.ts +58 -0
  339. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
  340. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
  341. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/index.d.ts +16 -0
  342. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.cjs +1 -0
  343. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.esm.mjs +1 -0
  344. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.umd.js +1 -0
  345. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/main.d.ts +172 -0
  346. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_normalizeWithPlugins.d.ts +64 -0
  347. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_readShortcutWithPlugins.d.ts +9 -0
  348. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_setupPlugin.d.ts +9 -0
  349. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_systemAction.d.ts +9 -0
  350. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/changeContext.d.ts +9 -0
  351. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/index.d.ts +19 -0
  352. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/listShortcuts.d.ts +2 -0
  353. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/load.d.ts +9 -0
  354. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/unload.d.ts +9 -0
  355. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_findTarget.d.ts +10 -0
  356. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_listenDOM.d.ts +78 -0
  357. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_normalizeShortcutName.d.ts +8 -0
  358. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_readClickEvent.d.ts +2 -0
  359. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_registerShortcutEvents.d.ts +28 -0
  360. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/index.d.ts +16 -0
  361. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_defaults.d.ts +17 -0
  362. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_listenDOM.d.ts +68 -0
  363. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_normalizeShortcutName.d.ts +2 -0
  364. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_registerShortcutEvents.d.ts +96 -0
  365. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/index.d.ts +9 -0
  366. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_findTarget.d.ts +10 -0
  367. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_listenDOM.d.ts +68 -0
  368. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_normalizeShortcutName.d.ts +2 -0
  369. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_registerShortcutEvents.d.ts +28 -0
  370. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/index.d.ts +14 -0
  371. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_listenDOM.d.ts +63 -0
  372. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_normalizeShortcutName.d.ts +2 -0
  373. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_readKeyEvent.d.ts +2 -0
  374. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_registerShortcutEvents.d.ts +28 -0
  375. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_specialChars.d.ts +7 -0
  376. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/index.d.ts +14 -0
  377. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_listenDOM.d.ts +58 -0
  378. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
  379. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
  380. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/index.d.ts +16 -0
  381. package/test-e2e/node_modules/@peter.naydenov/shortcuts/eslint.config.js +80 -0
  382. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-COTh6lXR.css +1 -0
  383. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-DOkKC3NI.js +53 -0
  384. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/bg.png +0 -0
  385. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.ico +0 -0
  386. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.svg +5 -0
  387. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/html.meta.json.gz +0 -0
  388. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/index.html +32 -0
  389. package/test-e2e/node_modules/@peter.naydenov/shortcuts/index.html +126 -0
  390. package/test-e2e/node_modules/@peter.naydenov/shortcuts/javascript.svg +1 -0
  391. package/test-e2e/node_modules/@peter.naydenov/shortcuts/jsconfig.json +10 -0
  392. package/test-e2e/node_modules/@peter.naydenov/shortcuts/package.json +66 -0
  393. package/test-e2e/node_modules/@peter.naydenov/shortcuts/public/vite.svg +1 -0
  394. package/test-e2e/node_modules/@peter.naydenov/shortcuts/rollup.config.js +40 -0
  395. package/test-e2e/node_modules/@peter.naydenov/shortcuts/shortcuts.png +0 -0
  396. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/main.js +302 -0
  397. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_normalizeWithPlugins.js +49 -0
  398. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_readShortcutWithPlugins.js +32 -0
  399. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_setupPlugin.js +93 -0
  400. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_systemAction.js +33 -0
  401. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/changeContext.js +68 -0
  402. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/index.js +25 -0
  403. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/listShortcuts.js +34 -0
  404. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/load.js +58 -0
  405. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/unload.js +38 -0
  406. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_findTarget.js +26 -0
  407. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_listenDOM.js +165 -0
  408. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_normalizeShortcutName.js +51 -0
  409. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_readClickEvent.js +24 -0
  410. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_registerShortcutEvents.js +58 -0
  411. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/index.js +67 -0
  412. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_defaults.js +28 -0
  413. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_listenDOM.js +127 -0
  414. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_normalizeShortcutName.js +21 -0
  415. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_registerShortcutEvents.js +147 -0
  416. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/index.js +58 -0
  417. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_findTarget.js +26 -0
  418. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_listenDOM.js +154 -0
  419. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_normalizeShortcutName.js +21 -0
  420. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_registerShortcutEvents.js +51 -0
  421. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/index.js +71 -0
  422. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_listenDOM.js +186 -0
  423. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_normalizeShortcutName.js +32 -0
  424. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_readKeyEvent.js +28 -0
  425. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_registerShortcutEvents.js +57 -0
  426. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_specialChars.js +43 -0
  427. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/index.js +67 -0
  428. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_listenDOM.js +141 -0
  429. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_normalizeShortcutName.js +21 -0
  430. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_registerShortcutEvents.js +50 -0
  431. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/index.js +61 -0
  432. package/test-e2e/node_modules/@peter.naydenov/shortcuts/style.css +97 -0
  433. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/01-general.test.js +275 -0
  434. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/02-key.test.js +473 -0
  435. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/03-click.test.js +596 -0
  436. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/04-form.test.js +327 -0
  437. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/05-hover.test.js +463 -0
  438. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/06-scroll.test.js +374 -0
  439. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/Block.jsx +15 -0
  440. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/setup.js +18 -0
  441. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/style.css +26 -0
  442. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/wait.js +8 -0
  443. package/test-e2e/node_modules/@peter.naydenov/shortcuts/tsconfig.json +24 -0
  444. package/test-e2e/node_modules/@peter.naydenov/shortcuts/vite.config.js +7 -0
  445. package/test-e2e/node_modules/@peter.naydenov/shortcuts/vitest.config.js +23 -0
  446. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/LICENSE +21 -0
  447. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/fixtures/example.json +5 -0
  448. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/commands.js +25 -0
  449. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component-index.html +12 -0
  450. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component.js +27 -0
  451. package/{cypress.config.mjs → test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress.config.js} +2 -3
  452. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.cjs +1 -0
  453. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.esm.mjs +1 -0
  454. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.umd.js +1 -0
  455. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/index.html +13 -0
  456. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/package.json +43 -0
  457. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/public/vite.svg +1 -0
  458. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/readme.md +233 -0
  459. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/rollup.config.js +42 -0
  460. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/App.vue +44 -0
  461. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/assets/vue.svg +1 -0
  462. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/components/HelloWorld.vue +26 -0
  463. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/main.js +101 -0
  464. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/style.css +90 -0
  465. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/test/01_general.cy.js +98 -0
  466. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/vite.config.js +7 -0
  467. package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
  468. package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
  469. package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  470. package/test-e2e/node_modules/@rolldown/pluginutils/LICENSE +25 -0
  471. package/test-e2e/node_modules/@rolldown/pluginutils/README.md +77 -0
  472. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
  473. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
  474. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
  475. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
  476. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
  477. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
  478. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
  479. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
  480. package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
  481. package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
  482. package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
  483. package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
  484. package/test-e2e/node_modules/@rolldown/pluginutils/package.json +37 -0
  485. package/test-e2e/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
  486. package/test-e2e/node_modules/@vitejs/plugin-vue/README.md +278 -0
  487. package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.d.mts +120 -0
  488. package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.mjs +1745 -0
  489. package/test-e2e/node_modules/@vitejs/plugin-vue/package.json +65 -0
  490. package/test-e2e/node_modules/@vue/compiler-core/LICENSE +21 -0
  491. package/test-e2e/node_modules/@vue/compiler-core/README.md +1 -0
  492. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6888 -0
  493. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  494. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
  495. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5835 -0
  496. package/test-e2e/node_modules/@vue/compiler-core/index.js +7 -0
  497. package/test-e2e/node_modules/@vue/compiler-core/package.json +58 -0
  498. package/test-e2e/node_modules/@vue/compiler-dom/LICENSE +21 -0
  499. package/test-e2e/node_modules/@vue/compiler-dom/README.md +1 -0
  500. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +934 -0
  501. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  502. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
  503. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +6644 -0
  504. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +14 -0
  505. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +690 -0
  506. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +6814 -0
  507. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +14 -0
  508. package/test-e2e/node_modules/@vue/compiler-dom/index.js +7 -0
  509. package/test-e2e/node_modules/@vue/compiler-dom/package.json +57 -0
  510. package/test-e2e/node_modules/@vue/compiler-sfc/LICENSE +21 -0
  511. package/test-e2e/node_modules/@vue/compiler-sfc/README.md +79 -0
  512. package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +25619 -0
  513. package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +487 -0
  514. package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +50833 -0
  515. package/test-e2e/node_modules/@vue/compiler-sfc/package.json +67 -0
  516. package/test-e2e/node_modules/@vue/compiler-ssr/LICENSE +21 -0
  517. package/test-e2e/node_modules/@vue/compiler-ssr/README.md +1 -0
  518. package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  519. package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
  520. package/test-e2e/node_modules/@vue/compiler-ssr/package.json +34 -0
  521. package/test-e2e/node_modules/@vue/reactivity/LICENSE +21 -0
  522. package/test-e2e/node_modules/@vue/reactivity/README.md +19 -0
  523. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.js +2033 -0
  524. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
  525. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.d.ts +756 -0
  526. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +2031 -0
  527. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
  528. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1990 -0
  529. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.js +2087 -0
  530. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
  531. package/test-e2e/node_modules/@vue/reactivity/index.js +7 -0
  532. package/test-e2e/node_modules/@vue/reactivity/package.json +55 -0
  533. package/test-e2e/node_modules/@vue/runtime-core/LICENSE +21 -0
  534. package/test-e2e/node_modules/@vue/runtime-core/README.md +28 -0
  535. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +8718 -0
  536. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
  537. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1866 -0
  538. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8647 -0
  539. package/test-e2e/node_modules/@vue/runtime-core/index.js +7 -0
  540. package/test-e2e/node_modules/@vue/runtime-core/package.json +52 -0
  541. package/test-e2e/node_modules/@vue/runtime-dom/LICENSE +21 -0
  542. package/test-e2e/node_modules/@vue/runtime-dom/README.md +13 -0
  543. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1946 -0
  544. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
  545. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1450 -0
  546. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12794 -0
  547. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +7 -0
  548. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1985 -0
  549. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +12847 -0
  550. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +7 -0
  551. package/test-e2e/node_modules/@vue/runtime-dom/index.js +7 -0
  552. package/test-e2e/node_modules/@vue/runtime-dom/package.json +60 -0
  553. package/test-e2e/node_modules/@vue/server-renderer/LICENSE +21 -0
  554. package/test-e2e/node_modules/@vue/server-renderer/README.md +178 -0
  555. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +1159 -0
  556. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
  557. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
  558. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +8627 -0
  559. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +5 -0
  560. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1097 -0
  561. package/test-e2e/node_modules/@vue/server-renderer/index.js +7 -0
  562. package/test-e2e/node_modules/@vue/server-renderer/package.json +55 -0
  563. package/test-e2e/node_modules/@vue/shared/LICENSE +21 -0
  564. package/test-e2e/node_modules/@vue/shared/README.md +3 -0
  565. package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.js +612 -0
  566. package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  567. package/test-e2e/node_modules/@vue/shared/dist/shared.d.ts +334 -0
  568. package/test-e2e/node_modules/@vue/shared/dist/shared.esm-bundler.js +536 -0
  569. package/test-e2e/node_modules/@vue/shared/index.js +7 -0
  570. package/test-e2e/node_modules/@vue/shared/package.json +47 -0
  571. package/test-e2e/node_modules/ask-for-promise/LICENSE +21 -0
  572. package/test-e2e/node_modules/ask-for-promise/README.md +278 -0
  573. package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.cjs +1 -0
  574. package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.esm.mjs +1 -0
  575. package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.umd.js +1 -0
  576. package/test-e2e/node_modules/ask-for-promise/package.json +77 -0
  577. package/test-e2e/node_modules/ask-for-promise/src/askForPromise.js +277 -0
  578. package/test-e2e/node_modules/ask-for-promise/types/index.d.ts +18 -0
  579. package/test-e2e/node_modules/csstype/LICENSE +19 -0
  580. package/test-e2e/node_modules/csstype/README.md +291 -0
  581. package/test-e2e/node_modules/csstype/index.d.ts +22569 -0
  582. package/test-e2e/node_modules/csstype/index.js.flow +6863 -0
  583. package/test-e2e/node_modules/csstype/package.json +70 -0
  584. package/test-e2e/node_modules/detect-libc/LICENSE +201 -0
  585. package/test-e2e/node_modules/detect-libc/README.md +163 -0
  586. package/test-e2e/node_modules/detect-libc/index.d.ts +14 -0
  587. package/test-e2e/node_modules/detect-libc/lib/detect-libc.js +313 -0
  588. package/test-e2e/node_modules/detect-libc/lib/elf.js +39 -0
  589. package/test-e2e/node_modules/detect-libc/lib/filesystem.js +51 -0
  590. package/test-e2e/node_modules/detect-libc/lib/process.js +24 -0
  591. package/test-e2e/node_modules/detect-libc/package.json +44 -0
  592. package/test-e2e/node_modules/entities/LICENSE +11 -0
  593. package/test-e2e/node_modules/entities/decode.d.ts +3 -0
  594. package/test-e2e/node_modules/entities/decode.js +3 -0
  595. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
  596. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
  597. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  598. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  599. package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
  600. package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
  601. package/test-e2e/node_modules/entities/dist/commonjs/decode.js +568 -0
  602. package/test-e2e/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  603. package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
  604. package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
  605. package/test-e2e/node_modules/entities/dist/commonjs/encode.js +92 -0
  606. package/test-e2e/node_modules/entities/dist/commonjs/encode.js.map +1 -0
  607. package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
  608. package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
  609. package/test-e2e/node_modules/entities/dist/commonjs/escape.js +138 -0
  610. package/test-e2e/node_modules/entities/dist/commonjs/escape.js.map +1 -0
  611. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  612. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
  613. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  614. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  615. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  616. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
  617. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  618. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  619. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
  620. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
  621. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
  622. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
  623. package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts +96 -0
  624. package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
  625. package/test-e2e/node_modules/entities/dist/commonjs/index.js +131 -0
  626. package/test-e2e/node_modules/entities/dist/commonjs/index.js.map +1 -0
  627. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
  628. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
  629. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  630. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
  631. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
  632. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
  633. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  634. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
  635. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
  636. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
  637. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
  638. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
  639. package/test-e2e/node_modules/entities/dist/commonjs/package.json +3 -0
  640. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
  641. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
  642. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
  643. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
  644. package/test-e2e/node_modules/entities/dist/esm/decode.d.ts +205 -0
  645. package/test-e2e/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
  646. package/test-e2e/node_modules/entities/dist/esm/decode.js +554 -0
  647. package/test-e2e/node_modules/entities/dist/esm/decode.js.map +1 -0
  648. package/test-e2e/node_modules/entities/dist/esm/encode.d.ts +22 -0
  649. package/test-e2e/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
  650. package/test-e2e/node_modules/entities/dist/esm/encode.js +88 -0
  651. package/test-e2e/node_modules/entities/dist/esm/encode.js.map +1 -0
  652. package/test-e2e/node_modules/entities/dist/esm/escape.d.ts +46 -0
  653. package/test-e2e/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
  654. package/test-e2e/node_modules/entities/dist/esm/escape.js +134 -0
  655. package/test-e2e/node_modules/entities/dist/esm/escape.js.map +1 -0
  656. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  657. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
  658. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
  659. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
  660. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  661. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
  662. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
  663. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
  664. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
  665. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
  666. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
  667. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
  668. package/test-e2e/node_modules/entities/dist/esm/index.d.ts +96 -0
  669. package/test-e2e/node_modules/entities/dist/esm/index.d.ts.map +1 -0
  670. package/test-e2e/node_modules/entities/dist/esm/index.js +107 -0
  671. package/test-e2e/node_modules/entities/dist/esm/index.js.map +1 -0
  672. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
  673. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
  674. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
  675. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
  676. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
  677. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
  678. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
  679. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
  680. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
  681. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
  682. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
  683. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
  684. package/test-e2e/node_modules/entities/dist/esm/package.json +3 -0
  685. package/test-e2e/node_modules/entities/escape.d.ts +3 -0
  686. package/test-e2e/node_modules/entities/escape.js +3 -0
  687. package/test-e2e/node_modules/entities/package.json +120 -0
  688. package/test-e2e/node_modules/entities/readme.md +143 -0
  689. package/test-e2e/node_modules/entities/src/decode-codepoint.ts +81 -0
  690. package/test-e2e/node_modules/entities/src/decode.ts +685 -0
  691. package/test-e2e/node_modules/entities/src/encode.ts +93 -0
  692. package/test-e2e/node_modules/entities/src/escape.ts +161 -0
  693. package/test-e2e/node_modules/entities/src/generated/.eslintrc.json +10 -0
  694. package/test-e2e/node_modules/entities/src/generated/decode-data-html.ts +6 -0
  695. package/test-e2e/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
  696. package/test-e2e/node_modules/entities/src/generated/encode-html.ts +17 -0
  697. package/test-e2e/node_modules/entities/src/index.ts +187 -0
  698. package/test-e2e/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  699. package/test-e2e/node_modules/entities/src/internal/decode-shared.ts +30 -0
  700. package/test-e2e/node_modules/entities/src/internal/encode-shared.ts +121 -0
  701. package/test-e2e/node_modules/estree-walker/CHANGELOG.md +92 -0
  702. package/test-e2e/node_modules/estree-walker/LICENSE +7 -0
  703. package/test-e2e/node_modules/estree-walker/README.md +48 -0
  704. package/test-e2e/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
  705. package/test-e2e/node_modules/estree-walker/dist/esm/package.json +1 -0
  706. package/test-e2e/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  707. package/test-e2e/node_modules/estree-walker/package.json +37 -0
  708. package/test-e2e/node_modules/estree-walker/src/async.js +118 -0
  709. package/test-e2e/node_modules/estree-walker/src/index.js +35 -0
  710. package/test-e2e/node_modules/estree-walker/src/package.json +1 -0
  711. package/test-e2e/node_modules/estree-walker/src/sync.js +118 -0
  712. package/test-e2e/node_modules/estree-walker/src/walker.js +61 -0
  713. package/test-e2e/node_modules/estree-walker/types/async.d.ts +53 -0
  714. package/test-e2e/node_modules/estree-walker/types/index.d.ts +56 -0
  715. package/test-e2e/node_modules/estree-walker/types/sync.d.ts +53 -0
  716. package/test-e2e/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
  717. package/test-e2e/node_modules/estree-walker/types/walker.d.ts +37 -0
  718. package/test-e2e/node_modules/fdir/LICENSE +7 -0
  719. package/test-e2e/node_modules/fdir/README.md +91 -0
  720. package/test-e2e/node_modules/fdir/dist/index.cjs +588 -0
  721. package/test-e2e/node_modules/fdir/dist/index.d.cts +155 -0
  722. package/test-e2e/node_modules/fdir/dist/index.d.mts +155 -0
  723. package/test-e2e/node_modules/fdir/dist/index.mjs +570 -0
  724. package/test-e2e/node_modules/fdir/package.json +103 -0
  725. package/test-e2e/node_modules/lightningcss/LICENSE +373 -0
  726. package/test-e2e/node_modules/lightningcss/README.md +105 -0
  727. package/test-e2e/node_modules/lightningcss/node/ast.d.ts +9892 -0
  728. package/test-e2e/node_modules/lightningcss/node/ast.js.flow +10539 -0
  729. package/test-e2e/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
  730. package/test-e2e/node_modules/lightningcss/node/composeVisitors.js +450 -0
  731. package/test-e2e/node_modules/lightningcss/node/flags.js +28 -0
  732. package/test-e2e/node_modules/lightningcss/node/index.d.ts +494 -0
  733. package/test-e2e/node_modules/lightningcss/node/index.js +59 -0
  734. package/test-e2e/node_modules/lightningcss/node/index.js.flow +843 -0
  735. package/test-e2e/node_modules/lightningcss/node/index.mjs +4 -0
  736. package/test-e2e/node_modules/lightningcss/node/targets.d.ts +40 -0
  737. package/test-e2e/node_modules/lightningcss/node/targets.js.flow +39 -0
  738. package/test-e2e/node_modules/lightningcss/package.json +110 -0
  739. package/test-e2e/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
  740. package/test-e2e/node_modules/lightningcss-darwin-arm64/README.md +1 -0
  741. package/test-e2e/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  742. package/test-e2e/node_modules/lightningcss-darwin-arm64/package.json +34 -0
  743. package/test-e2e/node_modules/magic-string/LICENSE +7 -0
  744. package/test-e2e/node_modules/magic-string/README.md +325 -0
  745. package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
  746. package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js +1594 -0
  747. package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
  748. package/test-e2e/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
  749. package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs +1588 -0
  750. package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
  751. package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js +1682 -0
  752. package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
  753. package/test-e2e/node_modules/magic-string/package.json +67 -0
  754. package/test-e2e/node_modules/nanoid/LICENSE +20 -0
  755. package/test-e2e/node_modules/nanoid/README.md +39 -0
  756. package/test-e2e/node_modules/nanoid/async/index.browser.cjs +69 -0
  757. package/test-e2e/node_modules/nanoid/async/index.browser.js +34 -0
  758. package/test-e2e/node_modules/nanoid/async/index.cjs +71 -0
  759. package/test-e2e/node_modules/nanoid/async/index.d.ts +56 -0
  760. package/test-e2e/node_modules/nanoid/async/index.js +35 -0
  761. package/test-e2e/node_modules/nanoid/async/index.native.js +26 -0
  762. package/test-e2e/node_modules/nanoid/async/package.json +12 -0
  763. package/test-e2e/node_modules/nanoid/bin/nanoid.cjs +55 -0
  764. package/test-e2e/node_modules/nanoid/index.browser.cjs +72 -0
  765. package/test-e2e/node_modules/nanoid/index.browser.js +34 -0
  766. package/test-e2e/node_modules/nanoid/index.cjs +85 -0
  767. package/test-e2e/node_modules/nanoid/index.d.cts +91 -0
  768. package/test-e2e/node_modules/nanoid/index.d.ts +91 -0
  769. package/test-e2e/node_modules/nanoid/index.js +45 -0
  770. package/test-e2e/node_modules/nanoid/nanoid.js +1 -0
  771. package/test-e2e/node_modules/nanoid/non-secure/index.cjs +34 -0
  772. package/test-e2e/node_modules/nanoid/non-secure/index.d.ts +33 -0
  773. package/test-e2e/node_modules/nanoid/non-secure/index.js +21 -0
  774. package/test-e2e/node_modules/nanoid/non-secure/package.json +6 -0
  775. package/test-e2e/node_modules/nanoid/package.json +89 -0
  776. package/test-e2e/node_modules/nanoid/url-alphabet/index.cjs +7 -0
  777. package/test-e2e/node_modules/nanoid/url-alphabet/index.js +3 -0
  778. package/test-e2e/node_modules/nanoid/url-alphabet/package.json +6 -0
  779. package/test-e2e/node_modules/picocolors/LICENSE +15 -0
  780. package/test-e2e/node_modules/picocolors/README.md +21 -0
  781. package/test-e2e/node_modules/picocolors/package.json +25 -0
  782. package/test-e2e/node_modules/picocolors/picocolors.browser.js +4 -0
  783. package/test-e2e/node_modules/picocolors/picocolors.d.ts +5 -0
  784. package/test-e2e/node_modules/picocolors/picocolors.js +75 -0
  785. package/test-e2e/node_modules/picocolors/types.d.ts +51 -0
  786. package/test-e2e/node_modules/picomatch/LICENSE +21 -0
  787. package/test-e2e/node_modules/picomatch/README.md +749 -0
  788. package/test-e2e/node_modules/picomatch/index.js +17 -0
  789. package/test-e2e/node_modules/picomatch/lib/constants.js +184 -0
  790. package/test-e2e/node_modules/picomatch/lib/parse.js +1386 -0
  791. package/test-e2e/node_modules/picomatch/lib/picomatch.js +349 -0
  792. package/test-e2e/node_modules/picomatch/lib/scan.js +391 -0
  793. package/test-e2e/node_modules/picomatch/lib/utils.js +72 -0
  794. package/test-e2e/node_modules/picomatch/package.json +82 -0
  795. package/test-e2e/node_modules/picomatch/posix.js +3 -0
  796. package/test-e2e/node_modules/postcss/LICENSE +20 -0
  797. package/test-e2e/node_modules/postcss/README.md +28 -0
  798. package/test-e2e/node_modules/postcss/lib/at-rule.d.ts +139 -0
  799. package/test-e2e/node_modules/postcss/lib/at-rule.js +25 -0
  800. package/test-e2e/node_modules/postcss/lib/comment.d.ts +67 -0
  801. package/test-e2e/node_modules/postcss/lib/comment.js +13 -0
  802. package/test-e2e/node_modules/postcss/lib/container.d.ts +478 -0
  803. package/test-e2e/node_modules/postcss/lib/container.js +447 -0
  804. package/test-e2e/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  805. package/test-e2e/node_modules/postcss/lib/css-syntax-error.js +133 -0
  806. package/test-e2e/node_modules/postcss/lib/declaration.d.ts +150 -0
  807. package/test-e2e/node_modules/postcss/lib/declaration.js +24 -0
  808. package/test-e2e/node_modules/postcss/lib/document.d.ts +68 -0
  809. package/test-e2e/node_modules/postcss/lib/document.js +33 -0
  810. package/test-e2e/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  811. package/test-e2e/node_modules/postcss/lib/fromJSON.js +54 -0
  812. package/test-e2e/node_modules/postcss/lib/input.d.ts +226 -0
  813. package/test-e2e/node_modules/postcss/lib/input.js +273 -0
  814. package/test-e2e/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  815. package/test-e2e/node_modules/postcss/lib/lazy-result.js +550 -0
  816. package/test-e2e/node_modules/postcss/lib/list.d.ts +60 -0
  817. package/test-e2e/node_modules/postcss/lib/list.js +58 -0
  818. package/test-e2e/node_modules/postcss/lib/map-generator.js +376 -0
  819. package/test-e2e/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  820. package/test-e2e/node_modules/postcss/lib/no-work-result.js +137 -0
  821. package/test-e2e/node_modules/postcss/lib/node.d.ts +555 -0
  822. package/test-e2e/node_modules/postcss/lib/node.js +449 -0
  823. package/test-e2e/node_modules/postcss/lib/parse.d.ts +9 -0
  824. package/test-e2e/node_modules/postcss/lib/parse.js +42 -0
  825. package/test-e2e/node_modules/postcss/lib/parser.js +611 -0
  826. package/test-e2e/node_modules/postcss/lib/postcss.d.mts +66 -0
  827. package/test-e2e/node_modules/postcss/lib/postcss.d.ts +456 -0
  828. package/test-e2e/node_modules/postcss/lib/postcss.js +101 -0
  829. package/test-e2e/node_modules/postcss/lib/postcss.mjs +30 -0
  830. package/test-e2e/node_modules/postcss/lib/previous-map.d.ts +80 -0
  831. package/test-e2e/node_modules/postcss/lib/previous-map.js +145 -0
  832. package/test-e2e/node_modules/postcss/lib/processor.d.ts +114 -0
  833. package/test-e2e/node_modules/postcss/lib/processor.js +67 -0
  834. package/test-e2e/node_modules/postcss/lib/result.d.ts +204 -0
  835. package/test-e2e/node_modules/postcss/lib/result.js +42 -0
  836. package/test-e2e/node_modules/postcss/lib/root.d.ts +86 -0
  837. package/test-e2e/node_modules/postcss/lib/root.js +61 -0
  838. package/test-e2e/node_modules/postcss/lib/rule.d.ts +126 -0
  839. package/test-e2e/node_modules/postcss/lib/rule.js +27 -0
  840. package/test-e2e/node_modules/postcss/lib/stringifier.d.ts +45 -0
  841. package/test-e2e/node_modules/postcss/lib/stringifier.js +353 -0
  842. package/test-e2e/node_modules/postcss/lib/stringify.d.ts +9 -0
  843. package/test-e2e/node_modules/postcss/lib/stringify.js +11 -0
  844. package/test-e2e/node_modules/postcss/lib/symbols.js +5 -0
  845. package/test-e2e/node_modules/postcss/lib/terminal-highlight.js +70 -0
  846. package/test-e2e/node_modules/postcss/lib/tokenize.js +266 -0
  847. package/test-e2e/node_modules/postcss/lib/warn-once.js +13 -0
  848. package/test-e2e/node_modules/postcss/lib/warning.d.ts +146 -0
  849. package/test-e2e/node_modules/postcss/lib/warning.js +37 -0
  850. package/test-e2e/node_modules/postcss/package.json +88 -0
  851. package/test-e2e/node_modules/rolldown/LICENSE +25 -0
  852. package/test-e2e/node_modules/rolldown/README.md +11 -0
  853. package/test-e2e/node_modules/rolldown/bin/cli.mjs +2 -0
  854. package/test-e2e/node_modules/rolldown/dist/cli.d.mts +1 -0
  855. package/test-e2e/node_modules/rolldown/dist/cli.mjs +1191 -0
  856. package/test-e2e/node_modules/rolldown/dist/config.d.mts +14 -0
  857. package/test-e2e/node_modules/rolldown/dist/config.mjs +4 -0
  858. package/test-e2e/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
  859. package/test-e2e/node_modules/rolldown/dist/experimental-index.mjs +320 -0
  860. package/test-e2e/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
  861. package/test-e2e/node_modules/rolldown/dist/filter-index.d.mts +196 -0
  862. package/test-e2e/node_modules/rolldown/dist/filter-index.mjs +386 -0
  863. package/test-e2e/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
  864. package/test-e2e/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
  865. package/test-e2e/node_modules/rolldown/dist/index.d.mts +4 -0
  866. package/test-e2e/node_modules/rolldown/dist/index.mjs +50 -0
  867. package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
  868. package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
  869. package/test-e2e/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
  870. package/test-e2e/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
  871. package/test-e2e/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
  872. package/test-e2e/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  873. package/test-e2e/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
  874. package/test-e2e/node_modules/rolldown/dist/plugins-index.mjs +40 -0
  875. package/test-e2e/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts +1872 -0
  876. package/test-e2e/node_modules/rolldown/dist/shared/binding-s-V_wTpj.mjs +582 -0
  877. package/test-e2e/node_modules/rolldown/dist/shared/bindingify-input-options-DYpBf1OG.mjs +2235 -0
  878. package/test-e2e/node_modules/rolldown/dist/shared/constructors-BaEBnHl3.mjs +68 -0
  879. package/test-e2e/node_modules/rolldown/dist/shared/constructors-DYemMpPL.d.mts +37 -0
  880. package/test-e2e/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
  881. package/test-e2e/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts +3795 -0
  882. package/test-e2e/node_modules/rolldown/dist/shared/error-w0u7biK-.mjs +85 -0
  883. package/test-e2e/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
  884. package/test-e2e/node_modules/rolldown/dist/shared/load-config-pmbgQdFU.mjs +120 -0
  885. package/test-e2e/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
  886. package/test-e2e/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
  887. package/test-e2e/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
  888. package/test-e2e/node_modules/rolldown/dist/shared/normalize-string-or-regex-CVvpepxa.mjs +66 -0
  889. package/test-e2e/node_modules/rolldown/dist/shared/parse-BywQARUG.mjs +74 -0
  890. package/test-e2e/node_modules/rolldown/dist/shared/prompt-BYQIwEjg.mjs +845 -0
  891. package/test-e2e/node_modules/rolldown/dist/shared/resolve-tsconfig-CNjJwuKB.mjs +113 -0
  892. package/test-e2e/node_modules/rolldown/dist/shared/rolldown-BLMDGLfI.mjs +40 -0
  893. package/test-e2e/node_modules/rolldown/dist/shared/rolldown-build-DtGk-m96.mjs +3321 -0
  894. package/test-e2e/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts +149 -0
  895. package/test-e2e/node_modules/rolldown/dist/shared/watch-Cixa7HbR.mjs +374 -0
  896. package/test-e2e/node_modules/rolldown/dist/utils-index.d.mts +376 -0
  897. package/test-e2e/node_modules/rolldown/dist/utils-index.mjs +2414 -0
  898. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/LICENSE +25 -0
  899. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/README.md +83 -0
  900. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
  901. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
  902. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
  903. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
  904. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
  905. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
  906. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
  907. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
  908. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
  909. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
  910. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
  911. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
  912. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/package.json +37 -0
  913. package/test-e2e/node_modules/rolldown/package.json +153 -0
  914. package/test-e2e/node_modules/source-map-js/LICENSE +28 -0
  915. package/test-e2e/node_modules/source-map-js/README.md +765 -0
  916. package/test-e2e/node_modules/source-map-js/lib/array-set.js +121 -0
  917. package/test-e2e/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  918. package/test-e2e/node_modules/source-map-js/lib/base64.js +67 -0
  919. package/test-e2e/node_modules/source-map-js/lib/binary-search.js +111 -0
  920. package/test-e2e/node_modules/source-map-js/lib/mapping-list.js +79 -0
  921. package/test-e2e/node_modules/source-map-js/lib/quick-sort.js +132 -0
  922. package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  923. package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  924. package/test-e2e/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  925. package/test-e2e/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  926. package/test-e2e/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  927. package/test-e2e/node_modules/source-map-js/lib/source-node.js +413 -0
  928. package/test-e2e/node_modules/source-map-js/lib/util.js +594 -0
  929. package/test-e2e/node_modules/source-map-js/package.json +71 -0
  930. package/test-e2e/node_modules/source-map-js/source-map.d.ts +104 -0
  931. package/test-e2e/node_modules/source-map-js/source-map.js +8 -0
  932. package/test-e2e/node_modules/tinyglobby/LICENSE +21 -0
  933. package/test-e2e/node_modules/tinyglobby/README.md +25 -0
  934. package/test-e2e/node_modules/tinyglobby/dist/index.cjs +334 -0
  935. package/test-e2e/node_modules/tinyglobby/dist/index.d.cts +148 -0
  936. package/test-e2e/node_modules/tinyglobby/dist/index.d.mts +148 -0
  937. package/test-e2e/node_modules/tinyglobby/dist/index.mjs +306 -0
  938. package/test-e2e/node_modules/tinyglobby/package.json +73 -0
  939. package/test-e2e/node_modules/vite/LICENSE.md +2230 -0
  940. package/test-e2e/node_modules/vite/README.md +20 -0
  941. package/test-e2e/node_modules/vite/bin/openChrome.js +68 -0
  942. package/test-e2e/node_modules/vite/bin/vite.js +79 -0
  943. package/test-e2e/node_modules/vite/client.d.ts +282 -0
  944. package/test-e2e/node_modules/vite/dist/client/client.mjs +1235 -0
  945. package/test-e2e/node_modules/vite/dist/client/env.mjs +18 -0
  946. package/test-e2e/node_modules/vite/dist/node/chunks/build.js +2 -0
  947. package/test-e2e/node_modules/vite/dist/node/chunks/build2.js +5378 -0
  948. package/test-e2e/node_modules/vite/dist/node/chunks/chunk.js +37 -0
  949. package/test-e2e/node_modules/vite/dist/node/chunks/config.js +2 -0
  950. package/test-e2e/node_modules/vite/dist/node/chunks/dist.js +6719 -0
  951. package/test-e2e/node_modules/vite/dist/node/chunks/lib.js +371 -0
  952. package/test-e2e/node_modules/vite/dist/node/chunks/logger.js +322 -0
  953. package/test-e2e/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
  954. package/test-e2e/node_modules/vite/dist/node/chunks/node.js +34785 -0
  955. package/test-e2e/node_modules/vite/dist/node/chunks/optimizer.js +2 -0
  956. package/test-e2e/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
  957. package/test-e2e/node_modules/vite/dist/node/chunks/preview.js +2 -0
  958. package/test-e2e/node_modules/vite/dist/node/chunks/server.js +2 -0
  959. package/test-e2e/node_modules/vite/dist/node/cli.js +837 -0
  960. package/test-e2e/node_modules/vite/dist/node/index.d.ts +3867 -0
  961. package/test-e2e/node_modules/vite/dist/node/index.js +3 -0
  962. package/test-e2e/node_modules/vite/dist/node/internal.d.ts +2 -0
  963. package/test-e2e/node_modules/vite/dist/node/internal.js +2 -0
  964. package/test-e2e/node_modules/vite/dist/node/module-runner.d.ts +315 -0
  965. package/test-e2e/node_modules/vite/dist/node/module-runner.js +1262 -0
  966. package/test-e2e/node_modules/vite/misc/false.js +1 -0
  967. package/test-e2e/node_modules/vite/misc/true.js +1 -0
  968. package/test-e2e/node_modules/vite/package.json +192 -0
  969. package/test-e2e/node_modules/vite/types/customEvent.d.ts +79 -0
  970. package/test-e2e/node_modules/vite/types/hmrPayload.d.ts +80 -0
  971. package/test-e2e/node_modules/vite/types/hot.d.ts +39 -0
  972. package/test-e2e/node_modules/vite/types/import-meta.d.ts +5 -0
  973. package/test-e2e/node_modules/vite/types/importGlob.d.ts +89 -0
  974. package/test-e2e/node_modules/vite/types/importMeta.d.ts +30 -0
  975. package/test-e2e/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  976. package/test-e2e/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
  977. package/test-e2e/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
  978. package/test-e2e/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  979. package/test-e2e/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
  980. package/test-e2e/node_modules/vite/types/metadata.d.ts +47 -0
  981. package/test-e2e/node_modules/vue/LICENSE +21 -0
  982. package/test-e2e/node_modules/vue/README.md +58 -0
  983. package/test-e2e/node_modules/vue/compiler-sfc/index.browser.js +1 -0
  984. package/test-e2e/node_modules/vue/compiler-sfc/index.browser.mjs +1 -0
  985. package/test-e2e/node_modules/vue/compiler-sfc/index.d.mts +1 -0
  986. package/test-e2e/node_modules/vue/compiler-sfc/index.d.ts +1 -0
  987. package/test-e2e/node_modules/vue/compiler-sfc/index.js +3 -0
  988. package/test-e2e/node_modules/vue/compiler-sfc/index.mjs +3 -0
  989. package/test-e2e/node_modules/vue/compiler-sfc/package.json +4 -0
  990. package/test-e2e/node_modules/vue/compiler-sfc/register-ts.js +3 -0
  991. package/test-e2e/node_modules/vue/dist/vue.cjs.js +80 -0
  992. package/test-e2e/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  993. package/test-e2e/node_modules/vue/dist/vue.d.mts +7 -0
  994. package/test-e2e/node_modules/vue/dist/vue.d.ts +7 -0
  995. package/test-e2e/node_modules/vue/dist/vue.esm-browser.js +18708 -0
  996. package/test-e2e/node_modules/vue/dist/vue.esm-browser.prod.js +13 -0
  997. package/test-e2e/node_modules/vue/dist/vue.esm-bundler.js +71 -0
  998. package/test-e2e/node_modules/vue/dist/vue.global.js +18588 -0
  999. package/test-e2e/node_modules/vue/dist/vue.global.prod.js +13 -0
  1000. package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.js +12817 -0
  1001. package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +7 -0
  1002. package/test-e2e/node_modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
  1003. package/test-e2e/node_modules/vue/dist/vue.runtime.global.js +12871 -0
  1004. package/test-e2e/node_modules/vue/dist/vue.runtime.global.prod.js +7 -0
  1005. package/test-e2e/node_modules/vue/index.js +7 -0
  1006. package/test-e2e/node_modules/vue/index.mjs +1 -0
  1007. package/test-e2e/node_modules/vue/jsx-runtime/index.d.ts +25 -0
  1008. package/test-e2e/node_modules/vue/jsx-runtime/index.js +15 -0
  1009. package/test-e2e/node_modules/vue/jsx-runtime/index.mjs +12 -0
  1010. package/test-e2e/node_modules/vue/jsx-runtime/package.json +5 -0
  1011. package/test-e2e/node_modules/vue/jsx.d.ts +22 -0
  1012. package/test-e2e/node_modules/vue/package.json +112 -0
  1013. package/test-e2e/node_modules/vue/server-renderer/index.d.mts +1 -0
  1014. package/test-e2e/node_modules/vue/server-renderer/index.d.ts +1 -0
  1015. package/test-e2e/node_modules/vue/server-renderer/index.js +1 -0
  1016. package/test-e2e/node_modules/vue/server-renderer/index.mjs +1 -0
  1017. package/test-e2e/node_modules/vue/server-renderer/package.json +4 -0
  1018. package/test-e2e/package-lock.json +1164 -0
  1019. package/test-e2e/package.json +17 -0
  1020. package/test-e2e/vite.config.js +17 -0
  1021. package/test-results/.last-run.json +4 -0
  1022. package/vite.config.js +12 -2
  1023. package/vitest.config.js +1 -1
  1024. package/cypress/support/component-index.html +0 -11
  1025. package/test/01-general.cy.js +0 -348
  1026. /package/{test → test-e2e}/blue.vue +0 -0
  1027. /package/{test → test-e2e}/dummy.vue +0 -0
  1028. /package/{test → test-e2e}/gray.vue +0 -0
  1029. /package/{test → test-e2e}/red.vue +0 -0
@@ -0,0 +1,1682 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.MagicString = factory());
5
+ })(this, (function () { 'use strict';
6
+
7
+ class BitSet {
8
+ constructor(arg) {
9
+ this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
10
+ }
11
+
12
+ add(n) {
13
+ this.bits[n >> 5] |= 1 << (n & 31);
14
+ }
15
+
16
+ has(n) {
17
+ return !!(this.bits[n >> 5] & (1 << (n & 31)));
18
+ }
19
+ }
20
+
21
+ class Chunk {
22
+ constructor(start, end, content) {
23
+ this.start = start;
24
+ this.end = end;
25
+ this.original = content;
26
+
27
+ this.intro = '';
28
+ this.outro = '';
29
+
30
+ this.content = content;
31
+ this.storeName = false;
32
+ this.edited = false;
33
+
34
+ {
35
+ this.previous = null;
36
+ this.next = null;
37
+ }
38
+ }
39
+
40
+ appendLeft(content) {
41
+ this.outro += content;
42
+ }
43
+
44
+ appendRight(content) {
45
+ this.intro = this.intro + content;
46
+ }
47
+
48
+ clone() {
49
+ const chunk = new Chunk(this.start, this.end, this.original);
50
+
51
+ chunk.intro = this.intro;
52
+ chunk.outro = this.outro;
53
+ chunk.content = this.content;
54
+ chunk.storeName = this.storeName;
55
+ chunk.edited = this.edited;
56
+
57
+ return chunk;
58
+ }
59
+
60
+ contains(index) {
61
+ return this.start < index && index < this.end;
62
+ }
63
+
64
+ eachNext(fn) {
65
+ let chunk = this;
66
+ while (chunk) {
67
+ fn(chunk);
68
+ chunk = chunk.next;
69
+ }
70
+ }
71
+
72
+ eachPrevious(fn) {
73
+ let chunk = this;
74
+ while (chunk) {
75
+ fn(chunk);
76
+ chunk = chunk.previous;
77
+ }
78
+ }
79
+
80
+ edit(content, storeName, contentOnly) {
81
+ this.content = content;
82
+ if (!contentOnly) {
83
+ this.intro = '';
84
+ this.outro = '';
85
+ }
86
+ this.storeName = storeName;
87
+
88
+ this.edited = true;
89
+
90
+ return this;
91
+ }
92
+
93
+ prependLeft(content) {
94
+ this.outro = content + this.outro;
95
+ }
96
+
97
+ prependRight(content) {
98
+ this.intro = content + this.intro;
99
+ }
100
+
101
+ reset() {
102
+ this.intro = '';
103
+ this.outro = '';
104
+ if (this.edited) {
105
+ this.content = this.original;
106
+ this.storeName = false;
107
+ this.edited = false;
108
+ }
109
+ }
110
+
111
+ split(index) {
112
+ const sliceIndex = index - this.start;
113
+
114
+ const originalBefore = this.original.slice(0, sliceIndex);
115
+ const originalAfter = this.original.slice(sliceIndex);
116
+
117
+ this.original = originalBefore;
118
+
119
+ const newChunk = new Chunk(index, this.end, originalAfter);
120
+ newChunk.outro = this.outro;
121
+ this.outro = '';
122
+
123
+ this.end = index;
124
+
125
+ if (this.edited) {
126
+ // after split we should save the edit content record into the correct chunk
127
+ // to make sure sourcemap correct
128
+ // For example:
129
+ // ' test'.trim()
130
+ // split -> ' ' + 'test'
131
+ // ✔️ edit -> '' + 'test'
132
+ // ✖️ edit -> 'test' + ''
133
+ // TODO is this block necessary?...
134
+ newChunk.edit('', false);
135
+ this.content = '';
136
+ } else {
137
+ this.content = originalBefore;
138
+ }
139
+
140
+ newChunk.next = this.next;
141
+ if (newChunk.next) newChunk.next.previous = newChunk;
142
+ newChunk.previous = this;
143
+ this.next = newChunk;
144
+
145
+ return newChunk;
146
+ }
147
+
148
+ toString() {
149
+ return this.intro + this.content + this.outro;
150
+ }
151
+
152
+ trimEnd(rx) {
153
+ this.outro = this.outro.replace(rx, '');
154
+ if (this.outro.length) return true;
155
+
156
+ const trimmed = this.content.replace(rx, '');
157
+
158
+ if (trimmed.length) {
159
+ if (trimmed !== this.content) {
160
+ this.split(this.start + trimmed.length).edit('', undefined, true);
161
+ if (this.edited) {
162
+ // save the change, if it has been edited
163
+ this.edit(trimmed, this.storeName, true);
164
+ }
165
+ }
166
+ return true;
167
+ } else {
168
+ this.edit('', undefined, true);
169
+
170
+ this.intro = this.intro.replace(rx, '');
171
+ if (this.intro.length) return true;
172
+ }
173
+ }
174
+
175
+ trimStart(rx) {
176
+ this.intro = this.intro.replace(rx, '');
177
+ if (this.intro.length) return true;
178
+
179
+ const trimmed = this.content.replace(rx, '');
180
+
181
+ if (trimmed.length) {
182
+ if (trimmed !== this.content) {
183
+ const newChunk = this.split(this.end - trimmed.length);
184
+ if (this.edited) {
185
+ // save the change, if it has been edited
186
+ newChunk.edit(trimmed, this.storeName, true);
187
+ }
188
+ this.edit('', undefined, true);
189
+ }
190
+ return true;
191
+ } else {
192
+ this.edit('', undefined, true);
193
+
194
+ this.outro = this.outro.replace(rx, '');
195
+ if (this.outro.length) return true;
196
+ }
197
+ }
198
+ }
199
+
200
+ // src/vlq.ts
201
+ var comma = ",".charCodeAt(0);
202
+ var semicolon = ";".charCodeAt(0);
203
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
204
+ var intToChar = new Uint8Array(64);
205
+ var charToInt = new Uint8Array(128);
206
+ for (let i = 0; i < chars.length; i++) {
207
+ const c = chars.charCodeAt(i);
208
+ intToChar[i] = c;
209
+ charToInt[c] = i;
210
+ }
211
+ function encodeInteger(builder, num, relative) {
212
+ let delta = num - relative;
213
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
214
+ do {
215
+ let clamped = delta & 31;
216
+ delta >>>= 5;
217
+ if (delta > 0) clamped |= 32;
218
+ builder.write(intToChar[clamped]);
219
+ } while (delta > 0);
220
+ return num;
221
+ }
222
+
223
+ // src/strings.ts
224
+ var bufLength = 1024 * 16;
225
+ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
226
+ decode(buf) {
227
+ const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
228
+ return out.toString();
229
+ }
230
+ } : {
231
+ decode(buf) {
232
+ let out = "";
233
+ for (let i = 0; i < buf.length; i++) {
234
+ out += String.fromCharCode(buf[i]);
235
+ }
236
+ return out;
237
+ }
238
+ };
239
+ var StringWriter = class {
240
+ constructor() {
241
+ this.pos = 0;
242
+ this.out = "";
243
+ this.buffer = new Uint8Array(bufLength);
244
+ }
245
+ write(v) {
246
+ const { buffer } = this;
247
+ buffer[this.pos++] = v;
248
+ if (this.pos === bufLength) {
249
+ this.out += td.decode(buffer);
250
+ this.pos = 0;
251
+ }
252
+ }
253
+ flush() {
254
+ const { buffer, out, pos } = this;
255
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
256
+ }
257
+ };
258
+ function encode(decoded) {
259
+ const writer = new StringWriter();
260
+ let sourcesIndex = 0;
261
+ let sourceLine = 0;
262
+ let sourceColumn = 0;
263
+ let namesIndex = 0;
264
+ for (let i = 0; i < decoded.length; i++) {
265
+ const line = decoded[i];
266
+ if (i > 0) writer.write(semicolon);
267
+ if (line.length === 0) continue;
268
+ let genColumn = 0;
269
+ for (let j = 0; j < line.length; j++) {
270
+ const segment = line[j];
271
+ if (j > 0) writer.write(comma);
272
+ genColumn = encodeInteger(writer, segment[0], genColumn);
273
+ if (segment.length === 1) continue;
274
+ sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
275
+ sourceLine = encodeInteger(writer, segment[2], sourceLine);
276
+ sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
277
+ if (segment.length === 4) continue;
278
+ namesIndex = encodeInteger(writer, segment[4], namesIndex);
279
+ }
280
+ }
281
+ return writer.flush();
282
+ }
283
+
284
+ function getBtoa() {
285
+ if (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') {
286
+ return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
287
+ } else if (typeof Buffer === 'function') {
288
+ return (str) => Buffer.from(str, 'utf-8').toString('base64');
289
+ } else {
290
+ return () => {
291
+ throw new Error('Unsupported environment: `window.btoa` or `Buffer` should be supported.');
292
+ };
293
+ }
294
+ }
295
+
296
+ const btoa = /*#__PURE__*/ getBtoa();
297
+
298
+ class SourceMap {
299
+ constructor(properties) {
300
+ this.version = 3;
301
+ this.file = properties.file;
302
+ this.sources = properties.sources;
303
+ this.sourcesContent = properties.sourcesContent;
304
+ this.names = properties.names;
305
+ this.mappings = encode(properties.mappings);
306
+ if (typeof properties.x_google_ignoreList !== 'undefined') {
307
+ this.x_google_ignoreList = properties.x_google_ignoreList;
308
+ }
309
+ if (typeof properties.debugId !== 'undefined') {
310
+ this.debugId = properties.debugId;
311
+ }
312
+ }
313
+
314
+ toString() {
315
+ return JSON.stringify(this);
316
+ }
317
+
318
+ toUrl() {
319
+ return 'data:application/json;charset=utf-8;base64,' + btoa(this.toString());
320
+ }
321
+ }
322
+
323
+ function guessIndent(code) {
324
+ const lines = code.split('\n');
325
+
326
+ const tabbed = lines.filter((line) => /^\t+/.test(line));
327
+ const spaced = lines.filter((line) => /^ {2,}/.test(line));
328
+
329
+ if (tabbed.length === 0 && spaced.length === 0) {
330
+ return null;
331
+ }
332
+
333
+ // More lines tabbed than spaced? Assume tabs, and
334
+ // default to tabs in the case of a tie (or nothing
335
+ // to go on)
336
+ if (tabbed.length >= spaced.length) {
337
+ return '\t';
338
+ }
339
+
340
+ // Otherwise, we need to guess the multiple
341
+ const min = spaced.reduce((previous, current) => {
342
+ const numSpaces = /^ +/.exec(current)[0].length;
343
+ return Math.min(numSpaces, previous);
344
+ }, Infinity);
345
+
346
+ return new Array(min + 1).join(' ');
347
+ }
348
+
349
+ function getRelativePath(from, to) {
350
+ const fromParts = from.split(/[/\\]/);
351
+ const toParts = to.split(/[/\\]/);
352
+
353
+ fromParts.pop(); // get dirname
354
+
355
+ while (fromParts[0] === toParts[0]) {
356
+ fromParts.shift();
357
+ toParts.shift();
358
+ }
359
+
360
+ if (fromParts.length) {
361
+ let i = fromParts.length;
362
+ while (i--) fromParts[i] = '..';
363
+ }
364
+
365
+ return fromParts.concat(toParts).join('/');
366
+ }
367
+
368
+ const toString = Object.prototype.toString;
369
+
370
+ function isObject(thing) {
371
+ return toString.call(thing) === '[object Object]';
372
+ }
373
+
374
+ function getLocator(source) {
375
+ const originalLines = source.split('\n');
376
+ const lineOffsets = [];
377
+
378
+ for (let i = 0, pos = 0; i < originalLines.length; i++) {
379
+ lineOffsets.push(pos);
380
+ pos += originalLines[i].length + 1;
381
+ }
382
+
383
+ return function locate(index) {
384
+ let i = 0;
385
+ let j = lineOffsets.length;
386
+ while (i < j) {
387
+ const m = (i + j) >> 1;
388
+ if (index < lineOffsets[m]) {
389
+ j = m;
390
+ } else {
391
+ i = m + 1;
392
+ }
393
+ }
394
+ const line = i - 1;
395
+ const column = index - lineOffsets[line];
396
+ return { line, column };
397
+ };
398
+ }
399
+
400
+ const wordRegex = /\w/;
401
+
402
+ class Mappings {
403
+ constructor(hires) {
404
+ this.hires = hires;
405
+ this.generatedCodeLine = 0;
406
+ this.generatedCodeColumn = 0;
407
+ this.raw = [];
408
+ this.rawSegments = this.raw[this.generatedCodeLine] = [];
409
+ this.pending = null;
410
+ }
411
+
412
+ addEdit(sourceIndex, content, loc, nameIndex) {
413
+ if (content.length) {
414
+ const contentLengthMinusOne = content.length - 1;
415
+ let contentLineEnd = content.indexOf('\n', 0);
416
+ let previousContentLineEnd = -1;
417
+ // Loop through each line in the content and add a segment, but stop if the last line is empty,
418
+ // else code afterwards would fill one line too many
419
+ while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
420
+ const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
421
+ if (nameIndex >= 0) {
422
+ segment.push(nameIndex);
423
+ }
424
+ this.rawSegments.push(segment);
425
+
426
+ this.generatedCodeLine += 1;
427
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
428
+ this.generatedCodeColumn = 0;
429
+
430
+ previousContentLineEnd = contentLineEnd;
431
+ contentLineEnd = content.indexOf('\n', contentLineEnd + 1);
432
+ }
433
+
434
+ const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
435
+ if (nameIndex >= 0) {
436
+ segment.push(nameIndex);
437
+ }
438
+ this.rawSegments.push(segment);
439
+
440
+ this.advance(content.slice(previousContentLineEnd + 1));
441
+ } else if (this.pending) {
442
+ this.rawSegments.push(this.pending);
443
+ this.advance(content);
444
+ }
445
+
446
+ this.pending = null;
447
+ }
448
+
449
+ addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
450
+ let originalCharIndex = chunk.start;
451
+ let first = true;
452
+ // when iterating each char, check if it's in a word boundary
453
+ let charInHiresBoundary = false;
454
+
455
+ while (originalCharIndex < chunk.end) {
456
+ if (original[originalCharIndex] === '\n') {
457
+ loc.line += 1;
458
+ loc.column = 0;
459
+ this.generatedCodeLine += 1;
460
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
461
+ this.generatedCodeColumn = 0;
462
+ first = true;
463
+ charInHiresBoundary = false;
464
+ } else {
465
+ if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
466
+ const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
467
+
468
+ if (this.hires === 'boundary') {
469
+ // in hires "boundary", group segments per word boundary than per char
470
+ if (wordRegex.test(original[originalCharIndex])) {
471
+ // for first char in the boundary found, start the boundary by pushing a segment
472
+ if (!charInHiresBoundary) {
473
+ this.rawSegments.push(segment);
474
+ charInHiresBoundary = true;
475
+ }
476
+ } else {
477
+ // for non-word char, end the boundary by pushing a segment
478
+ this.rawSegments.push(segment);
479
+ charInHiresBoundary = false;
480
+ }
481
+ } else {
482
+ this.rawSegments.push(segment);
483
+ }
484
+ }
485
+
486
+ loc.column += 1;
487
+ this.generatedCodeColumn += 1;
488
+ first = false;
489
+ }
490
+
491
+ originalCharIndex += 1;
492
+ }
493
+
494
+ this.pending = null;
495
+ }
496
+
497
+ advance(str) {
498
+ if (!str) return;
499
+
500
+ const lines = str.split('\n');
501
+
502
+ if (lines.length > 1) {
503
+ for (let i = 0; i < lines.length - 1; i++) {
504
+ this.generatedCodeLine++;
505
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
506
+ }
507
+ this.generatedCodeColumn = 0;
508
+ }
509
+
510
+ this.generatedCodeColumn += lines[lines.length - 1].length;
511
+ }
512
+ }
513
+
514
+ const n = '\n';
515
+
516
+ const warned = {
517
+ insertLeft: false,
518
+ insertRight: false,
519
+ storeName: false,
520
+ };
521
+
522
+ class MagicString {
523
+ constructor(string, options = {}) {
524
+ const chunk = new Chunk(0, string.length, string);
525
+
526
+ Object.defineProperties(this, {
527
+ original: { writable: true, value: string },
528
+ outro: { writable: true, value: '' },
529
+ intro: { writable: true, value: '' },
530
+ firstChunk: { writable: true, value: chunk },
531
+ lastChunk: { writable: true, value: chunk },
532
+ lastSearchedChunk: { writable: true, value: chunk },
533
+ byStart: { writable: true, value: {} },
534
+ byEnd: { writable: true, value: {} },
535
+ filename: { writable: true, value: options.filename },
536
+ indentExclusionRanges: { writable: true, value: options.indentExclusionRanges },
537
+ sourcemapLocations: { writable: true, value: new BitSet() },
538
+ storedNames: { writable: true, value: {} },
539
+ indentStr: { writable: true, value: undefined },
540
+ ignoreList: { writable: true, value: options.ignoreList },
541
+ offset: { writable: true, value: options.offset || 0 },
542
+ });
543
+
544
+ this.byStart[0] = chunk;
545
+ this.byEnd[string.length] = chunk;
546
+ }
547
+
548
+ addSourcemapLocation(char) {
549
+ this.sourcemapLocations.add(char);
550
+ }
551
+
552
+ append(content) {
553
+ if (typeof content !== 'string') throw new TypeError('outro content must be a string');
554
+
555
+ this.outro += content;
556
+ return this;
557
+ }
558
+
559
+ appendLeft(index, content) {
560
+ index = index + this.offset;
561
+
562
+ if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
563
+
564
+ this._split(index);
565
+
566
+ const chunk = this.byEnd[index];
567
+
568
+ if (chunk) {
569
+ chunk.appendLeft(content);
570
+ } else {
571
+ this.intro += content;
572
+ }
573
+ return this;
574
+ }
575
+
576
+ appendRight(index, content) {
577
+ index = index + this.offset;
578
+
579
+ if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
580
+
581
+ this._split(index);
582
+
583
+ const chunk = this.byStart[index];
584
+
585
+ if (chunk) {
586
+ chunk.appendRight(content);
587
+ } else {
588
+ this.outro += content;
589
+ }
590
+ return this;
591
+ }
592
+
593
+ clone() {
594
+ const cloned = new MagicString(this.original, { filename: this.filename, offset: this.offset });
595
+
596
+ let originalChunk = this.firstChunk;
597
+ let clonedChunk = (cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone());
598
+
599
+ while (originalChunk) {
600
+ cloned.byStart[clonedChunk.start] = clonedChunk;
601
+ cloned.byEnd[clonedChunk.end] = clonedChunk;
602
+
603
+ const nextOriginalChunk = originalChunk.next;
604
+ const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
605
+
606
+ if (nextClonedChunk) {
607
+ clonedChunk.next = nextClonedChunk;
608
+ nextClonedChunk.previous = clonedChunk;
609
+
610
+ clonedChunk = nextClonedChunk;
611
+ }
612
+
613
+ originalChunk = nextOriginalChunk;
614
+ }
615
+
616
+ cloned.lastChunk = clonedChunk;
617
+
618
+ if (this.indentExclusionRanges) {
619
+ cloned.indentExclusionRanges = this.indentExclusionRanges.slice();
620
+ }
621
+
622
+ cloned.sourcemapLocations = new BitSet(this.sourcemapLocations);
623
+
624
+ cloned.intro = this.intro;
625
+ cloned.outro = this.outro;
626
+
627
+ return cloned;
628
+ }
629
+
630
+ generateDecodedMap(options) {
631
+ options = options || {};
632
+
633
+ const sourceIndex = 0;
634
+ const names = Object.keys(this.storedNames);
635
+ const mappings = new Mappings(options.hires);
636
+
637
+ const locate = getLocator(this.original);
638
+
639
+ if (this.intro) {
640
+ mappings.advance(this.intro);
641
+ }
642
+
643
+ this.firstChunk.eachNext((chunk) => {
644
+ const loc = locate(chunk.start);
645
+
646
+ if (chunk.intro.length) mappings.advance(chunk.intro);
647
+
648
+ if (chunk.edited) {
649
+ mappings.addEdit(
650
+ sourceIndex,
651
+ chunk.content,
652
+ loc,
653
+ chunk.storeName ? names.indexOf(chunk.original) : -1,
654
+ );
655
+ } else {
656
+ mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
657
+ }
658
+
659
+ if (chunk.outro.length) mappings.advance(chunk.outro);
660
+ });
661
+
662
+ if (this.outro) {
663
+ mappings.advance(this.outro);
664
+ }
665
+
666
+ return {
667
+ file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
668
+ sources: [
669
+ options.source ? getRelativePath(options.file || '', options.source) : options.file || '',
670
+ ],
671
+ sourcesContent: options.includeContent ? [this.original] : undefined,
672
+ names,
673
+ mappings: mappings.raw,
674
+ x_google_ignoreList: this.ignoreList ? [sourceIndex] : undefined,
675
+ };
676
+ }
677
+
678
+ generateMap(options) {
679
+ return new SourceMap(this.generateDecodedMap(options));
680
+ }
681
+
682
+ _ensureindentStr() {
683
+ if (this.indentStr === undefined) {
684
+ this.indentStr = guessIndent(this.original);
685
+ }
686
+ }
687
+
688
+ _getRawIndentString() {
689
+ this._ensureindentStr();
690
+ return this.indentStr;
691
+ }
692
+
693
+ getIndentString() {
694
+ this._ensureindentStr();
695
+ return this.indentStr === null ? '\t' : this.indentStr;
696
+ }
697
+
698
+ indent(indentStr, options) {
699
+ const pattern = /^[^\r\n]/gm;
700
+
701
+ if (isObject(indentStr)) {
702
+ options = indentStr;
703
+ indentStr = undefined;
704
+ }
705
+
706
+ if (indentStr === undefined) {
707
+ this._ensureindentStr();
708
+ indentStr = this.indentStr || '\t';
709
+ }
710
+
711
+ if (indentStr === '') return this; // noop
712
+
713
+ options = options || {};
714
+
715
+ // Process exclusion ranges
716
+ const isExcluded = {};
717
+
718
+ if (options.exclude) {
719
+ const exclusions =
720
+ typeof options.exclude[0] === 'number' ? [options.exclude] : options.exclude;
721
+ exclusions.forEach((exclusion) => {
722
+ for (let i = exclusion[0]; i < exclusion[1]; i += 1) {
723
+ isExcluded[i] = true;
724
+ }
725
+ });
726
+ }
727
+
728
+ let shouldIndentNextCharacter = options.indentStart !== false;
729
+ const replacer = (match) => {
730
+ if (shouldIndentNextCharacter) return `${indentStr}${match}`;
731
+ shouldIndentNextCharacter = true;
732
+ return match;
733
+ };
734
+
735
+ this.intro = this.intro.replace(pattern, replacer);
736
+
737
+ let charIndex = 0;
738
+ let chunk = this.firstChunk;
739
+
740
+ while (chunk) {
741
+ const end = chunk.end;
742
+
743
+ if (chunk.edited) {
744
+ if (!isExcluded[charIndex]) {
745
+ chunk.content = chunk.content.replace(pattern, replacer);
746
+
747
+ if (chunk.content.length) {
748
+ shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === '\n';
749
+ }
750
+ }
751
+ } else {
752
+ charIndex = chunk.start;
753
+
754
+ while (charIndex < end) {
755
+ if (!isExcluded[charIndex]) {
756
+ const char = this.original[charIndex];
757
+
758
+ if (char === '\n') {
759
+ shouldIndentNextCharacter = true;
760
+ } else if (char !== '\r' && shouldIndentNextCharacter) {
761
+ shouldIndentNextCharacter = false;
762
+
763
+ if (charIndex === chunk.start) {
764
+ chunk.prependRight(indentStr);
765
+ } else {
766
+ this._splitChunk(chunk, charIndex);
767
+ chunk = chunk.next;
768
+ chunk.prependRight(indentStr);
769
+ }
770
+ }
771
+ }
772
+
773
+ charIndex += 1;
774
+ }
775
+ }
776
+
777
+ charIndex = chunk.end;
778
+ chunk = chunk.next;
779
+ }
780
+
781
+ this.outro = this.outro.replace(pattern, replacer);
782
+
783
+ return this;
784
+ }
785
+
786
+ insert() {
787
+ throw new Error(
788
+ 'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)',
789
+ );
790
+ }
791
+
792
+ insertLeft(index, content) {
793
+ if (!warned.insertLeft) {
794
+ console.warn(
795
+ 'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
796
+ );
797
+ warned.insertLeft = true;
798
+ }
799
+
800
+ return this.appendLeft(index, content);
801
+ }
802
+
803
+ insertRight(index, content) {
804
+ if (!warned.insertRight) {
805
+ console.warn(
806
+ 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
807
+ );
808
+ warned.insertRight = true;
809
+ }
810
+
811
+ return this.prependRight(index, content);
812
+ }
813
+
814
+ move(start, end, index) {
815
+ start = start + this.offset;
816
+ end = end + this.offset;
817
+ index = index + this.offset;
818
+
819
+ if (index >= start && index <= end) throw new Error('Cannot move a selection inside itself');
820
+
821
+ this._split(start);
822
+ this._split(end);
823
+ this._split(index);
824
+
825
+ const first = this.byStart[start];
826
+ const last = this.byEnd[end];
827
+
828
+ const oldLeft = first.previous;
829
+ const oldRight = last.next;
830
+
831
+ const newRight = this.byStart[index];
832
+ if (!newRight && last === this.lastChunk) return this;
833
+ const newLeft = newRight ? newRight.previous : this.lastChunk;
834
+
835
+ if (oldLeft) oldLeft.next = oldRight;
836
+ if (oldRight) oldRight.previous = oldLeft;
837
+
838
+ if (newLeft) newLeft.next = first;
839
+ if (newRight) newRight.previous = last;
840
+
841
+ if (!first.previous) this.firstChunk = last.next;
842
+ if (!last.next) {
843
+ this.lastChunk = first.previous;
844
+ this.lastChunk.next = null;
845
+ }
846
+
847
+ first.previous = newLeft;
848
+ last.next = newRight || null;
849
+
850
+ if (!newLeft) this.firstChunk = first;
851
+ if (!newRight) this.lastChunk = last;
852
+ return this;
853
+ }
854
+
855
+ overwrite(start, end, content, options) {
856
+ options = options || {};
857
+ return this.update(start, end, content, { ...options, overwrite: !options.contentOnly });
858
+ }
859
+
860
+ update(start, end, content, options) {
861
+ start = start + this.offset;
862
+ end = end + this.offset;
863
+
864
+ if (typeof content !== 'string') throw new TypeError('replacement content must be a string');
865
+
866
+ if (this.original.length !== 0) {
867
+ while (start < 0) start += this.original.length;
868
+ while (end < 0) end += this.original.length;
869
+ }
870
+
871
+ if (end > this.original.length) throw new Error('end is out of bounds');
872
+ if (start === end)
873
+ throw new Error(
874
+ 'Cannot overwrite a zero-length range – use appendLeft or prependRight instead',
875
+ );
876
+
877
+ this._split(start);
878
+ this._split(end);
879
+
880
+ if (options === true) {
881
+ if (!warned.storeName) {
882
+ console.warn(
883
+ 'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string',
884
+ );
885
+ warned.storeName = true;
886
+ }
887
+
888
+ options = { storeName: true };
889
+ }
890
+ const storeName = options !== undefined ? options.storeName : false;
891
+ const overwrite = options !== undefined ? options.overwrite : false;
892
+
893
+ if (storeName) {
894
+ const original = this.original.slice(start, end);
895
+ Object.defineProperty(this.storedNames, original, {
896
+ writable: true,
897
+ value: true,
898
+ enumerable: true,
899
+ });
900
+ }
901
+
902
+ const first = this.byStart[start];
903
+ const last = this.byEnd[end];
904
+
905
+ if (first) {
906
+ let chunk = first;
907
+ while (chunk !== last) {
908
+ if (chunk.next !== this.byStart[chunk.end]) {
909
+ throw new Error('Cannot overwrite across a split point');
910
+ }
911
+ chunk = chunk.next;
912
+ chunk.edit('', false);
913
+ }
914
+
915
+ first.edit(content, storeName, !overwrite);
916
+ } else {
917
+ // must be inserting at the end
918
+ const newChunk = new Chunk(start, end, '').edit(content, storeName);
919
+
920
+ // TODO last chunk in the array may not be the last chunk, if it's moved...
921
+ last.next = newChunk;
922
+ newChunk.previous = last;
923
+ }
924
+ return this;
925
+ }
926
+
927
+ prepend(content) {
928
+ if (typeof content !== 'string') throw new TypeError('outro content must be a string');
929
+
930
+ this.intro = content + this.intro;
931
+ return this;
932
+ }
933
+
934
+ prependLeft(index, content) {
935
+ index = index + this.offset;
936
+
937
+ if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
938
+
939
+ this._split(index);
940
+
941
+ const chunk = this.byEnd[index];
942
+
943
+ if (chunk) {
944
+ chunk.prependLeft(content);
945
+ } else {
946
+ this.intro = content + this.intro;
947
+ }
948
+ return this;
949
+ }
950
+
951
+ prependRight(index, content) {
952
+ index = index + this.offset;
953
+
954
+ if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
955
+
956
+ this._split(index);
957
+
958
+ const chunk = this.byStart[index];
959
+
960
+ if (chunk) {
961
+ chunk.prependRight(content);
962
+ } else {
963
+ this.outro = content + this.outro;
964
+ }
965
+ return this;
966
+ }
967
+
968
+ remove(start, end) {
969
+ start = start + this.offset;
970
+ end = end + this.offset;
971
+
972
+ if (this.original.length !== 0) {
973
+ while (start < 0) start += this.original.length;
974
+ while (end < 0) end += this.original.length;
975
+ }
976
+
977
+ if (start === end) return this;
978
+
979
+ if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
980
+ if (start > end) throw new Error('end must be greater than start');
981
+
982
+ this._split(start);
983
+ this._split(end);
984
+
985
+ let chunk = this.byStart[start];
986
+
987
+ while (chunk) {
988
+ chunk.intro = '';
989
+ chunk.outro = '';
990
+ chunk.edit('');
991
+
992
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
993
+ }
994
+ return this;
995
+ }
996
+
997
+ reset(start, end) {
998
+ start = start + this.offset;
999
+ end = end + this.offset;
1000
+
1001
+ if (this.original.length !== 0) {
1002
+ while (start < 0) start += this.original.length;
1003
+ while (end < 0) end += this.original.length;
1004
+ }
1005
+
1006
+ if (start === end) return this;
1007
+
1008
+ if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
1009
+ if (start > end) throw new Error('end must be greater than start');
1010
+
1011
+ this._split(start);
1012
+ this._split(end);
1013
+
1014
+ let chunk = this.byStart[start];
1015
+
1016
+ while (chunk) {
1017
+ chunk.reset();
1018
+
1019
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
1020
+ }
1021
+ return this;
1022
+ }
1023
+
1024
+ lastChar() {
1025
+ if (this.outro.length) return this.outro[this.outro.length - 1];
1026
+ let chunk = this.lastChunk;
1027
+ do {
1028
+ if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
1029
+ if (chunk.content.length) return chunk.content[chunk.content.length - 1];
1030
+ if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
1031
+ } while ((chunk = chunk.previous));
1032
+ if (this.intro.length) return this.intro[this.intro.length - 1];
1033
+ return '';
1034
+ }
1035
+
1036
+ lastLine() {
1037
+ let lineIndex = this.outro.lastIndexOf(n);
1038
+ if (lineIndex !== -1) return this.outro.substr(lineIndex + 1);
1039
+ let lineStr = this.outro;
1040
+ let chunk = this.lastChunk;
1041
+ do {
1042
+ if (chunk.outro.length > 0) {
1043
+ lineIndex = chunk.outro.lastIndexOf(n);
1044
+ if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;
1045
+ lineStr = chunk.outro + lineStr;
1046
+ }
1047
+
1048
+ if (chunk.content.length > 0) {
1049
+ lineIndex = chunk.content.lastIndexOf(n);
1050
+ if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;
1051
+ lineStr = chunk.content + lineStr;
1052
+ }
1053
+
1054
+ if (chunk.intro.length > 0) {
1055
+ lineIndex = chunk.intro.lastIndexOf(n);
1056
+ if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;
1057
+ lineStr = chunk.intro + lineStr;
1058
+ }
1059
+ } while ((chunk = chunk.previous));
1060
+ lineIndex = this.intro.lastIndexOf(n);
1061
+ if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;
1062
+ return this.intro + lineStr;
1063
+ }
1064
+
1065
+ slice(start = 0, end = this.original.length - this.offset) {
1066
+ start = start + this.offset;
1067
+ end = end + this.offset;
1068
+
1069
+ if (this.original.length !== 0) {
1070
+ while (start < 0) start += this.original.length;
1071
+ while (end < 0) end += this.original.length;
1072
+ }
1073
+
1074
+ let result = '';
1075
+
1076
+ // find start chunk
1077
+ let chunk = this.firstChunk;
1078
+ while (chunk && (chunk.start > start || chunk.end <= start)) {
1079
+ // found end chunk before start
1080
+ if (chunk.start < end && chunk.end >= end) {
1081
+ return result;
1082
+ }
1083
+
1084
+ chunk = chunk.next;
1085
+ }
1086
+
1087
+ if (chunk && chunk.edited && chunk.start !== start)
1088
+ throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
1089
+
1090
+ const startChunk = chunk;
1091
+ while (chunk) {
1092
+ if (chunk.intro && (startChunk !== chunk || chunk.start === start)) {
1093
+ result += chunk.intro;
1094
+ }
1095
+
1096
+ const containsEnd = chunk.start < end && chunk.end >= end;
1097
+ if (containsEnd && chunk.edited && chunk.end !== end)
1098
+ throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
1099
+
1100
+ const sliceStart = startChunk === chunk ? start - chunk.start : 0;
1101
+ const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
1102
+
1103
+ result += chunk.content.slice(sliceStart, sliceEnd);
1104
+
1105
+ if (chunk.outro && (!containsEnd || chunk.end === end)) {
1106
+ result += chunk.outro;
1107
+ }
1108
+
1109
+ if (containsEnd) {
1110
+ break;
1111
+ }
1112
+
1113
+ chunk = chunk.next;
1114
+ }
1115
+
1116
+ return result;
1117
+ }
1118
+
1119
+ // TODO deprecate this? not really very useful
1120
+ snip(start, end) {
1121
+ const clone = this.clone();
1122
+ clone.remove(0, start);
1123
+ clone.remove(end, clone.original.length);
1124
+
1125
+ return clone;
1126
+ }
1127
+
1128
+ _split(index) {
1129
+ if (this.byStart[index] || this.byEnd[index]) return;
1130
+
1131
+ let chunk = this.lastSearchedChunk;
1132
+ let previousChunk = chunk;
1133
+ const searchForward = index > chunk.end;
1134
+
1135
+ while (chunk) {
1136
+ if (chunk.contains(index)) return this._splitChunk(chunk, index);
1137
+
1138
+ chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
1139
+
1140
+ // Prevent infinite loop (e.g. via empty chunks, where start === end)
1141
+ if (chunk === previousChunk) return;
1142
+
1143
+ previousChunk = chunk;
1144
+ }
1145
+ }
1146
+
1147
+ _splitChunk(chunk, index) {
1148
+ if (chunk.edited && chunk.content.length) {
1149
+ // zero-length edited chunks are a special case (overlapping replacements)
1150
+ const loc = getLocator(this.original)(index);
1151
+ throw new Error(
1152
+ `Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`,
1153
+ );
1154
+ }
1155
+
1156
+ const newChunk = chunk.split(index);
1157
+
1158
+ this.byEnd[index] = chunk;
1159
+ this.byStart[index] = newChunk;
1160
+ this.byEnd[newChunk.end] = newChunk;
1161
+
1162
+ if (chunk === this.lastChunk) this.lastChunk = newChunk;
1163
+
1164
+ this.lastSearchedChunk = chunk;
1165
+ return true;
1166
+ }
1167
+
1168
+ toString() {
1169
+ let str = this.intro;
1170
+
1171
+ let chunk = this.firstChunk;
1172
+ while (chunk) {
1173
+ str += chunk.toString();
1174
+ chunk = chunk.next;
1175
+ }
1176
+
1177
+ return str + this.outro;
1178
+ }
1179
+
1180
+ isEmpty() {
1181
+ let chunk = this.firstChunk;
1182
+ do {
1183
+ if (
1184
+ (chunk.intro.length && chunk.intro.trim()) ||
1185
+ (chunk.content.length && chunk.content.trim()) ||
1186
+ (chunk.outro.length && chunk.outro.trim())
1187
+ )
1188
+ return false;
1189
+ } while ((chunk = chunk.next));
1190
+ return true;
1191
+ }
1192
+
1193
+ length() {
1194
+ let chunk = this.firstChunk;
1195
+ let length = 0;
1196
+ do {
1197
+ length += chunk.intro.length + chunk.content.length + chunk.outro.length;
1198
+ } while ((chunk = chunk.next));
1199
+ return length;
1200
+ }
1201
+
1202
+ trimLines() {
1203
+ return this.trim('[\\r\\n]');
1204
+ }
1205
+
1206
+ trim(charType) {
1207
+ return this.trimStart(charType).trimEnd(charType);
1208
+ }
1209
+
1210
+ trimEndAborted(charType) {
1211
+ const rx = new RegExp((charType || '\\s') + '+$');
1212
+
1213
+ this.outro = this.outro.replace(rx, '');
1214
+ if (this.outro.length) return true;
1215
+
1216
+ let chunk = this.lastChunk;
1217
+
1218
+ do {
1219
+ const end = chunk.end;
1220
+ const aborted = chunk.trimEnd(rx);
1221
+
1222
+ // if chunk was trimmed, we have a new lastChunk
1223
+ if (chunk.end !== end) {
1224
+ if (this.lastChunk === chunk) {
1225
+ this.lastChunk = chunk.next;
1226
+ }
1227
+
1228
+ this.byEnd[chunk.end] = chunk;
1229
+ this.byStart[chunk.next.start] = chunk.next;
1230
+ this.byEnd[chunk.next.end] = chunk.next;
1231
+ }
1232
+
1233
+ if (aborted) return true;
1234
+ chunk = chunk.previous;
1235
+ } while (chunk);
1236
+
1237
+ return false;
1238
+ }
1239
+
1240
+ trimEnd(charType) {
1241
+ this.trimEndAborted(charType);
1242
+ return this;
1243
+ }
1244
+ trimStartAborted(charType) {
1245
+ const rx = new RegExp('^' + (charType || '\\s') + '+');
1246
+
1247
+ this.intro = this.intro.replace(rx, '');
1248
+ if (this.intro.length) return true;
1249
+
1250
+ let chunk = this.firstChunk;
1251
+
1252
+ do {
1253
+ const end = chunk.end;
1254
+ const aborted = chunk.trimStart(rx);
1255
+
1256
+ if (chunk.end !== end) {
1257
+ // special case...
1258
+ if (chunk === this.lastChunk) this.lastChunk = chunk.next;
1259
+
1260
+ this.byEnd[chunk.end] = chunk;
1261
+ this.byStart[chunk.next.start] = chunk.next;
1262
+ this.byEnd[chunk.next.end] = chunk.next;
1263
+ }
1264
+
1265
+ if (aborted) return true;
1266
+ chunk = chunk.next;
1267
+ } while (chunk);
1268
+
1269
+ return false;
1270
+ }
1271
+
1272
+ trimStart(charType) {
1273
+ this.trimStartAborted(charType);
1274
+ return this;
1275
+ }
1276
+
1277
+ hasChanged() {
1278
+ return this.original !== this.toString();
1279
+ }
1280
+
1281
+ _replaceRegexp(searchValue, replacement) {
1282
+ function getReplacement(match, str) {
1283
+ if (typeof replacement === 'string') {
1284
+ return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
1285
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter
1286
+ if (i === '$') return '$';
1287
+ if (i === '&') return match[0];
1288
+ const num = +i;
1289
+ if (num < match.length) return match[+i];
1290
+ return `$${i}`;
1291
+ });
1292
+ } else {
1293
+ return replacement(...match, match.index, str, match.groups);
1294
+ }
1295
+ }
1296
+ function matchAll(re, str) {
1297
+ let match;
1298
+ const matches = [];
1299
+ while ((match = re.exec(str))) {
1300
+ matches.push(match);
1301
+ }
1302
+ return matches;
1303
+ }
1304
+ if (searchValue.global) {
1305
+ const matches = matchAll(searchValue, this.original);
1306
+ matches.forEach((match) => {
1307
+ if (match.index != null) {
1308
+ const replacement = getReplacement(match, this.original);
1309
+ if (replacement !== match[0]) {
1310
+ this.overwrite(match.index, match.index + match[0].length, replacement);
1311
+ }
1312
+ }
1313
+ });
1314
+ } else {
1315
+ const match = this.original.match(searchValue);
1316
+ if (match && match.index != null) {
1317
+ const replacement = getReplacement(match, this.original);
1318
+ if (replacement !== match[0]) {
1319
+ this.overwrite(match.index, match.index + match[0].length, replacement);
1320
+ }
1321
+ }
1322
+ }
1323
+ return this;
1324
+ }
1325
+
1326
+ _replaceString(string, replacement) {
1327
+ const { original } = this;
1328
+ const index = original.indexOf(string);
1329
+
1330
+ if (index !== -1) {
1331
+ if (typeof replacement === 'function') {
1332
+ replacement = replacement(string, index, original);
1333
+ }
1334
+ if (string !== replacement) {
1335
+ this.overwrite(index, index + string.length, replacement);
1336
+ }
1337
+ }
1338
+
1339
+ return this;
1340
+ }
1341
+
1342
+ replace(searchValue, replacement) {
1343
+ if (typeof searchValue === 'string') {
1344
+ return this._replaceString(searchValue, replacement);
1345
+ }
1346
+
1347
+ return this._replaceRegexp(searchValue, replacement);
1348
+ }
1349
+
1350
+ _replaceAllString(string, replacement) {
1351
+ const { original } = this;
1352
+ const stringLength = string.length;
1353
+ for (
1354
+ let index = original.indexOf(string);
1355
+ index !== -1;
1356
+ index = original.indexOf(string, index + stringLength)
1357
+ ) {
1358
+ const previous = original.slice(index, index + stringLength);
1359
+ let _replacement = replacement;
1360
+ if (typeof replacement === 'function') {
1361
+ _replacement = replacement(previous, index, original);
1362
+ }
1363
+ if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
1364
+ }
1365
+
1366
+ return this;
1367
+ }
1368
+
1369
+ replaceAll(searchValue, replacement) {
1370
+ if (typeof searchValue === 'string') {
1371
+ return this._replaceAllString(searchValue, replacement);
1372
+ }
1373
+
1374
+ if (!searchValue.global) {
1375
+ throw new TypeError(
1376
+ 'MagicString.prototype.replaceAll called with a non-global RegExp argument',
1377
+ );
1378
+ }
1379
+
1380
+ return this._replaceRegexp(searchValue, replacement);
1381
+ }
1382
+ }
1383
+
1384
+ const hasOwnProp = Object.prototype.hasOwnProperty;
1385
+
1386
+ class Bundle {
1387
+ constructor(options = {}) {
1388
+ this.intro = options.intro || '';
1389
+ this.separator = options.separator !== undefined ? options.separator : '\n';
1390
+ this.sources = [];
1391
+ this.uniqueSources = [];
1392
+ this.uniqueSourceIndexByFilename = {};
1393
+ }
1394
+
1395
+ addSource(source) {
1396
+ if (source instanceof MagicString) {
1397
+ return this.addSource({
1398
+ content: source,
1399
+ filename: source.filename,
1400
+ separator: this.separator,
1401
+ });
1402
+ }
1403
+
1404
+ if (!isObject(source) || !source.content) {
1405
+ throw new Error(
1406
+ 'bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`',
1407
+ );
1408
+ }
1409
+
1410
+ ['filename', 'ignoreList', 'indentExclusionRanges', 'separator'].forEach((option) => {
1411
+ if (!hasOwnProp.call(source, option)) source[option] = source.content[option];
1412
+ });
1413
+
1414
+ if (source.separator === undefined) {
1415
+ // TODO there's a bunch of this sort of thing, needs cleaning up
1416
+ source.separator = this.separator;
1417
+ }
1418
+
1419
+ if (source.filename) {
1420
+ if (!hasOwnProp.call(this.uniqueSourceIndexByFilename, source.filename)) {
1421
+ this.uniqueSourceIndexByFilename[source.filename] = this.uniqueSources.length;
1422
+ this.uniqueSources.push({ filename: source.filename, content: source.content.original });
1423
+ } else {
1424
+ const uniqueSource = this.uniqueSources[this.uniqueSourceIndexByFilename[source.filename]];
1425
+ if (source.content.original !== uniqueSource.content) {
1426
+ throw new Error(`Illegal source: same filename (${source.filename}), different contents`);
1427
+ }
1428
+ }
1429
+ }
1430
+
1431
+ this.sources.push(source);
1432
+ return this;
1433
+ }
1434
+
1435
+ append(str, options) {
1436
+ this.addSource({
1437
+ content: new MagicString(str),
1438
+ separator: (options && options.separator) || '',
1439
+ });
1440
+
1441
+ return this;
1442
+ }
1443
+
1444
+ clone() {
1445
+ const bundle = new Bundle({
1446
+ intro: this.intro,
1447
+ separator: this.separator,
1448
+ });
1449
+
1450
+ this.sources.forEach((source) => {
1451
+ bundle.addSource({
1452
+ filename: source.filename,
1453
+ content: source.content.clone(),
1454
+ separator: source.separator,
1455
+ });
1456
+ });
1457
+
1458
+ return bundle;
1459
+ }
1460
+
1461
+ generateDecodedMap(options = {}) {
1462
+ const names = [];
1463
+ let x_google_ignoreList = undefined;
1464
+ this.sources.forEach((source) => {
1465
+ Object.keys(source.content.storedNames).forEach((name) => {
1466
+ if (!~names.indexOf(name)) names.push(name);
1467
+ });
1468
+ });
1469
+
1470
+ const mappings = new Mappings(options.hires);
1471
+
1472
+ if (this.intro) {
1473
+ mappings.advance(this.intro);
1474
+ }
1475
+
1476
+ this.sources.forEach((source, i) => {
1477
+ if (i > 0) {
1478
+ mappings.advance(this.separator);
1479
+ }
1480
+
1481
+ const sourceIndex = source.filename ? this.uniqueSourceIndexByFilename[source.filename] : -1;
1482
+ const magicString = source.content;
1483
+ const locate = getLocator(magicString.original);
1484
+
1485
+ if (magicString.intro) {
1486
+ mappings.advance(magicString.intro);
1487
+ }
1488
+
1489
+ magicString.firstChunk.eachNext((chunk) => {
1490
+ const loc = locate(chunk.start);
1491
+
1492
+ if (chunk.intro.length) mappings.advance(chunk.intro);
1493
+
1494
+ if (source.filename) {
1495
+ if (chunk.edited) {
1496
+ mappings.addEdit(
1497
+ sourceIndex,
1498
+ chunk.content,
1499
+ loc,
1500
+ chunk.storeName ? names.indexOf(chunk.original) : -1,
1501
+ );
1502
+ } else {
1503
+ mappings.addUneditedChunk(
1504
+ sourceIndex,
1505
+ chunk,
1506
+ magicString.original,
1507
+ loc,
1508
+ magicString.sourcemapLocations,
1509
+ );
1510
+ }
1511
+ } else {
1512
+ mappings.advance(chunk.content);
1513
+ }
1514
+
1515
+ if (chunk.outro.length) mappings.advance(chunk.outro);
1516
+ });
1517
+
1518
+ if (magicString.outro) {
1519
+ mappings.advance(magicString.outro);
1520
+ }
1521
+
1522
+ if (source.ignoreList && sourceIndex !== -1) {
1523
+ if (x_google_ignoreList === undefined) {
1524
+ x_google_ignoreList = [];
1525
+ }
1526
+ x_google_ignoreList.push(sourceIndex);
1527
+ }
1528
+ });
1529
+
1530
+ return {
1531
+ file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
1532
+ sources: this.uniqueSources.map((source) => {
1533
+ return options.file ? getRelativePath(options.file, source.filename) : source.filename;
1534
+ }),
1535
+ sourcesContent: this.uniqueSources.map((source) => {
1536
+ return options.includeContent ? source.content : null;
1537
+ }),
1538
+ names,
1539
+ mappings: mappings.raw,
1540
+ x_google_ignoreList,
1541
+ };
1542
+ }
1543
+
1544
+ generateMap(options) {
1545
+ return new SourceMap(this.generateDecodedMap(options));
1546
+ }
1547
+
1548
+ getIndentString() {
1549
+ const indentStringCounts = {};
1550
+
1551
+ this.sources.forEach((source) => {
1552
+ const indentStr = source.content._getRawIndentString();
1553
+
1554
+ if (indentStr === null) return;
1555
+
1556
+ if (!indentStringCounts[indentStr]) indentStringCounts[indentStr] = 0;
1557
+ indentStringCounts[indentStr] += 1;
1558
+ });
1559
+
1560
+ return (
1561
+ Object.keys(indentStringCounts).sort((a, b) => {
1562
+ return indentStringCounts[a] - indentStringCounts[b];
1563
+ })[0] || '\t'
1564
+ );
1565
+ }
1566
+
1567
+ indent(indentStr) {
1568
+ if (!arguments.length) {
1569
+ indentStr = this.getIndentString();
1570
+ }
1571
+
1572
+ if (indentStr === '') return this; // noop
1573
+
1574
+ let trailingNewline = !this.intro || this.intro.slice(-1) === '\n';
1575
+
1576
+ this.sources.forEach((source, i) => {
1577
+ const separator = source.separator !== undefined ? source.separator : this.separator;
1578
+ const indentStart = trailingNewline || (i > 0 && /\r?\n$/.test(separator));
1579
+
1580
+ source.content.indent(indentStr, {
1581
+ exclude: source.indentExclusionRanges,
1582
+ indentStart, //: trailingNewline || /\r?\n$/.test( separator ) //true///\r?\n/.test( separator )
1583
+ });
1584
+
1585
+ trailingNewline = source.content.lastChar() === '\n';
1586
+ });
1587
+
1588
+ if (this.intro) {
1589
+ this.intro =
1590
+ indentStr +
1591
+ this.intro.replace(/^[^\n]/gm, (match, index) => {
1592
+ return index > 0 ? indentStr + match : match;
1593
+ });
1594
+ }
1595
+
1596
+ return this;
1597
+ }
1598
+
1599
+ prepend(str) {
1600
+ this.intro = str + this.intro;
1601
+ return this;
1602
+ }
1603
+
1604
+ toString() {
1605
+ const body = this.sources
1606
+ .map((source, i) => {
1607
+ const separator = source.separator !== undefined ? source.separator : this.separator;
1608
+ const str = (i > 0 ? separator : '') + source.content.toString();
1609
+
1610
+ return str;
1611
+ })
1612
+ .join('');
1613
+
1614
+ return this.intro + body;
1615
+ }
1616
+
1617
+ isEmpty() {
1618
+ if (this.intro.length && this.intro.trim()) return false;
1619
+ if (this.sources.some((source) => !source.content.isEmpty())) return false;
1620
+ return true;
1621
+ }
1622
+
1623
+ length() {
1624
+ return this.sources.reduce(
1625
+ (length, source) => length + source.content.length(),
1626
+ this.intro.length,
1627
+ );
1628
+ }
1629
+
1630
+ trimLines() {
1631
+ return this.trim('[\\r\\n]');
1632
+ }
1633
+
1634
+ trim(charType) {
1635
+ return this.trimStart(charType).trimEnd(charType);
1636
+ }
1637
+
1638
+ trimStart(charType) {
1639
+ const rx = new RegExp('^' + (charType || '\\s') + '+');
1640
+ this.intro = this.intro.replace(rx, '');
1641
+
1642
+ if (!this.intro) {
1643
+ let source;
1644
+ let i = 0;
1645
+
1646
+ do {
1647
+ source = this.sources[i++];
1648
+ if (!source) {
1649
+ break;
1650
+ }
1651
+ } while (!source.content.trimStartAborted(charType));
1652
+ }
1653
+
1654
+ return this;
1655
+ }
1656
+
1657
+ trimEnd(charType) {
1658
+ const rx = new RegExp((charType || '\\s') + '+$');
1659
+
1660
+ let source;
1661
+ let i = this.sources.length - 1;
1662
+
1663
+ do {
1664
+ source = this.sources[i--];
1665
+ if (!source) {
1666
+ this.intro = this.intro.replace(rx, '');
1667
+ break;
1668
+ }
1669
+ } while (!source.content.trimEndAborted(charType));
1670
+
1671
+ return this;
1672
+ }
1673
+ }
1674
+
1675
+ MagicString.Bundle = Bundle;
1676
+ MagicString.SourceMap = SourceMap;
1677
+ MagicString.default = MagicString; // work around TypeScript bug https://github.com/Rich-Harris/magic-string/pull/121
1678
+
1679
+ return MagicString;
1680
+
1681
+ }));
1682
+ //# sourceMappingURL=magic-string.umd.js.map