@qilin-agent/experimental-inspector 0.0.0-stage → 3.1.3

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 (930) hide show
  1. package/README.i18n.yaml +49 -0
  2. package/README.md +179 -2
  3. package/README.zh.md +180 -0
  4. package/cordis.patch.yml +5 -0
  5. package/icon.svg +12 -0
  6. package/lib/client.js +3572 -0
  7. package/lib/client.page.js +314 -0
  8. package/lib/devtools/Images/3d-center.svg +3 -0
  9. package/lib/devtools/Images/3d-pan.svg +3 -0
  10. package/lib/devtools/Images/3d-rotate.svg +3 -0
  11. package/lib/devtools/Images/accelerometer-back.svg +69 -0
  12. package/lib/devtools/Images/accelerometer-bottom.png +0 -0
  13. package/lib/devtools/Images/accelerometer-front.svg +28 -0
  14. package/lib/devtools/Images/accelerometer-left.png +0 -0
  15. package/lib/devtools/Images/accelerometer-right.png +0 -0
  16. package/lib/devtools/Images/accelerometer-top.png +0 -0
  17. package/lib/devtools/Images/account-tree.svg +10 -0
  18. package/lib/devtools/Images/add-photo.svg +3 -0
  19. package/lib/devtools/Images/ai-explorer-badge.svg +114 -0
  20. package/lib/devtools/Images/align-content-center.svg +5 -0
  21. package/lib/devtools/Images/align-content-end.svg +5 -0
  22. package/lib/devtools/Images/align-content-space-around.svg +6 -0
  23. package/lib/devtools/Images/align-content-space-between.svg +4 -0
  24. package/lib/devtools/Images/align-content-space-evenly.svg +6 -0
  25. package/lib/devtools/Images/align-content-start.svg +5 -0
  26. package/lib/devtools/Images/align-content-stretch.svg +4 -0
  27. package/lib/devtools/Images/align-items-baseline.svg +4 -0
  28. package/lib/devtools/Images/align-items-center.svg +5 -0
  29. package/lib/devtools/Images/align-items-end.svg +5 -0
  30. package/lib/devtools/Images/align-items-start.svg +5 -0
  31. package/lib/devtools/Images/align-items-stretch.svg +6 -0
  32. package/lib/devtools/Images/align-self-center.svg +3 -0
  33. package/lib/devtools/Images/align-self-end.svg +4 -0
  34. package/lib/devtools/Images/align-self-start.svg +4 -0
  35. package/lib/devtools/Images/align-self-stretch.svg +5 -0
  36. package/lib/devtools/Images/animation.svg +3 -0
  37. package/lib/devtools/Images/arrow-back.svg +4 -0
  38. package/lib/devtools/Images/arrow-collapse.svg +3 -0
  39. package/lib/devtools/Images/arrow-down.svg +10 -0
  40. package/lib/devtools/Images/arrow-drop-down-dark.svg +3 -0
  41. package/lib/devtools/Images/arrow-drop-down-light.svg +3 -0
  42. package/lib/devtools/Images/arrow-drop-down.svg +3 -0
  43. package/lib/devtools/Images/arrow-forward.svg +4 -0
  44. package/lib/devtools/Images/arrow-right-circle.svg +3 -0
  45. package/lib/devtools/Images/arrow-up-down-circle.svg +3 -0
  46. package/lib/devtools/Images/arrow-up-down.svg +3 -0
  47. package/lib/devtools/Images/arrow-up.svg +10 -0
  48. package/lib/devtools/Images/attach-file.svg +3 -0
  49. package/lib/devtools/Images/baseline-high-availability.svg +17 -0
  50. package/lib/devtools/Images/baseline-limited-availability.svg +19 -0
  51. package/lib/devtools/Images/baseline-low-availability.svg +31 -0
  52. package/lib/devtools/Images/bell.svg +3 -0
  53. package/lib/devtools/Images/bezier-curve-filled.svg +3 -0
  54. package/lib/devtools/Images/bin.svg +1 -0
  55. package/lib/devtools/Images/bottom-panel-close.svg +1 -0
  56. package/lib/devtools/Images/bottom-panel-open.svg +1 -0
  57. package/lib/devtools/Images/brackets.svg +1 -0
  58. package/lib/devtools/Images/breakpoint-circle.svg +4 -0
  59. package/lib/devtools/Images/breakpoint-crossed-filled.svg +1 -0
  60. package/lib/devtools/Images/breakpoint-crossed.svg +1 -0
  61. package/lib/devtools/Images/brush-2.svg +3 -0
  62. package/lib/devtools/Images/brush-filled.svg +1 -0
  63. package/lib/devtools/Images/brush.svg +1 -0
  64. package/lib/devtools/Images/bucket.svg +4 -0
  65. package/lib/devtools/Images/bug.svg +3 -0
  66. package/lib/devtools/Images/button-magic.svg +3 -0
  67. package/lib/devtools/Images/calendar-today.svg +3 -0
  68. package/lib/devtools/Images/center-focus-weak.svg +3 -0
  69. package/lib/devtools/Images/check-circle.svg +3 -0
  70. package/lib/devtools/Images/check-double.svg +3 -0
  71. package/lib/devtools/Images/checker.svg +12 -0
  72. package/lib/devtools/Images/checkmark.svg +1 -0
  73. package/lib/devtools/Images/chevron-double-right.svg +3 -0
  74. package/lib/devtools/Images/chevron-down.svg +3 -0
  75. package/lib/devtools/Images/chevron-left-dot.svg +4 -0
  76. package/lib/devtools/Images/chevron-left.svg +3 -0
  77. package/lib/devtools/Images/chevron-right.svg +3 -0
  78. package/lib/devtools/Images/chevron-up.svg +3 -0
  79. package/lib/devtools/Images/chromeLeft.avif +0 -0
  80. package/lib/devtools/Images/chromeMiddle.avif +0 -0
  81. package/lib/devtools/Images/chromeRight.avif +0 -0
  82. package/lib/devtools/Images/class.svg +6 -0
  83. package/lib/devtools/Images/clear-list.svg +3 -0
  84. package/lib/devtools/Images/clear.svg +3 -0
  85. package/lib/devtools/Images/cloud.svg +3 -0
  86. package/lib/devtools/Images/code-circle.svg +5 -0
  87. package/lib/devtools/Images/code-whisperer-badge.svg +166 -0
  88. package/lib/devtools/Images/code.svg +3 -0
  89. package/lib/devtools/Images/colon.svg +4 -0
  90. package/lib/devtools/Images/color-picker-filled.svg +3 -0
  91. package/lib/devtools/Images/color-picker.svg +3 -0
  92. package/lib/devtools/Images/compress.svg +8 -0
  93. package/lib/devtools/Images/console-conditional-breakpoint.svg +1 -0
  94. package/lib/devtools/Images/console-logpoint.svg +1 -0
  95. package/lib/devtools/Images/container.svg +4 -0
  96. package/lib/devtools/Images/cookie.svg +3 -0
  97. package/lib/devtools/Images/cookie_off.svg +3 -0
  98. package/lib/devtools/Images/copy.svg +3 -0
  99. package/lib/devtools/Images/corporate-fare.svg +3 -0
  100. package/lib/devtools/Images/credit-card.svg +3 -0
  101. package/lib/devtools/Images/cross-circle-filled.svg +3 -0
  102. package/lib/devtools/Images/cross-circle.svg +3 -0
  103. package/lib/devtools/Images/cross.svg +3 -0
  104. package/lib/devtools/Images/cssoverview_icons_2x.avif +0 -0
  105. package/lib/devtools/Images/database-off.svg +1 -0
  106. package/lib/devtools/Images/database.svg +3 -0
  107. package/lib/devtools/Images/deployed.svg +3 -0
  108. package/lib/devtools/Images/device-fold.svg +1 -0
  109. package/lib/devtools/Images/devices.svg +3 -0
  110. package/lib/devtools/Images/devtools-thumbnail.svg +57 -0
  111. package/lib/devtools/Images/devtools-tips.svg +61 -0
  112. package/lib/devtools/Images/devtools-user-badge.svg +129 -0
  113. package/lib/devtools/Images/devtools.svg +13 -0
  114. package/lib/devtools/Images/difference.svg +3 -0
  115. package/lib/devtools/Images/dock-bottom.svg +3 -0
  116. package/lib/devtools/Images/dock-left.svg +3 -0
  117. package/lib/devtools/Images/dock-right.svg +3 -0
  118. package/lib/devtools/Images/dock-window.svg +3 -0
  119. package/lib/devtools/Images/document.svg +3 -0
  120. package/lib/devtools/Images/dog-paw.svg +10 -0
  121. package/lib/devtools/Images/dom-detective-badge.svg +136 -0
  122. package/lib/devtools/Images/domain.svg +3 -0
  123. package/lib/devtools/Images/dots-horizontal.svg +1 -0
  124. package/lib/devtools/Images/dots-vertical.svg +3 -0
  125. package/lib/devtools/Images/download.svg +3 -0
  126. package/lib/devtools/Images/edit.svg +1 -0
  127. package/lib/devtools/Images/empty.svg +2 -0
  128. package/lib/devtools/Images/errorWave.svg +74 -0
  129. package/lib/devtools/Images/exclamation.svg +3 -0
  130. package/lib/devtools/Images/expand.svg +1 -0
  131. package/lib/devtools/Images/experiment-check.svg +1 -0
  132. package/lib/devtools/Images/experiment.svg +3 -0
  133. package/lib/devtools/Images/extension.svg +1 -0
  134. package/lib/devtools/Images/eye-crossed.svg +3 -0
  135. package/lib/devtools/Images/eye.svg +3 -0
  136. package/lib/devtools/Images/file-document.svg +3 -0
  137. package/lib/devtools/Images/file-fetch-xhr.svg +3 -0
  138. package/lib/devtools/Images/file-font.svg +4 -0
  139. package/lib/devtools/Images/file-generic.svg +3 -0
  140. package/lib/devtools/Images/file-image.svg +3 -0
  141. package/lib/devtools/Images/file-json.svg +4 -0
  142. package/lib/devtools/Images/file-manifest.svg +3 -0
  143. package/lib/devtools/Images/file-media.svg +3 -0
  144. package/lib/devtools/Images/file-script.svg +3 -0
  145. package/lib/devtools/Images/file-snippet.svg +4 -0
  146. package/lib/devtools/Images/file-stylesheet.svg +4 -0
  147. package/lib/devtools/Images/file-wasm.svg +5 -0
  148. package/lib/devtools/Images/file-websocket.svg +3 -0
  149. package/lib/devtools/Images/filter-clear.svg +3 -0
  150. package/lib/devtools/Images/filter-filled.svg +3 -0
  151. package/lib/devtools/Images/filter.svg +3 -0
  152. package/lib/devtools/Images/flex-direction.svg +5 -0
  153. package/lib/devtools/Images/flex-no-wrap.svg +5 -0
  154. package/lib/devtools/Images/flex-wrap.svg +8 -0
  155. package/lib/devtools/Images/flow.svg +3 -0
  156. package/lib/devtools/Images/flowsheet.svg +1 -0
  157. package/lib/devtools/Images/fold-more.svg +3 -0
  158. package/lib/devtools/Images/folder-asterisk.svg +10 -0
  159. package/lib/devtools/Images/folder-off.svg +3 -0
  160. package/lib/devtools/Images/folder.svg +3 -0
  161. package/lib/devtools/Images/frame-crossed.svg +3 -0
  162. package/lib/devtools/Images/frame-icon.svg +54 -0
  163. package/lib/devtools/Images/frame.svg +3 -0
  164. package/lib/devtools/Images/gdp-logo-dark.png +0 -0
  165. package/lib/devtools/Images/gdp-logo-light.png +0 -0
  166. package/lib/devtools/Images/gear-filled.svg +3 -0
  167. package/lib/devtools/Images/gear.svg +4 -0
  168. package/lib/devtools/Images/gears.svg +3 -0
  169. package/lib/devtools/Images/geminiInDevTools.png +0 -0
  170. package/lib/devtools/Images/geminiInDevTools_2x.png +0 -0
  171. package/lib/devtools/Images/global.svg +5 -0
  172. package/lib/devtools/Images/google.svg +3 -0
  173. package/lib/devtools/Images/goto-filled.svg +1 -0
  174. package/lib/devtools/Images/grid-direction.svg +6 -0
  175. package/lib/devtools/Images/grid-on.svg +10 -0
  176. package/lib/devtools/Images/group.svg +3 -0
  177. package/lib/devtools/Images/heap-snapshot.svg +6 -0
  178. package/lib/devtools/Images/heap-snapshots.svg +7 -0
  179. package/lib/devtools/Images/help.svg +3 -0
  180. package/lib/devtools/Images/history.svg +3 -0
  181. package/lib/devtools/Images/home.svg +3 -0
  182. package/lib/devtools/Images/hover.svg +6 -0
  183. package/lib/devtools/Images/iframe-crossed.svg +3 -0
  184. package/lib/devtools/Images/iframe.svg +3 -0
  185. package/lib/devtools/Images/import.svg +3 -0
  186. package/lib/devtools/Images/indeterminate-question-box.svg +3 -0
  187. package/lib/devtools/Images/info-filled.svg +3 -0
  188. package/lib/devtools/Images/info.svg +3 -0
  189. package/lib/devtools/Images/issue-cross-filled.svg +3 -0
  190. package/lib/devtools/Images/issue-exclamation-filled.svg +3 -0
  191. package/lib/devtools/Images/issue-questionmark-filled.svg +3 -0
  192. package/lib/devtools/Images/issue-text-filled.svg +3 -0
  193. package/lib/devtools/Images/justify-content-center.svg +5 -0
  194. package/lib/devtools/Images/justify-content-end.svg +5 -0
  195. package/lib/devtools/Images/justify-content-space-around.svg +6 -0
  196. package/lib/devtools/Images/justify-content-space-between.svg +4 -0
  197. package/lib/devtools/Images/justify-content-space-evenly.svg +6 -0
  198. package/lib/devtools/Images/justify-content-start.svg +5 -0
  199. package/lib/devtools/Images/justify-content-stretch.svg +4 -0
  200. package/lib/devtools/Images/justify-items-center.svg +4 -0
  201. package/lib/devtools/Images/justify-items-end.svg +4 -0
  202. package/lib/devtools/Images/justify-items-start.svg +4 -0
  203. package/lib/devtools/Images/justify-items-stretch.svg +4 -0
  204. package/lib/devtools/Images/keyboard-arrow-right.svg +1 -0
  205. package/lib/devtools/Images/keyboard-full.svg +10 -0
  206. package/lib/devtools/Images/keyboard-pen.svg +1 -0
  207. package/lib/devtools/Images/keyboard.svg +3 -0
  208. package/lib/devtools/Images/label-auto.svg +3 -0
  209. package/lib/devtools/Images/label.svg +10 -0
  210. package/lib/devtools/Images/large-arrow-right-filled.svg +1 -0
  211. package/lib/devtools/Images/layers-filled.svg +1 -0
  212. package/lib/devtools/Images/layers.svg +1 -0
  213. package/lib/devtools/Images/left-panel-close.svg +1 -0
  214. package/lib/devtools/Images/left-panel-open.svg +1 -0
  215. package/lib/devtools/Images/lightbulb-spark.svg +13 -0
  216. package/lib/devtools/Images/lightbulb.svg +3 -0
  217. package/lib/devtools/Images/lighthouse_logo.svg +158 -0
  218. package/lib/devtools/Images/list.svg +3 -0
  219. package/lib/devtools/Images/location-on.svg +3 -0
  220. package/lib/devtools/Images/lock-person.svg +1 -0
  221. package/lib/devtools/Images/lock.svg +3 -0
  222. package/lib/devtools/Images/mark-email-unread.svg +3 -0
  223. package/lib/devtools/Images/match-case.svg +3 -0
  224. package/lib/devtools/Images/match-whole-word.svg +1 -0
  225. package/lib/devtools/Images/memory.svg +6 -0
  226. package/lib/devtools/Images/minus.svg +3 -0
  227. package/lib/devtools/Images/mop.svg +1 -0
  228. package/lib/devtools/Images/mouse.svg +4 -0
  229. package/lib/devtools/Images/navigationControls.png +0 -0
  230. package/lib/devtools/Images/navigationControls_2x.png +0 -0
  231. package/lib/devtools/Images/network-settings.svg +3 -0
  232. package/lib/devtools/Images/node-stack-icon.svg +1 -0
  233. package/lib/devtools/Images/nodeIcon.avif +0 -0
  234. package/lib/devtools/Images/open-externally.svg +3 -0
  235. package/lib/devtools/Images/override.svg +11 -0
  236. package/lib/devtools/Images/palette.svg +10 -0
  237. package/lib/devtools/Images/pause-circle.svg +1 -0
  238. package/lib/devtools/Images/pause.svg +1 -0
  239. package/lib/devtools/Images/pen-spark.svg +3 -0
  240. package/lib/devtools/Images/performance-panel-delete-annotation.svg +32 -0
  241. package/lib/devtools/Images/performance-panel-diagram.svg +34 -0
  242. package/lib/devtools/Images/performance-panel-entry-label.svg +75 -0
  243. package/lib/devtools/Images/performance-panel-time-range.svg +15 -0
  244. package/lib/devtools/Images/performance.svg +3 -0
  245. package/lib/devtools/Images/person.svg +3 -0
  246. package/lib/devtools/Images/photo-camera.svg +10 -0
  247. package/lib/devtools/Images/play.svg +3 -0
  248. package/lib/devtools/Images/plus.svg +3 -0
  249. package/lib/devtools/Images/policy.svg +3 -0
  250. package/lib/devtools/Images/popoverArrows.png +0 -0
  251. package/lib/devtools/Images/popup.svg +3 -0
  252. package/lib/devtools/Images/preview_feature_video_thumbnail.svg +92 -0
  253. package/lib/devtools/Images/profile.svg +3 -0
  254. package/lib/devtools/Images/psychiatry.svg +3 -0
  255. package/lib/devtools/Images/puzzle.svg +3 -0
  256. package/lib/devtools/Images/record-start.svg +4 -0
  257. package/lib/devtools/Images/record-stop.svg +4 -0
  258. package/lib/devtools/Images/redo.svg +3 -0
  259. package/lib/devtools/Images/refresh.svg +10 -0
  260. package/lib/devtools/Images/regular-expression.svg +3 -0
  261. package/lib/devtools/Images/replace.svg +1 -0
  262. package/lib/devtools/Images/replay.svg +3 -0
  263. package/lib/devtools/Images/report.svg +1 -0
  264. package/lib/devtools/Images/resizeDiagonal.svg +1 -0
  265. package/lib/devtools/Images/resizeHorizontal.svg +1 -0
  266. package/lib/devtools/Images/resizeVertical.svg +1 -0
  267. package/lib/devtools/Images/resume.svg +1 -0
  268. package/lib/devtools/Images/revert.svg +3 -0
  269. package/lib/devtools/Images/review.svg +5 -0
  270. package/lib/devtools/Images/right-panel-close.svg +1 -0
  271. package/lib/devtools/Images/right-panel-open.svg +1 -0
  272. package/lib/devtools/Images/scissors.svg +3 -0
  273. package/lib/devtools/Images/screen-rotation.svg +1 -0
  274. package/lib/devtools/Images/search.svg +3 -0
  275. package/lib/devtools/Images/select-element.svg +3 -0
  276. package/lib/devtools/Images/send.svg +3 -0
  277. package/lib/devtools/Images/shadow.svg +3 -0
  278. package/lib/devtools/Images/shield.svg +3 -0
  279. package/lib/devtools/Images/small-status-dot.svg +3 -0
  280. package/lib/devtools/Images/smart-assistant.svg +3 -0
  281. package/lib/devtools/Images/snippet.svg +4 -0
  282. package/lib/devtools/Images/spark-info.svg +3 -0
  283. package/lib/devtools/Images/spark.svg +3 -0
  284. package/lib/devtools/Images/speculative-loads.svg +1 -0
  285. package/lib/devtools/Images/speedster-badge.svg +166 -0
  286. package/lib/devtools/Images/star.svg +3 -0
  287. package/lib/devtools/Images/step-into.svg +1 -0
  288. package/lib/devtools/Images/step-out.svg +1 -0
  289. package/lib/devtools/Images/step-over.svg +1 -0
  290. package/lib/devtools/Images/step.svg +1 -0
  291. package/lib/devtools/Images/stop.svg +3 -0
  292. package/lib/devtools/Images/symbol.svg +3 -0
  293. package/lib/devtools/Images/sync.svg +3 -0
  294. package/lib/devtools/Images/tab-move.svg +1 -0
  295. package/lib/devtools/Images/table.svg +3 -0
  296. package/lib/devtools/Images/terminal.svg +10 -0
  297. package/lib/devtools/Images/text-analysis.svg +3 -0
  298. package/lib/devtools/Images/thumb-down-filled.svg +3 -0
  299. package/lib/devtools/Images/thumb-down.svg +3 -0
  300. package/lib/devtools/Images/thumb-up-filled.svg +3 -0
  301. package/lib/devtools/Images/thumb-up.svg +3 -0
  302. package/lib/devtools/Images/tonality.svg +10 -0
  303. package/lib/devtools/Images/toolbarResizerVertical.png +0 -0
  304. package/lib/devtools/Images/top-panel-close.svg +1 -0
  305. package/lib/devtools/Images/top-panel-open.svg +1 -0
  306. package/lib/devtools/Images/touch-app.svg +4 -0
  307. package/lib/devtools/Images/touchCursor.png +0 -0
  308. package/lib/devtools/Images/touchCursor_2x.png +0 -0
  309. package/lib/devtools/Images/triangle-bottom-right.svg +3 -0
  310. package/lib/devtools/Images/triangle-down.svg +1 -0
  311. package/lib/devtools/Images/triangle-left.svg +1 -0
  312. package/lib/devtools/Images/triangle-right.svg +1 -0
  313. package/lib/devtools/Images/triangle-up.svg +3 -0
  314. package/lib/devtools/Images/trophy.svg +3 -0
  315. package/lib/devtools/Images/tune.svg +3 -0
  316. package/lib/devtools/Images/undo.svg +1 -0
  317. package/lib/devtools/Images/warning-filled.svg +3 -0
  318. package/lib/devtools/Images/warning.svg +3 -0
  319. package/lib/devtools/Images/watch.svg +3 -0
  320. package/lib/devtools/Images/whatsnew.svg +61 -0
  321. package/lib/devtools/Images/width.svg +3 -0
  322. package/lib/devtools/Images/zoom-in.svg +3 -0
  323. package/lib/devtools/LICENSE +27 -0
  324. package/lib/devtools/application_tokens.css +413 -0
  325. package/lib/devtools/chunks/FormatterActions-FcPgI0uV.js +19 -0
  326. package/lib/devtools/chunks/UIFilter-CIzBruM3.js +18 -0
  327. package/lib/devtools/chunks/UIRequestLocation-CtGcVN3I.js +48 -0
  328. package/lib/devtools/chunks/_qilin-devtools_empty-BvRk9kiK.js +0 -0
  329. package/lib/devtools/chunks/accessibility-CwvHp3sj.js +2718 -0
  330. package/lib/devtools/chunks/acorn-_jSanihy.js +3232 -0
  331. package/lib/devtools/chunks/adorners-D4aU6nuY.js +45 -0
  332. package/lib/devtools/chunks/ai_assistance-BU6E0Wio.js +4255 -0
  333. package/lib/devtools/chunks/angular-Dutmu-L9.js +117 -0
  334. package/lib/devtools/chunks/animation-TEwO5UI_.js +922 -0
  335. package/lib/devtools/chunks/application-SCf6MiCN.js +12740 -0
  336. package/lib/devtools/chunks/autofill-Dp3nMnuK.js +198 -0
  337. package/lib/devtools/chunks/autofill_manager-BXntqfdp.js +58 -0
  338. package/lib/devtools/chunks/bindings-DgoVEdsr.js +4105 -0
  339. package/lib/devtools/chunks/browser-DL1S1Kiu.js +62 -0
  340. package/lib/devtools/chunks/browser_debugger-p7Rr4IBR.js +629 -0
  341. package/lib/devtools/chunks/changes-DeW5MC9u.js +2 -0
  342. package/lib/devtools/chunks/changes-k42bihtm.js +393 -0
  343. package/lib/devtools/chunks/checkbox.css-CZJJ6atQ.js +4 -0
  344. package/lib/devtools/chunks/chunk-DF993M8W.js +11 -0
  345. package/lib/devtools/chunks/code_highlighter-BnTPt9_G.js +210 -0
  346. package/lib/devtools/chunks/codemirror-CBR9VJma.js +15842 -0
  347. package/lib/devtools/chunks/color_picker-Cuh_X19Y.js +1566 -0
  348. package/lib/devtools/chunks/common-DjRFwulW.js +15145 -0
  349. package/lib/devtools/chunks/common-Uu9A2glf.js +2 -0
  350. package/lib/devtools/chunks/common-qd_KLeYO.js +6639 -0
  351. package/lib/devtools/chunks/components-CnPGgDUW.js +704 -0
  352. package/lib/devtools/chunks/components-Cw5tHQqN.js +1338 -0
  353. package/lib/devtools/chunks/components-EJwviLtZ.js +1090 -0
  354. package/lib/devtools/chunks/console-D1WlMaFQ.js +3855 -0
  355. package/lib/devtools/chunks/console-yMm3XVTY.js +2 -0
  356. package/lib/devtools/chunks/console_counters-9SfIdrUo.js +103 -0
  357. package/lib/devtools/chunks/coverage-BbFH390Q.js +1176 -0
  358. package/lib/devtools/chunks/coverage-CLBpovLw.js +2 -0
  359. package/lib/devtools/chunks/cpp-CdElSCaB.js +435 -0
  360. package/lib/devtools/chunks/css_overview-cITV9auE.js +1288 -0
  361. package/lib/devtools/chunks/data_grid-pC5qqfsJ.js +1671 -0
  362. package/lib/devtools/chunks/developer_resources-4DqQIvy6.js +240 -0
  363. package/lib/devtools/chunks/diff-qn55JSCS.js +444 -0
  364. package/lib/devtools/chunks/dom_extension-BfrKZ4JG.js +172 -0
  365. package/lib/devtools/chunks/elements-CgEYz3mX.js +2 -0
  366. package/lib/devtools/chunks/elements-Dbx4q9-v.js +11407 -0
  367. package/lib/devtools/chunks/emulation-C6XKPPGu.js +1306 -0
  368. package/lib/devtools/chunks/emulation-D8xbdsAj.js +2 -0
  369. package/lib/devtools/chunks/emulation-EtJlEukP.js +2732 -0
  370. package/lib/devtools/chunks/emulation-cjFPXHT9.js +157 -0
  371. package/lib/devtools/chunks/event_listeners-BeTH3gi2.js +414 -0
  372. package/lib/devtools/chunks/explain-P_aDGFSD.js +747 -0
  373. package/lib/devtools/chunks/greendev-BU0QcVPX.js +152 -0
  374. package/lib/devtools/chunks/heap_snapshot-CZt2KUPL.js +427 -0
  375. package/lib/devtools/chunks/helper-CI72KvIC.js +33 -0
  376. package/lib/devtools/chunks/helpers--xrfGSwQ.js +29 -0
  377. package/lib/devtools/chunks/i18n-DvFMqQdJ.js +17 -0
  378. package/lib/devtools/chunks/icon_button-BebVdJD8.js +83 -0
  379. package/lib/devtools/chunks/inline_editor-D54X5UUr.js +1309 -0
  380. package/lib/devtools/chunks/inspector_main-DRbdXLmF.js +279 -0
  381. package/lib/devtools/chunks/issue_counter-CeOjTNGW.js +193 -0
  382. package/lib/devtools/chunks/issues-CegBKEda.js +1649 -0
  383. package/lib/devtools/chunks/issues_manager-D7nfNPN1.js +3009 -0
  384. package/lib/devtools/chunks/java-7g_qfFa2.js +263 -0
  385. package/lib/devtools/chunks/layer_viewer-CaFC5oyv.js +1423 -0
  386. package/lib/devtools/chunks/layers-CXqlD9zH.js +370 -0
  387. package/lib/devtools/chunks/legacy-Bqn4Q0Tf.js +41804 -0
  388. package/lib/devtools/chunks/legacy-DOCLCisy.js +1434 -0
  389. package/lib/devtools/chunks/less-DXiRNbd4.js +195 -0
  390. package/lib/devtools/chunks/lighthouse-DtpzvfT6.js +3920 -0
  391. package/lib/devtools/chunks/lighthouse-T9ZpmENr.js +2 -0
  392. package/lib/devtools/chunks/linear_memory_inspector-C50PtM45.js +305 -0
  393. package/lib/devtools/chunks/live-metrics-Bs7wxibB.js +284 -0
  394. package/lib/devtools/chunks/main-C5y6NscM.js +2 -0
  395. package/lib/devtools/chunks/main-DcgYyEI0.js +755 -0
  396. package/lib/devtools/chunks/markdown-tZoR6Bsu.js +1512 -0
  397. package/lib/devtools/chunks/markdown_view-C67b2DdG.js +461 -0
  398. package/lib/devtools/chunks/marked-zGgfoDxO.js +1362 -0
  399. package/lib/devtools/chunks/media-BhuqASbO.js +1337 -0
  400. package/lib/devtools/chunks/media-Wfo1AbXC.js +2 -0
  401. package/lib/devtools/chunks/menus-BAUukA5-.js +969 -0
  402. package/lib/devtools/chunks/mobile_throttling-C26zde8o.js +2 -0
  403. package/lib/devtools/chunks/mobile_throttling-Cw4AkJH4.js +1052 -0
  404. package/lib/devtools/chunks/network-C3gIloDN.js +2 -0
  405. package/lib/devtools/chunks/network-CaxdpGU2.js +9181 -0
  406. package/lib/devtools/chunks/objectValue.css-C9o9fdM2.js +4 -0
  407. package/lib/devtools/chunks/object_ui-BYgPTK_b.js +1461 -0
  408. package/lib/devtools/chunks/object_ui-E7eR7aD-.js +2 -0
  409. package/lib/devtools/chunks/perf_ui-BqzJrt4p.js +2 -0
  410. package/lib/devtools/chunks/perf_ui-CQMkYfn3.js +3143 -0
  411. package/lib/devtools/chunks/performance_monitor-B2kUoCv0.js +385 -0
  412. package/lib/devtools/chunks/php-tl5gKrxu.js +423 -0
  413. package/lib/devtools/chunks/platform-BzB373NB.js +600 -0
  414. package/lib/devtools/chunks/profiler-BGu3akEf.js +4608 -0
  415. package/lib/devtools/chunks/protocol_client-Cwf_jb8R.js +24329 -0
  416. package/lib/devtools/chunks/protocol_monitor-B9nMqAAE.js +2 -0
  417. package/lib/devtools/chunks/protocol_monitor-CvLQ8ms1.js +1224 -0
  418. package/lib/devtools/chunks/puppeteer-CaOjgj3v.js +13299 -0
  419. package/lib/devtools/chunks/python-D9AdRkMm.js +580 -0
  420. package/lib/devtools/chunks/quick_open-C3IZ69m9.js +2 -0
  421. package/lib/devtools/chunks/quick_open-DRITaPnZ.js +722 -0
  422. package/lib/devtools/chunks/recorder-C0f1n95b.js +5465 -0
  423. package/lib/devtools/chunks/recorder-actions-S2RfLX4H.js +6 -0
  424. package/lib/devtools/chunks/request_link_icon-fGy57GcW.js +87 -0
  425. package/lib/devtools/chunks/root-DbVQo07X.js +255 -0
  426. package/lib/devtools/chunks/sass-BPQlMmw2.js +370 -0
  427. package/lib/devtools/chunks/security-NbgKa3ux.js +898 -0
  428. package/lib/devtools/chunks/sensors-nM7qcBE4.js +752 -0
  429. package/lib/devtools/chunks/settings-aKtQC12v.js +1433 -0
  430. package/lib/devtools/chunks/settings_ui-CzxAFzIb.js +175 -0
  431. package/lib/devtools/chunks/snackbars-lPThuWYs.js +12010 -0
  432. package/lib/devtools/chunks/snippets-dIuBmVBv.js +173 -0
  433. package/lib/devtools/chunks/source_frame-CSjno3kf.js +1352 -0
  434. package/lib/devtools/chunks/sources-BIZssBei.js +8216 -0
  435. package/lib/devtools/chunks/sources-Bf8QJxju.js +2 -0
  436. package/lib/devtools/chunks/suggestion_input-Duuu5pyd.js +196 -0
  437. package/lib/devtools/chunks/svelte-DJS1itbE.js +744 -0
  438. package/lib/devtools/chunks/textInput.css-DPvwvIic.js +4 -0
  439. package/lib/devtools/chunks/text_editor-Dq1P6D2J.js +15706 -0
  440. package/lib/devtools/chunks/text_utils-ohNt_gua.js +608 -0
  441. package/lib/devtools/chunks/theme_support-CbSSLkbO.js +92 -0
  442. package/lib/devtools/chunks/third-party-web-DGiPoc0U.js +12626 -0
  443. package/lib/devtools/chunks/timeline-BE_ysZxO.js +2 -0
  444. package/lib/devtools/chunks/timeline-C4vCX79k.js +16347 -0
  445. package/lib/devtools/chunks/utils-CELci976.js +298 -0
  446. package/lib/devtools/chunks/vue-CjH9yovn.js +73 -0
  447. package/lib/devtools/chunks/wast-CbGHiqaW.js +109 -0
  448. package/lib/devtools/chunks/web_audio-IdfBLjwV.js +277 -0
  449. package/lib/devtools/chunks/webauthn-iRZlbjGV.js +522 -0
  450. package/lib/devtools/chunks/whats_new-DOTPf2xJ.js +177 -0
  451. package/lib/devtools/chunks/xml-DI9dcP5w.js +327 -0
  452. package/lib/devtools/connect.js +9 -0
  453. package/lib/devtools/design_system_tokens.css +1061 -0
  454. package/lib/devtools/device_mode_emulation_frame.html +25 -0
  455. package/lib/devtools/devtools_app.html +25 -0
  456. package/lib/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
  457. package/lib/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
  458. package/lib/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
  459. package/lib/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
  460. package/lib/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
  461. package/lib/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
  462. package/lib/devtools/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
  463. package/lib/devtools/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
  464. package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
  465. package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
  466. package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
  467. package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
  468. package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
  469. package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
  470. package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
  471. package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
  472. package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
  473. package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
  474. package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
  475. package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
  476. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
  477. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
  478. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
  479. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
  480. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
  481. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
  482. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
  483. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
  484. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
  485. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
  486. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
  487. package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
  488. package/lib/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
  489. package/lib/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
  490. package/lib/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
  491. package/lib/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
  492. package/lib/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
  493. package/lib/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
  494. package/lib/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
  495. package/lib/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
  496. package/lib/devtools/emulated_devices/optimized/optimized_images.gni +53 -0
  497. package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +4 -0
  498. package/lib/devtools/entrypoints/devtools_app/devtools_app.js +6240 -0
  499. package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +2810 -0
  500. package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +2142 -0
  501. package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +290095 -0
  502. package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +3403 -0
  503. package/lib/devtools/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  504. package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
  505. package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  506. package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
  507. package/lib/devtools/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  508. package/lib/devtools/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
  509. package/lib/devtools/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  510. package/lib/devtools/models/issues_manager/descriptions/LowTextContrast.md +5 -0
  511. package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
  512. package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
  513. package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
  514. package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  515. package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  516. package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  517. package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  518. package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  519. package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  520. package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
  521. package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
  522. package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
  523. package/lib/devtools/models/issues_manager/descriptions/arInsecureContext.md +7 -0
  524. package/lib/devtools/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
  525. package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
  526. package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
  527. package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
  528. package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  529. package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
  530. package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
  531. package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
  532. package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
  533. package/lib/devtools/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
  534. package/lib/devtools/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
  535. package/lib/devtools/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
  536. package/lib/devtools/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
  537. package/lib/devtools/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
  538. package/lib/devtools/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
  539. package/lib/devtools/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
  540. package/lib/devtools/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
  541. package/lib/devtools/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
  542. package/lib/devtools/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
  543. package/lib/devtools/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
  544. package/lib/devtools/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
  545. package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  546. package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  547. package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
  548. package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidHeader.md +12 -0
  549. package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
  550. package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistItemNotInnerList.md +12 -0
  551. package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistMoreThanOneList.md +7 -0
  552. package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
  553. package/lib/devtools/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  554. package/lib/devtools/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
  555. package/lib/devtools/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
  556. package/lib/devtools/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
  557. package/lib/devtools/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
  558. package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  559. package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  560. package/lib/devtools/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
  561. package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
  562. package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
  563. package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  564. package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  565. package/lib/devtools/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
  566. package/lib/devtools/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
  567. package/lib/devtools/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
  568. package/lib/devtools/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  569. package/lib/devtools/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
  570. package/lib/devtools/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  571. package/lib/devtools/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  572. package/lib/devtools/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  573. package/lib/devtools/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
  574. package/lib/devtools/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
  575. package/lib/devtools/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
  576. package/lib/devtools/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
  577. package/lib/devtools/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
  578. package/lib/devtools/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
  579. package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  580. package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
  581. package/lib/devtools/models/issues_manager/descriptions/cspURLViolation.md +10 -0
  582. package/lib/devtools/models/issues_manager/descriptions/deprecation.md +3 -0
  583. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
  584. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
  585. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestInvalidEmail.md +1 -0
  586. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
  587. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
  588. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
  589. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
  590. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
  591. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
  592. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
  593. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
  594. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
  595. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
  596. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
  597. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
  598. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
  599. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
  600. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
  601. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
  602. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
  603. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
  604. package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
  605. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  606. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  607. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  608. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  609. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
  610. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  611. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  612. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  613. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  614. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  615. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  616. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  617. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  618. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  619. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  620. package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  621. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  622. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  623. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  624. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  625. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  626. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  627. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  628. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  629. package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  630. package/lib/devtools/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
  631. package/lib/devtools/models/issues_manager/descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
  632. package/lib/devtools/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
  633. package/lib/devtools/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  634. package/lib/devtools/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
  635. package/lib/devtools/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  636. package/lib/devtools/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  637. package/lib/devtools/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  638. package/lib/devtools/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
  639. package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  640. package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
  641. package/lib/devtools/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
  642. package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolDescription.md +5 -0
  643. package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolName.md +5 -0
  644. package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingName.md +5 -0
  645. package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
  646. package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
  647. package/lib/devtools/models/issues_manager/descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  648. package/lib/devtools/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
  649. package/lib/devtools/models/issues_manager/descriptions/heavyAd.md +10 -0
  650. package/lib/devtools/models/issues_manager/descriptions/mixedContent.md +5 -0
  651. package/lib/devtools/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
  652. package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
  653. package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
  654. package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
  655. package/lib/devtools/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
  656. package/lib/devtools/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
  657. package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
  658. package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
  659. package/lib/devtools/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
  660. package/lib/devtools/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
  661. package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
  662. package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
  663. package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
  664. package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
  665. package/lib/devtools/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
  666. package/lib/devtools/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
  667. package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
  668. package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
  669. package/lib/devtools/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
  670. package/lib/devtools/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
  671. package/lib/devtools/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
  672. package/lib/devtools/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
  673. package/lib/devtools/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
  674. package/lib/devtools/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
  675. package/lib/devtools/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  676. package/lib/devtools/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
  677. package/lib/devtools/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
  678. package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  679. package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  680. package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  681. package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  682. package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  683. package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  684. package/lib/devtools/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
  685. package/lib/devtools/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
  686. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  687. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  688. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  689. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  690. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  691. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  692. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  693. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  694. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  695. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  696. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  697. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  698. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  699. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  700. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  701. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  702. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  703. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  704. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  705. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  706. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  707. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  708. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  709. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  710. package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  711. package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
  712. package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
  713. package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
  714. package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
  715. package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  716. package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  717. package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  718. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  719. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  720. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  721. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  722. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  723. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  724. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  725. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  726. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  727. package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  728. package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
  729. package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
  730. package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
  731. package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  732. package/lib/devtools/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
  733. package/lib/devtools/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
  734. package/lib/devtools/models/issues_manager/descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  735. package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  736. package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  737. package/lib/devtools/models/issues_manager/descriptions/unencodedDigestMalformedDictionary.md +14 -0
  738. package/lib/devtools/models/issues_manager/descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  739. package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -0
  740. package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -0
  741. package/lib/devtools/panels/whats_new/resources/WNDT.md +14 -0
  742. package/lib/devtools/resource-manifest.json +3818 -0
  743. package/lib/devtools/third_party/acorn/package/LICENSE +21 -0
  744. package/lib/devtools/third_party/axe-core/LICENSE +362 -0
  745. package/lib/devtools/third_party/chromium/LICENSE +27 -0
  746. package/lib/devtools/third_party/codemirror/package/LICENSE +21 -0
  747. package/lib/devtools/third_party/codemirror.next/LICENSE +21 -0
  748. package/lib/devtools/third_party/csp_evaluator/package/LICENSE +202 -0
  749. package/lib/devtools/third_party/diff/LICENSE +202 -0
  750. package/lib/devtools/third_party/i18n/LICENSE +202 -0
  751. package/lib/devtools/third_party/intl-messageformat/LICENSE +33 -0
  752. package/lib/devtools/third_party/intl-messageformat/package/LICENSE.md +33 -0
  753. package/lib/devtools/third_party/json5/LICENSE +23 -0
  754. package/lib/devtools/third_party/legacy-javascript/LICENSE +202 -0
  755. package/lib/devtools/third_party/lighthouse/LICENSE +202 -0
  756. package/lib/devtools/third_party/lit/LICENSE +28 -0
  757. package/lib/devtools/third_party/marked/LICENSE +39 -0
  758. package/lib/devtools/third_party/marked/package/LICENSE.md +44 -0
  759. package/lib/devtools/third_party/puppeteer/LICENSE +202 -0
  760. package/lib/devtools/third_party/puppeteer/third_party/mitt/LICENSE +21 -0
  761. package/lib/devtools/third_party/puppeteer/third_party/parsel/LICENSE +21 -0
  762. package/lib/devtools/third_party/puppeteer/third_party/rxjs/LICENSE +201 -0
  763. package/lib/devtools/third_party/puppeteer-replay/package/LICENSE +202 -0
  764. package/lib/devtools/third_party/source-map-scopes-codec/LICENSE +26 -0
  765. package/lib/devtools/third_party/source-map-scopes-codec/package/LICENSE +26 -0
  766. package/lib/devtools/third_party/third-party-web/LICENSE +20 -0
  767. package/lib/devtools/third_party/third-party-web/package/LICENSE +20 -0
  768. package/lib/devtools/third_party/vscode.web-custom-data/package/LICENSE.md +21 -0
  769. package/lib/devtools/third_party/wasmparser/package/LICENSE +177 -0
  770. package/lib/devtools/third_party/web-vitals/package/LICENSE +202 -0
  771. package/lib/index.js +2554 -0
  772. package/lib/types/client/bottom/keyboard.d.ts +10 -0
  773. package/lib/types/client/bottom/locales.d.ts +17 -0
  774. package/lib/types/client/bottom/page.d.ts +10 -0
  775. package/lib/types/client/bottom/resize.d.ts +12 -0
  776. package/lib/types/client/bridge/controller.d.ts +10 -0
  777. package/lib/types/client/bridge/dispatcher.d.ts +26 -0
  778. package/lib/types/client/bridge/lifecycle.d.ts +22 -0
  779. package/lib/types/client/bridge/locales.d.ts +3 -0
  780. package/lib/types/client/bridge/publisher.d.ts +42 -0
  781. package/lib/types/client/bridge/rpc.d.ts +13 -0
  782. package/lib/types/client/bridge/transport.d.ts +41 -0
  783. package/lib/types/client/cdp/console.d.ts +45 -0
  784. package/lib/types/client/cdp/debugger.d.ts +8 -0
  785. package/lib/types/client/cdp/errors.d.ts +8 -0
  786. package/lib/types/client/cdp/heap-profiler.d.ts +8 -0
  787. package/lib/types/client/cdp/index.d.ts +10 -0
  788. package/lib/types/client/cdp/objects.d.ts +69 -0
  789. package/lib/types/client/cdp/profiler.d.ts +8 -0
  790. package/lib/types/client/cdp/properties.d.ts +16 -0
  791. package/lib/types/client/cdp/runtime.d.ts +79 -0
  792. package/lib/types/client/cdp/sources.d.ts +53 -0
  793. package/lib/types/client/cdp/stack.d.ts +27 -0
  794. package/lib/types/client/index.d.ts +3 -0
  795. package/lib/types/client/inspection/cordis.d.ts +3 -0
  796. package/lib/types/client/inspection/network.d.ts +4 -0
  797. package/lib/types/client/inspection/realm.d.ts +27 -0
  798. package/lib/types/client/plugin.d.ts +29 -0
  799. package/lib/types/host/bridge/controller.d.ts +108 -0
  800. package/lib/types/host/bridge/dispatcher.d.ts +16 -0
  801. package/lib/types/host/bridge/lifecycle.d.ts +42 -0
  802. package/lib/types/host/bridge/publisher.d.ts +31 -0
  803. package/lib/types/host/bridge/rpc.d.ts +15 -0
  804. package/lib/types/host/bridge/transport.d.ts +28 -0
  805. package/lib/types/host/cdp/console.d.ts +14 -0
  806. package/lib/types/host/cdp/debugger.d.ts +8 -0
  807. package/lib/types/host/cdp/errors.d.ts +6 -0
  808. package/lib/types/host/cdp/heap-profiler.d.ts +8 -0
  809. package/lib/types/host/cdp/index.d.ts +10 -0
  810. package/lib/types/host/cdp/objects.d.ts +8 -0
  811. package/lib/types/host/cdp/profiler.d.ts +8 -0
  812. package/lib/types/host/cdp/properties.d.ts +7 -0
  813. package/lib/types/host/cdp/runtime.d.ts +16 -0
  814. package/lib/types/host/cdp/sources.d.ts +14 -0
  815. package/lib/types/host/cdp/stack.d.ts +4 -0
  816. package/lib/types/host/index.d.ts +3 -0
  817. package/lib/types/host/inspection/cordis.d.ts +3 -0
  818. package/lib/types/host/inspection/network.d.ts +23 -0
  819. package/lib/types/host/inspection/realm.d.ts +9 -0
  820. package/lib/types/host/plugin.d.ts +19 -0
  821. package/lib/types/index.d.ts +50 -0
  822. package/lib/types/shared/bridge/buffer.d.ts +62 -0
  823. package/lib/types/shared/bridge/codec.d.ts +4 -0
  824. package/lib/types/shared/bridge/control-codec.d.ts +27 -0
  825. package/lib/types/shared/bridge/ids.d.ts +19 -0
  826. package/lib/types/shared/bridge/messages/control.d.ts +64 -0
  827. package/lib/types/shared/bridge/messages/cordis.d.ts +4 -0
  828. package/lib/types/shared/bridge/messages/network.d.ts +4 -0
  829. package/lib/types/shared/bridge/messages/observation.d.ts +110 -0
  830. package/lib/types/shared/bridge/messages/query/codec.d.ts +40 -0
  831. package/lib/types/shared/bridge/messages/query/commands.d.ts +35 -0
  832. package/lib/types/shared/bridge/messages/query/frames.d.ts +31 -0
  833. package/lib/types/shared/bridge/messages/query/index.d.ts +5 -0
  834. package/lib/types/shared/bridge/messages/runtime/command-codec.d.ts +9 -0
  835. package/lib/types/shared/bridge/messages/runtime/commands.d.ts +76 -0
  836. package/lib/types/shared/bridge/messages/runtime/console-frames.d.ts +52 -0
  837. package/lib/types/shared/bridge/messages/runtime/frames.d.ts +98 -0
  838. package/lib/types/shared/bridge/messages/runtime/index.d.ts +5 -0
  839. package/lib/types/shared/bridge/messages/runtime/value-codec.d.ts +28 -0
  840. package/lib/types/shared/bridge/messages/sources/codec.d.ts +15 -0
  841. package/lib/types/shared/bridge/messages/sources/commands.d.ts +42 -0
  842. package/lib/types/shared/bridge/messages/sources/frames.d.ts +67 -0
  843. package/lib/types/shared/bridge/messages/sources/index.d.ts +5 -0
  844. package/lib/types/shared/bridge/publisher.d.ts +33 -0
  845. package/lib/types/shared/bridge/query-reader.d.ts +10 -0
  846. package/lib/types/shared/bridge/rpc.d.ts +62 -0
  847. package/lib/types/shared/bridge/validation.d.ts +3 -0
  848. package/lib/types/shared/bridge/version.d.ts +3 -0
  849. package/lib/types/shared/cdp/capabilities.d.ts +17 -0
  850. package/lib/types/shared/cdp/console.d.ts +28 -0
  851. package/lib/types/shared/cdp/debugger.d.ts +69 -0
  852. package/lib/types/shared/cdp/errors.d.ts +27 -0
  853. package/lib/types/shared/cdp/ids.d.ts +9 -0
  854. package/lib/types/shared/cdp/index.d.ts +11 -0
  855. package/lib/types/shared/cdp/operations.d.ts +86 -0
  856. package/lib/types/shared/cdp/property.d.ts +28 -0
  857. package/lib/types/shared/cdp/realm.d.ts +137 -0
  858. package/lib/types/shared/cdp/remote-object.d.ts +44 -0
  859. package/lib/types/shared/cdp/sources.d.ts +18 -0
  860. package/lib/types/shared/cordis/collector.d.ts +26 -0
  861. package/lib/types/shared/cordis/ids.d.ts +7 -0
  862. package/lib/types/shared/cordis/model.d.ts +61 -0
  863. package/lib/types/shared/cordis/object-reference.d.ts +14 -0
  864. package/lib/types/shared/cordis/object-registry.d.ts +80 -0
  865. package/lib/types/shared/cordis/observer.d.ts +15 -0
  866. package/lib/types/shared/cordis/projector.d.ts +34 -0
  867. package/lib/types/shared/cordis/publisher.d.ts +13 -0
  868. package/lib/types/shared/cordis/reader.d.ts +18 -0
  869. package/lib/types/shared/cordis/snapshot.d.ts +39 -0
  870. package/lib/types/shared/dispose.d.ts +11 -0
  871. package/lib/types/shared/identity.d.ts +12 -0
  872. package/lib/types/shared/index.d.ts +18 -0
  873. package/lib/types/shared/json.d.ts +35 -0
  874. package/lib/types/shared/network/event-source.d.ts +20 -0
  875. package/lib/types/shared/network/observation.d.ts +52 -0
  876. package/lib/types/shared/service.d.ts +23 -0
  877. package/lib/types/shared/validation.d.ts +52 -0
  878. package/lib/types/shared/web.d.ts +16 -0
  879. package/lib/types/worker/bridge/endpoint.d.ts +49 -0
  880. package/lib/types/worker/bridge/hub.d.ts +108 -0
  881. package/lib/types/worker/bridge/runtime-rpc.d.ts +90 -0
  882. package/lib/types/worker/bridge/session.d.ts +15 -0
  883. package/lib/types/worker/bridge/source-rpc.d.ts +42 -0
  884. package/lib/types/worker/cdp/domains/debugger/cdp-params.d.ts +15 -0
  885. package/lib/types/worker/cdp/domains/debugger/index.d.ts +6 -0
  886. package/lib/types/worker/cdp/domains/debugger/projector.d.ts +22 -0
  887. package/lib/types/worker/cdp/domains/debugger/script-registry.d.ts +70 -0
  888. package/lib/types/worker/cdp/domains/debugger/session.d.ts +47 -0
  889. package/lib/types/worker/cdp/domains/dom/index.d.ts +4 -0
  890. package/lib/types/worker/cdp/domains/dom/model.d.ts +121 -0
  891. package/lib/types/worker/cdp/domains/dom/session.d.ts +78 -0
  892. package/lib/types/worker/cdp/domains/native.d.ts +25 -0
  893. package/lib/types/worker/cdp/domains/network/session.d.ts +46 -0
  894. package/lib/types/worker/cdp/domains/runtime/cdp-params.d.ts +82 -0
  895. package/lib/types/worker/cdp/domains/runtime/index.d.ts +3 -0
  896. package/lib/types/worker/cdp/domains/runtime/object-table.d.ts +117 -0
  897. package/lib/types/worker/cdp/domains/runtime/session.d.ts +97 -0
  898. package/lib/types/worker/cdp/ids.d.ts +37 -0
  899. package/lib/types/worker/cdp/protocol.d.ts +46 -0
  900. package/lib/types/worker/cdp/realm-sessions.d.ts +67 -0
  901. package/lib/types/worker/cdp/session.d.ts +39 -0
  902. package/lib/types/worker/cdp/target.d.ts +17 -0
  903. package/lib/types/worker/entry.d.ts +3 -0
  904. package/lib/types/worker/inspection/cordis-query.d.ts +11 -0
  905. package/lib/types/worker/inspection/cordis-store.d.ts +94 -0
  906. package/lib/types/worker/inspection/network-store.d.ts +110 -0
  907. package/lib/types/worker/inspection/query-router.d.ts +78 -0
  908. package/lib/types/worker/inspection/realm-store.d.ts +58 -0
  909. package/lib/types/worker/inspection/realm.d.ts +43 -0
  910. package/lib/types/worker/realms/client/bridge.d.ts +18 -0
  911. package/lib/types/worker/realms/client/console.d.ts +21 -0
  912. package/lib/types/worker/realms/client/debugger.d.ts +8 -0
  913. package/lib/types/worker/realms/client/index.d.ts +18 -0
  914. package/lib/types/worker/realms/client/runtime.d.ts +28 -0
  915. package/lib/types/worker/realms/client/scripts.d.ts +15 -0
  916. package/lib/types/worker/realms/client/sources.d.ts +30 -0
  917. package/lib/types/worker/realms/client/values.d.ts +55 -0
  918. package/lib/types/worker/realms/host/bridge.d.ts +49 -0
  919. package/lib/types/worker/realms/host/console.d.ts +25 -0
  920. package/lib/types/worker/realms/host/debugger.d.ts +25 -0
  921. package/lib/types/worker/realms/host/index.d.ts +13 -0
  922. package/lib/types/worker/realms/host/runtime.d.ts +54 -0
  923. package/lib/types/worker/realms/host/scripts.d.ts +9 -0
  924. package/lib/types/worker/realms/host/sources.d.ts +26 -0
  925. package/lib/types/worker/realms/host/values.d.ts +22 -0
  926. package/lib/types/worker/server.d.ts +16 -0
  927. package/lib/worker.js +7289 -0
  928. package/locale/en.json +6 -0
  929. package/locale/zh.json +6 -0
  930. package/package.json +90 -3
@@ -0,0 +1,1352 @@
1
+ import { J as e, Z as t, d as n, xt as r } from "./platform-BzB373NB.js";
2
+ import { A as i, Et as a, F as o, O as s, bt as c, d as l, jt as ee, u as te, wt as u } from "./common-qd_KLeYO.js";
3
+ import { o as ne } from "./root-DbVQo07X.js";
4
+ import { B as re, Bl as ie, Fa as d, Fo as ae, L as oe, Mo as se, No as ce, Po as f, V as le, Xf as p, Xn as ue, Yo as de, Zl as fe, Zo as m, _ as h, bl as pe, br as g, d as me, dr as he, ei as _, l as ge, mf as _e, n as v, ni as ve, no as ye, or as y, pf as be, qa as b, s as xe, tr as Se, uo as Ce, ur as x } from "./legacy-Bqn4Q0Tf.js";
5
+ import { $t as S, Kt as we, Ot as C, R as Te, Rt as Ee, S as w, T, Xt as E, bn as D, hn as O, k as De, m as Oe, n as k, on as ke, p as Ae, st as A, wn as je, x as Me, zt as Ne } from "./codemirror-CBR9VJma.js";
6
+ import { C as Pe, a as Fe, f as Ie, g as j, i as Le, n as M, o as Re, t as ze, y as Be } from "./text_utils-ohNt_gua.js";
7
+ import { n as Ve } from "./FormatterActions-FcPgI0uV.js";
8
+ import { D as He, j as Ue } from "./bindings-DgoVEdsr.js";
9
+ import { t as We } from "./common-DjRFwulW.js";
10
+ import { d as Ge, s as Ke } from "./object_ui-BYgPTK_b.js";
11
+ import { C as qe, S as Je, b as Ye, j as Xe, k as Ze, r as Qe, w as $e, x as et, y as tt } from "./text_editor-Dq1P6D2J.js";
12
+ import { i as nt } from "./code_highlighter-BnTPt9_G.js";
13
+ import { n as rt, t as it } from "./components-EJwviLtZ.js";
14
+ //#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css.mjs
15
+ var at = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.searchable-view {\n flex: 1;\n}\n\ndevtools-toolbar {\n background-color: var(--sys-color-cdt-base-container);\n border-top: 1px solid var(--sys-color-divider);\n}\n", N = {
16
+ source: "Source",
17
+ prettyPrint: "Pretty print",
18
+ loading: "Loading…",
19
+ dSelectionRegions: "{PH1} selection regions",
20
+ bytecodePositionXs: "Bytecode position `0x`{PH1}",
21
+ lineSColumnS: "Line {PH1}, Column {PH2}",
22
+ dCharactersSelected: "{PH1} characters selected",
23
+ dLinesDCharactersSelected: "{PH1} lines, {PH2} characters selected",
24
+ doYouTrustThisCode: "Do you trust this code?",
25
+ doNotPaste: "Don't paste code you do not understand or have not reviewed yourself into DevTools. This could allow attackers to steal your identity or take control of your computer. Please type “{PH1}” below to allow pasting.",
26
+ allowPasting: "allow pasting",
27
+ typeAllowPasting: "Type “{PH1}”",
28
+ binaryContentError: "Editor can't show binary data. Use the \"Response\" tab in the \"Network\" panel to inspect this resource."
29
+ }, ot = u("ui/legacy/components/source_frame/SourceFrame.ts", N), P = c.bind(void 0, ot), st = /* @__PURE__ */ function(e) {
30
+ return e.EDITOR_UPDATE = "EditorUpdate", e.EDITOR_SCROLL = "EditorScroll", e;
31
+ }({}), ct = Ae.define({ combine(e) {
32
+ return e.length === 0 ? (e) => e.toString() : e[0];
33
+ } }), lt = class extends ee(v) {
34
+ options;
35
+ lazyContent;
36
+ prettyInternal;
37
+ rawContent;
38
+ formattedMap;
39
+ prettyToggle;
40
+ shouldAutoPrettyPrint;
41
+ progressToolbarItem;
42
+ textEditorInternal;
43
+ baseDoc;
44
+ prettyBaseDoc = null;
45
+ displayedSelection = null;
46
+ searchConfig;
47
+ delayedFindSearchMatches;
48
+ currentSearchResultIndex;
49
+ searchResults;
50
+ searchRegex;
51
+ loadError;
52
+ sourcePosition;
53
+ searchableView;
54
+ editable;
55
+ positionToReveal;
56
+ lineToScrollTo;
57
+ selectionToSet;
58
+ loadedInternal;
59
+ contentRequested;
60
+ wasmDisassemblyInternal;
61
+ contentSet;
62
+ selfXssWarningDisabledSetting;
63
+ constructor(e, t = {}) {
64
+ super({
65
+ title: P(N.source),
66
+ viewId: "source"
67
+ }), this.options = t, this.lazyContent = e, this.prettyInternal = !1, this.rawContent = null, this.formattedMap = null, this.prettyToggle = new he(P(N.prettyPrint), "brackets", void 0, "pretty-print"), this.prettyToggle.addEventListener(ue.Events.CLICK, () => {
68
+ this.setPretty(this.prettyToggle.isToggled());
69
+ }), this.shouldAutoPrettyPrint = !1, this.prettyToggle.setVisible(!1), this.progressToolbarItem = new Se(document.createElement("div")), this.textEditorInternal = new Qe(this.placeholderEditorState("")), this.textEditorInternal.style.flexGrow = "1", this.element.appendChild(this.textEditorInternal), this.element.addEventListener("keydown", (e) => {
70
+ e.defaultPrevented && e.stopPropagation();
71
+ }), this.baseDoc = this.textEditorInternal.state.doc, this.searchConfig = null, this.delayedFindSearchMatches = null, this.currentSearchResultIndex = -1, this.searchResults = [], this.searchRegex = null, this.loadError = !1, this.sourcePosition = new x(), this.searchableView = null, this.editable = !1, this.positionToReveal = null, this.lineToScrollTo = null, this.selectionToSet = null, this.loadedInternal = !1, this.contentRequested = !1, this.wasmDisassemblyInternal = null, this.contentSet = !1, this.selfXssWarningDisabledSetting = l.instance().createSetting("disable-self-xss-warning", !1, te.SYNCED), l.instance().moduleSetting("text-editor-indent").addChangeListener(this.#e, this);
72
+ }
73
+ disposeView() {
74
+ l.instance().moduleSetting("text-editor-indent").removeChangeListener(this.#e, this);
75
+ }
76
+ async #e() {
77
+ this.prettyInternal && (await this.setPretty(!1), await this.setPretty(!0));
78
+ }
79
+ placeholderEditorState(e) {
80
+ return C.create({
81
+ doc: e,
82
+ extensions: [
83
+ C.readOnly.of(!0),
84
+ this.options.lineNumbers === !1 ? [] : E(),
85
+ Xe()
86
+ ]
87
+ });
88
+ }
89
+ editorConfiguration(e) {
90
+ return [
91
+ A.updateListener.of((e) => this.dispatchEventToListeners("EditorUpdate", e)),
92
+ Je(e),
93
+ qe.instance(),
94
+ et.instance(),
95
+ Ze.instance(),
96
+ tt.instance(),
97
+ Me.lowest($e.instance()),
98
+ Ye.instance(),
99
+ vt,
100
+ A.domEventHandlers({
101
+ focus: () => this.onFocus(),
102
+ blur: () => this.onBlur(),
103
+ paste: () => this.onPaste(),
104
+ scroll: () => this.dispatchEventToListeners("EditorScroll"),
105
+ contextmenu: (e) => this.onContextMenu(e)
106
+ }),
107
+ E({ domEventHandlers: { contextmenu: (e, t, n) => this.onLineGutterContextMenu(t.from, n) } }),
108
+ A.updateListener.of((e) => {
109
+ (e.selectionSet || e.docChanged) && this.updateSourcePosition(), e.docChanged && this.onTextChanged();
110
+ }),
111
+ R,
112
+ Me.lowest(pt),
113
+ F.language.of([]),
114
+ this.wasmDisassemblyInternal ? _t(this.wasmDisassemblyInternal) : z,
115
+ this.options.lineWrapping ? A.lineWrapping : [],
116
+ this.options.lineNumbers === !1 ? [] : E(),
117
+ Ne({ colors: {
118
+ light: "var(--sys-color-divider)",
119
+ activeLight: "var(--sys-color-divider-prominent)",
120
+ dark: "var(--sys-color-divider)",
121
+ activeDark: "var(--sys-color-divider-prominent)"
122
+ } }),
123
+ xt
124
+ ];
125
+ }
126
+ onBlur() {}
127
+ onFocus() {}
128
+ onPaste() {
129
+ return ne.queryParam("isChromeForTesting") || ne.queryParam("disableSelfXssWarnings") || this.selfXssWarningDisabledSetting.get() ? !1 : (this.showSelfXssWarning(), !0);
130
+ }
131
+ async showSelfXssWarning() {
132
+ await We.show({
133
+ jslogContext: {
134
+ dialog: "self-xss-warning",
135
+ input: "allow-pasting"
136
+ },
137
+ header: P(N.doYouTrustThisCode),
138
+ message: P(N.doNotPaste, { PH1: P(N.allowPasting) }),
139
+ typePhrase: P(N.allowPasting),
140
+ inputPlaceholder: P(N.typeAllowPasting, { PH1: P(N.allowPasting) })
141
+ }) && (this.selfXssWarningDisabledSetting.set(!0), be.actionTaken(_e.SelfXssAllowPastingInDialog));
142
+ }
143
+ get wasmDisassembly() {
144
+ return this.wasmDisassemblyInternal;
145
+ }
146
+ editorLocationToUILocation(e, t) {
147
+ return this.wasmDisassemblyInternal ? (t = this.wasmDisassemblyInternal.lineNumberToBytecodeOffset(e), e = 0) : this.prettyInternal && ([e, t] = this.prettyToRawLocation(e, t)), {
148
+ lineNumber: e,
149
+ columnNumber: t
150
+ };
151
+ }
152
+ uiLocationToEditorLocation(e, t = 0) {
153
+ return this.wasmDisassemblyInternal ? (e = this.wasmDisassemblyInternal.bytecodeOffsetToLineNumber(t), t = 0) : this.prettyInternal && ([e, t] = this.rawToPrettyLocation(e, t)), {
154
+ lineNumber: e,
155
+ columnNumber: t
156
+ };
157
+ }
158
+ setCanPrettyPrint(e, t) {
159
+ this.shouldAutoPrettyPrint = t === !0 && l.instance().moduleSetting("auto-pretty-print-minified").get(), this.prettyToggle.setVisible(e);
160
+ }
161
+ setEditable(e) {
162
+ this.editable = e, this.loaded && e !== !this.textEditor.state.readOnly && this.textEditor.dispatch({ effects: F.editable.reconfigure(C.readOnly.of(!e)) });
163
+ }
164
+ async setPretty(e) {
165
+ this.prettyInternal = e, this.prettyToggle.setEnabled(!1);
166
+ let t = this.loaded, { textEditor: n } = this, r = n.state.selection.main, i = n.toLineColumn(r.from), a = n.toLineColumn(r.to), o;
167
+ if (this.prettyInternal) {
168
+ let e = this.rawContent instanceof D ? this.rawContent.sliceString(0) : this.rawContent || "", t = await ie(this.contentType, e);
169
+ this.formattedMap = t.formattedMapping, await this.setContent(t.formattedContent), this.prettyBaseDoc = n.state.doc;
170
+ let r = this.rawToPrettyLocation(i.lineNumber, i.columnNumber), s = this.rawToPrettyLocation(a.lineNumber, a.columnNumber);
171
+ o = n.createSelection({
172
+ lineNumber: r[0],
173
+ columnNumber: r[1]
174
+ }, {
175
+ lineNumber: s[0],
176
+ columnNumber: s[1]
177
+ });
178
+ } else {
179
+ this.formattedMap = null, await this.setContent(this.rawContent || ""), this.baseDoc = n.state.doc;
180
+ let e = this.prettyToRawLocation(i.lineNumber, i.columnNumber), t = this.prettyToRawLocation(a.lineNumber, a.columnNumber);
181
+ o = n.createSelection({
182
+ lineNumber: e[0],
183
+ columnNumber: e[1]
184
+ }, {
185
+ lineNumber: t[0],
186
+ columnNumber: t[1]
187
+ });
188
+ }
189
+ t && n.revealPosition(o, !1), this.prettyToggle.setEnabled(!0), this.updatePrettyPrintState();
190
+ }
191
+ getLineNumberFormatter() {
192
+ if (this.options.lineNumbers === !1) return [];
193
+ let e;
194
+ if (this.wasmDisassemblyInternal) {
195
+ let t = this.wasmDisassemblyInternal, n = t.lineNumberToBytecodeOffset(t.lineNumbers - 1).toString(16).length + 1;
196
+ e = (e) => `0x${t.lineNumberToBytecodeOffset(Math.min(t.lineNumbers, e) - 1).toString(16).padStart(n, "0")}`;
197
+ } else this.prettyInternal && (e = (e, t) => {
198
+ if (e < 2 || e > t.doc.lines) return String(e);
199
+ let [n] = this.prettyToRawLocation(e - 1), [r] = this.prettyToRawLocation(e - 2);
200
+ return n === r ? "-" : String(n + 1);
201
+ });
202
+ return e ? [E({ formatNumber: e }), ct.of(e)] : [];
203
+ }
204
+ updateLineNumberFormatter() {
205
+ this.textEditor.dispatch({ effects: F.lineNumbers.reconfigure(this.getLineNumberFormatter()) }), this.textEditor.shadowRoot?.querySelector(".cm-lineNumbers")?.setAttribute("jslog", `${d("line-numbers").track({ click: !0 })}`);
206
+ }
207
+ updatePrettyPrintState() {
208
+ this.prettyToggle.setToggled(this.prettyInternal), this.textEditorInternal.classList.toggle("pretty-printed", this.prettyInternal), this.updateLineNumberFormatter();
209
+ }
210
+ prettyToRawLocation(e, t = 0) {
211
+ return this.formattedMap ? this.formattedMap.formattedToOriginal(e, t) : [e, t];
212
+ }
213
+ rawToPrettyLocation(e, t) {
214
+ return this.formattedMap ? this.formattedMap.originalToFormatted(e, t) : [e, t];
215
+ }
216
+ hasLoadError() {
217
+ return this.loadError;
218
+ }
219
+ wasShown() {
220
+ super.wasShown(), this.ensureContentLoaded(), this.wasShownOrLoaded();
221
+ }
222
+ willHide() {
223
+ super.willHide(), this.clearPositionToReveal();
224
+ }
225
+ async toolbarItems() {
226
+ return [
227
+ this.prettyToggle,
228
+ this.sourcePosition,
229
+ this.progressToolbarItem
230
+ ];
231
+ }
232
+ get loaded() {
233
+ return this.loadedInternal;
234
+ }
235
+ get textEditor() {
236
+ return this.textEditorInternal;
237
+ }
238
+ get pretty() {
239
+ return this.prettyInternal;
240
+ }
241
+ get contentType() {
242
+ return this.loadError ? "" : this.getContentType();
243
+ }
244
+ getContentType() {
245
+ return "";
246
+ }
247
+ async ensureContentLoaded() {
248
+ this.contentRequested || (this.contentRequested = !0, await this.setContentDataOrError(this.lazyContent()), this.contentSet = !0);
249
+ }
250
+ async setContentDataOrError(e) {
251
+ let t = document.createElement("devtools-progress");
252
+ t.title = P(N.loading), t.totalWork = 100, this.progressToolbarItem.element.appendChild(t), t.worked = 1;
253
+ let n = await e, r, i, a = !1;
254
+ j.isError(n) ? (r = n.error, i = n.error) : n instanceof ze ? (i = D.of(n.lines), this.wasmDisassemblyInternal = n) : n.isTextContent ? (i = n.text, a = Ie(n.text), this.wasmDisassemblyInternal = null) : n.mimeType === "application/wasm" ? (this.wasmDisassemblyInternal = await pe(n.base64), i = D.of(this.wasmDisassemblyInternal.lines)) : (r = P(N.binaryContentError), i = null, this.wasmDisassemblyInternal = null), t.worked = 100, t.done = !0, !(this.rawContent === i && r === void 0) && (this.rawContent = i, this.formattedMap = null, this.prettyToggle.setEnabled(!0), r ? (this.loadError = !0, this.textEditor.state = this.placeholderEditorState(r), this.prettyToggle.setEnabled(!1)) : this.shouldAutoPrettyPrint && a ? await this.setPretty(!0) : await this.setContent(this.rawContent || ""));
255
+ }
256
+ revealPosition(e, t) {
257
+ if (this.lineToScrollTo = null, this.selectionToSet = null, typeof e == "number") {
258
+ let n = 0, r = 0, { doc: i } = this.textEditor.state;
259
+ if (e > i.length) n = i.lines - 1;
260
+ else if (e >= 0) {
261
+ let t = i.lineAt(e);
262
+ n = t.number - 1, r = e - t.from;
263
+ }
264
+ this.positionToReveal = {
265
+ to: {
266
+ lineNumber: n,
267
+ columnNumber: r
268
+ },
269
+ shouldHighlight: t
270
+ };
271
+ } else if ("lineNumber" in e) {
272
+ let { lineNumber: n, columnNumber: r } = e;
273
+ this.positionToReveal = {
274
+ to: {
275
+ lineNumber: n,
276
+ columnNumber: r ?? 0
277
+ },
278
+ shouldHighlight: t
279
+ };
280
+ } else this.positionToReveal = {
281
+ ...e,
282
+ shouldHighlight: t
283
+ };
284
+ this.#t();
285
+ }
286
+ #t() {
287
+ if (!this.positionToReveal || !this.loaded || !this.isShowing()) return;
288
+ let { from: e, to: t, shouldHighlight: n } = this.positionToReveal, r = this.uiLocationToEditorLocation(t.lineNumber, t.columnNumber), i = e ? this.uiLocationToEditorLocation(e.lineNumber, e.columnNumber) : void 0, { textEditor: a } = this;
289
+ a.revealPosition(a.createSelection(r, i), n), this.positionToReveal = null;
290
+ }
291
+ clearPositionToReveal() {
292
+ this.positionToReveal = null;
293
+ }
294
+ scrollToLine(e) {
295
+ this.clearPositionToReveal(), this.lineToScrollTo = e, this.#n();
296
+ }
297
+ #n() {
298
+ if (this.lineToScrollTo !== null && this.loaded && this.isShowing()) {
299
+ let { textEditor: e } = this, t = e.toOffset({
300
+ lineNumber: this.lineToScrollTo,
301
+ columnNumber: 0
302
+ });
303
+ e.dispatch({ effects: A.scrollIntoView(t, {
304
+ y: "start",
305
+ yMargin: 0
306
+ }) }), this.lineToScrollTo = null;
307
+ }
308
+ }
309
+ setSelection(e) {
310
+ this.selectionToSet = e, this.#r();
311
+ }
312
+ #r() {
313
+ let e = this.selectionToSet;
314
+ if (e && this.loaded && this.isShowing()) {
315
+ let { textEditor: t } = this;
316
+ t.dispatch({ selection: t.createSelection({
317
+ lineNumber: e.startLine,
318
+ columnNumber: e.startColumn
319
+ }, {
320
+ lineNumber: e.endLine,
321
+ columnNumber: e.endColumn
322
+ }) }), this.selectionToSet = null;
323
+ }
324
+ }
325
+ wasShownOrLoaded() {
326
+ this.#t(), this.#r(), this.#n(), this.textEditor.shadowRoot?.querySelector(".cm-lineNumbers")?.setAttribute("jslog", `${d("line-numbers").track({ click: !0 })}`), this.textEditor.shadowRoot?.querySelector(".cm-foldGutter")?.setAttribute("jslog", `${d("fold")}`), this.textEditor.setAttribute("jslog", `${Ce().track({ change: !0 })}`);
327
+ }
328
+ onTextChanged() {
329
+ let e = this.pretty;
330
+ this.prettyInternal = !!(this.prettyBaseDoc && this.textEditor.state.doc.eq(this.prettyBaseDoc)), this.prettyInternal !== e && this.updatePrettyPrintState(), this.prettyToggle.setEnabled(this.isClean()), this.searchConfig && this.searchableView && this.performSearch(this.searchConfig, !1, !1);
331
+ }
332
+ isClean() {
333
+ return this.textEditor.state.doc.eq(this.baseDoc) || this.prettyBaseDoc !== null && this.textEditor.state.doc.eq(this.prettyBaseDoc);
334
+ }
335
+ contentCommitted() {
336
+ this.baseDoc = this.textEditorInternal.state.doc, this.prettyBaseDoc = null, this.rawContent = this.textEditor.state.doc.toString(), this.formattedMap = null, this.prettyInternal && (this.prettyInternal = !1, this.updatePrettyPrintState()), this.prettyToggle.setEnabled(!0);
337
+ }
338
+ async getLanguageSupport(e) {
339
+ let { contentType: t } = this;
340
+ t === "text/x.vue" && (e = typeof e == "string" ? e : e.sliceString(0), e.trimStart().startsWith("<") || (t = "text/javascript"));
341
+ let n = await nt(t);
342
+ return n ? [n, je.javascriptLanguage.data.of({ autocomplete: Ee })] : [];
343
+ }
344
+ async updateLanguageMode(e) {
345
+ let t = await this.getLanguageSupport(e);
346
+ this.textEditor.dispatch({ effects: F.language.reconfigure(t) });
347
+ }
348
+ async setContent(e) {
349
+ let { textEditor: t } = this, n = this.loadedInternal, r = t.editor.scrollDOM.scrollTop;
350
+ this.loadedInternal = !0;
351
+ let i = await this.getLanguageSupport(e), a = C.create({
352
+ doc: e,
353
+ extensions: [
354
+ this.editorConfiguration(e),
355
+ i,
356
+ F.lineNumbers.of(this.getLineNumberFormatter()),
357
+ F.editable.of(this.editable ? [] : C.readOnly.of(!0))
358
+ ]
359
+ });
360
+ this.baseDoc = a.doc, t.state = a, n && (t.editor.scrollDOM.scrollTop = r), this.wasShownOrLoaded(), this.delayedFindSearchMatches &&= (this.delayedFindSearchMatches(), null);
361
+ }
362
+ setSearchableView(e) {
363
+ this.searchableView = e;
364
+ }
365
+ doFindSearchMatches(e, t, n) {
366
+ this.currentSearchResultIndex = -1, this.searchRegex = e.toSearchRegex(!0), this.searchResults = this.collectRegexMatches(this.searchRegex), this.searchableView && this.searchableView.updateSearchMatchesCount(this.searchResults.length);
367
+ let r = this.textEditor;
368
+ this.searchResults.length ? t && n ? this.jumpToPreviousSearchResult() : t ? this.jumpToNextSearchResult() : r.dispatch({ effects: L.of(new I(this.searchRegex, null)) }) : r.state.field(R) && r.dispatch({ effects: L.of(null) });
369
+ }
370
+ performSearch(e, t, n) {
371
+ this.searchableView && this.searchableView.updateSearchMatchesCount(0), this.resetSearch(), this.searchConfig = e, this.loaded ? this.doFindSearchMatches(e, t, !!n) : this.delayedFindSearchMatches = this.doFindSearchMatches.bind(this, e, t, !!n), this.ensureContentLoaded();
372
+ }
373
+ resetCurrentSearchResultIndex() {
374
+ if (!this.searchResults.length) return;
375
+ this.currentSearchResultIndex = -1, this.searchableView && this.searchableView.updateCurrentMatchIndex(this.currentSearchResultIndex);
376
+ let e = this.textEditor, t = e.state.field(R);
377
+ t?.currentRange && e.dispatch({ effects: L.of(new I(t.regexp, null)) });
378
+ }
379
+ resetSearch() {
380
+ this.searchConfig = null, this.delayedFindSearchMatches = null, this.currentSearchResultIndex = -1, this.searchResults = [], this.searchRegex = null;
381
+ }
382
+ onSearchCanceled() {
383
+ let e = this.currentSearchResultIndex === -1 ? null : this.searchResults[this.currentSearchResultIndex];
384
+ this.resetSearch(), this.loaded && this.textEditor.dispatch({
385
+ effects: L.of(null),
386
+ selection: e ? {
387
+ anchor: e.from,
388
+ head: e.to
389
+ } : void 0,
390
+ scrollIntoView: !0,
391
+ userEvent: "select.search.cancel"
392
+ });
393
+ }
394
+ jumpToLastSearchResult() {
395
+ this.jumpToSearchResult(this.searchResults.length - 1);
396
+ }
397
+ searchResultIndexForCurrentSelection() {
398
+ return r(this.searchResults, this.textEditor.state.selection.main, (e, t) => e.to - t.to);
399
+ }
400
+ jumpToNextSearchResult() {
401
+ let e = this.searchResultIndexForCurrentSelection(), t = this.currentSearchResultIndex === -1 ? e : e + 1;
402
+ this.jumpToSearchResult(t);
403
+ }
404
+ jumpToPreviousSearchResult() {
405
+ let e = this.searchResultIndexForCurrentSelection();
406
+ this.jumpToSearchResult(e - 1);
407
+ }
408
+ supportsCaseSensitiveSearch() {
409
+ return !0;
410
+ }
411
+ supportsWholeWordSearch() {
412
+ return !0;
413
+ }
414
+ supportsRegexSearch() {
415
+ return !0;
416
+ }
417
+ jumpToSearchResult(e) {
418
+ if (!this.loaded || !this.searchResults.length || !this.searchRegex) return;
419
+ this.currentSearchResultIndex = (e + this.searchResults.length) % this.searchResults.length, this.searchableView && this.searchableView.updateCurrentMatchIndex(this.currentSearchResultIndex);
420
+ let t = this.textEditor, n = this.searchResults[this.currentSearchResultIndex];
421
+ t.dispatch({
422
+ effects: L.of(new I(this.searchRegex, n)),
423
+ selection: {
424
+ anchor: n.from,
425
+ head: n.to
426
+ },
427
+ scrollIntoView: !0,
428
+ userEvent: "select.search"
429
+ });
430
+ }
431
+ replaceSelectionWith(e, t) {
432
+ let n = this.searchResults[this.currentSearchResultIndex];
433
+ if (!n) return;
434
+ let r = this.searchRegex?.fromQuery ? n.insertPlaceholders(t) : t, i = this.textEditor, a = i.state.changes({
435
+ from: n.from,
436
+ to: n.to,
437
+ insert: r
438
+ });
439
+ i.dispatch({
440
+ changes: a,
441
+ selection: { anchor: a.mapPos(i.state.selection.main.to, 1) },
442
+ userEvent: "input.replace"
443
+ });
444
+ }
445
+ replaceAllWith(e, t) {
446
+ this.resetCurrentSearchResultIndex();
447
+ let n = e.toSearchRegex(!0), r = this.collectRegexMatches(n);
448
+ if (!r.length) return;
449
+ let i = n.fromQuery, a = r.map((e) => ({
450
+ from: e.from,
451
+ to: e.to,
452
+ insert: i ? e.insertPlaceholders(t) : t
453
+ }));
454
+ this.textEditor.dispatch({
455
+ changes: a,
456
+ scrollIntoView: !0,
457
+ userEvent: "input.replace.all"
458
+ });
459
+ }
460
+ collectRegexMatches({ regex: e }) {
461
+ let t = [], n = 0;
462
+ for (let r of this.textEditor.state.doc.iterLines()) {
463
+ for (e.lastIndex = 0;;) {
464
+ let i = e.exec(r);
465
+ if (!i) break;
466
+ if (i[0].length) {
467
+ let e = n + i.index;
468
+ t.push(new ut(e, e + i[0].length, i));
469
+ } else e.lastIndex = i.index + 1;
470
+ }
471
+ n += r.length + 1;
472
+ }
473
+ return t;
474
+ }
475
+ canEditSource() {
476
+ return this.editable;
477
+ }
478
+ updateSourcePosition() {
479
+ let { textEditor: e } = this, { state: t } = e, { selection: n } = t;
480
+ if (this.displayedSelection?.eq(n)) return;
481
+ if (this.displayedSelection = n, n.ranges.length > 1) {
482
+ this.sourcePosition.setText(P(N.dSelectionRegions, { PH1: n.ranges.length }));
483
+ return;
484
+ }
485
+ let { main: r } = t.selection;
486
+ if (r.empty) {
487
+ let { lineNumber: t, columnNumber: n } = e.toLineColumn(r.head), i = this.prettyToRawLocation(t, n);
488
+ if (this.wasmDisassemblyInternal) {
489
+ let e = this.wasmDisassemblyInternal, t = e.lineNumberToBytecodeOffset(e.lineNumbers - 1).toString(16).length, n = e.lineNumberToBytecodeOffset(i[0]);
490
+ this.sourcePosition.setText(P(N.bytecodePositionXs, { PH1: n.toString(16).padStart(t, "0") }));
491
+ } else this.sourcePosition.setText(P(N.lineSColumnS, {
492
+ PH1: i[0] + 1,
493
+ PH2: i[1] + 1
494
+ }));
495
+ } else {
496
+ let e = t.doc.lineAt(r.from), n = t.doc.lineAt(r.to);
497
+ e.number === n.number ? this.sourcePosition.setText(P(N.dCharactersSelected, { PH1: r.to - r.from })) : this.sourcePosition.setText(P(N.dLinesDCharactersSelected, {
498
+ PH1: n.number - e.number + 1,
499
+ PH2: r.to - r.from
500
+ }));
501
+ }
502
+ }
503
+ onContextMenu(e) {
504
+ e.consume(!0);
505
+ let t = new g(e), { state: n } = this.textEditor, r = n.selection.main.from, i = n.doc.lineAt(r);
506
+ return this.populateTextAreaContextMenu(t, i.number - 1, r - i.from), t.appendApplicableItems(this), t.show(), !0;
507
+ }
508
+ populateTextAreaContextMenu(e, t, n) {}
509
+ onLineGutterContextMenu(e, t) {
510
+ t.consume(!0);
511
+ let n = new g(t), r = this.textEditor.state.doc.lineAt(e).number - 1;
512
+ return this.populateLineGutterContextMenu(n, r), n.appendApplicableItems(this), n.show(), !0;
513
+ }
514
+ populateLineGutterContextMenu(e, t) {}
515
+ focus() {
516
+ this.textEditor.focus();
517
+ }
518
+ }, ut = class {
519
+ from;
520
+ to;
521
+ match;
522
+ constructor(e, t, n) {
523
+ this.from = e, this.to = t, this.match = n;
524
+ }
525
+ insertPlaceholders(e) {
526
+ return e.replace(/\$(\$|&|\d+|<[^>]+>)/g, (e, t) => t === "$" ? "$" : t === "&" ? this.match[0] : t[0] === "<" ? this.match.groups?.[t.slice(1, t.length - 1)] || "" : this.match[Number.parseInt(t, 10)] || "");
527
+ }
528
+ }, F = {
529
+ editable: new T(),
530
+ language: new T(),
531
+ lineNumbers: new T()
532
+ }, I = class e {
533
+ regexp;
534
+ currentRange;
535
+ constructor(e, t) {
536
+ this.regexp = e, this.currentRange = t;
537
+ }
538
+ map(t) {
539
+ return t.empty || !this.currentRange ? this : new e(this.regexp, {
540
+ from: t.mapPos(this.currentRange.from),
541
+ to: t.mapPos(this.currentRange.to)
542
+ });
543
+ }
544
+ static eq(e, t) {
545
+ return !!(e === t || e && t && e.currentRange?.from === t.currentRange?.from && e.currentRange?.to === t.currentRange?.to && e.regexp.regex.source === t.regexp.regex.source && e.regexp.regex.flags === t.regexp.regex.flags);
546
+ }
547
+ }, L = S.define({ map: (e, t) => e?.map(t) }), R = O.define({
548
+ create() {
549
+ return null;
550
+ },
551
+ update(e, t) {
552
+ return t.effects.reduce((e, t) => t.is(L) ? t.value : e, e?.map(t.changes) ?? null);
553
+ }
554
+ }), dt = w.mark({ class: "cm-searchMatch" }), ft = w.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), pt = Oe.fromClass(class {
555
+ decorations;
556
+ constructor(e) {
557
+ this.decorations = this.computeDecorations(e);
558
+ }
559
+ update(e) {
560
+ let t = e.state.field(R);
561
+ (!I.eq(t, e.startState.field(R)) || t && (e.viewportChanged || e.docChanged)) && (this.decorations = this.computeDecorations(e.view));
562
+ }
563
+ computeDecorations(e) {
564
+ let t = e.state.field(R);
565
+ if (!t) return w.none;
566
+ let n = new Te(), { doc: r } = e.state;
567
+ for (let { from: i, to: a } of e.visibleRanges) {
568
+ let e = i;
569
+ for (let o of r.iterRange(i, a)) {
570
+ if (o !== "\n") for (t.regexp.regex.lastIndex = 0;;) {
571
+ let r = t.regexp.regex.exec(o);
572
+ if (!r) break;
573
+ if (r[0].length) {
574
+ let i = e + r.index, a = i + r[0].length, o = t.currentRange?.from === i && t.currentRange.to === a;
575
+ n.add(i, a, o ? ft : dt);
576
+ } else t.regexp.regex.lastIndex = r.index + 1;
577
+ }
578
+ e += o.length;
579
+ }
580
+ }
581
+ return n.finish();
582
+ }
583
+ }, { decorations: (e) => e.decorations }), mt = new class extends De {
584
+ elementClass = "cm-nonBreakableLine";
585
+ }(), ht = S.define(), z = O.define({
586
+ create() {
587
+ return k.empty;
588
+ },
589
+ update(e, t) {
590
+ return t.effects.reduce((e, t) => t.is(ht) ? e.update({ add: t.value.map((e) => mt.range(e)) }) : e, e.map(t.changes));
591
+ },
592
+ provide: (e) => ke.from(e)
593
+ });
594
+ function gt(e, t) {
595
+ let n = e.field(z);
596
+ if (!n.size) return !0;
597
+ let r = !1;
598
+ return n.between(t.from, t.from, () => {
599
+ r = !0;
600
+ }), !r;
601
+ }
602
+ function _t(e) {
603
+ return z.init((t) => {
604
+ let n = [];
605
+ for (let r of e.nonBreakableLineNumbers()) r < t.doc.lines && n.push(mt.range(t.doc.line(r + 1).from));
606
+ return k.of(n);
607
+ });
608
+ }
609
+ var vt = A.theme({
610
+ "&.cm-editor": { height: "100%" },
611
+ ".cm-scroller": { overflow: "auto" },
612
+ ".cm-lineNumbers .cm-gutterElement.cm-nonBreakableLine": { color: "var(--sys-color-state-disabled) !important" },
613
+ ".cm-searchMatch": {
614
+ border: "1px solid var(--sys-color-outline)",
615
+ borderRadius: "3px",
616
+ margin: "0 -1px",
617
+ "&.cm-searchMatch-selected": {
618
+ borderRadius: "1px",
619
+ backgroundColor: "var(--sys-color-yellow-container)",
620
+ borderColor: "var(--sys-color-yellow-outline)",
621
+ "&, & *": { color: "var(--sys-color-on-surface) !important" }
622
+ }
623
+ },
624
+ ":host-context(.pretty-printed) & .cm-lineNumbers .cm-gutterElement": { color: "var(--sys-color-primary)" }
625
+ }), yt = S.define(), bt = S.define(), xt = O.define({
626
+ create() {
627
+ return [];
628
+ },
629
+ update(e, t) {
630
+ for (let n of t.effects) n.is(yt) ? e = e.concat(n.value) : n.is(bt) && (e = e.filter((e) => e.element !== n.value.element));
631
+ return e;
632
+ },
633
+ provide: (e) => we.computeN([e], (t) => t.field(e).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map((e) => () => ({ dom: e.element })))
634
+ }), St = { find: "Find" }, Ct = u("ui/legacy/components/source_frame/ResourceSourceFrame.ts", St), wt = c.bind(void 0, Ct), B = class extends lt {
635
+ #e;
636
+ #t;
637
+ constructor(e, t, n) {
638
+ let r = Pe(e);
639
+ super(r ? () => e.requestStreamingContent().then(Le) : () => e.requestContentData(), n), this.#t = t, this.#e = e, r && e.requestStreamingContent().then((e) => {
640
+ Fe(e) || e.addEventListener(M.CHUNK_ADDED, () => {
641
+ this.setContentDataOrError(Promise.resolve(e.content()));
642
+ });
643
+ });
644
+ }
645
+ static createSearchableView(e, t) {
646
+ return new Tt(e, t);
647
+ }
648
+ getContentType() {
649
+ return this.#t;
650
+ }
651
+ get resource() {
652
+ return this.#e;
653
+ }
654
+ populateTextAreaContextMenu(e, t, n) {
655
+ super.populateTextAreaContextMenu(e, t, n), e.appendApplicableItems(this.#e);
656
+ }
657
+ }, Tt = class extends _ {
658
+ sourceFrame;
659
+ constructor(e, t, n) {
660
+ super(n, { useShadowDom: !0 }), this.registerRequiredCSS(at);
661
+ let r = s.simplifyContentType(t), i = new B(e, r);
662
+ this.sourceFrame = i;
663
+ let a = Ve.includes(r);
664
+ i.setCanPrettyPrint(a, !0);
665
+ let o = new h(i, i);
666
+ o.element.classList.add("searchable-view"), o.setPlaceholder(wt(St.find)), i.show(o.element), i.setSearchableView(o), o.show(this.contentElement);
667
+ let c = this.contentElement.createChild("devtools-toolbar", "toolbar");
668
+ i.toolbarItems().then((e) => {
669
+ e.map((e) => c.appendToolbarItem(e));
670
+ });
671
+ }
672
+ async revealPosition(e) {
673
+ this.sourceFrame.revealPosition(e, !0);
674
+ }
675
+ }, V = 1e3, Et = class extends _ {
676
+ #e = new Uint8Array([0]);
677
+ #t = 0;
678
+ #n = new rt();
679
+ constructor() {
680
+ super(), this.#n.addEventListener(it.MEMORY_REQUEST, this.#r, this), this.#n.addEventListener(it.ADDRESS_CHANGED, (e) => {
681
+ this.#t = e.data;
682
+ }), this.#n.show(this.contentElement);
683
+ }
684
+ wasShown() {
685
+ super.wasShown(), this.refreshData();
686
+ }
687
+ setMemory(e) {
688
+ this.#e = e, this.refreshData();
689
+ }
690
+ refreshData() {
691
+ let e = Math.max(0, this.#t - V / 2), t = e + V, n = this.#e.slice(e, t);
692
+ this.#n.memory = n, this.#n.address = this.#t, this.#n.memoryOffset = e, this.#n.outerMemoryLength = this.#e.length, this.#n.hideValueInspector = !0;
693
+ }
694
+ #r(e) {
695
+ let { start: t, end: n, address: r } = e.data;
696
+ if (r < t || r >= n) throw Error("Requested address is out of bounds.");
697
+ if (t < 0 || t > n || t >= this.#e.length) throw Error("Requested range is out of bounds.");
698
+ let i = Math.max(n, t + V), a = this.#e.slice(t, i);
699
+ this.#n.memory = a, this.#n.address = r, this.#n.memoryOffset = t, this.#n.outerMemoryLength = this.#e.length, this.#n.hideValueInspector = !0;
700
+ }
701
+ }, Dt = class extends Et {
702
+ #e;
703
+ constructor(e) {
704
+ super(), this.#e = e;
705
+ }
706
+ wasShown() {
707
+ super.wasShown(), this.#t(), this.#e.addEventListener(M.CHUNK_ADDED, this.#t, this);
708
+ }
709
+ willHide() {
710
+ super.willHide(), this.#e.removeEventListener(M.CHUNK_ADDED, this.#t, this);
711
+ }
712
+ #t() {
713
+ let e = window.atob(this.#e.content().base64), t = Uint8Array.from(e, (e) => e.codePointAt(0));
714
+ this.setMemory(t);
715
+ }
716
+ }, Ot = class e {
717
+ streamingContent;
718
+ contentUrl;
719
+ resourceType;
720
+ constructor(e, t, n) {
721
+ this.streamingContent = e, this.contentUrl = t, this.resourceType = n;
722
+ }
723
+ hex() {
724
+ let t = window.atob(this.base64()), n = Uint8Array.from(t, (e) => e.codePointAt(0));
725
+ return e.#e(n);
726
+ }
727
+ base64() {
728
+ return this.streamingContent.content().base64;
729
+ }
730
+ utf8() {
731
+ return new j(this.base64(), !0, "text/plain", "utf-8").text;
732
+ }
733
+ createBase64View() {
734
+ let e = new B(Re.fromString(this.contentUrl, this.resourceType, this.streamingContent.content().base64), this.resourceType.canonicalMimeType(), {
735
+ lineNumbers: !1,
736
+ lineWrapping: !0
737
+ });
738
+ return this.streamingContent.addEventListener(M.CHUNK_ADDED, () => {
739
+ e.setContent(this.base64());
740
+ }), e;
741
+ }
742
+ createHexView() {
743
+ return new Dt(this.streamingContent);
744
+ }
745
+ createUtf8View() {
746
+ let e = new B(Re.fromString(this.contentUrl, this.resourceType, this.utf8()), this.resourceType.canonicalMimeType(), {
747
+ lineNumbers: !0,
748
+ lineWrapping: !0
749
+ });
750
+ return this.streamingContent.addEventListener(M.CHUNK_ADDED, () => {
751
+ e.setContent(this.utf8());
752
+ }), e;
753
+ }
754
+ static #e(t) {
755
+ let n = "";
756
+ for (let r = 0; r < t.length; r++) n += e.#t(t[r], 2);
757
+ return n;
758
+ }
759
+ static #t(e, t) {
760
+ let n = e.toString(16);
761
+ for (; n.length < t;) n = "0" + n;
762
+ return n;
763
+ }
764
+ }, kt = "/*\n * Copyright 2014 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.font-view {\n font-size: 60px;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n text-align: center;\n padding: 15px;\n}\n", H = {
765
+ font: "Font",
766
+ previewOfFontFromS: "Preview of font from {PH1}"
767
+ }, At = u("ui/legacy/components/source_frame/FontView.ts", H), jt = c.bind(void 0, At), Mt = [
768
+ "ABCDEFGHIJKLM",
769
+ "NOPQRSTUVWXYZ",
770
+ "abcdefghijklm",
771
+ "nopqrstuvwxyz",
772
+ "1234567890"
773
+ ], Nt = 50, Pt = (e, t, n) => {
774
+ let r;
775
+ ae(f`
776
+ <style>${kt}</style>
777
+ <style>${e.fontFaceRule}</style>
778
+ <div class="font-view"
779
+ aria-label=${jt(H.previewOfFontFromS, { PH1: e.url })}
780
+ style="font-family: ${e.fontFamily}; font-size: ${e.previewFontSize}"
781
+ aria-hidden="true"
782
+ ?hidden=${!e.previewVisible}
783
+ >${Mt.map((e, t) => f`${t > 0 ? f`<br>` : ""}${e}`)}</div>
784
+ <div ${de((e) => {
785
+ r = e;
786
+ })}
787
+ style="visibility: hidden; z-index: -1; display: inline; position: absolute; font-family: ${e.fontFamily}; font-size: ${Nt}px"
788
+ >${Mt.map((e, t) => f`${t > 0 ? f`<br>` : ""}${e}`)}</div>
789
+ `, n), t.measureDimensions = () => r ? {
790
+ width: r.offsetWidth,
791
+ height: r.offsetHeight
792
+ } : {
793
+ width: 0,
794
+ height: 0
795
+ };
796
+ }, Ft = class extends v {
797
+ url;
798
+ contentProvider;
799
+ mimeTypeLabel;
800
+ #e;
801
+ #t = "";
802
+ #n = "";
803
+ #r = "";
804
+ #i = !1;
805
+ #a = !1;
806
+ constructor(e, t, n = Pt) {
807
+ super({
808
+ title: jt(H.font),
809
+ viewId: "font",
810
+ jslog: `${b("font-view")}`
811
+ }), this.#e = n, this.url = t.contentURL(), this.contentProvider = t, this.mimeTypeLabel = new x(e);
812
+ }
813
+ async toolbarItems() {
814
+ return [this.mimeTypeLabel];
815
+ }
816
+ #o() {
817
+ this.#a || (this.#a = !0, this.#n = `WebInspectorFontPreview${++It}`, this.contentProvider.requestContentData().then((e) => {
818
+ let t = j.isError(e) ? this.url : e.asDataUrl();
819
+ if (t) {
820
+ let e = new CSSStyleSheet();
821
+ e.insertRule("@font-face {}");
822
+ let n = e.cssRules[0];
823
+ n.style.setProperty("font-family", this.#n), n.style.setProperty("src", `url(${JSON.stringify(t)})`), this.#t = n.cssText;
824
+ } else this.#t = "";
825
+ this.#i = !0, this.requestUpdate();
826
+ }));
827
+ }
828
+ wasShown() {
829
+ super.wasShown(), this.#o(), this.requestUpdate();
830
+ }
831
+ onResize() {
832
+ this.requestUpdate();
833
+ }
834
+ #s(e) {
835
+ if (!this.#i || !this.isShowing()) return "";
836
+ let t = e.height, n = e.width, r = this.element.offsetWidth - 50, i = this.element.offsetHeight - 30;
837
+ if (!t || !n || !r || !i) return "";
838
+ let a = r / n, o = i / t;
839
+ return `${Math.floor(Nt * Math.min(a, o)) - 2}px`;
840
+ }
841
+ performUpdate() {
842
+ let e = {};
843
+ if (this.#e({
844
+ url: this.url,
845
+ fontFaceRule: this.#t,
846
+ fontFamily: this.#n,
847
+ previewFontSize: this.#r,
848
+ previewVisible: this.#i
849
+ }, e, this.contentElement), !e.measureDimensions) return;
850
+ let t = this.#s(e.measureDimensions());
851
+ t !== this.#r && (this.#r = t, this.requestUpdate());
852
+ }
853
+ }, It = 0, Lt = "/*\n * Copyright 2014 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.image-view {\n overflow: auto;\n}\n\n.image-view > .image {\n padding: 20px 20px 10px;\n text-align: center;\n}\n\n.image-view img.resource-image-view {\n max-width: 100%;\n max-height: 1000px;\n background-image: var(--image-file-checker);\n box-shadow: 0 5px 10px var(--sys-color-outline);\n user-select: text;\n -webkit-user-drag: auto;\n}\n\n.resource-image-unavailable {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--sys-size-4);\n}\n\n.resource-image-unavailable devtools-icon {\n color: var(--sys-color-primary);\n width: var(--sys-size-7);\n height: var(--sys-size-7);\n}\n", U = {
854
+ image: "Image",
855
+ dropImageFileHere: "Drop image file here",
856
+ imageFromS: "Image from {PH1}",
857
+ dD: "{PH1} × {PH2}",
858
+ copyImageUrl: "Copy image URL",
859
+ copyImageAsDataUri: "Copy image as data URI",
860
+ openImageInNewTab: "Open image in new tab",
861
+ saveImageAs: "Save image as…",
862
+ download: "download",
863
+ thisImageIsTooBig: "This image is too big to display in DevTools. Click here to open it in a new tab."
864
+ }, Rt = u("ui/legacy/components/source_frame/ImageView.ts", U), W = c.bind(void 0, Rt), zt = class extends v {
865
+ url;
866
+ parsedURL;
867
+ contentProvider;
868
+ uiSourceCode;
869
+ sizeLabel;
870
+ dimensionsLabel;
871
+ aspectRatioLabel;
872
+ mimeTypeLabel;
873
+ container;
874
+ imagePreviewElement;
875
+ imageUnavailableElement;
876
+ cachedContent;
877
+ constructor(e, t) {
878
+ super({
879
+ title: W(U.image),
880
+ viewId: "image",
881
+ jslog: `${b("image-view")}`
882
+ }), this.registerRequiredCSS(Lt), this.element.tabIndex = -1, this.element.classList.add("image-view"), this.url = t.contentURL(), this.parsedURL = new o(this.url), this.contentProvider = t, this.uiSourceCode = t instanceof Ue ? t : null, this.uiSourceCode && (this.uiSourceCode.addEventListener(He.WorkingCopyCommitted, this.workingCopyCommitted, this), new re(this.element, [le.ImageFile, le.URI], W(U.dropImageFileHere), this.handleDrop.bind(this))), this.sizeLabel = new x(), this.dimensionsLabel = new x(), this.aspectRatioLabel = new x(), this.mimeTypeLabel = new x(e), this.container = this.element.createChild("div", "image"), this.imagePreviewElement = this.container.createChild("img", "resource-image-view"), this.imagePreviewElement.addEventListener("contextmenu", this.contextMenu.bind(this), !0);
883
+ let n = document.createElement("devtools-link");
884
+ n.setAttribute("href", this.url), n.classList.add("resource-image-unavailable", "hidden"), n.appendChild(se("open-externally")), n.appendChild(document.createTextNode(W(U.thisImageIsTooBig))), this.container.appendChild(n), this.imageUnavailableElement = n;
885
+ }
886
+ async toolbarItems() {
887
+ return await this.updateContentIfNeeded(), [
888
+ this.sizeLabel,
889
+ new y(),
890
+ this.dimensionsLabel,
891
+ new y(),
892
+ this.aspectRatioLabel,
893
+ new y(),
894
+ this.mimeTypeLabel
895
+ ];
896
+ }
897
+ wasShown() {
898
+ super.wasShown(), this.updateContentIfNeeded();
899
+ }
900
+ disposeView() {
901
+ this.uiSourceCode && this.uiSourceCode.removeEventListener(He.WorkingCopyCommitted, this.workingCopyCommitted, this);
902
+ }
903
+ workingCopyCommitted() {
904
+ this.updateContentIfNeeded();
905
+ }
906
+ async updateContentIfNeeded() {
907
+ let t = await this.contentProvider.requestContentData();
908
+ if (j.isError(t) || this.cachedContent?.contentEqualTo(t)) return;
909
+ this.cachedContent = t;
910
+ let r = t.asImagePreviewUrl();
911
+ if (r === null) {
912
+ this.imageUnavailableElement.classList.remove("hidden");
913
+ return;
914
+ }
915
+ this.imageUnavailableElement.classList.add("hidden");
916
+ let i = new Promise((e) => {
917
+ this.imagePreviewElement.onload = e;
918
+ });
919
+ this.imagePreviewElement.src = r, this.imagePreviewElement.alt = W(U.imageFromS, { PH1: this.url });
920
+ let o = t.isTextContent ? t.text.length : n(t.base64);
921
+ this.sizeLabel.setText(a(o)), await i, this.dimensionsLabel.setText(W(U.dD, {
922
+ PH1: this.imagePreviewElement.naturalWidth,
923
+ PH2: this.imagePreviewElement.naturalHeight
924
+ })), this.aspectRatioLabel.setText(e(this.imagePreviewElement.naturalWidth, this.imagePreviewElement.naturalHeight));
925
+ }
926
+ contextMenu(e) {
927
+ let t = new g(e), n = new o(this.imagePreviewElement.src);
928
+ this.parsedURL.isDataURL() || t.clipboardSection().appendItem(W(U.copyImageUrl), this.copyImageURL.bind(this), { jslogContext: "image-view.copy-image-url" }), n.isDataURL() && t.clipboardSection().appendItem(W(U.copyImageAsDataUri), this.copyImageAsDataURL.bind(this), { jslogContext: "image-view.copy-image-as-data-url" }), t.clipboardSection().appendItem(W(U.openImageInNewTab), this.openInNewTab.bind(this), { jslogContext: "image-view.open-in-new-tab" }), t.clipboardSection().appendItem(W(U.saveImageAs), this.saveImage.bind(this), { jslogContext: "image-view.save-image" }), t.show();
929
+ }
930
+ copyImageAsDataURL() {
931
+ p.copyText(this.imagePreviewElement.src);
932
+ }
933
+ copyImageURL() {
934
+ p.copyText(this.url);
935
+ }
936
+ async saveImage() {
937
+ if (!this.cachedContent) return;
938
+ let e = "";
939
+ if (this.parsedURL.isDataURL()) {
940
+ e = W(U.download);
941
+ let { type: t, subtype: n } = this.parsedURL.extractDataUrlMimeType();
942
+ t === "image" && n && (e += "." + n);
943
+ } else e = decodeURIComponent(this.parsedURL.displayName);
944
+ let t = this.cachedContent.asBlob();
945
+ if (t) try {
946
+ let n = await (await window.showSaveFilePicker({ suggestedName: e })).createWritable();
947
+ await n.write(t), await n.close();
948
+ } catch (e) {
949
+ if (e.name === "AbortError") return;
950
+ throw e;
951
+ }
952
+ }
953
+ openInNewTab() {
954
+ p.openInNewTab(this.url);
955
+ }
956
+ async handleDrop(e) {
957
+ let t = e.items;
958
+ if (!t.length || t[0].kind !== "file") return;
959
+ let n = t[0].getAsFile();
960
+ if (!n) return;
961
+ let r = !n.name.endsWith(".svg");
962
+ ((e) => {
963
+ let t = new FileReader();
964
+ t.onloadend = () => {
965
+ let e;
966
+ try {
967
+ e = t.result;
968
+ } catch (t) {
969
+ e = null, console.error("Can't read file: " + t);
970
+ }
971
+ typeof e != "string" || !this.uiSourceCode || this.uiSourceCode.setContent(r ? btoa(e) : e, r);
972
+ }, r ? t.readAsBinaryString(e) : t.readAsText(e);
973
+ })(n);
974
+ }
975
+ }, Bt = "/*\n * Copyright 2021 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.json-view {\n padding: 2px 6px;\n overflow: auto;\n}\n", G = { find: "Find" }, Vt = u("ui/legacy/components/source_frame/JSONView.ts", G), K = c.bind(void 0, Vt), q = class e extends _ {
976
+ initialized;
977
+ parsedJSON;
978
+ startCollapsed;
979
+ searchableView;
980
+ treeOutline;
981
+ currentSearchFocusIndex;
982
+ currentSearchTreeElements;
983
+ searchRegex;
984
+ constructor(e, t) {
985
+ super(), this.initialized = !1, this.registerRequiredCSS(Bt), this.parsedJSON = e, this.startCollapsed = !!t, this.element.classList.add("json-view"), this.element.setAttribute("jslog", `${ye("json-view")}`), this.currentSearchFocusIndex = 0, this.currentSearchTreeElements = [], this.searchRegex = null;
986
+ }
987
+ static async createView(t) {
988
+ let n = await e.parseJSON(t);
989
+ if (!n || typeof n.data != "object") return null;
990
+ let r = new e(n), i = new h(r, null);
991
+ return i.setPlaceholder(K(G.find)), r.searchableView = i, r.show(i.element), i;
992
+ }
993
+ static createViewSync(t, n) {
994
+ let r = new e(new J(t, "", "")), i = new h(r, null, void 0, n);
995
+ return i.setPlaceholder(K(G.find)), r.searchableView = i, r.show(i.element), r.element.tabIndex = 0, i;
996
+ }
997
+ setSearchableView(e) {
998
+ this.searchableView = e;
999
+ }
1000
+ static parseJSON(t) {
1001
+ let n = null;
1002
+ if (t && (n = e.extractJSON(t)), !n) return Promise.resolve(null);
1003
+ try {
1004
+ let e = JSON.parse(n.data);
1005
+ if (!e) return Promise.resolve(null);
1006
+ n.data = e;
1007
+ } catch {
1008
+ n = null;
1009
+ }
1010
+ return Promise.resolve(n);
1011
+ }
1012
+ static extractJSON(t) {
1013
+ if (t.startsWith("<")) return null;
1014
+ let n = e.findBrackets(t, "{", "}"), r = e.findBrackets(t, "[", "]");
1015
+ if (n = r.length > n.length ? r : n, n.length === -1 || t.length - n.length > 80) return null;
1016
+ let i = t.substring(0, n.start), a = t.substring(n.end + 1);
1017
+ return t = t.substring(n.start, n.end + 1), a.trim().length && !(a.trim().startsWith(")") && i.trim().endsWith("(")) ? null : new J(t, i, a);
1018
+ }
1019
+ static findBrackets(e, t, n) {
1020
+ let r = e.indexOf(t), i = e.lastIndexOf(n), a = i - r - 1;
1021
+ return (r === -1 || i === -1 || i < r) && (a = -1), {
1022
+ start: r,
1023
+ end: i,
1024
+ length: a
1025
+ };
1026
+ }
1027
+ wasShown() {
1028
+ super.wasShown(), this.initialize();
1029
+ }
1030
+ initialize() {
1031
+ if (this.initialized) return;
1032
+ this.initialized = !0;
1033
+ let e = fe.fromLocalObject(this.parsedJSON.data), t = this.parsedJSON.prefix + e.description + this.parsedJSON.suffix;
1034
+ this.treeOutline = new Ke(e, t, void 0, !0, !1), this.treeOutline.enableContextMenu(), this.startCollapsed || this.treeOutline.expand(), this.element.appendChild(this.treeOutline.element);
1035
+ let n = this.treeOutline.firstChild();
1036
+ n && n.select(!0, !1);
1037
+ }
1038
+ jumpToMatch(e) {
1039
+ if (!this.searchRegex) return;
1040
+ let t = this.currentSearchTreeElements[this.currentSearchFocusIndex];
1041
+ t && t.setSearchRegex(this.searchRegex);
1042
+ let n = this.currentSearchTreeElements[e];
1043
+ n ? (this.updateSearchIndex(e), n.setSearchRegex(this.searchRegex, me), n.reveal()) : this.updateSearchIndex(0);
1044
+ }
1045
+ updateSearchCount(e) {
1046
+ this.searchableView && this.searchableView.updateSearchMatchesCount(e);
1047
+ }
1048
+ updateSearchIndex(e) {
1049
+ this.currentSearchFocusIndex = e, this.searchableView && this.searchableView.updateCurrentMatchIndex(e);
1050
+ }
1051
+ onSearchCanceled() {
1052
+ this.searchRegex = null, this.currentSearchTreeElements = [];
1053
+ let e;
1054
+ for (e = this.treeOutline.rootElement(); e; e = e.traverseNextTreeElement(!1)) e instanceof Ge && e.revertHighlightChanges();
1055
+ this.updateSearchCount(0), this.updateSearchIndex(0);
1056
+ }
1057
+ performSearch(e, n, r) {
1058
+ let i = this.currentSearchFocusIndex, a = this.currentSearchTreeElements[i];
1059
+ this.onSearchCanceled(), this.searchRegex = e.toSearchRegex(!0).regex;
1060
+ let o;
1061
+ for (o = this.treeOutline.rootElement(); o; o = o.traverseNextTreeElement(!1)) {
1062
+ if (!(o instanceof Ge)) continue;
1063
+ let e = o.setSearchRegex(this.searchRegex);
1064
+ if (e && this.currentSearchTreeElements.push(o), a === o) {
1065
+ let t = this.currentSearchTreeElements.length - 1;
1066
+ i = e || r ? t : t + 1;
1067
+ }
1068
+ }
1069
+ if (this.updateSearchCount(this.currentSearchTreeElements.length), !this.currentSearchTreeElements.length) {
1070
+ this.updateSearchIndex(-1);
1071
+ return;
1072
+ }
1073
+ i = t(i, this.currentSearchTreeElements.length), this.jumpToMatch(i);
1074
+ }
1075
+ jumpToNextSearchResult() {
1076
+ if (!this.currentSearchTreeElements.length) return;
1077
+ let e = t(this.currentSearchFocusIndex + 1, this.currentSearchTreeElements.length);
1078
+ this.jumpToMatch(e);
1079
+ }
1080
+ jumpToPreviousSearchResult() {
1081
+ if (!this.currentSearchTreeElements.length) return;
1082
+ let e = t(this.currentSearchFocusIndex - 1, this.currentSearchTreeElements.length);
1083
+ this.jumpToMatch(e);
1084
+ }
1085
+ supportsCaseSensitiveSearch() {
1086
+ return !0;
1087
+ }
1088
+ supportsWholeWordSearch() {
1089
+ return !0;
1090
+ }
1091
+ supportsRegexSearch() {
1092
+ return !0;
1093
+ }
1094
+ }, J = class {
1095
+ data;
1096
+ prefix;
1097
+ suffix;
1098
+ constructor(e, t, n) {
1099
+ this.data = e, this.prefix = t, this.suffix = n;
1100
+ }
1101
+ }, Ht = class extends h {
1102
+ #e;
1103
+ constructor(e) {
1104
+ let t = new q(new J("", "", ""));
1105
+ super(t, null, void 0, e), this.#e = t, this.setPlaceholder(K(G.find)), t.setSearchableView(this), t.show(this.element), t.element.tabIndex = 0;
1106
+ }
1107
+ set jsonObject(e) {
1108
+ let t = new q(new J(e, "", ""));
1109
+ this.#e.detach(), this.#e = t, this.searchProvider = t, t.show(this.element), this.requestUpdate();
1110
+ }
1111
+ }, Ut = "/*\n * Copyright 2016 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n.tree-outline ol {\n list-style: none;\n padding: 0;\n margin: 0;\n padding-inline-start: 16px;\n}\n\nol.tree-outline {\n padding-inline-start: 0;\n}\n\n.tree-outline li {\n min-height: 12px;\n}\n\n::part(shadow-xml-view-close-tag) {\n margin-left: -16px;\n}\n\n::part(shadow-xml-view-close-tag),::part(shadow-xml-view-tag) {\n color: var(--sys-color-purple);\n}\n\n::part(shadow-xml-view-comment) {\n color: var(--sys-color-green);\n}\n\n::part(shadow-xml-view-processing-instruction) {\n color: var(--sys-color-green);\n}\n\n::part(shadow-xml-view-attribute-name) {\n color: var(--sys-color-orange);\n}\n\n::part(shadow-xml-view-attribute-value) {\n color: var(--sys-color-blue);\n}\n\n::part(shadow-xml-view-text) {\n color: var(--sys-color-on-surface);\n white-space: pre;\n}\n\n::part(shadow-xml-view-cdata) {\n color: var(--sys-color-on-surface);\n}\n}\n", Wt = "/*\n * Copyright 2014 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.shadow-xml-view {\n user-select: text;\n overflow: auto;\n padding: 0;\n}\n", Gt = { find: "Find" }, Kt = u("ui/legacy/components/source_frame/XMLView.ts", Gt), qt = c.bind(void 0, Kt), { render: Jt, html: Y } = ce, { ifExpanded: Yt } = ge;
1112
+ function* X(e) {
1113
+ for (let t = 0; t < e.attributes.length; ++t) {
1114
+ let n = e.attributes.item(t);
1115
+ n && (yield n);
1116
+ }
1117
+ }
1118
+ function Z(e) {
1119
+ return !!e.childNodes.values().find((e) => e.nodeType !== Node.TEXT_NODE);
1120
+ }
1121
+ function Xt(e, t) {
1122
+ let { node: n } = e;
1123
+ switch (n.nodeType) {
1124
+ case Node.ELEMENT_NODE:
1125
+ if (n instanceof Element) {
1126
+ let e = n.tagName;
1127
+ return t ? Z(n) || n.textContent ? "</" + e + ">" : "" : `${"<" + e}${X(n).map((e) => ` ${e.name}="${e.value}"`).toArray().join("")}${Z(n) ? "" : n.textContent ? `>${n.textContent}${"</" + e}` : " /"}>`;
1128
+ }
1129
+ return "";
1130
+ case Node.TEXT_NODE: return n.nodeValue && !t ? `${n.nodeValue}` : "";
1131
+ case Node.CDATA_SECTION_NODE: return n.nodeValue && !t ? `<![CDATA[${n.nodeValue}]]>` : "";
1132
+ case Node.PROCESSING_INSTRUCTION_NODE: return n.nodeValue && !t ? `${"<?" + n.nodeName + " " + n.nodeValue + "?>"}` : "";
1133
+ case Node.COMMENT_NODE: return t ? "" : `${"<!--" + n.nodeValue + "-->"}`;
1134
+ }
1135
+ return "";
1136
+ }
1137
+ function Zt(e) {
1138
+ let { node: t } = e;
1139
+ switch (t.nodeType) {
1140
+ case Node.ELEMENT_NODE:
1141
+ if (t instanceof Element) {
1142
+ let n = t.tagName;
1143
+ return Y`<span part='shadow-xml-view-tag'>${"<" + n}</span>${X(t).map((e) => Y`<span part='shadow-xml-view-tag'>${"\xA0"}</span>
1144
+ <span part='shadow-xml-view-attribute-name'>${e.name}</span>
1145
+ <span part='shadow-xml-view-tag'>${"=\""}</span>
1146
+ <span part='shadow-xml-view-attribute-value'>${e.value}</span>
1147
+ <span part='shadow-xml-view-tag'>${"\""}</span>`)}
1148
+ <span ?hidden=${e.expanded}>${Z(t) ? Y`<span part='shadow-xml-view-tag'>${">"}</span>
1149
+ <span part='shadow-xml-view-comment'>${"…"}</span>
1150
+ <span part='shadow-xml-view-tag'>${"</" + n}</span>` : t.textContent ? Y`<span part='shadow-xml-view-tag'>${">"}</span>
1151
+ <span part='shadow-xml-view-text'>${t.textContent}</span>
1152
+ <span part='shadow-xml-view-tag'>${"</" + n}</span>` : Y`<span part='shadow-xml-view-tag'>${" /"}</span>`}</span>
1153
+ <span part='shadow-xml-view-tag'>${">"}</span>`;
1154
+ }
1155
+ return m;
1156
+ case Node.TEXT_NODE: return t.nodeValue ? Y`<span part='shadow-xml-view-text'>${t.nodeValue}</span>` : m;
1157
+ case Node.CDATA_SECTION_NODE: return t.nodeValue ? Y`<span part='shadow-xml-view-cdata'>${"<![CDATA["}</span>
1158
+ <span part='shadow-xml-view-text'>${t.nodeValue}</span>
1159
+ <span part='shadow-xml-view-cdata'>${"]]>"}</span>` : m;
1160
+ case Node.PROCESSING_INSTRUCTION_NODE: return t.nodeValue ? Y`<span part='shadow-xml-view-processing-instruction'>${"<?" + t.nodeName + " " + t.nodeValue + "?>"}</span>` : m;
1161
+ case Node.COMMENT_NODE: return Y`<span part='shadow-xml-view-comment'>${"<!--" + t.nodeValue + "-->"}</span>`;
1162
+ }
1163
+ return m;
1164
+ }
1165
+ var Qt = (e, t, n) => {
1166
+ function r(t, n) {
1167
+ let r = "", i = "";
1168
+ if (!e.search) return {
1169
+ highlights: r,
1170
+ selected: i
1171
+ };
1172
+ let a = e.search.getResults(t);
1173
+ for (let t of a ?? []) if (t.isPostOrderMatch === n) {
1174
+ let n = new Be(t.match.index, t.match[0].length);
1175
+ t === e.jumpToNextSearchResult ? i = `${n.offset},${n.length}` : r += `${n.offset},${n.length} `;
1176
+ }
1177
+ return {
1178
+ highlights: r,
1179
+ selected: i
1180
+ };
1181
+ }
1182
+ function i(t) {
1183
+ let n = (n) => e.onExpand(t, n.detail.expanded), { highlights: i, selected: o } = r(t, !1), s = (t) => {
1184
+ if (t === e.jumpToNextSearchResult?.node) return !0;
1185
+ for (let e of t.children()) if (s(e)) return !0;
1186
+ return !1;
1187
+ };
1188
+ return Y`
1189
+ <li role="treeitem"
1190
+ ?selected=${e.jumpToNextSearchResult?.node === t}
1191
+ @expand=${n}
1192
+ ?open=${s(t)}>
1193
+ <devtools-highlight ranges=${i} current-range=${o}>
1194
+ ${Zt(t)}
1195
+ </devtools-highlight>
1196
+ ${t.children().length ? Y`
1197
+ <ul role="group">
1198
+ ${Yt(a(t))}
1199
+ </ul>` : m}
1200
+ </li>`;
1201
+ }
1202
+ function a(e) {
1203
+ let t = e.children();
1204
+ if (t.length === 0) return m;
1205
+ let { highlights: n, selected: a } = r(e, !0);
1206
+ return Y`
1207
+ ${t.map((e) => i(e))}
1208
+ ${e.node instanceof Element ? Y`
1209
+ <li role="treeitem">
1210
+ <devtools-highlight ranges=${n} current-range=${a}>
1211
+ <span part='shadow-xml-view-close-tag'>${"</" + e.node.tagName + ">"}</span>
1212
+ </devtools-highlight>
1213
+ </li>` : m}`;
1214
+ }
1215
+ Jt(Y`
1216
+ <style>${Wt}</style>
1217
+ <style>${Ut}</style>
1218
+ <devtools-tree
1219
+ class="shadow-xml-view source-code"
1220
+ .template=${Y`
1221
+ <ul role="tree">
1222
+ ${e.xml.children().map((e) => i(e))}
1223
+ </ul>`}
1224
+ ></devtools-tree>`, n, { container: {
1225
+ classes: ["shadow-xml-view", "source-code"],
1226
+ attributes: { jslog: `${b("xml-view")}` }
1227
+ } });
1228
+ };
1229
+ function* $t(e) {
1230
+ if (!e || !Z(e)) return;
1231
+ let t = e?.firstChild;
1232
+ for (; t;) {
1233
+ let e = t;
1234
+ t = t.nextSibling;
1235
+ let n = e.nodeType;
1236
+ n === Node.TEXT_NODE && e.nodeValue?.match(/\s+/) || n !== Node.ELEMENT_NODE && n !== Node.TEXT_NODE && n !== Node.CDATA_SECTION_NODE && n !== Node.PROCESSING_INSTRUCTION_NODE && n !== Node.COMMENT_NODE || (yield e);
1237
+ }
1238
+ }
1239
+ var en = class e {
1240
+ node;
1241
+ expanded = !1;
1242
+ #e;
1243
+ constructor(e) {
1244
+ this.node = e;
1245
+ }
1246
+ children() {
1247
+ return this.#e ||= $t(this.node).map((t) => new e(t)).toArray(), this.#e;
1248
+ }
1249
+ match(e, t) {
1250
+ return Xt(this, t).matchAll(e);
1251
+ }
1252
+ }, tn = class {
1253
+ xmlDocument;
1254
+ root;
1255
+ constructor(e) {
1256
+ this.xmlDocument = e, this.root = new en(e), this.root.expanded = !0;
1257
+ }
1258
+ }, nn = class e extends ve {
1259
+ searchableView = null;
1260
+ #e;
1261
+ #t;
1262
+ #n;
1263
+ #r;
1264
+ constructor(e, t = Qt) {
1265
+ super(e), this.#n = t;
1266
+ }
1267
+ set parsedXML(e) {
1268
+ this.#t?.xmlDocument !== e && (this.#t = new tn(e), this.requestUpdate());
1269
+ }
1270
+ performUpdate() {
1271
+ this.#t && this.#n({
1272
+ xml: this.#t.root,
1273
+ onExpand: (e, t) => {
1274
+ e.expanded = t, this.requestUpdate();
1275
+ },
1276
+ search: this.#e,
1277
+ jumpToNextSearchResult: this.#r
1278
+ }, {}, this.contentElement);
1279
+ }
1280
+ static createSearchableView(t) {
1281
+ let n = new e();
1282
+ n.parsedXML = t;
1283
+ let r = new h(n, null);
1284
+ return r.setPlaceholder(qt(Gt.find)), n.searchableView = r, n.show(r.element), r;
1285
+ }
1286
+ static parseXML(e, t) {
1287
+ let n;
1288
+ try {
1289
+ switch (t) {
1290
+ case "application/xhtml+xml":
1291
+ case "application/xml":
1292
+ case "image/svg+xml":
1293
+ case "text/html":
1294
+ case "text/xml": n = new DOMParser().parseFromString(e, t);
1295
+ }
1296
+ } catch {
1297
+ return null;
1298
+ }
1299
+ return !n || n.body ? null : n;
1300
+ }
1301
+ onSearchCanceled() {
1302
+ this.#e = void 0, this.searchableView?.updateSearchMatchesCount(0), this.searchableView?.updateCurrentMatchIndex(0);
1303
+ }
1304
+ performSearch(e, t, n) {
1305
+ if (!this.#t || !this.searchableView) return;
1306
+ let { regex: r } = e.toSearchRegex(!0);
1307
+ this.#e ||= new xe(), this.#e.search(this.#t.root, n ?? !1, (e, t) => e.match(r, t).map((n, r) => ({
1308
+ node: e,
1309
+ matchIndexInNode: r,
1310
+ isPostOrderMatch: t,
1311
+ match: n
1312
+ })).toArray()), this.#r = t ? this.#e.currentMatch() : void 0, this.#e.updateSearchableView(this.searchableView), this.requestUpdate();
1313
+ }
1314
+ jumpToNextSearchResult() {
1315
+ this.#r = this.#e?.next(), this.searchableView && this.#e?.updateSearchableView(this.searchableView), this.requestUpdate();
1316
+ }
1317
+ jumpToPreviousSearchResult() {
1318
+ this.#r = this.#e?.prev(), this.searchableView && this.#e?.updateSearchableView(this.searchableView), this.requestUpdate();
1319
+ }
1320
+ supportsCaseSensitiveSearch() {
1321
+ return !0;
1322
+ }
1323
+ supportsWholeWordSearch() {
1324
+ return !0;
1325
+ }
1326
+ supportsRegexSearch() {
1327
+ return !0;
1328
+ }
1329
+ }, Q = {
1330
+ failedToLoadData: "Failed to load data",
1331
+ nothingToPreview: "Nothing to preview"
1332
+ }, rn = u("ui/legacy/components/source_frame/PreviewFactory.ts", Q), $ = c.bind(void 0, rn), an = class {
1333
+ static async createPreview(e, t) {
1334
+ let n = s.fromMimeType(t);
1335
+ switch (n === i.Other && (n = e.contentType()), n) {
1336
+ case i.Image: return new zt(t, e);
1337
+ case i.Font: return new Ft(t, e);
1338
+ }
1339
+ let r = await e.requestContentData();
1340
+ if (j.isError(r)) return new oe($(Q.failedToLoadData), r.error);
1341
+ if (!r.isTextContent) return null;
1342
+ if (!r.text) return new oe($(Q.nothingToPreview), "");
1343
+ let a = nn.parseXML(r.text, r.mimeType);
1344
+ if (a) return nn.createSearchableView(a);
1345
+ let o = await q.createView(r.text);
1346
+ if (o) return o;
1347
+ let c = t.replace(/;.*/, "") || e.contentType().canonicalMimeType();
1348
+ return B.createSearchableView(e, c);
1349
+ }
1350
+ };
1351
+ //#endregion
1352
+ export { zt as a, B as c, ct as d, lt as f, bt as g, gt as h, Ht as i, Tt as l, yt as m, q as n, Ft as o, ht as p, J as r, Ot as s, an as t, st as u };