chrome-devtools-frontend 1.0.943182 → 1.0.944903

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 (382) hide show
  1. package/config/gni/devtools_grd_files.gni +3 -0
  2. package/front_end/core/common/ParsedURL.ts +1 -1
  3. package/front_end/core/host/InspectorFrontendHostAPI.ts +5 -5
  4. package/front_end/core/host/UserMetrics.ts +0 -1
  5. package/front_end/core/i18n/locales/af.json +455 -44
  6. package/front_end/core/i18n/locales/am.json +455 -44
  7. package/front_end/core/i18n/locales/ar.json +455 -44
  8. package/front_end/core/i18n/locales/as.json +455 -44
  9. package/front_end/core/i18n/locales/az.json +455 -44
  10. package/front_end/core/i18n/locales/be.json +456 -45
  11. package/front_end/core/i18n/locales/bg.json +455 -44
  12. package/front_end/core/i18n/locales/bn.json +455 -44
  13. package/front_end/core/i18n/locales/bs.json +455 -44
  14. package/front_end/core/i18n/locales/ca.json +457 -46
  15. package/front_end/core/i18n/locales/cs.json +458 -47
  16. package/front_end/core/i18n/locales/cy.json +455 -44
  17. package/front_end/core/i18n/locales/da.json +455 -44
  18. package/front_end/core/i18n/locales/de.json +455 -44
  19. package/front_end/core/i18n/locales/el.json +455 -44
  20. package/front_end/core/i18n/locales/en-GB.json +449 -38
  21. package/front_end/core/i18n/locales/en-US.json +10 -34
  22. package/front_end/core/i18n/locales/en-XL.json +22 -46
  23. package/front_end/core/i18n/locales/es-419.json +455 -44
  24. package/front_end/core/i18n/locales/es.json +455 -44
  25. package/front_end/core/i18n/locales/et.json +455 -44
  26. package/front_end/core/i18n/locales/eu.json +462 -51
  27. package/front_end/core/i18n/locales/fa.json +455 -44
  28. package/front_end/core/i18n/locales/fi.json +455 -44
  29. package/front_end/core/i18n/locales/fil.json +454 -43
  30. package/front_end/core/i18n/locales/fr-CA.json +455 -44
  31. package/front_end/core/i18n/locales/fr.json +456 -45
  32. package/front_end/core/i18n/locales/gl.json +455 -44
  33. package/front_end/core/i18n/locales/gu.json +456 -45
  34. package/front_end/core/i18n/locales/he.json +455 -44
  35. package/front_end/core/i18n/locales/hi.json +455 -44
  36. package/front_end/core/i18n/locales/hr.json +455 -44
  37. package/front_end/core/i18n/locales/hu.json +455 -44
  38. package/front_end/core/i18n/locales/hy.json +455 -44
  39. package/front_end/core/i18n/locales/id.json +455 -44
  40. package/front_end/core/i18n/locales/is.json +455 -44
  41. package/front_end/core/i18n/locales/it.json +502 -91
  42. package/front_end/core/i18n/locales/ja.json +456 -45
  43. package/front_end/core/i18n/locales/ka.json +455 -44
  44. package/front_end/core/i18n/locales/kk.json +456 -45
  45. package/front_end/core/i18n/locales/km.json +455 -44
  46. package/front_end/core/i18n/locales/kn.json +455 -44
  47. package/front_end/core/i18n/locales/ko.json +455 -44
  48. package/front_end/core/i18n/locales/ky.json +456 -45
  49. package/front_end/core/i18n/locales/lo.json +454 -43
  50. package/front_end/core/i18n/locales/lt.json +455 -44
  51. package/front_end/core/i18n/locales/lv.json +458 -47
  52. package/front_end/core/i18n/locales/mk.json +455 -44
  53. package/front_end/core/i18n/locales/ml.json +461 -50
  54. package/front_end/core/i18n/locales/mn.json +455 -44
  55. package/front_end/core/i18n/locales/mr.json +455 -44
  56. package/front_end/core/i18n/locales/ms.json +455 -44
  57. package/front_end/core/i18n/locales/my.json +456 -45
  58. package/front_end/core/i18n/locales/ne.json +456 -45
  59. package/front_end/core/i18n/locales/nl.json +532 -121
  60. package/front_end/core/i18n/locales/no.json +455 -44
  61. package/front_end/core/i18n/locales/or.json +455 -44
  62. package/front_end/core/i18n/locales/pa.json +455 -44
  63. package/front_end/core/i18n/locales/pl.json +455 -44
  64. package/front_end/core/i18n/locales/pt-PT.json +504 -93
  65. package/front_end/core/i18n/locales/pt.json +454 -43
  66. package/front_end/core/i18n/locales/ro.json +455 -44
  67. package/front_end/core/i18n/locales/ru.json +455 -44
  68. package/front_end/core/i18n/locales/si.json +455 -44
  69. package/front_end/core/i18n/locales/sk.json +456 -45
  70. package/front_end/core/i18n/locales/sl.json +455 -44
  71. package/front_end/core/i18n/locales/sq.json +455 -44
  72. package/front_end/core/i18n/locales/sr-Latn.json +455 -44
  73. package/front_end/core/i18n/locales/sr.json +455 -44
  74. package/front_end/core/i18n/locales/sv.json +456 -45
  75. package/front_end/core/i18n/locales/sw.json +455 -44
  76. package/front_end/core/i18n/locales/ta.json +456 -45
  77. package/front_end/core/i18n/locales/te.json +454 -43
  78. package/front_end/core/i18n/locales/th.json +455 -44
  79. package/front_end/core/i18n/locales/tr.json +455 -44
  80. package/front_end/core/i18n/locales/uk.json +455 -44
  81. package/front_end/core/i18n/locales/ur.json +455 -44
  82. package/front_end/core/i18n/locales/uz.json +455 -44
  83. package/front_end/core/i18n/locales/vi.json +455 -44
  84. package/front_end/core/i18n/locales/zh-HK.json +459 -48
  85. package/front_end/core/i18n/locales/zh-TW.json +457 -46
  86. package/front_end/core/i18n/locales/zh.json +460 -49
  87. package/front_end/core/i18n/locales/zu.json +455 -44
  88. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  89. package/front_end/core/protocol_client/NodeURL.ts +1 -0
  90. package/front_end/core/sdk/AccessibilityModel.ts +99 -78
  91. package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
  92. package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
  93. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
  94. package/front_end/core/sdk/Cookie.ts +17 -0
  95. package/front_end/core/sdk/CookieModel.ts +1 -0
  96. package/front_end/core/sdk/DebuggerModel.ts +5 -4
  97. package/front_end/core/sdk/NetworkManager.ts +6 -0
  98. package/front_end/core/sdk/NetworkRequest.ts +2 -2
  99. package/front_end/core/sdk/OverlayModel.ts +0 -9
  100. package/front_end/core/sdk/Resource.ts +2 -2
  101. package/front_end/core/sdk/Script.ts +2 -7
  102. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
  103. package/front_end/core/sdk/sdk-meta.ts +0 -26
  104. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
  105. package/front_end/entrypoints/main/MainImpl.ts +2 -4
  106. package/front_end/generated/InspectorBackendCommands.js +3 -1
  107. package/front_end/generated/protocol-mapping.d.ts +1 -0
  108. package/front_end/generated/protocol-proxy-api.d.ts +2 -0
  109. package/front_end/generated/protocol.d.ts +40 -0
  110. package/front_end/models/bindings/BreakpointManager.ts +3 -4
  111. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
  112. package/front_end/models/bindings/ResourceMapping.ts +1 -2
  113. package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
  114. package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
  115. package/front_end/models/formatter/SourceFormatter.ts +0 -15
  116. package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
  117. package/front_end/models/persistence/IsolatedFileSystemManager.ts +10 -6
  118. package/front_end/models/persistence/PersistenceActions.ts +4 -1
  119. package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
  120. package/front_end/models/text_utils/ContentProvider.ts +1 -2
  121. package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
  122. package/front_end/models/timeline_model/TimelineJSProfile.ts +3 -16
  123. package/front_end/models/timeline_model/TimelineModel.ts +0 -1
  124. package/front_end/models/workspace/UISourceCode.ts +2 -2
  125. package/front_end/panels/animation/animationTimeline.css +2 -0
  126. package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
  127. package/front_end/panels/application/BackForwardCacheView.ts +26 -26
  128. package/front_end/panels/application/ReportingApiView.ts +15 -1
  129. package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
  130. package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
  131. package/front_end/panels/console/ConsolePinPane.ts +1 -0
  132. package/front_end/panels/console/ConsolePrompt.ts +121 -171
  133. package/front_end/panels/console/ConsoleView.ts +1 -1
  134. package/front_end/panels/console/consoleView.css +1 -1
  135. package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
  136. package/front_end/panels/elements/AccessibilityTreeUtils.ts +98 -67
  137. package/front_end/panels/elements/AccessibilityTreeView.ts +76 -125
  138. package/front_end/panels/elements/ElementsPanel.ts +6 -7
  139. package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
  140. package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
  141. package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
  142. package/front_end/panels/elements/StylePropertyTreeElement.ts +7 -4
  143. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  144. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
  145. package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
  146. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
  147. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
  148. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  149. package/front_end/panels/sources/NavigatorView.ts +1 -1
  150. package/front_end/panels/sources/Plugin.ts +0 -3
  151. package/front_end/panels/sources/UISourceCodeFrame.ts +23 -50
  152. package/front_end/panels/timeline/TimelineController.ts +0 -3
  153. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
  154. package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
  155. package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
  156. package/front_end/services/window_bounds/window_bounds.ts +9 -0
  157. package/front_end/third_party/codemirror.next/bundle.ts +4 -3
  158. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  159. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +39 -1
  160. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  161. package/front_end/third_party/codemirror.next/package.json +3 -3
  162. package/front_end/third_party/lit-html/README.chromium +2 -2
  163. package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
  164. package/front_end/third_party/lit-html/package/LICENSE +9 -9
  165. package/front_end/third_party/lit-html/package/README.md +12 -162
  166. package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
  167. package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
  168. package/front_end/third_party/lit-html/package/async-directive.js +2 -7
  169. package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
  170. package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
  171. package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
  172. package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
  173. package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
  174. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
  175. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
  176. package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
  177. package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
  178. package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
  179. package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
  180. package/front_end/third_party/lit-html/package/development/directive.js +6 -1
  181. package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
  182. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
  183. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
  184. package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
  185. package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
  186. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
  187. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
  188. package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
  189. package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
  190. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
  191. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
  192. package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
  193. package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
  194. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
  195. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
  196. package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
  197. package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
  198. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
  199. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
  200. package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
  201. package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
  202. package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
  203. package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
  204. package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
  205. package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
  206. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
  207. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
  208. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
  209. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
  210. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
  211. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
  212. package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
  213. package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
  214. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
  215. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
  216. package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
  217. package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
  218. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
  219. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
  220. package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
  221. package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
  222. package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
  223. package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
  224. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
  225. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
  226. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
  227. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
  228. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
  229. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
  230. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
  231. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
  232. package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
  233. package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
  234. package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
  235. package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
  236. package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
  237. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
  238. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
  239. package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
  240. package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
  241. package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
  242. package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
  243. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
  244. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
  245. package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
  246. package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
  247. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
  248. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
  249. package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
  250. package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
  251. package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
  252. package/front_end/third_party/lit-html/package/development/static.js +6 -5
  253. package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
  254. package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
  255. package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
  256. package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
  257. package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
  258. package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
  259. package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
  260. package/front_end/third_party/lit-html/package/directive.js +1 -1
  261. package/front_end/third_party/lit-html/package/directive.js.map +1 -1
  262. package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
  263. package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
  264. package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
  265. package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
  266. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
  267. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
  268. package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
  269. package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
  270. package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
  271. package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
  272. package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
  273. package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
  274. package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
  275. package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
  276. package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
  277. package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
  278. package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
  279. package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
  280. package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
  281. package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
  282. package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
  283. package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
  284. package/front_end/third_party/lit-html/package/directives/live.js +1 -4
  285. package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
  286. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
  287. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
  288. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
  289. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
  290. package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
  291. package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
  292. package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
  293. package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
  294. package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
  295. package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
  296. package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
  297. package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
  298. package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
  299. package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
  300. package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
  301. package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
  302. package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
  303. package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
  304. package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
  305. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
  306. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
  307. package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
  308. package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
  309. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
  310. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
  311. package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
  312. package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
  313. package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
  314. package/front_end/third_party/lit-html/package/directives/until.js +2 -6
  315. package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
  316. package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
  317. package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
  318. package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
  319. package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
  320. package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
  321. package/front_end/third_party/lit-html/package/lit-html.js +1 -1
  322. package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
  323. package/front_end/third_party/lit-html/package/package.json +75 -24
  324. package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
  325. package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
  326. package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
  327. package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
  328. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
  329. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
  330. package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
  331. package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
  332. package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
  333. package/front_end/third_party/lit-html/package/static.js +1 -1
  334. package/front_end/third_party/lit-html/package/static.js.map +1 -1
  335. package/front_end/third_party/marked/README.chromium +2 -2
  336. package/front_end/third_party/marked/marked.ts +2 -2
  337. package/front_end/third_party/marked/package/README.md +7 -1
  338. package/front_end/third_party/marked/package/bin/marked.js +214 -0
  339. package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
  340. package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
  341. package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
  342. package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
  343. package/front_end/third_party/marked/package/man/marked.1 +5 -24
  344. package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
  345. package/front_end/third_party/marked/package/marked.min.js +1 -1
  346. package/front_end/third_party/marked/package/package.json +41 -32
  347. package/front_end/third_party/marked/package/src/Lexer.js +109 -108
  348. package/front_end/third_party/marked/package/src/Parser.js +38 -15
  349. package/front_end/third_party/marked/package/src/Renderer.js +5 -5
  350. package/front_end/third_party/marked/package/src/Slugger.js +2 -2
  351. package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
  352. package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
  353. package/front_end/third_party/marked/package/src/defaults.js +6 -9
  354. package/front_end/third_party/marked/package/src/helpers.js +16 -27
  355. package/front_end/third_party/marked/package/src/marked.js +146 -63
  356. package/front_end/third_party/marked/package/src/rules.js +20 -45
  357. package/front_end/third_party/wasmparser/README.chromium +2 -2
  358. package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
  359. package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
  360. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
  361. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
  362. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
  363. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
  364. package/front_end/third_party/wasmparser/package/package.json +1 -1
  365. package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
  366. package/front_end/ui/components/text_editor/TextEditor.ts +29 -0
  367. package/front_end/ui/components/text_editor/config.ts +36 -14
  368. package/front_end/ui/components/text_editor/javascript.ts +14 -9
  369. package/front_end/ui/components/text_editor/theme.ts +29 -4
  370. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -0
  371. package/front_end/ui/legacy/Dialog.ts +8 -3
  372. package/front_end/ui/legacy/ViewManager.ts +6 -0
  373. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
  374. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +6 -4
  375. package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
  376. package/front_end/ui/legacy/themeColors.css +2 -0
  377. package/inspector_overlay/css_grid_label_helpers.ts +1 -1
  378. package/inspector_overlay/highlight_common.ts +1 -1
  379. package/inspector_overlay/tool_highlight.ts +1 -1
  380. package/package.json +1 -1
  381. package/scripts/eslint_rules/lib/es_modules_import.js +0 -16
  382. package/scripts/eslint_rules/tests/es_modules_import_test.js +0 -16
@@ -1877,7 +1877,7 @@ export class BinaryReader {
1877
1877
  shift += 7;
1878
1878
  if ((byte & 0x80) === 0) break;
1879
1879
  }
1880
- return result;
1880
+ return result >>> 0;
1881
1881
  }
1882
1882
  private readVarInt64(): Int64 {
1883
1883
  var result = new Uint8Array(8);
@@ -1951,7 +1951,7 @@ export class BinaryReader {
1951
1951
  return new Type(TypeKind.unspecified, func_index);
1952
1952
  }
1953
1953
  private readStringBytes(): Uint8Array {
1954
- var length = this.readVarUint32() >>> 0;
1954
+ var length = this.readVarUint32();
1955
1955
  return this.readBytes(length);
1956
1956
  }
1957
1957
  private readBytes(length: number): Uint8Array {
@@ -1965,7 +1965,7 @@ export class BinaryReader {
1965
1965
  private hasStringBytes(): boolean {
1966
1966
  if (!this.hasVarIntBytes()) return false;
1967
1967
  var pos = this._pos;
1968
- var length = this.readVarUint32() >>> 0;
1968
+ var length = this.readVarUint32();
1969
1969
  var result = this.hasBytes(length);
1970
1970
  this._pos = pos;
1971
1971
  return result;
@@ -1974,7 +1974,7 @@ export class BinaryReader {
1974
1974
  return this.hasBytes(this._sectionRange.end - this._pos);
1975
1975
  }
1976
1976
  private readFuncType(): ITypeEntry {
1977
- var paramCount = this.readVarUint32() >>> 0;
1977
+ var paramCount = this.readVarUint32();
1978
1978
  var paramTypes = new Array(paramCount);
1979
1979
  for (var i = 0; i < paramCount; i++) paramTypes[i] = this.readType();
1980
1980
  var returnCount = this.readVarUint1();
@@ -1993,7 +1993,7 @@ export class BinaryReader {
1993
1993
  return result;
1994
1994
  }
1995
1995
  private readStructType(): ITypeEntry {
1996
- var fieldCount = this.readVarUint32() >>> 0;
1996
+ var fieldCount = this.readVarUint32();
1997
1997
  var fieldTypes = new Array(fieldCount);
1998
1998
  var fieldMutabilities = new Array(fieldCount);
1999
1999
  for (var i = 0; i < fieldCount; i++) {
@@ -2028,21 +2028,21 @@ export class BinaryReader {
2028
2028
  return result;
2029
2029
  }
2030
2030
  private readResizableLimits(maxPresent: boolean): IResizableLimits {
2031
- var initial = this.readVarUint32() >>> 0;
2031
+ var initial = this.readVarUint32();
2032
2032
  var maximum;
2033
2033
  if (maxPresent) {
2034
- maximum = this.readVarUint32() >>> 0;
2034
+ maximum = this.readVarUint32();
2035
2035
  }
2036
2036
  return { initial: initial, maximum: maximum };
2037
2037
  }
2038
2038
  private readTableType(): ITableType {
2039
2039
  var elementType = this.readType();
2040
- var flags = this.readVarUint32() >>> 0;
2040
+ var flags = this.readVarUint32();
2041
2041
  var limits = this.readResizableLimits(!!(flags & 0x01));
2042
2042
  return { elementType: elementType, limits: limits };
2043
2043
  }
2044
2044
  private readMemoryType(): IMemoryType {
2045
- var flags = this.readVarUint32() >>> 0;
2045
+ var flags = this.readVarUint32();
2046
2046
  var shared = !!(flags & 0x02);
2047
2047
  return {
2048
2048
  limits: this.readResizableLimits(!!(flags & 0x01)),
@@ -2063,8 +2063,8 @@ export class BinaryReader {
2063
2063
  return { contentType: contentType, mutability: mutability };
2064
2064
  }
2065
2065
  private readEventType(): IEventType {
2066
- var attribute = this.readVarUint32() >>> 0;
2067
- var typeIndex = this.readVarUint32() >>> 0;
2066
+ var attribute = this.readVarUint32();
2067
+ var typeIndex = this.readVarUint32();
2068
2068
  return {
2069
2069
  attribute: attribute,
2070
2070
  typeIndex: typeIndex,
@@ -2115,7 +2115,7 @@ export class BinaryReader {
2115
2115
  var type: ITableType | IMemoryType | IGlobalType | IEventType;
2116
2116
  switch (kind) {
2117
2117
  case ExternalKind.Function:
2118
- funcTypeIndex = this.readVarUint32() >>> 0;
2118
+ funcTypeIndex = this.readVarUint32();
2119
2119
  break;
2120
2120
  case ExternalKind.Table:
2121
2121
  type = this.readTableType();
@@ -2147,7 +2147,7 @@ export class BinaryReader {
2147
2147
  }
2148
2148
  var field = this.readStringBytes();
2149
2149
  var kind = this.readUint8();
2150
- var index = this.readVarUint32() >>> 0;
2150
+ var index = this.readVarUint32();
2151
2151
  this.state = BinaryReaderState.EXPORT_SECTION_ENTRY;
2152
2152
  this.result = { field: field, kind: kind, index: index };
2153
2153
  this._sectionEntriesLeft--;
@@ -2158,7 +2158,7 @@ export class BinaryReader {
2158
2158
  this.skipSection();
2159
2159
  return this.read();
2160
2160
  }
2161
- var typeIndex = this.readVarUint32() >>> 0;
2161
+ var typeIndex = this.readVarUint32();
2162
2162
  this.state = BinaryReaderState.FUNCTION_SECTION_ENTRY;
2163
2163
  this.result = { typeIndex: typeIndex };
2164
2164
  this._sectionEntriesLeft--;
@@ -2345,8 +2345,8 @@ export class BinaryReader {
2345
2345
  return true;
2346
2346
  }
2347
2347
  private readMemoryImmediate(): IMemoryAddress {
2348
- var flags = this.readVarUint32() >>> 0;
2349
- var offset = this.readVarUint32() >>> 0;
2348
+ var flags = this.readVarUint32();
2349
+ var offset = this.readVarUint32();
2350
2350
  return { flags: flags, offset: offset };
2351
2351
  }
2352
2352
  private readNameMap(): INaming[] {
@@ -2473,7 +2473,7 @@ export class BinaryReader {
2473
2473
  }
2474
2474
  if (!this.hasVarIntBytes()) return false;
2475
2475
  var pos = this._pos;
2476
- var type: LinkingType = this.readVarUint32() >>> 0;
2476
+ var type: LinkingType = this.readVarUint32();
2477
2477
  var index;
2478
2478
  switch (type) {
2479
2479
  case LinkingType.StackPointer:
@@ -2570,11 +2570,11 @@ export class BinaryReader {
2570
2570
  case OperatorCode.br_on_non_data:
2571
2571
  case OperatorCode.br_on_i31:
2572
2572
  case OperatorCode.br_on_non_i31:
2573
- brDepth = this.readVarUint32() >>> 0;
2573
+ brDepth = this.readVarUint32();
2574
2574
  break;
2575
2575
  case OperatorCode.br_on_cast_static:
2576
2576
  case OperatorCode.br_on_cast_static_fail:
2577
- brDepth = this.readVarUint32() >>> 0;
2577
+ brDepth = this.readVarUint32();
2578
2578
  refType = this.readHeapType();
2579
2579
  break;
2580
2580
  case OperatorCode.array_get:
@@ -2613,7 +2613,7 @@ export class BinaryReader {
2613
2613
  refType = this.readHeapType();
2614
2614
  // This really is the "length" value. Overload "brDepth" to keep the
2615
2615
  // IOperatorInformation interface a little leaner.
2616
- brDepth = this.readVarUint32() >>> 0;
2616
+ brDepth = this.readVarUint32();
2617
2617
  break;
2618
2618
  case OperatorCode.ref_is_func:
2619
2619
  case OperatorCode.ref_is_data:
@@ -2682,25 +2682,25 @@ export class BinaryReader {
2682
2682
  reserved = this.readVarUint1();
2683
2683
  break;
2684
2684
  case OperatorCode.table_init:
2685
- segmentIndex = this.readVarUint32() >>> 0;
2686
- tableIndex = this.readVarUint32() >>> 0;
2685
+ segmentIndex = this.readVarUint32();
2686
+ tableIndex = this.readVarUint32();
2687
2687
  break;
2688
2688
  case OperatorCode.table_copy:
2689
- tableIndex = this.readVarUint32() >>> 0;
2690
- destinationIndex = this.readVarUint32() >>> 0;
2689
+ tableIndex = this.readVarUint32();
2690
+ destinationIndex = this.readVarUint32();
2691
2691
  break;
2692
2692
  case OperatorCode.table_grow:
2693
2693
  case OperatorCode.table_size:
2694
2694
  case OperatorCode.table_fill:
2695
- tableIndex = this.readVarUint32() >>> 0;
2695
+ tableIndex = this.readVarUint32();
2696
2696
  break;
2697
2697
  case OperatorCode.memory_init:
2698
- segmentIndex = this.readVarUint32() >>> 0;
2698
+ segmentIndex = this.readVarUint32();
2699
2699
  reserved = this.readVarUint1();
2700
2700
  break;
2701
2701
  case OperatorCode.data_drop:
2702
2702
  case OperatorCode.elem_drop:
2703
- segmentIndex = this.readVarUint32() >>> 0;
2703
+ segmentIndex = this.readVarUint32();
2704
2704
  break;
2705
2705
  default:
2706
2706
  this.error = new Error(
@@ -3218,10 +3218,10 @@ export class BinaryReader {
3218
3218
  case OperatorCode.br_if:
3219
3219
  case OperatorCode.br_on_null:
3220
3220
  case OperatorCode.br_on_non_null:
3221
- brDepth = this.readVarUint32() >>> 0;
3221
+ brDepth = this.readVarUint32();
3222
3222
  break;
3223
3223
  case OperatorCode.br_table:
3224
- var tableCount = this.readVarUint32() >>> 0;
3224
+ var tableCount = this.readVarUint32();
3225
3225
  if (!this.hasBytes(tableCount + 1)) {
3226
3226
  // We need at least (tableCount + 1) bytes
3227
3227
  this._pos = pos;
@@ -3234,12 +3234,12 @@ export class BinaryReader {
3234
3234
  this._pos = pos;
3235
3235
  return false;
3236
3236
  }
3237
- brTable.push(this.readVarUint32() >>> 0);
3237
+ brTable.push(this.readVarUint32());
3238
3238
  }
3239
3239
  break;
3240
3240
  case OperatorCode.rethrow:
3241
3241
  case OperatorCode.delegate:
3242
- relativeDepth = this.readVarUint32() >>> 0;
3242
+ relativeDepth = this.readVarUint32();
3243
3243
  break;
3244
3244
  case OperatorCode.catch:
3245
3245
  case OperatorCode.throw:
@@ -3251,25 +3251,25 @@ export class BinaryReader {
3251
3251
  case OperatorCode.call:
3252
3252
  case OperatorCode.return_call:
3253
3253
  case OperatorCode.ref_func:
3254
- funcIndex = this.readVarUint32() >>> 0;
3254
+ funcIndex = this.readVarUint32();
3255
3255
  break;
3256
3256
  case OperatorCode.call_indirect:
3257
3257
  case OperatorCode.return_call_indirect:
3258
- typeIndex = this.readVarUint32() >>> 0;
3258
+ typeIndex = this.readVarUint32();
3259
3259
  reserved = this.readVarUint1();
3260
3260
  break;
3261
3261
  case OperatorCode.local_get:
3262
3262
  case OperatorCode.local_set:
3263
3263
  case OperatorCode.local_tee:
3264
- localIndex = this.readVarUint32() >>> 0;
3264
+ localIndex = this.readVarUint32();
3265
3265
  break;
3266
3266
  case OperatorCode.global_get:
3267
3267
  case OperatorCode.global_set:
3268
- globalIndex = this.readVarUint32() >>> 0;
3268
+ globalIndex = this.readVarUint32();
3269
3269
  break;
3270
3270
  case OperatorCode.table_get:
3271
3271
  case OperatorCode.table_set:
3272
- tableIndex = this.readVarUint32() >>> 0;
3272
+ tableIndex = this.readVarUint32();
3273
3273
  break;
3274
3274
  case OperatorCode.i32_load:
3275
3275
  case OperatorCode.i64_load:
@@ -3532,20 +3532,20 @@ export class BinaryReader {
3532
3532
  }
3533
3533
  if (!this.hasVarIntBytes()) return false;
3534
3534
  var pos = this._pos;
3535
- var size = this.readVarUint32() >>> 0;
3535
+ var size = this.readVarUint32();
3536
3536
  var bodyEnd = this._pos + size;
3537
3537
  if (!this.hasVarIntBytes()) {
3538
3538
  this._pos = pos;
3539
3539
  return false;
3540
3540
  }
3541
- var localCount = this.readVarUint32() >>> 0;
3541
+ var localCount = this.readVarUint32();
3542
3542
  var locals: Array<ILocals> = [];
3543
3543
  for (var i = 0; i < localCount; i++) {
3544
3544
  if (!this.hasVarIntBytes()) {
3545
3545
  this._pos = pos;
3546
3546
  return false;
3547
3547
  }
3548
- var count = this.readVarUint32() >>> 0;
3548
+ var count = this.readVarUint32();
3549
3549
  if (!this.hasVarIntBytes()) {
3550
3550
  this._pos = pos;
3551
3551
  return false;
@@ -3588,7 +3588,7 @@ export class BinaryReader {
3588
3588
  this._pos = sectionStart;
3589
3589
  return false;
3590
3590
  }
3591
- var payloadLength = this.readVarUint32() >>> 0;
3591
+ var payloadLength = this.readVarUint32();
3592
3592
  var name = null;
3593
3593
  var payloadEnd = this._pos + payloadLength;
3594
3594
  if (id == 0) {
@@ -3625,31 +3625,31 @@ export class BinaryReader {
3625
3625
  switch (currentSection.id) {
3626
3626
  case SectionCode.Type:
3627
3627
  if (!this.hasSectionPayload()) return false;
3628
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3628
+ this._sectionEntriesLeft = this.readVarUint32();
3629
3629
  return this.readTypeEntry();
3630
3630
  case SectionCode.Import:
3631
3631
  if (!this.hasSectionPayload()) return false;
3632
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3632
+ this._sectionEntriesLeft = this.readVarUint32();
3633
3633
  return this.readImportEntry();
3634
3634
  case SectionCode.Export:
3635
3635
  if (!this.hasSectionPayload()) return false;
3636
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3636
+ this._sectionEntriesLeft = this.readVarUint32();
3637
3637
  return this.readExportEntry();
3638
3638
  case SectionCode.Function:
3639
3639
  if (!this.hasSectionPayload()) return false;
3640
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3640
+ this._sectionEntriesLeft = this.readVarUint32();
3641
3641
  return this.readFunctionEntry();
3642
3642
  case SectionCode.Table:
3643
3643
  if (!this.hasSectionPayload()) return false;
3644
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3644
+ this._sectionEntriesLeft = this.readVarUint32();
3645
3645
  return this.readTableEntry();
3646
3646
  case SectionCode.Memory:
3647
3647
  if (!this.hasSectionPayload()) return false;
3648
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3648
+ this._sectionEntriesLeft = this.readVarUint32();
3649
3649
  return this.readMemoryEntry();
3650
3650
  case SectionCode.Global:
3651
3651
  if (!this.hasVarIntBytes()) return false;
3652
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3652
+ this._sectionEntriesLeft = this.readVarUint32();
3653
3653
  return this.readGlobalEntry();
3654
3654
  case SectionCode.Start:
3655
3655
  if (!this.hasVarIntBytes()) return false;
@@ -3658,20 +3658,20 @@ export class BinaryReader {
3658
3658
  return true;
3659
3659
  case SectionCode.Code:
3660
3660
  if (!this.hasVarIntBytes()) return false;
3661
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3661
+ this._sectionEntriesLeft = this.readVarUint32();
3662
3662
  this.state = BinaryReaderState.READING_FUNCTION_HEADER;
3663
3663
  return this.readFunctionBody();
3664
3664
  case SectionCode.Element:
3665
3665
  if (!this.hasVarIntBytes()) return false;
3666
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3666
+ this._sectionEntriesLeft = this.readVarUint32();
3667
3667
  return this.readElementEntry();
3668
3668
  case SectionCode.Data:
3669
3669
  if (!this.hasVarIntBytes()) return false;
3670
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3670
+ this._sectionEntriesLeft = this.readVarUint32();
3671
3671
  return this.readDataEntry();
3672
3672
  case SectionCode.Event:
3673
3673
  if (!this.hasVarIntBytes()) return false;
3674
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3674
+ this._sectionEntriesLeft = this.readVarUint32();
3675
3675
  return this.readEventEntry();
3676
3676
  case SectionCode.Custom:
3677
3677
  var customSectionName = bytesToString(currentSection.name);
@@ -3683,7 +3683,7 @@ export class BinaryReader {
3683
3683
  }
3684
3684
  if (customSectionName === "linking") {
3685
3685
  if (!this.hasVarIntBytes()) return false;
3686
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3686
+ this._sectionEntriesLeft = this.readVarUint32();
3687
3687
  return this.readLinkingEntry();
3688
3688
  }
3689
3689
  if (customSectionName === "sourceMappingURL") {
@@ -3827,7 +3827,7 @@ export class BinaryReader {
3827
3827
  return this.readNameEntry();
3828
3828
  case BinaryReaderState.RELOC_SECTION_HEADER:
3829
3829
  if (!this.hasVarIntBytes()) return false;
3830
- this._sectionEntriesLeft = this.readVarUint32() >>> 0;
3830
+ this._sectionEntriesLeft = this.readVarUint32();
3831
3831
  return this.readRelocEntry();
3832
3832
  case BinaryReaderState.LINKING_SECTION_ENTRY:
3833
3833
  return this.readLinkingEntry();
@@ -3,6 +3,7 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as Common from '../../../core/common/common.js';
6
+ import * as WindowBoundsService from '../../../services/window_bounds/window_bounds.js';
6
7
  import * as CodeMirror from '../../../third_party/codemirror.next/codemirror.next.js';
7
8
  import * as LitHtml from '../../lit-html/lit-html.js';
8
9
  import * as CodeHighlighter from '../code_highlighter/code_highlighter.js';
@@ -25,6 +26,18 @@ export class TextEditor extends HTMLElement {
25
26
  private dynamicSettings: readonly DynamicSetting<unknown>[] = DynamicSetting.none;
26
27
  private activeSettingListeners: [Common.Settings.Setting<unknown>, (event: {data: unknown}) => void][] = [];
27
28
  private pendingState: CodeMirror.EditorState|undefined;
29
+ private lastScrollPos = {left: 0, top: 0};
30
+ private resizeTimeout = -1;
31
+ private devtoolsResizeObserver = new ResizeObserver(() => {
32
+ if (this.resizeTimeout < 0) {
33
+ this.resizeTimeout = window.setTimeout(() => {
34
+ this.resizeTimeout = -1;
35
+ if (this.activeEditor) {
36
+ CodeMirror.repositionTooltips(this.activeEditor);
37
+ }
38
+ }, 50);
39
+ }
40
+ });
28
41
 
29
42
  constructor(pendingState?: CodeMirror.EditorState) {
30
43
  super();
@@ -44,7 +57,14 @@ export class TextEditor extends HTMLElement {
44
57
  }
45
58
  },
46
59
  });
60
+ this.activeEditor.scrollDOM.scrollTop = this.lastScrollPos.top;
61
+ this.activeEditor.scrollDOM.scrollLeft = this.lastScrollPos.left;
62
+ this.activeEditor.scrollDOM.addEventListener('scroll', (event): void => {
63
+ this.lastScrollPos.left = (event.target as HTMLElement).scrollLeft;
64
+ this.lastScrollPos.top = (event.target as HTMLElement).scrollTop;
65
+ });
47
66
  this.ensureSettingListeners();
67
+ this.startObservingResize();
48
68
  return this.activeEditor;
49
69
  }
50
70
 
@@ -83,6 +103,7 @@ export class TextEditor extends HTMLElement {
83
103
  disconnectedCallback(): void {
84
104
  if (this.activeEditor) {
85
105
  this.pendingState = this.activeEditor.state;
106
+ this.devtoolsResizeObserver.disconnect();
86
107
  this.activeEditor.destroy();
87
108
  this.activeEditor = undefined;
88
109
  this.ensureSettingListeners();
@@ -121,6 +142,14 @@ export class TextEditor extends HTMLElement {
121
142
  }
122
143
  }
123
144
 
145
+ private startObservingResize(): void {
146
+ const devtoolsElement =
147
+ WindowBoundsService.WindowBoundsService.WindowBoundsServiceImpl.instance().getDevToolsBoundingElement();
148
+ if (devtoolsElement) {
149
+ this.devtoolsResizeObserver.observe(devtoolsElement);
150
+ }
151
+ }
152
+
124
153
  revealPosition(selection: CodeMirror.EditorSelection, highlight: boolean = true): void {
125
154
  const view = this.activeEditor;
126
155
  if (!view) {
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as Common from '../../../core/common/common.js';
6
6
  import * as i18n from '../../../core/i18n/i18n.js';
7
+ import * as WindowBoundsService from '../../../services/window_bounds/window_bounds.js';
7
8
  import * as CM from '../../../third_party/codemirror.next/codemirror.next.js';
8
9
  import * as CodeHighlighter from '../code_highlighter/code_highlighter.js';
9
10
 
@@ -68,7 +69,10 @@ export const tabMovesFocus = DynamicSetting.bool('textEditorTabMovesFocus', CM.k
68
69
  shift: (view: CM.EditorView): boolean => view.state.doc.length ? CM.indentLess(view) : false,
69
70
  }]));
70
71
 
71
- export const autocompletion = CM.autocompletion({icons: false});
72
+ export const autocompletion = CM.autocompletion({
73
+ icons: false,
74
+ optionClass: (option: CM.Completion): string => option.type === 'secondary' ? 'cm-secondaryCompletion' : '',
75
+ });
72
76
 
73
77
  export const sourcesAutocompletion = DynamicSetting.bool('textEditorAutocompletion', autocompletion);
74
78
 
@@ -185,7 +189,6 @@ const baseKeymap = CM.keymap.of([
185
189
  {key: 'Mod-d', run: CM.selectNextOccurrence},
186
190
  {key: 'Alt-ArrowLeft', mac: 'Ctrl-ArrowLeft', run: CM.cursorSubwordBackward, shift: CM.selectSubwordBackward},
187
191
  {key: 'Alt-ArrowRight', mac: 'Ctrl-ArrowRight', run: CM.cursorSubwordForward, shift: CM.selectSubwordForward},
188
- ...CM.closeBracketsKeymap,
189
192
  ...CM.standardKeymap,
190
193
  ...CM.historyKeymap,
191
194
  ]);
@@ -201,6 +204,16 @@ export function theme(): CM.Extension {
201
204
  return [editorTheme, themeIsDark() ? dummyDarkTheme : []];
202
205
  }
203
206
 
207
+ let sideBarElement: HTMLElement|null = null;
208
+
209
+ function getTooltipSpace(): DOMRect {
210
+ if (!sideBarElement) {
211
+ sideBarElement =
212
+ WindowBoundsService.WindowBoundsService.WindowBoundsServiceImpl.instance().getDevToolsBoundingElement();
213
+ }
214
+ return sideBarElement.getBoundingClientRect();
215
+ }
216
+
204
217
  export function baseConfiguration(text: string): CM.Extension {
205
218
  return [
206
219
  theme(),
@@ -210,7 +223,6 @@ export function baseConfiguration(text: string): CM.Extension {
210
223
  CM.EditorState.allowMultipleSelections.of(true),
211
224
  CM.indentOnInput(),
212
225
  CodeHighlighter.CodeHighlighter.highlightStyle,
213
- CM.closeBrackets(),
214
226
  baseKeymap,
215
227
  tabMovesFocus.instance(),
216
228
  bracketMatching.instance(),
@@ -218,10 +230,18 @@ export function baseConfiguration(text: string): CM.Extension {
218
230
  CM.Prec.lowest(CM.EditorView.contentAttributes.of({'aria-label': i18nString(UIStrings.codeEditor)})),
219
231
  detectLineSeparator(text),
220
232
  autocompletion,
221
- CM.tooltips({parent: getTooltipHost() as unknown as HTMLElement}),
233
+ CM.tooltips({
234
+ parent: getTooltipHost() as unknown as HTMLElement,
235
+ tooltipSpace: getTooltipSpace,
236
+ }),
222
237
  ];
223
238
  }
224
239
 
240
+ export const closeBrackets: CM.Extension = [
241
+ CM.closeBrackets(),
242
+ CM.keymap.of(CM.closeBracketsKeymap),
243
+ ];
244
+
225
245
  // Root editor tooltips at the top of the document, creating a special
226
246
  // element with the editor styles mounted in it for them. This is
227
247
  // annoying, but necessary because a scrollable parent node clips them
@@ -287,12 +307,16 @@ export const showCompletionHint = CM.ViewPlugin.fromClass(class {
287
307
  }
288
308
 
289
309
  topCompletion(state: CM.EditorState): string|null {
290
- const completions = CM.currentCompletions(state);
291
- if (!completions.length) {
310
+ const completion = CM.selectedCompletion(state);
311
+ if (!completion) {
292
312
  return null;
293
313
  }
294
- const {label} = completions[0];
295
- if (label.length > 100 || label.indexOf('\n') > -1) {
314
+ let {label, apply} = completion;
315
+ if (typeof apply === 'string') {
316
+ label = apply;
317
+ apply = undefined;
318
+ }
319
+ if (apply || label.length > 100 || label.indexOf('\n') > -1 || completion.type === 'secondary') {
296
320
  return null;
297
321
  }
298
322
  const pos = state.selection.main.head;
@@ -300,13 +324,11 @@ export const showCompletionHint = CM.ViewPlugin.fromClass(class {
300
324
  if (pos !== lineBefore.to) {
301
325
  return null;
302
326
  }
303
- const textBefore = lineBefore.text.slice(0, pos - lineBefore.from);
304
- for (let i = label.length - 1; i > 0; i--) {
305
- if (textBefore.endsWith(label.slice(0, i)) && !/\w/.test(textBefore.charAt(textBefore.length - i - 1))) {
306
- return label.slice(i);
307
- }
327
+ const wordBefore = /[\w$]+$/.exec(lineBefore.text);
328
+ if (wordBefore && !label.startsWith(wordBefore[0])) {
329
+ return null;
308
330
  }
309
- return null;
331
+ return label.slice(wordBefore ? wordBefore[0].length : 0);
310
332
  }
311
333
  }, {decorations: p => p.decorations});
312
334
 
@@ -90,7 +90,7 @@ export const enum QueryType {
90
90
  PropertyExpression = 2,
91
91
  }
92
92
 
93
- export function getQueryType(tree: CodeMirror.Tree, pos: number): {
93
+ export function getQueryType(tree: CodeMirror.Tree, pos: number, doc: CodeMirror.Text): {
94
94
  type: QueryType,
95
95
  from?: number,
96
96
  relatedNode?: CodeMirror.SyntaxNode,
@@ -101,13 +101,15 @@ export function getQueryType(tree: CodeMirror.Tree, pos: number): {
101
101
  return null;
102
102
  }
103
103
 
104
- if (node.name === 'VariableName') {
105
- return {type: QueryType.Expression, from: node.from};
106
- }
107
104
  if (node.name === 'PropertyName') {
108
105
  return parent?.name !== 'MemberExpression' ? null :
109
106
  {type: QueryType.PropertyName, from: node.from, relatedNode: parent};
110
107
  }
108
+ if (node.name === 'VariableName' ||
109
+ // Treat alphabetic keywords as variables
110
+ !node.firstChild && node.to - node.from < 20 && !/[^a-z]/.test(doc.sliceString(node.from, node.to))) {
111
+ return {type: QueryType.Expression, from: node.from};
112
+ }
111
113
  if (node.name === 'String') {
112
114
  const parent = node.parent;
113
115
  return parent?.name === 'MemberExpression' && parent.childBefore(node.from)?.name === '[' ?
@@ -134,8 +136,8 @@ export function getQueryType(tree: CodeMirror.Tree, pos: number): {
134
136
 
135
137
  export async function javascriptCompletionSource(cx: CodeMirror.CompletionContext):
136
138
  Promise<CodeMirror.CompletionResult|null> {
137
- const query = getQueryType(CodeMirror.syntaxTree(cx.state), cx.pos);
138
- if (!query || query.from === undefined && !cx.explicit) {
139
+ const query = getQueryType(CodeMirror.syntaxTree(cx.state), cx.pos, cx.state.doc);
140
+ if (!query || query.from === undefined && !cx.explicit && query.type === QueryType.Expression) {
139
141
  return null;
140
142
  }
141
143
 
@@ -162,7 +164,8 @@ export async function javascriptCompletionSource(cx: CodeMirror.CompletionContex
162
164
  if (!objectExpr) {
163
165
  return null;
164
166
  }
165
- result = await completeProperties(cx.state.sliceDoc(objectExpr.from, objectExpr.to), quote);
167
+ result = await completeProperties(
168
+ cx.state.sliceDoc(objectExpr.from, objectExpr.to), quote, cx.state.sliceDoc(cx.pos, cx.pos + 1) === ']');
166
169
  } else {
167
170
  return null;
168
171
  }
@@ -250,6 +253,7 @@ class PropertyCache {
250
253
  async function completeProperties(
251
254
  expression: string,
252
255
  quoted?: string,
256
+ hasBracket: boolean = false,
253
257
  ): Promise<CompletionSet> {
254
258
  const cache = PropertyCache.instance();
255
259
  if (!quoted) {
@@ -262,7 +266,7 @@ async function completeProperties(
262
266
  if (!context) {
263
267
  return new CompletionSet();
264
268
  }
265
- const result = completePropertiesInner(expression, context, quoted);
269
+ const result = completePropertiesInner(expression, context, quoted, hasBracket);
266
270
  if (!quoted) {
267
271
  cache.set(expression, result);
268
272
  }
@@ -275,6 +279,7 @@ async function completePropertiesInner(
275
279
  expression: string,
276
280
  context: SDK.RuntimeModel.ExecutionContext,
277
281
  quoted?: string,
282
+ hasBracket: boolean = false,
278
283
  ): Promise<CompletionSet> {
279
284
  const result = new CompletionSet();
280
285
  if (!context) {
@@ -313,7 +318,7 @@ async function completePropertiesInner(
313
318
  label,
314
319
  type: prop.value?.type === 'function' ? functionType : otherType,
315
320
  };
316
- if (quoted) {
321
+ if (quoted && !hasBracket) {
317
322
  completion.apply = label + ']';
318
323
  }
319
324
  if (!prop.isOwn) {
@@ -18,7 +18,7 @@ export const editorTheme = CM.EditorView.theme({
18
18
  fontSize: 'var(--source-code-font-size)',
19
19
  },
20
20
 
21
- '.cm-panels, .cm-tooltip': {
21
+ '.cm-panels': {
22
22
  backgroundColor: 'var(--color-background-elevation-1)',
23
23
  },
24
24
 
@@ -110,25 +110,50 @@ export const editorTheme = CM.EditorView.theme({
110
110
  color: 'var(--color-text-secondary)',
111
111
  },
112
112
 
113
+ '.cm-tooltip': {
114
+ boxShadow: 'var(--drop-shadow)',
115
+ backgroundColor: 'var(--color-background-elevation-1)',
116
+ },
117
+
113
118
  '.cm-argumentHints': {
114
119
  pointerEvents: 'none',
115
120
  padding: '0 4px',
116
121
  whiteSpace: 'nowrap',
117
122
  lineHeight: '20px',
118
123
  marginBottom: '4px',
119
- boxShadow: 'var(--drop-shadow)',
120
- backgroundColor: 'var(--color-background)',
121
124
  width: 'fit-content',
122
125
  },
123
126
 
124
127
  '.cm-tooltip.cm-tooltip-autocomplete > ul': {
128
+ backgroundColor: 'var(--color-background)',
125
129
  minWidth: '16em',
130
+ '& > li.cm-secondaryCompletion': {
131
+ display: 'flex',
132
+ backgroundColor: 'var(--color-background-elevation-1)',
133
+ justifyContent: 'space-between',
134
+ '&::before': {
135
+ content: '">"',
136
+ fontWeight: 'bold',
137
+ color: 'var(--color-primary-variant)',
138
+ marginRight: '5px',
139
+ },
140
+ },
141
+ '& > li:hover': {
142
+ backgroundColor: 'var(--item-hover-color)',
143
+ },
126
144
  '& > li[aria-selected]': {
127
145
  backgroundColor: 'var(--color-selected-option-background)',
128
- color: 'var(--color-selected-option)',
146
+ '&, &.cm-secondaryCompletion::before': {
147
+ color: 'var(--color-selected-option)',
148
+ },
129
149
  },
130
150
  },
131
151
 
152
+ '.cm-completionMatchedText': {
153
+ textDecoration: 'none',
154
+ fontWeight: 'bold',
155
+ },
156
+
132
157
  '.cm-highlightedLine': {
133
158
  animation: 'cm-fading-highlight 2s 0s',
134
159
  },
@@ -166,6 +166,14 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
166
166
  await this.render();
167
167
  }
168
168
 
169
+ /**
170
+ * Collapses all nodes in the tree.
171
+ */
172
+ async collapseAllNodes(): Promise<void> {
173
+ this.nodeExpandedMap.clear();
174
+ await this.render();
175
+ }
176
+
169
177
  /**
170
178
  * Takes a TreeNode, expands the outline to reveal it, and focuses it.
171
179
  */