buninu-browser 0.0.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 (830) hide show
  1. package/AGENTS.md +13 -0
  2. package/Architecture.md +601 -0
  3. package/LICENSE +21 -0
  4. package/LICENSES/Apache-2.0.txt +202 -0
  5. package/LICENSES/BSD-3-Clause-Skia.txt +29 -0
  6. package/LICENSES/Bitstream-Vera.txt +44 -0
  7. package/LICENSES/CC-BY-4.0.txt +396 -0
  8. package/LICENSES/OFL-1.1.txt +91 -0
  9. package/LICENSES/README.md +9 -0
  10. package/LICENSES/acorn.txt +21 -0
  11. package/LICENSES/chromium.txt +27 -0
  12. package/LICENSES/dropflow.txt +19 -0
  13. package/LICENSES/emscripten.txt +102 -0
  14. package/LICENSES/freetype.txt +169 -0
  15. package/LICENSES/happy-dom.txt +22 -0
  16. package/LICENSES/harfbuzz.txt +42 -0
  17. package/LICENSES/icu.txt +512 -0
  18. package/LICENSES/libjpeg-ijg.txt +260 -0
  19. package/LICENSES/libjpeg-turbo.txt +147 -0
  20. package/LICENSES/libpng.txt +134 -0
  21. package/LICENSES/libwebp.txt +30 -0
  22. package/LICENSES/ses-aura.txt +16 -0
  23. package/LICENSES/ses-caja.txt +13 -0
  24. package/LICENSES/ses-corejs.txt +19 -0
  25. package/LICENSES/ses-v8.txt +9 -0
  26. package/LICENSES/ses.txt +201 -0
  27. package/LICENSES/termdom.txt +21 -0
  28. package/LICENSES/wasmpeg.txt +501 -0
  29. package/LICENSES/woff2.txt +19 -0
  30. package/LICENSES/wuffs.txt +211 -0
  31. package/LICENSES/zlib.txt +22 -0
  32. package/Linux +0 -0
  33. package/PORTING.md +825 -0
  34. package/README.md +283 -0
  35. package/THIRD_PARTY_NOTICES.md +224 -0
  36. package/bunfig.toml +2 -0
  37. package/buninu-browser.js +65 -0
  38. package/index.js +149 -0
  39. package/lib/cdp-server.js +1424 -0
  40. package/lib/cdp.js +203 -0
  41. package/lib/happy-dom/entities-adapter.js +51 -0
  42. package/lib/happy-dom/image-size-adapter.js +8 -0
  43. package/lib/happy-dom/mime-type-adapter.js +27 -0
  44. package/lib/happy-dom/parser.js +53 -0
  45. package/lib/happy-dom/websocket-adapter.js +62 -0
  46. package/lib/headless-shell.js +362 -0
  47. package/lib/input/hit-test.js +78 -0
  48. package/lib/layout/scroll-viewport.js +53 -0
  49. package/lib/layout/text-layout.js +2236 -0
  50. package/lib/log.js +85 -0
  51. package/lib/network/cookie-jar.js +178 -0
  52. package/lib/network/network-service.js +268 -0
  53. package/lib/network/resolver.js +97 -0
  54. package/lib/paint/display-list.js +359 -0
  55. package/lib/paint/frame.js +88 -0
  56. package/lib/paint/gradient.js +207 -0
  57. package/lib/render-tree/index.js +263 -0
  58. package/lib/render-tree/svg.js +210 -0
  59. package/lib/renderer/bindings.js +1291 -0
  60. package/lib/renderer/compositor.js +123 -0
  61. package/lib/renderer/flags.js +20 -0
  62. package/lib/renderer/host.js +503 -0
  63. package/lib/renderer/main.js +234 -0
  64. package/lib/renderer/module-transform.js +399 -0
  65. package/lib/renderer/page-realm.js +1471 -0
  66. package/lib/renderer/page-renderer.js +1691 -0
  67. package/lib/renderer/script-rewrite.js +232 -0
  68. package/lib/renderer/seccomp.js +215 -0
  69. package/lib/renderer/syscall-numbers.js +139 -0
  70. package/lib/style/computed-style.js +2053 -0
  71. package/package.json +39 -0
  72. package/patches/happy-dom/0001-use-bun-entity-adapter.patch +15 -0
  73. package/patches/happy-dom/0002-use-bun-platform-adapters.patch +69 -0
  74. package/patches/happy-dom/README.md +38 -0
  75. package/test/chromium-headless-shell +5 -0
  76. package/test/compositor.test.js +154 -0
  77. package/test/computed-style.test.js +434 -0
  78. package/test/display-list.test.js +128 -0
  79. package/test/entities-adapter.test.js +43 -0
  80. package/test/fixtures/fake-renderer.js +26 -0
  81. package/test/fixtures/seccomp-child.js +32 -0
  82. package/test/fixtures/video.mp4 +0 -0
  83. package/test/flex.test.js +150 -0
  84. package/test/gradient.test.js +56 -0
  85. package/test/grid.test.js +253 -0
  86. package/test/happy-dom-platform-adapters.test.js +18 -0
  87. package/test/headless-shell.test.js +318 -0
  88. package/test/hit-test.test.js +49 -0
  89. package/test/html-parser.test.js +40 -0
  90. package/test/index.test.js +29 -0
  91. package/test/log.test.js +40 -0
  92. package/test/mobile.test.js +85 -0
  93. package/test/network-service.test.js +214 -0
  94. package/test/page-scripts.test.js +552 -0
  95. package/test/poc-backend.js +189 -0
  96. package/test/poc-backend.test.js +154 -0
  97. package/test/positioning.test.js +112 -0
  98. package/test/render-tree.test.js +103 -0
  99. package/test/renderer-host.test.js +69 -0
  100. package/test/resolver.test.js +51 -0
  101. package/test/script-rewrite.test.js +31 -0
  102. package/test/scroll-viewport.test.js +25 -0
  103. package/test/seccomp.test.js +71 -0
  104. package/test/site-isolation.test.js +74 -0
  105. package/test/svg.test.js +61 -0
  106. package/test/text-layout.test.js +419 -0
  107. package/usr/README.md +20 -0
  108. package/usr/lib/canvaskit/LICENSE +29 -0
  109. package/usr/lib/canvaskit/canvaskit.js +264 -0
  110. package/usr/lib/canvaskit/canvaskit.wasm +0 -0
  111. package/usr/share/fonts/DejaVuSansMono-Bold.ttf +0 -0
  112. package/usr/share/fonts/DejaVuSansMono.ttf +0 -0
  113. package/usr/share/fonts/LICENSE-Apache-2.0.txt +202 -0
  114. package/usr/share/fonts/LICENSE-DejaVu.txt +44 -0
  115. package/usr/share/fonts/LICENSE-OFL-1.1.txt +91 -0
  116. package/usr/share/fonts/NotoColorEmoji.ttf +0 -0
  117. package/usr/share/fonts/NotoColorEmojiFlags.ttf +0 -0
  118. package/usr/share/fonts/NotoSansCJK-Regular.ttc +0 -0
  119. package/usr/share/fonts/NotoSansSymbols-Regular-Subsetted.ttf +0 -0
  120. package/usr/share/fonts/NotoSansSymbols-Regular-Subsetted2.ttf +0 -0
  121. package/usr/share/fonts/Roboto-Regular.ttf +0 -0
  122. package/usr/share/fonts/fonts.json +28 -0
  123. package/vendor/acorn/LICENSE +21 -0
  124. package/vendor/acorn/README.md +309 -0
  125. package/vendor/acorn/dist/acorn.mjs +6313 -0
  126. package/vendor/acorn/package.json +50 -0
  127. package/vendor/happy-dom/.editorconfig +8 -0
  128. package/vendor/happy-dom/.eslintignore +6 -0
  129. package/vendor/happy-dom/.eslintrc.cjs +188 -0
  130. package/vendor/happy-dom/.github/CODEOWNERS +2 -0
  131. package/vendor/happy-dom/.github/FUNDING.yml +1 -0
  132. package/vendor/happy-dom/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  133. package/vendor/happy-dom/.github/ISSUE_TEMPLATE/custom.md +10 -0
  134. package/vendor/happy-dom/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
  135. package/vendor/happy-dom/.github/PULL_REQUEST_TEMPLATE.md +27 -0
  136. package/vendor/happy-dom/.github/workflows/auto-assign.yml +23 -0
  137. package/vendor/happy-dom/.github/workflows/pull_request.yml +53 -0
  138. package/vendor/happy-dom/.github/workflows/release.yml +143 -0
  139. package/vendor/happy-dom/.husky/pre-commit +1 -0
  140. package/vendor/happy-dom/.prettierignore +1 -0
  141. package/vendor/happy-dom/.prettierrc.cjs +6 -0
  142. package/vendor/happy-dom/.vscode/extensions.json +3 -0
  143. package/vendor/happy-dom/CODE_OF_CONDUCT.md +128 -0
  144. package/vendor/happy-dom/CONTRIBUTING.md +147 -0
  145. package/vendor/happy-dom/LICENSE +21 -0
  146. package/vendor/happy-dom/README.md +62 -0
  147. package/vendor/happy-dom/SECURITY.md +12 -0
  148. package/vendor/happy-dom/cspell.json +34 -0
  149. package/vendor/happy-dom/docs/happy-dom-logo.jpg +0 -0
  150. package/vendor/happy-dom/integration-test/.editorconfig +8 -0
  151. package/vendor/happy-dom/integration-test/LICENSE +21 -0
  152. package/vendor/happy-dom/integration-test/README.md +1 -0
  153. package/vendor/happy-dom/integration-test/package.json +24 -0
  154. package/vendor/happy-dom/package-lock.json +15520 -0
  155. package/vendor/happy-dom/package.json +55 -0
  156. package/vendor/happy-dom/packages/@happy-dom/global-registrator/LICENSE +21 -0
  157. package/vendor/happy-dom/packages/@happy-dom/global-registrator/README.md +60 -0
  158. package/vendor/happy-dom/packages/@happy-dom/global-registrator/package.json +52 -0
  159. package/vendor/happy-dom/packages/@happy-dom/global-registrator/register.js +2 -0
  160. package/vendor/happy-dom/packages/@happy-dom/global-registrator/src/GlobalRegistrator.ts +121 -0
  161. package/vendor/happy-dom/packages/@happy-dom/global-registrator/src/index.ts +3 -0
  162. package/vendor/happy-dom/packages/@happy-dom/global-registrator/tsconfig.json +30 -0
  163. package/vendor/happy-dom/packages/@happy-dom/jest-environment/LICENSE +21 -0
  164. package/vendor/happy-dom/packages/@happy-dom/jest-environment/README.md +71 -0
  165. package/vendor/happy-dom/packages/@happy-dom/jest-environment/package.json +93 -0
  166. package/vendor/happy-dom/packages/@happy-dom/jest-environment/src/index.ts +192 -0
  167. package/vendor/happy-dom/packages/@happy-dom/jest-environment/tsconfig.json +30 -0
  168. package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/README.md +48 -0
  169. package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/package.json +41 -0
  170. package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/src/CanvasAdapter.ts +275 -0
  171. package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/src/index.ts +1 -0
  172. package/vendor/happy-dom/packages/@happy-dom/server-renderer/LICENSE +21 -0
  173. package/vendor/happy-dom/packages/@happy-dom/server-renderer/README.md +100 -0
  174. package/vendor/happy-dom/packages/@happy-dom/server-renderer/bin/src/happy-dom-sr.ts +30 -0
  175. package/vendor/happy-dom/packages/@happy-dom/server-renderer/package.json +62 -0
  176. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRenderer.ts +368 -0
  177. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererBrowser.ts +142 -0
  178. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererBrowserWorker.ts +29 -0
  179. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererPage.ts +305 -0
  180. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererPageWorker.ts +55 -0
  181. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererServer.ts +332 -0
  182. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/config/DefaultServerRendererConfiguration.ts +47 -0
  183. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/enums/ServerRendererLogLevelEnum.ts +9 -0
  184. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/enums/ServerRendererModeEnum.ts +8 -0
  185. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/index.ts +19 -0
  186. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IOptionalServerRendererConfiguration.ts +127 -0
  187. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IServerRendererConfiguration.ts +126 -0
  188. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IServerRendererItem.ts +6 -0
  189. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IServerRendererResult.ts +11 -0
  190. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/BrowserWindowPolyfill.ts +138 -0
  191. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/HelpPrinter.ts +36 -0
  192. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/HelpPrinterRows.ts +288 -0
  193. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/PackageVersion.ts +12 -0
  194. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/ProcessArgumentsParser.ts +387 -0
  195. package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/ServerRendererConfigurationFactory.ts +91 -0
  196. package/vendor/happy-dom/packages/happy-dom/LICENSE +21 -0
  197. package/vendor/happy-dom/packages/happy-dom/README.md +42 -0
  198. package/vendor/happy-dom/packages/happy-dom/package.json +58 -0
  199. package/vendor/happy-dom/packages/happy-dom/src/PropertySymbol.ts +431 -0
  200. package/vendor/happy-dom/packages/happy-dom/src/animation/Animation.ts +273 -0
  201. package/vendor/happy-dom/packages/happy-dom/src/animation/AnimationTimeline.ts +15 -0
  202. package/vendor/happy-dom/packages/happy-dom/src/animation/DocumentTimeline.ts +33 -0
  203. package/vendor/happy-dom/packages/happy-dom/src/animation/KeyframeEffect.ts +295 -0
  204. package/vendor/happy-dom/packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts +340 -0
  205. package/vendor/happy-dom/packages/happy-dom/src/async-task-manager/AsyncTaskManagerDebugError.ts +14 -0
  206. package/vendor/happy-dom/packages/happy-dom/src/base64/Base64.ts +97 -0
  207. package/vendor/happy-dom/packages/happy-dom/src/browser/Browser.ts +123 -0
  208. package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserContext.ts +100 -0
  209. package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserFrame.ts +232 -0
  210. package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserPage.ts +205 -0
  211. package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserSettingsFactory.ts +96 -0
  212. package/vendor/happy-dom/packages/happy-dom/src/browser/DefaultBrowserSettings.ts +67 -0
  213. package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowser.ts +129 -0
  214. package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowserContext.ts +103 -0
  215. package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowserFrame.ts +250 -0
  216. package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowserPage.ts +218 -0
  217. package/vendor/happy-dom/packages/happy-dom/src/browser/enums/BrowserErrorCaptureEnum.ts +10 -0
  218. package/vendor/happy-dom/packages/happy-dom/src/browser/enums/BrowserNavigationCrossOriginPolicyEnum.ts +10 -0
  219. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowser.ts +51 -0
  220. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserContext.ts +44 -0
  221. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserFrame.ts +112 -0
  222. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserPage.ts +110 -0
  223. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserPageViewport.ts +5 -0
  224. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserSettings.ts +194 -0
  225. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IGoToOptions.ts +17 -0
  226. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IOptionalBrowserPageViewport.ts +5 -0
  227. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IOptionalBrowserSettings.ts +190 -0
  228. package/vendor/happy-dom/packages/happy-dom/src/browser/types/IReloadOptions.ts +27 -0
  229. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserExceptionObserver.ts +123 -0
  230. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameFactory.ts +106 -0
  231. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameNavigator.ts +574 -0
  232. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameScriptEvaluator.ts +71 -0
  233. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameURL.ts +30 -0
  234. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameValidator.ts +84 -0
  235. package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserPageUtility.ts +56 -0
  236. package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasAdapter.ts +63 -0
  237. package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasAdapterCaller.ts +9 -0
  238. package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasGradient.ts +8 -0
  239. package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasPattern.ts +10 -0
  240. package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts +162 -0
  241. package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasShape.ts +7 -0
  242. package/vendor/happy-dom/packages/happy-dom/src/canvas/IImageBitmapOptions.ts +8 -0
  243. package/vendor/happy-dom/packages/happy-dom/src/canvas/ITextMetrics.ts +12 -0
  244. package/vendor/happy-dom/packages/happy-dom/src/canvas/ImageBitmap.ts +162 -0
  245. package/vendor/happy-dom/packages/happy-dom/src/canvas/ImageData.ts +83 -0
  246. package/vendor/happy-dom/packages/happy-dom/src/canvas/OffscreenCanvas.ts +162 -0
  247. package/vendor/happy-dom/packages/happy-dom/src/canvas/TCanvasImage.ts +14 -0
  248. package/vendor/happy-dom/packages/happy-dom/src/canvas/TImageBitmapSource.ts +12 -0
  249. package/vendor/happy-dom/packages/happy-dom/src/clipboard/Clipboard.ts +108 -0
  250. package/vendor/happy-dom/packages/happy-dom/src/clipboard/ClipboardItem.ts +57 -0
  251. package/vendor/happy-dom/packages/happy-dom/src/config/HTMLElementConfig.ts +536 -0
  252. package/vendor/happy-dom/packages/happy-dom/src/config/HTMLElementConfigContentModelEnum.ts +12 -0
  253. package/vendor/happy-dom/packages/happy-dom/src/config/IHTMLElementTagNameMap.ts +181 -0
  254. package/vendor/happy-dom/packages/happy-dom/src/config/ISVGElementTagNameMap.ts +127 -0
  255. package/vendor/happy-dom/packages/happy-dom/src/config/NamespaceURI.ts +8 -0
  256. package/vendor/happy-dom/packages/happy-dom/src/config/SVGElementConfig.ts +70 -0
  257. package/vendor/happy-dom/packages/happy-dom/src/console/IConsole.ts +161 -0
  258. package/vendor/happy-dom/packages/happy-dom/src/console/IVirtualConsoleLogEntry.ts +10 -0
  259. package/vendor/happy-dom/packages/happy-dom/src/console/IVirtualConsoleLogGroup.ts +6 -0
  260. package/vendor/happy-dom/packages/happy-dom/src/console/IVirtualConsolePrinter.ts +58 -0
  261. package/vendor/happy-dom/packages/happy-dom/src/console/VirtualConsole.ts +363 -0
  262. package/vendor/happy-dom/packages/happy-dom/src/console/VirtualConsolePrinter.ts +148 -0
  263. package/vendor/happy-dom/packages/happy-dom/src/console/enums/VirtualConsoleLogLevelEnum.ts +12 -0
  264. package/vendor/happy-dom/packages/happy-dom/src/console/enums/VirtualConsoleLogTypeEnum.ts +29 -0
  265. package/vendor/happy-dom/packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts +100 -0
  266. package/vendor/happy-dom/packages/happy-dom/src/cookie/CookieContainer.ts +91 -0
  267. package/vendor/happy-dom/packages/happy-dom/src/cookie/DefaultCookie.ts +17 -0
  268. package/vendor/happy-dom/packages/happy-dom/src/cookie/ICookie.ts +14 -0
  269. package/vendor/happy-dom/packages/happy-dom/src/cookie/ICookieContainer.ts +33 -0
  270. package/vendor/happy-dom/packages/happy-dom/src/cookie/IOptionalCookie.ts +16 -0
  271. package/vendor/happy-dom/packages/happy-dom/src/cookie/enums/CookieSameSiteEnum.ts +6 -0
  272. package/vendor/happy-dom/packages/happy-dom/src/cookie/urilities/CookieExpireUtility.ts +16 -0
  273. package/vendor/happy-dom/packages/happy-dom/src/cookie/urilities/CookieStringUtility.ts +119 -0
  274. package/vendor/happy-dom/packages/happy-dom/src/cookie/urilities/CookieURLUtility.ts +27 -0
  275. package/vendor/happy-dom/packages/happy-dom/src/cookie-store/CookieStore.ts +226 -0
  276. package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreDeleteOptions.ts +9 -0
  277. package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreGetOptions.ts +7 -0
  278. package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreItem.ts +13 -0
  279. package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreSetOptions.ts +12 -0
  280. package/vendor/happy-dom/packages/happy-dom/src/css/CSS.ts +63 -0
  281. package/vendor/happy-dom/packages/happy-dom/src/css/CSSRule.ts +84 -0
  282. package/vendor/happy-dom/packages/happy-dom/src/css/CSSRuleTypeEnum.ts +18 -0
  283. package/vendor/happy-dom/packages/happy-dom/src/css/CSSStyleSheet.ts +141 -0
  284. package/vendor/happy-dom/packages/happy-dom/src/css/CSSUnitValue.ts +26 -0
  285. package/vendor/happy-dom/packages/happy-dom/src/css/CSSUnits.ts +31 -0
  286. package/vendor/happy-dom/packages/happy-dom/src/css/MediaList.ts +177 -0
  287. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/CSSPropertyList.ts +1273 -0
  288. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts +355 -0
  289. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/ICSSStyleDeclaration.ts +1178 -0
  290. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/CSSComputedStyle.ts +502 -0
  291. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/config/CSSComputedStyleElementDefault.ts +133 -0
  292. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/config/CSSComputedStyleInheritedProperties.ts +39 -0
  293. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/config/CSSComputedStyleMeasurementProperties.ts +41 -0
  294. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/CSSPropertyManager.ts +641 -0
  295. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertyGetParser.ts +741 -0
  296. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts +2955 -0
  297. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/types/ICSSPropertyMap.ts +5 -0
  298. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/types/ICSSPropertyValue.ts +4 -0
  299. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/utilities/CSSStringUtility.ts +90 -0
  300. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts +447 -0
  301. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/utilities/CSSVariableFormatter.ts +76 -0
  302. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/utilities/CSSMeasurementConverter.ts +79 -0
  303. package/vendor/happy-dom/packages/happy-dom/src/css/declaration/utilities/CSSTextParser.ts +44 -0
  304. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSConditionRule.ts +20 -0
  305. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSContainerRule.ts +34 -0
  306. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSFontFaceRule.ts +45 -0
  307. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSGroupingRule.ts +84 -0
  308. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSKeyframeRule.ts +53 -0
  309. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSKeyframesRule.ts +147 -0
  310. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSMediaRule.ts +50 -0
  311. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSScopeRule.ts +53 -0
  312. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSStyleRule.ts +73 -0
  313. package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSSupportsRule.ts +30 -0
  314. package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/CSSKeywordValue.ts +35 -0
  315. package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/CSSStyleValue.ts +37 -0
  316. package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/StylePropertyMap.ts +45 -0
  317. package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/StylePropertyMapReadOnly.ts +128 -0
  318. package/vendor/happy-dom/packages/happy-dom/src/css/utilities/CSSEscaper.ts +87 -0
  319. package/vendor/happy-dom/packages/happy-dom/src/css/utilities/CSSRuleParser.ts +315 -0
  320. package/vendor/happy-dom/packages/happy-dom/src/custom-element/CustomElementReactionStack.ts +91 -0
  321. package/vendor/happy-dom/packages/happy-dom/src/custom-element/CustomElementRegistry.ts +186 -0
  322. package/vendor/happy-dom/packages/happy-dom/src/custom-element/CustomElementUtility.ts +34 -0
  323. package/vendor/happy-dom/packages/happy-dom/src/custom-element/ICustomElementDefinition.ts +16 -0
  324. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMPoint.ts +84 -0
  325. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMPointReadOnly.ts +117 -0
  326. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMRect.ts +92 -0
  327. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMRectList.ts +34 -0
  328. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMRectReadOnly.ts +129 -0
  329. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMStringMap.ts +93 -0
  330. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMStringMapUtility.ts +33 -0
  331. package/vendor/happy-dom/packages/happy-dom/src/dom/DOMTokenList.ts +363 -0
  332. package/vendor/happy-dom/packages/happy-dom/src/dom/IDOMPointInit.ts +6 -0
  333. package/vendor/happy-dom/packages/happy-dom/src/dom/IDOMRectInit.ts +6 -0
  334. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts +526 -0
  335. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts +1608 -0
  336. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/IDOMMatrixCompatibleObject.ts +24 -0
  337. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/IDOMMatrixJSON.ts +26 -0
  338. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/TDOMMatrix2DArray.ts +3 -0
  339. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/TDOMMatrix3DArray.ts +20 -0
  340. package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/TDOMMatrixInit.ts +8 -0
  341. package/vendor/happy-dom/packages/happy-dom/src/dom-implementation/DOMImplementation.ts +81 -0
  342. package/vendor/happy-dom/packages/happy-dom/src/dom-parser/DOMParser.ts +47 -0
  343. package/vendor/happy-dom/packages/happy-dom/src/event/DataTransfer.ts +128 -0
  344. package/vendor/happy-dom/packages/happy-dom/src/event/DataTransferItem.ts +47 -0
  345. package/vendor/happy-dom/packages/happy-dom/src/event/DataTransferItemList.ts +44 -0
  346. package/vendor/happy-dom/packages/happy-dom/src/event/Event.ts +222 -0
  347. package/vendor/happy-dom/packages/happy-dom/src/event/EventPhaseEnum.ts +7 -0
  348. package/vendor/happy-dom/packages/happy-dom/src/event/EventTarget.ts +396 -0
  349. package/vendor/happy-dom/packages/happy-dom/src/event/IEventInit.ts +5 -0
  350. package/vendor/happy-dom/packages/happy-dom/src/event/IEventListenerOptions.ts +10 -0
  351. package/vendor/happy-dom/packages/happy-dom/src/event/ITouchInit.ts +16 -0
  352. package/vendor/happy-dom/packages/happy-dom/src/event/IUIEventInit.ts +7 -0
  353. package/vendor/happy-dom/packages/happy-dom/src/event/MessagePort.ts +32 -0
  354. package/vendor/happy-dom/packages/happy-dom/src/event/TEventListener.ts +4 -0
  355. package/vendor/happy-dom/packages/happy-dom/src/event/TEventListenerFunction.ts +3 -0
  356. package/vendor/happy-dom/packages/happy-dom/src/event/TEventListenerObject.ts +5 -0
  357. package/vendor/happy-dom/packages/happy-dom/src/event/Touch.ts +40 -0
  358. package/vendor/happy-dom/packages/happy-dom/src/event/UIEvent.ts +32 -0
  359. package/vendor/happy-dom/packages/happy-dom/src/event/events/AnimationEvent.ts +25 -0
  360. package/vendor/happy-dom/packages/happy-dom/src/event/events/ClipboardEvent.ts +22 -0
  361. package/vendor/happy-dom/packages/happy-dom/src/event/events/CloseEvent.ts +25 -0
  362. package/vendor/happy-dom/packages/happy-dom/src/event/events/CookieChangeEvent.ts +25 -0
  363. package/vendor/happy-dom/packages/happy-dom/src/event/events/CustomEvent.ts +53 -0
  364. package/vendor/happy-dom/packages/happy-dom/src/event/events/ErrorEvent.ts +29 -0
  365. package/vendor/happy-dom/packages/happy-dom/src/event/events/FocusEvent.ts +22 -0
  366. package/vendor/happy-dom/packages/happy-dom/src/event/events/HashChangeEvent.ts +25 -0
  367. package/vendor/happy-dom/packages/happy-dom/src/event/events/IAnimationEventInit.ts +7 -0
  368. package/vendor/happy-dom/packages/happy-dom/src/event/events/IClipboardEventInit.ts +6 -0
  369. package/vendor/happy-dom/packages/happy-dom/src/event/events/ICloseEventInit.ts +7 -0
  370. package/vendor/happy-dom/packages/happy-dom/src/event/events/ICookieChangeEventInit.ts +10 -0
  371. package/vendor/happy-dom/packages/happy-dom/src/event/events/ICustomEventInit.ts +5 -0
  372. package/vendor/happy-dom/packages/happy-dom/src/event/events/IErrorEventInit.ts +8 -0
  373. package/vendor/happy-dom/packages/happy-dom/src/event/events/IFocusEventInit.ts +6 -0
  374. package/vendor/happy-dom/packages/happy-dom/src/event/events/IHashChangeEventInit.ts +6 -0
  375. package/vendor/happy-dom/packages/happy-dom/src/event/events/IInputEventInit.ts +9 -0
  376. package/vendor/happy-dom/packages/happy-dom/src/event/events/IKeyboardEventInit.ts +23 -0
  377. package/vendor/happy-dom/packages/happy-dom/src/event/events/IMediaQueryListEventInit.ts +6 -0
  378. package/vendor/happy-dom/packages/happy-dom/src/event/events/IMediaQueryListInit.ts +6 -0
  379. package/vendor/happy-dom/packages/happy-dom/src/event/events/IMessageEventInit.ts +11 -0
  380. package/vendor/happy-dom/packages/happy-dom/src/event/events/IMouseEventInit.ts +21 -0
  381. package/vendor/happy-dom/packages/happy-dom/src/event/events/IPointerEventInit.ts +19 -0
  382. package/vendor/happy-dom/packages/happy-dom/src/event/events/IPopStateEventInit.ts +6 -0
  383. package/vendor/happy-dom/packages/happy-dom/src/event/events/IProgressEventInit.ts +7 -0
  384. package/vendor/happy-dom/packages/happy-dom/src/event/events/IStorageEventInit.ts +10 -0
  385. package/vendor/happy-dom/packages/happy-dom/src/event/events/ISubmitEventInit.ts +6 -0
  386. package/vendor/happy-dom/packages/happy-dom/src/event/events/ITouchEventInit.ts +12 -0
  387. package/vendor/happy-dom/packages/happy-dom/src/event/events/IWheelEventInit.ts +8 -0
  388. package/vendor/happy-dom/packages/happy-dom/src/event/events/InputEvent.ts +28 -0
  389. package/vendor/happy-dom/packages/happy-dom/src/event/events/KeyboardEvent.ts +80 -0
  390. package/vendor/happy-dom/packages/happy-dom/src/event/events/MediaQueryListEvent.ts +23 -0
  391. package/vendor/happy-dom/packages/happy-dom/src/event/events/MediaStreamTrackEvent.ts +22 -0
  392. package/vendor/happy-dom/packages/happy-dom/src/event/events/MessageEvent.ts +33 -0
  393. package/vendor/happy-dom/packages/happy-dom/src/event/events/MouseEvent.ts +52 -0
  394. package/vendor/happy-dom/packages/happy-dom/src/event/events/PointerEvent.ts +51 -0
  395. package/vendor/happy-dom/packages/happy-dom/src/event/events/PopStateEvent.ts +23 -0
  396. package/vendor/happy-dom/packages/happy-dom/src/event/events/ProgressEvent.ts +25 -0
  397. package/vendor/happy-dom/packages/happy-dom/src/event/events/StorageEvent.ts +30 -0
  398. package/vendor/happy-dom/packages/happy-dom/src/event/events/SubmitEvent.ts +22 -0
  399. package/vendor/happy-dom/packages/happy-dom/src/event/events/TouchEvent.ts +34 -0
  400. package/vendor/happy-dom/packages/happy-dom/src/event/events/WheelEvent.ts +30 -0
  401. package/vendor/happy-dom/packages/happy-dom/src/exception/DOMException.ts +21 -0
  402. package/vendor/happy-dom/packages/happy-dom/src/exception/DOMExceptionNameEnum.ts +23 -0
  403. package/vendor/happy-dom/packages/happy-dom/src/fetch/AbortController.ts +25 -0
  404. package/vendor/happy-dom/packages/happy-dom/src/fetch/AbortSignal.ts +182 -0
  405. package/vendor/happy-dom/packages/happy-dom/src/fetch/Fetch.ts +1072 -0
  406. package/vendor/happy-dom/packages/happy-dom/src/fetch/Headers.ts +177 -0
  407. package/vendor/happy-dom/packages/happy-dom/src/fetch/ReadableStreamWrapper.ts +30 -0
  408. package/vendor/happy-dom/packages/happy-dom/src/fetch/Request.ts +492 -0
  409. package/vendor/happy-dom/packages/happy-dom/src/fetch/ResourceFetch.ts +190 -0
  410. package/vendor/happy-dom/packages/happy-dom/src/fetch/Response.ts +439 -0
  411. package/vendor/happy-dom/packages/happy-dom/src/fetch/SyncFetch.ts +717 -0
  412. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/ICacheablePreflightRequest.ts +7 -0
  413. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/ICacheablePreflightResponse.ts +7 -0
  414. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/ICachedPreflightResponse.ts +5 -0
  415. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/IPreflightResponseCache.ts +33 -0
  416. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/PreflightResponseCache.ts +94 -0
  417. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/CachedResponseStateEnum.ts +5 -0
  418. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ICacheableRequest.ts +7 -0
  419. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ICacheableResponse.ts +11 -0
  420. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ICachedResponse.ts +40 -0
  421. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/IResponseCache.ts +37 -0
  422. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/IResponseCacheFileSystem.ts +18 -0
  423. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ResponseCache.ts +248 -0
  424. package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ResponseCacheFileSystem.ts +175 -0
  425. package/vendor/happy-dom/packages/happy-dom/src/fetch/certificate/FetchHTTPSCertificate.ts +52 -0
  426. package/vendor/happy-dom/packages/happy-dom/src/fetch/data-uri/DataURIParser.ts +66 -0
  427. package/vendor/happy-dom/packages/happy-dom/src/fetch/multipart/MultipartFormDataParser.ts +174 -0
  428. package/vendor/happy-dom/packages/happy-dom/src/fetch/multipart/MultipartReader.ts +216 -0
  429. package/vendor/happy-dom/packages/happy-dom/src/fetch/preload/PreloadEntry.ts +50 -0
  430. package/vendor/happy-dom/packages/happy-dom/src/fetch/preload/PreloadUtility.ts +33 -0
  431. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IFetchInterceptor.ts +60 -0
  432. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IFetchRequestHeaders.ts +9 -0
  433. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IRequestInit.ts +23 -0
  434. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IResourceFetchResponse.ts +4 -0
  435. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IResponseInit.ts +10 -0
  436. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/ISyncResponse.ts +18 -0
  437. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IVirtualServer.ts +7 -0
  438. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/THeadersInit.ts +3 -0
  439. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestBody.ts +14 -0
  440. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestCredentials.ts +1 -0
  441. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestInfo.ts +4 -0
  442. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestMode.ts +1 -0
  443. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestRedirect.ts +1 -0
  444. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestReferrerPolicy.ts +10 -0
  445. package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TResponseBody.ts +14 -0
  446. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchBodyUtility.ts +284 -0
  447. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchCORSUtility.ts +23 -0
  448. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts +141 -0
  449. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts +259 -0
  450. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts +128 -0
  451. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchResponseHeaderUtility.ts +48 -0
  452. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchResponseRedirectUtility.ts +27 -0
  453. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/SyncFetchScriptBuilder.ts +77 -0
  454. package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/VirtualServerUtility.ts +114 -0
  455. package/vendor/happy-dom/packages/happy-dom/src/file/Blob.ts +163 -0
  456. package/vendor/happy-dom/packages/happy-dom/src/file/File.ts +43 -0
  457. package/vendor/happy-dom/packages/happy-dom/src/file/FileReader.ts +211 -0
  458. package/vendor/happy-dom/packages/happy-dom/src/file/FileReaderEventTypeEnum.ts +9 -0
  459. package/vendor/happy-dom/packages/happy-dom/src/file/FileReaderFormatEnum.ts +7 -0
  460. package/vendor/happy-dom/packages/happy-dom/src/file/FileReaderReadyStateEnum.ts +6 -0
  461. package/vendor/happy-dom/packages/happy-dom/src/form-data/FormData.ts +291 -0
  462. package/vendor/happy-dom/packages/happy-dom/src/history/History.ts +220 -0
  463. package/vendor/happy-dom/packages/happy-dom/src/history/HistoryItemList.ts +72 -0
  464. package/vendor/happy-dom/packages/happy-dom/src/history/HistoryScrollRestorationEnum.ts +5 -0
  465. package/vendor/happy-dom/packages/happy-dom/src/history/IHistoryItem.ts +12 -0
  466. package/vendor/happy-dom/packages/happy-dom/src/html-parser/HTMLParser.ts +920 -0
  467. package/vendor/happy-dom/packages/happy-dom/src/html-serializer/HTMLSerializer.ts +172 -0
  468. package/vendor/happy-dom/packages/happy-dom/src/index.ts +495 -0
  469. package/vendor/happy-dom/packages/happy-dom/src/intersection-observer/IIntersectionObserverInit.ts +16 -0
  470. package/vendor/happy-dom/packages/happy-dom/src/intersection-observer/IntersectionObserver.ts +64 -0
  471. package/vendor/happy-dom/packages/happy-dom/src/intersection-observer/IntersectionObserverEntry.ts +26 -0
  472. package/vendor/happy-dom/packages/happy-dom/src/javascript/IJavaScriptCompiledResult.ts +9 -0
  473. package/vendor/happy-dom/packages/happy-dom/src/javascript/JavaScriptCompiler.ts +381 -0
  474. package/vendor/happy-dom/packages/happy-dom/src/location/Location.ts +319 -0
  475. package/vendor/happy-dom/packages/happy-dom/src/match-media/IMediaQueryRange.ts +5 -0
  476. package/vendor/happy-dom/packages/happy-dom/src/match-media/IMediaQueryRule.ts +4 -0
  477. package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryItem.ts +354 -0
  478. package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryList.ts +133 -0
  479. package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryParser.ts +113 -0
  480. package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryTypeEnum.ts +7 -0
  481. package/vendor/happy-dom/packages/happy-dom/src/module/CSSModule.ts +53 -0
  482. package/vendor/happy-dom/packages/happy-dom/src/module/ECMAScriptModule.ts +194 -0
  483. package/vendor/happy-dom/packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts +961 -0
  484. package/vendor/happy-dom/packages/happy-dom/src/module/JSONModule.ts +58 -0
  485. package/vendor/happy-dom/packages/happy-dom/src/module/ModuleFactory.ts +148 -0
  486. package/vendor/happy-dom/packages/happy-dom/src/module/ModuleURLUtility.ts +199 -0
  487. package/vendor/happy-dom/packages/happy-dom/src/module/UnresolvedModule.ts +81 -0
  488. package/vendor/happy-dom/packages/happy-dom/src/module/enums/ECMAScriptModuleEvaluateStateEnum.ts +7 -0
  489. package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleCachedResult.ts +9 -0
  490. package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleCompiledResult.ts +19 -0
  491. package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleImport.ts +4 -0
  492. package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleInit.ts +10 -0
  493. package/vendor/happy-dom/packages/happy-dom/src/module/types/IModule.ts +20 -0
  494. package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleImportMap.ts +10 -0
  495. package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleImportMapRule.ts +4 -0
  496. package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleImportMapScope.ts +6 -0
  497. package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleInit.ts +12 -0
  498. package/vendor/happy-dom/packages/happy-dom/src/module/types/IResolveNodeModules.ts +8 -0
  499. package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/IMutationListener.ts +7 -0
  500. package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/IMutationObserverInit.ts +14 -0
  501. package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationObserver.ts +175 -0
  502. package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationObserverListener.ts +115 -0
  503. package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationRecord.ts +55 -0
  504. package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationTypeEnum.ts +7 -0
  505. package/vendor/happy-dom/packages/happy-dom/src/navigator/MimeType.ts +35 -0
  506. package/vendor/happy-dom/packages/happy-dom/src/navigator/MimeTypeArray.ts +48 -0
  507. package/vendor/happy-dom/packages/happy-dom/src/navigator/Navigator.ts +247 -0
  508. package/vendor/happy-dom/packages/happy-dom/src/navigator/Plugin.ts +61 -0
  509. package/vendor/happy-dom/packages/happy-dom/src/navigator/PluginArray.ts +58 -0
  510. package/vendor/happy-dom/packages/happy-dom/src/nodes/NodeFactory.ts +38 -0
  511. package/vendor/happy-dom/packages/happy-dom/src/nodes/attr/Attr.ts +119 -0
  512. package/vendor/happy-dom/packages/happy-dom/src/nodes/character-data/CharacterData.ts +218 -0
  513. package/vendor/happy-dom/packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts +68 -0
  514. package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/ChildNodeUtility.ts +100 -0
  515. package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/IChildNode.ts +29 -0
  516. package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/INonDocumentTypeChildNode.ts +7 -0
  517. package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/NonDocumentChildNodeUtility.ts +37 -0
  518. package/vendor/happy-dom/packages/happy-dom/src/nodes/comment/Comment.ts +36 -0
  519. package/vendor/happy-dom/packages/happy-dom/src/nodes/document/Document.ts +2310 -0
  520. package/vendor/happy-dom/packages/happy-dom/src/nodes/document/DocumentReadyStateEnum.ts +6 -0
  521. package/vendor/happy-dom/packages/happy-dom/src/nodes/document/DocumentReadyStateManager.ts +52 -0
  522. package/vendor/happy-dom/packages/happy-dom/src/nodes/document/VisibilityStateEnum.ts +6 -0
  523. package/vendor/happy-dom/packages/happy-dom/src/nodes/document-fragment/DocumentFragment.ts +208 -0
  524. package/vendor/happy-dom/packages/happy-dom/src/nodes/document-type/DocumentType.ts +70 -0
  525. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/Element.ts +1842 -0
  526. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/ElementEventAttributeUtility.ts +96 -0
  527. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/HTMLCollection.ts +228 -0
  528. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/NamedNodeMap.ts +274 -0
  529. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/NamedNodeMapProxyFactory.ts +127 -0
  530. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/THTMLCollectionListener.ts +6 -0
  531. package/vendor/happy-dom/packages/happy-dom/src/nodes/element/TNamedNodeMapListener.ts +3 -0
  532. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-anchor-element/HTMLAnchorElement.ts +439 -0
  533. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-area-element/HTMLAreaElement.ts +426 -0
  534. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-audio-element/Audio.ts +28 -0
  535. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-audio-element/HTMLAudioElement.ts +10 -0
  536. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-base-element/HTMLBaseElement.ts +64 -0
  537. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-body-element/HTMLBodyElement.ts +161 -0
  538. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-br-element/HTMLBRElement.ts +7 -0
  539. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-button-element/HTMLButtonElement.ts +406 -0
  540. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-canvas-element/CanvasCaptureMediaStreamTrack.ts +51 -0
  541. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-canvas-element/HTMLCanvasElement.ts +304 -0
  542. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-d-list-element/HTMLDListElement.ts +7 -0
  543. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-data-element/HTMLDataElement.ts +25 -0
  544. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-data-list-element/HTMLDataListElement.ts +28 -0
  545. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-details-element/HTMLDetailsElement.ts +112 -0
  546. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-dialog-element/HTMLDialogElement.ts +104 -0
  547. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-div-element/HTMLDivElement.ts +7 -0
  548. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-document/HTMLDocument.ts +82 -0
  549. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-element/HTMLElement.ts +1149 -0
  550. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-element/HTMLElementUtility.ts +119 -0
  551. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-embed-element/HTMLEmbedElement.ts +90 -0
  552. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-field-set-element/HTMLFieldSetElement.ts +165 -0
  553. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/HTMLFormControlsCollection.ts +35 -0
  554. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts +675 -0
  555. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/RadioNodeList.ts +25 -0
  556. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/THTMLFormControlElement.ts +16 -0
  557. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-head-element/HTMLHeadElement.ts +7 -0
  558. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-heading-element/HTMLHeadingElement.ts +7 -0
  559. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-hr-element/HTMLHRElement.ts +7 -0
  560. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-html-element/HTMLHtmlElement.ts +7 -0
  561. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts +329 -0
  562. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-hyperlink-element/IHTMLHyperlinkElement.ts +19 -0
  563. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-iframe-element/HTMLIFrameElement.ts +460 -0
  564. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-image-element/HTMLImageElement.ts +500 -0
  565. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-image-element/Image.ts +33 -0
  566. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/FileList.ts +34 -0
  567. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts +1550 -0
  568. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementDateUtility.ts +50 -0
  569. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.ts +6 -0
  570. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementSelectionModeEnum.ts +7 -0
  571. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts +211 -0
  572. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueStepping.ts +92 -0
  573. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-label-element/HTMLLabelElement.ts +128 -0
  574. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-label-element/HTMLLabelElementUtility.ts +45 -0
  575. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-legend-element/HTMLLegendElement.ts +27 -0
  576. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-li-element/HTMLLIElement.ts +31 -0
  577. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-link-element/HTMLLinkElement.ts +501 -0
  578. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-map-element/HTMLMapElement.ts +47 -0
  579. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts +906 -0
  580. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/IMediaTrackCapabilities.ts +21 -0
  581. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/IMediaTrackSettings.ts +5 -0
  582. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/MediaStream.ts +114 -0
  583. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/MediaStreamTrack.ts +182 -0
  584. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/RemotePlayback.ts +47 -0
  585. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrack.ts +156 -0
  586. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackCue.ts +51 -0
  587. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackCueList.ts +37 -0
  588. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackKindEnum.ts +9 -0
  589. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackList.ts +182 -0
  590. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TimeRanges.ts +73 -0
  591. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/VTTCue.ts +80 -0
  592. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/VTTRegion.ts +15 -0
  593. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-menu-element/HTMLMenuElement.ts +7 -0
  594. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-meta-element/HTMLMetaElement.ts +80 -0
  595. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-meter-element/HTMLMeterElement.ts +216 -0
  596. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-mod-element/HTMLModElement.ts +54 -0
  597. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-o-list-element/HTMLOListElement.ts +83 -0
  598. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-object-element/HTMLObjectElement.ts +223 -0
  599. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-opt-group-element/HTMLOptGroupElement.ts +53 -0
  600. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-option-element/HTMLOptionElement.ts +192 -0
  601. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-output-element/HTMLOutputElement.ts +179 -0
  602. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-paragraph-element/HTMLParagraphElement.ts +7 -0
  603. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-param-element/HTMLParamElement.ts +7 -0
  604. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-picture-element/HTMLPictureElement.ts +7 -0
  605. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-pre-element/HTMLPreElement.ts +7 -0
  606. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-progress-element/HTMLProgressElement.ts +100 -0
  607. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-quote-element/HTMLQuoteElement.ts +36 -0
  608. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-script-element/HTMLScriptElement.ts +735 -0
  609. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-select-element/HTMLOptionsCollection.ts +69 -0
  610. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-select-element/HTMLSelectElement.ts +779 -0
  611. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-slot-element/HTMLSlotElement.ts +249 -0
  612. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-source-element/HTMLSourceElement.ts +148 -0
  613. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-span-element/HTMLSpanElement.ts +7 -0
  614. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-style-element/HTMLStyleElement.ts +125 -0
  615. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-caption-element/HTMLTableCaptionElement.ts +7 -0
  616. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-cell-element/HTMLTableCellElement.ts +125 -0
  617. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-col-element/HTMLTableColElement.ts +7 -0
  618. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts +343 -0
  619. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-row-element/HTMLTableRowElement.ts +149 -0
  620. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-section-element/HTMLTableSectionElement.ts +88 -0
  621. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-template-element/HTMLTemplateElement.ts +154 -0
  622. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts +649 -0
  623. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-time-element/HTMLTimeElement.ts +27 -0
  624. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-title-element/HTMLTitleElement.ts +48 -0
  625. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-track-element/HTMLTrackElement.ts +164 -0
  626. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-u-list-element/HTMLUListElement.ts +7 -0
  627. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-unknown-element/HTMLUnknownElement.ts +9 -0
  628. package/vendor/happy-dom/packages/happy-dom/src/nodes/html-video-element/HTMLVideoElement.ts +10 -0
  629. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedComputedStyleResult.ts +6 -0
  630. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedElementByIdResult.ts +6 -0
  631. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedElementByTagNameResult.ts +6 -0
  632. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedElementsByTagNameResult.ts +6 -0
  633. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedMatchesResult.ts +6 -0
  634. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedQuerySelectorAllResult.ts +7 -0
  635. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedQuerySelectorResult.ts +6 -0
  636. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedResult.ts +3 -0
  637. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedStyleResult.ts +6 -0
  638. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/Node.ts +1373 -0
  639. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeDocumentPositionEnum.ts +10 -0
  640. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeList.ts +224 -0
  641. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeTypeEnum.ts +13 -0
  642. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeUtility.ts +330 -0
  643. package/vendor/happy-dom/packages/happy-dom/src/nodes/node/TNodeListListener.ts +1 -0
  644. package/vendor/happy-dom/packages/happy-dom/src/nodes/parent-node/IParentNode.ts +109 -0
  645. package/vendor/happy-dom/packages/happy-dom/src/nodes/parent-node/ParentNodeUtility.ts +334 -0
  646. package/vendor/happy-dom/packages/happy-dom/src/nodes/processing-instruction/ProcessingInstruction.ts +22 -0
  647. package/vendor/happy-dom/packages/happy-dom/src/nodes/shadow-root/ShadowRoot.ts +290 -0
  648. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animate-element/SVGAnimateElement.ts +8 -0
  649. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animate-motion-element/SVGAnimateMotionElement.ts +8 -0
  650. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animate-transform-element/SVGAnimateTransformElement.ts +8 -0
  651. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animation-element/SVGAnimationElement.ts +94 -0
  652. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-circle-element/SVGCircleElement.ts +72 -0
  653. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-clip-path-element/SVGClipPathElement.ts +34 -0
  654. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-component-transfer-function-element/SVGComponentTransferFunctionElement.ts +167 -0
  655. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-defs-element/SVGDefsElement.ts +8 -0
  656. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-desc-element/SVGDescElement.ts +8 -0
  657. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-element/SVGElement.ts +828 -0
  658. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-ellipse-element/SVGEllipseElement.ts +92 -0
  659. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-blend-element/SVGFEBlendElement.ts +192 -0
  660. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-color-matrix-element/SVGFEColorMatrixElement.ts +204 -0
  661. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-component-transfer-element/SVGFEComponentTransferElement.ts +133 -0
  662. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-composite-element/SVGFECompositeElement.ts +186 -0
  663. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-convolve-matrix-element/SVGFEConvolveMatrixElement.ts +366 -0
  664. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-diffuse-lighting-element/SVGFEDiffuseLightingElement.ts +214 -0
  665. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-displacement-map-element/SVGFEDisplacementMapElement.ts +226 -0
  666. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-distant-light-element/SVGFEDistantLightElement.ts +52 -0
  667. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-drop-shadow-element/SVGFEDropShadowElement.ts +227 -0
  668. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-flood-element/SVGFEFloodElement.ts +113 -0
  669. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-a-element/SVGFEFuncAElement.ts +8 -0
  670. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-b-element/SVGFEFuncBElement.ts +8 -0
  671. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-g-element/SVGFEFuncGElement.ts +8 -0
  672. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-r-element/SVGFEFuncRElement.ts +8 -0
  673. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-gaussian-blur-element/SVGFEGaussianBlurElement.ts +214 -0
  674. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-image-element/SVGFEImageElement.ts +173 -0
  675. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-merge-element/SVGFEMergeElement.ts +113 -0
  676. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-merge-node-element/SVGFEMergeNodeElement.ts +32 -0
  677. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-morphology-element/SVGFEMorphologyElement.ts +202 -0
  678. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-offset-element/SVGFEOffsetElement.ts +174 -0
  679. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-point-light-element/SVGFEPointLightElement.ts +72 -0
  680. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-specular-lighting-element/SVGFESpecularLightingElement.ts +237 -0
  681. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-spot-light-element/SVGFESpotLightElement.ts +173 -0
  682. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-tile-element/SVGFETileElement.ts +133 -0
  683. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-turbulence-element/SVGFETurbulenceElement.ts +249 -0
  684. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-filter-element/SVGFilterElement.ts +158 -0
  685. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-foreign-object-element/SVGForeignObjectElement.ts +92 -0
  686. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-g-element/SVGGElement.ts +8 -0
  687. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts +94 -0
  688. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-gradient-element/SVGGradientElement.ts +104 -0
  689. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-graphics-element/SVGGraphicsElement.ts +134 -0
  690. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-image-element/SVGImageElement.ts +188 -0
  691. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-line-element/SVGLineElement.ts +92 -0
  692. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-linear-gradient-element/SVGLinearGradientElement.ts +92 -0
  693. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-m-path-element/SVGMPathElement.ts +32 -0
  694. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-marker-element/SVGMarkerElement.ts +230 -0
  695. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-mask-element/SVGMaskElement.ts +137 -0
  696. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-metadata-element/SVGMetadataElement.ts +8 -0
  697. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-path-element/SVGPathElement.ts +8 -0
  698. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-pattern-element/SVGPatternElement.ts +179 -0
  699. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-polygon-element/SVGPolygonElement.ts +53 -0
  700. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-polyline-element/SVGPolylineElement.ts +53 -0
  701. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-radial-gradient-element/SVGRadialGradientElement.ts +112 -0
  702. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-rect-element/SVGRectElement.ts +132 -0
  703. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-script-element/SVGScriptElement.ts +50 -0
  704. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-set-element/SVGSetElement.ts +8 -0
  705. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-stop-element/SVGStopElement.ts +32 -0
  706. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-style-element/SVGStyleElement.ts +143 -0
  707. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts +601 -0
  708. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-switch-element/SVGSwitchElement.ts +8 -0
  709. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-symbol-element/SVGSymbolElement.ts +8 -0
  710. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-t-span-element/SVGTSpanElement.ts +8 -0
  711. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts +143 -0
  712. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-element/SVGTextElement.ts +8 -0
  713. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-path-element/SVGTextPathElement.ts +106 -0
  714. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-positioning-element/SVGTextPositioningElement.ts +113 -0
  715. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-title-element/SVGTitleElement.ts +8 -0
  716. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-use-element/SVGUseElement.ts +113 -0
  717. package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-view-element/SVGViewElement.ts +8 -0
  718. package/vendor/happy-dom/packages/happy-dom/src/nodes/text/Text.ts +154 -0
  719. package/vendor/happy-dom/packages/happy-dom/src/nodes/xml-document/XMLDocument.ts +10 -0
  720. package/vendor/happy-dom/packages/happy-dom/src/permissions/PermissionNameEnum.ts +32 -0
  721. package/vendor/happy-dom/packages/happy-dom/src/permissions/PermissionStatus.ts +23 -0
  722. package/vendor/happy-dom/packages/happy-dom/src/permissions/Permissions.ts +59 -0
  723. package/vendor/happy-dom/packages/happy-dom/src/query-selector/ISelectorAttribute.ts +7 -0
  724. package/vendor/happy-dom/packages/happy-dom/src/query-selector/ISelectorMatch.ts +3 -0
  725. package/vendor/happy-dom/packages/happy-dom/src/query-selector/ISelectorPseudo.ts +8 -0
  726. package/vendor/happy-dom/packages/happy-dom/src/query-selector/QuerySelector.ts +849 -0
  727. package/vendor/happy-dom/packages/happy-dom/src/query-selector/SelectorCombinatorEnum.ts +9 -0
  728. package/vendor/happy-dom/packages/happy-dom/src/query-selector/SelectorItem.ts +575 -0
  729. package/vendor/happy-dom/packages/happy-dom/src/query-selector/SelectorParser.ts +699 -0
  730. package/vendor/happy-dom/packages/happy-dom/src/query-selector/TGlobalMatchFunction.ts +12 -0
  731. package/vendor/happy-dom/packages/happy-dom/src/range/IRangeBoundaryPoint.ts +9 -0
  732. package/vendor/happy-dom/packages/happy-dom/src/range/Range.ts +1161 -0
  733. package/vendor/happy-dom/packages/happy-dom/src/range/RangeHowEnum.ts +8 -0
  734. package/vendor/happy-dom/packages/happy-dom/src/range/RangeUtility.ts +118 -0
  735. package/vendor/happy-dom/packages/happy-dom/src/resize-observer/ResizeObserver.ts +33 -0
  736. package/vendor/happy-dom/packages/happy-dom/src/screen/Screen.ts +19 -0
  737. package/vendor/happy-dom/packages/happy-dom/src/screen/ScreenDetailed.ts +17 -0
  738. package/vendor/happy-dom/packages/happy-dom/src/screen/ScreenDetails.ts +27 -0
  739. package/vendor/happy-dom/packages/happy-dom/src/selection/Selection.ts +556 -0
  740. package/vendor/happy-dom/packages/happy-dom/src/selection/SelectionDirectionEnum.ts +7 -0
  741. package/vendor/happy-dom/packages/happy-dom/src/storage/Storage.ts +149 -0
  742. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAngle.ts +310 -0
  743. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAngleTypeEnum.ts +9 -0
  744. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedAngle.ts +100 -0
  745. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedBoolean.ts +80 -0
  746. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedEnumeration.ts +119 -0
  747. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedInteger.ts +97 -0
  748. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedLength.ts +100 -0
  749. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedLengthList.ts +101 -0
  750. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedNumber.ts +101 -0
  751. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedNumberList.ts +101 -0
  752. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedPreserveAspectRatio.ts +100 -0
  753. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedRect.ts +100 -0
  754. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedString.ts +83 -0
  755. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedTransformList.ts +101 -0
  756. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGLength.ts +375 -0
  757. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGLengthList.ts +489 -0
  758. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGLengthTypeEnum.ts +15 -0
  759. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGMatrix.ts +429 -0
  760. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGNumber.ts +83 -0
  761. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGNumberList.ts +522 -0
  762. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPoint.ts +114 -0
  763. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPointList.ts +526 -0
  764. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPreserveAspectRatio.ts +176 -0
  765. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPreserveAspectRatioAlignEnum.ts +15 -0
  766. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPreserveAspectRatioMeetOrSliceEnum.ts +7 -0
  767. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGRect.ts +200 -0
  768. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGStringList.ts +422 -0
  769. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGTransform.ts +369 -0
  770. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGTransformList.ts +531 -0
  771. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGTransformTypeEnum.ts +11 -0
  772. package/vendor/happy-dom/packages/happy-dom/src/svg/SVGUnitTypes.ts +26 -0
  773. package/vendor/happy-dom/packages/happy-dom/src/tree-walker/NodeFilter.ts +18 -0
  774. package/vendor/happy-dom/packages/happy-dom/src/tree-walker/NodeFilterMask.ts +28 -0
  775. package/vendor/happy-dom/packages/happy-dom/src/tree-walker/NodeIterator.ts +85 -0
  776. package/vendor/happy-dom/packages/happy-dom/src/tree-walker/TNodeFilter.ts +3 -0
  777. package/vendor/happy-dom/packages/happy-dom/src/tree-walker/TreeWalker.ts +339 -0
  778. package/vendor/happy-dom/packages/happy-dom/src/url/URL.ts +45 -0
  779. package/vendor/happy-dom/packages/happy-dom/src/utilities/AttributeUtility.ts +43 -0
  780. package/vendor/happy-dom/packages/happy-dom/src/utilities/ClassMethodBinder.ts +71 -0
  781. package/vendor/happy-dom/packages/happy-dom/src/utilities/StringUtility.ts +47 -0
  782. package/vendor/happy-dom/packages/happy-dom/src/utilities/XMLEncodeUtility.ts +166 -0
  783. package/vendor/happy-dom/packages/happy-dom/src/validity-state/ValidityState.ts +234 -0
  784. package/vendor/happy-dom/packages/happy-dom/src/version.ts +1 -0
  785. package/vendor/happy-dom/packages/happy-dom/src/web-socket/WebSocket.ts +408 -0
  786. package/vendor/happy-dom/packages/happy-dom/src/web-socket/WebSocketReadyStateEnum.ts +8 -0
  787. package/vendor/happy-dom/packages/happy-dom/src/window/BrowserWindow.ts +3074 -0
  788. package/vendor/happy-dom/packages/happy-dom/src/window/CrossOriginBrowserWindow.ts +152 -0
  789. package/vendor/happy-dom/packages/happy-dom/src/window/DetachedWindowAPI.ts +133 -0
  790. package/vendor/happy-dom/packages/happy-dom/src/window/GlobalWindow.ts +90 -0
  791. package/vendor/happy-dom/packages/happy-dom/src/window/INodeJSGlobal.ts +76 -0
  792. package/vendor/happy-dom/packages/happy-dom/src/window/IOptionalTimerLoopsLimit.ts +4 -0
  793. package/vendor/happy-dom/packages/happy-dom/src/window/IScrollToOptions.ts +5 -0
  794. package/vendor/happy-dom/packages/happy-dom/src/window/ITimerLoopsLimit.ts +4 -0
  795. package/vendor/happy-dom/packages/happy-dom/src/window/VMGlobalPropertyScript.ts +59 -0
  796. package/vendor/happy-dom/packages/happy-dom/src/window/Window.ts +67 -0
  797. package/vendor/happy-dom/packages/happy-dom/src/window/WindowBrowserContext.ts +117 -0
  798. package/vendor/happy-dom/packages/happy-dom/src/window/WindowContextClassExtender.ts +288 -0
  799. package/vendor/happy-dom/packages/happy-dom/src/window/WindowPageOpenUtility.ts +200 -0
  800. package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts +577 -0
  801. package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestEventTarget.ts +88 -0
  802. package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestReadyStateEnum.ts +9 -0
  803. package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestResponseDataParser.ts +70 -0
  804. package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestUpload.ts +6 -0
  805. package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpResponseTypeEnum.ts +9 -0
  806. package/vendor/happy-dom/packages/happy-dom/src/xml-parser/XMLParser.ts +744 -0
  807. package/vendor/happy-dom/packages/happy-dom/src/xml-serializer/XMLSerializer.ts +280 -0
  808. package/vendor/happy-dom/turbo.json +52 -0
  809. package/vendor/ses/LICENSE +201 -0
  810. package/vendor/ses/LICENSE-aura +16 -0
  811. package/vendor/ses/LICENSE-caja +13 -0
  812. package/vendor/ses/LICENSE-corejs +19 -0
  813. package/vendor/ses/LICENSE-v8 +9 -0
  814. package/vendor/ses/README.md +968 -0
  815. package/vendor/ses/dist/ses.mjs +15219 -0
  816. package/vendor/ses/package.json +142 -0
  817. package/vendor/wasmpeg/LICENSE +501 -0
  818. package/vendor/wasmpeg/NOTICE +30 -0
  819. package/vendor/wasmpeg/VENDORING.md +35 -0
  820. package/vendor/wasmpeg/dist/cpu.js +2 -0
  821. package/vendor/wasmpeg/dist/cpu.wasm +0 -0
  822. package/vendor/wasmpeg/package.json +45 -0
  823. package/vendor/wasmpeg/source-v1.0.1.tar.gz +0 -0
  824. package/vendor/wasmpeg/src/js/exec.mjs +478 -0
  825. package/vendor/wasmpeg/src/js/ffmpeg.js +94 -0
  826. package/vendor/wasmpeg/src/js/formats.js +84 -0
  827. package/vendor/wasmpeg/src/js/gpu.js +480 -0
  828. package/vendor/wasmpeg/src/js/index.d.ts +154 -0
  829. package/vendor/wasmpeg/src/js/index.js +7 -0
  830. package/vendor/wasmpeg/src/js/wasmpeg.mjs +221 -0
@@ -0,0 +1,1149 @@
1
+ import Element from '../element/Element.js';
2
+ import * as PropertySymbol from '../../PropertySymbol.js';
3
+ import CSSStyleDeclaration from '../../css/declaration/CSSStyleDeclaration.js';
4
+ import PointerEvent from '../../event/events/PointerEvent.js';
5
+ import NodeTypeEnum from '../node/NodeTypeEnum.js';
6
+ import type Event from '../../event/Event.js';
7
+ import HTMLElementUtility from './HTMLElementUtility.js';
8
+ import DOMStringMap from '../../dom/DOMStringMap.js';
9
+ import type Attr from '../attr/Attr.js';
10
+ import ElementEventAttributeUtility from '../element/ElementEventAttributeUtility.js';
11
+
12
+ /**
13
+ * HTML Element.
14
+ *
15
+ * Reference:
16
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.
17
+ */
18
+ export default class HTMLElement extends Element {
19
+ // Public properties
20
+ public declare cloneNode: (deep?: boolean) => HTMLElement;
21
+ public static observedAttributes?: string[];
22
+
23
+ // Internal properties
24
+ public declare [PropertySymbol.accessKey]: string;
25
+ public declare [PropertySymbol.offsetHeight]: number;
26
+ public declare [PropertySymbol.offsetWidth]: number;
27
+ public declare [PropertySymbol.offsetLeft]: number;
28
+ public declare [PropertySymbol.offsetTop]: number;
29
+ public declare [PropertySymbol.clientHeight]: number;
30
+ public declare [PropertySymbol.clientWidth]: number;
31
+ public declare [PropertySymbol.clientLeft]: number;
32
+ public declare [PropertySymbol.clientTop]: number;
33
+ public declare [PropertySymbol.style]: CSSStyleDeclaration | null;
34
+ public declare [PropertySymbol.dataset]: DOMStringMap | null;
35
+ public declare [PropertySymbol.customElementDefineCallback]: (() => void) | null;
36
+
37
+ /**
38
+ * Constructor.
39
+ */
40
+ constructor() {
41
+ super();
42
+
43
+ // When upgrading a custom element in-place, constructor() returns the existing
44
+ // element. This propagates through the entire super() chain so the custom element's
45
+ // constructor runs with `this` = the existing element (same mechanism real browsers use)
46
+ //
47
+ // It's also important to not initialize properties
48
+ if ((<typeof HTMLElement>this.constructor)[PropertySymbol.customElementUpgradeTarget]) {
49
+ return <HTMLElement>(
50
+ (<typeof HTMLElement>this.constructor)[PropertySymbol.customElementUpgradeTarget]
51
+ );
52
+ }
53
+
54
+ this[PropertySymbol.accessKey] = '';
55
+ this[PropertySymbol.offsetHeight] = 0;
56
+ this[PropertySymbol.offsetWidth] = 0;
57
+ this[PropertySymbol.offsetLeft] = 0;
58
+ this[PropertySymbol.offsetTop] = 0;
59
+ this[PropertySymbol.clientHeight] = 0;
60
+ this[PropertySymbol.clientWidth] = 0;
61
+ this[PropertySymbol.clientLeft] = 0;
62
+ this[PropertySymbol.clientTop] = 0;
63
+ this[PropertySymbol.style] = null;
64
+ this[PropertySymbol.dataset] = null;
65
+ this[PropertySymbol.customElementDefineCallback] = null;
66
+ }
67
+
68
+ // Events
69
+
70
+ /* eslint-disable jsdoc/require-jsdoc */
71
+
72
+ public get oncancel(): ((event: Event) => void) | null {
73
+ return ElementEventAttributeUtility.getEventListener(this, 'oncancel');
74
+ }
75
+
76
+ public set oncancel(value: ((event: Event) => void) | null) {
77
+ this[PropertySymbol.propertyEventListeners].set('oncancel', value);
78
+ }
79
+
80
+ public get onerror(): ((event: Event) => void) | null {
81
+ return ElementEventAttributeUtility.getEventListener(this, 'onerror');
82
+ }
83
+
84
+ public set onerror(value: ((event: Event) => void) | null) {
85
+ this[PropertySymbol.propertyEventListeners].set('onerror', value);
86
+ }
87
+
88
+ public get onscroll(): ((event: Event) => void) | null {
89
+ return ElementEventAttributeUtility.getEventListener(this, 'onscroll');
90
+ }
91
+
92
+ public set onscroll(value: ((event: Event) => void) | null) {
93
+ this[PropertySymbol.propertyEventListeners].set('onscroll', value);
94
+ }
95
+
96
+ public get onselect(): ((event: Event) => void) | null {
97
+ return ElementEventAttributeUtility.getEventListener(this, 'onselect');
98
+ }
99
+
100
+ public set onselect(value: ((event: Event) => void) | null) {
101
+ this[PropertySymbol.propertyEventListeners].set('onselect', value);
102
+ }
103
+
104
+ public get onwheel(): ((event: Event) => void) | null {
105
+ return ElementEventAttributeUtility.getEventListener(this, 'onwheel');
106
+ }
107
+
108
+ public set onwheel(value: ((event: Event) => void) | null) {
109
+ this[PropertySymbol.propertyEventListeners].set('onwheel', value);
110
+ }
111
+
112
+ public get oncopy(): ((event: Event) => void) | null {
113
+ return ElementEventAttributeUtility.getEventListener(this, 'oncopy');
114
+ }
115
+
116
+ public set oncopy(value: ((event: Event) => void) | null) {
117
+ this[PropertySymbol.propertyEventListeners].set('oncopy', value);
118
+ }
119
+
120
+ public get oncut(): ((event: Event) => void) | null {
121
+ return ElementEventAttributeUtility.getEventListener(this, 'oncut');
122
+ }
123
+
124
+ public set oncut(value: ((event: Event) => void) | null) {
125
+ this[PropertySymbol.propertyEventListeners].set('oncut', value);
126
+ }
127
+
128
+ public get onpaste(): ((event: Event) => void) | null {
129
+ return ElementEventAttributeUtility.getEventListener(this, 'onpaste');
130
+ }
131
+
132
+ public set onpaste(value: ((event: Event) => void) | null) {
133
+ this[PropertySymbol.propertyEventListeners].set('onpaste', value);
134
+ }
135
+
136
+ public get oncompositionend(): ((event: Event) => void) | null {
137
+ return ElementEventAttributeUtility.getEventListener(this, 'oncompositionend');
138
+ }
139
+
140
+ public set oncompositionend(value: ((event: Event) => void) | null) {
141
+ this[PropertySymbol.propertyEventListeners].set('oncompositionend', value);
142
+ }
143
+
144
+ public get oncompositionstart(): ((event: Event) => void) | null {
145
+ return ElementEventAttributeUtility.getEventListener(this, 'oncompositionstart');
146
+ }
147
+
148
+ public set oncompositionstart(value: ((event: Event) => void) | null) {
149
+ this[PropertySymbol.propertyEventListeners].set('oncompositionstart', value);
150
+ }
151
+
152
+ public get oncompositionupdate(): ((event: Event) => void) | null {
153
+ return ElementEventAttributeUtility.getEventListener(this, 'oncompositionupdate');
154
+ }
155
+
156
+ public set oncompositionupdate(value: ((event: Event) => void) | null) {
157
+ this[PropertySymbol.propertyEventListeners].set('oncompositionupdate', value);
158
+ }
159
+
160
+ public get onblur(): ((event: Event) => void) | null {
161
+ return ElementEventAttributeUtility.getEventListener(this, 'onblur');
162
+ }
163
+
164
+ public set onblur(value: ((event: Event) => void) | null) {
165
+ this[PropertySymbol.propertyEventListeners].set('onblur', value);
166
+ }
167
+
168
+ public get onfocus(): ((event: Event) => void) | null {
169
+ return ElementEventAttributeUtility.getEventListener(this, 'onfocus');
170
+ }
171
+
172
+ public set onfocus(value: ((event: Event) => void) | null) {
173
+ this[PropertySymbol.propertyEventListeners].set('onfocus', value);
174
+ }
175
+
176
+ public get onfocusin(): ((event: Event) => void) | null {
177
+ return ElementEventAttributeUtility.getEventListener(this, 'onfocusin');
178
+ }
179
+
180
+ public set onfocusin(value: ((event: Event) => void) | null) {
181
+ this[PropertySymbol.propertyEventListeners].set('onfocusin', value);
182
+ }
183
+
184
+ public get onfocusout(): ((event: Event) => void) | null {
185
+ return ElementEventAttributeUtility.getEventListener(this, 'onfocusout');
186
+ }
187
+
188
+ public set onfocusout(value: ((event: Event) => void) | null) {
189
+ this[PropertySymbol.propertyEventListeners].set('onfocusout', value);
190
+ }
191
+
192
+ public get onkeydown(): ((event: Event) => void) | null {
193
+ return ElementEventAttributeUtility.getEventListener(this, 'onkeydown');
194
+ }
195
+
196
+ public set onkeydown(value: ((event: Event) => void) | null) {
197
+ this[PropertySymbol.propertyEventListeners].set('onkeydown', value);
198
+ }
199
+
200
+ public get onkeyup(): ((event: Event) => void) | null {
201
+ return ElementEventAttributeUtility.getEventListener(this, 'onkeyup');
202
+ }
203
+
204
+ public set onkeyup(value: ((event: Event) => void) | null) {
205
+ this[PropertySymbol.propertyEventListeners].set('onkeyup', value);
206
+ }
207
+
208
+ public get onauxclick(): ((event: Event) => void) | null {
209
+ return ElementEventAttributeUtility.getEventListener(this, 'onauxclick');
210
+ }
211
+
212
+ public set onauxclick(value: ((event: Event) => void) | null) {
213
+ this[PropertySymbol.propertyEventListeners].set('onauxclick', value);
214
+ }
215
+
216
+ public get onclick(): ((event: Event) => void) | null {
217
+ return ElementEventAttributeUtility.getEventListener(this, 'onclick');
218
+ }
219
+
220
+ public set onclick(value: ((event: Event) => void) | null) {
221
+ this[PropertySymbol.propertyEventListeners].set('onclick', value);
222
+ }
223
+
224
+ public get oncontextmenu(): ((event: Event) => void) | null {
225
+ return ElementEventAttributeUtility.getEventListener(this, 'oncontextmenu');
226
+ }
227
+
228
+ public set oncontextmenu(value: ((event: Event) => void) | null) {
229
+ this[PropertySymbol.propertyEventListeners].set('oncontextmenu', value);
230
+ }
231
+
232
+ public get ondblclick(): ((event: Event) => void) | null {
233
+ return ElementEventAttributeUtility.getEventListener(this, 'ondblclick');
234
+ }
235
+
236
+ public set ondblclick(value: ((event: Event) => void) | null) {
237
+ this[PropertySymbol.propertyEventListeners].set('ondblclick', value);
238
+ }
239
+
240
+ public get onmousedown(): ((event: Event) => void) | null {
241
+ return ElementEventAttributeUtility.getEventListener(this, 'onmousedown');
242
+ }
243
+
244
+ public set onmousedown(value: ((event: Event) => void) | null) {
245
+ this[PropertySymbol.propertyEventListeners].set('onmousedown', value);
246
+ }
247
+
248
+ public get onmouseenter(): ((event: Event) => void) | null {
249
+ return ElementEventAttributeUtility.getEventListener(this, 'onmouseenter');
250
+ }
251
+
252
+ public set onmouseenter(value: ((event: Event) => void) | null) {
253
+ this[PropertySymbol.propertyEventListeners].set('onmouseenter', value);
254
+ }
255
+
256
+ public get onmouseleave(): ((event: Event) => void) | null {
257
+ return ElementEventAttributeUtility.getEventListener(this, 'onmouseleave');
258
+ }
259
+
260
+ public set onmouseleave(value: ((event: Event) => void) | null) {
261
+ this[PropertySymbol.propertyEventListeners].set('onmouseleave', value);
262
+ }
263
+
264
+ public get onmousemove(): ((event: Event) => void) | null {
265
+ return ElementEventAttributeUtility.getEventListener(this, 'onmousemove');
266
+ }
267
+
268
+ public set onmousemove(value: ((event: Event) => void) | null) {
269
+ this[PropertySymbol.propertyEventListeners].set('onmousemove', value);
270
+ }
271
+
272
+ public get onmouseout(): ((event: Event) => void) | null {
273
+ return ElementEventAttributeUtility.getEventListener(this, 'onmouseout');
274
+ }
275
+
276
+ public set onmouseout(value: ((event: Event) => void) | null) {
277
+ this[PropertySymbol.propertyEventListeners].set('onmouseout', value);
278
+ }
279
+
280
+ public get onmouseover(): ((event: Event) => void) | null {
281
+ return ElementEventAttributeUtility.getEventListener(this, 'onmouseover');
282
+ }
283
+
284
+ public set onmouseover(value: ((event: Event) => void) | null) {
285
+ this[PropertySymbol.propertyEventListeners].set('onmouseover', value);
286
+ }
287
+
288
+ public get onmouseup(): ((event: Event) => void) | null {
289
+ return ElementEventAttributeUtility.getEventListener(this, 'onmouseup');
290
+ }
291
+
292
+ public set onmouseup(value: ((event: Event) => void) | null) {
293
+ this[PropertySymbol.propertyEventListeners].set('onmouseup', value);
294
+ }
295
+
296
+ public get ontouchcancel(): ((event: Event) => void) | null {
297
+ return ElementEventAttributeUtility.getEventListener(this, 'ontouchcancel');
298
+ }
299
+
300
+ public set ontouchcancel(value: ((event: Event) => void) | null) {
301
+ this[PropertySymbol.propertyEventListeners].set('ontouchcancel', value);
302
+ }
303
+
304
+ public get ontouchend(): ((event: Event) => void) | null {
305
+ return ElementEventAttributeUtility.getEventListener(this, 'ontouchend');
306
+ }
307
+
308
+ public set ontouchend(value: ((event: Event) => void) | null) {
309
+ this[PropertySymbol.propertyEventListeners].set('ontouchend', value);
310
+ }
311
+
312
+ public get ontouchmove(): ((event: Event) => void) | null {
313
+ return ElementEventAttributeUtility.getEventListener(this, 'ontouchmove');
314
+ }
315
+
316
+ public set ontouchmove(value: ((event: Event) => void) | null) {
317
+ this[PropertySymbol.propertyEventListeners].set('ontouchmove', value);
318
+ }
319
+
320
+ public get ontouchstart(): ((event: Event) => void) | null {
321
+ return ElementEventAttributeUtility.getEventListener(this, 'ontouchstart');
322
+ }
323
+
324
+ public set ontouchstart(value: ((event: Event) => void) | null) {
325
+ this[PropertySymbol.propertyEventListeners].set('ontouchstart', value);
326
+ }
327
+
328
+ public get oninvalid(): ((event: Event) => void) | null {
329
+ return ElementEventAttributeUtility.getEventListener(this, 'oninvalid');
330
+ }
331
+
332
+ public set oninvalid(value: ((event: Event) => void) | null) {
333
+ this[PropertySymbol.propertyEventListeners].set('oninvalid', value);
334
+ }
335
+
336
+ public get onanimationcancel(): ((event: Event) => void) | null {
337
+ return ElementEventAttributeUtility.getEventListener(this, 'onanimationcancel');
338
+ }
339
+
340
+ public set onanimationcancel(value: ((event: Event) => void) | null) {
341
+ this[PropertySymbol.propertyEventListeners].set('onanimationcancel', value);
342
+ }
343
+
344
+ public get onanimationend(): ((event: Event) => void) | null {
345
+ return ElementEventAttributeUtility.getEventListener(this, 'onanimationend');
346
+ }
347
+
348
+ public set onanimationend(value: ((event: Event) => void) | null) {
349
+ this[PropertySymbol.propertyEventListeners].set('onanimationend', value);
350
+ }
351
+
352
+ public get onanimationiteration(): ((event: Event) => void) | null {
353
+ return ElementEventAttributeUtility.getEventListener(this, 'onanimationiteration');
354
+ }
355
+
356
+ public set onanimationiteration(value: ((event: Event) => void) | null) {
357
+ this[PropertySymbol.propertyEventListeners].set('onanimationiteration', value);
358
+ }
359
+
360
+ public get onanimationstart(): ((event: Event) => void) | null {
361
+ return ElementEventAttributeUtility.getEventListener(this, 'onanimationstart');
362
+ }
363
+
364
+ public set onanimationstart(value: ((event: Event) => void) | null) {
365
+ this[PropertySymbol.propertyEventListeners].set('onanimationstart', value);
366
+ }
367
+
368
+ public get onbeforeinput(): ((event: Event) => void) | null {
369
+ return ElementEventAttributeUtility.getEventListener(this, 'onbeforeinput');
370
+ }
371
+
372
+ public set onbeforeinput(value: ((event: Event) => void) | null) {
373
+ this[PropertySymbol.propertyEventListeners].set('onbeforeinput', value);
374
+ }
375
+
376
+ public get oninput(): ((event: Event) => void) | null {
377
+ return ElementEventAttributeUtility.getEventListener(this, 'oninput');
378
+ }
379
+
380
+ public set oninput(value: ((event: Event) => void) | null) {
381
+ this[PropertySymbol.propertyEventListeners].set('oninput', value);
382
+ }
383
+
384
+ public get onchange(): ((event: Event) => void) | null {
385
+ return ElementEventAttributeUtility.getEventListener(this, 'onchange');
386
+ }
387
+
388
+ public set onchange(value: ((event: Event) => void) | null) {
389
+ this[PropertySymbol.propertyEventListeners].set('onchange', value);
390
+ }
391
+
392
+ public get ongotpointercapture(): ((event: Event) => void) | null {
393
+ return ElementEventAttributeUtility.getEventListener(this, 'ongotpointercapture');
394
+ }
395
+
396
+ public set ongotpointercapture(value: ((event: Event) => void) | null) {
397
+ this[PropertySymbol.propertyEventListeners].set('ongotpointercapture', value);
398
+ }
399
+
400
+ public get onlostpointercapture(): ((event: Event) => void) | null {
401
+ return ElementEventAttributeUtility.getEventListener(this, 'onlostpointercapture');
402
+ }
403
+
404
+ public set onlostpointercapture(value: ((event: Event) => void) | null) {
405
+ this[PropertySymbol.propertyEventListeners].set('onlostpointercapture', value);
406
+ }
407
+
408
+ public get onpointercancel(): ((event: Event) => void) | null {
409
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointercancel');
410
+ }
411
+
412
+ public set onpointercancel(value: ((event: Event) => void) | null) {
413
+ this[PropertySymbol.propertyEventListeners].set('onpointercancel', value);
414
+ }
415
+
416
+ public get onpointerdown(): ((event: Event) => void) | null {
417
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointerdown');
418
+ }
419
+
420
+ public set onpointerdown(value: ((event: Event) => void) | null) {
421
+ this[PropertySymbol.propertyEventListeners].set('onpointerdown', value);
422
+ }
423
+
424
+ public get onpointerenter(): ((event: Event) => void) | null {
425
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointerenter');
426
+ }
427
+
428
+ public set onpointerenter(value: ((event: Event) => void) | null) {
429
+ this[PropertySymbol.propertyEventListeners].set('onpointerenter', value);
430
+ }
431
+
432
+ public get onpointerleave(): ((event: Event) => void) | null {
433
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointerleave');
434
+ }
435
+
436
+ public set onpointerleave(value: ((event: Event) => void) | null) {
437
+ this[PropertySymbol.propertyEventListeners].set('onpointerleave', value);
438
+ }
439
+
440
+ public get onpointermove(): ((event: Event) => void) | null {
441
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointermove');
442
+ }
443
+
444
+ public set onpointermove(value: ((event: Event) => void) | null) {
445
+ this[PropertySymbol.propertyEventListeners].set('onpointermove', value);
446
+ }
447
+
448
+ public get onpointerout(): ((event: Event) => void) | null {
449
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointerout');
450
+ }
451
+
452
+ public set onpointerout(value: ((event: Event) => void) | null) {
453
+ this[PropertySymbol.propertyEventListeners].set('onpointerout', value);
454
+ }
455
+
456
+ public get onpointerover(): ((event: Event) => void) | null {
457
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointerover');
458
+ }
459
+
460
+ public set onpointerover(value: ((event: Event) => void) | null) {
461
+ this[PropertySymbol.propertyEventListeners].set('onpointerover', value);
462
+ }
463
+
464
+ public get onpointerup(): ((event: Event) => void) | null {
465
+ return ElementEventAttributeUtility.getEventListener(this, 'onpointerup');
466
+ }
467
+
468
+ public set onpointerup(value: ((event: Event) => void) | null) {
469
+ this[PropertySymbol.propertyEventListeners].set('onpointerup', value);
470
+ }
471
+
472
+ public get ontransitioncancel(): ((event: Event) => void) | null {
473
+ return ElementEventAttributeUtility.getEventListener(this, 'ontransitioncancel');
474
+ }
475
+
476
+ public set ontransitioncancel(value: ((event: Event) => void) | null) {
477
+ this[PropertySymbol.propertyEventListeners].set('ontransitioncancel', value);
478
+ }
479
+
480
+ public get ontransitionend(): ((event: Event) => void) | null {
481
+ return ElementEventAttributeUtility.getEventListener(this, 'ontransitionend');
482
+ }
483
+
484
+ public set ontransitionend(value: ((event: Event) => void) | null) {
485
+ this[PropertySymbol.propertyEventListeners].set('ontransitionend', value);
486
+ }
487
+
488
+ public get ontransitionrun(): ((event: Event) => void) | null {
489
+ return ElementEventAttributeUtility.getEventListener(this, 'ontransitionrun');
490
+ }
491
+
492
+ public set ontransitionrun(value: ((event: Event) => void) | null) {
493
+ this[PropertySymbol.propertyEventListeners].set('ontransitionrun', value);
494
+ }
495
+
496
+ public get ontransitionstart(): ((event: Event) => void) | null {
497
+ return ElementEventAttributeUtility.getEventListener(this, 'ontransitionstart');
498
+ }
499
+
500
+ public set ontransitionstart(value: ((event: Event) => void) | null) {
501
+ this[PropertySymbol.propertyEventListeners].set('ontransitionstart', value);
502
+ }
503
+
504
+ /* eslint-enable jsdoc/require-jsdoc */
505
+
506
+ /**
507
+ * Returns access key.
508
+ *
509
+ * @returns Access key.
510
+ */
511
+ public get accessKey(): string {
512
+ return this[PropertySymbol.accessKey];
513
+ }
514
+
515
+ /**
516
+ * Sets access key.
517
+ *
518
+ * @param accessKey Access key.
519
+ */
520
+ public set accessKey(accessKey: string) {
521
+ this[PropertySymbol.accessKey] = accessKey;
522
+ }
523
+
524
+ /**
525
+ * Returns content editable.
526
+ *
527
+ * @returns Content editable.
528
+ */
529
+ public get contentEditable(): string {
530
+ const contentEditable = String(this.getAttribute('contentEditable')).toLowerCase();
531
+
532
+ switch (contentEditable) {
533
+ case 'false':
534
+ case 'true':
535
+ case 'plaintext-only':
536
+ return contentEditable;
537
+ default:
538
+ return 'inherit';
539
+ }
540
+ }
541
+
542
+ /**
543
+ * Sets content editable.
544
+ *
545
+ * @param contentEditable Content editable.
546
+ */
547
+ public set contentEditable(contentEditable: string) {
548
+ contentEditable = String(contentEditable).toLowerCase();
549
+
550
+ switch (contentEditable) {
551
+ case 'false':
552
+ case 'true':
553
+ case 'plaintext-only':
554
+ case 'inherit':
555
+ this.setAttribute('contentEditable', contentEditable);
556
+ break;
557
+ default:
558
+ throw new this[PropertySymbol.window].SyntaxError(
559
+ `Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${contentEditable}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`
560
+ );
561
+ }
562
+ }
563
+
564
+ /**
565
+ * Returns is content editable.
566
+ *
567
+ * @returns Is content editable.
568
+ */
569
+ public get isContentEditable(): boolean {
570
+ const contentEditable = this.contentEditable;
571
+
572
+ if (contentEditable === 'true' || contentEditable === 'plaintext-only') {
573
+ return true;
574
+ }
575
+
576
+ if (contentEditable === 'inherit') {
577
+ return (<HTMLElement>this[PropertySymbol.parentNode])?.isContentEditable ?? false;
578
+ }
579
+
580
+ return false;
581
+ }
582
+
583
+ /**
584
+ * Returns offset height.
585
+ *
586
+ * @returns Offset height.
587
+ */
588
+ public get offsetHeight(): number {
589
+ return this[PropertySymbol.offsetHeight];
590
+ }
591
+
592
+ /**
593
+ * Returns offset width.
594
+ *
595
+ * @returns Offset width.
596
+ */
597
+ public get offsetWidth(): number {
598
+ return this[PropertySymbol.offsetWidth];
599
+ }
600
+
601
+ /**
602
+ * Returns offset left.
603
+ *
604
+ * @returns Offset left.
605
+ */
606
+ public get offsetLeft(): number {
607
+ return this[PropertySymbol.offsetLeft];
608
+ }
609
+
610
+ /**
611
+ * Returns offset top.
612
+ *
613
+ * @returns Offset top.
614
+ */
615
+ public get offsetTop(): number {
616
+ return this[PropertySymbol.offsetTop];
617
+ }
618
+
619
+ /**
620
+ * Returns client height.
621
+ *
622
+ * @returns Client height.
623
+ */
624
+ public get clientHeight(): number {
625
+ return this[PropertySymbol.clientHeight];
626
+ }
627
+
628
+ /**
629
+ * Returns client width.
630
+ *
631
+ * @returns Client width.
632
+ */
633
+ public get clientWidth(): number {
634
+ return this[PropertySymbol.clientWidth];
635
+ }
636
+
637
+ /**
638
+ * Returns client left.
639
+ *
640
+ * @returns Client left.
641
+ */
642
+ public get clientLeft(): number {
643
+ return this[PropertySymbol.clientLeft];
644
+ }
645
+
646
+ /**
647
+ * Returns client top.
648
+ *
649
+ * @returns Client top.
650
+ */
651
+ public get clientTop(): number {
652
+ return this[PropertySymbol.clientTop];
653
+ }
654
+
655
+ /**
656
+ * Returns tab index.
657
+ *
658
+ * @returns Tab index.
659
+ */
660
+ public get tabIndex(): number {
661
+ const tabIndex = this.getAttribute('tabindex');
662
+ if (tabIndex !== null) {
663
+ const parsed = Number(tabIndex);
664
+ return isNaN(parsed) ? -1 : parsed;
665
+ }
666
+ return -1;
667
+ }
668
+
669
+ /**
670
+ * Returns tab index.
671
+ *
672
+ * @param tabIndex Tab index.
673
+ */
674
+ public set tabIndex(tabIndex: number) {
675
+ const parsed = Number(tabIndex);
676
+ if (isNaN(parsed)) {
677
+ this.setAttribute('tabindex', '0');
678
+ } else {
679
+ this.setAttribute('tabindex', String(parsed));
680
+ }
681
+ }
682
+
683
+ /**
684
+ * Returns inner text, which is the rendered appearance of text.
685
+ *
686
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute
687
+ * @returns Inner text.
688
+ */
689
+ public get innerText(): string {
690
+ if (!this[PropertySymbol.isConnected]) {
691
+ return this.textContent;
692
+ }
693
+
694
+ let result = '';
695
+
696
+ for (const childNode of this[PropertySymbol.nodeArray]) {
697
+ if (childNode[PropertySymbol.nodeType] === NodeTypeEnum.elementNode) {
698
+ const childElement = <HTMLElement>childNode;
699
+ const computedStyle = this[PropertySymbol.window].getComputedStyle(childElement);
700
+
701
+ if (
702
+ childElement[PropertySymbol.tagName] !== 'SCRIPT' &&
703
+ childElement[PropertySymbol.tagName] !== 'STYLE' &&
704
+ childElement[PropertySymbol.tagName] !== 'svg'
705
+ ) {
706
+ const display = computedStyle.display;
707
+ if (display !== 'none') {
708
+ const textTransform = computedStyle.textTransform;
709
+ const innerText = childElement.innerText;
710
+
711
+ // Only add newline if it's a block/flex element and there's more content coming after
712
+ if ((display === 'block' || display === 'flex') && result && innerText) {
713
+ result += '\n';
714
+ }
715
+
716
+ let text = innerText;
717
+
718
+ switch (textTransform) {
719
+ case 'uppercase':
720
+ text = text.toUpperCase();
721
+ break;
722
+ case 'lowercase':
723
+ text = text.toLowerCase();
724
+ break;
725
+ case 'capitalize':
726
+ text = text.replace(/(^|\s)\S/g, (l) => l.toUpperCase());
727
+ break;
728
+ }
729
+
730
+ result += text;
731
+ }
732
+ }
733
+ } else if (childNode[PropertySymbol.nodeType] === NodeTypeEnum.textNode) {
734
+ result += childNode.textContent.replace(/[\n\r]/, '');
735
+ }
736
+ }
737
+
738
+ return result;
739
+ }
740
+
741
+ /**
742
+ * Sets the inner text, which is the rendered appearance of text.
743
+ *
744
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute
745
+ * @param innerText Inner text.
746
+ */
747
+ public set innerText(text: string) {
748
+ const childNodes = this[PropertySymbol.nodeArray];
749
+
750
+ while (childNodes.length) {
751
+ this.removeChild(childNodes[0]);
752
+ }
753
+
754
+ const texts = text.split(/[\n\r]/);
755
+ const ownerDocument = this[PropertySymbol.ownerDocument];
756
+
757
+ for (let i = 0, max = texts.length; i < max; i++) {
758
+ if (i !== 0) {
759
+ this.appendChild(ownerDocument.createElement('br'));
760
+ }
761
+ this.appendChild(ownerDocument.createTextNode(texts[i]));
762
+ }
763
+ }
764
+
765
+ /**
766
+ * Returns outer text.
767
+ *
768
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute
769
+ * @returns HTML.
770
+ */
771
+ public get outerText(): string {
772
+ return this.innerText;
773
+ }
774
+
775
+ /**
776
+ * Sets outer text.
777
+ *
778
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute
779
+ * @param text Text.
780
+ */
781
+ public set outerText(text: string) {
782
+ if (!this[PropertySymbol.parentNode]) {
783
+ throw new this[PropertySymbol.window].DOMException(
784
+ "Failed to set the 'outerHTML' property on 'Element': This element has no parent node."
785
+ );
786
+ }
787
+
788
+ const texts = text.split(/[\n\r]/);
789
+
790
+ for (let i = 0, max = texts.length; i < max; i++) {
791
+ if (i !== 0) {
792
+ this[PropertySymbol.parentNode].insertBefore(
793
+ this[PropertySymbol.ownerDocument].createElement('br'),
794
+ this
795
+ );
796
+ }
797
+ this[PropertySymbol.parentNode].insertBefore(
798
+ this[PropertySymbol.ownerDocument].createTextNode(texts[i]),
799
+ this
800
+ );
801
+ }
802
+
803
+ this[PropertySymbol.parentNode].removeChild(this);
804
+ }
805
+
806
+ /**
807
+ * Returns style.
808
+ *
809
+ * @returns Style.
810
+ */
811
+ public get style(): CSSStyleDeclaration {
812
+ if (!this[PropertySymbol.style]) {
813
+ this[PropertySymbol.style] = new CSSStyleDeclaration(
814
+ PropertySymbol.illegalConstructor,
815
+ this[PropertySymbol.window],
816
+ { element: this }
817
+ );
818
+ }
819
+ return this[PropertySymbol.style];
820
+ }
821
+
822
+ /**
823
+ * Sets style.
824
+ *
825
+ * @param cssText Style as text.
826
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style#setting_styles
827
+ */
828
+ public set style(cssText: string | CSSStyleDeclaration | null) {
829
+ this.style.cssText = typeof cssText === 'string' ? <string>cssText : '';
830
+ }
831
+
832
+ /**
833
+ * Returns data set.
834
+ *
835
+ * @returns Data set.
836
+ */
837
+ public get dataset(): DOMStringMap {
838
+ return (this[PropertySymbol.dataset] ??= new DOMStringMap(
839
+ PropertySymbol.illegalConstructor,
840
+ this
841
+ ));
842
+ }
843
+
844
+ /**
845
+ * Returns direction.
846
+ *
847
+ * @returns Direction.
848
+ */
849
+ public get dir(): string {
850
+ return this.getAttribute('dir') || '';
851
+ }
852
+
853
+ /**
854
+ * Returns direction.
855
+ *
856
+ * @param direction Direction.
857
+ */
858
+ public set dir(direction: string) {
859
+ this.setAttribute('dir', direction);
860
+ }
861
+
862
+ /**
863
+ * Returns hidden.
864
+ *
865
+ * @returns Hidden.
866
+ */
867
+ public get hidden(): boolean {
868
+ return this.getAttribute('hidden') !== null;
869
+ }
870
+
871
+ /**
872
+ * Returns hidden.
873
+ *
874
+ * @param hidden Hidden.
875
+ */
876
+ public set hidden(hidden: boolean) {
877
+ if (!hidden) {
878
+ this.removeAttribute('hidden');
879
+ } else {
880
+ this.setAttribute('hidden', '');
881
+ }
882
+ }
883
+
884
+ /**
885
+ * Returns inert.
886
+ *
887
+ * @returns Inert.
888
+ */
889
+ public get inert(): boolean {
890
+ return this.getAttribute('inert') !== null;
891
+ }
892
+
893
+ /**
894
+ * Returns inert.
895
+ *
896
+ * @param inert Inert.
897
+ */
898
+ public set inert(inert: boolean) {
899
+ if (!inert) {
900
+ this.removeAttribute('inert');
901
+ } else {
902
+ this.setAttribute('inert', '');
903
+ }
904
+ }
905
+
906
+ /**
907
+ * Returns language.
908
+ *
909
+ * @returns Language.
910
+ */
911
+ public get lang(): string {
912
+ return this.getAttribute('lang') || '';
913
+ }
914
+
915
+ /**
916
+ * Returns language.
917
+ *
918
+ * @param language Language.
919
+ */
920
+ public set lang(lang: string) {
921
+ this.setAttribute('lang', lang);
922
+ }
923
+
924
+ /**
925
+ * Returns title.
926
+ *
927
+ * @returns Title.
928
+ */
929
+ public get title(): string {
930
+ return this.getAttribute('title') || '';
931
+ }
932
+
933
+ /**
934
+ * Returns title.
935
+ *
936
+ * @param title Title.
937
+ */
938
+ public set title(title: string) {
939
+ this.setAttribute('title', title);
940
+ }
941
+
942
+ /**
943
+ * Returns popover.
944
+ *
945
+ * @returns Popover.
946
+ */
947
+ public get popover(): string | null {
948
+ const value = this.getAttribute('popover');
949
+ switch (value) {
950
+ case null:
951
+ return null;
952
+ case '':
953
+ case 'auto':
954
+ return 'auto';
955
+ case 'manual':
956
+ return 'manual';
957
+ default:
958
+ return 'manual';
959
+ }
960
+ }
961
+
962
+ /**
963
+ * Sets popover.
964
+ *
965
+ * @param value Value.
966
+ */
967
+ public set popover(value: string | null) {
968
+ if (value === null) {
969
+ this.removeAttribute('popover');
970
+ return;
971
+ }
972
+ this.setAttribute('popover', value);
973
+ }
974
+
975
+ /**
976
+ * Triggers a click event.
977
+ */
978
+ public click(): void {
979
+ this.dispatchEvent(
980
+ new PointerEvent('click', {
981
+ bubbles: true,
982
+ composed: true,
983
+ cancelable: true
984
+ })
985
+ );
986
+ }
987
+
988
+ /**
989
+ * Triggers a blur event.
990
+ */
991
+ public blur(): void {
992
+ HTMLElementUtility.blur(this);
993
+ }
994
+
995
+ /**
996
+ * Triggers a focus event.
997
+ */
998
+ public focus(): void {
999
+ HTMLElementUtility.focus(this);
1000
+ }
1001
+
1002
+ /**
1003
+ * @override
1004
+ */
1005
+ public override [PropertySymbol.cloneNode](deep = false): HTMLElement {
1006
+ const clone = <HTMLElement>super[PropertySymbol.cloneNode](deep);
1007
+
1008
+ clone[PropertySymbol.accessKey] = this[PropertySymbol.accessKey];
1009
+
1010
+ return clone;
1011
+ }
1012
+
1013
+ /**
1014
+ * @override
1015
+ * @see https://html.spec.whatwg.org/multipage/dom.html#htmlelement
1016
+ */
1017
+ public override [PropertySymbol.connectedToDocument](): void {
1018
+ const window = this[PropertySymbol.window];
1019
+ const localName = this[PropertySymbol.localName]!;
1020
+ const allCallbacks = window.customElements[PropertySymbol.callbacks];
1021
+
1022
+ // This element can potentially be a custom element that has not been defined yet
1023
+ // Therefore we need to register a callback for when it is defined in CustomElementRegistry and replace it with the registered element (see #404)
1024
+ if (this.constructor === window.HTMLElement && localName.includes('-') && allCallbacks) {
1025
+ if (window.customElements.get(localName)) {
1026
+ this[PropertySymbol.onCustomElementConnected]();
1027
+ } else if (!this[PropertySymbol.customElementDefineCallback]) {
1028
+ const callback = this[PropertySymbol.onCustomElementConnected].bind(this);
1029
+ const callbacks = allCallbacks.get(localName);
1030
+ if (callbacks) {
1031
+ callbacks.unshift(callback);
1032
+ } else {
1033
+ allCallbacks.set(localName, [callback]);
1034
+ }
1035
+ this[PropertySymbol.customElementDefineCallback] = callback;
1036
+ }
1037
+ }
1038
+
1039
+ super[PropertySymbol.connectedToDocument]();
1040
+ }
1041
+
1042
+ /**
1043
+ * @override
1044
+ */
1045
+ public override [PropertySymbol.disconnectedFromDocument](): void {
1046
+ const window = this[PropertySymbol.window];
1047
+ const localName = this[PropertySymbol.localName]!;
1048
+ const allCallbacks = window.customElements[PropertySymbol.callbacks];
1049
+
1050
+ // This element can potentially be a custom element that has not been defined yet
1051
+ // Therefore we need to register a callback for when it is defined in CustomElementRegistry and replace it with the registered element (see #404)
1052
+ if (this.constructor === window.HTMLElement && localName.includes('-') && allCallbacks) {
1053
+ const callbacks = allCallbacks.get(localName);
1054
+
1055
+ if (callbacks && this[PropertySymbol.customElementDefineCallback]) {
1056
+ const index = callbacks.indexOf(this[PropertySymbol.customElementDefineCallback]);
1057
+ if (index !== -1) {
1058
+ callbacks.splice(index, 1);
1059
+ }
1060
+ if (!callbacks.length) {
1061
+ allCallbacks.delete(localName);
1062
+ }
1063
+ this[PropertySymbol.customElementDefineCallback] = null;
1064
+ }
1065
+ }
1066
+
1067
+ super[PropertySymbol.disconnectedFromDocument]();
1068
+ }
1069
+
1070
+ /**
1071
+ * @override
1072
+ */
1073
+ public override [PropertySymbol.onSetAttribute](
1074
+ attribute: Attr,
1075
+ replacedAttribute: Attr | null
1076
+ ): void {
1077
+ super[PropertySymbol.onSetAttribute](attribute, replacedAttribute);
1078
+
1079
+ this[PropertySymbol.window][PropertySymbol.customElementReactionStack].enqueueReaction(
1080
+ this,
1081
+ 'attributeChangedCallback',
1082
+ [attribute.name, replacedAttribute?.value ?? null, attribute.value]
1083
+ );
1084
+ }
1085
+
1086
+ /**
1087
+ * @override
1088
+ */
1089
+ public override [PropertySymbol.onRemoveAttribute](removedAttribute: Attr): void {
1090
+ super[PropertySymbol.onRemoveAttribute](removedAttribute);
1091
+
1092
+ this[PropertySymbol.window][PropertySymbol.customElementReactionStack].enqueueReaction(
1093
+ this,
1094
+ 'attributeChangedCallback',
1095
+ [removedAttribute.name, removedAttribute.value, null]
1096
+ );
1097
+ }
1098
+
1099
+ /**
1100
+ * @override
1101
+ */
1102
+ public override [PropertySymbol.destroy](): void {
1103
+ super[PropertySymbol.destroy]();
1104
+
1105
+ this[PropertySymbol.style] = null;
1106
+ this[PropertySymbol.dataset] = null;
1107
+ }
1108
+
1109
+ /**
1110
+ * Triggered when a custom element is connected to the DOM.
1111
+ */
1112
+ public [PropertySymbol.onCustomElementConnected](): void {
1113
+ if (!this[PropertySymbol.parentNode]) {
1114
+ return;
1115
+ }
1116
+
1117
+ const window = this[PropertySymbol.window];
1118
+ const localName = this[PropertySymbol.localName]!;
1119
+ const definition = window.customElements[PropertySymbol.registry]?.get(localName);
1120
+
1121
+ if (!definition) {
1122
+ return;
1123
+ }
1124
+
1125
+ // Upgrade in place, mirroring the browser upgrade algorithm (HTML spec §4.13.5):
1126
+ //
1127
+ // Change the prototype so the element IS the registered class
1128
+ Object.setPrototypeOf(this, definition.elementClass.prototype);
1129
+
1130
+ // NodeFactory.upgradeTarget causes Element.constructor() to return this element
1131
+ definition.elementClass[PropertySymbol.customElementUpgradeTarget] = this;
1132
+
1133
+ // Call the constructor of the custom element class, which will run with `this` set to the existing element when super() is called
1134
+ try {
1135
+ new definition.elementClass();
1136
+ } finally {
1137
+ definition.elementClass[PropertySymbol.customElementUpgradeTarget] = null;
1138
+ }
1139
+
1140
+ this[PropertySymbol.customElementDefineCallback] = null;
1141
+
1142
+ if (this[PropertySymbol.isConnected]) {
1143
+ if (this[PropertySymbol.shadowRoot]) {
1144
+ this[PropertySymbol.shadowRoot][PropertySymbol.isConnected] = true;
1145
+ }
1146
+ this[PropertySymbol.connectedToDocument]();
1147
+ }
1148
+ }
1149
+ }