projen 0.98.31 → 0.98.33

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 (554) hide show
  1. package/.jsii +1755 -475
  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/internal.d.ts +1 -2
  16. package/lib/awscdk/lambda-extension.js +1 -1
  17. package/lib/awscdk/lambda-function.js +2 -2
  18. package/lib/awscdk/private/feature-flags-v2.const.d.ts +2 -3
  19. package/lib/awscdk/private/feature-flags-v2.const.js +4 -5
  20. package/lib/build/build-workflow.js +1 -1
  21. package/lib/cdk/auto-discover-base.js +2 -2
  22. package/lib/cdk/construct-lib.js +1 -1
  23. package/lib/cdk/integration-test-base.js +1 -1
  24. package/lib/cdk/jsii-docgen.js +1 -1
  25. package/lib/cdk/jsii-project.js +1 -1
  26. package/lib/cdk8s/auto-discover.js +2 -2
  27. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  28. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  29. package/lib/cdk8s/cdk8s-construct.js +1 -1
  30. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  31. package/lib/cdk8s/cdk8s-deps.js +1 -1
  32. package/lib/cdk8s/integration-test.js +1 -1
  33. package/lib/cdktf/cdktf-construct.js +1 -1
  34. package/lib/circleci/circleci.js +1 -1
  35. package/lib/cli/index.js +6 -3
  36. package/lib/component.js +1 -1
  37. package/lib/dependencies.js +1 -1
  38. package/lib/dev-env.js +1 -1
  39. package/lib/docker-compose/docker-compose-service.js +1 -1
  40. package/lib/docker-compose/docker-compose.js +1 -1
  41. package/lib/file.js +1 -1
  42. package/lib/gitattributes.js +1 -1
  43. package/lib/github/actions-provider.js +1 -1
  44. package/lib/github/auto-approve.js +1 -1
  45. package/lib/github/auto-merge.js +1 -1
  46. package/lib/github/auto-queue.js +1 -1
  47. package/lib/github/dependabot.js +1 -1
  48. package/lib/github/github-credentials.js +1 -1
  49. package/lib/github/github-project.js +1 -1
  50. package/lib/github/github.js +1 -1
  51. package/lib/github/merge-queue.js +1 -1
  52. package/lib/github/mergify.js +1 -1
  53. package/lib/github/pr-template.js +1 -1
  54. package/lib/github/pull-request-backport.js +1 -1
  55. package/lib/github/pull-request-lint.js +1 -1
  56. package/lib/github/stale.js +1 -1
  57. package/lib/github/task-workflow-job.js +1 -1
  58. package/lib/github/task-workflow.js +1 -1
  59. package/lib/github/workflow-actions.js +1 -1
  60. package/lib/github/workflow-jobs.js +1 -1
  61. package/lib/github/workflow-steps.js +1 -1
  62. package/lib/github/workflows.js +1 -1
  63. package/lib/gitlab/configuration.js +1 -1
  64. package/lib/gitlab/gitlab-configuration.js +1 -1
  65. package/lib/gitlab/nested-configuration.js +1 -1
  66. package/lib/gitpod.js +1 -1
  67. package/lib/ignore-file.js +1 -1
  68. package/lib/ini.js +1 -1
  69. package/lib/java/java-project.js +1 -1
  70. package/lib/java/junit.js +1 -1
  71. package/lib/java/maven-compile.js +1 -1
  72. package/lib/java/maven-packaging.js +1 -1
  73. package/lib/java/maven-sample.js +1 -1
  74. package/lib/java/pom.js +2 -2
  75. package/lib/java/projenrc.js +1 -1
  76. package/lib/javascript/biome/biome-config.d.ts +126 -50
  77. package/lib/javascript/biome/biome-config.js +74 -39
  78. package/lib/javascript/biome/biome.js +1 -1
  79. package/lib/javascript/bundler.js +1 -1
  80. package/lib/javascript/eslint.js +1 -1
  81. package/lib/javascript/jest.js +4 -4
  82. package/lib/javascript/license-checker.js +1 -1
  83. package/lib/javascript/node-package.js +1 -1
  84. package/lib/javascript/node-project.js +1 -1
  85. package/lib/javascript/npm-config.js +1 -1
  86. package/lib/javascript/prettier.js +1 -1
  87. package/lib/javascript/projenrc.js +1 -1
  88. package/lib/javascript/typescript-config.js +2 -2
  89. package/lib/javascript/upgrade-dependencies.js +2 -2
  90. package/lib/javascript/yarnrc.js +1 -1
  91. package/lib/json-patch.js +1 -1
  92. package/lib/json.js +10 -2
  93. package/lib/license.js +1 -1
  94. package/lib/logger.js +1 -1
  95. package/lib/makefile.js +1 -1
  96. package/lib/object-file.js +1 -1
  97. package/lib/project-build.js +1 -1
  98. package/lib/project-tree.js +1 -1
  99. package/lib/project.js +1 -1
  100. package/lib/projects.js +1 -1
  101. package/lib/projenrc-json.js +2 -2
  102. package/lib/projenrc.js +1 -1
  103. package/lib/python/pip.js +1 -1
  104. package/lib/python/poetry.js +2 -2
  105. package/lib/python/projenrc.js +1 -1
  106. package/lib/python/pyproject-toml-file.js +1 -1
  107. package/lib/python/pytest-sample.js +1 -1
  108. package/lib/python/pytest.js +1 -1
  109. package/lib/python/python-project.js +1 -1
  110. package/lib/python/python-sample.js +1 -1
  111. package/lib/python/requirements-file.js +1 -1
  112. package/lib/python/setuppy.js +1 -1
  113. package/lib/python/setuptools.js +1 -1
  114. package/lib/python/uv-config.d.ts +437 -21
  115. package/lib/python/uv-config.js +437 -2
  116. package/lib/python/uv.js +1 -1
  117. package/lib/python/venv.js +1 -1
  118. package/lib/readme.js +1 -1
  119. package/lib/release/publisher.js +1 -1
  120. package/lib/release/release-trigger.js +1 -1
  121. package/lib/release/release.js +1 -1
  122. package/lib/renovatebot.js +1 -1
  123. package/lib/sample-file.js +2 -2
  124. package/lib/semver.js +1 -1
  125. package/lib/source-code.js +1 -1
  126. package/lib/task-runtime.js +1 -1
  127. package/lib/task.js +1 -1
  128. package/lib/tasks.js +1 -1
  129. package/lib/testing.js +1 -1
  130. package/lib/textfile.js +1 -1
  131. package/lib/toml.js +1 -1
  132. package/lib/typescript/projenrc-ts.js +1 -1
  133. package/lib/typescript/projenrc.js +1 -1
  134. package/lib/typescript/typescript-typedoc.js +1 -1
  135. package/lib/typescript/typescript.js +6 -6
  136. package/lib/version.js +2 -2
  137. package/lib/vscode/devcontainer.js +1 -1
  138. package/lib/vscode/extensions.js +1 -1
  139. package/lib/vscode/launch-config.js +1 -1
  140. package/lib/vscode/settings.js +1 -1
  141. package/lib/vscode/vscode.js +1 -1
  142. package/lib/web/next.js +3 -3
  143. package/lib/web/postcss.js +1 -1
  144. package/lib/web/react.js +4 -4
  145. package/lib/web/tailwind.js +1 -1
  146. package/lib/xmlfile.js +1 -1
  147. package/lib/yaml.js +1 -1
  148. package/node_modules/@oozcitak/dom/README.md +2 -4
  149. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +7 -29
  150. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -1
  151. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +3 -3
  152. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -1
  153. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +14 -14
  154. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -1
  155. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +40 -62
  156. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -1
  157. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +53 -54
  158. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -1
  159. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +14 -14
  160. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -1
  161. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +29 -51
  162. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -1
  163. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +11 -11
  164. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -1
  165. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +25 -63
  166. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -1
  167. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +79 -85
  168. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -1
  169. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +1 -1
  170. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +96 -153
  171. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -1
  172. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +15 -37
  173. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -1
  174. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +229 -404
  175. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -1
  176. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +47 -109
  177. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -1
  178. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +5 -1
  179. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +19 -19
  180. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -1
  181. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +69 -124
  182. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -1
  183. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +11 -11
  184. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -1
  185. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +20 -72
  186. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -1
  187. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +12 -34
  188. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -1
  189. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +183 -289
  190. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -1
  191. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +2 -2
  192. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -1
  193. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +65 -140
  194. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -1
  195. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +63 -89
  196. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -1
  197. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +6 -6
  198. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -1
  199. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +141 -208
  200. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -1
  201. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +13 -13
  202. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -1
  203. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +1 -1
  204. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -1
  205. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +16 -16
  206. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -1
  207. package/node_modules/@oozcitak/dom/lib/algorithm/index.js +42 -31
  208. package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -1
  209. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +12 -15
  210. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -1
  211. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +20 -43
  212. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -1
  213. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +20 -62
  214. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -1
  215. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +53 -92
  216. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -1
  217. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +13 -27
  218. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -1
  219. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +40 -88
  220. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -1
  221. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +41 -55
  222. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -1
  223. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +13 -28
  224. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -1
  225. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +14 -36
  226. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -1
  227. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +114 -204
  228. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -1
  229. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +51 -68
  230. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -1
  231. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +32 -31
  232. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -1
  233. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +105 -163
  234. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -1
  235. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +1 -1
  236. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +30 -73
  237. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -1
  238. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +1 -1
  239. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +198 -330
  240. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -1
  241. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +3 -5
  242. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -1
  243. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +29 -75
  244. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -1
  245. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +1 -1
  246. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +234 -393
  247. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -1
  248. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +89 -137
  249. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -1
  250. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +32 -57
  251. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -1
  252. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +58 -64
  253. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -1
  254. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +36 -88
  255. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -1
  256. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +33 -60
  257. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -1
  258. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +33 -47
  259. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -1
  260. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +58 -42
  261. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -1
  262. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +1 -1
  263. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +375 -471
  264. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -1
  265. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +29 -49
  266. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -1
  267. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +69 -97
  268. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -1
  269. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +66 -93
  270. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -1
  271. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +33 -43
  272. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -1
  273. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +9 -11
  274. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -1
  275. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +73 -121
  276. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -1
  277. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +19 -36
  278. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -1
  279. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +174 -241
  280. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -1
  281. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +22 -43
  282. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -1
  283. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +13 -25
  284. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -1
  285. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +12 -25
  286. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -1
  287. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +34 -80
  288. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -1
  289. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +15 -23
  290. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -1
  291. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +46 -64
  292. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -1
  293. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +21 -42
  294. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -1
  295. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +6 -20
  296. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -1
  297. package/node_modules/@oozcitak/dom/lib/dom/index.js +92 -91
  298. package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -1
  299. package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +28 -25
  300. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +9 -7
  301. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -1
  302. package/node_modules/@oozcitak/dom/lib/index.js +5 -4
  303. package/node_modules/@oozcitak/dom/lib/index.js.map +1 -1
  304. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +13 -15
  305. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -1
  306. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +78 -128
  307. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -1
  308. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +107 -123
  309. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -1
  310. package/node_modules/@oozcitak/dom/lib/parser/index.js +2 -1
  311. package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -1
  312. package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +2 -2
  313. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +2 -1
  314. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -1
  315. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +10 -12
  316. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -1
  317. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +23 -25
  318. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -1
  319. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +405 -517
  320. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -1
  321. package/node_modules/@oozcitak/dom/lib/serializer/index.js +2 -1
  322. package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -1
  323. package/node_modules/@oozcitak/dom/lib/util/Cast.js +6 -8
  324. package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -1
  325. package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +13 -5
  326. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +33 -46
  327. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -1
  328. package/node_modules/@oozcitak/dom/lib/util/Guard.js +47 -49
  329. package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -1
  330. package/node_modules/@oozcitak/dom/lib/util/index.js +4 -3
  331. package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -1
  332. package/node_modules/@oozcitak/dom/package.json +14 -41
  333. package/node_modules/@oozcitak/infra/LICENSE +21 -21
  334. package/node_modules/@oozcitak/infra/README.md +11 -13
  335. package/node_modules/@oozcitak/infra/lib/Base64.js +3 -3
  336. package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -1
  337. package/node_modules/@oozcitak/infra/lib/Byte.js +1 -1
  338. package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -1
  339. package/node_modules/@oozcitak/infra/lib/ByteSequence.js +19 -39
  340. package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -1
  341. package/node_modules/@oozcitak/infra/lib/CodePoints.js +1 -0
  342. package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -1
  343. package/node_modules/@oozcitak/infra/lib/JSON.d.ts +1 -1
  344. package/node_modules/@oozcitak/infra/lib/JSON.js +18 -40
  345. package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -1
  346. package/node_modules/@oozcitak/infra/lib/List.d.ts +4 -4
  347. package/node_modules/@oozcitak/infra/lib/List.js +49 -173
  348. package/node_modules/@oozcitak/infra/lib/List.js.map +1 -1
  349. package/node_modules/@oozcitak/infra/lib/Map.d.ts +1 -1
  350. package/node_modules/@oozcitak/infra/lib/Map.js +43 -177
  351. package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -1
  352. package/node_modules/@oozcitak/infra/lib/Namespace.js +1 -0
  353. package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -1
  354. package/node_modules/@oozcitak/infra/lib/Queue.d.ts +1 -1
  355. package/node_modules/@oozcitak/infra/lib/Queue.js +2 -2
  356. package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -1
  357. package/node_modules/@oozcitak/infra/lib/Set.d.ts +1 -1
  358. package/node_modules/@oozcitak/infra/lib/Set.js +76 -254
  359. package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -1
  360. package/node_modules/@oozcitak/infra/lib/Stack.d.ts +1 -1
  361. package/node_modules/@oozcitak/infra/lib/Stack.js +2 -2
  362. package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -1
  363. package/node_modules/@oozcitak/infra/lib/String.d.ts +2 -2
  364. package/node_modules/@oozcitak/infra/lib/String.js +75 -131
  365. package/node_modules/@oozcitak/infra/lib/String.js.map +1 -1
  366. package/node_modules/@oozcitak/infra/lib/index.js +46 -19
  367. package/node_modules/@oozcitak/infra/lib/index.js.map +1 -1
  368. package/node_modules/@oozcitak/infra/package.json +41 -54
  369. package/node_modules/@oozcitak/url/LICENSE +21 -21
  370. package/node_modules/@oozcitak/url/README.md +25 -27
  371. package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +3 -3
  372. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +287 -460
  373. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -1
  374. package/node_modules/@oozcitak/url/lib/URLImpl.js +285 -331
  375. package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -1
  376. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +1 -1
  377. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +71 -190
  378. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -1
  379. package/node_modules/@oozcitak/url/lib/index.js +3 -2
  380. package/node_modules/@oozcitak/url/lib/index.js.map +1 -1
  381. package/node_modules/@oozcitak/url/lib/interfaces.d.ts +2 -2
  382. package/node_modules/@oozcitak/url/lib/interfaces.js +2 -1
  383. package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -1
  384. package/node_modules/@oozcitak/url/package.json +42 -55
  385. package/node_modules/@oozcitak/util/LICENSE +21 -21
  386. package/node_modules/@oozcitak/util/README.md +8 -10
  387. package/node_modules/@oozcitak/util/lib/CompareCache.js +12 -12
  388. package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -1
  389. package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +6 -6
  390. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +42 -117
  391. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -1
  392. package/node_modules/@oozcitak/util/lib/Lazy.js +17 -19
  393. package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -1
  394. package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +4 -4
  395. package/node_modules/@oozcitak/util/lib/ObjectCache.js +44 -118
  396. package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -1
  397. package/node_modules/@oozcitak/util/lib/StringWalker.js +41 -47
  398. package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -1
  399. package/node_modules/@oozcitak/util/lib/index.d.ts +23 -25
  400. package/node_modules/@oozcitak/util/lib/index.js +62 -88
  401. package/node_modules/@oozcitak/util/lib/index.js.map +1 -1
  402. package/node_modules/@oozcitak/util/package.json +37 -50
  403. package/node_modules/argparse/LICENSE +254 -0
  404. package/node_modules/argparse/README.md +84 -0
  405. package/node_modules/argparse/argparse.js +3707 -0
  406. package/node_modules/argparse/lib/sub.js +67 -0
  407. package/node_modules/argparse/lib/textwrap.js +440 -0
  408. package/node_modules/argparse/package.json +31 -0
  409. package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/README.md +36 -88
  410. package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/bin/js-yaml.js +17 -23
  411. package/node_modules/js-yaml/dist/js-yaml.js +3880 -0
  412. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  413. package/node_modules/{xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js → js-yaml/dist/js-yaml.mjs} +2926 -3075
  414. package/node_modules/js-yaml/index.js +47 -0
  415. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/dumper.js +205 -90
  416. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/exception.js +22 -10
  417. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/loader.js +149 -76
  418. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/core.js +1 -8
  419. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js → js-yaml/lib/schema/default.js} +1 -7
  420. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/json.js +1 -7
  421. package/node_modules/js-yaml/lib/schema.js +121 -0
  422. package/node_modules/js-yaml/lib/snippet.js +101 -0
  423. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/binary.js +4 -17
  424. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/float.js +2 -21
  425. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/int.js +18 -35
  426. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/null.js +2 -1
  427. package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type.js +14 -9
  428. package/node_modules/js-yaml/package.json +66 -0
  429. package/node_modules/xmlbuilder2/README.md +8 -7
  430. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +36 -37
  431. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -1
  432. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +3 -3
  433. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -1
  434. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +0 -1
  435. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +235 -333
  436. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -1
  437. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +271 -371
  438. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -1
  439. package/node_modules/xmlbuilder2/lib/builder/dom.js +13 -13
  440. package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -1
  441. package/node_modules/xmlbuilder2/lib/builder/index.js +9 -8
  442. package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -1
  443. package/node_modules/xmlbuilder2/lib/constants.js +1 -0
  444. package/node_modules/xmlbuilder2/lib/constants.js.map +1 -1
  445. package/node_modules/xmlbuilder2/lib/index.js +7 -6
  446. package/node_modules/xmlbuilder2/lib/index.js.map +1 -1
  447. package/node_modules/xmlbuilder2/lib/interfaces.d.ts +25 -24
  448. package/node_modules/xmlbuilder2/lib/interfaces.js +1 -0
  449. package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -1
  450. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +53 -56
  451. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -1
  452. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +7 -24
  453. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -1
  454. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +59 -77
  455. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -1
  456. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +61 -126
  457. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -1
  458. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +9 -26
  459. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -1
  460. package/node_modules/xmlbuilder2/lib/readers/index.js +5 -4
  461. package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -1
  462. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +1 -0
  463. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +14 -8
  464. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -1
  465. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +474 -609
  466. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -1
  467. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +48 -64
  468. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -1
  469. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +54 -95
  470. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -1
  471. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +21 -36
  472. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -1
  473. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +131 -166
  474. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -1
  475. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +1 -1
  476. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +42 -56
  477. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -1
  478. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +48 -62
  479. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -1
  480. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +43 -59
  481. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -1
  482. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +49 -89
  483. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -1
  484. package/node_modules/xmlbuilder2/lib/writers/index.js +6 -5
  485. package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -1
  486. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +2 -8
  487. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js.LICENSE.txt +10 -0
  488. package/node_modules/xmlbuilder2/package.json +34 -52
  489. package/package.json +8 -13
  490. package/node_modules/sprintf-js/.npmignore +0 -1
  491. package/node_modules/sprintf-js/LICENSE +0 -24
  492. package/node_modules/sprintf-js/README.md +0 -88
  493. package/node_modules/sprintf-js/bower.json +0 -14
  494. package/node_modules/sprintf-js/demo/angular.html +0 -20
  495. package/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
  496. package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
  497. package/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
  498. package/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
  499. package/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
  500. package/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
  501. package/node_modules/sprintf-js/gruntfile.js +0 -36
  502. package/node_modules/sprintf-js/package.json +0 -22
  503. package/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
  504. package/node_modules/sprintf-js/src/sprintf.js +0 -208
  505. package/node_modules/sprintf-js/test/test.js +0 -82
  506. package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +0 -21
  507. package/node_modules/xmlbuilder2/node_modules/argparse/README.md +0 -257
  508. package/node_modules/xmlbuilder2/node_modules/argparse/index.js +0 -3
  509. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +0 -47
  510. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +0 -53
  511. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +0 -40
  512. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +0 -47
  513. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +0 -43
  514. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +0 -27
  515. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +0 -26
  516. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +0 -50
  517. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +0 -149
  518. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +0 -47
  519. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +0 -146
  520. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +0 -482
  521. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +0 -14
  522. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +0 -50
  523. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +0 -54
  524. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +0 -75
  525. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +0 -1161
  526. package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +0 -21
  527. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +0 -87
  528. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +0 -795
  529. package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +0 -76
  530. package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +0 -57
  531. package/node_modules/xmlbuilder2/node_modules/argparse/package.json +0 -34
  532. package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
  533. package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +0 -7
  534. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
  535. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
  536. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
  537. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
  538. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
  539. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
  540. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +0 -39
  541. package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +0 -49
  542. /package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/LICENSE +0 -0
  543. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/common.js +0 -0
  544. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/failsafe.js +0 -0
  545. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/bool.js +0 -0
  546. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/map.js +0 -0
  547. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/merge.js +0 -0
  548. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/omap.js +0 -0
  549. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/pairs.js +0 -0
  550. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/seq.js +0 -0
  551. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/set.js +0 -0
  552. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/str.js +0 -0
  553. /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/timestamp.js +0 -0
  554. /package/node_modules/xmlbuilder2/{LICENSE → LICENSE.txt} +0 -0
@@ -1,207 +1,121 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __values = (this && this.__values) || function(o) {
16
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
17
- if (m) return m.call(o);
18
- if (o && typeof o.length === "number") return {
19
- next: function () {
20
- if (o && i >= o.length) o = void 0;
21
- return { value: o && o[i++], done: !o };
22
- }
23
- };
24
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
25
- };
26
- var __read = (this && this.__read) || function (o, n) {
27
- var m = typeof Symbol === "function" && o[Symbol.iterator];
28
- if (!m) return o;
29
- var i = m.call(o), r, ar = [], e;
30
- try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
32
- }
33
- catch (error) { e = { error: error }; }
34
- finally {
35
- try {
36
- if (r && !r.done && (m = i["return"])) m.call(i);
37
- }
38
- finally { if (e) throw e.error; }
39
- }
40
- return ar;
41
- };
42
2
  Object.defineProperty(exports, "__esModule", { value: true });
43
- var interfaces_1 = require("./interfaces");
44
- var NodeImpl_1 = require("./NodeImpl");
45
- var DOMException_1 = require("./DOMException");
46
- var infra_1 = require("@oozcitak/infra");
47
- var algorithm_1 = require("../algorithm");
48
- var WebIDLAlgorithm_1 = require("../algorithm/WebIDLAlgorithm");
3
+ exports.ElementImpl = void 0;
4
+ const interfaces_1 = require("./interfaces");
5
+ const NodeImpl_1 = require("./NodeImpl");
6
+ const DOMException_1 = require("./DOMException");
7
+ const infra_1 = require("@oozcitak/infra");
8
+ const algorithm_1 = require("../algorithm");
9
+ const WebIDLAlgorithm_1 = require("../algorithm/WebIDLAlgorithm");
49
10
  /**
50
11
  * Represents an element node.
51
12
  */
52
- var ElementImpl = /** @class */ (function (_super) {
53
- __extends(ElementImpl, _super);
13
+ class ElementImpl extends NodeImpl_1.NodeImpl {
14
+ _nodeType = interfaces_1.NodeType.Element;
15
+ _children = new Set();
16
+ _namespace = null;
17
+ _namespacePrefix = null;
18
+ _localName = "";
19
+ _customElementState = "undefined";
20
+ _customElementDefinition = null;
21
+ _is = null;
22
+ _shadowRoot = null;
23
+ _attributeList = (0, algorithm_1.create_namedNodeMap)(this);
24
+ _uniqueIdentifier;
25
+ _attributeChangeSteps = [];
26
+ _name = '';
27
+ _assignedSlot = null;
54
28
  /**
55
29
  * Initializes a new instance of `Element`.
56
30
  */
57
- function ElementImpl() {
58
- var _this = _super.call(this) || this;
59
- _this._children = new Set();
60
- _this._namespace = null;
61
- _this._namespacePrefix = null;
62
- _this._localName = "";
63
- _this._customElementState = "undefined";
64
- _this._customElementDefinition = null;
65
- _this._is = null;
66
- _this._shadowRoot = null;
67
- _this._attributeList = algorithm_1.create_namedNodeMap(_this);
68
- _this._attributeChangeSteps = [];
69
- _this._name = '';
70
- _this._assignedSlot = null;
71
- return _this;
72
- }
73
- Object.defineProperty(ElementImpl.prototype, "namespaceURI", {
74
- /** @inheritdoc */
75
- get: function () { return this._namespace; },
76
- enumerable: true,
77
- configurable: true
78
- });
79
- Object.defineProperty(ElementImpl.prototype, "prefix", {
80
- /** @inheritdoc */
81
- get: function () { return this._namespacePrefix; },
82
- enumerable: true,
83
- configurable: true
84
- });
85
- Object.defineProperty(ElementImpl.prototype, "localName", {
86
- /** @inheritdoc */
87
- get: function () { return this._localName; },
88
- enumerable: true,
89
- configurable: true
90
- });
91
- Object.defineProperty(ElementImpl.prototype, "tagName", {
92
- /** @inheritdoc */
93
- get: function () { return this._htmlUppercasedQualifiedName; },
94
- enumerable: true,
95
- configurable: true
96
- });
97
- Object.defineProperty(ElementImpl.prototype, "id", {
98
- /** @inheritdoc */
99
- get: function () {
100
- return algorithm_1.element_getAnAttributeValue(this, "id");
101
- },
102
- set: function (value) {
103
- algorithm_1.element_setAnAttributeValue(this, "id", value);
104
- },
105
- enumerable: true,
106
- configurable: true
107
- });
108
- Object.defineProperty(ElementImpl.prototype, "className", {
109
- /** @inheritdoc */
110
- get: function () {
111
- return algorithm_1.element_getAnAttributeValue(this, "class");
112
- },
113
- set: function (value) {
114
- algorithm_1.element_setAnAttributeValue(this, "class", value);
115
- },
116
- enumerable: true,
117
- configurable: true
118
- });
119
- Object.defineProperty(ElementImpl.prototype, "classList", {
120
- /** @inheritdoc */
121
- get: function () {
122
- var attr = algorithm_1.element_getAnAttributeByName("class", this);
123
- if (attr === null) {
124
- attr = algorithm_1.create_attr(this._nodeDocument, "class");
125
- }
126
- return algorithm_1.create_domTokenList(this, attr);
127
- },
128
- enumerable: true,
129
- configurable: true
130
- });
131
- Object.defineProperty(ElementImpl.prototype, "slot", {
132
- /** @inheritdoc */
133
- get: function () {
134
- return algorithm_1.element_getAnAttributeValue(this, "slot");
135
- },
136
- set: function (value) {
137
- algorithm_1.element_setAnAttributeValue(this, "slot", value);
138
- },
139
- enumerable: true,
140
- configurable: true
141
- });
142
- /** @inheritdoc */
143
- ElementImpl.prototype.hasAttributes = function () {
31
+ constructor() {
32
+ super();
33
+ }
34
+ /** @inheritdoc */
35
+ get namespaceURI() { return this._namespace; }
36
+ /** @inheritdoc */
37
+ get prefix() { return this._namespacePrefix; }
38
+ /** @inheritdoc */
39
+ get localName() { return this._localName; }
40
+ /** @inheritdoc */
41
+ get tagName() { return this._htmlUppercasedQualifiedName; }
42
+ /** @inheritdoc */
43
+ get id() {
44
+ return (0, algorithm_1.element_getAnAttributeValue)(this, "id");
45
+ }
46
+ set id(value) {
47
+ (0, algorithm_1.element_setAnAttributeValue)(this, "id", value);
48
+ }
49
+ /** @inheritdoc */
50
+ get className() {
51
+ return (0, algorithm_1.element_getAnAttributeValue)(this, "class");
52
+ }
53
+ set className(value) {
54
+ (0, algorithm_1.element_setAnAttributeValue)(this, "class", value);
55
+ }
56
+ /** @inheritdoc */
57
+ get classList() {
58
+ let attr = (0, algorithm_1.element_getAnAttributeByName)("class", this);
59
+ if (attr === null) {
60
+ attr = (0, algorithm_1.create_attr)(this._nodeDocument, "class");
61
+ }
62
+ return (0, algorithm_1.create_domTokenList)(this, attr);
63
+ }
64
+ /** @inheritdoc */
65
+ get slot() {
66
+ return (0, algorithm_1.element_getAnAttributeValue)(this, "slot");
67
+ }
68
+ set slot(value) {
69
+ (0, algorithm_1.element_setAnAttributeValue)(this, "slot", value);
70
+ }
71
+ /** @inheritdoc */
72
+ hasAttributes() {
144
73
  return this._attributeList.length !== 0;
145
- };
146
- Object.defineProperty(ElementImpl.prototype, "attributes", {
147
- /** @inheritdoc */
148
- get: function () { return this._attributeList; },
149
- enumerable: true,
150
- configurable: true
151
- });
74
+ }
75
+ /** @inheritdoc */
76
+ get attributes() { return this._attributeList; }
152
77
  /** @inheritdoc */
153
- ElementImpl.prototype.getAttributeNames = function () {
154
- var e_1, _a;
78
+ getAttributeNames() {
155
79
  /**
156
80
  * The getAttributeNames() method, when invoked, must return the qualified
157
81
  * names of the attributes in context object’s attribute list, in order,
158
82
  * and a new list otherwise.
159
83
  */
160
- var names = [];
161
- try {
162
- for (var _b = __values(this._attributeList), _c = _b.next(); !_c.done; _c = _b.next()) {
163
- var attr = _c.value;
164
- names.push(attr._qualifiedName);
165
- }
166
- }
167
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
168
- finally {
169
- try {
170
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
171
- }
172
- finally { if (e_1) throw e_1.error; }
84
+ const names = [];
85
+ for (const attr of this._attributeList) {
86
+ names.push(attr._qualifiedName);
173
87
  }
174
88
  return names;
175
- };
89
+ }
176
90
  /** @inheritdoc */
177
- ElementImpl.prototype.getAttribute = function (qualifiedName) {
91
+ getAttribute(qualifiedName) {
178
92
  /**
179
93
  * 1. Let attr be the result of getting an attribute given qualifiedName
180
94
  * and the context object.
181
95
  * 2. If attr is null, return null.
182
96
  * 3. Return attr’s value.
183
97
  */
184
- var attr = algorithm_1.element_getAnAttributeByName(qualifiedName, this);
98
+ const attr = (0, algorithm_1.element_getAnAttributeByName)(qualifiedName, this);
185
99
  return (attr ? attr._value : null);
186
- };
100
+ }
187
101
  /** @inheritdoc */
188
- ElementImpl.prototype.getAttributeNS = function (namespace, localName) {
102
+ getAttributeNS(namespace, localName) {
189
103
  /**
190
104
  * 1. Let attr be the result of getting an attribute given namespace,
191
105
  * localName, and the context object.
192
106
  * 2. If attr is null, return null.
193
107
  * 3. Return attr’s value.
194
108
  */
195
- var attr = algorithm_1.element_getAnAttributeByNamespaceAndLocalName(namespace, localName, this);
109
+ const attr = (0, algorithm_1.element_getAnAttributeByNamespaceAndLocalName)(namespace, localName, this);
196
110
  return (attr ? attr._value : null);
197
- };
111
+ }
198
112
  /** @inheritdoc */
199
- ElementImpl.prototype.setAttribute = function (qualifiedName, value) {
113
+ setAttribute(qualifiedName, value) {
200
114
  /**
201
115
  * 1. If qualifiedName does not match the Name production in XML, then
202
116
  * throw an "InvalidCharacterError" DOMException.
203
117
  */
204
- if (!algorithm_1.xml_isName(qualifiedName))
118
+ if (!(0, algorithm_1.xml_isName)(qualifiedName))
205
119
  throw new DOMException_1.InvalidCharacterError();
206
120
  /**
207
121
  * 2. If the context object is in the HTML namespace and its node document
@@ -215,9 +129,9 @@ var ElementImpl = /** @class */ (function (_super) {
215
129
  * 3. Let attribute be the first attribute in context object’s attribute
216
130
  * list whose qualified name is qualifiedName, and null otherwise.
217
131
  */
218
- var attribute = null;
219
- for (var i = 0; i < this._attributeList.length; i++) {
220
- var attr = this._attributeList[i];
132
+ let attribute = null;
133
+ for (let i = 0; i < this._attributeList.length; i++) {
134
+ const attr = this._attributeList[i];
221
135
  if (attr._qualifiedName === qualifiedName) {
222
136
  attribute = attr;
223
137
  break;
@@ -230,47 +144,47 @@ var ElementImpl = /** @class */ (function (_super) {
230
144
  * then return.
231
145
  */
232
146
  if (attribute === null) {
233
- attribute = algorithm_1.create_attr(this._nodeDocument, qualifiedName);
147
+ attribute = (0, algorithm_1.create_attr)(this._nodeDocument, qualifiedName);
234
148
  attribute._value = value;
235
- algorithm_1.element_append(attribute, this);
149
+ (0, algorithm_1.element_append)(attribute, this);
236
150
  return;
237
151
  }
238
152
  /**
239
153
  * 5. Change attribute from context object to value.
240
154
  */
241
- algorithm_1.element_change(attribute, this, value);
242
- };
155
+ (0, algorithm_1.element_change)(attribute, this, value);
156
+ }
243
157
  /** @inheritdoc */
244
- ElementImpl.prototype.setAttributeNS = function (namespace, qualifiedName, value) {
158
+ setAttributeNS(namespace, qualifiedName, value) {
245
159
  /**
246
160
  * 1. Let namespace, prefix, and localName be the result of passing
247
161
  * namespace and qualifiedName to validate and extract.
248
162
  * 2. Set an attribute value for the context object using localName, value,
249
163
  * and also prefix and namespace.
250
164
  */
251
- var _a = __read(algorithm_1.namespace_validateAndExtract(namespace, qualifiedName), 3), ns = _a[0], prefix = _a[1], localName = _a[2];
252
- algorithm_1.element_setAnAttributeValue(this, localName, value, prefix, ns);
253
- };
165
+ const [ns, prefix, localName] = (0, algorithm_1.namespace_validateAndExtract)(namespace, qualifiedName);
166
+ (0, algorithm_1.element_setAnAttributeValue)(this, localName, value, prefix, ns);
167
+ }
254
168
  /** @inheritdoc */
255
- ElementImpl.prototype.removeAttribute = function (qualifiedName) {
169
+ removeAttribute(qualifiedName) {
256
170
  /**
257
171
  * The removeAttribute(qualifiedName) method, when invoked, must remove an
258
172
  * attribute given qualifiedName and the context object, and then return
259
173
  * undefined.
260
174
  */
261
- algorithm_1.element_removeAnAttributeByName(qualifiedName, this);
262
- };
175
+ (0, algorithm_1.element_removeAnAttributeByName)(qualifiedName, this);
176
+ }
263
177
  /** @inheritdoc */
264
- ElementImpl.prototype.removeAttributeNS = function (namespace, localName) {
178
+ removeAttributeNS(namespace, localName) {
265
179
  /**
266
180
  * The removeAttributeNS(namespace, localName) method, when invoked, must
267
181
  * remove an attribute given namespace, localName, and context object, and
268
182
  * then return undefined.
269
183
  */
270
- algorithm_1.element_removeAnAttributeByNamespaceAndLocalName(namespace, localName, this);
271
- };
184
+ (0, algorithm_1.element_removeAnAttributeByNamespaceAndLocalName)(namespace, localName, this);
185
+ }
272
186
  /** @inheritdoc */
273
- ElementImpl.prototype.hasAttribute = function (qualifiedName) {
187
+ hasAttribute(qualifiedName) {
274
188
  /**
275
189
  * 1. If the context object is in the HTML namespace and its node document
276
190
  * is an HTML document, then set qualifiedName to qualifiedName in ASCII
@@ -281,21 +195,21 @@ var ElementImpl = /** @class */ (function (_super) {
281
195
  if (this._namespace === infra_1.namespace.HTML && this._nodeDocument._type === "html") {
282
196
  qualifiedName = qualifiedName.toLowerCase();
283
197
  }
284
- for (var i = 0; i < this._attributeList.length; i++) {
285
- var attr = this._attributeList[i];
198
+ for (let i = 0; i < this._attributeList.length; i++) {
199
+ const attr = this._attributeList[i];
286
200
  if (attr._qualifiedName === qualifiedName) {
287
201
  return true;
288
202
  }
289
203
  }
290
204
  return false;
291
- };
205
+ }
292
206
  /** @inheritdoc */
293
- ElementImpl.prototype.toggleAttribute = function (qualifiedName, force) {
207
+ toggleAttribute(qualifiedName, force) {
294
208
  /**
295
209
  * 1. If qualifiedName does not match the Name production in XML, then
296
210
  * throw an "InvalidCharacterError" DOMException.
297
211
  */
298
- if (!algorithm_1.xml_isName(qualifiedName))
212
+ if (!(0, algorithm_1.xml_isName)(qualifiedName))
299
213
  throw new DOMException_1.InvalidCharacterError();
300
214
  /**
301
215
  * 2. If the context object is in the HTML namespace and its node document
@@ -309,9 +223,9 @@ var ElementImpl = /** @class */ (function (_super) {
309
223
  * 3. Let attribute be the first attribute in the context object’s attribute
310
224
  * list whose qualified name is qualifiedName, and null otherwise.
311
225
  */
312
- var attribute = null;
313
- for (var i = 0; i < this._attributeList.length; i++) {
314
- var attr = this._attributeList[i];
226
+ let attribute = null;
227
+ for (let i = 0; i < this._attributeList.length; i++) {
228
+ const attr = this._attributeList[i];
315
229
  if (attr._qualifiedName === qualifiedName) {
316
230
  attribute = attr;
317
231
  break;
@@ -327,9 +241,9 @@ var ElementImpl = /** @class */ (function (_super) {
327
241
  * 4.2. Return false.
328
242
  */
329
243
  if (force === undefined || force === true) {
330
- attribute = algorithm_1.create_attr(this._nodeDocument, qualifiedName);
244
+ attribute = (0, algorithm_1.create_attr)(this._nodeDocument, qualifiedName);
331
245
  attribute._value = '';
332
- algorithm_1.element_append(attribute, this);
246
+ (0, algorithm_1.element_append)(attribute, this);
333
247
  return true;
334
248
  }
335
249
  return false;
@@ -339,71 +253,71 @@ var ElementImpl = /** @class */ (function (_super) {
339
253
  * 5. Otherwise, if force is not given or is false, remove an attribute
340
254
  * given qualifiedName and the context object, and then return false.
341
255
  */
342
- algorithm_1.element_removeAnAttributeByName(qualifiedName, this);
256
+ (0, algorithm_1.element_removeAnAttributeByName)(qualifiedName, this);
343
257
  return false;
344
258
  }
345
259
  /**
346
260
  * 6. Return true.
347
261
  */
348
262
  return true;
349
- };
263
+ }
350
264
  /** @inheritdoc */
351
- ElementImpl.prototype.hasAttributeNS = function (namespace, localName) {
265
+ hasAttributeNS(namespace, localName) {
352
266
  /**
353
267
  * 1. If namespace is the empty string, set it to null.
354
268
  * 2. Return true if the context object has an attribute whose namespace is
355
269
  * namespace and local name is localName, and false otherwise.
356
270
  */
357
- var ns = namespace || null;
358
- for (var i = 0; i < this._attributeList.length; i++) {
359
- var attr = this._attributeList[i];
271
+ const ns = namespace || null;
272
+ for (let i = 0; i < this._attributeList.length; i++) {
273
+ const attr = this._attributeList[i];
360
274
  if (attr._namespace === ns && attr._localName === localName) {
361
275
  return true;
362
276
  }
363
277
  }
364
278
  return false;
365
- };
279
+ }
366
280
  /** @inheritdoc */
367
- ElementImpl.prototype.getAttributeNode = function (qualifiedName) {
281
+ getAttributeNode(qualifiedName) {
368
282
  /**
369
283
  * The getAttributeNode(qualifiedName) method, when invoked, must return the
370
284
  * result of getting an attribute given qualifiedName and context object.
371
285
  */
372
- return algorithm_1.element_getAnAttributeByName(qualifiedName, this);
373
- };
286
+ return (0, algorithm_1.element_getAnAttributeByName)(qualifiedName, this);
287
+ }
374
288
  /** @inheritdoc */
375
- ElementImpl.prototype.getAttributeNodeNS = function (namespace, localName) {
289
+ getAttributeNodeNS(namespace, localName) {
376
290
  /**
377
291
  * The getAttributeNodeNS(namespace, localName) method, when invoked, must
378
292
  * return the result of getting an attribute given namespace, localName, and
379
293
  * the context object.
380
294
  */
381
- return algorithm_1.element_getAnAttributeByNamespaceAndLocalName(namespace, localName, this);
382
- };
295
+ return (0, algorithm_1.element_getAnAttributeByNamespaceAndLocalName)(namespace, localName, this);
296
+ }
383
297
  /** @inheritdoc */
384
- ElementImpl.prototype.setAttributeNode = function (attr) {
298
+ setAttributeNode(attr) {
385
299
  /**
386
300
  * The setAttributeNode(attr) and setAttributeNodeNS(attr) methods, when
387
301
  * invoked, must return the result of setting an attribute given attr and
388
302
  * the context object.
389
303
  */
390
- return algorithm_1.element_setAnAttribute(attr, this);
391
- };
304
+ return (0, algorithm_1.element_setAnAttribute)(attr, this);
305
+ }
392
306
  /** @inheritdoc */
393
- ElementImpl.prototype.setAttributeNodeNS = function (attr) {
394
- return algorithm_1.element_setAnAttribute(attr, this);
395
- };
307
+ setAttributeNodeNS(attr) {
308
+ return (0, algorithm_1.element_setAnAttribute)(attr, this);
309
+ }
396
310
  /** @inheritdoc */
397
- ElementImpl.prototype.removeAttributeNode = function (attr) {
311
+ removeAttributeNode(attr) {
398
312
  /**
399
313
  * 1. If context object’s attribute list does not contain attr, then throw
400
314
  * a "NotFoundError" DOMException.
401
315
  * 2. Remove attr from context object.
402
316
  * 3. Return attr.
403
317
  */
404
- var found = false;
405
- for (var i = 0; i < this._attributeList.length; i++) {
406
- var attribute = this._attributeList[i];
318
+ let found = false;
319
+ for (let i = 0; i < this._attributeList.length; i++) {
320
+ const attribute = this._attributeList[i];
407
321
  if (attribute === attr) {
408
322
  found = true;
409
323
  break;
@@ -411,11 +325,11 @@ var ElementImpl = /** @class */ (function (_super) {
411
325
  }
412
326
  if (!found)
413
327
  throw new DOMException_1.NotFoundError();
414
- algorithm_1.element_remove(attr, this);
328
+ (0, algorithm_1.element_remove)(attr, this);
415
329
  return attr;
416
- };
330
+ }
417
331
  /** @inheritdoc */
418
- ElementImpl.prototype.attachShadow = function (init) {
332
+ attachShadow(init) {
419
333
  /**
420
334
  * 1. If context object’s namespace is not the HTML namespace, then throw a
421
335
  * "NotSupportedError" DOMException.
@@ -428,8 +342,8 @@ var ElementImpl = /** @class */ (function (_super) {
428
342
  * "h3", "h4", "h5", "h6", "header", "main" "nav", "p", "section",
429
343
  * or "span", then throw a "NotSupportedError" DOMException.
430
344
  */
431
- if (!algorithm_1.customElement_isValidCustomElementName(this._localName) &&
432
- !algorithm_1.customElement_isValidShadowHostName(this._localName))
345
+ if (!(0, algorithm_1.customElement_isValidCustomElementName)(this._localName) &&
346
+ !(0, algorithm_1.customElement_isValidShadowHostName)(this._localName))
433
347
  throw new DOMException_1.NotSupportedError();
434
348
  /**
435
349
  * 3. If context object’s local name is a valid custom element name,
@@ -440,8 +354,8 @@ var ElementImpl = /** @class */ (function (_super) {
440
354
  * 3.2. If definition is not null and definition’s disable shadow is true,
441
355
  * then throw a "NotSupportedError" DOMException.
442
356
  */
443
- if (algorithm_1.customElement_isValidCustomElementName(this._localName) || this._is !== null) {
444
- var definition = algorithm_1.customElement_lookUpACustomElementDefinition(this._nodeDocument, this._namespace, this._localName, this._is);
357
+ if ((0, algorithm_1.customElement_isValidCustomElementName)(this._localName) || this._is !== null) {
358
+ const definition = (0, algorithm_1.customElement_lookUpACustomElementDefinition)(this._nodeDocument, this._namespace, this._localName, this._is);
445
359
  if (definition !== null && definition.disableShadow === true) {
446
360
  throw new DOMException_1.NotSupportedError();
447
361
  }
@@ -458,30 +372,26 @@ var ElementImpl = /** @class */ (function (_super) {
458
372
  * 6. Set context object’s shadow root to shadow.
459
373
  * 7. Return shadow.
460
374
  */
461
- var shadow = algorithm_1.create_shadowRoot(this._nodeDocument, this);
375
+ const shadow = (0, algorithm_1.create_shadowRoot)(this._nodeDocument, this);
462
376
  shadow._mode = init.mode;
463
377
  this._shadowRoot = shadow;
464
378
  return shadow;
465
- };
466
- Object.defineProperty(ElementImpl.prototype, "shadowRoot", {
467
- /** @inheritdoc */
468
- get: function () {
469
- /**
470
- * 1. Let shadow be context object’s shadow root.
471
- * 2. If shadow is null or its mode is "closed", then return null.
472
- * 3. Return shadow.
473
- */
474
- var shadow = this._shadowRoot;
475
- if (shadow === null || shadow.mode === "closed")
476
- return null;
477
- else
478
- return shadow;
479
- },
480
- enumerable: true,
481
- configurable: true
482
- });
483
- /** @inheritdoc */
484
- ElementImpl.prototype.closest = function (selectors) {
379
+ }
380
+ /** @inheritdoc */
381
+ get shadowRoot() {
382
+ /**
383
+ * 1. Let shadow be context object’s shadow root.
384
+ * 2. If shadow is null or its mode is "closed", then return null.
385
+ * 3. Return shadow.
386
+ */
387
+ const shadow = this._shadowRoot;
388
+ if (shadow === null || shadow.mode === "closed")
389
+ return null;
390
+ else
391
+ return shadow;
392
+ }
393
+ /** @inheritdoc */
394
+ closest(selectors) {
485
395
  /**
486
396
  * TODO: Selectors
487
397
  * 1. Let s be the result of parse a selector from selectors. [SELECTORS4]
@@ -494,9 +404,9 @@ var ElementImpl = /** @class */ (function (_super) {
494
404
  * 5. Return null.
495
405
  */
496
406
  throw new DOMException_1.NotImplementedError();
497
- };
407
+ }
498
408
  /** @inheritdoc */
499
- ElementImpl.prototype.matches = function (selectors) {
409
+ matches(selectors) {
500
410
  /**
501
411
  * TODO: Selectors
502
412
  * 1. Let s be the result of parse a selector from selectors. [SELECTORS4]
@@ -506,186 +416,120 @@ var ElementImpl = /** @class */ (function (_super) {
506
416
  * and false otherwise. [SELECTORS4]
507
417
  */
508
418
  throw new DOMException_1.NotImplementedError();
509
- };
419
+ }
510
420
  /** @inheritdoc */
511
- ElementImpl.prototype.webkitMatchesSelector = function (selectors) {
421
+ webkitMatchesSelector(selectors) {
512
422
  return this.matches(selectors);
513
- };
423
+ }
514
424
  /** @inheritdoc */
515
- ElementImpl.prototype.getElementsByTagName = function (qualifiedName) {
425
+ getElementsByTagName(qualifiedName) {
516
426
  /**
517
427
  * The getElementsByTagName(qualifiedName) method, when invoked, must return
518
428
  * the list of elements with qualified name qualifiedName for context
519
429
  * object.
520
430
  */
521
- return algorithm_1.node_listOfElementsWithQualifiedName(qualifiedName, this);
522
- };
431
+ return (0, algorithm_1.node_listOfElementsWithQualifiedName)(qualifiedName, this);
432
+ }
523
433
  /** @inheritdoc */
524
- ElementImpl.prototype.getElementsByTagNameNS = function (namespace, localName) {
434
+ getElementsByTagNameNS(namespace, localName) {
525
435
  /**
526
436
  * The getElementsByTagNameNS(namespace, localName) method, when invoked,
527
437
  * must return the list of elements with namespace namespace and local name
528
438
  * localName for context object.
529
439
  */
530
- return algorithm_1.node_listOfElementsWithNamespace(namespace, localName, this);
531
- };
440
+ return (0, algorithm_1.node_listOfElementsWithNamespace)(namespace, localName, this);
441
+ }
532
442
  /** @inheritdoc */
533
- ElementImpl.prototype.getElementsByClassName = function (classNames) {
443
+ getElementsByClassName(classNames) {
534
444
  /**
535
445
  * The getElementsByClassName(classNames) method, when invoked, must return
536
446
  * the list of elements with class names classNames for context object.
537
447
  */
538
- return algorithm_1.node_listOfElementsWithClassNames(classNames, this);
539
- };
448
+ return (0, algorithm_1.node_listOfElementsWithClassNames)(classNames, this);
449
+ }
540
450
  /** @inheritdoc */
541
- ElementImpl.prototype.insertAdjacentElement = function (where, element) {
451
+ insertAdjacentElement(where, element) {
542
452
  /**
543
453
  * The insertAdjacentElement(where, element) method, when invoked, must
544
454
  * return the result of running insert adjacent, given context object,
545
455
  * where, and element.
546
456
  */
547
- return algorithm_1.element_insertAdjacent(this, where, element);
548
- };
457
+ return (0, algorithm_1.element_insertAdjacent)(this, where, element);
458
+ }
549
459
  /** @inheritdoc */
550
- ElementImpl.prototype.insertAdjacentText = function (where, data) {
460
+ insertAdjacentText(where, data) {
551
461
  /**
552
462
  * 1. Let text be a new Text node whose data is data and node document is
553
463
  * context object’s node document.
554
464
  * 2. Run insert adjacent, given context object, where, and text.
555
465
  */
556
- var text = algorithm_1.create_text(this._nodeDocument, data);
557
- algorithm_1.element_insertAdjacent(this, where, text);
558
- };
559
- Object.defineProperty(ElementImpl.prototype, "_qualifiedName", {
466
+ const text = (0, algorithm_1.create_text)(this._nodeDocument, data);
467
+ (0, algorithm_1.element_insertAdjacent)(this, where, text);
468
+ }
469
+ /**
470
+ * Returns the qualified name.
471
+ */
472
+ get _qualifiedName() {
560
473
  /**
561
- * Returns the qualified name.
474
+ * An element’s qualified name is its local name if its namespace prefix is
475
+ * null, and its namespace prefix, followed by ":", followed by its
476
+ * local name, otherwise.
562
477
  */
563
- get: function () {
564
- /**
565
- * An element’s qualified name is its local name if its namespace prefix is
566
- * null, and its namespace prefix, followed by ":", followed by its
567
- * local name, otherwise.
568
- */
569
- return (this._namespacePrefix ?
570
- this._namespacePrefix + ':' + this._localName :
571
- this._localName);
572
- },
573
- enumerable: true,
574
- configurable: true
575
- });
576
- Object.defineProperty(ElementImpl.prototype, "_htmlUppercasedQualifiedName", {
577
- /**
578
- * Returns the upper-cased qualified name for a html element.
579
- */
580
- get: function () {
581
- /**
582
- * 1. Let qualifiedName be context object’s qualified name.
583
- * 2. If the context object is in the HTML namespace and its node document
584
- * is an HTML document, then set qualifiedName to qualifiedName in ASCII
585
- * uppercase.
586
- * 3. Return qualifiedName.
587
- */
588
- var qualifiedName = this._qualifiedName;
589
- if (this._namespace === infra_1.namespace.HTML && this._nodeDocument._type === "html") {
590
- qualifiedName = qualifiedName.toUpperCase();
591
- }
592
- return qualifiedName;
593
- },
594
- enumerable: true,
595
- configurable: true
596
- });
597
- Object.defineProperty(ElementImpl.prototype, "children", {
598
- // MIXIN: ParentNode
599
- /* istanbul ignore next */
600
- get: function () { throw new Error("Mixin: ParentNode not implemented."); },
601
- enumerable: true,
602
- configurable: true
603
- });
604
- Object.defineProperty(ElementImpl.prototype, "firstElementChild", {
605
- /* istanbul ignore next */
606
- get: function () { throw new Error("Mixin: ParentNode not implemented."); },
607
- enumerable: true,
608
- configurable: true
609
- });
610
- Object.defineProperty(ElementImpl.prototype, "lastElementChild", {
611
- /* istanbul ignore next */
612
- get: function () { throw new Error("Mixin: ParentNode not implemented."); },
613
- enumerable: true,
614
- configurable: true
615
- });
616
- Object.defineProperty(ElementImpl.prototype, "childElementCount", {
617
- /* istanbul ignore next */
618
- get: function () { throw new Error("Mixin: ParentNode not implemented."); },
619
- enumerable: true,
620
- configurable: true
621
- });
622
- /* istanbul ignore next */
623
- ElementImpl.prototype.prepend = function () {
624
- var nodes = [];
625
- for (var _i = 0; _i < arguments.length; _i++) {
626
- nodes[_i] = arguments[_i];
478
+ return (this._namespacePrefix ?
479
+ this._namespacePrefix + ':' + this._localName :
480
+ this._localName);
481
+ }
482
+ /**
483
+ * Returns the upper-cased qualified name for a html element.
484
+ */
485
+ get _htmlUppercasedQualifiedName() {
486
+ /**
487
+ * 1. Let qualifiedName be context object’s qualified name.
488
+ * 2. If the context object is in the HTML namespace and its node document
489
+ * is an HTML document, then set qualifiedName to qualifiedName in ASCII
490
+ * uppercase.
491
+ * 3. Return qualifiedName.
492
+ */
493
+ let qualifiedName = this._qualifiedName;
494
+ if (this._namespace === infra_1.namespace.HTML && this._nodeDocument._type === "html") {
495
+ qualifiedName = qualifiedName.toUpperCase();
627
496
  }
628
- throw new Error("Mixin: ParentNode not implemented.");
629
- };
497
+ return qualifiedName;
498
+ }
499
+ // MIXIN: ParentNode
630
500
  /* istanbul ignore next */
631
- ElementImpl.prototype.append = function () {
632
- var nodes = [];
633
- for (var _i = 0; _i < arguments.length; _i++) {
634
- nodes[_i] = arguments[_i];
635
- }
636
- throw new Error("Mixin: ParentNode not implemented.");
637
- };
501
+ get children() { throw new Error("Mixin: ParentNode not implemented."); }
502
+ /* istanbul ignore next */
503
+ get firstElementChild() { throw new Error("Mixin: ParentNode not implemented."); }
638
504
  /* istanbul ignore next */
639
- ElementImpl.prototype.querySelector = function (selectors) { throw new Error("Mixin: ParentNode not implemented."); };
505
+ get lastElementChild() { throw new Error("Mixin: ParentNode not implemented."); }
640
506
  /* istanbul ignore next */
641
- ElementImpl.prototype.querySelectorAll = function (selectors) { throw new Error("Mixin: ParentNode not implemented."); };
642
- Object.defineProperty(ElementImpl.prototype, "previousElementSibling", {
643
- // MIXIN: NonDocumentTypeChildNode
644
- /* istanbul ignore next */
645
- get: function () { throw new Error("Mixin: NonDocumentTypeChildNode not implemented."); },
646
- enumerable: true,
647
- configurable: true
648
- });
649
- Object.defineProperty(ElementImpl.prototype, "nextElementSibling", {
650
- /* istanbul ignore next */
651
- get: function () { throw new Error("Mixin: NonDocumentTypeChildNode not implemented."); },
652
- enumerable: true,
653
- configurable: true
654
- });
507
+ get childElementCount() { throw new Error("Mixin: ParentNode not implemented."); }
508
+ /* istanbul ignore next */
509
+ prepend(...nodes) { throw new Error("Mixin: ParentNode not implemented."); }
510
+ /* istanbul ignore next */
511
+ append(...nodes) { throw new Error("Mixin: ParentNode not implemented."); }
512
+ /* istanbul ignore next */
513
+ querySelector(selectors) { throw new Error("Mixin: ParentNode not implemented."); }
514
+ /* istanbul ignore next */
515
+ querySelectorAll(selectors) { throw new Error("Mixin: ParentNode not implemented."); }
516
+ // MIXIN: NonDocumentTypeChildNode
517
+ /* istanbul ignore next */
518
+ get previousElementSibling() { throw new Error("Mixin: NonDocumentTypeChildNode not implemented."); }
519
+ /* istanbul ignore next */
520
+ get nextElementSibling() { throw new Error("Mixin: NonDocumentTypeChildNode not implemented."); }
655
521
  // MIXIN: ChildNode
656
522
  /* istanbul ignore next */
657
- ElementImpl.prototype.before = function () {
658
- var nodes = [];
659
- for (var _i = 0; _i < arguments.length; _i++) {
660
- nodes[_i] = arguments[_i];
661
- }
662
- throw new Error("Mixin: ChildNode not implemented.");
663
- };
523
+ before(...nodes) { throw new Error("Mixin: ChildNode not implemented."); }
664
524
  /* istanbul ignore next */
665
- ElementImpl.prototype.after = function () {
666
- var nodes = [];
667
- for (var _i = 0; _i < arguments.length; _i++) {
668
- nodes[_i] = arguments[_i];
669
- }
670
- throw new Error("Mixin: ChildNode not implemented.");
671
- };
525
+ after(...nodes) { throw new Error("Mixin: ChildNode not implemented."); }
672
526
  /* istanbul ignore next */
673
- ElementImpl.prototype.replaceWith = function () {
674
- var nodes = [];
675
- for (var _i = 0; _i < arguments.length; _i++) {
676
- nodes[_i] = arguments[_i];
677
- }
678
- throw new Error("Mixin: ChildNode not implemented.");
679
- };
527
+ replaceWith(...nodes) { throw new Error("Mixin: ChildNode not implemented."); }
680
528
  /* istanbul ignore next */
681
- ElementImpl.prototype.remove = function () { throw new Error("Mixin: ChildNode not implemented."); };
682
- Object.defineProperty(ElementImpl.prototype, "assignedSlot", {
683
- // MIXIN: Slotable
684
- /* istanbul ignore next */
685
- get: function () { throw new Error("Mixin: Slotable not implemented."); },
686
- enumerable: true,
687
- configurable: true
688
- });
529
+ remove() { throw new Error("Mixin: ChildNode not implemented."); }
530
+ // MIXIN: Slotable
531
+ /* istanbul ignore next */
532
+ get assignedSlot() { throw new Error("Mixin: Slotable not implemented."); }
689
533
  /**
690
534
  * Creates a new `Element`.
691
535
  *
@@ -694,21 +538,18 @@ var ElementImpl = /** @class */ (function (_super) {
694
538
  * @param namespace - namespace
695
539
  * @param prefix - namespace prefix
696
540
  */
697
- ElementImpl._create = function (document, localName, namespace, namespacePrefix) {
698
- if (namespace === void 0) { namespace = null; }
699
- if (namespacePrefix === void 0) { namespacePrefix = null; }
700
- var node = new ElementImpl();
541
+ static _create(document, localName, namespace = null, namespacePrefix = null) {
542
+ const node = new ElementImpl();
701
543
  node._localName = localName;
702
544
  node._namespace = namespace;
703
545
  node._namespacePrefix = namespacePrefix;
704
546
  node._nodeDocument = document;
705
547
  return node;
706
- };
707
- return ElementImpl;
708
- }(NodeImpl_1.NodeImpl));
548
+ }
549
+ }
709
550
  exports.ElementImpl = ElementImpl;
710
551
  /**
711
552
  * Initialize prototype properties
712
553
  */
713
- WebIDLAlgorithm_1.idl_defineConst(ElementImpl.prototype, "_nodeType", interfaces_1.NodeType.Element);
554
+ (0, WebIDLAlgorithm_1.idl_defineConst)(ElementImpl.prototype, "_nodeType", interfaces_1.NodeType.Element);
714
555
  //# sourceMappingURL=ElementImpl.js.map