chrome-devtools-frontend 1.0.1040857 → 1.0.1070764

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 (998) hide show
  1. package/AUTHORS +4 -1
  2. package/README.md +4 -10
  3. package/config/gni/devtools_grd_files.gni +41 -24
  4. package/config/gni/devtools_image_files.gni +4 -0
  5. package/docs/README.md +81 -0
  6. package/{ARCHITECTURE.md → docs/architecture_of_devtools.md} +5 -6
  7. package/docs/{images/architecture-lazy-loading-features.png → architecture_of_devtools_lazy_loading_features.png} +0 -0
  8. package/docs/{images/module-visibility-rules.png → architecture_of_devtools_module_visibility_rules.png} +0 -0
  9. package/docs/design_guidelines.md +3 -1
  10. package/docs/{images/DevToolsDesignGuidelines.png → design_guidelines.png} +0 -0
  11. package/docs/l10n.md +293 -0
  12. package/docs/navbar.md +13 -0
  13. package/docs/third_party_guidelines.md +78 -0
  14. package/docs/workflows.md +6 -1
  15. package/extension-api/ExtensionAPI.d.ts +1 -0
  16. package/front_end/Images/src/edit-icon.svg +3 -0
  17. package/front_end/Images/src/frame-embedded-icon.svg +61 -0
  18. package/front_end/Images/src/frame-icon.svg +54 -0
  19. package/front_end/Images/src/trash_bin_material_icon.svg +1 -0
  20. package/front_end/Images/src/triangle-expanded.svg +1 -1
  21. package/front_end/Tests.js +0 -25
  22. package/front_end/core/common/ResourceType.ts +7 -1
  23. package/front_end/core/common/Revealer.ts +3 -0
  24. package/front_end/core/common/common.ts +2 -0
  25. package/front_end/core/dom_extension/DOMExtension.ts +1 -138
  26. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
  27. package/front_end/core/host/ResourceLoader.ts +15 -5
  28. package/front_end/core/host/UserMetrics.ts +43 -10
  29. package/front_end/core/i18n/locales/af.json +194 -110
  30. package/front_end/core/i18n/locales/am.json +205 -121
  31. package/front_end/core/i18n/locales/ar.json +196 -112
  32. package/front_end/core/i18n/locales/as.json +195 -111
  33. package/front_end/core/i18n/locales/az.json +196 -112
  34. package/front_end/core/i18n/locales/be.json +193 -109
  35. package/front_end/core/i18n/locales/bg.json +193 -109
  36. package/front_end/core/i18n/locales/bn.json +197 -113
  37. package/front_end/core/i18n/locales/bs.json +194 -110
  38. package/front_end/core/i18n/locales/ca.json +197 -113
  39. package/front_end/core/i18n/locales/cs.json +192 -108
  40. package/front_end/core/i18n/locales/cy.json +193 -109
  41. package/front_end/core/i18n/locales/da.json +194 -110
  42. package/front_end/core/i18n/locales/de.json +199 -115
  43. package/front_end/core/i18n/locales/el.json +191 -107
  44. package/front_end/core/i18n/locales/en-GB.json +193 -109
  45. package/front_end/core/i18n/locales/en-US.json +313 -229
  46. package/front_end/core/i18n/locales/en-XL.json +313 -229
  47. package/front_end/core/i18n/locales/es-419.json +195 -111
  48. package/front_end/core/i18n/locales/es.json +192 -108
  49. package/front_end/core/i18n/locales/et.json +195 -111
  50. package/front_end/core/i18n/locales/eu.json +197 -113
  51. package/front_end/core/i18n/locales/fa.json +243 -159
  52. package/front_end/core/i18n/locales/fi.json +192 -108
  53. package/front_end/core/i18n/locales/fil.json +193 -109
  54. package/front_end/core/i18n/locales/fr-CA.json +198 -114
  55. package/front_end/core/i18n/locales/fr.json +220 -136
  56. package/front_end/core/i18n/locales/gl.json +196 -112
  57. package/front_end/core/i18n/locales/gu.json +196 -112
  58. package/front_end/core/i18n/locales/he.json +201 -117
  59. package/front_end/core/i18n/locales/hi.json +200 -116
  60. package/front_end/core/i18n/locales/hr.json +192 -108
  61. package/front_end/core/i18n/locales/hu.json +195 -111
  62. package/front_end/core/i18n/locales/hy.json +193 -109
  63. package/front_end/core/i18n/locales/id.json +198 -114
  64. package/front_end/core/i18n/locales/is.json +193 -109
  65. package/front_end/core/i18n/locales/it.json +194 -110
  66. package/front_end/core/i18n/locales/ja.json +192 -108
  67. package/front_end/core/i18n/locales/ka.json +194 -110
  68. package/front_end/core/i18n/locales/kk.json +194 -110
  69. package/front_end/core/i18n/locales/km.json +196 -112
  70. package/front_end/core/i18n/locales/kn.json +193 -109
  71. package/front_end/core/i18n/locales/ko.json +196 -112
  72. package/front_end/core/i18n/locales/ky.json +196 -112
  73. package/front_end/core/i18n/locales/lo.json +196 -112
  74. package/front_end/core/i18n/locales/lt.json +192 -108
  75. package/front_end/core/i18n/locales/lv.json +194 -110
  76. package/front_end/core/i18n/locales/mk.json +194 -110
  77. package/front_end/core/i18n/locales/ml.json +194 -110
  78. package/front_end/core/i18n/locales/mn.json +194 -110
  79. package/front_end/core/i18n/locales/mr.json +193 -109
  80. package/front_end/core/i18n/locales/ms.json +193 -109
  81. package/front_end/core/i18n/locales/my.json +198 -114
  82. package/front_end/core/i18n/locales/ne.json +197 -113
  83. package/front_end/core/i18n/locales/nl.json +193 -109
  84. package/front_end/core/i18n/locales/no.json +195 -111
  85. package/front_end/core/i18n/locales/or.json +197 -113
  86. package/front_end/core/i18n/locales/pa.json +195 -111
  87. package/front_end/core/i18n/locales/pl.json +195 -111
  88. package/front_end/core/i18n/locales/pt-PT.json +195 -111
  89. package/front_end/core/i18n/locales/pt.json +194 -110
  90. package/front_end/core/i18n/locales/ro.json +189 -105
  91. package/front_end/core/i18n/locales/ru.json +191 -107
  92. package/front_end/core/i18n/locales/si.json +194 -110
  93. package/front_end/core/i18n/locales/sk.json +192 -108
  94. package/front_end/core/i18n/locales/sl.json +193 -109
  95. package/front_end/core/i18n/locales/sq.json +193 -109
  96. package/front_end/core/i18n/locales/sr-Latn.json +192 -108
  97. package/front_end/core/i18n/locales/sr.json +192 -108
  98. package/front_end/core/i18n/locales/sv.json +191 -107
  99. package/front_end/core/i18n/locales/sw.json +195 -111
  100. package/front_end/core/i18n/locales/ta.json +193 -109
  101. package/front_end/core/i18n/locales/te.json +198 -114
  102. package/front_end/core/i18n/locales/th.json +194 -110
  103. package/front_end/core/i18n/locales/tr.json +192 -108
  104. package/front_end/core/i18n/locales/uk.json +192 -108
  105. package/front_end/core/i18n/locales/ur.json +194 -110
  106. package/front_end/core/i18n/locales/uz.json +190 -106
  107. package/front_end/core/i18n/locales/vi.json +195 -111
  108. package/front_end/core/i18n/locales/zh-HK.json +193 -109
  109. package/front_end/core/i18n/locales/zh-TW.json +195 -111
  110. package/front_end/core/i18n/locales/zh.json +194 -110
  111. package/front_end/core/i18n/locales/zu.json +193 -109
  112. package/front_end/core/platform/dom-utilities.ts +107 -0
  113. package/front_end/core/platform/keyboard-utilities.ts +8 -0
  114. package/front_end/core/platform/string-utilities.ts +10 -0
  115. package/front_end/core/root/Runtime.ts +0 -2
  116. package/front_end/core/sdk/CPUProfileDataModel.ts +11 -4
  117. package/front_end/core/sdk/CPUThrottlingManager.ts +1 -1
  118. package/front_end/core/sdk/CSSMatchedStyles.ts +11 -12
  119. package/front_end/core/sdk/ChildTargetManager.ts +1 -1
  120. package/front_end/core/sdk/ConsoleModel.ts +3 -3
  121. package/front_end/core/sdk/DOMModel.ts +0 -1
  122. package/front_end/core/sdk/DebuggerModel.ts +4 -36
  123. package/front_end/core/sdk/FrameManager.ts +12 -33
  124. package/front_end/core/sdk/NetworkManager.ts +50 -16
  125. package/front_end/core/sdk/NetworkRequest.ts +49 -0
  126. package/front_end/core/sdk/ProfileTreeModel.ts +19 -6
  127. package/front_end/core/sdk/ResourceTreeModel.ts +31 -32
  128. package/front_end/core/sdk/RuntimeModel.ts +1 -1
  129. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -8
  130. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +3 -0
  131. package/front_end/core/sdk/SourceMap.ts +14 -8
  132. package/front_end/core/sdk/SourceMapManager.ts +8 -6
  133. package/front_end/core/sdk/Target.ts +3 -3
  134. package/front_end/core/sdk/TargetManager.ts +12 -1
  135. package/front_end/core/sdk/sdk-legacy.ts +3 -0
  136. package/front_end/core/sdk/sdk-meta.ts +21 -0
  137. package/front_end/devtools_compatibility.js +17 -13
  138. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -3
  139. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -53
  140. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +1 -0
  141. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +0 -9
  142. package/front_end/entrypoints/formatter_worker/formatter_worker.ts +0 -4
  143. package/front_end/entrypoints/inspector_main/InspectorMain.ts +5 -3
  144. package/front_end/entrypoints/js_app/js_app.ts +1 -0
  145. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +17 -9
  146. package/front_end/entrypoints/main/ExecutionContextSelector.ts +1 -1
  147. package/front_end/entrypoints/main/MainImpl.ts +31 -38
  148. package/front_end/entrypoints/main/main-meta.ts +0 -2
  149. package/front_end/entrypoints/node_app/node_app.ts +2 -1
  150. package/front_end/entrypoints/shell/shell.ts +1 -2
  151. package/front_end/generated/ARIAProperties.js +8 -0
  152. package/front_end/generated/InspectorBackendCommands.js +32 -23
  153. package/front_end/generated/SupportedCSSProperties.js +97 -48
  154. package/front_end/generated/protocol-mapping.d.ts +67 -34
  155. package/front_end/generated/protocol-proxy-api.d.ts +52 -29
  156. package/front_end/generated/protocol.ts +344 -89
  157. package/front_end/legacy/legacy-defs.d.ts +1 -3
  158. package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -1
  159. package/front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js +10 -18
  160. package/front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js +3 -3
  161. package/front_end/legacy_test_runner/test_runner/TestRunner.js +24 -0
  162. package/front_end/legacy_test_runner/test_runner/test_runner.js +15 -13
  163. package/front_end/models/bindings/BreakpointManager.ts +38 -21
  164. package/front_end/models/bindings/CSSWorkspaceBinding.ts +19 -18
  165. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +4 -0
  166. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +32 -37
  167. package/front_end/models/bindings/FileUtils.ts +3 -3
  168. package/front_end/models/bindings/IgnoreListManager.ts +14 -3
  169. package/front_end/models/bindings/ResourceMapping.ts +5 -28
  170. package/front_end/models/bindings/ResourceScriptMapping.ts +2 -13
  171. package/front_end/models/bindings/ResourceUtils.ts +1 -2
  172. package/front_end/models/emulation/DeviceModeModel.ts +0 -14
  173. package/front_end/models/extensions/ExtensionAPI.ts +22 -5
  174. package/front_end/models/extensions/ExtensionServer.ts +31 -14
  175. package/front_end/models/formatter/FormatterWorkerPool.ts +0 -31
  176. package/front_end/models/har/HARFormat.ts +68 -5
  177. package/front_end/models/har/Importer.ts +3 -5
  178. package/front_end/models/har/Log.ts +3 -0
  179. package/front_end/models/issues_manager/AttributionReportingIssue.ts +24 -1
  180. package/front_end/models/issues_manager/DeprecationIssue.ts +112 -32
  181. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +0 -10
  182. package/front_end/models/issues_manager/IssuesManager.ts +3 -12
  183. package/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +5 -6
  184. package/front_end/models/issues_manager/descriptions/arPermissionPolicyNotDelegated.md +11 -0
  185. package/front_end/models/javascript_metadata/NativeFunctions.js +121 -97
  186. package/front_end/models/logs/NetworkLog.ts +11 -11
  187. package/front_end/models/persistence/IsolatedFileSystemManager.ts +5 -1
  188. package/front_end/models/persistence/NetworkPersistenceManager.ts +13 -5
  189. package/front_end/models/persistence/PersistenceImpl.ts +2 -1
  190. package/front_end/models/source_map_scopes/NamesResolver.ts +99 -56
  191. package/front_end/models/text_utils/TextUtils.ts +18 -34
  192. package/front_end/models/text_utils/text_utils-legacy.ts +0 -3
  193. package/front_end/models/timeline_model/TimelineModel.ts +2 -2
  194. package/front_end/models/timeline_model/timeline_model-legacy.ts +0 -9
  195. package/front_end/models/timeline_model/timeline_model.ts +0 -3
  196. package/front_end/panels/accessibility/ARIAAttributesView.ts +2 -1
  197. package/front_end/panels/application/AppManifestView.ts +15 -7
  198. package/front_end/panels/application/ApplicationPanelCacheSection.ts +2 -1
  199. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -9
  200. package/front_end/panels/application/DOMStorageModel.ts +16 -18
  201. package/front_end/panels/application/IndexedDBModel.ts +97 -134
  202. package/front_end/panels/application/IndexedDBViews.ts +1 -3
  203. package/front_end/panels/application/InterestGroupStorageModel.ts +3 -0
  204. package/front_end/panels/application/InterestGroupTreeElement.ts +1 -1
  205. package/front_end/panels/application/ReportingApiTreeElement.ts +2 -1
  206. package/front_end/panels/application/ReportingApiView.ts +5 -4
  207. package/front_end/panels/application/StorageView.ts +30 -26
  208. package/front_end/panels/application/TrustTokensTreeElement.ts +5 -4
  209. package/front_end/panels/application/application.ts +6 -0
  210. package/front_end/panels/application/components/BackForwardCacheStrings.ts +6 -1
  211. package/front_end/panels/application/components/BackForwardCacheView.ts +149 -92
  212. package/front_end/panels/application/components/FrameDetailsView.ts +66 -7
  213. package/front_end/panels/application/components/Prerender2.ts +74 -14
  214. package/front_end/panels/application/components/ProtocolHandlersView.ts +6 -1
  215. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +184 -0
  216. package/front_end/panels/application/components/SharedStorageMetadataView.ts +173 -0
  217. package/front_end/panels/application/components/backForwardCacheView.css +2 -3
  218. package/front_end/panels/application/components/components.ts +4 -0
  219. package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
  220. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  221. package/front_end/panels/application/components/protocolHandlersView.css +5 -1
  222. package/front_end/panels/application/components/sharedStorageAccessGrid.css +26 -0
  223. package/front_end/panels/application/components/sharedStorageMetadataView.css +11 -0
  224. package/front_end/panels/application/components/stackTraceLinkButton.css +1 -1
  225. package/front_end/panels/application/components/stackTraceRow.css +1 -1
  226. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -1
  227. package/front_end/panels/console/ConsoleFormat.ts +2 -2
  228. package/front_end/panels/console/ConsolePinPane.ts +1 -1
  229. package/front_end/panels/console/ConsolePrompt.ts +1 -1
  230. package/front_end/panels/console/ConsoleView.ts +1 -0
  231. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  232. package/front_end/panels/console/consoleView.css +5 -0
  233. package/front_end/panels/coverage/CoverageView.ts +2 -2
  234. package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +1 -1
  235. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +6 -24
  236. package/front_end/panels/developer_resources/developer_resources-meta.ts +1 -1
  237. package/front_end/panels/elements/CSSRuleValidator.ts +147 -65
  238. package/front_end/panels/elements/CSSRuleValidatorHelper.ts +32 -2
  239. package/front_end/panels/elements/ClassesPaneWidget.ts +2 -2
  240. package/front_end/panels/elements/ElementsPanel.ts +19 -1
  241. package/front_end/panels/elements/StylePropertiesSection.ts +3 -1
  242. package/front_end/panels/elements/StylePropertyTreeElement.ts +9 -3
  243. package/front_end/panels/elements/StylesSidebarPane.ts +46 -19
  244. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -2
  245. package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +2 -3
  246. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +19 -2
  247. package/front_end/panels/elements/components/computedStyleProperty.css +3 -3
  248. package/front_end/panels/elements/components/computedStyleTrace.css +8 -4
  249. package/front_end/panels/elements/components/cssHintDetailsView.css +2 -8
  250. package/front_end/panels/elements/elements-meta.ts +28 -0
  251. package/front_end/panels/elements/stylesSectionTree.css +2 -1
  252. package/front_end/panels/elements/stylesSidebarPane.css +7 -0
  253. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -0
  254. package/front_end/panels/issues/IssueView.ts +5 -4
  255. package/front_end/panels/js_profiler/js_profiler-meta.ts +139 -0
  256. package/front_end/panels/lighthouse/LighthouseController.ts +4 -9
  257. package/front_end/panels/lighthouse/LighthousePanel.ts +38 -32
  258. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +16 -15
  259. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +3 -3
  260. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +6 -1
  261. package/front_end/panels/lighthouse/LighthouseReporterTypes.ts +3 -2
  262. package/front_end/panels/lighthouse/LighthouseStartView.ts +162 -89
  263. package/front_end/panels/lighthouse/lighthouseStartView.css +7 -36
  264. package/front_end/panels/media/TickingFlameChart.ts +9 -3
  265. package/front_end/panels/network/NetworkDataGridNode.ts +79 -9
  266. package/front_end/panels/network/NetworkItemView.ts +4 -3
  267. package/front_end/panels/network/NetworkLogView.ts +40 -42
  268. package/front_end/panels/network/NetworkLogViewColumns.ts +2 -1
  269. package/front_end/panels/network/RequestCookiesView.ts +28 -0
  270. package/front_end/panels/network/components/HeaderSectionRow.css +176 -0
  271. package/front_end/panels/network/components/HeaderSectionRow.ts +477 -0
  272. package/front_end/panels/network/components/RequestHeaderSection.css +59 -0
  273. package/front_end/panels/network/components/RequestHeaderSection.ts +133 -0
  274. package/front_end/panels/network/components/RequestHeadersView.css +1 -59
  275. package/front_end/panels/network/components/RequestHeadersView.ts +43 -417
  276. package/front_end/panels/network/components/ResponseHeaderSection.css +21 -0
  277. package/front_end/panels/network/components/ResponseHeaderSection.ts +635 -0
  278. package/front_end/panels/network/components/components.ts +6 -0
  279. package/front_end/panels/network/network-meta.ts +0 -16
  280. package/front_end/panels/network/requestPayloadTree.css +0 -1
  281. package/front_end/panels/profiler/HeapProfileView.ts +7 -6
  282. package/front_end/panels/profiler/LiveHeapProfileView.ts +2 -2
  283. package/front_end/panels/sensors/sensors-meta.ts +0 -10
  284. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +61 -43
  285. package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
  286. package/front_end/panels/settings/SettingsScreen.ts +1 -3
  287. package/front_end/panels/settings/components/syncSection.css +1 -1
  288. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +38 -35
  289. package/front_end/panels/sources/BreakpointsSidebarPane.ts +265 -25
  290. package/front_end/panels/sources/CallStackSidebarPane.ts +10 -1
  291. package/front_end/panels/sources/CoveragePlugin.ts +1 -1
  292. package/front_end/panels/sources/DebuggerPlugin.ts +316 -109
  293. package/front_end/panels/sources/GoToLineQuickOpen.ts +22 -49
  294. package/front_end/panels/sources/NavigatorView.ts +2 -10
  295. package/front_end/panels/sources/OpenFileQuickOpen.ts +0 -13
  296. package/front_end/panels/sources/OutlineQuickOpen.ts +274 -45
  297. package/front_end/panels/sources/SourcesNavigator.ts +2 -2
  298. package/front_end/panels/sources/SourcesPanel.ts +13 -9
  299. package/front_end/panels/sources/SourcesView.ts +8 -2
  300. package/front_end/panels/sources/TabbedEditorContainer.ts +8 -0
  301. package/front_end/panels/sources/UISourceCodeFrame.ts +81 -34
  302. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  303. package/front_end/panels/sources/components/BreakpointsView.ts +472 -28
  304. package/front_end/panels/sources/components/BreakpointsViewUtils.ts +195 -0
  305. package/front_end/panels/sources/components/HeadersView.css +5 -1
  306. package/front_end/panels/sources/components/HeadersView.ts +18 -11
  307. package/front_end/panels/sources/components/breakpointsView.css +136 -11
  308. package/front_end/panels/sources/sources-legacy.ts +0 -5
  309. package/front_end/panels/sources/sources-meta.ts +113 -4
  310. package/front_end/panels/sources/sources.ts +0 -2
  311. package/front_end/panels/sources/watchExpressionsSidebarPane.css +10 -6
  312. package/front_end/panels/timeline/PerformanceModel.ts +65 -18
  313. package/front_end/panels/timeline/TimelineController.ts +11 -5
  314. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -49
  315. package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
  316. package/front_end/panels/timeline/TimelineLoader.ts +41 -24
  317. package/front_end/panels/timeline/TimelinePanel.ts +155 -57
  318. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -263
  319. package/front_end/panels/webauthn/WebauthnPane.ts +2 -2
  320. package/front_end/panels/webauthn/webauthnPane.css +1 -0
  321. package/front_end/services/puppeteer/PuppeteerConnection.ts +51 -42
  322. package/front_end/third_party/additional_readme_paths.json +0 -1
  323. package/front_end/third_party/chromium/client-variations/ClientVariations.js +1 -1
  324. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  325. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  326. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
  327. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +7 -1
  328. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  329. package/front_end/third_party/codemirror.next/package.json +4 -2
  330. package/front_end/third_party/i18n/localized-string-set.ts +9 -1
  331. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +431 -434
  332. package/front_end/third_party/lighthouse/locales/en-US.json +144 -186
  333. package/front_end/third_party/lighthouse/locales/en-XL.json +144 -186
  334. package/front_end/third_party/puppeteer/README.chromium +14 -6
  335. package/front_end/third_party/puppeteer/package/README.md +134 -316
  336. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +337 -0
  337. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -0
  338. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +248 -0
  339. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -0
  340. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +148 -0
  341. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -0
  342. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +135 -0
  343. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -0
  344. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +2100 -0
  345. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -0
  346. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +536 -0
  347. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -0
  348. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +2 -2
  349. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  350. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +39 -23
  351. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  352. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +17 -199
  353. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  354. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +112 -202
  355. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  356. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +9 -3
  357. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  358. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -6
  359. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  360. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts +1 -1
  361. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  362. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +0 -6
  363. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -1
  364. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.d.ts +133 -0
  365. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.d.ts.map +1 -0
  366. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/initializePuppeteer.d.ts → cjs/puppeteer/common/Configuration.js} +4 -7
  367. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.js.map +1 -0
  368. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +24 -0
  369. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  370. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +67 -28
  371. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  372. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +11 -2
  373. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  374. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +7 -5
  375. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  376. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts +52 -0
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts.map +1 -0
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DeviceDescriptors.js → Device.js} +17 -11
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js.map +1 -0
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +29 -6
  381. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
  382. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +69 -46
  383. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
  384. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +27 -3
  385. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  386. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +47 -2
  387. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  388. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts +16 -1
  389. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
  390. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +16 -1
  391. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
  392. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +2 -36
  393. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  394. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +20 -59
  395. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  396. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +1 -1
  397. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  398. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts +47 -21
  399. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts.map +1 -1
  400. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js +155 -43
  401. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js.map +1 -1
  402. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +7 -2
  403. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  404. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +47 -97
  405. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  406. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.d.ts +39 -0
  407. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.d.ts.map +1 -0
  408. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.js +120 -0
  409. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.js.map +1 -0
  410. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -2
  411. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +2 -2
  412. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts +13 -67
  413. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +1 -1
  414. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js +124 -511
  415. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js.map +1 -1
  416. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +5 -5
  417. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  418. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +7 -9
  419. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  420. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/node/install.d.ts → cjs/puppeteer/common/LazyArg.d.ts} +7 -7
  421. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts.map +1 -0
  422. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.js +45 -0
  423. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.js.map +1 -0
  424. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  425. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +12 -2
  426. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  427. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +15 -0
  428. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  429. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +15 -0
  430. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
  431. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -4
  432. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  433. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +2 -2
  434. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  435. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/node → cjs/puppeteer/common}/NodeWebSocketTransport.d.ts +1 -1
  436. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NodeWebSocketTransport.d.ts.map +1 -0
  437. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{node → common}/NodeWebSocketTransport.js +1 -15
  438. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NodeWebSocketTransport.js.map +1 -0
  439. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +35 -496
  440. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  441. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +287 -414
  442. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  443. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/common/NetworkConditions.d.ts → cjs/puppeteer/common/PredefinedNetworkConditions.d.ts} +13 -6
  444. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PredefinedNetworkConditions.d.ts.map +1 -0
  445. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{NetworkConditions.js → PredefinedNetworkConditions.js} +12 -8
  446. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PredefinedNetworkConditions.js.map +1 -0
  447. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +36 -61
  448. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
  449. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +32 -66
  450. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  451. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +26 -34
  452. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
  453. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +57 -94
  454. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
  455. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +3 -2
  456. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  457. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +2 -2
  458. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  459. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts +52 -0
  460. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts.map +1 -0
  461. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js +204 -0
  462. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js.map +1 -0
  463. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +4 -5
  464. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
  465. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +23 -27
  466. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
  467. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.d.ts +45 -0
  468. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map +1 -0
  469. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.js +75 -0
  470. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.js.map +1 -0
  471. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts +28 -0
  472. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts.map +1 -0
  473. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.js +52 -0
  474. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.js.map +1 -0
  475. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/puppeteer.js → cjs/puppeteer/common/bidi/Connection.d.ts} +20 -10
  476. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.d.ts.map +1 -0
  477. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.js +133 -0
  478. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.js.map +1 -0
  479. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.d.ts +28 -0
  480. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.d.ts.map +1 -0
  481. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.js +61 -0
  482. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.js.map +1 -0
  483. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts +11 -0
  484. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts.map +1 -1
  485. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +0 -4
  486. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  487. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +25 -59
  488. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  489. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +4 -0
  490. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
  491. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +8 -1
  492. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
  493. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +8 -2
  494. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -1
  495. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +8 -2
  496. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -1
  497. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  498. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  499. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts +9 -0
  500. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts.map +1 -0
  501. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.js +71 -0
  502. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.js.map +1 -0
  503. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts +32 -6
  504. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts.map +1 -1
  505. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js +30 -7
  506. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js.map +1 -1
  507. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.d.ts +39 -0
  508. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.d.ts.map +1 -0
  509. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.js +133 -0
  510. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.js.map +1 -0
  511. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts +28 -0
  512. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +1 -0
  513. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.js +80 -0
  514. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.js.map +1 -0
  515. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts +24 -0
  516. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -0
  517. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js +42 -0
  518. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js.map +1 -0
  519. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +44 -1
  520. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -1
  521. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +52 -3
  522. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -1
  523. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.d.ts +26 -0
  524. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.d.ts.map +1 -0
  525. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js +58 -0
  526. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js.map +1 -0
  527. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +50 -14
  528. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  529. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +137 -154
  530. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  531. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +6 -0
  532. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  533. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +16 -7
  534. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  535. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +6 -18
  536. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  537. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +88 -28
  538. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  539. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +4 -18
  540. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  541. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +40 -33
  542. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
  543. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +15 -0
  544. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
  545. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +1 -16
  546. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
  547. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts +24 -22
  548. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +1 -1
  549. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js +94 -130
  550. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js.map +1 -1
  551. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/{Puppeteer.d.ts → PuppeteerNode.d.ts} +74 -43
  552. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -0
  553. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +271 -0
  554. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -0
  555. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +21 -5
  556. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
  557. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +22 -6
  558. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
  559. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +1 -1
  560. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  561. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +24 -18
  562. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
  563. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +25 -22
  564. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
  565. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts +9 -0
  566. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts.map +1 -0
  567. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js +22 -0
  568. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js.map +1 -0
  569. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts +12 -10
  570. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +1 -1
  571. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js +17 -44
  572. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js.map +1 -1
  573. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/index.d.ts +23 -0
  574. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/index.js +5 -0
  575. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +337 -0
  576. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -0
  577. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +244 -0
  578. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -0
  579. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +148 -0
  580. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -0
  581. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +131 -0
  582. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -0
  583. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +2100 -0
  584. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -0
  585. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +532 -0
  586. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -0
  587. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +2 -2
  588. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  589. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +39 -23
  590. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  591. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +17 -199
  592. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  593. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +108 -198
  594. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  595. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +9 -3
  596. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  597. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +4 -5
  598. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  599. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts +1 -1
  600. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  601. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +0 -6
  602. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -1
  603. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.d.ts +133 -0
  604. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.d.ts.map +1 -0
  605. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/initializePuppeteer.d.ts → esm/puppeteer/common/Configuration.js} +3 -7
  606. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.js.map +1 -0
  607. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +24 -0
  608. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  609. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +63 -26
  610. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  611. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +11 -2
  612. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  613. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +7 -5
  614. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  615. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts +52 -0
  616. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts.map +1 -0
  617. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DeviceDescriptors.js → Device.js} +16 -10
  618. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js.map +1 -0
  619. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +29 -6
  620. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
  621. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +69 -46
  622. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
  623. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +27 -3
  624. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  625. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +47 -2
  626. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
  627. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +16 -1
  628. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
  629. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +16 -1
  630. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
  631. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +2 -36
  632. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  633. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +20 -59
  634. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
  635. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +1 -1
  636. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  637. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts +47 -21
  638. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts.map +1 -1
  639. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js +132 -43
  640. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js.map +1 -1
  641. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +7 -2
  642. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  643. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +47 -97
  644. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  645. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.d.ts +39 -0
  646. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.d.ts.map +1 -0
  647. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.js +116 -0
  648. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.js.map +1 -0
  649. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -2
  650. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +2 -2
  651. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts +13 -67
  652. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +1 -1
  653. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js +124 -487
  654. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js.map +1 -1
  655. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +5 -5
  656. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  657. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +7 -9
  658. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  659. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node/install.d.ts → esm/puppeteer/common/LazyArg.d.ts} +7 -7
  660. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts.map +1 -0
  661. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.js +41 -0
  662. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.js.map +1 -0
  663. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  664. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +12 -2
  665. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  666. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +15 -0
  667. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  668. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +15 -0
  669. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
  670. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -4
  671. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  672. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +2 -2
  673. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  674. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node → esm/puppeteer/common}/NodeWebSocketTransport.d.ts +1 -1
  675. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NodeWebSocketTransport.d.ts.map +1 -0
  676. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{node → common}/NodeWebSocketTransport.js +1 -15
  677. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NodeWebSocketTransport.js.map +1 -0
  678. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +35 -496
  679. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  680. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +287 -414
  681. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  682. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/common/NetworkConditions.d.ts → esm/puppeteer/common/PredefinedNetworkConditions.d.ts} +13 -6
  683. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PredefinedNetworkConditions.d.ts.map +1 -0
  684. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{NetworkConditions.js → PredefinedNetworkConditions.js} +11 -7
  685. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PredefinedNetworkConditions.js.map +1 -0
  686. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +36 -61
  687. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
  688. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +33 -67
  689. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
  690. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +26 -34
  691. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
  692. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +57 -94
  693. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
  694. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +3 -2
  695. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  696. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +2 -2
  697. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  698. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts +52 -0
  699. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts.map +1 -0
  700. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js +199 -0
  701. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js.map +1 -0
  702. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +4 -5
  703. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
  704. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +23 -27
  705. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
  706. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.d.ts +45 -0
  707. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.d.ts.map +1 -0
  708. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.js +71 -0
  709. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.js.map +1 -0
  710. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts +28 -0
  711. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts.map +1 -0
  712. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.js +48 -0
  713. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.js.map +1 -0
  714. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.d.ts +37 -0
  715. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.d.ts.map +1 -0
  716. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.js +129 -0
  717. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.js.map +1 -0
  718. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.d.ts +28 -0
  719. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.d.ts.map +1 -0
  720. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.js +57 -0
  721. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.js.map +1 -0
  722. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts +11 -0
  723. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts.map +1 -1
  724. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +0 -4
  725. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  726. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +24 -57
  727. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  728. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +4 -0
  729. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
  730. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +7 -0
  731. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
  732. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +8 -2
  733. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -1
  734. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +8 -2
  735. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -1
  736. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  737. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  738. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts +9 -0
  739. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts.map +1 -0
  740. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.js +66 -0
  741. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.js.map +1 -0
  742. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts +32 -6
  743. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts.map +1 -1
  744. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js +30 -7
  745. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js.map +1 -1
  746. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.d.ts +39 -0
  747. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.d.ts.map +1 -0
  748. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.js +128 -0
  749. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.js.map +1 -0
  750. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts +28 -0
  751. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +1 -0
  752. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.js +75 -0
  753. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.js.map +1 -0
  754. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts +24 -0
  755. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -0
  756. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js +37 -0
  757. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js.map +1 -0
  758. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +44 -1
  759. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -1
  760. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js +41 -1
  761. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js.map +1 -1
  762. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.d.ts +26 -0
  763. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.d.ts.map +1 -0
  764. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.js +53 -0
  765. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.js.map +1 -0
  766. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +50 -14
  767. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  768. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +137 -154
  769. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  770. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +6 -0
  771. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  772. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +14 -5
  773. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  774. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +6 -18
  775. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  776. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +89 -29
  777. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  778. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +4 -18
  779. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  780. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +41 -34
  781. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
  782. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +15 -0
  783. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
  784. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -16
  785. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
  786. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts +24 -22
  787. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +1 -1
  788. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js +70 -124
  789. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js.map +1 -1
  790. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/{Puppeteer.d.ts → PuppeteerNode.d.ts} +74 -43
  791. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -0
  792. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +267 -0
  793. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -0
  794. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +21 -5
  795. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
  796. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js +22 -6
  797. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -1
  798. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +1 -1
  799. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  800. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +24 -18
  801. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
  802. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +25 -22
  803. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
  804. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts +9 -0
  805. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts.map +1 -0
  806. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.js +18 -0
  807. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.js.map +1 -0
  808. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts +12 -10
  809. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +1 -1
  810. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js +16 -42
  811. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js.map +1 -1
  812. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/index.d.ts +23 -0
  813. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/index.js +3 -0
  814. package/front_end/third_party/puppeteer/package/lib/types.d.ts +548 -513
  815. package/front_end/third_party/puppeteer/package/package.json +125 -104
  816. package/front_end/third_party/puppeteer/puppeteer.ts +3 -3
  817. package/front_end/ui/components/buttons/Button.ts +30 -1
  818. package/front_end/ui/components/buttons/button.css +21 -0
  819. package/front_end/ui/components/chrome_link/ChromeLink.ts +3 -2
  820. package/front_end/ui/components/chrome_link/chromeLink.css +1 -1
  821. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +21 -2
  822. package/front_end/ui/components/docs/button/basic.ts +43 -10
  823. package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +2 -0
  824. package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +10 -3
  825. package/front_end/ui/components/docs/two_states_counter/basic.html +27 -0
  826. package/front_end/ui/components/docs/two_states_counter/basic.ts +45 -0
  827. package/front_end/ui/components/expandable_list/expandableList.css +1 -1
  828. package/front_end/ui/components/helpers/scheduled-render.ts +5 -2
  829. package/front_end/ui/components/icon_button/iconButton.css +2 -0
  830. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +23 -12
  831. package/front_end/ui/components/linkifier/linkifierImpl.css +1 -0
  832. package/front_end/ui/components/markdown_view/MarkdownImage.ts +0 -4
  833. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +4 -0
  834. package/front_end/ui/components/markdown_view/MarkdownView.ts +39 -38
  835. package/front_end/ui/components/markdown_view/markdownLink.css +1 -0
  836. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +12 -6
  837. package/front_end/ui/components/survey_link/surveyLink.css +1 -0
  838. package/front_end/ui/components/text_editor/TextEditor.ts +75 -9
  839. package/front_end/ui/components/text_editor/config.ts +58 -2
  840. package/front_end/ui/components/text_editor/position.ts +2 -0
  841. package/front_end/ui/components/text_editor/theme.ts +10 -0
  842. package/front_end/ui/components/text_prompt/textPrompt.css +4 -0
  843. package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -8
  844. package/front_end/ui/components/tree_outline/treeOutline.css +20 -0
  845. package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +103 -0
  846. package/front_end/ui/components/two_states_counter/twoStatesCounter.css +37 -0
  847. package/front_end/ui/components/two_states_counter/two_states_counter.ts +9 -0
  848. package/front_end/ui/legacy/ARIAUtils.ts +4 -1
  849. package/front_end/ui/legacy/Context.ts +5 -1
  850. package/front_end/ui/legacy/DockController.ts +19 -0
  851. package/front_end/ui/legacy/FilterBar.ts +3 -1
  852. package/front_end/ui/legacy/InspectorView.ts +6 -2
  853. package/front_end/ui/legacy/ListWidget.ts +5 -1
  854. package/front_end/ui/legacy/SearchableView.ts +2 -19
  855. package/front_end/ui/legacy/SoftContextMenu.ts +20 -6
  856. package/front_end/ui/legacy/TabbedPane.ts +7 -5
  857. package/front_end/ui/legacy/TextPrompt.ts +1 -2
  858. package/front_end/ui/legacy/Toolbar.ts +6 -4
  859. package/front_end/ui/legacy/UIUtils.ts +8 -8
  860. package/front_end/ui/legacy/XLink.ts +3 -3
  861. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +9 -10
  862. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  863. package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -6
  864. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +9 -2
  865. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +10 -2
  866. package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +22 -9
  867. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +3 -2
  868. package/front_end/ui/legacy/components/inline_editor/cssLength.css +4 -0
  869. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +15 -9
  870. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +9 -1
  871. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +75 -377
  872. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +3 -14
  873. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +2 -14
  874. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +9 -41
  875. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -2
  876. package/front_end/ui/legacy/inspectorCommon.css +23 -0
  877. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +1 -0
  878. package/front_end/ui/legacy/reportView.css +10 -0
  879. package/front_end/ui/legacy/softContextMenu.css +11 -1
  880. package/front_end/ui/legacy/splitWidget.css +1 -1
  881. package/front_end/ui/legacy/tabbedPane.css +26 -4
  882. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -5
  883. package/front_end/ui/legacy/toolbar.css +7 -1
  884. package/package.json +2 -1
  885. package/scripts/eslint_rules/lib/no_only.js +27 -0
  886. package/scripts/eslint_rules/tests/no_only_test.js +95 -0
  887. package/docs/localization/README.md +0 -6
  888. package/docs/localization/adding_strings.md +0 -133
  889. package/docs/localization/descriptions.md +0 -30
  890. package/docs/localization/localization_apis.md +0 -80
  891. package/docs/localization/locked_terms.md +0 -38
  892. package/docs/testing_guidelines.md +0 -4
  893. package/docs/triage_guidelines.md +0 -3
  894. package/front_end/entrypoints/formatter_worker/HTMLOutline.ts +0 -53
  895. package/front_end/entrypoints/formatter_worker/JavaScriptOutline.ts +0 -153
  896. package/front_end/legacy_test_runner/lighthouse_test_runner/lighthouse_test_runner.js +0 -155
  897. package/front_end/models/timeline_model/TimelineIRModel.ts +0 -317
  898. package/front_end/panels/input/InputModel.ts +0 -213
  899. package/front_end/panels/input/InputTimeline.ts +0 -407
  900. package/front_end/panels/input/input-legacy.ts +0 -32
  901. package/front_end/panels/input/input-meta.ts +0 -130
  902. package/front_end/panels/input/input.ts +0 -11
  903. package/front_end/panels/input/inputTimeline.css +0 -16
  904. package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +0 -179
  905. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +0 -145
  906. package/front_end/third_party/acorn-loose/README.chromium +0 -22
  907. package/front_end/third_party/acorn-loose/acorn-loose-tsconfig.json +0 -8
  908. package/front_end/third_party/acorn-loose/acorn-loose.ts +0 -9
  909. package/front_end/third_party/acorn-loose/package/CHANGELOG.md +0 -123
  910. package/front_end/third_party/acorn-loose/package/LICENSE +0 -21
  911. package/front_end/third_party/acorn-loose/package/README.md +0 -66
  912. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.d.ts +0 -16
  913. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js +0 -1538
  914. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js.map +0 -1
  915. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs +0 -1528
  916. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs.d.ts +0 -10
  917. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs.map +0 -1
  918. package/front_end/third_party/acorn-loose/package/package.json +0 -47
  919. package/front_end/third_party/puppeteer/package/LICENSE +0 -202
  920. package/front_end/third_party/puppeteer/package/install.js +0 -89
  921. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +0 -60
  922. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  923. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +0 -1
  924. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  925. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js.map +0 -1
  926. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts +0 -6
  927. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts.map +0 -1
  928. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js +0 -21
  929. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js.map +0 -1
  930. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts +0 -5
  931. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts.map +0 -1
  932. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js +0 -10
  933. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js.map +0 -1
  934. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +0 -1
  935. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js +0 -47
  936. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +0 -1
  937. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  938. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  939. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +0 -1
  940. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +0 -213
  941. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +0 -1
  942. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +0 -1
  943. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +0 -198
  944. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +0 -1
  945. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts +0 -10
  946. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts.map +0 -1
  947. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js +0 -40
  948. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js.map +0 -1
  949. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts +0 -27
  950. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts.map +0 -1
  951. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js +0 -44
  952. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js.map +0 -1
  953. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts +0 -2
  954. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts.map +0 -1
  955. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js +0 -19
  956. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js.map +0 -1
  957. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts +0 -27
  958. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js +0 -56
  959. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +0 -60
  960. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  961. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +0 -1
  962. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  963. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js.map +0 -1
  964. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts +0 -6
  965. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts.map +0 -1
  966. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js +0 -20
  967. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js.map +0 -1
  968. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts +0 -5
  969. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts.map +0 -1
  970. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js +0 -7
  971. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js.map +0 -1
  972. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +0 -1
  973. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js +0 -43
  974. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +0 -1
  975. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  976. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  977. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +0 -1
  978. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +0 -209
  979. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +0 -1
  980. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +0 -1
  981. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +0 -190
  982. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +0 -1
  983. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts +0 -10
  984. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts.map +0 -1
  985. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js +0 -13
  986. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js.map +0 -1
  987. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts +0 -27
  988. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts.map +0 -1
  989. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.js.map +0 -1
  990. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts +0 -2
  991. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts.map +0 -1
  992. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js +0 -15
  993. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js.map +0 -1
  994. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +0 -27
  995. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +0 -53
  996. package/front_end/third_party/puppeteer/package/typescript-if-required.js +0 -70
  997. package/scripts/eslint_rules/lib/render_coordinator_write.js +0 -58
  998. package/scripts/eslint_rules/tests/render_coordinator_write_test.js +0 -55
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2022 Google Inc. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
18
+ if (kind === "m") throw new TypeError("Private method is not writable");
19
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
20
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
21
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
22
+ };
23
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
24
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
25
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
26
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
27
+ };
28
+ var _WaitTask_world, _WaitTask_bindings, _WaitTask_polling, _WaitTask_root, _WaitTask_fn, _WaitTask_args, _WaitTask_timeout, _WaitTask_result, _WaitTask_poller, _TaskManager_tasks;
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.TaskManager = exports.WaitTask = void 0;
31
+ const DeferredPromise_js_1 = require("../util/DeferredPromise.js");
32
+ const Errors_js_1 = require("./Errors.js");
33
+ /**
34
+ * @internal
35
+ */
36
+ class WaitTask {
37
+ constructor(world, options, fn, ...args) {
38
+ var _a;
39
+ _WaitTask_world.set(this, void 0);
40
+ _WaitTask_bindings.set(this, void 0);
41
+ _WaitTask_polling.set(this, void 0);
42
+ _WaitTask_root.set(this, void 0);
43
+ _WaitTask_fn.set(this, void 0);
44
+ _WaitTask_args.set(this, void 0);
45
+ _WaitTask_timeout.set(this, void 0);
46
+ _WaitTask_result.set(this, (0, DeferredPromise_js_1.createDeferredPromise)());
47
+ _WaitTask_poller.set(this, void 0);
48
+ __classPrivateFieldSet(this, _WaitTask_world, world, "f");
49
+ __classPrivateFieldSet(this, _WaitTask_bindings, (_a = options.bindings) !== null && _a !== void 0 ? _a : new Map(), "f");
50
+ __classPrivateFieldSet(this, _WaitTask_polling, options.polling, "f");
51
+ __classPrivateFieldSet(this, _WaitTask_root, options.root, "f");
52
+ switch (typeof fn) {
53
+ case 'string':
54
+ __classPrivateFieldSet(this, _WaitTask_fn, `() => {return (${fn});}`, "f");
55
+ break;
56
+ default:
57
+ __classPrivateFieldSet(this, _WaitTask_fn, fn.toString(), "f");
58
+ break;
59
+ }
60
+ __classPrivateFieldSet(this, _WaitTask_args, args, "f");
61
+ __classPrivateFieldGet(this, _WaitTask_world, "f").taskManager.add(this);
62
+ if (options.timeout) {
63
+ __classPrivateFieldSet(this, _WaitTask_timeout, setTimeout(() => {
64
+ this.terminate(new Errors_js_1.TimeoutError(`Waiting failed: ${options.timeout}ms exceeded`));
65
+ }, options.timeout), "f");
66
+ }
67
+ if (__classPrivateFieldGet(this, _WaitTask_bindings, "f").size !== 0) {
68
+ for (const [name, fn] of __classPrivateFieldGet(this, _WaitTask_bindings, "f")) {
69
+ __classPrivateFieldGet(this, _WaitTask_world, "f")._boundFunctions.set(name, fn);
70
+ }
71
+ }
72
+ this.rerun();
73
+ }
74
+ get result() {
75
+ return __classPrivateFieldGet(this, _WaitTask_result, "f");
76
+ }
77
+ async rerun() {
78
+ try {
79
+ if (__classPrivateFieldGet(this, _WaitTask_bindings, "f").size !== 0) {
80
+ const context = await __classPrivateFieldGet(this, _WaitTask_world, "f").executionContext();
81
+ await Promise.all([...__classPrivateFieldGet(this, _WaitTask_bindings, "f")].map(async ([name]) => {
82
+ return await __classPrivateFieldGet(this, _WaitTask_world, "f")._addBindingToContext(context, name);
83
+ }));
84
+ }
85
+ switch (__classPrivateFieldGet(this, _WaitTask_polling, "f")) {
86
+ case 'raf':
87
+ __classPrivateFieldSet(this, _WaitTask_poller, await __classPrivateFieldGet(this, _WaitTask_world, "f").evaluateHandle(({ RAFPoller, createFunction }, fn, ...args) => {
88
+ const fun = createFunction(fn);
89
+ return new RAFPoller(() => {
90
+ return fun(...args);
91
+ });
92
+ }, await __classPrivateFieldGet(this, _WaitTask_world, "f").puppeteerUtil, __classPrivateFieldGet(this, _WaitTask_fn, "f"), ...__classPrivateFieldGet(this, _WaitTask_args, "f")), "f");
93
+ break;
94
+ case 'mutation':
95
+ __classPrivateFieldSet(this, _WaitTask_poller, await __classPrivateFieldGet(this, _WaitTask_world, "f").evaluateHandle(({ MutationPoller, createFunction }, root, fn, ...args) => {
96
+ const fun = createFunction(fn);
97
+ return new MutationPoller(() => {
98
+ return fun(...args);
99
+ }, root || document);
100
+ }, await __classPrivateFieldGet(this, _WaitTask_world, "f").puppeteerUtil, __classPrivateFieldGet(this, _WaitTask_root, "f"), __classPrivateFieldGet(this, _WaitTask_fn, "f"), ...__classPrivateFieldGet(this, _WaitTask_args, "f")), "f");
101
+ break;
102
+ default:
103
+ __classPrivateFieldSet(this, _WaitTask_poller, await __classPrivateFieldGet(this, _WaitTask_world, "f").evaluateHandle(({ IntervalPoller, createFunction }, ms, fn, ...args) => {
104
+ const fun = createFunction(fn);
105
+ return new IntervalPoller(() => {
106
+ return fun(...args);
107
+ }, ms);
108
+ }, await __classPrivateFieldGet(this, _WaitTask_world, "f").puppeteerUtil, __classPrivateFieldGet(this, _WaitTask_polling, "f"), __classPrivateFieldGet(this, _WaitTask_fn, "f"), ...__classPrivateFieldGet(this, _WaitTask_args, "f")), "f");
109
+ break;
110
+ }
111
+ await __classPrivateFieldGet(this, _WaitTask_poller, "f").evaluate(poller => {
112
+ poller.start();
113
+ });
114
+ const result = await __classPrivateFieldGet(this, _WaitTask_poller, "f").evaluateHandle(poller => {
115
+ return poller.result();
116
+ });
117
+ __classPrivateFieldGet(this, _WaitTask_result, "f").resolve(result);
118
+ await this.terminate();
119
+ }
120
+ catch (error) {
121
+ const badError = this.getBadError(error);
122
+ if (badError) {
123
+ await this.terminate(badError);
124
+ }
125
+ }
126
+ }
127
+ async terminate(error) {
128
+ __classPrivateFieldGet(this, _WaitTask_world, "f").taskManager.delete(this);
129
+ if (__classPrivateFieldGet(this, _WaitTask_timeout, "f")) {
130
+ clearTimeout(__classPrivateFieldGet(this, _WaitTask_timeout, "f"));
131
+ }
132
+ if (error && !__classPrivateFieldGet(this, _WaitTask_result, "f").finished()) {
133
+ __classPrivateFieldGet(this, _WaitTask_result, "f").reject(error);
134
+ }
135
+ if (__classPrivateFieldGet(this, _WaitTask_poller, "f")) {
136
+ try {
137
+ await __classPrivateFieldGet(this, _WaitTask_poller, "f").evaluateHandle(async (poller) => {
138
+ await poller.stop();
139
+ });
140
+ if (__classPrivateFieldGet(this, _WaitTask_poller, "f")) {
141
+ await __classPrivateFieldGet(this, _WaitTask_poller, "f").dispose();
142
+ __classPrivateFieldSet(this, _WaitTask_poller, undefined, "f");
143
+ }
144
+ }
145
+ catch {
146
+ // Ignore errors since they most likely come from low-level cleanup.
147
+ }
148
+ }
149
+ }
150
+ /**
151
+ * Not all errors lead to termination. They usually imply we need to rerun the task.
152
+ */
153
+ getBadError(error) {
154
+ if (error instanceof Error) {
155
+ // When frame is detached the task should have been terminated by the IsolatedWorld.
156
+ // This can fail if we were adding this task while the frame was detached,
157
+ // so we terminate here instead.
158
+ if (error.message.includes('Execution context is not available in detached frame')) {
159
+ return new Error('Waiting failed: Frame detached');
160
+ }
161
+ // When the page is navigated, the promise is rejected.
162
+ // We will try again in the new execution context.
163
+ if (error.message.includes('Execution context was destroyed')) {
164
+ return;
165
+ }
166
+ // We could have tried to evaluate in a context which was already
167
+ // destroyed.
168
+ if (error.message.includes('Cannot find context with specified id')) {
169
+ return;
170
+ }
171
+ }
172
+ return error;
173
+ }
174
+ }
175
+ exports.WaitTask = WaitTask;
176
+ _WaitTask_world = new WeakMap(), _WaitTask_bindings = new WeakMap(), _WaitTask_polling = new WeakMap(), _WaitTask_root = new WeakMap(), _WaitTask_fn = new WeakMap(), _WaitTask_args = new WeakMap(), _WaitTask_timeout = new WeakMap(), _WaitTask_result = new WeakMap(), _WaitTask_poller = new WeakMap();
177
+ /**
178
+ * @internal
179
+ */
180
+ class TaskManager {
181
+ constructor() {
182
+ _TaskManager_tasks.set(this, new Set());
183
+ }
184
+ add(task) {
185
+ __classPrivateFieldGet(this, _TaskManager_tasks, "f").add(task);
186
+ }
187
+ delete(task) {
188
+ __classPrivateFieldGet(this, _TaskManager_tasks, "f").delete(task);
189
+ }
190
+ terminateAll(error) {
191
+ for (const task of __classPrivateFieldGet(this, _TaskManager_tasks, "f")) {
192
+ task.terminate(error);
193
+ }
194
+ __classPrivateFieldGet(this, _TaskManager_tasks, "f").clear();
195
+ }
196
+ async rerunAll() {
197
+ await Promise.all([...__classPrivateFieldGet(this, _TaskManager_tasks, "f")].map(task => {
198
+ return task.rerun();
199
+ }));
200
+ }
201
+ }
202
+ exports.TaskManager = TaskManager;
203
+ _TaskManager_tasks = new WeakMap();
204
+ //# sourceMappingURL=WaitTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WaitTask.js","sourceRoot":"","sources":["../../../../src/common/WaitTask.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;AAGH,mEAAiE;AAEjE,2CAAyC;AAezC;;GAEG;AACH,MAAa,QAAQ;IAenB,YACE,KAAoB,EACpB,OAAwB,EACxB,EAAiD,EACjD,GAAG,IAAe;;QAlBpB,kCAAsB;QACtB,qCAAsD;QACtD,oCA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AC,CAAC;aACpD;YAED,uDAAuD;YACvD,kDAAkD;YAClD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC,EAAE;gBAC7D,OAAO;aACR;YAED,iEAAiE;YACjE,aAAa;YACb,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,uCAAuC,CAAC,EAAE;gBACnE,OAAO;aACR;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA7LD,4BA6LC;;AAED;;GAEG;AACH,MAAa,WAAW;IAAxB;QACE,6BAAwB,IAAI,GAAG,EAAY,EAAC;IAwB9C,CAAC;IAtBC,GAAG,CAAC,IAAmB;QACrB,uBAAA,IAAI,0BAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,IAAmB;QACxB,uBAAA,IAAI,0BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,YAAY,CAAC,KAAa;QACxB,KAAK,MAAM,IAAI,IAAI,uBAAA,IAAI,0BAAO,EAAE;YAC9B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;SACvB;QACD,uBAAA,IAAI,0BAAO,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,OAAO,CAAC,GAAG,CACf,CAAC,GAAG,uBAAA,IAAI,0BAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF;AAzBD,kCAyBC"}
@@ -61,14 +61,13 @@ export declare class WebWorker extends EventEmitter {
61
61
  */
62
62
  constructor(client: CDPSession, url: string, consoleAPICalled: ConsoleAPICalledCallback, exceptionThrown: ExceptionThrownCallback);
63
63
  /**
64
- * @returns The URL of this web worker.
64
+ * @internal
65
65
  */
66
- url(): string;
66
+ executionContext(): Promise<ExecutionContext>;
67
67
  /**
68
- * Returns the ExecutionContext the WebWorker runs in
69
- * @returns The ExecutionContext the web worker runs in.
68
+ * @returns The URL of this web worker.
70
69
  */
71
- executionContext(): Promise<ExecutionContext>;
70
+ url(): string;
72
71
  /**
73
72
  * If the function passed to the `worker.evaluate` returns a Promise, then
74
73
  * `worker.evaluate` would wait for the promise to resolve and return its
@@ -1 +1 @@
1
- {"version":3,"file":"WebWorker.d.ts","sourceRoot":"","sources":["../../../../src/common/WebWorker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAGvC;;GAEG;AACH,oBAAY,wBAAwB,GAAG,CACrC,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,QAAQ,EAAE,EACnB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU,KAC/B,IAAI,CAAC;AAEV;;GAEG;AACH,oBAAY,uBAAuB,GAAG,CACpC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,KACvC,IAAI,CAAC;AAIV;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,SAAU,SAAQ,YAAY;;IAMzC;;OAEG;gBAED,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,MAAM,EACX,gBAAgB,EAAE,wBAAwB,EAC1C,eAAe,EAAE,uBAAuB;IAiC1C;;OAEG;IACH,GAAG,IAAI,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E,QAAQ,CAAC,OAAO,CAAC,UAAU,KAC/B,IAAI,CAAC;AAEV;;GAEG;AACH,oBAAY,uBAAuB,GAAG,CACpC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,KACvC,IAAI,CAAC;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,SAAU,SAAQ,YAAY;;IAMzC;;OAEG;gBAED,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,MAAM,EACX,gBAAgB,EAAE,wBAAwB,EAC1C,eAAe,EAAE,uBAAuB;IA4B1C;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAInD;;OAEG;IACH,GAAG,IAAI,MAAM;IAIb;;;;;;;;;;;;;OAaG;IACG,QAAQ,CACZ,MAAM,SAAS,OAAO,EAAE,EACxB,IAAI,SAAS,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAKrC;;;;;;;;;;;OAWG;IACG,cAAc,CAClB,MAAM,SAAS,OAAO,EAAE,EACxB,IAAI,SAAS,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CAIjD"}
@@ -10,13 +10,14 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _WebWorker_client, _WebWorker_url, _WebWorker_executionContextPromise, _WebWorker_executionContextCallback;
13
+ var _WebWorker_executionContext, _WebWorker_client, _WebWorker_url;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.WebWorker = void 0;
16
16
  const EventEmitter_js_1 = require("./EventEmitter.js");
17
17
  const ExecutionContext_js_1 = require("./ExecutionContext.js");
18
18
  const JSHandle_js_1 = require("./JSHandle.js");
19
19
  const util_js_1 = require("./util.js");
20
+ const DeferredPromise_js_1 = require("../util/DeferredPromise.js");
20
21
  /**
21
22
  * This class represents a
22
23
  * {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API | WebWorker}.
@@ -49,45 +50,38 @@ class WebWorker extends EventEmitter_js_1.EventEmitter {
49
50
  */
50
51
  constructor(client, url, consoleAPICalled, exceptionThrown) {
51
52
  super();
53
+ _WebWorker_executionContext.set(this, (0, DeferredPromise_js_1.createDeferredPromise)());
52
54
  _WebWorker_client.set(this, void 0);
53
55
  _WebWorker_url.set(this, void 0);
54
- _WebWorker_executionContextPromise.set(this, void 0);
55
- _WebWorker_executionContextCallback.set(this, void 0);
56
56
  __classPrivateFieldSet(this, _WebWorker_client, client, "f");
57
57
  __classPrivateFieldSet(this, _WebWorker_url, url, "f");
58
- __classPrivateFieldSet(this, _WebWorker_executionContextPromise, new Promise(x => {
59
- return (__classPrivateFieldSet(this, _WebWorker_executionContextCallback, x, "f"));
60
- }), "f");
61
- let jsHandleFactory;
62
58
  __classPrivateFieldGet(this, _WebWorker_client, "f").once('Runtime.executionContextCreated', async (event) => {
63
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
64
- jsHandleFactory = remoteObject => {
65
- return new JSHandle_js_1.JSHandle(executionContext, client, remoteObject);
66
- };
67
- const executionContext = new ExecutionContext_js_1.ExecutionContext(client, event.context);
68
- __classPrivateFieldGet(this, _WebWorker_executionContextCallback, "f").call(this, executionContext);
59
+ const context = new ExecutionContext_js_1.ExecutionContext(client, event.context);
60
+ __classPrivateFieldGet(this, _WebWorker_executionContext, "f").resolve(context);
69
61
  });
70
- // This might fail if the target is closed before we receive all execution contexts.
71
- __classPrivateFieldGet(this, _WebWorker_client, "f").send('Runtime.enable').catch(util_js_1.debugError);
72
- __classPrivateFieldGet(this, _WebWorker_client, "f").on('Runtime.consoleAPICalled', event => {
73
- return consoleAPICalled(event.type, event.args.map(jsHandleFactory), event.stackTrace);
62
+ __classPrivateFieldGet(this, _WebWorker_client, "f").on('Runtime.consoleAPICalled', async (event) => {
63
+ const context = await __classPrivateFieldGet(this, _WebWorker_executionContext, "f");
64
+ return consoleAPICalled(event.type, event.args.map((object) => {
65
+ return new JSHandle_js_1.JSHandle(context, object);
66
+ }), event.stackTrace);
74
67
  });
75
68
  __classPrivateFieldGet(this, _WebWorker_client, "f").on('Runtime.exceptionThrown', exception => {
76
69
  return exceptionThrown(exception.exceptionDetails);
77
70
  });
71
+ // This might fail if the target is closed before we receive all execution contexts.
72
+ __classPrivateFieldGet(this, _WebWorker_client, "f").send('Runtime.enable').catch(util_js_1.debugError);
78
73
  }
79
74
  /**
80
- * @returns The URL of this web worker.
75
+ * @internal
81
76
  */
82
- url() {
83
- return __classPrivateFieldGet(this, _WebWorker_url, "f");
77
+ async executionContext() {
78
+ return __classPrivateFieldGet(this, _WebWorker_executionContext, "f");
84
79
  }
85
80
  /**
86
- * Returns the ExecutionContext the WebWorker runs in
87
- * @returns The ExecutionContext the web worker runs in.
81
+ * @returns The URL of this web worker.
88
82
  */
89
- async executionContext() {
90
- return __classPrivateFieldGet(this, _WebWorker_executionContextPromise, "f");
83
+ url() {
84
+ return __classPrivateFieldGet(this, _WebWorker_url, "f");
91
85
  }
92
86
  /**
93
87
  * If the function passed to the `worker.evaluate` returns a Promise, then
@@ -104,7 +98,8 @@ class WebWorker extends EventEmitter_js_1.EventEmitter {
104
98
  * @returns Promise which resolves to the return value of `pageFunction`.
105
99
  */
106
100
  async evaluate(pageFunction, ...args) {
107
- return (await __classPrivateFieldGet(this, _WebWorker_executionContextPromise, "f")).evaluate(pageFunction, ...args);
101
+ const context = await __classPrivateFieldGet(this, _WebWorker_executionContext, "f");
102
+ return context.evaluate(pageFunction, ...args);
108
103
  }
109
104
  /**
110
105
  * The only difference between `worker.evaluate` and `worker.evaluateHandle`
@@ -119,9 +114,10 @@ class WebWorker extends EventEmitter_js_1.EventEmitter {
119
114
  * @returns Promise which resolves to the return value of `pageFunction`.
120
115
  */
121
116
  async evaluateHandle(pageFunction, ...args) {
122
- return (await __classPrivateFieldGet(this, _WebWorker_executionContextPromise, "f")).evaluateHandle(pageFunction, ...args);
117
+ const context = await __classPrivateFieldGet(this, _WebWorker_executionContext, "f");
118
+ return context.evaluateHandle(pageFunction, ...args);
123
119
  }
124
120
  }
125
121
  exports.WebWorker = WebWorker;
126
- _WebWorker_client = new WeakMap(), _WebWorker_url = new WeakMap(), _WebWorker_executionContextPromise = new WeakMap(), _WebWorker_executionContextCallback = new WeakMap();
122
+ _WebWorker_executionContext = new WeakMap(), _WebWorker_client = new WeakMap(), _WebWorker_url = new WeakMap();
127
123
  //# sourceMappingURL=WebWorker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebWorker.js","sourceRoot":"","sources":["../../../../src/common/WebWorker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA,uDAA+C;AAC/C,+DAAuD;AACvD,+CAAuC;AACvC,uCAAqC;AAoBrC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,SAAU,SAAQ,8BAAY;IAMzC;;OAEG;IACH,YACE,MAAkB,EAClB,GAAW,EACX,gBAA0C,EAC1C,eAAwC;QAExC,KAAK,EAAE,CAAC;QAdV,oCAAoB;QACpB,iCAAa;QACb,qDAAoD;QACpD,sDAA8D;QAY5D,uBAAA,IAAI,qBAAW,MAAM,MAAA,CAAC;QACtB,uBAAA,IAAI,kBAAQ,GAAG,MAAA,CAAC;QAChB,uBAAA,IAAI,sCAA4B,IAAI,OAAO,CAAmB,C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AAC,CAAC;IACvD,CAAC;CACF;AAtGD,8BAsGC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright 2022 Google Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="node" />
17
+ import { Browser as BrowserBase, BrowserCloseCallback, BrowserContextOptions } from '../../api/Browser.js';
18
+ import { BrowserContext as BrowserContextBase } from '../../api/BrowserContext.js';
19
+ import { Connection } from './Connection.js';
20
+ import { ChildProcess } from 'child_process';
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare class Browser extends BrowserBase {
25
+ #private;
26
+ /**
27
+ * @internal
28
+ */
29
+ static create(opts: Options): Promise<Browser>;
30
+ /**
31
+ * @internal
32
+ */
33
+ constructor(opts: Options);
34
+ close(): Promise<void>;
35
+ isConnected(): boolean;
36
+ process(): ChildProcess | null;
37
+ createIncognitoBrowserContext(_options?: BrowserContextOptions): Promise<BrowserContextBase>;
38
+ }
39
+ interface Options {
40
+ process?: ChildProcess;
41
+ closeCallback?: BrowserCloseCallback;
42
+ connection: Connection;
43
+ }
44
+ export {};
45
+ //# sourceMappingURL=Browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../../src/common/bidi/Browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,cAAc,IAAI,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAG3C;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;;IACtC;;OAEG;WACU,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAUpD;;OAEG;gBACS,IAAI,EAAE,OAAO;IAOV,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,WAAW,IAAI,OAAO;IAItB,OAAO,IAAI,YAAY,GAAG,IAAI;IAIxB,6BAA6B,CAC1C,QAAQ,CAAC,EAAE,qBAAqB,GAC/B,OAAO,CAAC,kBAAkB,CAAC;CAG/B;AAED,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2022 Google Inc. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
18
+ if (kind === "m") throw new TypeError("Private method is not writable");
19
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
20
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
21
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
22
+ };
23
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
24
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
25
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
26
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
27
+ };
28
+ var _Browser_process, _Browser_closeCallback, _Browser_connection;
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.Browser = void 0;
31
+ const Browser_js_1 = require("../../api/Browser.js");
32
+ const BrowserContext_js_1 = require("./BrowserContext.js");
33
+ /**
34
+ * @internal
35
+ */
36
+ class Browser extends Browser_js_1.Browser {
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts) {
41
+ super();
42
+ _Browser_process.set(this, void 0);
43
+ _Browser_closeCallback.set(this, void 0);
44
+ _Browser_connection.set(this, void 0);
45
+ __classPrivateFieldSet(this, _Browser_process, opts.process, "f");
46
+ __classPrivateFieldSet(this, _Browser_closeCallback, opts.closeCallback, "f");
47
+ __classPrivateFieldSet(this, _Browser_connection, opts.connection, "f");
48
+ }
49
+ /**
50
+ * @internal
51
+ */
52
+ static async create(opts) {
53
+ // TODO: await until the connection is established.
54
+ (await opts.connection.send('session.new', {}));
55
+ return new Browser(opts);
56
+ }
57
+ async close() {
58
+ var _a;
59
+ await ((_a = __classPrivateFieldGet(this, _Browser_closeCallback, "f")) === null || _a === void 0 ? void 0 : _a.call(null));
60
+ __classPrivateFieldGet(this, _Browser_connection, "f").dispose();
61
+ }
62
+ isConnected() {
63
+ return !__classPrivateFieldGet(this, _Browser_connection, "f").closed;
64
+ }
65
+ process() {
66
+ var _a;
67
+ return (_a = __classPrivateFieldGet(this, _Browser_process, "f")) !== null && _a !== void 0 ? _a : null;
68
+ }
69
+ async createIncognitoBrowserContext(_options) {
70
+ return new BrowserContext_js_1.BrowserContext(__classPrivateFieldGet(this, _Browser_connection, "f"));
71
+ }
72
+ }
73
+ exports.Browser = Browser;
74
+ _Browser_process = new WeakMap(), _Browser_closeCallback = new WeakMap(), _Browser_connection = new WeakMap();
75
+ //# sourceMappingURL=Browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../../src/common/bidi/Browser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;AAEH,qDAI8B;AAI9B,2DAAmD;AAEnD;;GAEG;AACH,MAAa,OAAQ,SAAQ,oBAAW;IActC;;OAEG;IACH,YAAY,IAAa;QACvB,KAAK,EAAE,CAAC;QARV,mCAAwB;QACxB,yCAAsC;QACtC,sCAAwB;QAOtB,uBAAA,IAAI,oBAAY,IAAI,CAAC,OAAO,MAAA,CAAC;QAC7B,uBAAA,IAAI,0BAAkB,IAAI,CAAC,aAAa,MAAA,CAAC;QACzC,uBAAA,IAAI,uBAAe,IAAI,CAAC,UAAU,MAAA,CAAC;IACrC,CAAC;IArBD;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAa;QAC/B,mDAAmD;QACnD,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAwB,CAAC;QACvE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAgBQ,KAAK,CAAC,KAAK;;QAClB,MAAM,CAAA,MAAA,uBAAA,IAAI,8BAAe,0CAAE,IAAI,CAAC,IAAI,CAAC,CAAA,CAAC;QACtC,uBAAA,IAAI,2BAAY,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAEQ,WAAW;QAClB,OAAO,CAAC,uBAAA,IAAI,2BAAY,CAAC,MAAM,CAAC;IAClC,CAAC;IAEQ,OAAO;;QACd,OAAO,MAAA,uBAAA,IAAI,wBAAS,mCAAI,IAAI,CAAC;IAC/B,CAAC;IAEQ,KAAK,CAAC,6BAA6B,CAC1C,QAAgC;QAEhC,OAAO,IAAI,kCAAc,CAAC,uBAAA,IAAI,2BAAY,CAAC,CAAC;IAC9C,CAAC;CACF;AA1CD,0BA0CC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright 2022 Google Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { BrowserContext as BrowserContextBase } from '../../api/BrowserContext.js';
17
+ import { Page as PageBase } from '../../api/Page.js';
18
+ import { Connection } from './Connection.js';
19
+ /**
20
+ * @internal
21
+ */
22
+ export declare class BrowserContext extends BrowserContextBase {
23
+ #private;
24
+ constructor(connection: Connection);
25
+ newPage(): Promise<PageBase>;
26
+ close(): Promise<void>;
27
+ }
28
+ //# sourceMappingURL=BrowserContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserContext.d.ts","sourceRoot":"","sources":["../../../../../src/common/bidi/BrowserContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,cAAc,IAAI,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAC,IAAI,IAAI,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAG3C;;GAEG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;;gBAGxC,UAAU,EAAE,UAAU;IAKnB,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC;IAO5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CACtC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2022 Google Inc. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
18
+ if (kind === "m") throw new TypeError("Private method is not writable");
19
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
20
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
21
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
22
+ };
23
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
24
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
25
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
26
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
27
+ };
28
+ var _BrowserContext_connection;
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.BrowserContext = void 0;
31
+ const BrowserContext_js_1 = require("../../api/BrowserContext.js");
32
+ const Page_js_1 = require("./Page.js");
33
+ /**
34
+ * @internal
35
+ */
36
+ class BrowserContext extends BrowserContext_js_1.BrowserContext {
37
+ constructor(connection) {
38
+ super();
39
+ _BrowserContext_connection.set(this, void 0);
40
+ __classPrivateFieldSet(this, _BrowserContext_connection, connection, "f");
41
+ }
42
+ async newPage() {
43
+ const result = (await __classPrivateFieldGet(this, _BrowserContext_connection, "f").send('browsingContext.create', {
44
+ type: 'tab',
45
+ }));
46
+ return new Page_js_1.Page(__classPrivateFieldGet(this, _BrowserContext_connection, "f"), result.context);
47
+ }
48
+ async close() { }
49
+ }
50
+ exports.BrowserContext = BrowserContext;
51
+ _BrowserContext_connection = new WeakMap();
52
+ //# sourceMappingURL=BrowserContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../../src/common/bidi/BrowserContext.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;AAEH,mEAAiF;AAGjF,uCAA+B;AAE/B;;GAEG;AACH,MAAa,cAAe,SAAQ,kCAAkB;IAGpD,YAAY,UAAsB;QAChC,KAAK,EAAE,CAAC;QAHV,6CAAwB;QAItB,uBAAA,IAAI,8BAAe,UAAU,MAAA,CAAC;IAChC,CAAC;IAEQ,KAAK,CAAC,OAAO;QACpB,MAAM,MAAM,GAAG,CAAC,MAAM,uBAAA,IAAI,kCAAY,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACpE,IAAI,EAAE,KAAK;SACZ,CAAC,CAAsB,CAAC;QACzB,OAAO,IAAI,cAAI,CAAC,uBAAA,IAAI,kCAAY,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAEQ,KAAK,CAAC,KAAK,KAAmB,CAAC;CACzC;AAhBD,wCAgBC"}
@@ -13,15 +13,25 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { initializePuppeteer } from './initializePuppeteer.js';
17
- export * from './common/NetworkConditions.js';
18
- export * from './common/QueryHandler.js';
19
- export * from './common/DeviceDescriptors.js';
20
- export * from './common/Errors.js';
16
+ import { ConnectionTransport } from '../ConnectionTransport.js';
17
+ import { EventEmitter } from '../EventEmitter.js';
18
+ interface CommandResponse {
19
+ id: number;
20
+ result: object;
21
+ }
21
22
  /**
22
- * @public
23
+ * @internal
23
24
  */
24
- const puppeteer = initializePuppeteer('puppeteer');
25
- export const { connect, createBrowserFetcher, defaultArgs, executablePath, launch, } = puppeteer;
26
- export default puppeteer;
27
- //# sourceMappingURL=puppeteer.js.map
25
+ export declare class Connection extends EventEmitter {
26
+ #private;
27
+ constructor(transport: ConnectionTransport, delay?: number);
28
+ get closed(): boolean;
29
+ send(method: string, params: object): Promise<CommandResponse['result']>;
30
+ /**
31
+ * @internal
32
+ */
33
+ protected onMessage(message: string): Promise<void>;
34
+ dispose(): void;
35
+ }
36
+ export {};
37
+ //# sourceMappingURL=Connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../../src/common/bidi/Connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAC,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAUhD,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAcD;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;;gBAO9B,SAAS,EAAE,mBAAmB,EAAE,KAAK,SAAI;IASrD,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IAmBxE;;OAEG;cACa,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA+CzD,OAAO,IAAI,IAAI;CAIhB"}