chrome-devtools-frontend 1.0.1020516 → 1.0.1021582

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 (609) hide show
  1. package/config/gni/devtools_grd_files.gni +15 -10
  2. package/docs/triage_guidelines.md +9 -7
  3. package/front_end/.eslintrc.js +1 -0
  4. package/front_end/core/i18n/locales/en-US.json +123 -9
  5. package/front_end/core/i18n/locales/en-XL.json +123 -9
  6. package/front_end/core/sdk/CSSModel.ts +5 -2
  7. package/front_end/models/bindings/BreakpointManager.ts +14 -3
  8. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +8 -0
  9. package/front_end/models/bindings/ResourceScriptMapping.ts +76 -53
  10. package/front_end/panels/application/components/FrameDetailsView.ts +3 -2
  11. package/front_end/panels/application/components/Prerender2.ts +188 -0
  12. package/front_end/panels/application/components/protocolHandlersView.css +4 -0
  13. package/front_end/panels/elements/CSSRuleValidator.ts +103 -13
  14. package/front_end/panels/elements/ElementsPanel.ts +3 -0
  15. package/front_end/panels/elements/ElementsTreeElement.ts +3 -1
  16. package/front_end/panels/elements/LayoutSidebarPane.ts +1 -2
  17. package/front_end/panels/elements/StylePropertyTreeElement.ts +10 -8
  18. package/front_end/panels/elements/components/CSSHintDetailsView.ts +71 -0
  19. package/front_end/panels/elements/components/components.ts +2 -0
  20. package/front_end/panels/elements/components/cssHintDetailsView.css +36 -0
  21. package/front_end/panels/elements/stylesSectionTree.css +1 -1
  22. package/front_end/panels/network/components/RequestHeadersView.ts +2 -1
  23. package/front_end/services/puppeteer/PuppeteerConnection.ts +3 -5
  24. package/front_end/third_party/lit-html/directives.ts +1 -0
  25. package/front_end/third_party/lit-html/lit-html-tsconfig.json +1 -0
  26. package/front_end/third_party/puppeteer/package/README.md +136 -214
  27. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts +6 -6
  28. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -1
  29. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js +149 -85
  30. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js.map +1 -1
  31. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  32. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +34 -10
  33. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  34. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +17 -36
  35. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  36. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +217 -160
  37. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  38. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +5 -4
  39. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  40. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +18 -13
  41. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  42. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +4 -1
  43. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
  44. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +30 -11
  45. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
  46. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +21 -20
  47. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  48. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +125 -82
  49. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  50. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +1 -4
  51. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
  52. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js +27 -9
  53. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -1
  54. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +6 -30
  55. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  56. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +167 -131
  57. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  58. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +36 -67
  59. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +359 -215
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts +8 -4
  63. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +9 -6
  65. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +21 -2
  67. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
  68. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +26 -6
  69. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +2 -6
  71. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +32 -15
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +355 -0
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -0
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +847 -0
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -0
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.d.ts +4 -3
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.js +25 -8
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +28 -6
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +27 -7
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +20 -19
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +146 -126
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +4 -6
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +25 -10
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +53 -92
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +337 -320
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +16 -28
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +200 -147
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +1 -18
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +86 -60
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +18 -22
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +166 -117
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +46 -395
  114. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +80 -842
  116. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +4 -32
  118. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +136 -108
  120. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts +25 -7
  122. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js +23 -2
  124. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +16 -11
  126. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +39 -32
  128. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +2 -42
  130. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  131. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +315 -316
  132. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +5 -3
  134. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js +2 -2
  136. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +246 -287
  138. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  139. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +841 -700
  140. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +37 -74
  142. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +37 -89
  144. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +38 -13
  146. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +79 -29
  148. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.d.ts +1 -6
  150. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.js +31 -12
  152. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +6 -9
  154. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  155. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +80 -40
  156. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts +4 -1
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js +24 -3
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +1 -2
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.js +28 -10
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts +4 -5
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +50 -23
  168. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
  169. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +1 -1
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.js +2 -2
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +9 -11
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +41 -31
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts +4 -3
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js +6 -8
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.d.ts +5 -0
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +6 -3
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts +48 -0
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts.map +1 -0
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{EvalTypes.js → types.js} +1 -1
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.js.map +1 -0
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +129 -0
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -0
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{helper.js → util.js} +168 -87
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -0
  193. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts +3 -0
  194. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts.map +1 -1
  195. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js +3 -0
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js.map +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts +3 -0
  198. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js +3 -0
  200. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +3 -0
  202. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +3 -0
  204. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +4 -1
  206. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +4 -1
  208. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js.map +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/initialize-node.d.ts → cjs/puppeteer/initializePuppeteer.d.ts} +5 -2
  210. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +1 -0
  211. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{initialize-node.js → initializePuppeteer.js} +18 -14
  212. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +1 -0
  213. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +4 -11
  214. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  215. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +226 -158
  216. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  217. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +9 -11
  218. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  219. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +116 -72
  220. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  221. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +27 -0
  222. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -0
  223. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +176 -0
  224. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -0
  225. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +49 -0
  226. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -0
  227. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +361 -0
  228. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -0
  229. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  230. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +6 -3
  231. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  232. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +44 -12
  233. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +4 -20
  235. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
  236. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +60 -35
  237. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
  238. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts +31 -0
  239. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +1 -0
  240. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js +166 -0
  241. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js.map +1 -0
  242. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +42 -41
  243. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
  244. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +69 -47
  245. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
  246. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts +6 -0
  247. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
  248. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +55 -32
  249. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
  250. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts +10 -0
  251. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts.map +1 -0
  252. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js +40 -0
  253. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js.map +1 -0
  254. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +23 -0
  255. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -0
  256. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +41 -0
  257. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -0
  258. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts +26 -0
  259. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts.map +1 -0
  260. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js +44 -0
  261. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js.map +1 -0
  262. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +6 -5
  263. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts.map +1 -1
  264. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +6 -3
  265. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  266. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/tsconfig.cjs.tsbuildinfo +1 -0
  267. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/tsconfig.tsbuildinfo +1 -0
  268. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/api-docs-entry.js → cjs/puppeteer/types.d.ts} +46 -63
  269. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -0
  270. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{api-docs-entry.js → types.js} +50 -51
  271. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -0
  272. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts +0 -1
  273. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js +11 -12
  274. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/tsconfig.cjs.tsbuildinfo +1 -0
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +6 -6
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +149 -85
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js.map +1 -1
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +34 -10
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +17 -36
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +217 -160
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  286. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +5 -4
  287. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  288. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +16 -11
  289. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  290. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +4 -1
  291. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
  292. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +30 -11
  293. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
  294. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +21 -20
  295. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  296. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +125 -82
  297. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  298. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +1 -4
  299. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
  300. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +27 -9
  301. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -1
  302. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +6 -30
  303. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  304. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +167 -131
  305. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  306. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +36 -67
  307. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  308. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +335 -214
  309. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  310. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +8 -4
  311. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
  312. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +9 -6
  313. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
  314. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +21 -2
  315. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
  316. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +25 -5
  317. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
  318. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +2 -6
  319. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -1
  320. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +32 -15
  321. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js.map +1 -1
  322. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +355 -0
  323. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -0
  324. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +820 -0
  325. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -0
  326. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts +4 -3
  327. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -1
  328. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js +25 -8
  329. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js.map +1 -1
  330. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +28 -6
  331. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  332. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +26 -6
  333. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
  334. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
  335. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +1 -1
  336. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
  337. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +20 -19
  338. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  339. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +145 -125
  340. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
  341. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +4 -6
  342. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -1
  343. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +25 -10
  344. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js.map +1 -1
  345. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +53 -92
  346. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  347. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +337 -320
  348. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  349. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +16 -28
  350. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  351. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +199 -146
  352. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  353. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +1 -18
  354. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  355. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +86 -60
  356. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
  357. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +18 -22
  358. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
  359. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +167 -118
  360. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
  361. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +46 -395
  362. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  363. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +80 -817
  364. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  365. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +4 -32
  366. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  367. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +135 -107
  368. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  369. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts +25 -7
  370. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -1
  371. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js +23 -2
  372. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -1
  373. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +16 -11
  374. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  375. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +39 -32
  376. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
  377. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +2 -42
  378. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  379. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +312 -313
  380. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  381. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +5 -3
  382. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  383. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +1 -1
  384. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  385. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +246 -287
  386. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  387. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +819 -701
  388. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  389. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +37 -74
  390. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
  391. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +39 -91
  392. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
  393. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +38 -13
  394. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
  395. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +79 -29
  396. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
  397. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts +1 -6
  398. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -1
  399. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js +31 -12
  400. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -1
  401. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +6 -9
  402. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  403. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +80 -40
  404. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  405. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts +4 -1
  406. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -1
  407. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js +24 -3
  408. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js.map +1 -1
  409. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts +1 -2
  410. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -1
  411. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js +28 -10
  412. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -1
  413. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +4 -5
  414. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
  415. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +50 -23
  416. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
  417. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +1 -1
  418. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -1
  419. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js +1 -1
  420. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -1
  421. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +9 -11
  422. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
  423. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +41 -31
  424. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
  425. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +4 -3
  426. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
  427. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +5 -6
  428. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +1 -1
  429. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts +5 -0
  430. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts.map +1 -1
  431. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +6 -3
  432. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js.map +1 -1
  433. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts +48 -0
  434. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts.map +1 -0
  435. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{EvalTypes.js → types.js} +1 -1
  436. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.js.map +1 -0
  437. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +129 -0
  438. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -0
  439. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{helper.js → util.js} +161 -100
  440. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -0
  441. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts +3 -0
  442. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts.map +1 -1
  443. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js +3 -0
  444. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js.map +1 -1
  445. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts +3 -0
  446. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts.map +1 -1
  447. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js +3 -0
  448. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js.map +1 -1
  449. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +3 -0
  450. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
  451. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +3 -0
  452. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
  453. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +4 -1
  454. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts.map +1 -1
  455. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +4 -1
  456. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js.map +1 -1
  457. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/initialize-node.d.ts → esm/puppeteer/initializePuppeteer.d.ts} +5 -2
  458. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +1 -0
  459. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{initialize-node.js → initializePuppeteer.js} +16 -12
  460. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +1 -0
  461. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +4 -11
  462. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  463. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +226 -158
  464. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  465. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +9 -11
  466. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  467. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +113 -69
  468. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  469. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +27 -0
  470. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -0
  471. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +169 -0
  472. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -0
  473. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +49 -0
  474. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -0
  475. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/{Launcher.js → FirefoxLauncher.js} +51 -345
  476. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -0
  477. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  478. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +6 -3
  479. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  480. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +44 -12
  481. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  482. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +4 -20
  483. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
  484. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +60 -35
  485. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
  486. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts +31 -0
  487. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +1 -0
  488. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js +157 -0
  489. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js.map +1 -0
  490. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +42 -41
  491. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
  492. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +70 -45
  493. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
  494. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts +6 -0
  495. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
  496. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +53 -30
  497. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
  498. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts +10 -0
  499. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts.map +1 -0
  500. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js +13 -0
  501. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js.map +1 -0
  502. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +23 -0
  503. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -0
  504. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{node-puppeteer-core.d.ts → puppeteer-core.js} +8 -2
  505. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -0
  506. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts +26 -0
  507. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts.map +1 -0
  508. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node-puppeteer-core.d.ts → esm/puppeteer/puppeteer.js} +11 -2
  509. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.js.map +1 -0
  510. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +6 -5
  511. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts.map +1 -1
  512. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +6 -3
  513. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  514. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/tsconfig.esm.tsbuildinfo +1 -0
  515. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/tsconfig.tsbuildinfo +1 -0
  516. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +64 -0
  517. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -0
  518. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +68 -0
  519. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -0
  520. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +0 -1
  521. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +9 -10
  522. package/front_end/third_party/puppeteer/package/lib/esm/vendor/tsconfig.esm.tsbuildinfo +1 -0
  523. package/front_end/third_party/puppeteer/package/lib/types.d.ts +846 -1670
  524. package/front_end/third_party/puppeteer/package/package.json +65 -68
  525. package/front_end/third_party/puppeteer/package/typescript-if-required.js +17 -8
  526. package/front_end/third_party/puppeteer/puppeteer.ts +7 -14
  527. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +2 -5
  528. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +22 -2
  529. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +40 -12
  530. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +5 -5
  531. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +13 -10
  532. package/front_end/ui/legacy/components/object_ui/objectValue.css +4 -0
  533. package/front_end/ui/legacy/components/utils/Linkifier.ts +3 -1
  534. package/package.json +1 -1
  535. package/scripts/eslint_rules/lib/inject_checkbox_styles.js +4 -2
  536. package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +45 -5
  537. package/front_end/third_party/puppeteer/package/cjs-entry-core.js +0 -29
  538. package/front_end/third_party/puppeteer/package/cjs-entry.js +0 -29
  539. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +0 -111
  540. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts.map +0 -1
  541. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +0 -1
  542. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +0 -61
  543. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +0 -1
  544. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.js.map +0 -1
  545. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.d.ts +0 -82
  546. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.d.ts.map +0 -1
  547. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.js +0 -87
  548. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.js.map +0 -1
  549. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +0 -85
  550. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +0 -1
  551. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +0 -1
  552. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.d.ts.map +0 -1
  553. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js.map +0 -1
  554. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.d.ts +0 -18
  555. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.d.ts.map +0 -1
  556. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.js +0 -27
  557. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.js.map +0 -1
  558. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +0 -18
  559. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +0 -1
  560. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +0 -674
  561. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +0 -1
  562. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +0 -1
  563. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js +0 -25
  564. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js.map +0 -1
  565. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.d.ts +0 -18
  566. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.d.ts.map +0 -1
  567. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js +0 -24
  568. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js.map +0 -1
  569. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.d.ts +0 -18
  570. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.d.ts.map +0 -1
  571. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js +0 -24
  572. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js.map +0 -1
  573. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts.map +0 -1
  574. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js.map +0 -1
  575. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +0 -111
  576. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts.map +0 -1
  577. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.js.map +0 -1
  578. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +0 -61
  579. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +0 -1
  580. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.js.map +0 -1
  581. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts +0 -82
  582. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts.map +0 -1
  583. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js +0 -84
  584. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js.map +0 -1
  585. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +0 -85
  586. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +0 -1
  587. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +0 -1
  588. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +0 -1
  589. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js.map +0 -1
  590. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts +0 -18
  591. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts.map +0 -1
  592. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js +0 -23
  593. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js.map +0 -1
  594. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +0 -18
  595. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +0 -1
  596. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +0 -1
  597. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +0 -1
  598. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +0 -23
  599. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js.map +0 -1
  600. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts +0 -18
  601. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts.map +0 -1
  602. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +0 -22
  603. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js.map +0 -1
  604. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts +0 -18
  605. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts.map +0 -1
  606. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +0 -22
  607. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js.map +0 -1
  608. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts.map +0 -1
  609. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js.map +0 -1
@@ -14,15 +14,21 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
18
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
19
+ 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");
20
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
21
+ };
22
+ var _ExecutionContext_instances, _ExecutionContext_evaluate;
17
23
  Object.defineProperty(exports, "__esModule", { value: true });
18
24
  exports.ExecutionContext = exports.EVALUATION_SCRIPT_URL = void 0;
19
25
  const assert_js_1 = require("./assert.js");
20
- const helper_js_1 = require("./helper.js");
21
26
  const JSHandle_js_1 = require("./JSHandle.js");
27
+ const util_js_1 = require("./util.js");
22
28
  /**
23
29
  * @public
24
30
  */
25
- exports.EVALUATION_SCRIPT_URL = '__puppeteer_evaluation_script__';
31
+ exports.EVALUATION_SCRIPT_URL = 'pptr://__puppeteer_evaluation_script__';
26
32
  const SOURCE_URL_REGEX = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m;
27
33
  /**
28
34
  * This class represents a context for JavaScript execution. A [Page] might have
@@ -46,6 +52,7 @@ class ExecutionContext {
46
52
  * @internal
47
53
  */
48
54
  constructor(client, contextPayload, world) {
55
+ _ExecutionContext_instances.add(this);
49
56
  this._client = client;
50
57
  this._world = world;
51
58
  this._contextId = contextPayload.id;
@@ -75,7 +82,7 @@ class ExecutionContext {
75
82
  *
76
83
  *
77
84
  * @example
78
- * ```js
85
+ * ```ts
79
86
  * const executionContext = await page.mainFrame().executionContext();
80
87
  * const result = await executionContext.evaluate(() => Promise.resolve(8 * 7))* ;
81
88
  * console.log(result); // prints "56"
@@ -84,14 +91,14 @@ class ExecutionContext {
84
91
  * @example
85
92
  * A string can also be passed in instead of a function.
86
93
  *
87
- * ```js
94
+ * ```ts
88
95
  * console.log(await executionContext.evaluate('1 + 2')); // prints "3"
89
96
  * ```
90
97
  *
91
98
  * @example
92
99
  * {@link JSHandle} instances can be passed as arguments to the
93
100
  * `executionContext.* evaluate`:
94
- * ```js
101
+ * ```ts
95
102
  * const oneHandle = await executionContext.evaluateHandle(() => 1);
96
103
  * const twoHandle = await executionContext.evaluateHandle(() => 2);
97
104
  * const result = await executionContext.evaluate(
@@ -107,7 +114,7 @@ class ExecutionContext {
107
114
  * @returns A promise that resolves to the return value of the given function.
108
115
  */
109
116
  async evaluate(pageFunction, ...args) {
110
- return await this._evaluateInternal(true, pageFunction, ...args);
117
+ return await __classPrivateFieldGet(this, _ExecutionContext_instances, "m", _ExecutionContext_evaluate).call(this, true, pageFunction, ...args);
111
118
  }
112
119
  /**
113
120
  * @remarks
@@ -119,7 +126,7 @@ class ExecutionContext {
119
126
  * promise to resolve and return its value.
120
127
  *
121
128
  * @example
122
- * ```js
129
+ * ```ts
123
130
  * const context = await page.mainFrame().executionContext();
124
131
  * const aHandle = await context.evaluateHandle(() => Promise.resolve(self));
125
132
  * aHandle; // Handle for the global object.
@@ -128,7 +135,7 @@ class ExecutionContext {
128
135
  * @example
129
136
  * A string can also be passed in instead of a function.
130
137
  *
131
- * ```js
138
+ * ```ts
132
139
  * // Handle for the '3' * object.
133
140
  * const aHandle = await context.evaluateHandle('1 + 2');
134
141
  * ```
@@ -137,7 +144,7 @@ class ExecutionContext {
137
144
  * JSHandle instances can be passed as arguments
138
145
  * to the `executionContext.* evaluateHandle`:
139
146
  *
140
- * ```js
147
+ * ```ts
141
148
  * const aHandle = await context.evaluateHandle(() => document.body);
142
149
  * const resultHandle = await context.evaluateHandle(body => body.innerHTML, * aHandle);
143
150
  * console.log(await resultHandle.jsonValue()); // prints body's innerHTML
@@ -152,126 +159,14 @@ class ExecutionContext {
152
159
  * as an in-page object (a {@link JSHandle}).
153
160
  */
154
161
  async evaluateHandle(pageFunction, ...args) {
155
- return this._evaluateInternal(false, pageFunction, ...args);
156
- }
157
- async _evaluateInternal(returnByValue, pageFunction, ...args) {
158
- const suffix = `//# sourceURL=${exports.EVALUATION_SCRIPT_URL}`;
159
- if (helper_js_1.helper.isString(pageFunction)) {
160
- const contextId = this._contextId;
161
- const expression = pageFunction;
162
- const expressionWithSourceUrl = SOURCE_URL_REGEX.test(expression)
163
- ? expression
164
- : expression + '\n' + suffix;
165
- const { exceptionDetails, result: remoteObject } = await this._client
166
- .send('Runtime.evaluate', {
167
- expression: expressionWithSourceUrl,
168
- contextId,
169
- returnByValue,
170
- awaitPromise: true,
171
- userGesture: true,
172
- })
173
- .catch(rewriteError);
174
- if (exceptionDetails)
175
- throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
176
- return returnByValue
177
- ? helper_js_1.helper.valueFromRemoteObject(remoteObject)
178
- : (0, JSHandle_js_1.createJSHandle)(this, remoteObject);
179
- }
180
- if (typeof pageFunction !== 'function')
181
- throw new Error(`Expected to get |string| or |function| as the first argument, but got "${pageFunction}" instead.`);
182
- let functionText = pageFunction.toString();
183
- try {
184
- new Function('(' + functionText + ')');
185
- }
186
- catch (error) {
187
- // This means we might have a function shorthand. Try another
188
- // time prefixing 'function '.
189
- if (functionText.startsWith('async '))
190
- functionText =
191
- 'async function ' + functionText.substring('async '.length);
192
- else
193
- functionText = 'function ' + functionText;
194
- try {
195
- new Function('(' + functionText + ')');
196
- }
197
- catch (error) {
198
- // We tried hard to serialize, but there's a weird beast here.
199
- throw new Error('Passed function is not well-serializable!');
200
- }
201
- }
202
- let callFunctionOnPromise;
203
- try {
204
- callFunctionOnPromise = this._client.send('Runtime.callFunctionOn', {
205
- functionDeclaration: functionText + '\n' + suffix + '\n',
206
- executionContextId: this._contextId,
207
- arguments: args.map(convertArgument.bind(this)),
208
- returnByValue,
209
- awaitPromise: true,
210
- userGesture: true,
211
- });
212
- }
213
- catch (error) {
214
- if (error instanceof TypeError &&
215
- error.message.startsWith('Converting circular structure to JSON'))
216
- error.message += ' Are you passing a nested JSHandle?';
217
- throw error;
218
- }
219
- const { exceptionDetails, result: remoteObject } = await callFunctionOnPromise.catch(rewriteError);
220
- if (exceptionDetails)
221
- throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
222
- return returnByValue
223
- ? helper_js_1.helper.valueFromRemoteObject(remoteObject)
224
- : (0, JSHandle_js_1.createJSHandle)(this, remoteObject);
225
- /**
226
- * @param {*} arg
227
- * @returns {*}
228
- * @this {ExecutionContext}
229
- */
230
- function convertArgument(arg) {
231
- if (typeof arg === 'bigint')
232
- // eslint-disable-line valid-typeof
233
- return { unserializableValue: `${arg.toString()}n` };
234
- if (Object.is(arg, -0))
235
- return { unserializableValue: '-0' };
236
- if (Object.is(arg, Infinity))
237
- return { unserializableValue: 'Infinity' };
238
- if (Object.is(arg, -Infinity))
239
- return { unserializableValue: '-Infinity' };
240
- if (Object.is(arg, NaN))
241
- return { unserializableValue: 'NaN' };
242
- const objectHandle = arg && arg instanceof JSHandle_js_1.JSHandle ? arg : null;
243
- if (objectHandle) {
244
- if (objectHandle._context !== this)
245
- throw new Error('JSHandles can be evaluated only in the context they were created!');
246
- if (objectHandle._disposed)
247
- throw new Error('JSHandle is disposed!');
248
- if (objectHandle._remoteObject.unserializableValue)
249
- return {
250
- unserializableValue: objectHandle._remoteObject.unserializableValue,
251
- };
252
- if (!objectHandle._remoteObject.objectId)
253
- return { value: objectHandle._remoteObject.value };
254
- return { objectId: objectHandle._remoteObject.objectId };
255
- }
256
- return { value: arg };
257
- }
258
- function rewriteError(error) {
259
- if (error.message.includes('Object reference chain is too long'))
260
- return { result: { type: 'undefined' } };
261
- if (error.message.includes("Object couldn't be returned by value"))
262
- return { result: { type: 'undefined' } };
263
- if (error.message.endsWith('Cannot find context with specified id') ||
264
- error.message.endsWith('Inspected target navigated or closed'))
265
- throw new Error('Execution context was destroyed, most likely because of a navigation.');
266
- throw error;
267
- }
162
+ return __classPrivateFieldGet(this, _ExecutionContext_instances, "m", _ExecutionContext_evaluate).call(this, false, pageFunction, ...args);
268
163
  }
269
164
  /**
270
165
  * This method iterates the JavaScript heap and finds all the objects with the
271
166
  * given prototype.
272
167
  * @remarks
273
168
  * @example
274
- * ```js
169
+ * ```ts
275
170
  * // Create a Map object
276
171
  * await page.evaluate(() => window.map = new Map());
277
172
  * // Get a handle to the Map object prototype
@@ -294,7 +189,7 @@ class ExecutionContext {
294
189
  const response = await this._client.send('Runtime.queryObjects', {
295
190
  prototypeObjectId: prototypeHandle._remoteObject.objectId,
296
191
  });
297
- return (0, JSHandle_js_1.createJSHandle)(this, response.objects);
192
+ return (0, util_js_1.createJSHandle)(this, response.objects);
298
193
  }
299
194
  /**
300
195
  * @internal
@@ -304,7 +199,7 @@ class ExecutionContext {
304
199
  backendNodeId: backendNodeId,
305
200
  executionContextId: this._contextId,
306
201
  });
307
- return (0, JSHandle_js_1.createJSHandle)(this, object);
202
+ return (0, util_js_1.createJSHandle)(this, object);
308
203
  }
309
204
  /**
310
205
  * @internal
@@ -315,8 +210,133 @@ class ExecutionContext {
315
210
  const nodeInfo = await this._client.send('DOM.describeNode', {
316
211
  objectId: elementHandle._remoteObject.objectId,
317
212
  });
318
- return this._adoptBackendNodeId(nodeInfo.node.backendNodeId);
213
+ return (await this._adoptBackendNodeId(nodeInfo.node.backendNodeId));
319
214
  }
320
215
  }
321
216
  exports.ExecutionContext = ExecutionContext;
217
+ _ExecutionContext_instances = new WeakSet(), _ExecutionContext_evaluate = async function _ExecutionContext_evaluate(returnByValue, pageFunction, ...args) {
218
+ const suffix = `//# sourceURL=${exports.EVALUATION_SCRIPT_URL}`;
219
+ if ((0, util_js_1.isString)(pageFunction)) {
220
+ const contextId = this._contextId;
221
+ const expression = pageFunction;
222
+ const expressionWithSourceUrl = SOURCE_URL_REGEX.test(expression)
223
+ ? expression
224
+ : expression + '\n' + suffix;
225
+ const { exceptionDetails, result: remoteObject } = await this._client
226
+ .send('Runtime.evaluate', {
227
+ expression: expressionWithSourceUrl,
228
+ contextId,
229
+ returnByValue,
230
+ awaitPromise: true,
231
+ userGesture: true,
232
+ })
233
+ .catch(rewriteError);
234
+ if (exceptionDetails) {
235
+ throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
236
+ }
237
+ return returnByValue
238
+ ? (0, util_js_1.valueFromRemoteObject)(remoteObject)
239
+ : (0, util_js_1.createJSHandle)(this, remoteObject);
240
+ }
241
+ if (typeof pageFunction !== 'function') {
242
+ throw new Error(`Expected to get |string| or |function| as the first argument, but got "${pageFunction}" instead.`);
243
+ }
244
+ let functionText = pageFunction.toString();
245
+ try {
246
+ new Function('(' + functionText + ')');
247
+ }
248
+ catch (error) {
249
+ // This means we might have a function shorthand. Try another
250
+ // time prefixing 'function '.
251
+ if (functionText.startsWith('async ')) {
252
+ functionText =
253
+ 'async function ' + functionText.substring('async '.length);
254
+ }
255
+ else {
256
+ functionText = 'function ' + functionText;
257
+ }
258
+ try {
259
+ new Function('(' + functionText + ')');
260
+ }
261
+ catch (error) {
262
+ // We tried hard to serialize, but there's a weird beast here.
263
+ throw new Error('Passed function is not well-serializable!');
264
+ }
265
+ }
266
+ let callFunctionOnPromise;
267
+ try {
268
+ callFunctionOnPromise = this._client.send('Runtime.callFunctionOn', {
269
+ functionDeclaration: functionText + '\n' + suffix + '\n',
270
+ executionContextId: this._contextId,
271
+ arguments: args.map(convertArgument.bind(this)),
272
+ returnByValue,
273
+ awaitPromise: true,
274
+ userGesture: true,
275
+ });
276
+ }
277
+ catch (error) {
278
+ if (error instanceof TypeError &&
279
+ error.message.startsWith('Converting circular structure to JSON')) {
280
+ error.message += ' Recursive objects are not allowed.';
281
+ }
282
+ throw error;
283
+ }
284
+ const { exceptionDetails, result: remoteObject } = await callFunctionOnPromise.catch(rewriteError);
285
+ if (exceptionDetails) {
286
+ throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
287
+ }
288
+ return returnByValue
289
+ ? (0, util_js_1.valueFromRemoteObject)(remoteObject)
290
+ : (0, util_js_1.createJSHandle)(this, remoteObject);
291
+ function convertArgument(arg) {
292
+ if (typeof arg === 'bigint') {
293
+ // eslint-disable-line valid-typeof
294
+ return { unserializableValue: `${arg.toString()}n` };
295
+ }
296
+ if (Object.is(arg, -0)) {
297
+ return { unserializableValue: '-0' };
298
+ }
299
+ if (Object.is(arg, Infinity)) {
300
+ return { unserializableValue: 'Infinity' };
301
+ }
302
+ if (Object.is(arg, -Infinity)) {
303
+ return { unserializableValue: '-Infinity' };
304
+ }
305
+ if (Object.is(arg, NaN)) {
306
+ return { unserializableValue: 'NaN' };
307
+ }
308
+ const objectHandle = arg && arg instanceof JSHandle_js_1.JSHandle ? arg : null;
309
+ if (objectHandle) {
310
+ if (objectHandle._context !== this) {
311
+ throw new Error('JSHandles can be evaluated only in the context they were created!');
312
+ }
313
+ if (objectHandle._disposed) {
314
+ throw new Error('JSHandle is disposed!');
315
+ }
316
+ if (objectHandle._remoteObject.unserializableValue) {
317
+ return {
318
+ unserializableValue: objectHandle._remoteObject.unserializableValue,
319
+ };
320
+ }
321
+ if (!objectHandle._remoteObject.objectId) {
322
+ return { value: objectHandle._remoteObject.value };
323
+ }
324
+ return { objectId: objectHandle._remoteObject.objectId };
325
+ }
326
+ return { value: arg };
327
+ }
328
+ function rewriteError(error) {
329
+ if (error.message.includes('Object reference chain is too long')) {
330
+ return { result: { type: 'undefined' } };
331
+ }
332
+ if (error.message.includes("Object couldn't be returned by value")) {
333
+ return { result: { type: 'undefined' } };
334
+ }
335
+ if (error.message.endsWith('Cannot find context with specified id') ||
336
+ error.message.endsWith('Inspected target navigated or closed')) {
337
+ throw new Error('Execution context was destroyed, most likely because of a navigation.');
338
+ }
339
+ throw error;
340
+ }
341
+ };
322
342
  //# sourceMappingURL=ExecutionContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExecutionContext.js","sourceRoot":"","sources":["../../../../src/common/ExecutionContext.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,2CAAqC;AACrC,2CAAqC;AACrC,+CAAwE;AAMxE;;GAEG;AACU,QAAA,qBAAqB,GAAG,iCAAiC,CAAC;AACvE,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AAEvE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,gBAAgB;IAkB3B;;OAEG;I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"}
@@ -13,15 +13,15 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ElementHandle } from './JSHandle.js';
17
16
  import { Protocol } from 'devtools-protocol';
17
+ import { ElementHandle } from './ElementHandle.js';
18
18
  /**
19
19
  * File choosers let you react to the page requesting for a file.
20
20
  * @remarks
21
21
  * `FileChooser` objects are returned via the `page.waitForFileChooser` method.
22
22
  * @example
23
23
  * An example of using `FileChooser`:
24
- * ```js
24
+ * ```ts
25
25
  * const [fileChooser] = await Promise.all([
26
26
  * page.waitForFileChooser(),
27
27
  * page.click('#upload-file-button'), // some button that triggers file selection
@@ -34,13 +34,11 @@ import { Protocol } from 'devtools-protocol';
34
34
  * @public
35
35
  */
36
36
  export declare class FileChooser {
37
- private _element;
38
- private _multiple;
39
- private _handled;
37
+ #private;
40
38
  /**
41
39
  * @internal
42
40
  */
43
- constructor(element: ElementHandle, event: Protocol.Page.FileChooserOpenedEvent);
41
+ constructor(element: ElementHandle<HTMLInputElement>, event: Protocol.Page.FileChooserOpenedEvent);
44
42
  /**
45
43
  * Whether file chooser allow for {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-multiple | multiple} file selection.
46
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"FileChooser.d.ts","sourceRoot":"","sources":["../../../../src/common/FileChooser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;gBAED,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,sBAAsB;IAM7C;;OAEG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACH,MAAM,IAAI,IAAI;CAOf"}
1
+ {"version":3,"file":"FileChooser.d.ts","sourceRoot":"","sources":["../../../../src/common/FileChooser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,WAAW;;IAKtB;;OAEG;gBAED,OAAO,EAAE,aAAa,CAAC,gBAAgB,CAAC,EACxC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,sBAAsB;IAM7C;;OAEG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACH,MAAM,IAAI,IAAI;CAOf"}
@@ -14,6 +14,18 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
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 _FileChooser_element, _FileChooser_multiple, _FileChooser_handled;
17
29
  Object.defineProperty(exports, "__esModule", { value: true });
18
30
  exports.FileChooser = void 0;
19
31
  const assert_js_1 = require("./assert.js");
@@ -23,7 +35,7 @@ const assert_js_1 = require("./assert.js");
23
35
  * `FileChooser` objects are returned via the `page.waitForFileChooser` method.
24
36
  * @example
25
37
  * An example of using `FileChooser`:
26
- * ```js
38
+ * ```ts
27
39
  * const [fileChooser] = await Promise.all([
28
40
  * page.waitForFileChooser(),
29
41
  * page.click('#upload-file-button'), // some button that triggers file selection
@@ -40,15 +52,17 @@ class FileChooser {
40
52
  * @internal
41
53
  */
42
54
  constructor(element, event) {
43
- this._handled = false;
44
- this._element = element;
45
- this._multiple = event.mode !== 'selectSingle';
55
+ _FileChooser_element.set(this, void 0);
56
+ _FileChooser_multiple.set(this, void 0);
57
+ _FileChooser_handled.set(this, false);
58
+ __classPrivateFieldSet(this, _FileChooser_element, element, "f");
59
+ __classPrivateFieldSet(this, _FileChooser_multiple, event.mode !== 'selectSingle', "f");
46
60
  }
47
61
  /**
48
62
  * Whether file chooser allow for {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-multiple | multiple} file selection.
49
63
  */
50
64
  isMultiple() {
51
- return this._multiple;
65
+ return __classPrivateFieldGet(this, _FileChooser_multiple, "f");
52
66
  }
53
67
  /**
54
68
  * Accept the file chooser request with given paths.
@@ -56,17 +70,18 @@ class FileChooser {
56
70
  * then they are resolved relative to the {@link https://nodejs.org/api/process.html#process_process_cwd | current working directory}.
57
71
  */
58
72
  async accept(filePaths) {
59
- (0, assert_js_1.assert)(!this._handled, 'Cannot accept FileChooser which is already handled!');
60
- this._handled = true;
61
- await this._element.uploadFile(...filePaths);
73
+ (0, assert_js_1.assert)(!__classPrivateFieldGet(this, _FileChooser_handled, "f"), 'Cannot accept FileChooser which is already handled!');
74
+ __classPrivateFieldSet(this, _FileChooser_handled, true, "f");
75
+ await __classPrivateFieldGet(this, _FileChooser_element, "f").uploadFile(...filePaths);
62
76
  }
63
77
  /**
64
78
  * Closes the file chooser without selecting any files.
65
79
  */
66
80
  cancel() {
67
- (0, assert_js_1.assert)(!this._handled, 'Cannot cancel FileChooser which is already handled!');
68
- this._handled = true;
81
+ (0, assert_js_1.assert)(!__classPrivateFieldGet(this, _FileChooser_handled, "f"), 'Cannot cancel FileChooser which is already handled!');
82
+ __classPrivateFieldSet(this, _FileChooser_handled, true, "f");
69
83
  }
70
84
  }
71
85
  exports.FileChooser = FileChooser;
86
+ _FileChooser_element = new WeakMap(), _FileChooser_multiple = new WeakMap(), _FileChooser_handled = new WeakMap();
72
87
  //# sourceMappingURL=FileChooser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileChooser.js","sourceRoot":"","sources":["../../../../src/common/FileChooser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2CAAqC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,WAAW;IAKtB;;OAEG;IACH,YACE,OAAsB,EACtB,KAA2C;QAPrC,aAAQ,GAAG,KAAK,CAAC;QASvB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,KAAK,cAAc,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,SAAmB;QAC9B,IAAA,kBAAM,EACJ,CAAC,IAAI,CAAC,QAAQ,EACd,qDAAqD,CACtD,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,MAAM;QACJ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