projen 0.99.0 → 0.99.2

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 (1741) hide show
  1. package/.jsii +93 -73
  2. package/lib/ai-instructions.js +2 -2
  3. package/lib/awscdk/auto-discover.js +5 -5
  4. package/lib/awscdk/awscdk-app-java.js +1 -1
  5. package/lib/awscdk/awscdk-app-py.js +1 -1
  6. package/lib/awscdk/awscdk-app-ts.js +1 -1
  7. package/lib/awscdk/awscdk-construct.js +2 -2
  8. package/lib/awscdk/awscdk-deps-java.js +1 -1
  9. package/lib/awscdk/awscdk-deps-js.js +1 -1
  10. package/lib/awscdk/awscdk-deps-py.js +1 -1
  11. package/lib/awscdk/awscdk-deps.js +1 -1
  12. package/lib/awscdk/cdk-config.js +4 -4
  13. package/lib/awscdk/cdk-tasks.js +1 -1
  14. package/lib/awscdk/integration-test.js +1 -1
  15. package/lib/awscdk/lambda-extension.js +1 -1
  16. package/lib/awscdk/lambda-function.js +8 -8
  17. package/lib/awscdk/private/feature-flags-v2.const.d.ts +1 -1
  18. package/lib/awscdk/private/feature-flags-v2.const.js +2 -2
  19. package/lib/build/build-workflow.js +1 -1
  20. package/lib/cdk/auto-discover-base.js +2 -2
  21. package/lib/cdk/construct-lib.js +1 -1
  22. package/lib/cdk/integration-test-base.js +1 -1
  23. package/lib/cdk/jsii-docgen.js +1 -1
  24. package/lib/cdk/jsii-project.js +1 -1
  25. package/lib/cdk8s/auto-discover.js +2 -2
  26. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  27. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  28. package/lib/cdk8s/cdk8s-construct.js +1 -1
  29. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  30. package/lib/cdk8s/cdk8s-deps.js +1 -1
  31. package/lib/cdk8s/integration-test.js +1 -1
  32. package/lib/cdktf/cdktf-construct.js +1 -1
  33. package/lib/circleci/circleci.js +1 -1
  34. package/lib/component.js +1 -1
  35. package/lib/dependencies.js +1 -1
  36. package/lib/dev-env.js +1 -1
  37. package/lib/docker-compose/docker-compose-service.js +1 -1
  38. package/lib/docker-compose/docker-compose.js +1 -1
  39. package/lib/file.js +1 -1
  40. package/lib/gitattributes.js +1 -1
  41. package/lib/github/actions-provider.js +1 -1
  42. package/lib/github/auto-approve.js +1 -1
  43. package/lib/github/auto-merge.js +1 -1
  44. package/lib/github/auto-queue.js +1 -1
  45. package/lib/github/dependabot.js +1 -1
  46. package/lib/github/github-credentials.js +1 -1
  47. package/lib/github/github-project.js +1 -1
  48. package/lib/github/github.js +1 -1
  49. package/lib/github/merge-queue.js +1 -1
  50. package/lib/github/mergify.js +1 -1
  51. package/lib/github/pr-template.js +1 -1
  52. package/lib/github/pull-request-backport.js +1 -1
  53. package/lib/github/pull-request-lint.js +1 -1
  54. package/lib/github/stale.js +1 -1
  55. package/lib/github/task-workflow-job.js +1 -1
  56. package/lib/github/task-workflow.js +1 -1
  57. package/lib/github/workflow-actions.js +1 -1
  58. package/lib/github/workflow-jobs.js +1 -1
  59. package/lib/github/workflow-steps.js +1 -1
  60. package/lib/github/workflows.js +1 -1
  61. package/lib/gitlab/configuration.js +1 -1
  62. package/lib/gitlab/gitlab-configuration.js +1 -1
  63. package/lib/gitlab/nested-configuration.js +1 -1
  64. package/lib/gitpod.js +1 -1
  65. package/lib/ignore-file.js +1 -1
  66. package/lib/ini.js +1 -1
  67. package/lib/java/java-project.js +1 -1
  68. package/lib/java/junit.js +1 -1
  69. package/lib/java/maven-compile.js +1 -1
  70. package/lib/java/maven-packaging.js +1 -1
  71. package/lib/java/maven-sample.js +1 -1
  72. package/lib/java/pom.js +2 -2
  73. package/lib/java/projenrc.js +1 -1
  74. package/lib/javascript/biome/biome.js +1 -1
  75. package/lib/javascript/bundler.js +1 -1
  76. package/lib/javascript/eslint.js +1 -1
  77. package/lib/javascript/jest.js +4 -4
  78. package/lib/javascript/license-checker.js +1 -1
  79. package/lib/javascript/node-package.js +1 -1
  80. package/lib/javascript/node-project.js +1 -1
  81. package/lib/javascript/npm-config.js +1 -1
  82. package/lib/javascript/prettier.js +1 -1
  83. package/lib/javascript/projenrc.js +1 -1
  84. package/lib/javascript/typescript-config.js +2 -2
  85. package/lib/javascript/upgrade-dependencies.js +2 -2
  86. package/lib/javascript/yarnrc.js +1 -1
  87. package/lib/json-patch.js +1 -1
  88. package/lib/json.js +1 -1
  89. package/lib/license.js +1 -1
  90. package/lib/logger.js +1 -1
  91. package/lib/makefile.js +1 -1
  92. package/lib/object-file.js +1 -1
  93. package/lib/project-build.js +1 -1
  94. package/lib/project-tree.d.ts +12 -0
  95. package/lib/project-tree.js +14 -2
  96. package/lib/project.d.ts +9 -0
  97. package/lib/project.js +7 -2
  98. package/lib/projects.js +1 -1
  99. package/lib/projenrc-json.js +2 -2
  100. package/lib/projenrc.js +1 -1
  101. package/lib/python/pip.js +1 -1
  102. package/lib/python/poetry.js +2 -2
  103. package/lib/python/projenrc.js +1 -1
  104. package/lib/python/pyproject-toml-file.js +1 -1
  105. package/lib/python/pytest-sample.js +1 -1
  106. package/lib/python/pytest.js +1 -1
  107. package/lib/python/python-project.js +1 -1
  108. package/lib/python/python-sample.js +1 -1
  109. package/lib/python/requirements-file.js +1 -1
  110. package/lib/python/setuppy.js +1 -1
  111. package/lib/python/setuptools.js +1 -1
  112. package/lib/python/uv.js +1 -1
  113. package/lib/python/venv.js +1 -1
  114. package/lib/readme.js +1 -1
  115. package/lib/release/publisher.js +1 -1
  116. package/lib/release/release-trigger.js +1 -1
  117. package/lib/release/release.js +1 -1
  118. package/lib/renovatebot.js +1 -1
  119. package/lib/sample-file.js +2 -2
  120. package/lib/semver.js +1 -1
  121. package/lib/source-code.js +1 -1
  122. package/lib/task-runtime.js +1 -1
  123. package/lib/task.js +1 -1
  124. package/lib/tasks.js +1 -1
  125. package/lib/testing.js +1 -1
  126. package/lib/textfile.js +1 -1
  127. package/lib/toml.js +1 -1
  128. package/lib/typescript/projenrc-ts.js +1 -1
  129. package/lib/typescript/projenrc.js +1 -1
  130. package/lib/typescript/typescript-typedoc.js +1 -1
  131. package/lib/typescript/typescript.js +6 -6
  132. package/lib/version.js +2 -2
  133. package/lib/vscode/devcontainer.js +1 -1
  134. package/lib/vscode/extensions.js +1 -1
  135. package/lib/vscode/launch-config.js +1 -1
  136. package/lib/vscode/settings.js +1 -1
  137. package/lib/vscode/vscode.js +1 -1
  138. package/lib/web/next.js +3 -3
  139. package/lib/web/postcss.js +1 -1
  140. package/lib/web/react.js +4 -4
  141. package/lib/web/tailwind.js +1 -1
  142. package/lib/xmlfile.js +1 -1
  143. package/lib/yaml.js +1 -1
  144. package/package.json +11 -21
  145. package/node_modules/@iarna/toml/LICENSE +0 -14
  146. package/node_modules/@iarna/toml/README.md +0 -301
  147. package/node_modules/@iarna/toml/index.d.ts +0 -57
  148. package/node_modules/@iarna/toml/lib/create-date.js +0 -23
  149. package/node_modules/@iarna/toml/lib/create-datetime-float.js +0 -24
  150. package/node_modules/@iarna/toml/lib/create-datetime.js +0 -10
  151. package/node_modules/@iarna/toml/lib/create-time.js +0 -22
  152. package/node_modules/@iarna/toml/lib/format-num.js +0 -6
  153. package/node_modules/@iarna/toml/lib/parser-debug.js +0 -60
  154. package/node_modules/@iarna/toml/lib/parser.js +0 -127
  155. package/node_modules/@iarna/toml/lib/toml-parser.js +0 -1379
  156. package/node_modules/@iarna/toml/package.json +0 -82
  157. package/node_modules/@iarna/toml/parse-async.js +0 -30
  158. package/node_modules/@iarna/toml/parse-pretty-error.js +0 -33
  159. package/node_modules/@iarna/toml/parse-stream.js +0 -80
  160. package/node_modules/@iarna/toml/parse-string.js +0 -18
  161. package/node_modules/@iarna/toml/parse.js +0 -5
  162. package/node_modules/@iarna/toml/stringify.js +0 -296
  163. package/node_modules/@iarna/toml/toml.js +0 -3
  164. package/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
  165. package/node_modules/@nodelib/fs.scandir/README.md +0 -171
  166. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  167. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
  168. package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
  169. package/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
  170. package/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
  171. package/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
  172. package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  173. package/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
  174. package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
  175. package/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
  176. package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
  177. package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
  178. package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  179. package/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
  180. package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  181. package/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
  182. package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
  183. package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
  184. package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
  185. package/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
  186. package/node_modules/@nodelib/fs.scandir/package.json +0 -44
  187. package/node_modules/@nodelib/fs.stat/LICENSE +0 -21
  188. package/node_modules/@nodelib/fs.stat/README.md +0 -126
  189. package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  190. package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
  191. package/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
  192. package/node_modules/@nodelib/fs.stat/out/index.js +0 -26
  193. package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  194. package/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
  195. package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
  196. package/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
  197. package/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
  198. package/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
  199. package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  200. package/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
  201. package/node_modules/@nodelib/fs.stat/package.json +0 -37
  202. package/node_modules/@nodelib/fs.walk/LICENSE +0 -21
  203. package/node_modules/@nodelib/fs.walk/README.md +0 -215
  204. package/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
  205. package/node_modules/@nodelib/fs.walk/out/index.js +0 -34
  206. package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  207. package/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
  208. package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
  209. package/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
  210. package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
  211. package/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
  212. package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
  213. package/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
  214. package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  215. package/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
  216. package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
  217. package/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
  218. package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  219. package/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
  220. package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
  221. package/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
  222. package/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
  223. package/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
  224. package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  225. package/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
  226. package/node_modules/@nodelib/fs.walk/package.json +0 -44
  227. package/node_modules/@oozcitak/dom/LICENSE +0 -21
  228. package/node_modules/@oozcitak/dom/README.md +0 -30
  229. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.d.ts +0 -21
  230. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +0 -57
  231. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +0 -1
  232. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.d.ts +0 -8
  233. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +0 -23
  234. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +0 -1
  235. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.d.ts +0 -8
  236. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +0 -76
  237. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +0 -1
  238. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.d.ts +0 -19
  239. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +0 -118
  240. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +0 -1
  241. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.d.ts +0 -192
  242. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +0 -302
  243. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +0 -1
  244. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.d.ts +0 -61
  245. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +0 -108
  246. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +0 -1
  247. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.d.ts +0 -72
  248. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +0 -266
  249. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +0 -1
  250. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.d.ts +0 -21
  251. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +0 -61
  252. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +0 -1
  253. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.d.ts +0 -29
  254. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +0 -123
  255. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +0 -1
  256. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.d.ts +0 -121
  257. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +0 -602
  258. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +0 -1
  259. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +0 -146
  260. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +0 -938
  261. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +0 -1
  262. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.d.ts +0 -33
  263. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +0 -120
  264. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +0 -1
  265. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.d.ts +0 -66
  266. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +0 -998
  267. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +0 -1
  268. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.d.ts +0 -43
  269. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +0 -214
  270. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +0 -1
  271. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +0 -29
  272. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +0 -85
  273. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +0 -1
  274. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.d.ts +0 -68
  275. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +0 -488
  276. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +0 -1
  277. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.d.ts +0 -15
  278. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +0 -105
  279. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +0 -1
  280. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.d.ts +0 -27
  281. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +0 -73
  282. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +0 -1
  283. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.d.ts +0 -9
  284. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +0 -47
  285. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +0 -1
  286. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.d.ts +0 -82
  287. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +0 -723
  288. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +0 -1
  289. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.d.ts +0 -8
  290. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +0 -21
  291. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +0 -1
  292. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.d.ts +0 -57
  293. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +0 -241
  294. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +0 -1
  295. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.d.ts +0 -30
  296. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +0 -200
  297. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +0 -1
  298. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.d.ts +0 -8
  299. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +0 -62
  300. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +0 -1
  301. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.d.ts +0 -268
  302. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +0 -786
  303. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +0 -1
  304. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.d.ts +0 -17
  305. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +0 -147
  306. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +0 -1
  307. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.d.ts +0 -8
  308. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +0 -14
  309. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +0 -1
  310. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.d.ts +0 -25
  311. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +0 -164
  312. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +0 -1
  313. package/node_modules/@oozcitak/dom/lib/algorithm/index.d.ts +0 -28
  314. package/node_modules/@oozcitak/dom/lib/algorithm/index.js +0 -45
  315. package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +0 -1
  316. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.d.ts +0 -15
  317. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +0 -29
  318. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +0 -1
  319. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.d.ts +0 -23
  320. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +0 -36
  321. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +0 -1
  322. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.d.ts +0 -23
  323. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +0 -28
  324. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +0 -1
  325. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.d.ts +0 -45
  326. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +0 -79
  327. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +0 -1
  328. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.d.ts +0 -21
  329. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +0 -37
  330. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +0 -1
  331. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.d.ts +0 -35
  332. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +0 -84
  333. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +0 -1
  334. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.d.ts +0 -16
  335. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +0 -151
  336. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +0 -1
  337. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.d.ts +0 -21
  338. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +0 -37
  339. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +0 -1
  340. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.d.ts +0 -16
  341. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +0 -38
  342. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +0 -1
  343. package/node_modules/@oozcitak/dom/lib/dom/DOMException.d.ts +0 -171
  344. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +0 -257
  345. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +0 -1
  346. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.d.ts +0 -48
  347. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +0 -83
  348. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +0 -1
  349. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.d.ts +0 -29
  350. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +0 -150
  351. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +0 -1
  352. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.d.ts +0 -46
  353. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +0 -254
  354. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +0 -1
  355. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +0 -32
  356. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +0 -60
  357. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +0 -1
  358. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +0 -116
  359. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +0 -413
  360. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +0 -1
  361. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.d.ts +0 -11
  362. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +0 -15
  363. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +0 -1
  364. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.d.ts +0 -39
  365. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +0 -63
  366. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +0 -1
  367. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +0 -132
  368. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +0 -555
  369. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +0 -1
  370. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.d.ts +0 -74
  371. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +0 -265
  372. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +0 -1
  373. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.d.ts +0 -30
  374. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +0 -108
  375. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +0 -1
  376. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.d.ts +0 -44
  377. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +0 -151
  378. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +0 -1
  379. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.d.ts +0 -22
  380. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +0 -132
  381. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +0 -1
  382. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.d.ts +0 -73
  383. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +0 -89
  384. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +0 -1
  385. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.d.ts +0 -34
  386. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +0 -98
  387. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +0 -1
  388. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.d.ts +0 -50
  389. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +0 -80
  390. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +0 -1
  391. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +0 -252
  392. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +0 -795
  393. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +0 -1
  394. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.d.ts +0 -34
  395. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +0 -66
  396. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +0 -1
  397. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.d.ts +0 -46
  398. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +0 -170
  399. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +0 -1
  400. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.d.ts +0 -49
  401. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +0 -161
  402. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +0 -1
  403. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.d.ts +0 -12
  404. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +0 -43
  405. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +0 -1
  406. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.d.ts +0 -9
  407. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +0 -29
  408. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +0 -1
  409. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.d.ts +0 -24
  410. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +0 -110
  411. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +0 -1
  412. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.d.ts +0 -25
  413. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +0 -42
  414. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +0 -1
  415. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.d.ts +0 -71
  416. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +0 -582
  417. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +0 -1
  418. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.d.ts +0 -33
  419. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +0 -61
  420. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +0 -1
  421. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.d.ts +0 -16
  422. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +0 -23
  423. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +0 -1
  424. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.d.ts +0 -13
  425. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +0 -35
  426. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +0 -1
  427. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.d.ts +0 -28
  428. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +0 -63
  429. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +0 -1
  430. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.d.ts +0 -23
  431. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +0 -33
  432. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +0 -1
  433. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.d.ts +0 -36
  434. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +0 -231
  435. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +0 -1
  436. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.d.ts +0 -26
  437. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +0 -36
  438. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +0 -1
  439. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.d.ts +0 -11
  440. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +0 -17
  441. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +0 -1
  442. package/node_modules/@oozcitak/dom/lib/dom/index.d.ts +0 -36
  443. package/node_modules/@oozcitak/dom/lib/dom/index.js +0 -103
  444. package/node_modules/@oozcitak/dom/lib/dom/index.js.map +0 -1
  445. package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +0 -2221
  446. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +0 -93
  447. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +0 -1
  448. package/node_modules/@oozcitak/dom/lib/index.d.ts +0 -3
  449. package/node_modules/@oozcitak/dom/lib/index.js +0 -12
  450. package/node_modules/@oozcitak/dom/lib/index.js.map +0 -1
  451. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.d.ts +0 -11
  452. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +0 -35
  453. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +0 -1
  454. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.d.ts +0 -26
  455. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +0 -190
  456. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +0 -1
  457. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.d.ts +0 -159
  458. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +0 -496
  459. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +0 -1
  460. package/node_modules/@oozcitak/dom/lib/parser/index.d.ts +0 -1
  461. package/node_modules/@oozcitak/dom/lib/parser/index.js +0 -7
  462. package/node_modules/@oozcitak/dom/lib/parser/index.js.map +0 -1
  463. package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +0 -131
  464. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +0 -19
  465. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +0 -1
  466. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.d.ts +0 -27
  467. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +0 -54
  468. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +0 -1
  469. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.d.ts +0 -52
  470. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +0 -149
  471. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +0 -1
  472. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.d.ts +0 -166
  473. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +0 -1367
  474. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +0 -1
  475. package/node_modules/@oozcitak/dom/lib/serializer/index.d.ts +0 -1
  476. package/node_modules/@oozcitak/dom/lib/serializer/index.js +0 -7
  477. package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +0 -1
  478. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.d.ts +0 -15
  479. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js +0 -3
  480. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js.map +0 -1
  481. package/node_modules/@oozcitak/dom/lib/util/Cast.d.ts +0 -12
  482. package/node_modules/@oozcitak/dom/lib/util/Cast.js +0 -24
  483. package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +0 -1
  484. package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +0 -21
  485. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +0 -48
  486. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +0 -1
  487. package/node_modules/@oozcitak/dom/lib/util/Guard.d.ts +0 -135
  488. package/node_modules/@oozcitak/dom/lib/util/Guard.js +0 -190
  489. package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +0 -1
  490. package/node_modules/@oozcitak/dom/lib/util/index.d.ts +0 -3
  491. package/node_modules/@oozcitak/dom/lib/util/index.js +0 -10
  492. package/node_modules/@oozcitak/dom/lib/util/index.js.map +0 -1
  493. package/node_modules/@oozcitak/dom/package.json +0 -45
  494. package/node_modules/@oozcitak/infra/LICENSE +0 -21
  495. package/node_modules/@oozcitak/infra/README.md +0 -11
  496. package/node_modules/@oozcitak/infra/lib/Base64.d.ts +0 -12
  497. package/node_modules/@oozcitak/infra/lib/Base64.js +0 -82
  498. package/node_modules/@oozcitak/infra/lib/Base64.js.map +0 -1
  499. package/node_modules/@oozcitak/infra/lib/Byte.d.ts +0 -6
  500. package/node_modules/@oozcitak/infra/lib/Byte.js +0 -15
  501. package/node_modules/@oozcitak/infra/lib/Byte.js.map +0 -1
  502. package/node_modules/@oozcitak/infra/lib/ByteSequence.d.ts +0 -45
  503. package/node_modules/@oozcitak/infra/lib/ByteSequence.js +0 -151
  504. package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +0 -1
  505. package/node_modules/@oozcitak/infra/lib/CodePoints.d.ts +0 -82
  506. package/node_modules/@oozcitak/infra/lib/CodePoints.js +0 -86
  507. package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +0 -1
  508. package/node_modules/@oozcitak/infra/lib/JSON.d.ts +0 -24
  509. package/node_modules/@oozcitak/infra/lib/JSON.js +0 -101
  510. package/node_modules/@oozcitak/infra/lib/JSON.js.map +0 -1
  511. package/node_modules/@oozcitak/infra/lib/List.d.ts +0 -101
  512. package/node_modules/@oozcitak/infra/lib/List.js +0 -201
  513. package/node_modules/@oozcitak/infra/lib/List.js.map +0 -1
  514. package/node_modules/@oozcitak/infra/lib/Map.d.ts +0 -87
  515. package/node_modules/@oozcitak/infra/lib/Map.js +0 -174
  516. package/node_modules/@oozcitak/infra/lib/Map.js.map +0 -1
  517. package/node_modules/@oozcitak/infra/lib/Namespace.d.ts +0 -6
  518. package/node_modules/@oozcitak/infra/lib/Namespace.js +0 -10
  519. package/node_modules/@oozcitak/infra/lib/Namespace.js.map +0 -1
  520. package/node_modules/@oozcitak/infra/lib/Queue.d.ts +0 -13
  521. package/node_modules/@oozcitak/infra/lib/Queue.js +0 -22
  522. package/node_modules/@oozcitak/infra/lib/Queue.js.map +0 -1
  523. package/node_modules/@oozcitak/infra/lib/Set.d.ts +0 -136
  524. package/node_modules/@oozcitak/infra/lib/Set.js +0 -289
  525. package/node_modules/@oozcitak/infra/lib/Set.js.map +0 -1
  526. package/node_modules/@oozcitak/infra/lib/Stack.d.ts +0 -13
  527. package/node_modules/@oozcitak/infra/lib/Stack.js +0 -22
  528. package/node_modules/@oozcitak/infra/lib/Stack.js.map +0 -1
  529. package/node_modules/@oozcitak/infra/lib/String.d.ts +0 -129
  530. package/node_modules/@oozcitak/infra/lib/String.js +0 -416
  531. package/node_modules/@oozcitak/infra/lib/String.js.map +0 -1
  532. package/node_modules/@oozcitak/infra/lib/index.d.ts +0 -13
  533. package/node_modules/@oozcitak/infra/lib/index.js +0 -61
  534. package/node_modules/@oozcitak/infra/lib/index.js.map +0 -1
  535. package/node_modules/@oozcitak/infra/package.json +0 -41
  536. package/node_modules/@oozcitak/url/LICENSE +0 -21
  537. package/node_modules/@oozcitak/url/README.md +0 -25
  538. package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +0 -267
  539. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +0 -2585
  540. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +0 -1
  541. package/node_modules/@oozcitak/url/lib/URLImpl.d.ts +0 -53
  542. package/node_modules/@oozcitak/url/lib/URLImpl.js +0 -331
  543. package/node_modules/@oozcitak/url/lib/URLImpl.js.map +0 -1
  544. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +0 -38
  545. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +0 -184
  546. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +0 -1
  547. package/node_modules/@oozcitak/url/lib/index.d.ts +0 -2
  548. package/node_modules/@oozcitak/url/lib/index.js +0 -8
  549. package/node_modules/@oozcitak/url/lib/index.js.map +0 -1
  550. package/node_modules/@oozcitak/url/lib/interfaces.d.ts +0 -195
  551. package/node_modules/@oozcitak/url/lib/interfaces.js +0 -32
  552. package/node_modules/@oozcitak/url/lib/interfaces.js.map +0 -1
  553. package/node_modules/@oozcitak/url/package.json +0 -42
  554. package/node_modules/@oozcitak/util/LICENSE +0 -21
  555. package/node_modules/@oozcitak/util/README.md +0 -8
  556. package/node_modules/@oozcitak/util/lib/CompareCache.d.ts +0 -32
  557. package/node_modules/@oozcitak/util/lib/CompareCache.js +0 -59
  558. package/node_modules/@oozcitak/util/lib/CompareCache.js.map +0 -1
  559. package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +0 -64
  560. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +0 -99
  561. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +0 -1
  562. package/node_modules/@oozcitak/util/lib/Lazy.d.ts +0 -18
  563. package/node_modules/@oozcitak/util/lib/Lazy.js +0 -32
  564. package/node_modules/@oozcitak/util/lib/Lazy.js.map +0 -1
  565. package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +0 -71
  566. package/node_modules/@oozcitak/util/lib/ObjectCache.js +0 -107
  567. package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +0 -1
  568. package/node_modules/@oozcitak/util/lib/StringWalker.d.ts +0 -49
  569. package/node_modules/@oozcitak/util/lib/StringWalker.js +0 -99
  570. package/node_modules/@oozcitak/util/lib/StringWalker.js.map +0 -1
  571. package/node_modules/@oozcitak/util/lib/index.d.ts +0 -176
  572. package/node_modules/@oozcitak/util/lib/index.js +0 -413
  573. package/node_modules/@oozcitak/util/lib/index.js.map +0 -1
  574. package/node_modules/@oozcitak/util/package.json +0 -37
  575. package/node_modules/ansi-regex/index.d.ts +0 -37
  576. package/node_modules/ansi-regex/index.js +0 -10
  577. package/node_modules/ansi-regex/license +0 -9
  578. package/node_modules/ansi-regex/package.json +0 -55
  579. package/node_modules/ansi-regex/readme.md +0 -78
  580. package/node_modules/ansi-styles/index.d.ts +0 -345
  581. package/node_modules/ansi-styles/index.js +0 -163
  582. package/node_modules/ansi-styles/license +0 -9
  583. package/node_modules/ansi-styles/package.json +0 -56
  584. package/node_modules/ansi-styles/readme.md +0 -152
  585. package/node_modules/argparse/LICENSE +0 -254
  586. package/node_modules/argparse/README.md +0 -84
  587. package/node_modules/argparse/argparse.js +0 -3707
  588. package/node_modules/argparse/lib/sub.js +0 -67
  589. package/node_modules/argparse/lib/textwrap.js +0 -440
  590. package/node_modules/argparse/package.json +0 -31
  591. package/node_modules/array-timsort/LICENSE +0 -21
  592. package/node_modules/array-timsort/README.md +0 -288
  593. package/node_modules/array-timsort/package.json +0 -55
  594. package/node_modules/array-timsort/src/index.js +0 -1080
  595. package/node_modules/braces/LICENSE +0 -21
  596. package/node_modules/braces/README.md +0 -586
  597. package/node_modules/braces/index.js +0 -170
  598. package/node_modules/braces/lib/compile.js +0 -60
  599. package/node_modules/braces/lib/constants.js +0 -57
  600. package/node_modules/braces/lib/expand.js +0 -113
  601. package/node_modules/braces/lib/parse.js +0 -331
  602. package/node_modules/braces/lib/stringify.js +0 -32
  603. package/node_modules/braces/lib/utils.js +0 -122
  604. package/node_modules/braces/package.json +0 -77
  605. package/node_modules/case/LICENSE +0 -22
  606. package/node_modules/case/README.md +0 -139
  607. package/node_modules/case/case.d.ts +0 -43
  608. package/node_modules/case/dist/Case.js +0 -171
  609. package/node_modules/case/dist/Case.min.js +0 -5
  610. package/node_modules/case/dist/Case.min.js.map +0 -1
  611. package/node_modules/case/dist/Case.plus.js +0 -189
  612. package/node_modules/case/dist/Case.plus.min.js +0 -5
  613. package/node_modules/case/dist/Case.plus.min.js.map +0 -1
  614. package/node_modules/case/package.json +0 -58
  615. package/node_modules/chalk/index.d.ts +0 -415
  616. package/node_modules/chalk/license +0 -9
  617. package/node_modules/chalk/package.json +0 -68
  618. package/node_modules/chalk/readme.md +0 -341
  619. package/node_modules/chalk/source/index.js +0 -229
  620. package/node_modules/chalk/source/templates.js +0 -134
  621. package/node_modules/chalk/source/util.js +0 -39
  622. package/node_modules/cliui/LICENSE.txt +0 -14
  623. package/node_modules/cliui/README.md +0 -141
  624. package/node_modules/cliui/build/index.cjs +0 -302
  625. package/node_modules/cliui/build/index.d.cts +0 -43
  626. package/node_modules/cliui/build/lib/index.js +0 -287
  627. package/node_modules/cliui/build/lib/string-utils.js +0 -27
  628. package/node_modules/cliui/index.mjs +0 -13
  629. package/node_modules/cliui/package.json +0 -83
  630. package/node_modules/color-convert/LICENSE +0 -21
  631. package/node_modules/color-convert/README.md +0 -68
  632. package/node_modules/color-convert/conversions.js +0 -839
  633. package/node_modules/color-convert/index.js +0 -81
  634. package/node_modules/color-convert/package.json +0 -48
  635. package/node_modules/color-convert/route.js +0 -97
  636. package/node_modules/color-name/LICENSE +0 -8
  637. package/node_modules/color-name/README.md +0 -11
  638. package/node_modules/color-name/index.js +0 -152
  639. package/node_modules/color-name/package.json +0 -28
  640. package/node_modules/comment-json/LICENSE +0 -21
  641. package/node_modules/comment-json/README.md +0 -580
  642. package/node_modules/comment-json/index.d.ts +0 -97
  643. package/node_modules/comment-json/package.json +0 -68
  644. package/node_modules/comment-json/src/array.js +0 -288
  645. package/node_modules/comment-json/src/common.js +0 -181
  646. package/node_modules/comment-json/src/index.js +0 -13
  647. package/node_modules/comment-json/src/parse.js +0 -451
  648. package/node_modules/comment-json/src/stringify.js +0 -366
  649. package/node_modules/conventional-changelog-config-spec/CHANGELOG.md +0 -15
  650. package/node_modules/conventional-changelog-config-spec/README.md +0 -7
  651. package/node_modules/conventional-changelog-config-spec/index.js +0 -1
  652. package/node_modules/conventional-changelog-config-spec/package.json +0 -32
  653. package/node_modules/conventional-changelog-config-spec/renovate.json +0 -5
  654. package/node_modules/conventional-changelog-config-spec/tests/shared.js +0 -38
  655. package/node_modules/conventional-changelog-config-spec/tests/v1.test.js +0 -7
  656. package/node_modules/conventional-changelog-config-spec/tests/v2.test.js +0 -26
  657. package/node_modules/conventional-changelog-config-spec/versions/1.0.0/README.md +0 -143
  658. package/node_modules/conventional-changelog-config-spec/versions/1.0.0/schema.json +0 -81
  659. package/node_modules/conventional-changelog-config-spec/versions/2.0.0/README.md +0 -155
  660. package/node_modules/conventional-changelog-config-spec/versions/2.0.0/schema.json +0 -89
  661. package/node_modules/conventional-changelog-config-spec/versions/2.1.0/README.md +0 -166
  662. package/node_modules/conventional-changelog-config-spec/versions/2.1.0/schema.json +0 -97
  663. package/node_modules/core-util-is/LICENSE +0 -19
  664. package/node_modules/core-util-is/README.md +0 -3
  665. package/node_modules/core-util-is/lib/util.js +0 -107
  666. package/node_modules/core-util-is/package.json +0 -38
  667. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  668. package/node_modules/emoji-regex/README.md +0 -73
  669. package/node_modules/emoji-regex/es2015/index.js +0 -6
  670. package/node_modules/emoji-regex/es2015/text.js +0 -6
  671. package/node_modules/emoji-regex/index.d.ts +0 -23
  672. package/node_modules/emoji-regex/index.js +0 -6
  673. package/node_modules/emoji-regex/package.json +0 -50
  674. package/node_modules/emoji-regex/text.js +0 -6
  675. package/node_modules/end-of-stream/LICENSE +0 -21
  676. package/node_modules/end-of-stream/README.md +0 -54
  677. package/node_modules/end-of-stream/index.js +0 -96
  678. package/node_modules/end-of-stream/package.json +0 -37
  679. package/node_modules/escalade/dist/index.js +0 -22
  680. package/node_modules/escalade/dist/index.mjs +0 -22
  681. package/node_modules/escalade/index.d.mts +0 -11
  682. package/node_modules/escalade/index.d.ts +0 -15
  683. package/node_modules/escalade/license +0 -9
  684. package/node_modules/escalade/package.json +0 -74
  685. package/node_modules/escalade/readme.md +0 -211
  686. package/node_modules/escalade/sync/index.d.mts +0 -9
  687. package/node_modules/escalade/sync/index.d.ts +0 -13
  688. package/node_modules/escalade/sync/index.js +0 -18
  689. package/node_modules/escalade/sync/index.mjs +0 -18
  690. package/node_modules/esprima/LICENSE.BSD +0 -21
  691. package/node_modules/esprima/README.md +0 -46
  692. package/node_modules/esprima/bin/esparse.js +0 -139
  693. package/node_modules/esprima/bin/esvalidate.js +0 -236
  694. package/node_modules/esprima/dist/esprima.js +0 -6709
  695. package/node_modules/esprima/package.json +0 -112
  696. package/node_modules/fast-glob/LICENSE +0 -21
  697. package/node_modules/fast-glob/README.md +0 -830
  698. package/node_modules/fast-glob/node_modules/glob-parent/LICENSE +0 -15
  699. package/node_modules/fast-glob/node_modules/glob-parent/README.md +0 -137
  700. package/node_modules/fast-glob/node_modules/glob-parent/index.js +0 -42
  701. package/node_modules/fast-glob/node_modules/glob-parent/package.json +0 -48
  702. package/node_modules/fast-glob/out/index.d.ts +0 -40
  703. package/node_modules/fast-glob/out/index.js +0 -102
  704. package/node_modules/fast-glob/out/managers/tasks.d.ts +0 -22
  705. package/node_modules/fast-glob/out/managers/tasks.js +0 -110
  706. package/node_modules/fast-glob/out/providers/async.d.ts +0 -9
  707. package/node_modules/fast-glob/out/providers/async.js +0 -23
  708. package/node_modules/fast-glob/out/providers/filters/deep.d.ts +0 -16
  709. package/node_modules/fast-glob/out/providers/filters/deep.js +0 -62
  710. package/node_modules/fast-glob/out/providers/filters/entry.d.ts +0 -17
  711. package/node_modules/fast-glob/out/providers/filters/entry.js +0 -85
  712. package/node_modules/fast-glob/out/providers/filters/error.d.ts +0 -8
  713. package/node_modules/fast-glob/out/providers/filters/error.js +0 -15
  714. package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +0 -33
  715. package/node_modules/fast-glob/out/providers/matchers/matcher.js +0 -45
  716. package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +0 -4
  717. package/node_modules/fast-glob/out/providers/matchers/partial.js +0 -38
  718. package/node_modules/fast-glob/out/providers/provider.d.ts +0 -19
  719. package/node_modules/fast-glob/out/providers/provider.js +0 -48
  720. package/node_modules/fast-glob/out/providers/stream.d.ts +0 -11
  721. package/node_modules/fast-glob/out/providers/stream.js +0 -31
  722. package/node_modules/fast-glob/out/providers/sync.d.ts +0 -9
  723. package/node_modules/fast-glob/out/providers/sync.js +0 -23
  724. package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +0 -8
  725. package/node_modules/fast-glob/out/providers/transformers/entry.js +0 -26
  726. package/node_modules/fast-glob/out/readers/async.d.ts +0 -10
  727. package/node_modules/fast-glob/out/readers/async.js +0 -35
  728. package/node_modules/fast-glob/out/readers/reader.d.ts +0 -15
  729. package/node_modules/fast-glob/out/readers/reader.js +0 -33
  730. package/node_modules/fast-glob/out/readers/stream.d.ts +0 -14
  731. package/node_modules/fast-glob/out/readers/stream.js +0 -55
  732. package/node_modules/fast-glob/out/readers/sync.d.ts +0 -12
  733. package/node_modules/fast-glob/out/readers/sync.js +0 -43
  734. package/node_modules/fast-glob/out/settings.d.ts +0 -164
  735. package/node_modules/fast-glob/out/settings.js +0 -59
  736. package/node_modules/fast-glob/out/types/index.d.ts +0 -31
  737. package/node_modules/fast-glob/out/types/index.js +0 -2
  738. package/node_modules/fast-glob/out/utils/array.d.ts +0 -2
  739. package/node_modules/fast-glob/out/utils/array.js +0 -22
  740. package/node_modules/fast-glob/out/utils/errno.d.ts +0 -2
  741. package/node_modules/fast-glob/out/utils/errno.js +0 -7
  742. package/node_modules/fast-glob/out/utils/fs.d.ts +0 -4
  743. package/node_modules/fast-glob/out/utils/fs.js +0 -19
  744. package/node_modules/fast-glob/out/utils/index.d.ts +0 -8
  745. package/node_modules/fast-glob/out/utils/index.js +0 -17
  746. package/node_modules/fast-glob/out/utils/path.d.ts +0 -13
  747. package/node_modules/fast-glob/out/utils/path.js +0 -68
  748. package/node_modules/fast-glob/out/utils/pattern.d.ts +0 -49
  749. package/node_modules/fast-glob/out/utils/pattern.js +0 -206
  750. package/node_modules/fast-glob/out/utils/stream.d.ts +0 -4
  751. package/node_modules/fast-glob/out/utils/stream.js +0 -17
  752. package/node_modules/fast-glob/out/utils/string.d.ts +0 -2
  753. package/node_modules/fast-glob/out/utils/string.js +0 -11
  754. package/node_modules/fast-glob/package.json +0 -81
  755. package/node_modules/fast-json-patch/LICENSE.txt +0 -22
  756. package/node_modules/fast-json-patch/README.md +0 -428
  757. package/node_modules/fast-json-patch/commonjs/core.d.ts +0 -111
  758. package/node_modules/fast-json-patch/commonjs/core.js +0 -441
  759. package/node_modules/fast-json-patch/commonjs/duplex.d.ts +0 -23
  760. package/node_modules/fast-json-patch/commonjs/duplex.js +0 -181
  761. package/node_modules/fast-json-patch/commonjs/helpers.d.ts +0 -41
  762. package/node_modules/fast-json-patch/commonjs/helpers.js +0 -181
  763. package/node_modules/fast-json-patch/dist/fast-json-patch.js +0 -928
  764. package/node_modules/fast-json-patch/dist/fast-json-patch.min.js +0 -14
  765. package/node_modules/fast-json-patch/index.d.ts +0 -34
  766. package/node_modules/fast-json-patch/index.js +0 -11
  767. package/node_modules/fast-json-patch/index.mjs +0 -29
  768. package/node_modules/fast-json-patch/index.ts +0 -31
  769. package/node_modules/fast-json-patch/jasmine-run.mjs +0 -23
  770. package/node_modules/fast-json-patch/module/core.d.ts +0 -111
  771. package/node_modules/fast-json-patch/module/core.mjs +0 -433
  772. package/node_modules/fast-json-patch/module/duplex.d.ts +0 -23
  773. package/node_modules/fast-json-patch/module/duplex.mjs +0 -176
  774. package/node_modules/fast-json-patch/module/helpers.d.ts +0 -41
  775. package/node_modules/fast-json-patch/module/helpers.mjs +0 -171
  776. package/node_modules/fast-json-patch/package.json +0 -65
  777. package/node_modules/fast-json-patch/tsc-to-mjs.sh +0 -10
  778. package/node_modules/fast-json-patch/webpack.config.js +0 -63
  779. package/node_modules/fastq/.github/dependabot.yml +0 -11
  780. package/node_modules/fastq/.github/workflows/ci.yml +0 -75
  781. package/node_modules/fastq/LICENSE +0 -13
  782. package/node_modules/fastq/README.md +0 -312
  783. package/node_modules/fastq/SECURITY.md +0 -15
  784. package/node_modules/fastq/bench.js +0 -66
  785. package/node_modules/fastq/example.js +0 -14
  786. package/node_modules/fastq/example.mjs +0 -11
  787. package/node_modules/fastq/index.d.ts +0 -57
  788. package/node_modules/fastq/package.json +0 -53
  789. package/node_modules/fastq/queue.js +0 -311
  790. package/node_modules/fastq/test/example.ts +0 -83
  791. package/node_modules/fastq/test/promise.js +0 -291
  792. package/node_modules/fastq/test/test.js +0 -653
  793. package/node_modules/fastq/test/tsconfig.json +0 -11
  794. package/node_modules/fill-range/LICENSE +0 -21
  795. package/node_modules/fill-range/README.md +0 -237
  796. package/node_modules/fill-range/index.js +0 -248
  797. package/node_modules/fill-range/package.json +0 -74
  798. package/node_modules/function-bind/.eslintrc +0 -21
  799. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  800. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  801. package/node_modules/function-bind/.nycrc +0 -13
  802. package/node_modules/function-bind/CHANGELOG.md +0 -136
  803. package/node_modules/function-bind/LICENSE +0 -20
  804. package/node_modules/function-bind/README.md +0 -46
  805. package/node_modules/function-bind/implementation.js +0 -84
  806. package/node_modules/function-bind/index.js +0 -5
  807. package/node_modules/function-bind/package.json +0 -87
  808. package/node_modules/function-bind/test/.eslintrc +0 -9
  809. package/node_modules/function-bind/test/index.js +0 -252
  810. package/node_modules/get-caller-file/LICENSE.md +0 -6
  811. package/node_modules/get-caller-file/README.md +0 -41
  812. package/node_modules/get-caller-file/index.d.ts +0 -2
  813. package/node_modules/get-caller-file/index.js +0 -22
  814. package/node_modules/get-caller-file/index.js.map +0 -1
  815. package/node_modules/get-caller-file/package.json +0 -42
  816. package/node_modules/has-flag/index.d.ts +0 -39
  817. package/node_modules/has-flag/index.js +0 -8
  818. package/node_modules/has-flag/license +0 -9
  819. package/node_modules/has-flag/package.json +0 -46
  820. package/node_modules/has-flag/readme.md +0 -89
  821. package/node_modules/has-own-prop/index.d.ts +0 -17
  822. package/node_modules/has-own-prop/index.js +0 -4
  823. package/node_modules/has-own-prop/license +0 -9
  824. package/node_modules/has-own-prop/package.json +0 -33
  825. package/node_modules/has-own-prop/readme.md +0 -30
  826. package/node_modules/hasown/.eslintrc +0 -5
  827. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  828. package/node_modules/hasown/.nycrc +0 -13
  829. package/node_modules/hasown/CHANGELOG.md +0 -40
  830. package/node_modules/hasown/LICENSE +0 -21
  831. package/node_modules/hasown/README.md +0 -40
  832. package/node_modules/hasown/index.d.ts +0 -3
  833. package/node_modules/hasown/index.js +0 -8
  834. package/node_modules/hasown/package.json +0 -92
  835. package/node_modules/hasown/tsconfig.json +0 -6
  836. package/node_modules/ini/LICENSE +0 -15
  837. package/node_modules/ini/README.md +0 -102
  838. package/node_modules/ini/ini.js +0 -206
  839. package/node_modules/ini/package.json +0 -36
  840. package/node_modules/interpret/LICENSE +0 -22
  841. package/node_modules/interpret/README.md +0 -187
  842. package/node_modules/interpret/index.js +0 -168
  843. package/node_modules/interpret/mjs-stub.js +0 -1
  844. package/node_modules/interpret/package.json +0 -75
  845. package/node_modules/is-core-module/.eslintrc +0 -18
  846. package/node_modules/is-core-module/.nycrc +0 -9
  847. package/node_modules/is-core-module/CHANGELOG.md +0 -218
  848. package/node_modules/is-core-module/LICENSE +0 -20
  849. package/node_modules/is-core-module/README.md +0 -40
  850. package/node_modules/is-core-module/core.json +0 -162
  851. package/node_modules/is-core-module/index.js +0 -69
  852. package/node_modules/is-core-module/package.json +0 -76
  853. package/node_modules/is-core-module/test/index.js +0 -157
  854. package/node_modules/is-extglob/LICENSE +0 -21
  855. package/node_modules/is-extglob/README.md +0 -107
  856. package/node_modules/is-extglob/index.js +0 -20
  857. package/node_modules/is-extglob/package.json +0 -69
  858. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  859. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  860. package/node_modules/is-fullwidth-code-point/license +0 -9
  861. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  862. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  863. package/node_modules/is-glob/LICENSE +0 -21
  864. package/node_modules/is-glob/README.md +0 -206
  865. package/node_modules/is-glob/index.js +0 -150
  866. package/node_modules/is-glob/package.json +0 -81
  867. package/node_modules/is-number/LICENSE +0 -21
  868. package/node_modules/is-number/README.md +0 -187
  869. package/node_modules/is-number/index.js +0 -18
  870. package/node_modules/is-number/package.json +0 -82
  871. package/node_modules/isexe/.npmignore +0 -2
  872. package/node_modules/isexe/LICENSE +0 -15
  873. package/node_modules/isexe/README.md +0 -51
  874. package/node_modules/isexe/index.js +0 -57
  875. package/node_modules/isexe/mode.js +0 -41
  876. package/node_modules/isexe/package.json +0 -31
  877. package/node_modules/isexe/test/basic.js +0 -221
  878. package/node_modules/isexe/windows.js +0 -42
  879. package/node_modules/js-yaml/LICENSE +0 -21
  880. package/node_modules/js-yaml/README.md +0 -247
  881. package/node_modules/js-yaml/bin/js-yaml.js +0 -126
  882. package/node_modules/js-yaml/dist/js-yaml.js +0 -3880
  883. package/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  884. package/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  885. package/node_modules/js-yaml/index.js +0 -47
  886. package/node_modules/js-yaml/lib/common.js +0 -59
  887. package/node_modules/js-yaml/lib/dumper.js +0 -965
  888. package/node_modules/js-yaml/lib/exception.js +0 -55
  889. package/node_modules/js-yaml/lib/loader.js +0 -1733
  890. package/node_modules/js-yaml/lib/schema/core.js +0 -11
  891. package/node_modules/js-yaml/lib/schema/default.js +0 -22
  892. package/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  893. package/node_modules/js-yaml/lib/schema/json.js +0 -19
  894. package/node_modules/js-yaml/lib/schema.js +0 -121
  895. package/node_modules/js-yaml/lib/snippet.js +0 -101
  896. package/node_modules/js-yaml/lib/type/binary.js +0 -125
  897. package/node_modules/js-yaml/lib/type/bool.js +0 -35
  898. package/node_modules/js-yaml/lib/type/float.js +0 -97
  899. package/node_modules/js-yaml/lib/type/int.js +0 -156
  900. package/node_modules/js-yaml/lib/type/map.js +0 -8
  901. package/node_modules/js-yaml/lib/type/merge.js +0 -12
  902. package/node_modules/js-yaml/lib/type/null.js +0 -35
  903. package/node_modules/js-yaml/lib/type/omap.js +0 -44
  904. package/node_modules/js-yaml/lib/type/pairs.js +0 -53
  905. package/node_modules/js-yaml/lib/type/seq.js +0 -8
  906. package/node_modules/js-yaml/lib/type/set.js +0 -29
  907. package/node_modules/js-yaml/lib/type/str.js +0 -8
  908. package/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  909. package/node_modules/js-yaml/lib/type.js +0 -66
  910. package/node_modules/js-yaml/package.json +0 -66
  911. package/node_modules/json-parse-even-better-errors/LICENSE.md +0 -25
  912. package/node_modules/json-parse-even-better-errors/README.md +0 -96
  913. package/node_modules/json-parse-even-better-errors/lib/index.js +0 -137
  914. package/node_modules/json-parse-even-better-errors/package.json +0 -50
  915. package/node_modules/just-diff/CHANGELOG.md +0 -49
  916. package/node_modules/just-diff/LICENSE +0 -21
  917. package/node_modules/just-diff/README.md +0 -86
  918. package/node_modules/just-diff/index.cjs +0 -230
  919. package/node_modules/just-diff/index.d.ts +0 -20
  920. package/node_modules/just-diff/index.mjs +0 -227
  921. package/node_modules/just-diff/index.tests.ts +0 -65
  922. package/node_modules/just-diff/package.json +0 -33
  923. package/node_modules/just-diff/rollup.config.js +0 -3
  924. package/node_modules/just-diff-apply/CHANGELOG.md +0 -43
  925. package/node_modules/just-diff-apply/LICENSE +0 -21
  926. package/node_modules/just-diff-apply/README.md +0 -69
  927. package/node_modules/just-diff-apply/index.cjs +0 -161
  928. package/node_modules/just-diff-apply/index.d.ts +0 -17
  929. package/node_modules/just-diff-apply/index.mjs +0 -158
  930. package/node_modules/just-diff-apply/index.tests.ts +0 -108
  931. package/node_modules/just-diff-apply/package.json +0 -34
  932. package/node_modules/just-diff-apply/rollup.config.js +0 -3
  933. package/node_modules/merge2/LICENSE +0 -21
  934. package/node_modules/merge2/README.md +0 -144
  935. package/node_modules/merge2/index.js +0 -144
  936. package/node_modules/merge2/package.json +0 -43
  937. package/node_modules/micromatch/LICENSE +0 -21
  938. package/node_modules/micromatch/README.md +0 -1024
  939. package/node_modules/micromatch/index.js +0 -474
  940. package/node_modules/micromatch/package.json +0 -119
  941. package/node_modules/minimist/.eslintrc +0 -29
  942. package/node_modules/minimist/.github/FUNDING.yml +0 -12
  943. package/node_modules/minimist/.nycrc +0 -14
  944. package/node_modules/minimist/CHANGELOG.md +0 -298
  945. package/node_modules/minimist/LICENSE +0 -18
  946. package/node_modules/minimist/README.md +0 -121
  947. package/node_modules/minimist/example/parse.js +0 -4
  948. package/node_modules/minimist/index.js +0 -263
  949. package/node_modules/minimist/package.json +0 -75
  950. package/node_modules/minimist/test/all_bool.js +0 -34
  951. package/node_modules/minimist/test/bool.js +0 -177
  952. package/node_modules/minimist/test/dash.js +0 -43
  953. package/node_modules/minimist/test/default_bool.js +0 -37
  954. package/node_modules/minimist/test/dotted.js +0 -24
  955. package/node_modules/minimist/test/kv_short.js +0 -32
  956. package/node_modules/minimist/test/long.js +0 -33
  957. package/node_modules/minimist/test/num.js +0 -38
  958. package/node_modules/minimist/test/parse.js +0 -209
  959. package/node_modules/minimist/test/parse_modified.js +0 -11
  960. package/node_modules/minimist/test/proto.js +0 -64
  961. package/node_modules/minimist/test/short.js +0 -69
  962. package/node_modules/minimist/test/stop_early.js +0 -17
  963. package/node_modules/minimist/test/unknown.js +0 -104
  964. package/node_modules/minimist/test/whitespace.js +0 -10
  965. package/node_modules/nice-try/LICENSE +0 -21
  966. package/node_modules/nice-try/README.md +0 -32
  967. package/node_modules/nice-try/package.json +0 -33
  968. package/node_modules/nice-try/src/index.js +0 -12
  969. package/node_modules/once/LICENSE +0 -15
  970. package/node_modules/once/README.md +0 -79
  971. package/node_modules/once/once.js +0 -42
  972. package/node_modules/once/package.json +0 -33
  973. package/node_modules/p-finally/index.js +0 -15
  974. package/node_modules/p-finally/license +0 -21
  975. package/node_modules/p-finally/package.json +0 -42
  976. package/node_modules/p-finally/readme.md +0 -47
  977. package/node_modules/parse-conflict-json/LICENSE.md +0 -20
  978. package/node_modules/parse-conflict-json/README.md +0 -42
  979. package/node_modules/parse-conflict-json/lib/index.js +0 -104
  980. package/node_modules/parse-conflict-json/package.json +0 -51
  981. package/node_modules/path-parse/LICENSE +0 -21
  982. package/node_modules/path-parse/README.md +0 -42
  983. package/node_modules/path-parse/index.js +0 -75
  984. package/node_modules/path-parse/package.json +0 -33
  985. package/node_modules/picomatch/LICENSE +0 -21
  986. package/node_modules/picomatch/README.md +0 -708
  987. package/node_modules/picomatch/index.js +0 -3
  988. package/node_modules/picomatch/lib/constants.js +0 -179
  989. package/node_modules/picomatch/lib/parse.js +0 -1091
  990. package/node_modules/picomatch/lib/picomatch.js +0 -342
  991. package/node_modules/picomatch/lib/scan.js +0 -391
  992. package/node_modules/picomatch/lib/utils.js +0 -64
  993. package/node_modules/picomatch/package.json +0 -81
  994. package/node_modules/pump/.github/FUNDING.yml +0 -2
  995. package/node_modules/pump/.travis.yml +0 -5
  996. package/node_modules/pump/LICENSE +0 -21
  997. package/node_modules/pump/README.md +0 -74
  998. package/node_modules/pump/SECURITY.md +0 -5
  999. package/node_modules/pump/index.js +0 -86
  1000. package/node_modules/pump/package.json +0 -24
  1001. package/node_modules/pump/test-browser.js +0 -66
  1002. package/node_modules/pump/test-node.js +0 -53
  1003. package/node_modules/queue-microtask/LICENSE +0 -20
  1004. package/node_modules/queue-microtask/README.md +0 -90
  1005. package/node_modules/queue-microtask/index.d.ts +0 -2
  1006. package/node_modules/queue-microtask/index.js +0 -9
  1007. package/node_modules/queue-microtask/package.json +0 -55
  1008. package/node_modules/rechoir/.npmignore +0 -1
  1009. package/node_modules/rechoir/.travis.yml +0 -24
  1010. package/node_modules/rechoir/CHANGELOG +0 -38
  1011. package/node_modules/rechoir/LICENSE +0 -22
  1012. package/node_modules/rechoir/README.md +0 -42
  1013. package/node_modules/rechoir/index.js +0 -59
  1014. package/node_modules/rechoir/lib/extension.js +0 -11
  1015. package/node_modules/rechoir/lib/normalize.js +0 -15
  1016. package/node_modules/rechoir/lib/register.js +0 -15
  1017. package/node_modules/rechoir/package.json +0 -88
  1018. package/node_modules/repeat-string/LICENSE +0 -21
  1019. package/node_modules/repeat-string/README.md +0 -136
  1020. package/node_modules/repeat-string/index.js +0 -70
  1021. package/node_modules/repeat-string/package.json +0 -77
  1022. package/node_modules/require-directory/.jshintrc +0 -67
  1023. package/node_modules/require-directory/.npmignore +0 -1
  1024. package/node_modules/require-directory/.travis.yml +0 -3
  1025. package/node_modules/require-directory/LICENSE +0 -22
  1026. package/node_modules/require-directory/README.markdown +0 -184
  1027. package/node_modules/require-directory/index.js +0 -86
  1028. package/node_modules/require-directory/package.json +0 -40
  1029. package/node_modules/resolve/.editorconfig +0 -37
  1030. package/node_modules/resolve/.eslintrc +0 -65
  1031. package/node_modules/resolve/.github/FUNDING.yml +0 -12
  1032. package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +0 -119
  1033. package/node_modules/resolve/.github/THREAT_MODEL.md +0 -74
  1034. package/node_modules/resolve/LICENSE +0 -21
  1035. package/node_modules/resolve/SECURITY.md +0 -11
  1036. package/node_modules/resolve/async.js +0 -3
  1037. package/node_modules/resolve/bin/resolve +0 -50
  1038. package/node_modules/resolve/example/async.js +0 -5
  1039. package/node_modules/resolve/example/sync.js +0 -3
  1040. package/node_modules/resolve/index.js +0 -6
  1041. package/node_modules/resolve/lib/async.js +0 -333
  1042. package/node_modules/resolve/lib/caller.js +0 -8
  1043. package/node_modules/resolve/lib/core.js +0 -12
  1044. package/node_modules/resolve/lib/core.json +0 -162
  1045. package/node_modules/resolve/lib/homedir.js +0 -24
  1046. package/node_modules/resolve/lib/is-core.js +0 -5
  1047. package/node_modules/resolve/lib/node-modules-paths.js +0 -45
  1048. package/node_modules/resolve/lib/normalize-options.js +0 -10
  1049. package/node_modules/resolve/lib/sync.js +0 -212
  1050. package/node_modules/resolve/package.json +0 -75
  1051. package/node_modules/resolve/readme.markdown +0 -301
  1052. package/node_modules/resolve/sync.js +0 -3
  1053. package/node_modules/resolve/test/core.js +0 -88
  1054. package/node_modules/resolve/test/dotdot/abc/index.js +0 -2
  1055. package/node_modules/resolve/test/dotdot/index.js +0 -1
  1056. package/node_modules/resolve/test/dotdot.js +0 -29
  1057. package/node_modules/resolve/test/faulty_basedir.js +0 -29
  1058. package/node_modules/resolve/test/filter.js +0 -34
  1059. package/node_modules/resolve/test/filter_sync.js +0 -33
  1060. package/node_modules/resolve/test/home_paths.js +0 -127
  1061. package/node_modules/resolve/test/home_paths_sync.js +0 -114
  1062. package/node_modules/resolve/test/mock.js +0 -315
  1063. package/node_modules/resolve/test/mock_sync.js +0 -214
  1064. package/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
  1065. package/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
  1066. package/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
  1067. package/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
  1068. package/node_modules/resolve/test/module_dir.js +0 -56
  1069. package/node_modules/resolve/test/node-modules-paths.js +0 -143
  1070. package/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
  1071. package/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
  1072. package/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
  1073. package/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
  1074. package/node_modules/resolve/test/node_path.js +0 -70
  1075. package/node_modules/resolve/test/nonstring.js +0 -9
  1076. package/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  1077. package/node_modules/resolve/test/pathfilter.js +0 -75
  1078. package/node_modules/resolve/test/precedence/aaa/index.js +0 -1
  1079. package/node_modules/resolve/test/precedence/aaa/main.js +0 -1
  1080. package/node_modules/resolve/test/precedence/aaa.js +0 -1
  1081. package/node_modules/resolve/test/precedence/bbb/main.js +0 -1
  1082. package/node_modules/resolve/test/precedence/bbb.js +0 -1
  1083. package/node_modules/resolve/test/precedence.js +0 -23
  1084. package/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  1085. package/node_modules/resolve/test/resolver/baz/package.json +0 -4
  1086. package/node_modules/resolve/test/resolver/baz/quux.js +0 -1
  1087. package/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  1088. package/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  1089. package/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
  1090. package/node_modules/resolve/test/resolver/cup.coffee +0 -1
  1091. package/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
  1092. package/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
  1093. package/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
  1094. package/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
  1095. package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  1096. package/node_modules/resolve/test/resolver/false_main/package.json +0 -4
  1097. package/node_modules/resolve/test/resolver/foo.js +0 -1
  1098. package/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
  1099. package/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
  1100. package/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
  1101. package/node_modules/resolve/test/resolver/mug.coffee +0 -0
  1102. package/node_modules/resolve/test/resolver/mug.js +0 -0
  1103. package/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
  1104. package/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
  1105. package/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
  1106. package/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
  1107. package/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  1108. package/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
  1109. package/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
  1110. package/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
  1111. package/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
  1112. package/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  1113. package/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  1114. package/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
  1115. package/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
  1116. package/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
  1117. package/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  1118. package/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  1119. package/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
  1120. package/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
  1121. package/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
  1122. package/node_modules/resolve/test/resolver.js +0 -597
  1123. package/node_modules/resolve/test/resolver_sync.js +0 -730
  1124. package/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  1125. package/node_modules/resolve/test/shadowed_core.js +0 -54
  1126. package/node_modules/resolve/test/subdirs.js +0 -13
  1127. package/node_modules/resolve/test/symlinks.js +0 -176
  1128. package/node_modules/reusify/.github/dependabot.yml +0 -7
  1129. package/node_modules/reusify/.github/workflows/ci.yml +0 -96
  1130. package/node_modules/reusify/LICENSE +0 -22
  1131. package/node_modules/reusify/README.md +0 -139
  1132. package/node_modules/reusify/SECURITY.md +0 -15
  1133. package/node_modules/reusify/benchmarks/createNoCodeFunction.js +0 -30
  1134. package/node_modules/reusify/benchmarks/fib.js +0 -13
  1135. package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +0 -38
  1136. package/node_modules/reusify/eslint.config.js +0 -14
  1137. package/node_modules/reusify/package.json +0 -50
  1138. package/node_modules/reusify/reusify.d.ts +0 -14
  1139. package/node_modules/reusify/reusify.js +0 -33
  1140. package/node_modules/reusify/test.js +0 -66
  1141. package/node_modules/reusify/tsconfig.json +0 -11
  1142. package/node_modules/run-parallel/LICENSE +0 -20
  1143. package/node_modules/run-parallel/README.md +0 -85
  1144. package/node_modules/run-parallel/index.js +0 -51
  1145. package/node_modules/run-parallel/package.json +0 -58
  1146. package/node_modules/semver/LICENSE +0 -15
  1147. package/node_modules/semver/README.md +0 -664
  1148. package/node_modules/semver/bin/semver.js +0 -191
  1149. package/node_modules/semver/classes/comparator.js +0 -143
  1150. package/node_modules/semver/classes/index.js +0 -7
  1151. package/node_modules/semver/classes/range.js +0 -557
  1152. package/node_modules/semver/classes/semver.js +0 -333
  1153. package/node_modules/semver/functions/clean.js +0 -8
  1154. package/node_modules/semver/functions/cmp.js +0 -54
  1155. package/node_modules/semver/functions/coerce.js +0 -62
  1156. package/node_modules/semver/functions/compare-build.js +0 -9
  1157. package/node_modules/semver/functions/compare-loose.js +0 -5
  1158. package/node_modules/semver/functions/compare.js +0 -7
  1159. package/node_modules/semver/functions/diff.js +0 -60
  1160. package/node_modules/semver/functions/eq.js +0 -5
  1161. package/node_modules/semver/functions/gt.js +0 -5
  1162. package/node_modules/semver/functions/gte.js +0 -5
  1163. package/node_modules/semver/functions/inc.js +0 -21
  1164. package/node_modules/semver/functions/lt.js +0 -5
  1165. package/node_modules/semver/functions/lte.js +0 -5
  1166. package/node_modules/semver/functions/major.js +0 -5
  1167. package/node_modules/semver/functions/minor.js +0 -5
  1168. package/node_modules/semver/functions/neq.js +0 -5
  1169. package/node_modules/semver/functions/parse.js +0 -18
  1170. package/node_modules/semver/functions/patch.js +0 -5
  1171. package/node_modules/semver/functions/prerelease.js +0 -8
  1172. package/node_modules/semver/functions/rcompare.js +0 -5
  1173. package/node_modules/semver/functions/rsort.js +0 -5
  1174. package/node_modules/semver/functions/satisfies.js +0 -12
  1175. package/node_modules/semver/functions/sort.js +0 -5
  1176. package/node_modules/semver/functions/valid.js +0 -8
  1177. package/node_modules/semver/index.js +0 -91
  1178. package/node_modules/semver/internal/constants.js +0 -37
  1179. package/node_modules/semver/internal/debug.js +0 -11
  1180. package/node_modules/semver/internal/identifiers.js +0 -29
  1181. package/node_modules/semver/internal/lrucache.js +0 -42
  1182. package/node_modules/semver/internal/parse-options.js +0 -17
  1183. package/node_modules/semver/internal/re.js +0 -223
  1184. package/node_modules/semver/package.json +0 -78
  1185. package/node_modules/semver/preload.js +0 -4
  1186. package/node_modules/semver/range.bnf +0 -16
  1187. package/node_modules/semver/ranges/gtr.js +0 -6
  1188. package/node_modules/semver/ranges/intersects.js +0 -9
  1189. package/node_modules/semver/ranges/ltr.js +0 -6
  1190. package/node_modules/semver/ranges/max-satisfying.js +0 -27
  1191. package/node_modules/semver/ranges/min-satisfying.js +0 -26
  1192. package/node_modules/semver/ranges/min-version.js +0 -63
  1193. package/node_modules/semver/ranges/outside.js +0 -82
  1194. package/node_modules/semver/ranges/simplify.js +0 -49
  1195. package/node_modules/semver/ranges/subset.js +0 -249
  1196. package/node_modules/semver/ranges/to-comparators.js +0 -10
  1197. package/node_modules/semver/ranges/valid.js +0 -13
  1198. package/node_modules/shelljs/LICENSE +0 -29
  1199. package/node_modules/shelljs/README.md +0 -943
  1200. package/node_modules/shelljs/bin/shjs +0 -48
  1201. package/node_modules/shelljs/global.js +0 -12
  1202. package/node_modules/shelljs/make.js +0 -57
  1203. package/node_modules/shelljs/node_modules/cross-spawn/LICENSE +0 -21
  1204. package/node_modules/shelljs/node_modules/cross-spawn/README.md +0 -94
  1205. package/node_modules/shelljs/node_modules/cross-spawn/index.js +0 -39
  1206. package/node_modules/shelljs/node_modules/cross-spawn/lib/enoent.js +0 -59
  1207. package/node_modules/shelljs/node_modules/cross-spawn/lib/parse.js +0 -125
  1208. package/node_modules/shelljs/node_modules/cross-spawn/lib/util/escape.js +0 -47
  1209. package/node_modules/shelljs/node_modules/cross-spawn/lib/util/readShebang.js +0 -32
  1210. package/node_modules/shelljs/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -51
  1211. package/node_modules/shelljs/node_modules/cross-spawn/package.json +0 -75
  1212. package/node_modules/shelljs/node_modules/execa/index.js +0 -361
  1213. package/node_modules/shelljs/node_modules/execa/lib/errname.js +0 -39
  1214. package/node_modules/shelljs/node_modules/execa/lib/stdio.js +0 -41
  1215. package/node_modules/shelljs/node_modules/execa/license +0 -9
  1216. package/node_modules/shelljs/node_modules/execa/package.json +0 -69
  1217. package/node_modules/shelljs/node_modules/execa/readme.md +0 -327
  1218. package/node_modules/shelljs/node_modules/get-stream/buffer-stream.js +0 -51
  1219. package/node_modules/shelljs/node_modules/get-stream/index.js +0 -50
  1220. package/node_modules/shelljs/node_modules/get-stream/license +0 -9
  1221. package/node_modules/shelljs/node_modules/get-stream/package.json +0 -46
  1222. package/node_modules/shelljs/node_modules/get-stream/readme.md +0 -123
  1223. package/node_modules/shelljs/node_modules/is-stream/index.js +0 -21
  1224. package/node_modules/shelljs/node_modules/is-stream/license +0 -21
  1225. package/node_modules/shelljs/node_modules/is-stream/package.json +0 -38
  1226. package/node_modules/shelljs/node_modules/is-stream/readme.md +0 -42
  1227. package/node_modules/shelljs/node_modules/npm-run-path/index.js +0 -39
  1228. package/node_modules/shelljs/node_modules/npm-run-path/license +0 -21
  1229. package/node_modules/shelljs/node_modules/npm-run-path/package.json +0 -45
  1230. package/node_modules/shelljs/node_modules/npm-run-path/readme.md +0 -81
  1231. package/node_modules/shelljs/node_modules/path-key/index.js +0 -13
  1232. package/node_modules/shelljs/node_modules/path-key/license +0 -21
  1233. package/node_modules/shelljs/node_modules/path-key/package.json +0 -39
  1234. package/node_modules/shelljs/node_modules/path-key/readme.md +0 -51
  1235. package/node_modules/shelljs/node_modules/semver/LICENSE +0 -15
  1236. package/node_modules/shelljs/node_modules/semver/README.md +0 -412
  1237. package/node_modules/shelljs/node_modules/semver/bin/semver +0 -160
  1238. package/node_modules/shelljs/node_modules/semver/package.json +0 -38
  1239. package/node_modules/shelljs/node_modules/semver/range.bnf +0 -16
  1240. package/node_modules/shelljs/node_modules/semver/semver.js +0 -1525
  1241. package/node_modules/shelljs/node_modules/shebang-command/index.js +0 -19
  1242. package/node_modules/shelljs/node_modules/shebang-command/license +0 -21
  1243. package/node_modules/shelljs/node_modules/shebang-command/package.json +0 -39
  1244. package/node_modules/shelljs/node_modules/shebang-command/readme.md +0 -39
  1245. package/node_modules/shelljs/node_modules/shebang-regex/index.js +0 -2
  1246. package/node_modules/shelljs/node_modules/shebang-regex/license +0 -21
  1247. package/node_modules/shelljs/node_modules/shebang-regex/package.json +0 -32
  1248. package/node_modules/shelljs/node_modules/shebang-regex/readme.md +0 -29
  1249. package/node_modules/shelljs/node_modules/which/LICENSE +0 -15
  1250. package/node_modules/shelljs/node_modules/which/README.md +0 -51
  1251. package/node_modules/shelljs/node_modules/which/bin/which +0 -52
  1252. package/node_modules/shelljs/node_modules/which/package.json +0 -30
  1253. package/node_modules/shelljs/node_modules/which/which.js +0 -135
  1254. package/node_modules/shelljs/package.json +0 -95
  1255. package/node_modules/shelljs/plugin.js +0 -16
  1256. package/node_modules/shelljs/shell.js +0 -214
  1257. package/node_modules/shelljs/src/cat.js +0 -76
  1258. package/node_modules/shelljs/src/cd.js +0 -40
  1259. package/node_modules/shelljs/src/chmod.js +0 -222
  1260. package/node_modules/shelljs/src/cmd.js +0 -122
  1261. package/node_modules/shelljs/src/common.js +0 -542
  1262. package/node_modules/shelljs/src/cp.js +0 -314
  1263. package/node_modules/shelljs/src/dirs.js +0 -210
  1264. package/node_modules/shelljs/src/echo.js +0 -62
  1265. package/node_modules/shelljs/src/error.js +0 -15
  1266. package/node_modules/shelljs/src/errorCode.js +0 -10
  1267. package/node_modules/shelljs/src/exec-child.js +0 -71
  1268. package/node_modules/shelljs/src/exec.js +0 -255
  1269. package/node_modules/shelljs/src/find.js +0 -66
  1270. package/node_modules/shelljs/src/grep.js +0 -84
  1271. package/node_modules/shelljs/src/head.js +0 -107
  1272. package/node_modules/shelljs/src/ln.js +0 -75
  1273. package/node_modules/shelljs/src/ls.js +0 -155
  1274. package/node_modules/shelljs/src/mkdir.js +0 -102
  1275. package/node_modules/shelljs/src/mv.js +0 -119
  1276. package/node_modules/shelljs/src/popd.js +0 -1
  1277. package/node_modules/shelljs/src/pushd.js +0 -1
  1278. package/node_modules/shelljs/src/pwd.js +0 -16
  1279. package/node_modules/shelljs/src/rm.js +0 -201
  1280. package/node_modules/shelljs/src/sed.js +0 -95
  1281. package/node_modules/shelljs/src/set.js +0 -55
  1282. package/node_modules/shelljs/src/sort.js +0 -98
  1283. package/node_modules/shelljs/src/tail.js +0 -90
  1284. package/node_modules/shelljs/src/tempdir.js +0 -75
  1285. package/node_modules/shelljs/src/test.js +0 -86
  1286. package/node_modules/shelljs/src/to.js +0 -38
  1287. package/node_modules/shelljs/src/toEnd.js +0 -37
  1288. package/node_modules/shelljs/src/touch.js +0 -117
  1289. package/node_modules/shelljs/src/uniq.js +0 -93
  1290. package/node_modules/shelljs/src/which.js +0 -119
  1291. package/node_modules/shx/LICENSE +0 -21
  1292. package/node_modules/shx/README.md +0 -160
  1293. package/node_modules/shx/lib/cli.js +0 -40
  1294. package/node_modules/shx/lib/config.js +0 -58
  1295. package/node_modules/shx/lib/help.js +0 -37
  1296. package/node_modules/shx/lib/plugin-true-false.js +0 -25
  1297. package/node_modules/shx/lib/printCmdRet.js +0 -17
  1298. package/node_modules/shx/lib/shx.js +0 -162
  1299. package/node_modules/shx/package.json +0 -72
  1300. package/node_modules/signal-exit/LICENSE.txt +0 -16
  1301. package/node_modules/signal-exit/README.md +0 -39
  1302. package/node_modules/signal-exit/index.js +0 -202
  1303. package/node_modules/signal-exit/package.json +0 -38
  1304. package/node_modules/signal-exit/signals.js +0 -53
  1305. package/node_modules/string-width/index.d.ts +0 -29
  1306. package/node_modules/string-width/index.js +0 -47
  1307. package/node_modules/string-width/license +0 -9
  1308. package/node_modules/string-width/package.json +0 -56
  1309. package/node_modules/string-width/readme.md +0 -50
  1310. package/node_modules/strip-ansi/index.d.ts +0 -17
  1311. package/node_modules/strip-ansi/index.js +0 -4
  1312. package/node_modules/strip-ansi/license +0 -9
  1313. package/node_modules/strip-ansi/package.json +0 -54
  1314. package/node_modules/strip-ansi/readme.md +0 -46
  1315. package/node_modules/strip-eof/index.js +0 -15
  1316. package/node_modules/strip-eof/license +0 -21
  1317. package/node_modules/strip-eof/package.json +0 -39
  1318. package/node_modules/strip-eof/readme.md +0 -28
  1319. package/node_modules/supports-color/browser.js +0 -5
  1320. package/node_modules/supports-color/index.js +0 -135
  1321. package/node_modules/supports-color/license +0 -9
  1322. package/node_modules/supports-color/package.json +0 -53
  1323. package/node_modules/supports-color/readme.md +0 -76
  1324. package/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
  1325. package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
  1326. package/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
  1327. package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
  1328. package/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
  1329. package/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
  1330. package/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
  1331. package/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
  1332. package/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
  1333. package/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
  1334. package/node_modules/to-regex-range/LICENSE +0 -21
  1335. package/node_modules/to-regex-range/README.md +0 -305
  1336. package/node_modules/to-regex-range/index.js +0 -288
  1337. package/node_modules/to-regex-range/package.json +0 -88
  1338. package/node_modules/wrap-ansi/index.js +0 -216
  1339. package/node_modules/wrap-ansi/license +0 -9
  1340. package/node_modules/wrap-ansi/package.json +0 -62
  1341. package/node_modules/wrap-ansi/readme.md +0 -91
  1342. package/node_modules/wrappy/LICENSE +0 -15
  1343. package/node_modules/wrappy/README.md +0 -36
  1344. package/node_modules/wrappy/package.json +0 -29
  1345. package/node_modules/wrappy/wrappy.js +0 -33
  1346. package/node_modules/xmlbuilder2/LICENSE.txt +0 -21
  1347. package/node_modules/xmlbuilder2/README.md +0 -184
  1348. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.d.ts +0 -236
  1349. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +0 -107
  1350. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +0 -1
  1351. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.d.ts +0 -17
  1352. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +0 -26
  1353. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +0 -1
  1354. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +0 -123
  1355. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +0 -684
  1356. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +0 -1
  1357. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.d.ts +0 -143
  1358. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +0 -741
  1359. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +0 -1
  1360. package/node_modules/xmlbuilder2/lib/builder/dom.d.ts +0 -8
  1361. package/node_modules/xmlbuilder2/lib/builder/dom.js +0 -67
  1362. package/node_modules/xmlbuilder2/lib/builder/dom.js.map +0 -1
  1363. package/node_modules/xmlbuilder2/lib/builder/index.d.ts +0 -4
  1364. package/node_modules/xmlbuilder2/lib/builder/index.js +0 -16
  1365. package/node_modules/xmlbuilder2/lib/builder/index.js.map +0 -1
  1366. package/node_modules/xmlbuilder2/lib/constants.d.ts +0 -1
  1367. package/node_modules/xmlbuilder2/lib/constants.js +0 -5
  1368. package/node_modules/xmlbuilder2/lib/constants.js.map +0 -1
  1369. package/node_modules/xmlbuilder2/lib/index.d.ts +0 -1
  1370. package/node_modules/xmlbuilder2/lib/index.js +0 -11
  1371. package/node_modules/xmlbuilder2/lib/index.js.map +0 -1
  1372. package/node_modules/xmlbuilder2/lib/interfaces.d.ts +0 -1356
  1373. package/node_modules/xmlbuilder2/lib/interfaces.js +0 -77
  1374. package/node_modules/xmlbuilder2/lib/interfaces.js.map +0 -1
  1375. package/node_modules/xmlbuilder2/lib/readers/BaseReader.d.ts +0 -109
  1376. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +0 -164
  1377. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +0 -1
  1378. package/node_modules/xmlbuilder2/lib/readers/JSONReader.d.ts +0 -14
  1379. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +0 -21
  1380. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +0 -1
  1381. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.d.ts +0 -15
  1382. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +0 -150
  1383. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +0 -1
  1384. package/node_modules/xmlbuilder2/lib/readers/XMLReader.d.ts +0 -14
  1385. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +0 -141
  1386. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +0 -1
  1387. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.d.ts +0 -14
  1388. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +0 -27
  1389. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +0 -1
  1390. package/node_modules/xmlbuilder2/lib/readers/index.d.ts +0 -4
  1391. package/node_modules/xmlbuilder2/lib/readers/index.js +0 -12
  1392. package/node_modules/xmlbuilder2/lib/readers/index.js.map +0 -1
  1393. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +0 -111
  1394. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +0 -29
  1395. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +0 -1
  1396. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.d.ts +0 -276
  1397. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +0 -1468
  1398. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +0 -1
  1399. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.d.ts +0 -68
  1400. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +0 -156
  1401. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +0 -1
  1402. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.d.ts +0 -67
  1403. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +0 -181
  1404. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +0 -1
  1405. package/node_modules/xmlbuilder2/lib/writers/MapWriter.d.ts +0 -27
  1406. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +0 -69
  1407. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +0 -1
  1408. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.d.ts +0 -56
  1409. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +0 -448
  1410. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +0 -1
  1411. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +0 -51
  1412. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +0 -151
  1413. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +0 -1
  1414. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.d.ts +0 -60
  1415. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +0 -222
  1416. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +0 -1
  1417. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.d.ts +0 -61
  1418. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +0 -145
  1419. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +0 -1
  1420. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.d.ts +0 -55
  1421. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +0 -146
  1422. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +0 -1
  1423. package/node_modules/xmlbuilder2/lib/writers/index.d.ts +0 -5
  1424. package/node_modules/xmlbuilder2/lib/writers/index.js +0 -14
  1425. package/node_modules/xmlbuilder2/lib/writers/index.js.map +0 -1
  1426. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +0 -2
  1427. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js.LICENSE.txt +0 -10
  1428. package/node_modules/xmlbuilder2/package.json +0 -64
  1429. package/node_modules/y18n/LICENSE +0 -13
  1430. package/node_modules/y18n/README.md +0 -127
  1431. package/node_modules/y18n/build/index.cjs +0 -203
  1432. package/node_modules/y18n/build/lib/cjs.js +0 -6
  1433. package/node_modules/y18n/build/lib/index.js +0 -174
  1434. package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  1435. package/node_modules/y18n/index.mjs +0 -8
  1436. package/node_modules/y18n/package.json +0 -70
  1437. package/node_modules/yaml/LICENSE +0 -13
  1438. package/node_modules/yaml/README.md +0 -172
  1439. package/node_modules/yaml/bin.mjs +0 -11
  1440. package/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -88
  1441. package/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -43
  1442. package/node_modules/yaml/browser/dist/compose/compose-node.js +0 -102
  1443. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -86
  1444. package/node_modules/yaml/browser/dist/compose/composer.js +0 -217
  1445. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -115
  1446. package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -198
  1447. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -49
  1448. package/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -37
  1449. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -207
  1450. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -223
  1451. package/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -146
  1452. package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -34
  1453. package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -26
  1454. package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -15
  1455. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -13
  1456. package/node_modules/yaml/browser/dist/doc/Document.js +0 -335
  1457. package/node_modules/yaml/browser/dist/doc/anchors.js +0 -71
  1458. package/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -55
  1459. package/node_modules/yaml/browser/dist/doc/createNode.js +0 -88
  1460. package/node_modules/yaml/browser/dist/doc/directives.js +0 -176
  1461. package/node_modules/yaml/browser/dist/errors.js +0 -57
  1462. package/node_modules/yaml/browser/dist/index.js +0 -17
  1463. package/node_modules/yaml/browser/dist/log.js +0 -11
  1464. package/node_modules/yaml/browser/dist/nodes/Alias.js +0 -114
  1465. package/node_modules/yaml/browser/dist/nodes/Collection.js +0 -147
  1466. package/node_modules/yaml/browser/dist/nodes/Node.js +0 -38
  1467. package/node_modules/yaml/browser/dist/nodes/Pair.js +0 -36
  1468. package/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -24
  1469. package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -144
  1470. package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -113
  1471. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -63
  1472. package/node_modules/yaml/browser/dist/nodes/identity.js +0 -36
  1473. package/node_modules/yaml/browser/dist/nodes/toJS.js +0 -37
  1474. package/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -214
  1475. package/node_modules/yaml/browser/dist/parse/cst-stringify.js +0 -61
  1476. package/node_modules/yaml/browser/dist/parse/cst-visit.js +0 -97
  1477. package/node_modules/yaml/browser/dist/parse/cst.js +0 -98
  1478. package/node_modules/yaml/browser/dist/parse/lexer.js +0 -717
  1479. package/node_modules/yaml/browser/dist/parse/line-counter.js +0 -39
  1480. package/node_modules/yaml/browser/dist/parse/parser.js +0 -967
  1481. package/node_modules/yaml/browser/dist/public-api.js +0 -102
  1482. package/node_modules/yaml/browser/dist/schema/Schema.js +0 -37
  1483. package/node_modules/yaml/browser/dist/schema/common/map.js +0 -17
  1484. package/node_modules/yaml/browser/dist/schema/common/null.js +0 -15
  1485. package/node_modules/yaml/browser/dist/schema/common/seq.js +0 -17
  1486. package/node_modules/yaml/browser/dist/schema/common/string.js +0 -14
  1487. package/node_modules/yaml/browser/dist/schema/core/bool.js +0 -19
  1488. package/node_modules/yaml/browser/dist/schema/core/float.js +0 -43
  1489. package/node_modules/yaml/browser/dist/schema/core/int.js +0 -38
  1490. package/node_modules/yaml/browser/dist/schema/core/schema.js +0 -23
  1491. package/node_modules/yaml/browser/dist/schema/json/schema.js +0 -62
  1492. package/node_modules/yaml/browser/dist/schema/tags.js +0 -96
  1493. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -58
  1494. package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -26
  1495. package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -46
  1496. package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -71
  1497. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -64
  1498. package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -74
  1499. package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -78
  1500. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -39
  1501. package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -93
  1502. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -101
  1503. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -146
  1504. package/node_modules/yaml/browser/dist/stringify/stringify.js +0 -128
  1505. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -143
  1506. package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -20
  1507. package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -85
  1508. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -24
  1509. package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -150
  1510. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -336
  1511. package/node_modules/yaml/browser/dist/util.js +0 -11
  1512. package/node_modules/yaml/browser/dist/visit.js +0 -233
  1513. package/node_modules/yaml/browser/index.js +0 -5
  1514. package/node_modules/yaml/browser/package.json +0 -3
  1515. package/node_modules/yaml/dist/cli.d.ts +0 -8
  1516. package/node_modules/yaml/dist/cli.mjs +0 -201
  1517. package/node_modules/yaml/dist/compose/compose-collection.d.ts +0 -11
  1518. package/node_modules/yaml/dist/compose/compose-collection.js +0 -90
  1519. package/node_modules/yaml/dist/compose/compose-doc.d.ts +0 -7
  1520. package/node_modules/yaml/dist/compose/compose-doc.js +0 -45
  1521. package/node_modules/yaml/dist/compose/compose-node.d.ts +0 -29
  1522. package/node_modules/yaml/dist/compose/compose-node.js +0 -105
  1523. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +0 -5
  1524. package/node_modules/yaml/dist/compose/compose-scalar.js +0 -88
  1525. package/node_modules/yaml/dist/compose/composer.d.ts +0 -63
  1526. package/node_modules/yaml/dist/compose/composer.js +0 -222
  1527. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +0 -6
  1528. package/node_modules/yaml/dist/compose/resolve-block-map.js +0 -117
  1529. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +0 -11
  1530. package/node_modules/yaml/dist/compose/resolve-block-scalar.js +0 -200
  1531. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +0 -6
  1532. package/node_modules/yaml/dist/compose/resolve-block-seq.js +0 -51
  1533. package/node_modules/yaml/dist/compose/resolve-end.d.ts +0 -6
  1534. package/node_modules/yaml/dist/compose/resolve-end.js +0 -39
  1535. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +0 -7
  1536. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +0 -209
  1537. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +0 -10
  1538. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +0 -225
  1539. package/node_modules/yaml/dist/compose/resolve-props.d.ts +0 -23
  1540. package/node_modules/yaml/dist/compose/resolve-props.js +0 -148
  1541. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +0 -2
  1542. package/node_modules/yaml/dist/compose/util-contains-newline.js +0 -36
  1543. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +0 -2
  1544. package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +0 -28
  1545. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +0 -3
  1546. package/node_modules/yaml/dist/compose/util-flow-indent-check.js +0 -17
  1547. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +0 -4
  1548. package/node_modules/yaml/dist/compose/util-map-includes.js +0 -15
  1549. package/node_modules/yaml/dist/doc/Document.d.ts +0 -141
  1550. package/node_modules/yaml/dist/doc/Document.js +0 -337
  1551. package/node_modules/yaml/dist/doc/anchors.d.ts +0 -24
  1552. package/node_modules/yaml/dist/doc/anchors.js +0 -76
  1553. package/node_modules/yaml/dist/doc/applyReviver.d.ts +0 -9
  1554. package/node_modules/yaml/dist/doc/applyReviver.js +0 -57
  1555. package/node_modules/yaml/dist/doc/createNode.d.ts +0 -17
  1556. package/node_modules/yaml/dist/doc/createNode.js +0 -90
  1557. package/node_modules/yaml/dist/doc/directives.d.ts +0 -49
  1558. package/node_modules/yaml/dist/doc/directives.js +0 -178
  1559. package/node_modules/yaml/dist/errors.d.ts +0 -21
  1560. package/node_modules/yaml/dist/errors.js +0 -62
  1561. package/node_modules/yaml/dist/index.d.ts +0 -25
  1562. package/node_modules/yaml/dist/index.js +0 -50
  1563. package/node_modules/yaml/dist/log.d.ts +0 -3
  1564. package/node_modules/yaml/dist/log.js +0 -19
  1565. package/node_modules/yaml/dist/nodes/Alias.d.ts +0 -29
  1566. package/node_modules/yaml/dist/nodes/Alias.js +0 -116
  1567. package/node_modules/yaml/dist/nodes/Collection.d.ts +0 -73
  1568. package/node_modules/yaml/dist/nodes/Collection.js +0 -151
  1569. package/node_modules/yaml/dist/nodes/Node.d.ts +0 -53
  1570. package/node_modules/yaml/dist/nodes/Node.js +0 -40
  1571. package/node_modules/yaml/dist/nodes/Pair.d.ts +0 -22
  1572. package/node_modules/yaml/dist/nodes/Pair.js +0 -39
  1573. package/node_modules/yaml/dist/nodes/Scalar.d.ts +0 -43
  1574. package/node_modules/yaml/dist/nodes/Scalar.js +0 -27
  1575. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +0 -53
  1576. package/node_modules/yaml/dist/nodes/YAMLMap.js +0 -147
  1577. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +0 -60
  1578. package/node_modules/yaml/dist/nodes/YAMLSeq.js +0 -115
  1579. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +0 -4
  1580. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +0 -65
  1581. package/node_modules/yaml/dist/nodes/identity.d.ts +0 -23
  1582. package/node_modules/yaml/dist/nodes/identity.js +0 -53
  1583. package/node_modules/yaml/dist/nodes/toJS.d.ts +0 -29
  1584. package/node_modules/yaml/dist/nodes/toJS.js +0 -39
  1585. package/node_modules/yaml/dist/options.d.ts +0 -344
  1586. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +0 -64
  1587. package/node_modules/yaml/dist/parse/cst-scalar.js +0 -218
  1588. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +0 -8
  1589. package/node_modules/yaml/dist/parse/cst-stringify.js +0 -63
  1590. package/node_modules/yaml/dist/parse/cst-visit.d.ts +0 -39
  1591. package/node_modules/yaml/dist/parse/cst-visit.js +0 -99
  1592. package/node_modules/yaml/dist/parse/cst.d.ts +0 -109
  1593. package/node_modules/yaml/dist/parse/cst.js +0 -112
  1594. package/node_modules/yaml/dist/parse/lexer.d.ts +0 -87
  1595. package/node_modules/yaml/dist/parse/lexer.js +0 -719
  1596. package/node_modules/yaml/dist/parse/line-counter.d.ts +0 -22
  1597. package/node_modules/yaml/dist/parse/line-counter.js +0 -41
  1598. package/node_modules/yaml/dist/parse/parser.d.ts +0 -84
  1599. package/node_modules/yaml/dist/parse/parser.js +0 -972
  1600. package/node_modules/yaml/dist/public-api.d.ts +0 -44
  1601. package/node_modules/yaml/dist/public-api.js +0 -107
  1602. package/node_modules/yaml/dist/schema/Schema.d.ts +0 -17
  1603. package/node_modules/yaml/dist/schema/Schema.js +0 -39
  1604. package/node_modules/yaml/dist/schema/common/map.d.ts +0 -2
  1605. package/node_modules/yaml/dist/schema/common/map.js +0 -19
  1606. package/node_modules/yaml/dist/schema/common/null.d.ts +0 -4
  1607. package/node_modules/yaml/dist/schema/common/null.js +0 -17
  1608. package/node_modules/yaml/dist/schema/common/seq.d.ts +0 -2
  1609. package/node_modules/yaml/dist/schema/common/seq.js +0 -19
  1610. package/node_modules/yaml/dist/schema/common/string.d.ts +0 -2
  1611. package/node_modules/yaml/dist/schema/common/string.js +0 -16
  1612. package/node_modules/yaml/dist/schema/core/bool.d.ts +0 -4
  1613. package/node_modules/yaml/dist/schema/core/bool.js +0 -21
  1614. package/node_modules/yaml/dist/schema/core/float.d.ts +0 -4
  1615. package/node_modules/yaml/dist/schema/core/float.js +0 -47
  1616. package/node_modules/yaml/dist/schema/core/int.d.ts +0 -4
  1617. package/node_modules/yaml/dist/schema/core/int.js +0 -42
  1618. package/node_modules/yaml/dist/schema/core/schema.d.ts +0 -1
  1619. package/node_modules/yaml/dist/schema/core/schema.js +0 -25
  1620. package/node_modules/yaml/dist/schema/json/schema.d.ts +0 -2
  1621. package/node_modules/yaml/dist/schema/json/schema.js +0 -64
  1622. package/node_modules/yaml/dist/schema/json-schema.d.ts +0 -69
  1623. package/node_modules/yaml/dist/schema/tags.d.ts +0 -48
  1624. package/node_modules/yaml/dist/schema/tags.js +0 -99
  1625. package/node_modules/yaml/dist/schema/types.d.ts +0 -92
  1626. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +0 -2
  1627. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +0 -70
  1628. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +0 -7
  1629. package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +0 -29
  1630. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +0 -4
  1631. package/node_modules/yaml/dist/schema/yaml-1.1/float.js +0 -50
  1632. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +0 -5
  1633. package/node_modules/yaml/dist/schema/yaml-1.1/int.js +0 -76
  1634. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +0 -9
  1635. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +0 -68
  1636. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +0 -22
  1637. package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +0 -77
  1638. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +0 -10
  1639. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +0 -82
  1640. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +0 -1
  1641. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +0 -41
  1642. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +0 -28
  1643. package/node_modules/yaml/dist/schema/yaml-1.1/set.js +0 -96
  1644. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +0 -6
  1645. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +0 -105
  1646. package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +0 -34
  1647. package/node_modules/yaml/dist/stringify/foldFlowLines.js +0 -151
  1648. package/node_modules/yaml/dist/stringify/stringify.d.ts +0 -21
  1649. package/node_modules/yaml/dist/stringify/stringify.js +0 -131
  1650. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +0 -17
  1651. package/node_modules/yaml/dist/stringify/stringifyCollection.js +0 -145
  1652. package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +0 -10
  1653. package/node_modules/yaml/dist/stringify/stringifyComment.js +0 -24
  1654. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +0 -4
  1655. package/node_modules/yaml/dist/stringify/stringifyDocument.js +0 -87
  1656. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +0 -2
  1657. package/node_modules/yaml/dist/stringify/stringifyNumber.js +0 -26
  1658. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +0 -3
  1659. package/node_modules/yaml/dist/stringify/stringifyPair.js +0 -152
  1660. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +0 -9
  1661. package/node_modules/yaml/dist/stringify/stringifyString.js +0 -338
  1662. package/node_modules/yaml/dist/test-events.d.ts +0 -4
  1663. package/node_modules/yaml/dist/test-events.js +0 -134
  1664. package/node_modules/yaml/dist/util.d.ts +0 -16
  1665. package/node_modules/yaml/dist/util.js +0 -28
  1666. package/node_modules/yaml/dist/visit.d.ts +0 -102
  1667. package/node_modules/yaml/dist/visit.js +0 -236
  1668. package/node_modules/yaml/package.json +0 -97
  1669. package/node_modules/yaml/util.js +0 -2
  1670. package/node_modules/yargs/LICENSE +0 -21
  1671. package/node_modules/yargs/README.md +0 -204
  1672. package/node_modules/yargs/browser.d.ts +0 -5
  1673. package/node_modules/yargs/browser.mjs +0 -7
  1674. package/node_modules/yargs/build/index.cjs +0 -1
  1675. package/node_modules/yargs/build/lib/argsert.js +0 -62
  1676. package/node_modules/yargs/build/lib/command.js +0 -449
  1677. package/node_modules/yargs/build/lib/completion-templates.js +0 -48
  1678. package/node_modules/yargs/build/lib/completion.js +0 -243
  1679. package/node_modules/yargs/build/lib/middleware.js +0 -88
  1680. package/node_modules/yargs/build/lib/parse-command.js +0 -32
  1681. package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  1682. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  1683. package/node_modules/yargs/build/lib/usage.js +0 -584
  1684. package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  1685. package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  1686. package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  1687. package/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  1688. package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  1689. package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  1690. package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  1691. package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  1692. package/node_modules/yargs/build/lib/validation.js +0 -305
  1693. package/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  1694. package/node_modules/yargs/build/lib/yerror.js +0 -9
  1695. package/node_modules/yargs/helpers/helpers.mjs +0 -10
  1696. package/node_modules/yargs/helpers/index.js +0 -14
  1697. package/node_modules/yargs/helpers/package.json +0 -3
  1698. package/node_modules/yargs/index.cjs +0 -53
  1699. package/node_modules/yargs/index.mjs +0 -8
  1700. package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
  1701. package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  1702. package/node_modules/yargs/locales/be.json +0 -46
  1703. package/node_modules/yargs/locales/cs.json +0 -51
  1704. package/node_modules/yargs/locales/de.json +0 -46
  1705. package/node_modules/yargs/locales/en.json +0 -55
  1706. package/node_modules/yargs/locales/es.json +0 -46
  1707. package/node_modules/yargs/locales/fi.json +0 -49
  1708. package/node_modules/yargs/locales/fr.json +0 -53
  1709. package/node_modules/yargs/locales/hi.json +0 -49
  1710. package/node_modules/yargs/locales/hu.json +0 -46
  1711. package/node_modules/yargs/locales/id.json +0 -50
  1712. package/node_modules/yargs/locales/it.json +0 -46
  1713. package/node_modules/yargs/locales/ja.json +0 -51
  1714. package/node_modules/yargs/locales/ko.json +0 -49
  1715. package/node_modules/yargs/locales/nb.json +0 -44
  1716. package/node_modules/yargs/locales/nl.json +0 -49
  1717. package/node_modules/yargs/locales/nn.json +0 -44
  1718. package/node_modules/yargs/locales/pirate.json +0 -13
  1719. package/node_modules/yargs/locales/pl.json +0 -49
  1720. package/node_modules/yargs/locales/pt.json +0 -45
  1721. package/node_modules/yargs/locales/pt_BR.json +0 -48
  1722. package/node_modules/yargs/locales/ru.json +0 -51
  1723. package/node_modules/yargs/locales/th.json +0 -46
  1724. package/node_modules/yargs/locales/tr.json +0 -48
  1725. package/node_modules/yargs/locales/uk_UA.json +0 -51
  1726. package/node_modules/yargs/locales/uz.json +0 -52
  1727. package/node_modules/yargs/locales/zh_CN.json +0 -48
  1728. package/node_modules/yargs/locales/zh_TW.json +0 -51
  1729. package/node_modules/yargs/node_modules/yargs-parser/LICENSE.txt +0 -14
  1730. package/node_modules/yargs/node_modules/yargs-parser/README.md +0 -518
  1731. package/node_modules/yargs/node_modules/yargs-parser/browser.js +0 -29
  1732. package/node_modules/yargs/node_modules/yargs-parser/build/index.cjs +0 -1050
  1733. package/node_modules/yargs/node_modules/yargs-parser/build/lib/index.js +0 -62
  1734. package/node_modules/yargs/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  1735. package/node_modules/yargs/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  1736. package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  1737. package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  1738. package/node_modules/yargs/node_modules/yargs-parser/package.json +0 -92
  1739. package/node_modules/yargs/package.json +0 -123
  1740. package/node_modules/yargs/yargs +0 -9
  1741. package/node_modules/yargs/yargs.mjs +0 -10
@@ -1,2585 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setValidationErrorCallback = setValidationErrorCallback;
4
- exports.newURL = newURL;
5
- exports.isSpecialScheme = isSpecialScheme;
6
- exports.isSpecial = isSpecial;
7
- exports.defaultPort = defaultPort;
8
- exports.includesCredentials = includesCredentials;
9
- exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
10
- exports.urlSerializer = urlSerializer;
11
- exports.hostSerializer = hostSerializer;
12
- exports.iPv4Serializer = iPv4Serializer;
13
- exports.iPv6Serializer = iPv6Serializer;
14
- exports.urlParser = urlParser;
15
- exports.basicURLParser = basicURLParser;
16
- exports.setTheUsername = setTheUsername;
17
- exports.setThePassword = setThePassword;
18
- exports.isSingleDotPathSegment = isSingleDotPathSegment;
19
- exports.isDoubleDotPathSegment = isDoubleDotPathSegment;
20
- exports.shorten = shorten;
21
- exports.isNormalizedWindowsDriveLetter = isNormalizedWindowsDriveLetter;
22
- exports.isWindowsDriveLetter = isWindowsDriveLetter;
23
- exports.startsWithAWindowsDriveLetter = startsWithAWindowsDriveLetter;
24
- exports.hostParser = hostParser;
25
- exports.iPv4NumberParser = iPv4NumberParser;
26
- exports.iPv4Parser = iPv4Parser;
27
- exports.iPv6Parser = iPv6Parser;
28
- exports.opaqueHostParser = opaqueHostParser;
29
- exports.resolveABlobURL = resolveABlobURL;
30
- exports.percentEncode = percentEncode;
31
- exports.percentDecode = percentDecode;
32
- exports.stringPercentDecode = stringPercentDecode;
33
- exports.utf8PercentEncode = utf8PercentEncode;
34
- exports.hostEquals = hostEquals;
35
- exports.urlEquals = urlEquals;
36
- exports.urlEncodedStringParser = urlEncodedStringParser;
37
- exports.urlEncodedParser = urlEncodedParser;
38
- exports.urlEncodedByteSerializer = urlEncodedByteSerializer;
39
- exports.urlEncodedSerializer = urlEncodedSerializer;
40
- exports.origin = origin;
41
- exports.domainToASCII = domainToASCII;
42
- exports.domainToUnicode = domainToUnicode;
43
- exports.asciiSerializationOfAnOrigin = asciiSerializationOfAnOrigin;
44
- const util_1 = require("@oozcitak/util");
45
- const interfaces_1 = require("./interfaces");
46
- const infra_1 = require("@oozcitak/infra");
47
- const url_1 = require("url");
48
- let _validationErrorCallback;
49
- /**
50
- * Default ports for a special URL scheme.
51
- */
52
- const _defaultPorts = {
53
- "ftp": 21,
54
- "file": null,
55
- "http": 80,
56
- "https": 443,
57
- "ws": 80,
58
- "wss": 443
59
- };
60
- /**
61
- * The C0 control percent-encode set are the C0 controls and all code points
62
- * greater than U+007E (~).
63
- */
64
- const _c0ControlPercentEncodeSet = /[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
65
- /**
66
- * The fragment percent-encode set is the C0 control percent-encode set and
67
- * U+0020 SPACE, U+0022 ("), U+003C (<), U+003E (>), and U+0060 (`).
68
- */
69
- const _fragmentPercentEncodeSet = /[ "<>`]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
70
- /**
71
- * The path percent-encode set is the fragment percent-encode set and
72
- * U+0023 (#), U+003F (?), U+007B ({), and U+007D (}).
73
- */
74
- const _pathPercentEncodeSet = /[ "<>`#?{}]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
75
- /**
76
- * The userinfo percent-encode set is the path percent-encode set and
77
- * U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@), U+005B ([),
78
- * U+005C (\), U+005D (]), U+005E (^), and U+007C (|).
79
- */
80
- const _userInfoPercentEncodeSet = /[ "<>`#?{}/:;=@\[\]\\\^\|]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
81
- /**
82
- * The URL code points are ASCII alphanumeric, U+0021 (!), U+0024 ($),
83
- * U+0026 (&), U+0027 ('), U+0028 LEFT PARENTHESIS, U+0029 RIGHT PARENTHESIS,
84
- * U+002A (*), U+002B (+), U+002C (,), U+002D (-), U+002E (.), U+002F (/),
85
- * U+003A (:), U+003B (;), U+003D (=), U+003F (?), U+0040 (@), U+005F (_),
86
- * U+007E (~), and code points in the range U+00A0 to U+10FFFD, inclusive,
87
- * excluding surrogates and noncharacters.
88
- */
89
- const _urlCodePoints = /[0-9A-Za-z!\$&-\/:;=\?@_~\xA0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uD83E\uD840-\uD87E\uD880-\uD8BE\uD8C0-\uD8FE\uD900-\uD93E\uD940-\uD97E\uD980-\uD9BE\uD9C0-\uD9FE\uDA00-\uDA3E\uDA40-\uDA7E\uDA80-\uDABE\uDAC0-\uDAFE\uDB00-\uDB3E\uDB40-\uDB7E\uDB80-\uDBBE\uDBC0-\uDBFE][\uDC00-\uDFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDC00-\uDFFD]/;
90
- /**
91
- * A forbidden host code point is U+0000 NULL, U+0009 TAB, U+000A LF,
92
- * U+000D CR, U+0020 SPACE, U+0023 (#), U+0025 (%), U+002F (/), U+003A (:),
93
- * U+003F (?), U+0040 (@), U+005B ([), U+005C (\), or U+005D (]).
94
- */
95
- const _forbiddenHostCodePoint = /[\0\t\f\r #%/:?@\[\\\]]/;
96
- /**
97
- * Sets the callback function for validation errors.
98
- *
99
- * @param validationErrorCallback - a callback function to be called when a
100
- * validation error occurs
101
- */
102
- function setValidationErrorCallback(validationErrorCallback) {
103
- _validationErrorCallback = validationErrorCallback;
104
- }
105
- /**
106
- * Generates a validation error.
107
- *
108
- * @param message - error message
109
- */
110
- function validationError(message) {
111
- if (_validationErrorCallback !== undefined) {
112
- _validationErrorCallback.call(null, "Validation Error: " + message);
113
- }
114
- }
115
- /**
116
- * Creates a new URL.
117
- */
118
- function newURL() {
119
- return {
120
- scheme: '',
121
- username: '',
122
- password: '',
123
- host: null,
124
- port: null,
125
- path: [],
126
- query: null,
127
- fragment: null,
128
- _cannotBeABaseURLFlag: false,
129
- _blobURLEntry: null
130
- };
131
- }
132
- /**
133
- * Determines if the scheme is a special scheme.
134
- *
135
- * @param scheme - a scheme
136
- */
137
- function isSpecialScheme(scheme) {
138
- return (scheme in _defaultPorts);
139
- }
140
- /**
141
- * Determines if the URL has a special scheme.
142
- *
143
- * @param url - an URL
144
- */
145
- function isSpecial(url) {
146
- return isSpecialScheme(url.scheme);
147
- }
148
- /**
149
- * Returns the default port for a special scheme.
150
- *
151
- * @param scheme - a scheme
152
- */
153
- function defaultPort(scheme) {
154
- return _defaultPorts[scheme] || null;
155
- }
156
- /**
157
- * Determines if the URL has credentials.
158
- *
159
- * @param url - an URL
160
- */
161
- function includesCredentials(url) {
162
- return url.username !== '' || url.password !== '';
163
- }
164
- /**
165
- * Determines if an URL cannot have credentials.
166
- *
167
- * @param url - an URL
168
- */
169
- function cannotHaveAUsernamePasswordPort(url) {
170
- /**
171
- * A URL cannot have a username/password/port if its host is null or the
172
- * empty string, its cannot-be-a-base-URL flag is set, or its scheme is
173
- * "file".
174
- */
175
- return (url.host === null || url.host === "" || url._cannotBeABaseURLFlag ||
176
- url.scheme === "file");
177
- }
178
- /**
179
- * Serializes an URL into a string.
180
- *
181
- * @param url - an URL
182
- */
183
- function urlSerializer(url, excludeFragmentFlag = false) {
184
- /**
185
- * 1. Let output be url’s scheme and U+003A (:) concatenated.
186
- */
187
- let output = url.scheme + ':';
188
- /**
189
- * 2. If url’s host is non-null:
190
- */
191
- if (url.host !== null) {
192
- /**
193
- * 2.1. Append "//" to output.
194
- */
195
- output += '//';
196
- /**
197
- * 2.2. If url includes credentials, then:
198
- */
199
- if (includesCredentials(url)) {
200
- /**
201
- * 2.2.1. Append url’s username to output.
202
- * 2.2.2. If url’s password is not the empty string, then append U+003A (:),
203
- * followed by url’s password, to output.
204
- * 2.2.3. Append U+0040 (@) to output.
205
- */
206
- output += url.username;
207
- if (url.password !== '') {
208
- output += ':' + url.password;
209
- }
210
- output += '@';
211
- }
212
- /**
213
- * 2.3. Append url’s host, serialized, to output.
214
- * 2.4. If url’s port is non-null, append U+003A (:) followed by url’s port,
215
- * serialized, to output.
216
- */
217
- output += hostSerializer(url.host);
218
- if (url.port !== null) {
219
- output += ':' + url.port;
220
- }
221
- }
222
- else if (url.host === null && url.scheme === "file") {
223
- /**
224
- * 3. Otherwise, if url’s host is null and url’s scheme is "file", append "//" to output.
225
- */
226
- output += '//';
227
- }
228
- /**
229
- * 4. If url’s cannot-be-a-base-URL flag is set, append url’s path[0] to
230
- * output.
231
- * 5. Otherwise, then for each string in url’s path, append U+002F (/)
232
- * followed by the string to output.
233
- */
234
- if (url._cannotBeABaseURLFlag) {
235
- output += url.path[0];
236
- }
237
- else {
238
- for (const str of url.path) {
239
- output += '/' + str;
240
- }
241
- }
242
- /**
243
- * 6. If url’s query is non-null, append U+003F (?), followed by url’s
244
- * query, to output.
245
- * 7. If the exclude fragment flag is unset and url’s fragment is non-null,
246
- * append U+0023 (#), followed by url’s fragment, to output.
247
- * 8. Return output.
248
- */
249
- if (url.query !== null) {
250
- output += '?' + url.query;
251
- }
252
- if (!excludeFragmentFlag && url.fragment !== null) {
253
- output += '#' + url.fragment;
254
- }
255
- return output;
256
- }
257
- /**
258
- * Serializes a host into a string.
259
- *
260
- * @param host - a host
261
- */
262
- function hostSerializer(host) {
263
- /**
264
- * 1. If host is an IPv4 address, return the result of running the IPv4
265
- * serializer on host.
266
- * 2. Otherwise, if host is an IPv6 address, return U+005B ([), followed
267
- * by the result of running the IPv6 serializer on host, followed by
268
- * U+005D (]).
269
- * 3. Otherwise, host is a domain, opaque host, or empty host, return host.
270
- */
271
- if ((0, util_1.isNumber)(host)) {
272
- return iPv4Serializer(host);
273
- }
274
- else if ((0, util_1.isArray)(host)) {
275
- return '[' + iPv6Serializer(host) + ']';
276
- }
277
- else {
278
- return host;
279
- }
280
- }
281
- /**
282
- * Serializes an IPv4 address into a string.
283
- *
284
- * @param address - an IPv4 address
285
- */
286
- function iPv4Serializer(address) {
287
- /**
288
- * 1. Let output be the empty string.
289
- * 2. Let n be the value of address.
290
- * 3. For each i in the range 1 to 4, inclusive:
291
- * 3.1. Prepend n % 256, serialized, to output.
292
- * 3.2. If i is not 4, then prepend U+002E (.) to output.
293
- * 3.3. Set n to floor(n / 256).
294
- * 4. Return output.
295
- */
296
- let output = "";
297
- let n = address;
298
- for (let i = 1; i <= 4; i++) {
299
- output = (n % 256).toString() + output;
300
- if (i !== 4) {
301
- output = '.' + output;
302
- }
303
- n = Math.floor(n / 256);
304
- }
305
- return output;
306
- }
307
- /**
308
- * Serializes an IPv6 address into a string.
309
- *
310
- * @param address - an IPv6 address represented as a list of eight numbers
311
- */
312
- function iPv6Serializer(address) {
313
- /**
314
- * 1. Let output be the empty string.
315
- * 2. Let compress be an index to the first IPv6 piece in the first longest
316
- * sequences of address’s IPv6 pieces that are 0.
317
- * In 0:f:0:0:f:f:0:0 it would point to the second 0.
318
- * 3. If there is no sequence of address’s IPv6 pieces that are 0 that is
319
- * longer than 1, then set compress to null.
320
- */
321
- let output = "";
322
- let compress = null;
323
- let lastIndex = -1;
324
- let count = 0;
325
- let lastCount = 0;
326
- for (let i = 0; i < 8; i++) {
327
- if (address[i] !== 0)
328
- continue;
329
- count = 1;
330
- for (let j = i + 1; j < 8; j++) {
331
- if (address[j] !== 0)
332
- break;
333
- count++;
334
- continue;
335
- }
336
- if (count > lastCount) {
337
- lastCount = count;
338
- lastIndex = i;
339
- }
340
- }
341
- if (lastCount > 1)
342
- compress = lastIndex;
343
- /**
344
- * 4. Let ignore0 be false.
345
- * 5. For each pieceIndex in the range 0 to 7, inclusive:
346
- */
347
- let ignore0 = false;
348
- for (let pieceIndex = 0; pieceIndex < 8; pieceIndex++) {
349
- /**
350
- * 5.1. If ignore0 is true and address[pieceIndex] is 0, then continue.
351
- * 5.2. Otherwise, if ignore0 is true, set ignore0 to false.
352
- * 5.3. If compress is pieceIndex, then:
353
- */
354
- if (ignore0 && address[pieceIndex] === 0)
355
- continue;
356
- if (ignore0)
357
- ignore0 = false;
358
- if (compress === pieceIndex) {
359
- /**
360
- * 5.3.1. Let separator be "::" if pieceIndex is 0, and U+003A (:) otherwise.
361
- * 5.3.2. Append separator to output.
362
- * 5.3.3. Set ignore0 to true and continue.
363
- */
364
- output += (pieceIndex === 0 ? '::' : ':');
365
- ignore0 = true;
366
- continue;
367
- }
368
- /**
369
- * 5.4. Append address[pieceIndex], represented as the shortest possible
370
- * lowercase hexadecimal number, to output.
371
- * 5.5. If pieceIndex is not 7, then append U+003A (:) to output.
372
- */
373
- output += address[pieceIndex].toString(16);
374
- if (pieceIndex !== 7)
375
- output += ':';
376
- }
377
- /**
378
- * 6. Return output.
379
- */
380
- return output;
381
- }
382
- /**
383
- * Parses an URL string.
384
- *
385
- * @param input - input string
386
- * @param baseURL - base URL
387
- * @param encodingOverride - encoding override
388
- */
389
- function urlParser(input, baseURL, encodingOverride) {
390
- /**
391
- * 1. Let url be the result of running the basic URL parser on input with
392
- * base, and encoding override as provided.
393
- * 2. If url is failure, return failure.
394
- * 3. If url’s scheme is not "blob", return url.
395
- * 4. Set url’s blob URL entry to the result of resolving the blob URL url,
396
- * if that did not return failure, and null otherwise.
397
- * 5. Return url.
398
- */
399
- const url = basicURLParser(input, baseURL, encodingOverride);
400
- if (url === null)
401
- return null;
402
- if (url.scheme !== "blob")
403
- return url;
404
- const entry = resolveABlobURL(url);
405
- if (entry !== null) {
406
- url._blobURLEntry = entry;
407
- }
408
- else {
409
- url._blobURLEntry = null;
410
- }
411
- return url;
412
- }
413
- /**
414
- * Parses an URL string.
415
- *
416
- * @param input - input string
417
- * @param baseURL - base URL
418
- * @param encodingOverride - encoding override
419
- */
420
- function basicURLParser(input, baseURL, encodingOverride, url, stateOverride) {
421
- /**
422
- * 1. If url is not given:
423
- * 1.1. Set url to a new URL.
424
- * 1.2. If input contains any leading or trailing C0 control or space,
425
- * validation error.
426
- * 1.3. Remove any leading and trailing C0 control or space from input.
427
- */
428
- if (url === undefined) {
429
- url = newURL();
430
- // leading
431
- const leadingControlOrSpace = /^[\u0000-\u001F\u0020]+/;
432
- const trailingControlOrSpace = /[\u0000-\u001F\u0020]+$/;
433
- if (leadingControlOrSpace.test(input) || trailingControlOrSpace.test(input)) {
434
- validationError("Input string contains leading or trailing control characters or space.");
435
- }
436
- input = input.replace(leadingControlOrSpace, '');
437
- input = input.replace(trailingControlOrSpace, '');
438
- }
439
- /**
440
- * 2. If input contains any ASCII tab or newline, validation error.
441
- * 3. Remove all ASCII tab or newline from input.
442
- */
443
- const tabOrNewline = /[\u0009\u000A\u000D]/g;
444
- if (tabOrNewline.test(input)) {
445
- validationError("Input string contains tab or newline characters.");
446
- }
447
- input = input.replace(tabOrNewline, '');
448
- /**
449
- * 4. Let state be state override if given, or scheme start state otherwise.
450
- * 5. If base is not given, set it to null.
451
- * 6. Let encoding be UTF-8.
452
- * 7. If encoding override is given, set encoding to the result of getting
453
- * an output encoding from encoding override.
454
- */
455
- let state = (stateOverride === undefined ? interfaces_1.ParserState.SchemeStart : stateOverride);
456
- if (baseURL === undefined)
457
- baseURL = null;
458
- let encoding = (encodingOverride === undefined ||
459
- encodingOverride === "replacement" || encodingOverride === "UTF-16BE" ||
460
- encodingOverride === "UTF-16LE" ? "UTF-8" : encodingOverride);
461
- /**
462
- * 8. Let buffer be the empty string.
463
- * 9. Let the @ flag, [] flag, and passwordTokenSeenFlag be unset.
464
- * 10. Let pointer be a pointer to first code point in input.
465
- */
466
- let buffer = "";
467
- let atFlag = false;
468
- let arrayFlag = false;
469
- let passwordTokenSeenFlag = false;
470
- const EOF = "";
471
- const walker = new util_1.StringWalker(input);
472
- /**
473
- * 11. Keep running the following state machine by switching on state. If
474
- * after a run pointer points to the EOF code point, go to the next step.
475
- * Otherwise, increase pointer by one and continue with the state machine.
476
- */
477
- while (true) {
478
- switch (state) {
479
- case interfaces_1.ParserState.SchemeStart:
480
- /**
481
- * 1. If c is an ASCII alpha, append c, lowercased, to buffer, and set
482
- * state to scheme state.
483
- * 2. Otherwise, if state override is not given, set state to no scheme
484
- * state, and decrease pointer by one.
485
- * 3. Otherwise, validation error, return failure.
486
- */
487
- if (infra_1.codePoint.ASCIIAlpha.test(walker.c())) {
488
- buffer += walker.c().toLowerCase();
489
- state = interfaces_1.ParserState.Scheme;
490
- }
491
- else if (stateOverride === undefined) {
492
- state = interfaces_1.ParserState.NoScheme;
493
- walker.pointer--;
494
- }
495
- else {
496
- validationError("Invalid scheme start character.");
497
- return null;
498
- }
499
- break;
500
- case interfaces_1.ParserState.Scheme:
501
- /**
502
- * 1. If c is an ASCII alphanumeric, U+002B (+), U+002D (-), or U+002E
503
- * (.), append c, lowercased, to buffer.
504
- */
505
- if (infra_1.codePoint.ASCIIAlphanumeric.test(walker.c()) ||
506
- walker.c() === '+' || walker.c() === '-' || walker.c() === '.') {
507
- buffer += walker.c().toLowerCase();
508
- }
509
- else if (walker.c() === ':') {
510
- /**
511
- * 2. Otherwise, if c is U+003A (:), then:
512
- * 2.1. If state override is given, then:
513
- * 2.1.1. If url’s scheme is a special scheme and buffer is not a
514
- * special scheme, then return.
515
- * 2.1.2. If url’s scheme is not a special scheme and buffer is a
516
- * special scheme, then return.
517
- * 2.1.3. If url includes credentials or has a non-null port, and
518
- * buffer is "file", then return.
519
- * 2.1.4. If url’s scheme is "file" and its host is an empty host or
520
- * null, then return.
521
- */
522
- if (stateOverride !== undefined) {
523
- if (isSpecialScheme(url.scheme) && !isSpecialScheme(buffer))
524
- return url;
525
- if (!isSpecialScheme(url.scheme) && isSpecialScheme(buffer))
526
- return url;
527
- if ((includesCredentials(url) || url.port !== null) && buffer === "file")
528
- return url;
529
- if (url.scheme === "file" && (url.host === "" || url.host === null))
530
- return url;
531
- }
532
- /**
533
- * 2.2. Set url’s scheme to buffer.
534
- */
535
- url.scheme = buffer;
536
- /**
537
- * 2.3. If state override is given, then:
538
- * 2.3.1. If url’s port is url’s scheme’s default port, then set
539
- * url’s port to null.
540
- * 2.3.2. Return.
541
- */
542
- if (stateOverride !== undefined) {
543
- if (url.port === defaultPort(url.scheme)) {
544
- url.port = null;
545
- }
546
- return url;
547
- }
548
- /**
549
- * 2.4. Set buffer to the empty string.
550
- */
551
- buffer = "";
552
- if (url.scheme === "file") {
553
- /**
554
- * 2.5. If url’s scheme is "file", then:
555
- * 2.5.1. If remaining does not start with "//", validation error.
556
- * 2.5.2. Set state to file state.
557
- */
558
- if (!walker.remaining().startsWith("//")) {
559
- validationError("Invalid file URL scheme, '//' expected.");
560
- }
561
- state = interfaces_1.ParserState.File;
562
- }
563
- else if (isSpecial(url) && baseURL !== null && baseURL.scheme === url.scheme) {
564
- /**
565
- * 2.6. Otherwise, if url is special, base is non-null, and base’s
566
- * scheme is equal to url’s scheme, set state to special relative
567
- * or authority state.
568
- */
569
- state = interfaces_1.ParserState.SpecialRelativeOrAuthority;
570
- }
571
- else if (isSpecial(url)) {
572
- /**
573
- * 2.7. Otherwise, if url is special, set state to special
574
- * authority slashes state.
575
- */
576
- state = interfaces_1.ParserState.SpecialAuthoritySlashes;
577
- }
578
- else if (walker.remaining().startsWith("/")) {
579
- /**
580
- * 2.8. Otherwise, if remaining starts with an U+002F (/), set state
581
- * to path or authority state and increase pointer by one.
582
- */
583
- state = interfaces_1.ParserState.PathOrAuthority;
584
- walker.pointer++;
585
- }
586
- else {
587
- /**
588
- * 2.9. Otherwise, set url’s cannot-be-a-base-URL flag, append an
589
- * empty string to url’s path, and set state to
590
- * cannot-be-a-base-URL path state.
591
- */
592
- url._cannotBeABaseURLFlag = true;
593
- url.path.push("");
594
- state = interfaces_1.ParserState.CannotBeABaseURLPath;
595
- }
596
- }
597
- else if (stateOverride === undefined) {
598
- /**
599
- * 3. Otherwise, if state override is not given, set buffer to the
600
- * empty string, state to no scheme state, and start over (from the
601
- * first code point in input).
602
- */
603
- buffer = "";
604
- state = interfaces_1.ParserState.NoScheme;
605
- walker.pointer = 0;
606
- continue;
607
- }
608
- else {
609
- /**
610
- * 4. Otherwise, validation error, return failure.
611
- */
612
- validationError("Invalid input string.");
613
- return null;
614
- }
615
- break;
616
- case interfaces_1.ParserState.NoScheme:
617
- /**
618
- * 1. If base is null, or base’s cannot-be-a-base-URL flag is set
619
- * and c is not U+0023 (#), validation error, return failure.
620
- * 2. Otherwise, if base’s cannot-be-a-base-URL flag is set and
621
- * c is U+0023 (#), set url’s scheme to base’s scheme, url’s path to
622
- * a copy of base’s path, url’s query to base’s query, url’s
623
- * fragment to the empty string, set url’s cannot-be-a-base-URL
624
- * flag, and set state to fragment state.
625
- * 3. Otherwise, if base’s scheme is not "file", set state to
626
- * relative state and decrease pointer by one.
627
- * 4. Otherwise, set state to file state and decrease pointer by one.
628
- */
629
- if (baseURL === null || (baseURL._cannotBeABaseURLFlag && walker.c() !== '#')) {
630
- validationError("Invalid input string.");
631
- return null;
632
- }
633
- else if (baseURL._cannotBeABaseURLFlag && walker.c() === '#') {
634
- url.scheme = baseURL.scheme;
635
- url.path = infra_1.list.clone(baseURL.path);
636
- url.query = baseURL.query;
637
- url.fragment = "";
638
- url._cannotBeABaseURLFlag = true;
639
- state = interfaces_1.ParserState.Fragment;
640
- }
641
- else if (baseURL.scheme !== "file") {
642
- state = interfaces_1.ParserState.Relative;
643
- walker.pointer--;
644
- }
645
- else {
646
- state = interfaces_1.ParserState.File;
647
- walker.pointer--;
648
- }
649
- break;
650
- case interfaces_1.ParserState.SpecialRelativeOrAuthority:
651
- /**
652
- * If c is U+002F (/) and remaining starts with U+002F (/), then set
653
- * state to special authority ignore slashes state and increase
654
- * pointer by one.
655
- * Otherwise, validation error, set state to relative state and
656
- * decrease pointer by one.
657
- */
658
- if (walker.c() === '/' && walker.remaining().startsWith('/')) {
659
- state = interfaces_1.ParserState.SpecialAuthorityIgnoreSlashes;
660
- walker.pointer++;
661
- }
662
- else {
663
- validationError("Invalid input string.");
664
- state = interfaces_1.ParserState.Relative;
665
- walker.pointer--;
666
- }
667
- break;
668
- case interfaces_1.ParserState.PathOrAuthority:
669
- /**
670
- * If c is U+002F (/), then set state to authority state.
671
- * Otherwise, set state to path state, and decrease pointer by one.
672
- */
673
- if (walker.c() === '/') {
674
- state = interfaces_1.ParserState.Authority;
675
- }
676
- else {
677
- state = interfaces_1.ParserState.Path;
678
- walker.pointer--;
679
- }
680
- break;
681
- case interfaces_1.ParserState.Relative:
682
- /**
683
- * Set url’s scheme to base’s scheme, and then, switching on c:
684
- */
685
- if (baseURL === null) {
686
- throw new Error("Invalid parser state. Base URL is null.");
687
- }
688
- url.scheme = baseURL.scheme;
689
- switch (walker.c()) {
690
- case EOF: // EOF
691
- /**
692
- * Set url’s username to base’s username, url’s password to base’s
693
- * password, url’s host to base’s host, url’s port to base’s port,
694
- * url’s path to a copy of base’s path, and url’s query to base’s
695
- * query.
696
- */
697
- url.username = baseURL.username;
698
- url.password = baseURL.password;
699
- url.host = baseURL.host;
700
- url.port = baseURL.port;
701
- url.path = infra_1.list.clone(baseURL.path);
702
- url.query = baseURL.query;
703
- break;
704
- case '/':
705
- /**
706
- * Set state to relative slash state.
707
- */
708
- state = interfaces_1.ParserState.RelativeSlash;
709
- break;
710
- case '?':
711
- /**
712
- * Set url’s username to base’s username, url’s password to base’s
713
- * password, url’s host to base’s host, url’s port to base’s port,
714
- * url’s path to a copy of base’s path, url’s query to the empty
715
- * string, and state to query state.
716
- */
717
- url.username = baseURL.username;
718
- url.password = baseURL.password;
719
- url.host = baseURL.host;
720
- url.port = baseURL.port;
721
- url.path = infra_1.list.clone(baseURL.path);
722
- url.query = "";
723
- state = interfaces_1.ParserState.Query;
724
- break;
725
- case '#':
726
- /**
727
- * Set url’s username to base’s username, url’s password to base’s
728
- * password, url’s host to base’s host, url’s port to base’s port,
729
- * url’s path to a copy of base’s path, url’s query to base’s
730
- * query, url’s fragment to the empty string, and state to
731
- * fragment state.
732
- */
733
- url.username = baseURL.username;
734
- url.password = baseURL.password;
735
- url.host = baseURL.host;
736
- url.port = baseURL.port;
737
- url.path = infra_1.list.clone(baseURL.path);
738
- url.query = baseURL.query;
739
- url.fragment = "";
740
- state = interfaces_1.ParserState.Fragment;
741
- break;
742
- default:
743
- /**
744
- * If url is special and c is U+005C (\), validation error,
745
- * set state to relative slash state.
746
- * Otherwise, run these steps:
747
- * 1. Set url’s username to base’s username, url’s password to
748
- * base’s password, url’s host to base’s host, url’s port to
749
- * base’s port, url’s path to a copy of base’s path, and then
750
- * remove url’s path’s last item, if any.
751
- * 2. Set state to path state, and decrease pointer by one.
752
- */
753
- if (isSpecial(url) && walker.c() === '\\') {
754
- validationError("Invalid input string.");
755
- state = interfaces_1.ParserState.RelativeSlash;
756
- }
757
- else {
758
- url.username = baseURL.username;
759
- url.password = baseURL.password;
760
- url.host = baseURL.host;
761
- url.port = baseURL.port;
762
- url.path = infra_1.list.clone(baseURL.path);
763
- if (url.path.length !== 0)
764
- url.path.splice(url.path.length - 1, 1);
765
- state = interfaces_1.ParserState.Path;
766
- walker.pointer--;
767
- }
768
- break;
769
- }
770
- break;
771
- case interfaces_1.ParserState.RelativeSlash:
772
- /**
773
- * 1. If url is special and c is U+002F (/) or U+005C (\), then:
774
- * 1.1. If c is U+005C (\), validation error.
775
- * 1.2. Set state to special authority ignore slashes state.
776
- * 2. Otherwise, if c is U+002F (/), then set state to authority state.
777
- * 3. Otherwise, set url’s username to base’s username, url’s password
778
- * to base’s password, url’s host to base’s host, url’s port to base’s
779
- * port, state to path state, and then, decrease pointer by one.
780
- */
781
- if (isSpecial(url) && (walker.c() === '/' || walker.c() === '\\')) {
782
- if (walker.c() === '\\') {
783
- validationError("Invalid input string.");
784
- }
785
- state = interfaces_1.ParserState.SpecialAuthorityIgnoreSlashes;
786
- }
787
- else if (walker.c() === '/') {
788
- state = interfaces_1.ParserState.Authority;
789
- }
790
- else {
791
- if (baseURL === null) {
792
- throw new Error("Invalid parser state. Base URL is null.");
793
- }
794
- url.username = baseURL.username;
795
- url.password = baseURL.password;
796
- url.host = baseURL.host;
797
- url.port = baseURL.port;
798
- state = interfaces_1.ParserState.Path;
799
- walker.pointer--;
800
- }
801
- break;
802
- case interfaces_1.ParserState.SpecialAuthoritySlashes:
803
- /**
804
- * If c is U+002F (/) and remaining starts with U+002F (/), then set
805
- * state to special authority ignore slashes state and increase
806
- * pointer by one.
807
- * Otherwise, validation error, set state to special authority ignore
808
- * slashes state, and decrease pointer by one.
809
- */
810
- if (walker.c() === '/' && walker.remaining().startsWith('/')) {
811
- state = interfaces_1.ParserState.SpecialAuthorityIgnoreSlashes;
812
- walker.pointer++;
813
- }
814
- else {
815
- validationError("Expected '//'.");
816
- state = interfaces_1.ParserState.SpecialAuthorityIgnoreSlashes;
817
- walker.pointer--;
818
- }
819
- break;
820
- case interfaces_1.ParserState.SpecialAuthorityIgnoreSlashes:
821
- /**
822
- * If c is neither U+002F (/) nor U+005C (\), then set state to
823
- * authority state and decrease pointer by one.
824
- * Otherwise, validation error.
825
- */
826
- if (walker.c() !== '/' && walker.c() !== '\\') {
827
- state = interfaces_1.ParserState.Authority;
828
- walker.pointer--;
829
- }
830
- else {
831
- validationError("Unexpected '/' or '\\'.");
832
- }
833
- break;
834
- case interfaces_1.ParserState.Authority:
835
- /**
836
- * 1. If c is U+0040 (@), then:
837
- */
838
- if (walker.c() === '@') {
839
- /**
840
- * 1.1. Validation error.
841
- * 1.2. If the @ flag is set, prepend "%40" to buffer.
842
- * 1.3. Set the @ flag.
843
- * 1.4. For each codePoint in buffer:
844
- */
845
- validationError("Unexpected '@'.");
846
- if (atFlag)
847
- buffer = '%40' + buffer;
848
- atFlag = true;
849
- for (const codePoint of buffer) {
850
- /**
851
- * 1.4.1. If codePoint is U+003A (:) and passwordTokenSeenFlag is
852
- * unset, then set passwordTokenSeenFlag and continue.
853
- * 1.4.2. Let encodedCodePoints be the result of running UTF-8
854
- * percent encode codePoint using the userinfo percent-encode set.
855
- * 1.4.3. If passwordTokenSeenFlag is set, then append
856
- * encodedCodePoints to url’s password.
857
- * 1.4.4. Otherwise, append encodedCodePoints to url’s username.
858
- */
859
- if (codePoint === ':' && !passwordTokenSeenFlag) {
860
- passwordTokenSeenFlag = true;
861
- continue;
862
- }
863
- const encodedCodePoints = utf8PercentEncode(codePoint, _userInfoPercentEncodeSet);
864
- if (passwordTokenSeenFlag) {
865
- url.password += encodedCodePoints;
866
- }
867
- else {
868
- url.username += encodedCodePoints;
869
- }
870
- }
871
- /**
872
- * 1.5. Set buffer to the empty string.
873
- */
874
- buffer = "";
875
- }
876
- else if (walker.c() === EOF || walker.c() === '/' || walker.c() === '?' || walker.c() === '#' ||
877
- (isSpecial(url) && walker.c() === '\\')) {
878
- /**
879
- * 2. Otherwise, if one of the following is true
880
- * - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
881
- * - url is special and c is U+005C (\)
882
- * then:
883
- * 2.1. If @ flag is set and buffer is the empty string, validation
884
- * error, return failure.
885
- * 2.2. Decrease pointer by the number of code points in buffer plus
886
- * one, set buffer to the empty string, and set state to host state.
887
- */
888
- if (atFlag && buffer === "") {
889
- validationError("Invalid input string.");
890
- return null;
891
- }
892
- walker.pointer -= (buffer.length + 1);
893
- buffer = "";
894
- state = interfaces_1.ParserState.Host;
895
- }
896
- else {
897
- /**
898
- * 3. Otherwise, append c to buffer.
899
- */
900
- buffer += walker.c();
901
- }
902
- break;
903
- case interfaces_1.ParserState.Host:
904
- case interfaces_1.ParserState.Hostname:
905
- if (stateOverride !== undefined && url.scheme === "file") {
906
- /**
907
- * 1. If state override is given and url’s scheme is "file", then
908
- * decrease pointer by one and set state to file host state.
909
- */
910
- walker.pointer--;
911
- state = interfaces_1.ParserState.FileHost;
912
- }
913
- else if (walker.c() === ':' && !arrayFlag) {
914
- /**
915
- * 2. Otherwise, if c is U+003A (:) and the [] flag is unset, then:
916
- * 2.1. If buffer is the empty string, validation error, return
917
- * failure.
918
- * 2.2. Let host be the result of host parsing buffer with url is
919
- * not special.
920
- * 2.3. If host is failure, then return failure.
921
- * 2.4. Set url’s host to host, buffer to the empty string, and
922
- * state to port state.
923
- * 2.5. If state override is given and state override is hostname
924
- * state, then return.
925
- */
926
- if (buffer === "") {
927
- validationError("Invalid input string.");
928
- return null;
929
- }
930
- const host = hostParser(buffer, !isSpecial(url));
931
- if (host === null)
932
- return null;
933
- url.host = host;
934
- buffer = "";
935
- state = interfaces_1.ParserState.Port;
936
- if (stateOverride === interfaces_1.ParserState.Hostname)
937
- return url;
938
- }
939
- else if (walker.c() === EOF || walker.c() === '/' || walker.c() === '?' || walker.c() === '#' ||
940
- (isSpecial(url) && walker.c() === '\\')) {
941
- /**
942
- * 3. Otherwise, if one of the following is true
943
- * - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
944
- * - url is special and c is U+005C (\)
945
- * then decrease pointer by one, and then:
946
- * 3.1. If url is special and buffer is the empty string, validation
947
- * error, return failure.
948
- * 3.2. Otherwise, if state override is given, buffer is the empty
949
- * string, and either url includes credentials or url’s port is
950
- * non-null, validation error, return.
951
- * 3.3. Let host be the result of host parsing buffer with url is
952
- * not special.
953
- * 3.4. If host is failure, then return failure.
954
- * 3.5. Set url’s host to host, buffer to the empty string, and
955
- * state to path start state.
956
- * 3.6. If state override is given, then return.
957
- */
958
- walker.pointer--;
959
- if (isSpecial(url) && buffer === "") {
960
- validationError("Invalid input string.");
961
- return null;
962
- }
963
- else if (stateOverride !== undefined && buffer === "" &&
964
- (includesCredentials(url) || url.port !== null)) {
965
- validationError("Invalid input string.");
966
- return url;
967
- }
968
- const host = hostParser(buffer, !isSpecial(url));
969
- if (host === null)
970
- return null;
971
- url.host = host;
972
- buffer = "";
973
- state = interfaces_1.ParserState.PathStart;
974
- if (stateOverride !== undefined)
975
- return url;
976
- }
977
- else {
978
- /**
979
- * 4. Otherwise:
980
- * 4.1. If c is U+005B ([), then set the [] flag.
981
- * 4.2. If c is U+005D (]), then unset the [] flag.
982
- * 4.3. Append c to buffer.
983
- */
984
- if (walker.c() === '[')
985
- arrayFlag = true;
986
- if (walker.c() === ']')
987
- arrayFlag = false;
988
- buffer += walker.c();
989
- }
990
- break;
991
- case interfaces_1.ParserState.Port:
992
- if (infra_1.codePoint.ASCIIDigit.test(walker.c())) {
993
- /**
994
- * 1. If c is an ASCII digit, append c to buffer.
995
- */
996
- buffer += walker.c();
997
- }
998
- else if (walker.c() === EOF || walker.c() === '/' || walker.c() === '?' || walker.c() === '#' ||
999
- (isSpecial(url) && walker.c() === '\\') || stateOverride) {
1000
- /**
1001
- * 2. Otherwise, if one of the following is true
1002
- * - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
1003
- * - url is special and c is U+005C (\)
1004
- * - state override is given
1005
- * then:
1006
- */
1007
- if (buffer !== "") {
1008
- /**
1009
- * 2.1. If buffer is not the empty string, then:
1010
- * 2.1.1. Let port be the mathematical integer value that is
1011
- * represented by buffer in radix-10 using ASCII digits for digits
1012
- * with values 0 through 9.
1013
- * 2.1.2. If port is greater than 2**16 − 1, validation error,
1014
- * return failure.
1015
- * 2.1.3. Set url’s port to null, if port is url’s scheme’s default
1016
- * port, and to port otherwise.
1017
- * 2.1.4. Set buffer to the empty string.
1018
- */
1019
- if (buffer !== "") {
1020
- const port = parseInt(buffer, 10);
1021
- if (port > Math.pow(2, 16) - 1) {
1022
- validationError("Invalid port number.");
1023
- return null;
1024
- }
1025
- url.port = (port === defaultPort(url.scheme) ? null : port);
1026
- buffer = "";
1027
- }
1028
- }
1029
- /**
1030
- * 2.2. If state override is given, then return.
1031
- * 2.3. Set state to path start state, and decrease pointer by one.
1032
- */
1033
- if (stateOverride !== undefined) {
1034
- return url;
1035
- }
1036
- state = interfaces_1.ParserState.PathStart;
1037
- walker.pointer--;
1038
- }
1039
- else {
1040
- /**
1041
- * 3. Otherwise, validation error, return failure.
1042
- */
1043
- validationError("Invalid input string.");
1044
- return null;
1045
- }
1046
- break;
1047
- case interfaces_1.ParserState.File:
1048
- /**
1049
- * 1. Set url’s scheme to "file".
1050
- */
1051
- url.scheme = "file";
1052
- if (walker.c() === '/' || walker.c() === '\\') {
1053
- /**
1054
- * 2. If c is U+002F (/) or U+005C (\), then:
1055
- * 2.1. If c is U+005C (\), validation error.
1056
- * 2.2. Set state to file slash state.
1057
- */
1058
- if (walker.c() === '\\') {
1059
- validationError("Invalid input string.");
1060
- }
1061
- state = interfaces_1.ParserState.FileSlash;
1062
- }
1063
- else if (baseURL !== null && baseURL.scheme === "file") {
1064
- /**
1065
- * 3. Otherwise, if base is non-null and base’s scheme is "file",
1066
- * switch on c:
1067
- */
1068
- switch (walker.c()) {
1069
- case EOF:
1070
- /**
1071
- * Set url’s host to base’s host, url’s path to a copy of base’s
1072
- * path, and url’s query to base’s query.
1073
- */
1074
- url.host = baseURL.host;
1075
- url.path = infra_1.list.clone(baseURL.path);
1076
- url.query = baseURL.query;
1077
- break;
1078
- case '?':
1079
- /**
1080
- * Set url’s host to base’s host, url’s path to a copy of base’s
1081
- * path, url’s query to the empty string, and state to query
1082
- * state.
1083
- */
1084
- url.host = baseURL.host;
1085
- url.path = infra_1.list.clone(baseURL.path);
1086
- url.query = "";
1087
- state = interfaces_1.ParserState.Query;
1088
- break;
1089
- case '#':
1090
- /**
1091
- * Set url’s host to base’s host, url’s path to a copy of base’s
1092
- * path, url’s query to base’s query, url’s fragment to the
1093
- * empty string, and state to fragment state.
1094
- */
1095
- url.host = baseURL.host;
1096
- url.path = infra_1.list.clone(baseURL.path);
1097
- url.query = baseURL.query;
1098
- url.fragment = "";
1099
- state = interfaces_1.ParserState.Fragment;
1100
- break;
1101
- default:
1102
- /**
1103
- * 1. If the substring from pointer in input does not start
1104
- * with a Windows drive letter, then set url’s host to base’s
1105
- * host, url’s path to a copy of base’s path, and then shorten
1106
- * url’s path.
1107
- * _Note:_ is a (platform-independent) Windows drive letter
1108
- * quirk.
1109
- * 2. Otherwise, validation error.
1110
- * 3. Set state to path state, and decrease pointer by one.
1111
- */
1112
- if (!startsWithAWindowsDriveLetter(walker.substring())) {
1113
- url.host = baseURL.host;
1114
- url.path = infra_1.list.clone(baseURL.path);
1115
- shorten(url);
1116
- }
1117
- else {
1118
- validationError("Unexpected windows drive letter in input string.");
1119
- }
1120
- state = interfaces_1.ParserState.Path;
1121
- walker.pointer--;
1122
- break;
1123
- }
1124
- }
1125
- else {
1126
- /**
1127
- * 4. Otherwise, set state to path state, and decrease pointer by
1128
- * one.
1129
- */
1130
- state = interfaces_1.ParserState.Path;
1131
- walker.pointer--;
1132
- }
1133
- break;
1134
- case interfaces_1.ParserState.FileSlash:
1135
- if (walker.c() === '/' || walker.c() === '\\') {
1136
- /**
1137
- * 1. If c is U+002F (/) or U+005C (\), then:
1138
- * 1.1. If c is U+005C (\), validation error.
1139
- * 1.2. Set state to file host state.
1140
- */
1141
- if (walker.c() === '\\') {
1142
- validationError("Invalid input string.");
1143
- }
1144
- state = interfaces_1.ParserState.FileHost;
1145
- }
1146
- else {
1147
- /**
1148
- * 2. Otherwise:
1149
- * 2.1. If base is non-null, base’s scheme is "file", and the
1150
- * substring from pointer in input does not start with a Windows
1151
- * drive letter, then:
1152
- * 2.1.1. If base’s path[0] is a normalized Windows drive letter,
1153
- * then append base’s path[0] to url’s path.
1154
- * _Note:_ is a (platform-independent) Windows drive letter
1155
- * quirk. Both url’s and base’s host are null under these conditions
1156
- * and therefore not copied.
1157
- * 2.1.2. Otherwise, set url’s host to base’s host.
1158
- * 2.2. Set state to path state, and decrease pointer by one.
1159
- */
1160
- if (baseURL !== null && baseURL.scheme === "file" &&
1161
- !startsWithAWindowsDriveLetter(walker.substring())) {
1162
- if (isNormalizedWindowsDriveLetter(baseURL.path[0])) {
1163
- url.path.push(baseURL.path[0]);
1164
- }
1165
- else {
1166
- url.host = baseURL.host;
1167
- }
1168
- }
1169
- state = interfaces_1.ParserState.Path;
1170
- walker.pointer--;
1171
- }
1172
- break;
1173
- case interfaces_1.ParserState.FileHost:
1174
- if (walker.c() === EOF || walker.c() === '/' || walker.c() === '\\' ||
1175
- walker.c() === '?' || walker.c() === '#') {
1176
- /**
1177
- * 1. If c is the EOF code point, U+002F (/), U+005C (\), U+003F (?),
1178
- * or U+0023 (#), then decrease pointer by one and then:
1179
- */
1180
- walker.pointer--;
1181
- if (stateOverride === undefined && isWindowsDriveLetter(buffer)) {
1182
- /**
1183
- * 1.1. If state override is not given and buffer is a Windows drive
1184
- * letter, validation error, set state to path state.
1185
- * _Note:_ is a (platform-independent) Windows drive letter
1186
- * quirk. buffer is not reset here and instead used in the path state.
1187
- */
1188
- validationError("Unexpected windows drive letter in input string.");
1189
- state = interfaces_1.ParserState.Path;
1190
- }
1191
- else if (buffer === "") {
1192
- /**
1193
- * 1.2. Otherwise, if buffer is the empty string, then:
1194
- * 1.2.1. Set url’s host to the empty string.
1195
- * 1.2.2. If state override is given, then return.
1196
- * 1.2.3. Set state to path start state.
1197
- */
1198
- url.host = "";
1199
- if (stateOverride !== undefined)
1200
- return url;
1201
- state = interfaces_1.ParserState.PathStart;
1202
- }
1203
- else {
1204
- /**
1205
- * 1.3. Otherwise, run these steps:
1206
- * 1.3.1. Let host be the result of host parsing buffer with url
1207
- * is not special.
1208
- * 1.3.2. If host is failure, then return failure.
1209
- * 1.3.3. If host is "localhost", then set host to the empty
1210
- * string.
1211
- * 1.3.4. Set url’s host to host.
1212
- * 1.3.5. If state override is given, then return.
1213
- * 1.3.6. Set buffer to the empty string and state to path start
1214
- * state.
1215
- */
1216
- let host = hostParser(buffer, !isSpecial(url));
1217
- if (host === null)
1218
- return null;
1219
- if (host === "localhost")
1220
- host = "";
1221
- url.host = host;
1222
- if (stateOverride !== undefined)
1223
- return url;
1224
- buffer = "";
1225
- state = interfaces_1.ParserState.PathStart;
1226
- }
1227
- }
1228
- else {
1229
- /**
1230
- * 2. Otherwise, append c to buffer.
1231
- */
1232
- buffer += walker.c();
1233
- }
1234
- break;
1235
- case interfaces_1.ParserState.PathStart:
1236
- if (isSpecial(url)) {
1237
- /**
1238
- * 1. If url is special, then:
1239
- * 1.1. If c is U+005C (\), validation error.
1240
- * 1.2. Set state to path state.
1241
- * 1.3. If c is neither U+002F (/) nor U+005C (\), then decrease
1242
- * pointer by one.
1243
- */
1244
- if (walker.c() === '\\') {
1245
- validationError("Invalid input string.");
1246
- }
1247
- state = interfaces_1.ParserState.Path;
1248
- if (walker.c() !== '/' && walker.c() !== '\\')
1249
- walker.pointer--;
1250
- }
1251
- else if (stateOverride === undefined && walker.c() === '?') {
1252
- /**
1253
- * 2. Otherwise, if state override is not given and c is U+003F (?),
1254
- * set url’s query to the empty string and state to query state.
1255
- */
1256
- url.query = "";
1257
- state = interfaces_1.ParserState.Query;
1258
- }
1259
- else if (stateOverride === undefined && walker.c() === '#') {
1260
- /**
1261
- * 3. Otherwise, if state override is not given and c is U+0023 (#),
1262
- * set url’s fragment to the empty string and state to fragment
1263
- * state.
1264
- */
1265
- url.fragment = "";
1266
- state = interfaces_1.ParserState.Fragment;
1267
- }
1268
- else if (walker.c() !== EOF) {
1269
- /**
1270
- * 4. Otherwise, if c is not the EOF code point:
1271
- * 4.1. Set state to path state.
1272
- * 4.2. If c is not U+002F (/), then decrease pointer by one.
1273
- */
1274
- state = interfaces_1.ParserState.Path;
1275
- if (walker.c() !== '/')
1276
- walker.pointer--;
1277
- }
1278
- break;
1279
- case interfaces_1.ParserState.Path:
1280
- if ((walker.c() === EOF || walker.c() === '/') ||
1281
- (isSpecial(url) && walker.c() === '\\') ||
1282
- (stateOverride === undefined && (walker.c() === '?' || walker.c() === '#'))) {
1283
- /**
1284
- * 1. If one of the following is true
1285
- * - c is the EOF code point or U+002F (/)
1286
- * - url is special and c is U+005C (\)
1287
- * - state override is not given and c is U+003F (?) or U+0023 (#)
1288
- * then:
1289
- */
1290
- if (isSpecial(url) && walker.c() === '\\') {
1291
- /**
1292
- * 1.1 If url is special and c is U+005C (\), validation error.
1293
- */
1294
- validationError("Invalid input string.");
1295
- }
1296
- if (isDoubleDotPathSegment(buffer)) {
1297
- /**
1298
- * 1.2. If buffer is a double-dot path segment, shorten url’s path,
1299
- * and then if neither c is U+002F (/), nor url is special and c is
1300
- * U+005C (\), append the empty string to url’s path.
1301
- */
1302
- shorten(url);
1303
- if (walker.c() !== '/' && !(isSpecial(url) && walker.c() === '\\')) {
1304
- url.path.push("");
1305
- }
1306
- }
1307
- else if (isSingleDotPathSegment(buffer) && walker.c() !== '/' &&
1308
- !(isSpecial(url) && walker.c() === '\\')) {
1309
- /**
1310
- * 1.3. Otherwise, if buffer is a single-dot path segment and if
1311
- * neither c is U+002F (/), nor url is special and c is U+005C (\),
1312
- * append the empty string to url’s path.
1313
- */
1314
- url.path.push("");
1315
- }
1316
- else if (!isSingleDotPathSegment(buffer)) {
1317
- /**
1318
- * 1.4. Otherwise, if buffer is not a single-dot path segment, then:
1319
- */
1320
- if (url.scheme === "file" && url.path.length === 0 &&
1321
- isWindowsDriveLetter(buffer)) {
1322
- /**
1323
- * 1.4.1. If url’s scheme is "file", url’s path is empty, and
1324
- * buffer is a Windows drive letter, then:
1325
- * 1.4.1.1. If url’s host is neither the empty string nor null,
1326
- * validation error, set url’s host to the empty string.
1327
- * 1.4.1.2. Replace the second code point in buffer with U+003A (:).
1328
- * _Note:_ is a (platform-independent) Windows drive letter quirk.
1329
- */
1330
- if (url.host !== null && url.host !== "") {
1331
- validationError("Invalid input string.");
1332
- url.host = "";
1333
- }
1334
- const bufferCodePoints = Array.from(buffer);
1335
- buffer = bufferCodePoints.slice(0, 1) + ':' + bufferCodePoints.slice(2);
1336
- }
1337
- /**
1338
- * 1.4.2. Append buffer to url’s path.
1339
- */
1340
- url.path.push(buffer);
1341
- }
1342
- /**
1343
- * 1.5. Set buffer to the empty string.
1344
- */
1345
- buffer = "";
1346
- /**
1347
- * 1.6. If url’s scheme is "file" and c is the EOF code point,
1348
- * U+003F (?), or U+0023 (#), then while url’s path’s size is
1349
- * greater than 1 and url’s path[0] is the empty string, validation
1350
- * error, remove the first item from url’s path.
1351
- */
1352
- if (url.scheme === "file" && (walker.c() === EOF || walker.c() === '?' || walker.c() === '#')) {
1353
- while (url.path.length > 1 && url.path[0] === "") {
1354
- validationError("Invalid input string.");
1355
- url.path.splice(0, 1);
1356
- }
1357
- }
1358
- /**
1359
- * 1.7. If c is U+003F (?), then set url’s query to the empty string
1360
- * and state to query state.
1361
- * 1.8. If c is U+0023 (#), then set url’s fragment to the empty
1362
- * string and state to fragment state.
1363
- */
1364
- if (walker.c() === '?') {
1365
- url.query = "";
1366
- state = interfaces_1.ParserState.Query;
1367
- }
1368
- if (walker.c() === '#') {
1369
- url.fragment = "";
1370
- state = interfaces_1.ParserState.Fragment;
1371
- }
1372
- }
1373
- else {
1374
- /**
1375
- * 2. Otherwise, run these steps:
1376
- * 2.1. If c is not a URL code point and not U+0025 (%), validation
1377
- * error.
1378
- * 2.2. If c is U+0025 (%) and remaining does not start with two
1379
- * ASCII hex digits, validation error.
1380
- * 2.3. UTF-8 percent encode c using the path percent-encode set,
1381
- * and append the result to buffer.
1382
- */
1383
- if (!_urlCodePoints.test(walker.c()) && walker.c() !== '%') {
1384
- validationError("Character is not a URL code point or a percent encoded character.");
1385
- }
1386
- if (walker.c() === '%' && !/^[0-9a-fA-F][0-9a-fA-F]/.test(walker.remaining())) {
1387
- validationError("Percent encoded character must be followed by two hex digits.");
1388
- }
1389
- buffer += utf8PercentEncode(walker.c(), _pathPercentEncodeSet);
1390
- }
1391
- break;
1392
- case interfaces_1.ParserState.CannotBeABaseURLPath:
1393
- /**
1394
- * 1. If c is U+003F (?), then set url’s query to the empty string and
1395
- * state to query state.
1396
- * 2. Otherwise, if c is U+0023 (#), then set url’s fragment to the
1397
- * empty string and state to fragment state.
1398
- * 3. Otherwise:
1399
- * 3.1. If c is not the EOF code point, not a URL code point, and not
1400
- * U+0025 (%), validation error.
1401
- * 3.2. If c is U+0025 (%) and remaining does not start with two ASCII
1402
- * hex digits, validation error.
1403
- * 3.3. If c is not the EOF code point, UTF-8 percent encode c using
1404
- * the C0 control percent-encode set, and append the result to url’s
1405
- * path[0].
1406
- */
1407
- if (walker.c() === '?') {
1408
- url.query = "";
1409
- state = interfaces_1.ParserState.Query;
1410
- }
1411
- else if (walker.c() === '#') {
1412
- url.fragment = "";
1413
- state = interfaces_1.ParserState.Fragment;
1414
- }
1415
- else {
1416
- if (walker.c() !== EOF && !_urlCodePoints.test(walker.c()) && walker.c() !== '%') {
1417
- validationError("Character is not a URL code point or a percent encoded character.");
1418
- }
1419
- if (walker.c() === '%' && !/^[0-9a-fA-F][0-9a-fA-F]/.test(walker.remaining())) {
1420
- validationError("Percent encoded character must be followed by two hex digits.");
1421
- }
1422
- if (walker.c() !== EOF) {
1423
- url.path[0] += utf8PercentEncode(walker.c(), _c0ControlPercentEncodeSet);
1424
- }
1425
- }
1426
- break;
1427
- case interfaces_1.ParserState.Query:
1428
- /**
1429
- * 1. If encoding is not UTF-8 and one of the following is true
1430
- * - url is not special
1431
- * - url’s scheme is "ws" or "wss"
1432
- * then set encoding to UTF-8.
1433
- */
1434
- if (encoding !== "UTF-8" && (!isSpecial(url) ||
1435
- url.scheme === "ws" || url.scheme === "wss")) {
1436
- encoding = "UTF-8";
1437
- }
1438
- if (stateOverride === undefined && walker.c() === '#') {
1439
- /**
1440
- * 2. If state override is not given and c is U+0023 (#), then set
1441
- * url’s fragment to the empty string and state to fragment state.
1442
- */
1443
- url.fragment = "";
1444
- state = interfaces_1.ParserState.Fragment;
1445
- }
1446
- else if (walker.c() !== EOF) {
1447
- /**
1448
- * 3. Otherwise, if c is not the EOF code point:
1449
- * 3.1. If c is not a URL code point and not U+0025 (%), validation
1450
- * error.
1451
- */
1452
- if (!_urlCodePoints.test(walker.c()) && walker.c() !== '%') {
1453
- validationError("Character is not a URL code point or a percent encoded character.");
1454
- }
1455
- /**
1456
- * 3.2. If c is U+0025 (%) and remaining does not start with two
1457
- * ASCII hex digits, validation error.
1458
- */
1459
- if (walker.c() === '%' && !/^[0-9a-fA-F][0-9a-fA-F]/.test(walker.remaining())) {
1460
- validationError("Percent encoded character must be followed by two hex digits.");
1461
- }
1462
- /**
1463
- * 3.3. Let bytes be the result of encoding c using encoding.
1464
- */
1465
- if (encoding.toUpperCase() !== "UTF-8") {
1466
- throw new Error("Only UTF-8 encoding is supported.");
1467
- }
1468
- let bytes = (0, util_1.utf8Encode)(walker.c());
1469
- /**
1470
- * 3.4. If bytes starts with `&#` and ends with 0x3B (;), then:
1471
- */
1472
- if (bytes.length >= 3 && bytes[0] === 38 && bytes[1] === 35 &&
1473
- bytes[bytes.length - 1] === 59) {
1474
- /**
1475
- * 3.4.1. Replace `&#` at the start of bytes with `%26%23`.
1476
- * 3.4.2. Replace 0x3B (;) at the end of bytes with `%3B`.
1477
- * 3.4.4. Append bytes, isomorphic decoded, to url’s query.
1478
- * _Note:_ can happen when encoding code points using a
1479
- * non-UTF-8 encoding.
1480
- */
1481
- bytes = bytes.subarray(2, bytes.length - 1);
1482
- url.query += "%26%23" + infra_1.byteSequence.isomorphicDecode(bytes) + "%3B";
1483
- }
1484
- else {
1485
- /**
1486
- * 3.5. Otherwise, for each byte in bytes:
1487
- * 3.5.1. If one of the following is true
1488
- * - byte is less than 0x21 (!)
1489
- * - byte is greater than 0x7E (~)
1490
- * - byte is 0x22 ("), 0x23 (#), 0x3C (<), or 0x3E (>)
1491
- * - byte is 0x27 (') and url is special
1492
- * then append byte, percent encoded, to url’s query.
1493
- * 3.5.2. Otherwise, append a code point whose value is byte to
1494
- * url’s query.
1495
- */
1496
- for (const byte of bytes) {
1497
- if (byte < 0x21 || byte > 0x7E || byte === 0x22 ||
1498
- byte === 0x23 || byte === 0x3C || byte === 0x3E ||
1499
- (byte === 0x27 && isSpecial(url))) {
1500
- url.query += percentEncode(byte);
1501
- }
1502
- else {
1503
- url.query += String.fromCharCode(byte);
1504
- }
1505
- }
1506
- }
1507
- }
1508
- break;
1509
- case interfaces_1.ParserState.Fragment:
1510
- /**
1511
- * Switching on c:
1512
- * - The EOF code point
1513
- * Do nothing.
1514
- * - U+0000 NULL
1515
- * Validation error.
1516
- * - Otherwise
1517
- * 1. If c is not a URL code point and not U+0025 (%), validation
1518
- * error.
1519
- * 2. If c is U+0025 (%) and remaining does not start with two ASCII
1520
- * hex digits, validation error.
1521
- * 3. UTF-8 percent encode c using the fragment percent-encode set and
1522
- * append the result to url’s fragment.
1523
- */
1524
- if (walker.c() === EOF) {
1525
- //
1526
- }
1527
- else if (walker.c() === "\u0000") {
1528
- validationError("NULL character in input string.");
1529
- }
1530
- else {
1531
- if (!_urlCodePoints.test(walker.c()) && walker.c() !== '%') {
1532
- validationError("Unexpected character in fragment string.");
1533
- }
1534
- if (walker.c() === '%' && !/^[A-Za-z0-9][A-Za-z0-9]/.test(walker.remaining())) {
1535
- validationError("Unexpected character in fragment string.");
1536
- }
1537
- url.fragment += utf8PercentEncode(walker.c(), _fragmentPercentEncodeSet);
1538
- }
1539
- break;
1540
- }
1541
- if (walker.eof)
1542
- break;
1543
- else
1544
- walker.pointer++;
1545
- }
1546
- /**
1547
- * 12. Return url.
1548
- */
1549
- return url;
1550
- }
1551
- /**
1552
- * Sets a URL's username.
1553
- *
1554
- * @param url - a URL
1555
- * @param username - username string
1556
- */
1557
- function setTheUsername(url, username) {
1558
- /**
1559
- * 1. Set url’s username to the empty string.
1560
- * 2. For each code point in username, UTF-8 percent encode it using the
1561
- * userinfo percent-encode set, and append the result to url’s username.
1562
- */
1563
- let result = "";
1564
- for (const codePoint of username) {
1565
- result += utf8PercentEncode(codePoint, _userInfoPercentEncodeSet);
1566
- }
1567
- url.username = result;
1568
- }
1569
- /**
1570
- * Sets a URL's password.
1571
- *
1572
- * @param url - a URL
1573
- * @param username - password string
1574
- */
1575
- function setThePassword(url, password) {
1576
- /**
1577
- * 1. Set url’s password to the empty string.
1578
- * 2. For each code point in password, UTF-8 percent encode it using the
1579
- * userinfo percent-encode set, and append the result to url’s password.
1580
- */
1581
- let result = "";
1582
- for (const codePoint of password) {
1583
- result += utf8PercentEncode(codePoint, _userInfoPercentEncodeSet);
1584
- }
1585
- url.password = result;
1586
- }
1587
- /**
1588
- * Determines if the string represents a single dot path.
1589
- *
1590
- * @param str - a string
1591
- */
1592
- function isSingleDotPathSegment(str) {
1593
- return str === '.' || str.toLowerCase() === "%2e";
1594
- }
1595
- /**
1596
- * Determines if the string represents a double dot path.
1597
- *
1598
- * @param str - a string
1599
- */
1600
- function isDoubleDotPathSegment(str) {
1601
- const lowerStr = str.toLowerCase();
1602
- return lowerStr === ".." || lowerStr === ".%2e" ||
1603
- lowerStr === "%2e." || lowerStr === "%2e%2e";
1604
- }
1605
- /**
1606
- * Shorten's URL's path.
1607
- *
1608
- * @param url - an URL
1609
- */
1610
- function shorten(url) {
1611
- /**
1612
- * 1. Let path be url’s path.
1613
- * 2. If path is empty, then return.
1614
- * 3. If url’s scheme is "file", path’s size is 1, and path[0] is a
1615
- * normalized Windows drive letter, then return.
1616
- * 4. Remove path’s last item.
1617
- */
1618
- const path = url.path;
1619
- if (path.length === 0)
1620
- return;
1621
- if (url.scheme === "file" && path.length === 1 &&
1622
- isNormalizedWindowsDriveLetter(path[0]))
1623
- return;
1624
- url.path.splice(url.path.length - 1, 1);
1625
- }
1626
- /**
1627
- * Determines if a string is a normalized Windows drive letter.
1628
- *
1629
- * @param str - a string
1630
- */
1631
- function isNormalizedWindowsDriveLetter(str) {
1632
- /**
1633
- * A normalized Windows drive letter is a Windows drive letter of which the
1634
- * second code point is U+003A (:).
1635
- */
1636
- return str.length >= 2 && infra_1.codePoint.ASCIIAlpha.test(str[0]) &&
1637
- str[1] === ':';
1638
- }
1639
- /**
1640
- * Determines if a string is a Windows drive letter.
1641
- *
1642
- * @param str - a string
1643
- */
1644
- function isWindowsDriveLetter(str) {
1645
- /**
1646
- * A Windows drive letter is two code points, of which the first is an ASCII
1647
- * alpha and the second is either U+003A (:) or U+007C (|).
1648
- */
1649
- return str.length >= 2 && infra_1.codePoint.ASCIIAlpha.test(str[0]) &&
1650
- (str[1] === ':' || str[1] === '|');
1651
- }
1652
- /**
1653
- * Determines if a string starts with a Windows drive letter.
1654
- *
1655
- * @param str - a string
1656
- */
1657
- function startsWithAWindowsDriveLetter(str) {
1658
- /**
1659
- * A string starts with a Windows drive letter if all of the following are
1660
- * true:
1661
- * - its length is greater than or equal to 2
1662
- * - its first two code points are a Windows drive letter
1663
- * - its length is 2 or its third code point is U+002F (/), U+005C (\),
1664
- * U+003F (?), or U+0023 (#).
1665
- */
1666
- return str.length >= 2 && isWindowsDriveLetter(str) &&
1667
- (str.length === 2 || (str[2] === '/' || str[2] === '\\' ||
1668
- str[2] === '?' || str[2] === '#'));
1669
- }
1670
- /**
1671
- * Parses a host string.
1672
- *
1673
- * @param input - input string
1674
- * @param isNotSpecial - `true` if the source URL is not special; otherwise
1675
- * `false`.
1676
- */
1677
- function hostParser(input, isNotSpecial = false) {
1678
- /**
1679
- * 1. If isNotSpecial is not given, then set isNotSpecial to false.
1680
- * 2. If input starts with U+005B ([), then:
1681
- * 2.1. If input does not end with U+005D (]), validation error, return
1682
- * failure.
1683
- * 2.2. Return the result of IPv6 parsing input with its leading U+005B ([)
1684
- * and trailing U+005D (]) removed.
1685
- */
1686
- if (input.startsWith('[')) {
1687
- if (!input.endsWith(']')) {
1688
- validationError("Expected ']' after '['.");
1689
- return null;
1690
- }
1691
- return iPv6Parser(input.substring(1, input.length - 1));
1692
- }
1693
- /**
1694
- * 3. If isNotSpecial is true, then return the result of opaque-host parsing
1695
- * input.
1696
- */
1697
- if (isNotSpecial) {
1698
- return opaqueHostParser(input);
1699
- }
1700
- /**
1701
- * 4. Let domain be the result of running UTF-8 decode without BOM on the
1702
- * string percent decoding of input.
1703
- * _Note:_ Alternatively UTF-8 decode without BOM or fail can be used,
1704
- * coupled with an early return for failure, as domain to ASCII fails
1705
- * on U+FFFD REPLACEMENT CHARACTER.
1706
- */
1707
- const domain = (0, util_1.utf8Decode)(stringPercentDecode(input));
1708
- /**
1709
- * 5. Let asciiDomain be the result of running domain to ASCII on domain.
1710
- * 6. If asciiDomain is failure, validation error, return failure.
1711
- * 7. If asciiDomain contains a forbidden host code point, validation error,
1712
- * return failure.
1713
- */
1714
- const asciiDomain = domainToASCII(domain);
1715
- if (asciiDomain === null) {
1716
- validationError("Invalid domain.");
1717
- return null;
1718
- }
1719
- if (_forbiddenHostCodePoint.test(asciiDomain)) {
1720
- validationError("Invalid domain.");
1721
- return null;
1722
- }
1723
- /**
1724
- * 8. Let ipv4Host be the result of IPv4 parsing asciiDomain.
1725
- * 9. If ipv4Host is an IPv4 address or failure, return ipv4Host.
1726
- * 10. Return asciiDomain.
1727
- */
1728
- const ipv4Host = iPv4Parser(asciiDomain);
1729
- if (ipv4Host === null || (0, util_1.isNumber)(ipv4Host))
1730
- return ipv4Host;
1731
- return asciiDomain;
1732
- }
1733
- /**
1734
- * Parses a string containing an IP v4 address.
1735
- *
1736
- * @param input - input string
1737
- * @param isNotSpecial - `true` if the source URL is not special; otherwise
1738
- * `false`.
1739
- */
1740
- function iPv4NumberParser(input, validationErrorFlag = { value: false }) {
1741
- /**
1742
- * 1. Let R be 10.
1743
- */
1744
- let R = 10;
1745
- if (input.startsWith("0x") || input.startsWith("0X")) {
1746
- /**
1747
- * 2. If input contains at least two code points and the first two code
1748
- * points are either "0x" or "0X", then:
1749
- * 2.1. Set validationErrorFlag.
1750
- * 2.2. Remove the first two code points from input.
1751
- * 2.3. Set R to 16.
1752
- */
1753
- validationErrorFlag.value = true;
1754
- input = input.substr(2);
1755
- R = 16;
1756
- }
1757
- else if (input.length >= 2 && input[0] === '0') {
1758
- /**
1759
- * 3. Otherwise, if input contains at least two code points and the first
1760
- * code point is U+0030 (0), then:
1761
- * 3.1. Set validationErrorFlag.
1762
- * 3.2. Remove the first code point from input.
1763
- * 3.3. Set R to 8.
1764
- */
1765
- validationErrorFlag.value = true;
1766
- input = input.substr(1);
1767
- R = 8;
1768
- }
1769
- /**
1770
- * 4. If input is the empty string, then return zero.
1771
- * 5. If input contains a code point that is not a radix-R digit, then
1772
- * return failure.
1773
- */
1774
- if (input === "")
1775
- return 0;
1776
- const radixRDigits = (R === 10 ? /^[0-9]+$/ : (R === 16 ? /^[0-9A-Fa-f]+$/ : /^[0-7]+$/));
1777
- if (!radixRDigits.test(input))
1778
- return null;
1779
- /**
1780
- * 6. Return the mathematical integer value that is represented by input in
1781
- * radix-R notation, using ASCII hex digits for digits with values
1782
- * 0 through 15.
1783
- */
1784
- return parseInt(input, R);
1785
- }
1786
- /**
1787
- * Parses a string containing an IP v4 address.
1788
- *
1789
- * @param input - input string
1790
- */
1791
- function iPv4Parser(input) {
1792
- /**
1793
- * 1. Let validationErrorFlag be unset.
1794
- * 2. Let parts be input split on U+002E (.).
1795
- */
1796
- const validationErrorFlag = { value: false };
1797
- const parts = input.split('.');
1798
- /**
1799
- * 3. If the last item in parts is the empty string, then:
1800
- * 3.1. Set validationErrorFlag.
1801
- * 3.2. If parts has more than one item, then remove the last item from
1802
- * parts.
1803
- */
1804
- if (parts[parts.length - 1] === "") {
1805
- validationErrorFlag.value = true;
1806
- if (parts.length > 1)
1807
- parts.pop();
1808
- }
1809
- /**
1810
- * 4. If parts has more than four items, return input.
1811
- */
1812
- if (parts.length > 4)
1813
- return input;
1814
- /**
1815
- * 5. Let numbers be the empty list.
1816
- * 6. For each part in parts:
1817
- * 6.1. If part is the empty string, return input.
1818
- * 6.2. Let n be the result of parsing part using validationErrorFlag.
1819
- * 6.3. If n is failure, return input.
1820
- * 6.4. Append n to numbers.
1821
- */
1822
- const numbers = [];
1823
- for (const part of parts) {
1824
- if (part === "")
1825
- return input;
1826
- const n = iPv4NumberParser(part, validationErrorFlag);
1827
- if (n === null)
1828
- return input;
1829
- numbers.push(n);
1830
- }
1831
- /**
1832
- * 7. If validationErrorFlag is set, validation error.
1833
- * 8. If any item in numbers is greater than 255, validation error.
1834
- * 9. If any but the last item in numbers is greater than 255, return
1835
- * failure.
1836
- * 10. If the last item in numbers is greater than or equal to
1837
- * 256**(5 − the number of items in numbers), validation error, return failure.
1838
- */
1839
- if (validationErrorFlag.value)
1840
- validationError("Invalid IP v4 address.");
1841
- for (let i = 0; i < numbers.length; i++) {
1842
- const item = numbers[i];
1843
- if (item > 255) {
1844
- validationError("Invalid IP v4 address.");
1845
- if (i < numbers.length - 1)
1846
- return null;
1847
- }
1848
- }
1849
- if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
1850
- validationError("Invalid IP v4 address.");
1851
- return null;
1852
- }
1853
- /**
1854
- * 11. Let ipv4 be the last item in numbers.
1855
- * 12. Remove the last item from numbers.
1856
- */
1857
- let ipv4 = numbers[numbers.length - 1];
1858
- numbers.pop();
1859
- /**
1860
- * 13. Let counter be zero.
1861
- * 14. For each n in numbers:
1862
- * 14.2. Increment ipv4 by n × 256**(3 − counter).
1863
- * 14.2. Increment counter by 1.
1864
- */
1865
- let counter = 0;
1866
- for (const n of numbers) {
1867
- ipv4 += n * Math.pow(256, 3 - counter);
1868
- counter++;
1869
- }
1870
- /**
1871
- * 15. Return ipv4.
1872
- */
1873
- return ipv4;
1874
- }
1875
- /**
1876
- * Parses a string containing an IP v6 address.
1877
- *
1878
- * @param input - input string
1879
- */
1880
- function iPv6Parser(input) {
1881
- /**
1882
- * 1. Let address be a new IPv6 address whose IPv6 pieces are all 0.
1883
- * 2. Let pieceIndex be 0.
1884
- * 3. Let compress be null.
1885
- * 4. Let pointer be a pointer into input, initially 0 (pointing to the
1886
- * first code point).
1887
- */
1888
- const EOF = "";
1889
- const address = [0, 0, 0, 0, 0, 0, 0, 0];
1890
- let pieceIndex = 0;
1891
- let compress = null;
1892
- const walker = new util_1.StringWalker(input);
1893
- /**
1894
- * 5. If c is U+003A (:), then:
1895
- * 5.1. If remaining does not start with U+003A (:), validation error,
1896
- * return failure.
1897
- * 5.2. Increase pointer by 2.
1898
- * 5.3. Increase pieceIndex by 1 and then set compress to pieceIndex.
1899
- */
1900
- if (walker.c() === ':') {
1901
- if (!walker.remaining().startsWith(':')) {
1902
- validationError("Invalid IP v6 address.");
1903
- return null;
1904
- }
1905
- walker.pointer += 2;
1906
- pieceIndex += 1;
1907
- compress = pieceIndex;
1908
- }
1909
- /**
1910
- * 6. While c is not the EOF code point:
1911
- */
1912
- while (walker.c() !== EOF) {
1913
- /**
1914
- * 6.1. If pieceIndex is 8, validation error, return failure.
1915
- */
1916
- if (pieceIndex === 8) {
1917
- validationError("Invalid IP v6 address.");
1918
- return null;
1919
- }
1920
- /**
1921
- * 6.2. If c is U+003A (:), then:
1922
- * 6.2.1. If compress is non-null, validation error, return failure.
1923
- * 6.2.2. Increase pointer and pieceIndex by 1, set compress to pieceIndex,
1924
- * and then continue.
1925
- */
1926
- if (walker.c() === ':') {
1927
- if (compress !== null) {
1928
- validationError("Invalid IP v6 address.");
1929
- return null;
1930
- }
1931
- walker.pointer++;
1932
- pieceIndex++;
1933
- compress = pieceIndex;
1934
- continue;
1935
- }
1936
- /**
1937
- * 6.3. Let value and length be 0.
1938
- * 6.4. While length is less than 4 and c is an ASCII hex digit, set value
1939
- * to value × 0x10 + c interpreted as hexadecimal number, and increase
1940
- * pointer and length by 1.
1941
- */
1942
- let value = 0;
1943
- let length = 0;
1944
- while (length < 4 && infra_1.codePoint.ASCIIHexDigit.test(walker.c())) {
1945
- value = value * 0x10 + parseInt(walker.c(), 16);
1946
- walker.pointer++;
1947
- length++;
1948
- }
1949
- /**
1950
- * 6.5. If c is U+002E (.), then:
1951
- */
1952
- if (walker.c() === '.') {
1953
- /**
1954
- * 6.5.1. If length is 0, validation error, return failure.
1955
- * 6.5.2. Decrease pointer by length.
1956
- * 6.5.3. If pieceIndex is greater than 6, validation error, return
1957
- * failure.
1958
- * 6.5.4. Let numbersSeen be 0.
1959
- */
1960
- if (length === 0) {
1961
- validationError("Invalid IP v6 address.");
1962
- return null;
1963
- }
1964
- walker.pointer -= length;
1965
- if (pieceIndex > 6) {
1966
- validationError("Invalid IP v6 address.");
1967
- return null;
1968
- }
1969
- let numbersSeen = 0;
1970
- /**
1971
- * 6.5.5. While c is not the EOF code point:
1972
- */
1973
- while (walker.c() !== EOF) {
1974
- /**
1975
- * 6.5.5.1. Let ipv4Piece be null.
1976
- */
1977
- let ipv4Piece = null;
1978
- /**
1979
- * 6.5.5.2. If numbersSeen is greater than 0, then:
1980
- * 6.5.5.2.1. If c is a U+002E (.) and numbersSeen is less than 4, then
1981
- * increase pointer by 1.
1982
- * 6.5.5.2.1. Otherwise, validation error, return failure.
1983
- */
1984
- if (numbersSeen > 0) {
1985
- if (walker.c() === '.' && numbersSeen < 4) {
1986
- walker.pointer++;
1987
- }
1988
- else {
1989
- validationError("Invalid IP v6 address.");
1990
- return null;
1991
- }
1992
- }
1993
- /**
1994
- * 6.5.5.3. If c is not an ASCII digit, validation error, return
1995
- * failure.
1996
- */
1997
- if (!infra_1.codePoint.ASCIIDigit.test(walker.c())) {
1998
- validationError("Invalid IP v6 address.");
1999
- return null;
2000
- }
2001
- /**
2002
- * 6.5.5.4. While c is an ASCII digit:
2003
- */
2004
- while (infra_1.codePoint.ASCIIDigit.test(walker.c())) {
2005
- /**
2006
- * 6.5.5.4.1. Let number be c interpreted as decimal number.
2007
- */
2008
- const number = parseInt(walker.c(), 10);
2009
- /**
2010
- * 6.5.5.4.2. If ipv4Piece is null, then set ipv4Piece to number.
2011
- * Otherwise, if ipv4Piece is 0, validation error, return failure.
2012
- * Otherwise, set ipv4Piece to ipv4Piece × 10 + number.
2013
- */
2014
- if (ipv4Piece === null) {
2015
- ipv4Piece = number;
2016
- }
2017
- else if (ipv4Piece === 0) {
2018
- validationError("Invalid IP v6 address.");
2019
- return null;
2020
- }
2021
- else {
2022
- ipv4Piece = ipv4Piece * 10 + number;
2023
- }
2024
- /**
2025
- * 6.5.5.4.3. If ipv4Piece is greater than 255, validation error, return failure.
2026
- * 6.5.5.4.4. Increase pointer by 1.
2027
- */
2028
- if (ipv4Piece > 255) {
2029
- validationError("Invalid IP v6 address.");
2030
- return null;
2031
- }
2032
- walker.pointer++;
2033
- }
2034
- /**
2035
- * 6.5.5.5. Set address[pieceIndex] to address[pieceIndex] × 0x100 + ipv4Piece.
2036
- * 6.5.5.6. Increase numbersSeen by 1.
2037
- * 6.5.5.7. If numbersSeen is 2 or 4, then increase pieceIndex by 1.
2038
- */
2039
- if (ipv4Piece === null) {
2040
- validationError("Invalid IP v6 address.");
2041
- return null;
2042
- }
2043
- address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
2044
- numbersSeen++;
2045
- if (numbersSeen === 2 || numbersSeen === 4)
2046
- pieceIndex++;
2047
- }
2048
- /**
2049
- * 6.5.6. If numbersSeen is not 4, validation error, return failure.
2050
- */
2051
- if (numbersSeen !== 4) {
2052
- validationError("Invalid IP v6 address.");
2053
- return null;
2054
- }
2055
- /**
2056
- * 6.5.7. Break.
2057
- */
2058
- break;
2059
- }
2060
- else if (walker.c() === ':') {
2061
- /**
2062
- * 6.6. Otherwise, if c is U+003A (:):
2063
- * 6.6.1. Increase pointer by 1.
2064
- * 6.6.2. If c is the EOF code point, validation error, return failure.
2065
- */
2066
- walker.pointer++;
2067
- if (walker.c() === EOF) {
2068
- validationError("Invalid IP v6 address.");
2069
- return null;
2070
- }
2071
- }
2072
- else if (walker.c() !== EOF) {
2073
- /**
2074
- * 6.7. Otherwise, if c is not the EOF code point, validation error,
2075
- * return failure.
2076
- */
2077
- validationError("Invalid IP v6 address.");
2078
- return null;
2079
- }
2080
- /**
2081
- * 6.8. Set address[pieceIndex] to value.
2082
- * 6.9. Increase pieceIndex by 1.
2083
- */
2084
- address[pieceIndex] = value;
2085
- pieceIndex++;
2086
- }
2087
- /**
2088
- * 7. If compress is non-null, then:
2089
- * 7.1. Let swaps be pieceIndex − compress.
2090
- * 7.2. Set pieceIndex to 7.
2091
- * 7.3. While pieceIndex is not 0 and swaps is greater than 0, swap
2092
- * address[pieceIndex] with address[compress + swaps − 1], and then decrease
2093
- * both pieceIndex and swaps by 1.
2094
- */
2095
- if (compress !== null) {
2096
- let swaps = pieceIndex - compress;
2097
- pieceIndex = 7;
2098
- while (pieceIndex !== 0 && swaps > 0) {
2099
- [address[pieceIndex], address[compress + swaps - 1]] =
2100
- [address[compress + swaps - 1], address[pieceIndex]];
2101
- pieceIndex--;
2102
- swaps--;
2103
- }
2104
- }
2105
- else if (compress === null && pieceIndex !== 8) {
2106
- /**
2107
- * 8. Otherwise, if compress is null and pieceIndex is not 8,
2108
- * validation error, return failure.
2109
- */
2110
- validationError("Invalid IP v6 address.");
2111
- return null;
2112
- }
2113
- /**
2114
- * 9. Return address.
2115
- */
2116
- return address;
2117
- }
2118
- /**
2119
- * Parses an opaque host string.
2120
- *
2121
- * @param input - a string
2122
- */
2123
- function opaqueHostParser(input) {
2124
- /**
2125
- * 1. If input contains a forbidden host code point excluding U+0025 (%),
2126
- * validation error, return failure.
2127
- * 2. Let output be the empty string.
2128
- * 3. For each code point in input, UTF-8 percent encode it using the C0
2129
- * control percent-encode set, and append the result to output.
2130
- * 4. Return output.
2131
- */
2132
- const forbiddenChars = /[\x00\t\f\r #/:?@\[\\\]]/;
2133
- if (forbiddenChars.test(input)) {
2134
- validationError("Invalid host string.");
2135
- return null;
2136
- }
2137
- let output = "";
2138
- for (const codePoint of input) {
2139
- output += utf8PercentEncode(codePoint, _c0ControlPercentEncodeSet);
2140
- }
2141
- return output;
2142
- }
2143
- /**
2144
- * Resolves a Blob URL from the user agent's Blob URL store.
2145
- * function is not implemented.
2146
- * See: https://w3c.github.io/FileAPI/#blob-url-resolve
2147
- *
2148
- * @param url - an url
2149
- */
2150
- function resolveABlobURL(url) {
2151
- return null;
2152
- }
2153
- /**
2154
- * Percent encodes a byte.
2155
- *
2156
- * @param value - a byte
2157
- */
2158
- function percentEncode(value) {
2159
- /**
2160
- * To percent encode a byte into a percent-encoded byte, return a string
2161
- * consisting of U+0025 (%), followed by two ASCII upper hex digits
2162
- * representing byte.
2163
- */
2164
- return '%' + ('00' + value.toString(16).toUpperCase()).slice(-2);
2165
- }
2166
- /**
2167
- * Percent decodes a byte sequence input.
2168
- *
2169
- * @param input - a byte sequence
2170
- */
2171
- function percentDecode(input) {
2172
- const isHexDigit = (byte) => {
2173
- return (byte >= 0x30 && byte <= 0x39) || (byte >= 0x41 && byte <= 0x46) ||
2174
- (byte >= 0x61 && byte <= 0x66);
2175
- };
2176
- /**
2177
- * 1. Let output be an empty byte sequence.
2178
- * 2. For each byte byte in input:
2179
- */
2180
- const output = new Uint8Array(input.length);
2181
- let n = 0;
2182
- for (let i = 0; i < input.length; i++) {
2183
- const byte = input[i];
2184
- /**
2185
- * 2.1. If byte is not 0x25 (%), then append byte to output.
2186
- * 2.2. Otherwise, if byte is 0x25 (%) and the next two bytes after byte
2187
- * in input are not in the ranges 0x30 (0) to 0x39 (9), 0x41 (A)
2188
- * to 0x46 (F), and 0x61 (a) to 0x66 (f), all inclusive, append byte
2189
- * to output.
2190
- * 2.3. Otherwise:
2191
- * 2.3.1. Let bytePoint be the two bytes after byte in input, decoded,
2192
- * and then interpreted as hexadecimal number.
2193
- * 2.3.2. Append a byte whose value is bytePoint to output.
2194
- * 2.3.3. Skip the next two bytes in input.
2195
- */
2196
- if (byte !== 0x25) {
2197
- output[n] = byte;
2198
- n++;
2199
- }
2200
- else if (byte === 0x25 && i >= input.length - 2) {
2201
- output[n] = byte;
2202
- n++;
2203
- }
2204
- else if (byte === 0x25 && (!isHexDigit(input[i + 1]) || !isHexDigit(input[i + 2]))) {
2205
- output[n] = byte;
2206
- n++;
2207
- }
2208
- else {
2209
- const bytePoint = parseInt((0, util_1.utf8Decode)(Uint8Array.of(input[i + 1], input[i + 2])), 16);
2210
- output[n] = bytePoint;
2211
- n++;
2212
- i += 2;
2213
- }
2214
- }
2215
- return output.subarray(0, n);
2216
- }
2217
- /**
2218
- * String percent decodes a string.
2219
- *
2220
- * @param input - a string
2221
- */
2222
- function stringPercentDecode(input) {
2223
- /**
2224
- * 1. Let bytes be the UTF-8 encoding of input.
2225
- * 2. Return the percent decoding of bytes.
2226
- */
2227
- return percentDecode((0, util_1.utf8Encode)(input));
2228
- }
2229
- /**
2230
- * UTF-8 percent encodes a code point, using a percent encode set.
2231
- *
2232
- * @param codePoint - a code point
2233
- * @param percentEncodeSet - a percent encode set
2234
- */
2235
- function utf8PercentEncode(codePoint, percentEncodeSet) {
2236
- /**
2237
- * 1. If codePoint is not in percentEncodeSet, then return codePoint.
2238
- * 2. Let bytes be the result of running UTF-8 encode on codePoint.
2239
- * 3. Percent encode each byte in bytes, and then return the results
2240
- * concatenated, in the same order.
2241
- */
2242
- if (!percentEncodeSet.test(codePoint))
2243
- return codePoint;
2244
- const bytes = (0, util_1.utf8Encode)(codePoint);
2245
- let result = "";
2246
- for (const byte of bytes) {
2247
- result += percentEncode(byte);
2248
- }
2249
- return result;
2250
- }
2251
- /**
2252
- * Determines if two hosts are considered equal.
2253
- *
2254
- * @param hostA - a host
2255
- * @param hostB - a host
2256
- */
2257
- function hostEquals(hostA, hostB) {
2258
- return hostA === hostB;
2259
- }
2260
- /**
2261
- * Determines if two URLs are considered equal.
2262
- *
2263
- * @param urlA - a URL
2264
- * @param urlB - a URL
2265
- * @param excludeFragmentsFlag - whether to ignore fragments while comparing
2266
- */
2267
- function urlEquals(urlA, urlB, excludeFragmentsFlag = false) {
2268
- /**
2269
- * 1. Let serializedA be the result of serializing A, with the exclude
2270
- * fragment flag set if the exclude fragments flag is set.
2271
- * 2. Let serializedB be the result of serializing B, with the exclude
2272
- * fragment flag set if the exclude fragments flag is set.
2273
- * 3. Return true if serializedA is serializedB, and false otherwise.
2274
- */
2275
- return urlSerializer(urlA, excludeFragmentsFlag) ===
2276
- urlSerializer(urlB, excludeFragmentsFlag);
2277
- }
2278
- /**
2279
- * Parses an `application/x-www-form-urlencoded` string.
2280
- *
2281
- * @param input - a string
2282
- */
2283
- function urlEncodedStringParser(input) {
2284
- /**
2285
- * The application/x-www-form-urlencoded string parser takes a string input,
2286
- * UTF-8 encodes it, and then returns the result of
2287
- * application/x-www-form-urlencoded parsing it.
2288
- */
2289
- return urlEncodedParser((0, util_1.utf8Encode)(input));
2290
- }
2291
- /**
2292
- * Parses `application/x-www-form-urlencoded` bytes.
2293
- *
2294
- * @param input - a byte sequence
2295
- */
2296
- function urlEncodedParser(input) {
2297
- /**
2298
- * 1. Let sequences be the result of splitting input on 0x26 (&).
2299
- */
2300
- const sequences = [];
2301
- let currentSequence = [];
2302
- for (const byte of input) {
2303
- if (byte === 0x26) {
2304
- sequences.push(Uint8Array.from(currentSequence));
2305
- currentSequence = [];
2306
- }
2307
- else {
2308
- currentSequence.push(byte);
2309
- }
2310
- }
2311
- if (currentSequence.length !== 0) {
2312
- sequences.push(Uint8Array.from(currentSequence));
2313
- }
2314
- /**
2315
- * 2. Let output be an initially empty list of name-value tuples where both name and value hold a string.
2316
- */
2317
- const output = [];
2318
- /**
2319
- * 3. For each byte sequence bytes in sequences:
2320
- */
2321
- for (const bytes of sequences) {
2322
- /**
2323
- * 3.1. If bytes is the empty byte sequence, then continue.
2324
- */
2325
- if (bytes.length === 0)
2326
- continue;
2327
- /**
2328
- * 3.2. If bytes contains a 0x3D (=), then let name be the bytes from the
2329
- * start of bytes up to but excluding its first 0x3D (=), and let value be
2330
- * the bytes, if any, after the first 0x3D (=) up to the end of bytes.
2331
- * If 0x3D (=) is the first byte, then name will be the empty byte
2332
- * sequence. If it is the last, then value will be the empty byte sequence.
2333
- * 3.3. Otherwise, let name have the value of bytes and let value be the
2334
- * empty byte sequence.
2335
- */
2336
- const index = bytes.indexOf(0x3D);
2337
- const name = (index !== -1 ? bytes.slice(0, index) : bytes);
2338
- const value = (index !== -1 ? bytes.slice(index + 1) : new Uint8Array());
2339
- /**
2340
- * 3.4. Replace any 0x2B (+) in name and value with 0x20 (SP).
2341
- */
2342
- for (let i = 0; i < name.length; i++)
2343
- if (name[i] === 0x2B)
2344
- name[i] = 0x20;
2345
- for (let i = 0; i < value.length; i++)
2346
- if (value[i] === 0x2B)
2347
- value[i] = 0x20;
2348
- /**
2349
- * 3.5. Let nameString and valueString be the result of running UTF-8
2350
- * decode without BOM on the percent decoding of name and value,
2351
- * respectively.
2352
- */
2353
- const nameString = (0, util_1.utf8Decode)(name);
2354
- const valueString = (0, util_1.utf8Decode)(value);
2355
- /**
2356
- * 3.6. Append (nameString, valueString) to output.
2357
- */
2358
- output.push([nameString, valueString]);
2359
- }
2360
- /**
2361
- * 4. Return output.
2362
- */
2363
- return output;
2364
- }
2365
- /**
2366
- * Serializes `application/x-www-form-urlencoded` bytes.
2367
- *
2368
- * @param input - a byte sequence
2369
- */
2370
- function urlEncodedByteSerializer(input) {
2371
- /**
2372
- * 1. Let output be the empty string.
2373
- * 2. For each byte in input, depending on byte:
2374
- * 0x20 (SP)
2375
- * Append U+002B (+) to output.
2376
- *
2377
- * 0x2A (*)
2378
- * 0x2D (-)
2379
- * 0x2E (.)
2380
- * 0x30 (0) to 0x39 (9)
2381
- * 0x41 (A) to 0x5A (Z)
2382
- * 0x5F (_)
2383
- * 0x61 (a) to 0x7A (z)
2384
- * Append a code point whose value is byte to output.
2385
- *
2386
- * Otherwise
2387
- * Append byte, percent encoded, to output.
2388
- * 3. Return output.
2389
- */
2390
- let output = "";
2391
- for (const byte of input) {
2392
- if (byte === 0x20) {
2393
- output += '+';
2394
- }
2395
- else if (byte === 0x2A || byte === 0x2D || byte === 0x2E ||
2396
- (byte >= 0x30 && byte <= 0x39) || (byte >= 0x41 && byte <= 0x5A) ||
2397
- byte === 0x5F || (byte >= 0x61 && byte <= 0x7A)) {
2398
- output += String.fromCodePoint(byte);
2399
- }
2400
- else {
2401
- output += percentEncode(byte);
2402
- }
2403
- }
2404
- return output;
2405
- }
2406
- /**
2407
- * Serializes `application/x-www-form-urlencoded` tuples.
2408
- *
2409
- * @param input - input tuple of name/value pairs
2410
- * @param encodingOverride: encoding override
2411
- */
2412
- function urlEncodedSerializer(tuples, encodingOverride) {
2413
- /**
2414
- * 1. Let encoding be UTF-8.
2415
- * 2. If encoding override is given, set encoding to the result of getting
2416
- * an output encoding from encoding override.
2417
- */
2418
- const encoding = (encodingOverride === undefined ||
2419
- encodingOverride === "replacement" || encodingOverride === "UTF-16BE" ||
2420
- encodingOverride === "UTF-16LE" ? "UTF-8" : encodingOverride);
2421
- if (encoding.toUpperCase() !== "UTF-8") {
2422
- throw new Error("Only UTF-8 encoding is supported.");
2423
- }
2424
- /**
2425
- * 3. Let output be the empty string.
2426
- */
2427
- let output = "";
2428
- /**
2429
- * 4. For each tuple in tuples:
2430
- */
2431
- for (const tuple of tuples) {
2432
- /**
2433
- * 4.1. Let name be the result of serializing the result of encoding
2434
- * tuple’s name, using encoding.
2435
- */
2436
- const name = urlEncodedByteSerializer((0, util_1.utf8Encode)(tuple[0]));
2437
- /**
2438
- * 4.2. Let value be tuple’s value.
2439
- */
2440
- let value = tuple[1];
2441
- /**
2442
- * TODO:
2443
- * 4.3. If value is a file, then set value to value’s filename.
2444
- */
2445
- /**
2446
- * 4.4. Set value to the result of serializing the result of encoding
2447
- * value, using encoding.
2448
- */
2449
- value = urlEncodedByteSerializer((0, util_1.utf8Encode)(value));
2450
- /**
2451
- * 4.5. If tuple is not the first pair in tuples, then append U+0026 (&)
2452
- * to output.
2453
- */
2454
- if (output !== "")
2455
- output += '&';
2456
- /**
2457
- * 4.6. Append name, followed by U+003D (=), followed by value, to output.
2458
- */
2459
- output += name + '=' + value;
2460
- }
2461
- /**
2462
- * 5. Return output.
2463
- */
2464
- return output;
2465
- }
2466
- /**
2467
- * Returns a URL's origin.
2468
- *
2469
- * @param url - a URL
2470
- */
2471
- function origin(url) {
2472
- /**
2473
- * A URL’s origin is the origin returned by running these steps, switching
2474
- * on URL’s scheme:
2475
- * "blob"
2476
- * 1. If URL’s blob URL entry is non-null, then return URL’s blob URL
2477
- * entry’s environment’s origin.
2478
- * 2. Let url be the result of parsing URL’s path[0].
2479
- * 3. Return a new opaque origin, if url is failure, and url’s origin
2480
- * otherwise.
2481
- * "ftp"
2482
- * "http"
2483
- * "https"
2484
- * "ws"
2485
- * "wss"
2486
- * Return a tuple consisting of URL’s scheme, URL’s host, URL’s port, and
2487
- * null.
2488
- * "file"
2489
- * Unfortunate as it is, is left as an exercise to the reader. When in
2490
- * doubt, return a new opaque origin.
2491
- * Otherwise
2492
- * Return a new opaque origin.
2493
- */
2494
- switch (url.scheme) {
2495
- case "blob":
2496
- if (url._blobURLEntry !== null) {
2497
- // TODO: return URL’s blob URL entry’s environment’s origin.
2498
- }
2499
- const parsedURL = basicURLParser(url.path[0]);
2500
- if (parsedURL === null)
2501
- return interfaces_1.OpaqueOrigin;
2502
- else
2503
- return origin(parsedURL);
2504
- case "ftp":
2505
- case "http":
2506
- case "https":
2507
- case "ws":
2508
- case "wss":
2509
- return [url.scheme, url.host === null ? "" : url.host, url.port, null];
2510
- case "file":
2511
- return interfaces_1.OpaqueOrigin;
2512
- default:
2513
- return interfaces_1.OpaqueOrigin;
2514
- }
2515
- }
2516
- /**
2517
- * Converts a domain string to ASCII.
2518
- *
2519
- * @param domain - a domain string
2520
- */
2521
- function domainToASCII(domain, beStrict = false) {
2522
- /**
2523
- * 1. If beStrict is not given, set it to false.
2524
- * 2. Let result be the result of running Unicode ToASCII with domain_name
2525
- * set to domain, UseSTD3ASCIIRules set to beStrict, CheckHyphens set to
2526
- * false, CheckBidi set to true, CheckJoiners set to true,
2527
- * Transitional_Processing set to false, and VerifyDnsLength set to beStrict.
2528
- * 3. If result is a failure value, validation error, return failure.
2529
- * 4. Return result.
2530
- */
2531
- // Use node.js function
2532
- const result = (0, url_1.domainToASCII)(domain);
2533
- if (result === "") {
2534
- validationError("Invalid domain name.");
2535
- return null;
2536
- }
2537
- return result;
2538
- }
2539
- /**
2540
- * Converts a domain string to Unicode.
2541
- *
2542
- * @param domain - a domain string
2543
- */
2544
- function domainToUnicode(domain, beStrict = false) {
2545
- /**
2546
- * 1. Let result be the result of running Unicode ToUnicode with domain_name
2547
- * set to domain, CheckHyphens set to false, CheckBidi set to true,
2548
- * CheckJoiners set to true, UseSTD3ASCIIRules set to false, and
2549
- * Transitional_Processing set to false.
2550
- * 2. Signify validation errors for any returned errors, and then,
2551
- * return result.
2552
- */
2553
- // Use node.js function
2554
- const result = (0, url_1.domainToUnicode)(domain);
2555
- if (result === "") {
2556
- validationError("Invalid domain name.");
2557
- }
2558
- return result;
2559
- }
2560
- /**
2561
- * Serializes an origin.
2562
- * function is from the HTML spec:
2563
- * https://html.spec.whatwg.org/#ascii-serialisation-of-an-origin
2564
- *
2565
- * @param origin - an origin
2566
- */
2567
- function asciiSerializationOfAnOrigin(origin) {
2568
- /**
2569
- * 1. If origin is an opaque origin, then return "null".
2570
- * 2. Otherwise, let result be origin's scheme.
2571
- * 3. Append "://" to result.
2572
- * 4. Append origin's host, serialized, to result.
2573
- * 5. If origin's port is non-null, append a U+003A COLON character (:),
2574
- * and origin's port, serialized, to result.
2575
- * 6. Return result.
2576
- */
2577
- if (origin[0] === "" && origin[1] === "" && origin[2] === null && origin[3] === null) {
2578
- return "null";
2579
- }
2580
- let result = origin[0] + "://" + hostSerializer(origin[1]);
2581
- if (origin[2] !== null)
2582
- result += ":" + origin[2].toString();
2583
- return result;
2584
- }
2585
- //# sourceMappingURL=URLAlgorithm.js.map