chrome-devtools-frontend 1.0.1616061 → 1.0.1621064

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 (318) hide show
  1. package/AUTHORS +1 -0
  2. package/docs/checklist/README.md +8 -7
  3. package/eslint.config.mjs +7 -0
  4. package/front_end/core/common/Object.ts +11 -2
  5. package/front_end/core/dom_extension/DOMExtension.ts +11 -8
  6. package/front_end/core/host/AidaClient.ts +8 -0
  7. package/front_end/core/host/AidaGcaTranslation.ts +1 -0
  8. package/front_end/core/host/UserMetrics.ts +0 -1
  9. package/front_end/core/platform/api/HostRuntime.ts +2 -2
  10. package/front_end/core/platform/browser/HostRuntime.ts +4 -2
  11. package/front_end/core/platform/node/HostRuntime.ts +2 -2
  12. package/front_end/core/root/ExperimentNames.ts +0 -1
  13. package/front_end/core/sdk/NetworkManager.ts +30 -4
  14. package/front_end/core/sdk/NetworkRequest.ts +2 -10
  15. package/front_end/core/sdk/Resource.ts +2 -1
  16. package/front_end/core/sdk/ServerSentEventsProtocol.ts +1 -1
  17. package/front_end/core/sdk/TraceObject.ts +7 -2
  18. package/front_end/entrypoint_template.html +1 -2
  19. package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +119 -15
  20. package/front_end/entrypoints/greendev_floaty/greendev_floaty.ts +0 -2
  21. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +43 -33
  22. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +2 -1
  23. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +9 -6
  24. package/front_end/entrypoints/main/MainImpl.ts +0 -2
  25. package/front_end/generated/InspectorBackendCommands.ts +8 -7
  26. package/front_end/generated/SupportedCSSProperties.js +119 -100
  27. package/front_end/generated/protocol-mapping.d.ts +1 -9
  28. package/front_end/generated/protocol-proxy-api.d.ts +1 -9
  29. package/front_end/generated/protocol.ts +24 -1
  30. package/front_end/legacy/legacy-defs.d.ts +1 -1
  31. package/front_end/models/ai_assistance/AiConversation.ts +1 -0
  32. package/front_end/models/ai_assistance/AiHistoryStorage.ts +39 -0
  33. package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -0
  34. package/front_end/models/ai_assistance/agents/ConversationSummaryAgent.ts +28 -16
  35. package/front_end/models/ai_assistance/agents/GreenDevAgent.ts +512 -0
  36. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +112 -145
  37. package/front_end/models/ai_assistance/agents/README.md +0 -5
  38. package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -16
  39. package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
  40. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +19 -1
  41. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +48 -13
  42. package/front_end/models/bindings/SymbolizedError.ts +95 -8
  43. package/front_end/models/emulation/DeviceModeModel.ts +42 -13
  44. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  45. package/front_end/models/issues_manager/IssuesManager.ts +13 -6
  46. package/front_end/models/issues_manager/IssuesManagerEvents.ts +1 -0
  47. package/front_end/models/javascript_metadata/NativeFunctions.js +2 -2
  48. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +1 -0
  49. package/front_end/models/stack_trace/DetailedErrorStackParser.ts +49 -10
  50. package/front_end/models/stack_trace/ErrorStackParser.ts +18 -0
  51. package/front_end/models/stack_trace/StackTraceModel.ts +5 -1
  52. package/front_end/models/text_utils/ContentData.ts +71 -10
  53. package/front_end/models/trace/types/File.ts +8 -1
  54. package/front_end/models/web_mcp/WebMCPModel.ts +22 -0
  55. package/front_end/models/workspace/UISourceCode.ts +4 -4
  56. package/front_end/panels/accessibility/ARIAAttributesView.ts +4 -4
  57. package/front_end/panels/accessibility/AccessibilitySubPane.ts +3 -2
  58. package/front_end/panels/accessibility/SourceOrderView.ts +4 -4
  59. package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
  60. package/front_end/panels/ai_assistance/components/ChatInput.ts +66 -0
  61. package/front_end/panels/ai_assistance/components/ChatMessage.ts +144 -21
  62. package/front_end/panels/ai_assistance/components/ChatView.ts +43 -8
  63. package/front_end/panels/ai_assistance/components/ExportForAgentsDialog.ts +1 -0
  64. package/front_end/panels/ai_assistance/components/WalkthroughUtils.ts +74 -0
  65. package/front_end/panels/ai_assistance/components/WalkthroughView.ts +34 -5
  66. package/front_end/panels/ai_assistance/components/chatMessage.css +11 -0
  67. package/front_end/panels/ai_assistance/components/walkthroughView.css +7 -0
  68. package/front_end/panels/application/ApplicationPanelTreeElement.ts +1 -1
  69. package/front_end/panels/application/CookieItemsView.ts +8 -9
  70. package/front_end/panels/application/DOMStorageItemsView.ts +3 -3
  71. package/front_end/panels/application/DeviceBoundSessionsModel.ts +7 -0
  72. package/front_end/panels/application/DeviceBoundSessionsTreeElement.ts +21 -0
  73. package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -2
  74. package/front_end/panels/application/ExtensionStorageItemsView.ts +1 -1
  75. package/front_end/panels/application/KeyValueStorageItemsView.ts +32 -14
  76. package/front_end/panels/application/ResourcesPanel.ts +5 -5
  77. package/front_end/panels/application/StorageItemsToolbar.ts +0 -19
  78. package/front_end/panels/application/WebMCPView.ts +285 -86
  79. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +4 -4
  80. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +4 -4
  81. package/front_end/panels/application/webMCPView.css +261 -182
  82. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +9 -5
  83. package/front_end/panels/changes/ChangesSidebar.ts +2 -2
  84. package/front_end/panels/changes/ChangesView.ts +9 -14
  85. package/front_end/panels/console/ConsolePanel.ts +10 -3
  86. package/front_end/panels/console/ConsoleSidebar.ts +5 -5
  87. package/front_end/panels/console/ConsoleView.ts +11 -4
  88. package/front_end/panels/console/ConsoleViewMessage.ts +1 -19
  89. package/front_end/panels/coverage/CoverageView.ts +4 -5
  90. package/front_end/panels/elements/ElementsPanel.ts +9 -12
  91. package/front_end/panels/elements/ElementsSidebarPane.ts +4 -5
  92. package/front_end/panels/elements/ElementsTreeElement.ts +61 -0
  93. package/front_end/panels/elements/ElementsTreeOutline.ts +46 -0
  94. package/front_end/panels/elements/LayersWidget.ts +2 -2
  95. package/front_end/panels/elements/MetricsSidebarPane.ts +5 -4
  96. package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
  97. package/front_end/panels/elements/StylePropertyTreeElement.ts +11 -6
  98. package/front_end/panels/elements/StylesSidebarPane.ts +4 -1
  99. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +19 -20
  100. package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +29 -29
  101. package/front_end/panels/elements/components/QueryContainer.ts +5 -6
  102. package/front_end/panels/elements/components/components.ts +0 -2
  103. package/front_end/panels/emulation/MediaQueryInspector.ts +4 -7
  104. package/front_end/panels/layer_viewer/LayerDetailsView.ts +4 -7
  105. package/front_end/panels/layer_viewer/Layers3DView.ts +2 -2
  106. package/front_end/panels/lighthouse/LighthouseStartView.ts +2 -2
  107. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +47 -66
  108. package/front_end/panels/network/NetworkConfigView.ts +11 -11
  109. package/front_end/panels/network/RequestConditionsDrawer.ts +6 -4
  110. package/front_end/panels/network/RequestCookiesView.ts +2 -2
  111. package/front_end/panels/network/RequestDeviceBoundSessionsView.ts +2 -2
  112. package/front_end/panels/network/RequestHeadersView.ts +2 -2
  113. package/front_end/panels/network/components/DirectSocketConnectionView.ts +4 -5
  114. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +6 -9
  115. package/front_end/panels/profiler/HeapProfileView.ts +29 -4
  116. package/front_end/panels/profiler/ProfilesPanel.ts +1 -1
  117. package/front_end/panels/protocol_monitor/JSONEditor.css +8 -1
  118. package/front_end/panels/protocol_monitor/JSONEditor.ts +7 -2
  119. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +6 -4
  120. package/front_end/panels/recorder/components/ControlButton.ts +4 -4
  121. package/front_end/panels/recorder/components/StepView.ts +6 -6
  122. package/front_end/panels/search/SearchView.ts +4 -7
  123. package/front_end/panels/sources/DebuggerPausedMessage.ts +18 -22
  124. package/front_end/panels/sources/SourcesView.ts +1 -1
  125. package/front_end/panels/sources/TabbedEditorContainer.ts +2 -2
  126. package/front_end/panels/sources/ThreadsSidebarPane.ts +2 -4
  127. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +24 -20
  128. package/front_end/panels/timeline/StatusDialog.ts +5 -8
  129. package/front_end/panels/timeline/ThirdPartyTreeView.ts +10 -0
  130. package/front_end/panels/timeline/TimelineLoader.ts +3 -4
  131. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +2 -2
  132. package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +2 -0
  133. package/front_end/panels/timeline/components/TimelineSummary.ts +9 -1
  134. package/front_end/panels/timeline/components/timelineSummary.css +4 -0
  135. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +2 -2
  136. package/front_end/panels/timeline/thirdPartyTreeView.css +8 -1
  137. package/front_end/panels/web_audio/WebAudioView.ts +5 -4
  138. package/front_end/panels/whats_new/ReleaseNoteText.ts +9 -9
  139. package/front_end/panels/whats_new/resources/WNDT.md +9 -6
  140. package/front_end/third_party/chromium/README.chromium +1 -1
  141. package/front_end/third_party/puppeteer/README.chromium +2 -2
  142. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +41 -2
  143. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.d.ts +13 -1
  146. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.d.ts.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.js +21 -1
  148. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Extension.js.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +1 -0
  151. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +2 -2
  153. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
  154. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +5 -5
  155. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +1 -0
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.d.ts +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.d.ts.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.js +2 -2
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Extension.js.map +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +52 -1
  169. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebMCP.js.map +1 -1
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +25 -0
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +2 -2
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +0 -1
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +2 -2
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +2 -2
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  186. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/urlpattern-polyfill/urlpattern-polyfill.d.ts +1 -0
  187. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/urlpattern-polyfill/urlpattern-polyfill.js +853 -0
  188. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +91 -11
  189. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +1046 -33
  190. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +41 -2
  191. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
  193. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.d.ts +13 -1
  194. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.d.ts.map +1 -1
  195. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.js +21 -1
  196. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Extension.js.map +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +1 -0
  199. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js.map +1 -1
  200. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +2 -2
  201. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
  202. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +5 -5
  203. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
  204. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
  206. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
  208. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +1 -0
  209. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
  210. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.d.ts +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.d.ts.map +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.js +2 -2
  213. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Extension.js.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts +1 -1
  215. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +52 -1
  217. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.d.ts.map +1 -1
  219. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebMCP.js.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +25 -0
  221. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  222. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +1 -1
  223. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  224. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +2 -2
  225. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  226. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +0 -1
  228. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +2 -2
  230. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +2 -2
  231. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts +2 -2
  232. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  233. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/esm/third_party/urlpattern-polyfill/urlpattern-polyfill.d.ts +1 -0
  235. package/front_end/third_party/puppeteer/package/lib/esm/third_party/urlpattern-polyfill/urlpattern-polyfill.js +805 -0
  236. package/front_end/third_party/puppeteer/package/lib/types.d.ts +91 -11
  237. package/front_end/third_party/puppeteer/package/package.json +3 -2
  238. package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +53 -11
  239. package/front_end/third_party/puppeteer/package/src/api/Extension.ts +29 -1
  240. package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +1 -0
  241. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +6 -0
  242. package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +2 -0
  243. package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +1 -0
  244. package/front_end/third_party/puppeteer/package/src/cdp/Extension.ts +9 -2
  245. package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +59 -0
  246. package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +6 -1
  247. package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +26 -0
  248. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +2 -0
  249. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +0 -1
  250. package/front_end/third_party/puppeteer/package/src/revisions.ts +2 -2
  251. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  252. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -1
  253. package/front_end/third_party/web-vitals/README.chromium +2 -2
  254. package/front_end/third_party/web-vitals/package/README.md +21 -10
  255. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.js +2 -4
  256. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +1 -2
  257. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +4 -0
  258. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +44 -39
  259. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +25 -19
  260. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +1 -2
  261. package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
  262. package/front_end/third_party/web-vitals/package/dist/modules/lib/getActivationStart.js +1 -2
  263. package/front_end/third_party/web-vitals/package/dist/modules/lib/getLoadState.js +16 -18
  264. package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +2 -1
  265. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +1 -1
  266. package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +1 -1
  267. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.d.ts +1 -1
  268. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +1 -3
  269. package/front_end/third_party/web-vitals/package/dist/modules/lib/whenActivated.js +1 -1
  270. package/front_end/third_party/web-vitals/package/dist/modules/lib/whenIdleOrHidden.js +11 -7
  271. package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +1 -1
  272. package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +4 -0
  273. package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +1 -2
  274. package/front_end/third_party/web-vitals/package/dist/modules/types.js +0 -1
  275. package/front_end/third_party/web-vitals/package/package.json +24 -27
  276. package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +2 -7
  277. package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +1 -2
  278. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +49 -43
  279. package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +27 -24
  280. package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +1 -2
  281. package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
  282. package/front_end/third_party/web-vitals/package/src/lib/getActivationStart.ts +1 -2
  283. package/front_end/third_party/web-vitals/package/src/lib/getLoadState.ts +21 -20
  284. package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +2 -3
  285. package/front_end/third_party/web-vitals/package/src/lib/observe.ts +1 -1
  286. package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +2 -4
  287. package/front_end/third_party/web-vitals/package/src/lib/whenActivated.ts +1 -1
  288. package/front_end/third_party/web-vitals/package/src/lib/whenIdleOrHidden.ts +13 -7
  289. package/front_end/third_party/web-vitals/package/src/onCLS.ts +1 -1
  290. package/front_end/third_party/web-vitals/package/src/types/inp.ts +4 -0
  291. package/front_end/third_party/web-vitals/package/src/types.ts +1 -2
  292. package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +13 -74
  293. package/front_end/third_party/web-vitals/rebuild.sh +3 -3
  294. package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -1
  295. package/front_end/ui/components/icon_button/iconButton.css +1 -0
  296. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +6 -6
  297. package/front_end/ui/components/lists/list.css +4 -0
  298. package/front_end/ui/legacy/Dialog.ts +21 -2
  299. package/front_end/ui/legacy/SoftContextMenu.ts +3 -3
  300. package/front_end/ui/legacy/SplitWidget.ts +9 -9
  301. package/front_end/ui/legacy/TabbedPane.ts +12 -12
  302. package/front_end/ui/legacy/View.ts +24 -22
  303. package/front_end/ui/legacy/ViewManager.ts +12 -12
  304. package/front_end/ui/legacy/ViewRegistration.ts +2 -2
  305. package/front_end/ui/legacy/Widget.ts +165 -119
  306. package/front_end/ui/legacy/components/source_frame/ImageView.ts +10 -5
  307. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +9 -6
  308. package/front_end/ui/legacy/components/utils/Linkifier.ts +37 -11
  309. package/front_end/ui/legacy/components/utils/jsUtils.css +1 -0
  310. package/front_end/ui/legacy/inspectorCommon.css +0 -6
  311. package/front_end/ui/lit/render.ts +11 -9
  312. package/front_end/ui/visual_logging/KnownContextValues.ts +36 -0
  313. package/package.json +1 -1
  314. package/front_end/Images/src/dots-circle.svg +0 -10
  315. package/front_end/panels/elements/components/Helper.ts +0 -35
  316. package/front_end/third_party/web-vitals/package/dist/modules/types/polyfills.d.ts +0 -4
  317. package/front_end/third_party/web-vitals/package/dist/modules/types/polyfills.js +0 -16
  318. package/front_end/third_party/web-vitals/package/src/types/polyfills.ts +0 -24
@@ -0,0 +1,853 @@
1
+ /**
2
+ Copyright 2020 Intel Corporation
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+ */
22
+ "use strict";
23
+ var __getOwnPropNames = Object.getOwnPropertyNames;
24
+ var __commonJS = (cb, mod) => function __require() {
25
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
+ };
27
+
28
+ // node_modules/urlpattern-polyfill/dist/urlpattern.cjs
29
+ var require_urlpattern = __commonJS({
30
+ "node_modules/urlpattern-polyfill/dist/urlpattern.cjs"(exports2, module2) {
31
+ "use strict";
32
+ var U = Object.defineProperty;
33
+ var Re = Object.getOwnPropertyDescriptor;
34
+ var Ee = Object.getOwnPropertyNames;
35
+ var Oe = Object.prototype.hasOwnProperty;
36
+ var a = (e, t) => U(e, "name", { value: t, configurable: true });
37
+ var ke = (e, t) => {
38
+ for (var r in t) U(e, r, { get: t[r], enumerable: true });
39
+ };
40
+ var Te = (e, t, r, n) => {
41
+ if (t && typeof t == "object" || typeof t == "function") for (let o of Ee(t)) !Oe.call(e, o) && o !== r && U(e, o, { get: () => t[o], enumerable: !(n = Re(t, o)) || n.enumerable });
42
+ return e;
43
+ };
44
+ var Ae = (e) => Te(U({}, "__esModule", { value: true }), e);
45
+ var He = {};
46
+ ke(He, { URLPattern: () => M });
47
+ module2.exports = Ae(He);
48
+ var P = class {
49
+ type = 3;
50
+ name = "";
51
+ prefix = "";
52
+ value = "";
53
+ suffix = "";
54
+ modifier = 3;
55
+ constructor(t, r, n, o, l, f) {
56
+ this.type = t, this.name = r, this.prefix = n, this.value = o, this.suffix = l, this.modifier = f;
57
+ }
58
+ hasCustomName() {
59
+ return this.name !== "" && typeof this.name != "number";
60
+ }
61
+ };
62
+ a(P, "Part");
63
+ var ye = /[$_\p{ID_Start}]/u;
64
+ var we = /[$_\u200C\u200D\p{ID_Continue}]/u;
65
+ var F = ".*";
66
+ function Ce(e, t) {
67
+ return (t ? /^[\x00-\xFF]*$/ : /^[\x00-\x7F]*$/).test(e);
68
+ }
69
+ a(Ce, "isASCII");
70
+ function W(e, t = false) {
71
+ let r = [], n = 0;
72
+ for (; n < e.length; ) {
73
+ let o = e[n], l = a(function(f) {
74
+ if (!t) throw new TypeError(f);
75
+ r.push({ type: "INVALID_CHAR", index: n, value: e[n++] });
76
+ }, "ErrorOrInvalid");
77
+ if (o === "*") {
78
+ r.push({ type: "ASTERISK", index: n, value: e[n++] });
79
+ continue;
80
+ }
81
+ if (o === "+" || o === "?") {
82
+ r.push({ type: "OTHER_MODIFIER", index: n, value: e[n++] });
83
+ continue;
84
+ }
85
+ if (o === "\\") {
86
+ r.push({ type: "ESCAPED_CHAR", index: n++, value: e[n++] });
87
+ continue;
88
+ }
89
+ if (o === "{") {
90
+ r.push({ type: "OPEN", index: n, value: e[n++] });
91
+ continue;
92
+ }
93
+ if (o === "}") {
94
+ r.push({ type: "CLOSE", index: n, value: e[n++] });
95
+ continue;
96
+ }
97
+ if (o === ":") {
98
+ let f = "", s = n + 1;
99
+ for (; s < e.length; ) {
100
+ let i = e.substr(s, 1);
101
+ if (s === n + 1 && ye.test(i) || s !== n + 1 && we.test(i)) {
102
+ f += e[s++];
103
+ continue;
104
+ }
105
+ break;
106
+ }
107
+ if (!f) {
108
+ l(`Missing parameter name at ${n}`);
109
+ continue;
110
+ }
111
+ r.push({ type: "NAME", index: n, value: f }), n = s;
112
+ continue;
113
+ }
114
+ if (o === "(") {
115
+ let f = 1, s = "", i = n + 1, c = false;
116
+ if (e[i] === "?") {
117
+ l(`Pattern cannot start with "?" at ${i}`);
118
+ continue;
119
+ }
120
+ for (; i < e.length; ) {
121
+ if (!Ce(e[i], false)) {
122
+ l(`Invalid character '${e[i]}' at ${i}.`), c = true;
123
+ break;
124
+ }
125
+ if (e[i] === "\\") {
126
+ s += e[i++] + e[i++];
127
+ continue;
128
+ }
129
+ if (e[i] === ")") {
130
+ if (f--, f === 0) {
131
+ i++;
132
+ break;
133
+ }
134
+ } else if (e[i] === "(" && (f++, e[i + 1] !== "?")) {
135
+ l(`Capturing groups are not allowed at ${i}`), c = true;
136
+ break;
137
+ }
138
+ s += e[i++];
139
+ }
140
+ if (c) continue;
141
+ if (f) {
142
+ l(`Unbalanced pattern at ${n}`);
143
+ continue;
144
+ }
145
+ if (!s) {
146
+ l(`Missing pattern at ${n}`);
147
+ continue;
148
+ }
149
+ r.push({ type: "REGEX", index: n, value: s }), n = i;
150
+ continue;
151
+ }
152
+ r.push({ type: "CHAR", index: n, value: e[n++] });
153
+ }
154
+ return r.push({ type: "END", index: n, value: "" }), r;
155
+ }
156
+ a(W, "lexer");
157
+ function _(e, t = {}) {
158
+ let r = W(e);
159
+ t.delimiter ??= "/#?", t.prefixes ??= "./";
160
+ let n = `[^${x(t.delimiter)}]+?`, o = [], l = 0, f = 0, s = "", i = /* @__PURE__ */ new Set(), c = a((u) => {
161
+ if (f < r.length && r[f].type === u) return r[f++].value;
162
+ }, "tryConsume"), h = a(() => c("OTHER_MODIFIER") ?? c("ASTERISK"), "tryConsumeModifier"), p = a((u) => {
163
+ let d = c(u);
164
+ if (d !== void 0) return d;
165
+ let { type: g, index: y } = r[f];
166
+ throw new TypeError(`Unexpected ${g} at ${y}, expected ${u}`);
167
+ }, "mustConsume"), A = a(() => {
168
+ let u = "", d;
169
+ for (; d = c("CHAR") ?? c("ESCAPED_CHAR"); ) u += d;
170
+ return u;
171
+ }, "consumeText"), be = a((u) => u, "DefaultEncodePart"), N = t.encodePart || be, H = "", v = a((u) => {
172
+ H += u;
173
+ }, "appendToPendingFixedValue"), D = a(() => {
174
+ H.length && (o.push(new P(3, "", "", N(H), "", 3)), H = "");
175
+ }, "maybeAddPartFromPendingFixedValue"), Z = a((u, d, g, y, B) => {
176
+ let m = 3;
177
+ switch (B) {
178
+ case "?":
179
+ m = 1;
180
+ break;
181
+ case "*":
182
+ m = 0;
183
+ break;
184
+ case "+":
185
+ m = 2;
186
+ break;
187
+ }
188
+ if (!d && !g && m === 3) {
189
+ v(u);
190
+ return;
191
+ }
192
+ if (D(), !d && !g) {
193
+ if (!u) return;
194
+ o.push(new P(3, "", "", N(u), "", m));
195
+ return;
196
+ }
197
+ let S;
198
+ g ? g === "*" ? S = F : S = g : S = n;
199
+ let k = 2;
200
+ S === n ? (k = 1, S = "") : S === F && (k = 0, S = "");
201
+ let E;
202
+ if (d ? E = d : g && (E = l++), i.has(E)) throw new TypeError(`Duplicate name '${E}'.`);
203
+ i.add(E), o.push(new P(k, E, N(u), S, N(y), m));
204
+ }, "addPart");
205
+ for (; f < r.length; ) {
206
+ let u = c("CHAR"), d = c("NAME"), g = c("REGEX");
207
+ if (!d && !g && (g = c("ASTERISK")), d || g) {
208
+ let m = u ?? "";
209
+ t.prefixes.indexOf(m) === -1 && (v(m), m = ""), D();
210
+ let S = h();
211
+ Z(m, d, g, "", S);
212
+ continue;
213
+ }
214
+ let y = u ?? c("ESCAPED_CHAR");
215
+ if (y) {
216
+ v(y);
217
+ continue;
218
+ }
219
+ if (c("OPEN")) {
220
+ let m = A(), S = c("NAME"), k = c("REGEX");
221
+ !S && !k && (k = c("ASTERISK"));
222
+ let E = A();
223
+ p("CLOSE");
224
+ let Pe = h();
225
+ Z(m, S, k, E, Pe);
226
+ continue;
227
+ }
228
+ D(), p("END");
229
+ }
230
+ return o;
231
+ }
232
+ a(_, "parse");
233
+ function x(e) {
234
+ return e.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
235
+ }
236
+ a(x, "escapeString");
237
+ function q(e) {
238
+ return e && e.ignoreCase ? "ui" : "u";
239
+ }
240
+ a(q, "flags");
241
+ function J(e, t, r) {
242
+ return z(_(e, r), t, r);
243
+ }
244
+ a(J, "stringToRegexp");
245
+ function T(e) {
246
+ switch (e) {
247
+ case 0:
248
+ return "*";
249
+ case 1:
250
+ return "?";
251
+ case 2:
252
+ return "+";
253
+ case 3:
254
+ return "";
255
+ }
256
+ }
257
+ a(T, "modifierToString");
258
+ function z(e, t, r = {}) {
259
+ r.delimiter ??= "/#?", r.prefixes ??= "./", r.sensitive ??= false, r.strict ??= false, r.end ??= true, r.start ??= true, r.endsWith = "";
260
+ let n = r.start ? "^" : "";
261
+ for (let s of e) {
262
+ if (s.type === 3) {
263
+ s.modifier === 3 ? n += x(s.value) : n += `(?:${x(s.value)})${T(s.modifier)}`;
264
+ continue;
265
+ }
266
+ t && t.push(s.name);
267
+ let i = `[^${x(r.delimiter)}]+?`, c = s.value;
268
+ if (s.type === 1 ? c = i : s.type === 0 && (c = F), !s.prefix.length && !s.suffix.length) {
269
+ s.modifier === 3 || s.modifier === 1 ? n += `(${c})${T(s.modifier)}` : n += `((?:${c})${T(s.modifier)})`;
270
+ continue;
271
+ }
272
+ if (s.modifier === 3 || s.modifier === 1) {
273
+ n += `(?:${x(s.prefix)}(${c})${x(s.suffix)})`, n += T(s.modifier);
274
+ continue;
275
+ }
276
+ n += `(?:${x(s.prefix)}`, n += `((?:${c})(?:`, n += x(s.suffix), n += x(s.prefix), n += `(?:${c}))*)${x(s.suffix)})`, s.modifier === 0 && (n += "?");
277
+ }
278
+ let o = `[${x(r.endsWith)}]|$`, l = `[${x(r.delimiter)}]`;
279
+ if (r.end) return r.strict || (n += `${l}?`), r.endsWith.length ? n += `(?=${o})` : n += "$", new RegExp(n, q(r));
280
+ r.strict || (n += `(?:${l}(?=${o}))?`);
281
+ let f = false;
282
+ if (e.length) {
283
+ let s = e[e.length - 1];
284
+ s.type === 3 && s.modifier === 3 && (f = r.delimiter.indexOf(s) > -1);
285
+ }
286
+ return f || (n += `(?=${l}|${o})`), new RegExp(n, q(r));
287
+ }
288
+ a(z, "partsToRegexp");
289
+ var b = { delimiter: "", prefixes: "", sensitive: true, strict: true };
290
+ var Q = { delimiter: ".", prefixes: "", sensitive: true, strict: true };
291
+ var ee = { delimiter: "/", prefixes: "/", sensitive: true, strict: true };
292
+ function te(e, t) {
293
+ return e.length ? e[0] === "/" ? true : !t || e.length < 2 ? false : (e[0] == "\\" || e[0] == "{") && e[1] == "/" : false;
294
+ }
295
+ a(te, "isAbsolutePathname");
296
+ function re(e, t) {
297
+ return e.startsWith(t) ? e.substring(t.length, e.length) : e;
298
+ }
299
+ a(re, "maybeStripPrefix");
300
+ function Le(e, t) {
301
+ return e.endsWith(t) ? e.substr(0, e.length - t.length) : e;
302
+ }
303
+ a(Le, "maybeStripSuffix");
304
+ function j(e) {
305
+ return !e || e.length < 2 ? false : e[0] === "[" || (e[0] === "\\" || e[0] === "{") && e[1] === "[";
306
+ }
307
+ a(j, "treatAsIPv6Hostname");
308
+ var ne = ["ftp", "file", "http", "https", "ws", "wss"];
309
+ function $(e) {
310
+ if (!e) return true;
311
+ for (let t of ne) if (e.test(t)) return true;
312
+ return false;
313
+ }
314
+ a($, "isSpecialScheme");
315
+ function se(e, t) {
316
+ if (e = re(e, "#"), t || e === "") return e;
317
+ let r = new URL("https://example.com");
318
+ return r.hash = e, r.hash ? r.hash.substring(1, r.hash.length) : "";
319
+ }
320
+ a(se, "canonicalizeHash");
321
+ function ie(e, t) {
322
+ if (e = re(e, "?"), t || e === "") return e;
323
+ let r = new URL("https://example.com");
324
+ return r.search = e, r.search ? r.search.substring(1, r.search.length) : "";
325
+ }
326
+ a(ie, "canonicalizeSearch");
327
+ function ae(e, t) {
328
+ return t || e === "" ? e : j(e) ? V(e) : G(e);
329
+ }
330
+ a(ae, "canonicalizeHostname");
331
+ function oe(e, t) {
332
+ if (t || e === "") return e;
333
+ let r = new URL("https://example.com");
334
+ return r.password = e, r.password;
335
+ }
336
+ a(oe, "canonicalizePassword");
337
+ function ce(e, t) {
338
+ if (t || e === "") return e;
339
+ let r = new URL("https://example.com");
340
+ return r.username = e, r.username;
341
+ }
342
+ a(ce, "canonicalizeUsername");
343
+ function le(e, t, r) {
344
+ if (r || e === "") return e;
345
+ if (t && !ne.includes(t)) return new URL(`${t}:${e}`).pathname;
346
+ let n = e[0] == "/";
347
+ return e = new URL(n ? e : "/-" + e, "https://example.com").pathname, n || (e = e.substring(2, e.length)), e;
348
+ }
349
+ a(le, "canonicalizePathname");
350
+ function fe(e, t, r) {
351
+ return K(t) === e && (e = ""), r || e === "" ? e : Y(e);
352
+ }
353
+ a(fe, "canonicalizePort");
354
+ function he(e, t) {
355
+ return e = Le(e, ":"), t || e === "" ? e : w(e);
356
+ }
357
+ a(he, "canonicalizeProtocol");
358
+ function K(e) {
359
+ switch (e) {
360
+ case "ws":
361
+ case "http":
362
+ return "80";
363
+ case "wws":
364
+ case "https":
365
+ return "443";
366
+ case "ftp":
367
+ return "21";
368
+ default:
369
+ return "";
370
+ }
371
+ }
372
+ a(K, "defaultPortForProtocol");
373
+ function w(e) {
374
+ if (e === "") return e;
375
+ if (/^[-+.A-Za-z0-9]*$/.test(e)) return e.toLowerCase();
376
+ throw new TypeError(`Invalid protocol '${e}'.`);
377
+ }
378
+ a(w, "protocolEncodeCallback");
379
+ function ue(e) {
380
+ if (e === "") return e;
381
+ let t = new URL("https://example.com");
382
+ return t.username = e, t.username;
383
+ }
384
+ a(ue, "usernameEncodeCallback");
385
+ function de(e) {
386
+ if (e === "") return e;
387
+ let t = new URL("https://example.com");
388
+ return t.password = e, t.password;
389
+ }
390
+ a(de, "passwordEncodeCallback");
391
+ function G(e) {
392
+ if (e === "") return e;
393
+ if (/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)) throw new TypeError(`Invalid hostname '${e}'`);
394
+ let t = new URL("https://example.com");
395
+ return t.hostname = e, t.hostname;
396
+ }
397
+ a(G, "hostnameEncodeCallback");
398
+ function V(e) {
399
+ if (e === "") return e;
400
+ if (/[^0-9a-fA-F[\]:]/g.test(e)) throw new TypeError(`Invalid IPv6 hostname '${e}'`);
401
+ return e.toLowerCase();
402
+ }
403
+ a(V, "ipv6HostnameEncodeCallback");
404
+ function Y(e) {
405
+ if (e === "" || /^[0-9]*$/.test(e) && parseInt(e) <= 65535) return e;
406
+ throw new TypeError(`Invalid port '${e}'.`);
407
+ }
408
+ a(Y, "portEncodeCallback");
409
+ function pe(e) {
410
+ if (e === "") return e;
411
+ let t = new URL("https://example.com");
412
+ return t.pathname = e[0] !== "/" ? "/-" + e : e, e[0] !== "/" ? t.pathname.substring(2, t.pathname.length) : t.pathname;
413
+ }
414
+ a(pe, "standardURLPathnameEncodeCallback");
415
+ function ge(e) {
416
+ return e === "" ? e : new URL(`data:${e}`).pathname;
417
+ }
418
+ a(ge, "pathURLPathnameEncodeCallback");
419
+ function me(e) {
420
+ if (e === "") return e;
421
+ let t = new URL("https://example.com");
422
+ return t.search = e, t.search.substring(1, t.search.length);
423
+ }
424
+ a(me, "searchEncodeCallback");
425
+ function Se(e) {
426
+ if (e === "") return e;
427
+ let t = new URL("https://example.com");
428
+ return t.hash = e, t.hash.substring(1, t.hash.length);
429
+ }
430
+ a(Se, "hashEncodeCallback");
431
+ var C = class {
432
+ #i;
433
+ #n = [];
434
+ #t = {};
435
+ #e = 0;
436
+ #s = 1;
437
+ #l = 0;
438
+ #o = 0;
439
+ #d = 0;
440
+ #p = 0;
441
+ #g = false;
442
+ constructor(t) {
443
+ this.#i = t;
444
+ }
445
+ get result() {
446
+ return this.#t;
447
+ }
448
+ parse() {
449
+ for (this.#n = W(this.#i, true); this.#e < this.#n.length; this.#e += this.#s) {
450
+ if (this.#s = 1, this.#n[this.#e].type === "END") {
451
+ if (this.#o === 0) {
452
+ this.#b(), this.#f() ? this.#r(9, 1) : this.#h() ? this.#r(8, 1) : this.#r(7, 0);
453
+ continue;
454
+ } else if (this.#o === 2) {
455
+ this.#u(5);
456
+ continue;
457
+ }
458
+ this.#r(10, 0);
459
+ break;
460
+ }
461
+ if (this.#d > 0) if (this.#A()) this.#d -= 1;
462
+ else continue;
463
+ if (this.#T()) {
464
+ this.#d += 1;
465
+ continue;
466
+ }
467
+ switch (this.#o) {
468
+ case 0:
469
+ this.#P() && this.#u(1);
470
+ break;
471
+ case 1:
472
+ if (this.#P()) {
473
+ this.#C();
474
+ let t = 7, r = 1;
475
+ this.#E() ? (t = 2, r = 3) : this.#g && (t = 2), this.#r(t, r);
476
+ }
477
+ break;
478
+ case 2:
479
+ this.#S() ? this.#u(3) : (this.#x() || this.#h() || this.#f()) && this.#u(5);
480
+ break;
481
+ case 3:
482
+ this.#O() ? this.#r(4, 1) : this.#S() && this.#r(5, 1);
483
+ break;
484
+ case 4:
485
+ this.#S() && this.#r(5, 1);
486
+ break;
487
+ case 5:
488
+ this.#y() ? this.#p += 1 : this.#w() && (this.#p -= 1), this.#k() && !this.#p ? this.#r(6, 1) : this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);
489
+ break;
490
+ case 6:
491
+ this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);
492
+ break;
493
+ case 7:
494
+ this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);
495
+ break;
496
+ case 8:
497
+ this.#f() && this.#r(9, 1);
498
+ break;
499
+ case 9:
500
+ break;
501
+ case 10:
502
+ break;
503
+ }
504
+ }
505
+ this.#t.hostname !== void 0 && this.#t.port === void 0 && (this.#t.port = "");
506
+ }
507
+ #r(t, r) {
508
+ switch (this.#o) {
509
+ case 0:
510
+ break;
511
+ case 1:
512
+ this.#t.protocol = this.#c();
513
+ break;
514
+ case 2:
515
+ break;
516
+ case 3:
517
+ this.#t.username = this.#c();
518
+ break;
519
+ case 4:
520
+ this.#t.password = this.#c();
521
+ break;
522
+ case 5:
523
+ this.#t.hostname = this.#c();
524
+ break;
525
+ case 6:
526
+ this.#t.port = this.#c();
527
+ break;
528
+ case 7:
529
+ this.#t.pathname = this.#c();
530
+ break;
531
+ case 8:
532
+ this.#t.search = this.#c();
533
+ break;
534
+ case 9:
535
+ this.#t.hash = this.#c();
536
+ break;
537
+ case 10:
538
+ break;
539
+ }
540
+ this.#o !== 0 && t !== 10 && ([1, 2, 3, 4].includes(this.#o) && [6, 7, 8, 9].includes(t) && (this.#t.hostname ??= ""), [1, 2, 3, 4, 5, 6].includes(this.#o) && [8, 9].includes(t) && (this.#t.pathname ??= this.#g ? "/" : ""), [1, 2, 3, 4, 5, 6, 7].includes(this.#o) && t === 9 && (this.#t.search ??= "")), this.#R(t, r);
541
+ }
542
+ #R(t, r) {
543
+ this.#o = t, this.#l = this.#e + r, this.#e += r, this.#s = 0;
544
+ }
545
+ #b() {
546
+ this.#e = this.#l, this.#s = 0;
547
+ }
548
+ #u(t) {
549
+ this.#b(), this.#o = t;
550
+ }
551
+ #m(t) {
552
+ return t < 0 && (t = this.#n.length - t), t < this.#n.length ? this.#n[t] : this.#n[this.#n.length - 1];
553
+ }
554
+ #a(t, r) {
555
+ let n = this.#m(t);
556
+ return n.value === r && (n.type === "CHAR" || n.type === "ESCAPED_CHAR" || n.type === "INVALID_CHAR");
557
+ }
558
+ #P() {
559
+ return this.#a(this.#e, ":");
560
+ }
561
+ #E() {
562
+ return this.#a(this.#e + 1, "/") && this.#a(this.#e + 2, "/");
563
+ }
564
+ #S() {
565
+ return this.#a(this.#e, "@");
566
+ }
567
+ #O() {
568
+ return this.#a(this.#e, ":");
569
+ }
570
+ #k() {
571
+ return this.#a(this.#e, ":");
572
+ }
573
+ #x() {
574
+ return this.#a(this.#e, "/");
575
+ }
576
+ #h() {
577
+ if (this.#a(this.#e, "?")) return true;
578
+ if (this.#n[this.#e].value !== "?") return false;
579
+ let t = this.#m(this.#e - 1);
580
+ return t.type !== "NAME" && t.type !== "REGEX" && t.type !== "CLOSE" && t.type !== "ASTERISK";
581
+ }
582
+ #f() {
583
+ return this.#a(this.#e, "#");
584
+ }
585
+ #T() {
586
+ return this.#n[this.#e].type == "OPEN";
587
+ }
588
+ #A() {
589
+ return this.#n[this.#e].type == "CLOSE";
590
+ }
591
+ #y() {
592
+ return this.#a(this.#e, "[");
593
+ }
594
+ #w() {
595
+ return this.#a(this.#e, "]");
596
+ }
597
+ #c() {
598
+ let t = this.#n[this.#e], r = this.#m(this.#l).index;
599
+ return this.#i.substring(r, t.index);
600
+ }
601
+ #C() {
602
+ let t = {};
603
+ Object.assign(t, b), t.encodePart = w;
604
+ let r = J(this.#c(), void 0, t);
605
+ this.#g = $(r);
606
+ }
607
+ };
608
+ a(C, "Parser");
609
+ var X = ["protocol", "username", "password", "hostname", "port", "pathname", "search", "hash"];
610
+ var O = "*";
611
+ function xe(e, t) {
612
+ if (typeof e != "string") throw new TypeError("parameter 1 is not of type 'string'.");
613
+ let r = new URL(e, t);
614
+ return { protocol: r.protocol.substring(0, r.protocol.length - 1), username: r.username, password: r.password, hostname: r.hostname, port: r.port, pathname: r.pathname, search: r.search !== "" ? r.search.substring(1, r.search.length) : void 0, hash: r.hash !== "" ? r.hash.substring(1, r.hash.length) : void 0 };
615
+ }
616
+ a(xe, "extractValues");
617
+ function R(e, t) {
618
+ return t ? I(e) : e;
619
+ }
620
+ a(R, "processBaseURLString");
621
+ function L(e, t, r) {
622
+ let n;
623
+ if (typeof t.baseURL == "string") try {
624
+ n = new URL(t.baseURL), t.protocol === void 0 && (e.protocol = R(n.protocol.substring(0, n.protocol.length - 1), r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && (e.username = R(n.username, r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && t.password === void 0 && (e.password = R(n.password, r)), t.protocol === void 0 && t.hostname === void 0 && (e.hostname = R(n.hostname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && (e.port = R(n.port, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && (e.pathname = R(n.pathname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && (e.search = R(n.search.substring(1, n.search.length), r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && t.hash === void 0 && (e.hash = R(n.hash.substring(1, n.hash.length), r));
625
+ } catch {
626
+ throw new TypeError(`invalid baseURL '${t.baseURL}'.`);
627
+ }
628
+ if (typeof t.protocol == "string" && (e.protocol = he(t.protocol, r)), typeof t.username == "string" && (e.username = ce(t.username, r)), typeof t.password == "string" && (e.password = oe(t.password, r)), typeof t.hostname == "string" && (e.hostname = ae(t.hostname, r)), typeof t.port == "string" && (e.port = fe(t.port, e.protocol, r)), typeof t.pathname == "string") {
629
+ if (e.pathname = t.pathname, n && !te(e.pathname, r)) {
630
+ let o = n.pathname.lastIndexOf("/");
631
+ o >= 0 && (e.pathname = R(n.pathname.substring(0, o + 1), r) + e.pathname);
632
+ }
633
+ e.pathname = le(e.pathname, e.protocol, r);
634
+ }
635
+ return typeof t.search == "string" && (e.search = ie(t.search, r)), typeof t.hash == "string" && (e.hash = se(t.hash, r)), e;
636
+ }
637
+ a(L, "applyInit");
638
+ function I(e) {
639
+ return e.replace(/([+*?:{}()\\])/g, "\\$1");
640
+ }
641
+ a(I, "escapePatternString");
642
+ function Ie(e) {
643
+ return e.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
644
+ }
645
+ a(Ie, "escapeRegexpString");
646
+ function Ne(e, t) {
647
+ t.delimiter ??= "/#?", t.prefixes ??= "./", t.sensitive ??= false, t.strict ??= false, t.end ??= true, t.start ??= true, t.endsWith = "";
648
+ let r = ".*", n = `[^${Ie(t.delimiter)}]+?`, o = /[$_\u200C\u200D\p{ID_Continue}]/u, l = "";
649
+ for (let f = 0; f < e.length; ++f) {
650
+ let s = e[f];
651
+ if (s.type === 3) {
652
+ if (s.modifier === 3) {
653
+ l += I(s.value);
654
+ continue;
655
+ }
656
+ l += `{${I(s.value)}}${T(s.modifier)}`;
657
+ continue;
658
+ }
659
+ let i = s.hasCustomName(), c = !!s.suffix.length || !!s.prefix.length && (s.prefix.length !== 1 || !t.prefixes.includes(s.prefix)), h = f > 0 ? e[f - 1] : null, p = f < e.length - 1 ? e[f + 1] : null;
660
+ if (!c && i && s.type === 1 && s.modifier === 3 && p && !p.prefix.length && !p.suffix.length) if (p.type === 3) {
661
+ let A = p.value.length > 0 ? p.value[0] : "";
662
+ c = o.test(A);
663
+ } else c = !p.hasCustomName();
664
+ if (!c && !s.prefix.length && h && h.type === 3) {
665
+ let A = h.value[h.value.length - 1];
666
+ c = t.prefixes.includes(A);
667
+ }
668
+ c && (l += "{"), l += I(s.prefix), i && (l += `:${s.name}`), s.type === 2 ? l += `(${s.value})` : s.type === 1 ? i || (l += `(${n})`) : s.type === 0 && (!i && (!h || h.type === 3 || h.modifier !== 3 || c || s.prefix !== "") ? l += "*" : l += `(${r})`), s.type === 1 && i && s.suffix.length && o.test(s.suffix[0]) && (l += "\\"), l += I(s.suffix), c && (l += "}"), s.modifier !== 3 && (l += T(s.modifier));
669
+ }
670
+ return l;
671
+ }
672
+ a(Ne, "partsToPattern");
673
+ var M = class {
674
+ #i;
675
+ #n = {};
676
+ #t = {};
677
+ #e = {};
678
+ #s = {};
679
+ #l = false;
680
+ constructor(t = {}, r, n) {
681
+ try {
682
+ let o;
683
+ if (typeof r == "string" ? o = r : n = r, typeof t == "string") {
684
+ let i = new C(t);
685
+ if (i.parse(), t = i.result, o === void 0 && typeof t.protocol != "string") throw new TypeError("A base URL must be provided for a relative constructor string.");
686
+ t.baseURL = o;
687
+ } else {
688
+ if (!t || typeof t != "object") throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");
689
+ if (o) throw new TypeError("parameter 1 is not of type 'string'.");
690
+ }
691
+ typeof n > "u" && (n = { ignoreCase: false });
692
+ let l = { ignoreCase: n.ignoreCase === true }, f = { pathname: O, protocol: O, username: O, password: O, hostname: O, port: O, search: O, hash: O };
693
+ this.#i = L(f, t, true), K(this.#i.protocol) === this.#i.port && (this.#i.port = "");
694
+ let s;
695
+ for (s of X) {
696
+ if (!(s in this.#i)) continue;
697
+ let i = {}, c = this.#i[s];
698
+ switch (this.#t[s] = [], s) {
699
+ case "protocol":
700
+ Object.assign(i, b), i.encodePart = w;
701
+ break;
702
+ case "username":
703
+ Object.assign(i, b), i.encodePart = ue;
704
+ break;
705
+ case "password":
706
+ Object.assign(i, b), i.encodePart = de;
707
+ break;
708
+ case "hostname":
709
+ Object.assign(i, Q), j(c) ? i.encodePart = V : i.encodePart = G;
710
+ break;
711
+ case "port":
712
+ Object.assign(i, b), i.encodePart = Y;
713
+ break;
714
+ case "pathname":
715
+ $(this.#n.protocol) ? (Object.assign(i, ee, l), i.encodePart = pe) : (Object.assign(i, b, l), i.encodePart = ge);
716
+ break;
717
+ case "search":
718
+ Object.assign(i, b, l), i.encodePart = me;
719
+ break;
720
+ case "hash":
721
+ Object.assign(i, b, l), i.encodePart = Se;
722
+ break;
723
+ }
724
+ try {
725
+ this.#s[s] = _(c, i), this.#n[s] = z(this.#s[s], this.#t[s], i), this.#e[s] = Ne(this.#s[s], i), this.#l = this.#l || this.#s[s].some((h) => h.type === 2);
726
+ } catch {
727
+ throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`);
728
+ }
729
+ }
730
+ } catch (o) {
731
+ throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`);
732
+ }
733
+ }
734
+ get [Symbol.toStringTag]() {
735
+ return "URLPattern";
736
+ }
737
+ test(t = {}, r) {
738
+ let n = { pathname: "", protocol: "", username: "", password: "", hostname: "", port: "", search: "", hash: "" };
739
+ if (typeof t != "string" && r) throw new TypeError("parameter 1 is not of type 'string'.");
740
+ if (typeof t > "u") return false;
741
+ try {
742
+ typeof t == "object" ? n = L(n, t, false) : n = L(n, xe(t, r), false);
743
+ } catch {
744
+ return false;
745
+ }
746
+ let o;
747
+ for (o of X) if (!this.#n[o].exec(n[o])) return false;
748
+ return true;
749
+ }
750
+ exec(t = {}, r) {
751
+ let n = { pathname: "", protocol: "", username: "", password: "", hostname: "", port: "", search: "", hash: "" };
752
+ if (typeof t != "string" && r) throw new TypeError("parameter 1 is not of type 'string'.");
753
+ if (typeof t > "u") return;
754
+ try {
755
+ typeof t == "object" ? n = L(n, t, false) : n = L(n, xe(t, r), false);
756
+ } catch {
757
+ return null;
758
+ }
759
+ let o = {};
760
+ r ? o.inputs = [t, r] : o.inputs = [t];
761
+ let l;
762
+ for (l of X) {
763
+ let f = this.#n[l].exec(n[l]);
764
+ if (!f) return null;
765
+ let s = {};
766
+ for (let [i, c] of this.#t[l].entries()) if (typeof c == "string" || typeof c == "number") {
767
+ let h = f[i + 1];
768
+ s[c] = h;
769
+ }
770
+ o[l] = { input: n[l] ?? "", groups: s };
771
+ }
772
+ return o;
773
+ }
774
+ static compareComponent(t, r, n) {
775
+ let o = a((i, c) => {
776
+ for (let h of ["type", "modifier", "prefix", "value", "suffix"]) {
777
+ if (i[h] < c[h]) return -1;
778
+ if (i[h] === c[h]) continue;
779
+ return 1;
780
+ }
781
+ return 0;
782
+ }, "comparePart"), l = new P(3, "", "", "", "", 3), f = new P(0, "", "", "", "", 3), s = a((i, c) => {
783
+ let h = 0;
784
+ for (; h < Math.min(i.length, c.length); ++h) {
785
+ let p = o(i[h], c[h]);
786
+ if (p) return p;
787
+ }
788
+ return i.length === c.length ? 0 : o(i[h] ?? l, c[h] ?? l);
789
+ }, "comparePartList");
790
+ return !r.#e[t] && !n.#e[t] ? 0 : r.#e[t] && !n.#e[t] ? s(r.#s[t], [f]) : !r.#e[t] && n.#e[t] ? s([f], n.#s[t]) : s(r.#s[t], n.#s[t]);
791
+ }
792
+ get protocol() {
793
+ return this.#e.protocol;
794
+ }
795
+ get username() {
796
+ return this.#e.username;
797
+ }
798
+ get password() {
799
+ return this.#e.password;
800
+ }
801
+ get hostname() {
802
+ return this.#e.hostname;
803
+ }
804
+ get port() {
805
+ return this.#e.port;
806
+ }
807
+ get pathname() {
808
+ return this.#e.pathname;
809
+ }
810
+ get search() {
811
+ return this.#e.search;
812
+ }
813
+ get hash() {
814
+ return this.#e.hash;
815
+ }
816
+ get hasRegExpGroups() {
817
+ return this.#l;
818
+ }
819
+ };
820
+ a(M, "URLPattern");
821
+ }
822
+ });
823
+
824
+ // node_modules/urlpattern-polyfill/index.cjs
825
+ var require_urlpattern_polyfill = __commonJS({
826
+ "node_modules/urlpattern-polyfill/index.cjs"(exports2, module2) {
827
+ var { URLPattern } = require_urlpattern();
828
+ module2.exports = { URLPattern };
829
+ if (!globalThis.URLPattern) {
830
+ globalThis.URLPattern = URLPattern;
831
+ }
832
+ }
833
+ });
834
+
835
+ // lib/cjs/third_party/urlpattern-polyfill/urlpattern-polyfill.js
836
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
837
+ if (k2 === void 0) k2 = k;
838
+ var desc = Object.getOwnPropertyDescriptor(m, k);
839
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
840
+ desc = { enumerable: true, get: function() {
841
+ return m[k];
842
+ } };
843
+ }
844
+ Object.defineProperty(o, k2, desc);
845
+ }) : (function(o, m, k, k2) {
846
+ if (k2 === void 0) k2 = k;
847
+ o[k2] = m[k];
848
+ }));
849
+ var __exportStar = exports && exports.__exportStar || function(m, exports2) {
850
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
851
+ };
852
+ Object.defineProperty(exports, "__esModule", { value: true });
853
+ __exportStar(require_urlpattern_polyfill(), exports);