@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,2142 @@
1
+ import { n as e } from "../../chunks/chunk-DF993M8W.js";
2
+ import { Et as t, _t as n, c as r, ft as i, o as a, rt as o, s, v as c, xt as l } from "../../chunks/platform-BzB373NB.js";
3
+ import { Tt as u } from "../../chunks/common-qd_KLeYO.js";
4
+ import { s as d } from "../../chunks/text_utils-ohNt_gua.js";
5
+ import { _ as f, a as p, c as m, d as h, f as g, g as _, i as v, l as y, m as b, r as x, s as S, t as C, u as w, v as T, y as E } from "../../chunks/heap_snapshot-CZt2KUPL.js";
6
+ //#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts
7
+ var D = /* @__PURE__ */ e({
8
+ AllocationProfile: () => O,
9
+ BottomUpAllocationNode: () => A,
10
+ FunctionAllocationInfo: () => j,
11
+ TopDownAllocationNode: () => k
12
+ }), O = class {
13
+ #e;
14
+ #t = 1;
15
+ #n = [];
16
+ #r = {};
17
+ #i = {};
18
+ #a = {};
19
+ #o = null;
20
+ constructor(e, t) {
21
+ this.#e = e.strings, this.#s(e), this.#c(e, t);
22
+ }
23
+ #s(e) {
24
+ let t = this.#e, n = e.snapshot.meta.trace_function_info_fields, r = n.indexOf("name"), i = n.indexOf("script_name"), a = n.indexOf("script_id"), o = n.indexOf("line"), s = n.indexOf("column"), c = n.length, l = e.trace_function_infos, u = l.length, d = this.#n = Array(u / c), f = 0;
25
+ for (let e = 0; e < u; e += c) d[f++] = new j(t[l[e + r]], t[l[e + i]], l[e + a], l[e + o], l[e + s]);
26
+ }
27
+ #c(e, t) {
28
+ let n = e.trace_tree, r = this.#n, i = this.#i, a = e.snapshot.meta.trace_node_fields, o = a.indexOf("id"), s = a.indexOf("function_info_index"), c = a.indexOf("count"), l = a.indexOf("size"), u = a.indexOf("children"), d = a.length;
29
+ function f(e, n, a) {
30
+ let p = r[e[n + s]], m = e[n + o], h = t[m], g = h ? h.count : 0, _ = h ? h.size : 0, v = new k(m, p, e[n + c], e[n + l], g, _, a);
31
+ i[m] = v, p.addTraceTopNode(v);
32
+ let y = e[n + u];
33
+ for (let e = 0; e < y.length; e += d) v.children.push(f(y, e, v));
34
+ return v;
35
+ }
36
+ return f(n, 0, null);
37
+ }
38
+ serializeTraceTops() {
39
+ if (this.#o) return this.#o;
40
+ let e = this.#o = [], t = this.#n;
41
+ for (let n = 0; n < t.length; n++) {
42
+ let r = t[n];
43
+ if (r.totalCount === 0) continue;
44
+ let i = this.#t++, a = n === 0;
45
+ e.push(this.#d(i, r, r.totalCount, r.totalSize, r.totalLiveCount, r.totalLiveSize, !a)), this.#a[i] = r;
46
+ }
47
+ return e.sort(function(e, t) {
48
+ return t.size - e.size;
49
+ }), e;
50
+ }
51
+ serializeCallers(e) {
52
+ let t = this.#l(e), n = [];
53
+ for (; t.callers().length === 1;) t = t.callers()[0], n.push(this.#u(t));
54
+ let r = [], i = t.callers();
55
+ for (let e = 0; e < i.length; e++) r.push(this.#u(i[e]));
56
+ return new v(n, r);
57
+ }
58
+ serializeAllocationStack(e) {
59
+ let t = this.#i[e], n = [];
60
+ for (; t;) {
61
+ let e = t.functionInfo;
62
+ n.push(new p(e.functionName, e.scriptName, e.scriptId, e.line, e.column)), t = t.parent;
63
+ }
64
+ return n;
65
+ }
66
+ traceIds(e) {
67
+ return this.#l(e).traceTopIds;
68
+ }
69
+ #l(e) {
70
+ let t = this.#r[e];
71
+ return t || (t = this.#a[e].bottomUpRoot(), delete this.#a[e], this.#r[e] = t), t;
72
+ }
73
+ #u(e) {
74
+ let t = this.#t++;
75
+ return this.#r[t] = e, this.#d(t, e.functionInfo, e.allocationCount, e.allocationSize, e.liveCount, e.liveSize, e.hasCallers());
76
+ }
77
+ #d(e, t, n, r, i, a, o) {
78
+ return new _(e, t.functionName, t.scriptName, t.scriptId, t.line, t.column, n, r, i, a, o);
79
+ }
80
+ }, k = class {
81
+ id;
82
+ functionInfo;
83
+ allocationCount;
84
+ allocationSize;
85
+ liveCount;
86
+ liveSize;
87
+ parent;
88
+ children = [];
89
+ constructor(e, t, n, r, i, a, o) {
90
+ this.id = e, this.functionInfo = t, this.allocationCount = n, this.allocationSize = r, this.liveCount = i, this.liveSize = a, this.parent = o;
91
+ }
92
+ }, A = class e {
93
+ functionInfo;
94
+ allocationCount = 0;
95
+ allocationSize = 0;
96
+ liveCount = 0;
97
+ liveSize = 0;
98
+ traceTopIds = [];
99
+ #e = [];
100
+ constructor(e) {
101
+ this.functionInfo = e;
102
+ }
103
+ addCaller(t) {
104
+ let n = t.functionInfo, r;
105
+ for (let e = 0; e < this.#e.length; e++) {
106
+ let t = this.#e[e];
107
+ if (t.functionInfo === n) {
108
+ r = t;
109
+ break;
110
+ }
111
+ }
112
+ return r || (r = new e(n), this.#e.push(r)), r;
113
+ }
114
+ callers() {
115
+ return this.#e;
116
+ }
117
+ hasCallers() {
118
+ return this.#e.length > 0;
119
+ }
120
+ }, j = class {
121
+ functionName;
122
+ scriptName;
123
+ scriptId;
124
+ line;
125
+ column;
126
+ totalCount = 0;
127
+ totalSize = 0;
128
+ totalLiveCount = 0;
129
+ totalLiveSize = 0;
130
+ #e = [];
131
+ #t;
132
+ constructor(e, t, n, r, i) {
133
+ this.functionName = e, this.scriptName = t, this.scriptId = n, this.line = r, this.column = i;
134
+ }
135
+ addTraceTopNode(e) {
136
+ e.allocationCount !== 0 && (this.#e.push(e), this.totalCount += e.allocationCount, this.totalSize += e.allocationSize, this.totalLiveCount += e.liveCount, this.totalLiveSize += e.liveSize);
137
+ }
138
+ bottomUpRoot() {
139
+ return this.#e.length ? (this.#t || this.#n(), this.#t ?? null) : null;
140
+ }
141
+ #n() {
142
+ this.#t = new A(this);
143
+ for (let e = 0; e < this.#e.length; e++) {
144
+ let t = this.#e[e], n = this.#t, r = t.allocationCount, i = t.allocationSize, a = t.liveCount, o = t.liveSize, s = t.id;
145
+ for (; n.allocationCount += r, n.allocationSize += i, n.liveCount += a, n.liveSize += o, n.traceTopIds.push(s), t = t.parent, t !== null;) n = n.addCaller(t);
146
+ }
147
+ }
148
+ }, M = /* @__PURE__ */ e({
149
+ HeapSnapshot: () => q,
150
+ HeapSnapshotEdge: () => N,
151
+ HeapSnapshotEdgeIndexProvider: () => P,
152
+ HeapSnapshotEdgeIterator: () => F,
153
+ HeapSnapshotEdgesProvider: () => Y,
154
+ HeapSnapshotFilteredIterator: () => ne,
155
+ HeapSnapshotIndexRangeIterator: () => B,
156
+ HeapSnapshotItemProvider: () => J,
157
+ HeapSnapshotNode: () => R,
158
+ HeapSnapshotNodeIndexProvider: () => ee,
159
+ HeapSnapshotNodeIterator: () => z,
160
+ HeapSnapshotNodesProvider: () => X,
161
+ HeapSnapshotProgress: () => V,
162
+ HeapSnapshotRetainerEdge: () => I,
163
+ HeapSnapshotRetainerEdgeIndexProvider: () => te,
164
+ HeapSnapshotRetainerEdgeIterator: () => L,
165
+ JSHeapSnapshot: () => Z,
166
+ JSHeapSnapshotEdge: () => le,
167
+ JSHeapSnapshotNode: () => Q,
168
+ JSHeapSnapshotRetainerEdge: () => $,
169
+ SecondaryInitManager: () => W,
170
+ createJSHeapSnapshotForTesting: () => ce
171
+ }), N = class e {
172
+ snapshot;
173
+ edges;
174
+ edgeIndex;
175
+ constructor(e, t) {
176
+ this.snapshot = e, this.edges = e.containmentEdges, this.edgeIndex = t || 0;
177
+ }
178
+ clone() {
179
+ return new e(this.snapshot, this.edgeIndex);
180
+ }
181
+ hasStringName() {
182
+ throw Error("Not implemented");
183
+ }
184
+ name() {
185
+ throw Error("Not implemented");
186
+ }
187
+ node() {
188
+ return this.snapshot.createNode(this.nodeIndex());
189
+ }
190
+ nodeIndex() {
191
+ if (this.snapshot.edgeToNodeOffset === void 0) throw Error("edgeToNodeOffset is undefined");
192
+ return this.edges.getValue(this.edgeIndex + this.snapshot.edgeToNodeOffset);
193
+ }
194
+ toString() {
195
+ return "HeapSnapshotEdge: " + this.name();
196
+ }
197
+ type() {
198
+ return this.snapshot.edgeTypes[this.rawType()];
199
+ }
200
+ itemIndex() {
201
+ return this.edgeIndex;
202
+ }
203
+ serialize() {
204
+ return new m(this.name(), this.node().serialize(), this.type(), this.edgeIndex);
205
+ }
206
+ rawType() {
207
+ if (this.snapshot.edgeTypeOffset === void 0) throw Error("edgeTypeOffset is undefined");
208
+ return this.edges.getValue(this.edgeIndex + this.snapshot.edgeTypeOffset);
209
+ }
210
+ isInternal() {
211
+ throw Error("Not implemented");
212
+ }
213
+ isInvisible() {
214
+ throw Error("Not implemented");
215
+ }
216
+ isWeak() {
217
+ throw Error("Not implemented");
218
+ }
219
+ getValueForSorting(e) {
220
+ throw Error("Not implemented");
221
+ }
222
+ nameIndex() {
223
+ throw Error("Not implemented");
224
+ }
225
+ }, ee = class {
226
+ #e;
227
+ constructor(e) {
228
+ this.#e = e.createNode();
229
+ }
230
+ itemForIndex(e) {
231
+ return this.#e.nodeIndex = e, this.#e;
232
+ }
233
+ }, P = class {
234
+ #e;
235
+ constructor(e) {
236
+ this.#e = e.createEdge(0);
237
+ }
238
+ itemForIndex(e) {
239
+ return this.#e.edgeIndex = e, this.#e;
240
+ }
241
+ }, te = class {
242
+ #e;
243
+ constructor(e) {
244
+ this.#e = e.createRetainingEdge(0);
245
+ }
246
+ itemForIndex(e) {
247
+ return this.#e.setRetainerIndex(e), this.#e;
248
+ }
249
+ }, F = class {
250
+ #e;
251
+ edge;
252
+ constructor(e) {
253
+ this.#e = e, this.edge = e.snapshot.createEdge(e.edgeIndexesStart());
254
+ }
255
+ hasNext() {
256
+ return this.edge.edgeIndex < this.#e.edgeIndexesEnd();
257
+ }
258
+ item() {
259
+ return this.edge;
260
+ }
261
+ next() {
262
+ if (this.edge.snapshot.edgeFieldsCount === void 0) throw Error("edgeFieldsCount is undefined");
263
+ this.edge.edgeIndex += this.edge.snapshot.edgeFieldsCount;
264
+ }
265
+ }, I = class e {
266
+ snapshot;
267
+ #e;
268
+ #t;
269
+ #n;
270
+ #r;
271
+ #i;
272
+ constructor(e, t) {
273
+ this.snapshot = e, this.setRetainerIndex(t);
274
+ }
275
+ clone() {
276
+ return new e(this.snapshot, this.retainerIndex());
277
+ }
278
+ hasStringName() {
279
+ return this.edge().hasStringName();
280
+ }
281
+ name() {
282
+ return this.edge().name();
283
+ }
284
+ nameIndex() {
285
+ return this.edge().nameIndex();
286
+ }
287
+ node() {
288
+ return this.#a();
289
+ }
290
+ nodeIndex() {
291
+ if (this.#n === void 0) throw Error("retainingNodeIndex is undefined");
292
+ return this.#n;
293
+ }
294
+ retainerIndex() {
295
+ return this.#e;
296
+ }
297
+ setRetainerIndex(e) {
298
+ if (e !== this.#e) {
299
+ if (!this.snapshot.retainingEdges || !this.snapshot.retainingNodes) throw Error("Snapshot does not contain retaining edges or retaining nodes");
300
+ this.#e = e, this.#t = this.snapshot.retainingEdges[e], this.#n = this.snapshot.retainingNodes[e], this.#r = null, this.#i = null;
301
+ }
302
+ }
303
+ set edgeIndex(e) {
304
+ this.setRetainerIndex(e);
305
+ }
306
+ #a() {
307
+ return this.#i ||= this.snapshot.createNode(this.#n), this.#i;
308
+ }
309
+ edge() {
310
+ return this.#r ||= this.snapshot.createEdge(this.#t), this.#r;
311
+ }
312
+ toString() {
313
+ return this.edge().toString();
314
+ }
315
+ itemIndex() {
316
+ return this.#e;
317
+ }
318
+ serialize() {
319
+ let e = this.node(), t = e.serialize();
320
+ return t.distance = this.#o(), t.ignored = this.snapshot.isNodeIgnoredInRetainersView(e.nodeIndex), new m(this.name(), t, this.type(), this.#t);
321
+ }
322
+ type() {
323
+ return this.edge().type();
324
+ }
325
+ isInternal() {
326
+ return this.edge().isInternal();
327
+ }
328
+ getValueForSorting(e) {
329
+ if (e === "!edgeDistance") return this.#o();
330
+ throw Error("Invalid field name");
331
+ }
332
+ #o() {
333
+ return this.snapshot.isEdgeIgnoredInRetainersView(this.#t) ? E : this.node().distanceForRetainersView();
334
+ }
335
+ }, L = class {
336
+ #e;
337
+ retainer;
338
+ constructor(e) {
339
+ let t = e.snapshot, n = e.ordinal();
340
+ if (!t.firstRetainerIndex) throw Error("Snapshot does not contain firstRetainerIndex");
341
+ let r = t.firstRetainerIndex[n];
342
+ this.#e = t.firstRetainerIndex[n + 1], this.retainer = t.createRetainingEdge(r);
343
+ }
344
+ hasNext() {
345
+ return this.retainer.retainerIndex() < this.#e;
346
+ }
347
+ item() {
348
+ return this.retainer;
349
+ }
350
+ next() {
351
+ this.retainer.setRetainerIndex(this.retainer.retainerIndex() + 1);
352
+ }
353
+ }, R = class {
354
+ snapshot;
355
+ nodeIndex;
356
+ constructor(e, t) {
357
+ this.snapshot = e, this.nodeIndex = t || 0;
358
+ }
359
+ distance() {
360
+ return this.snapshot.nodeDistances[this.nodeIndex / this.snapshot.nodeFieldCount];
361
+ }
362
+ distanceForRetainersView() {
363
+ return this.snapshot.getDistanceForRetainersView(this.nodeIndex);
364
+ }
365
+ className() {
366
+ return this.snapshot.strings[this.classIndex()];
367
+ }
368
+ classIndex() {
369
+ return this.#e() >>> K;
370
+ }
371
+ classKeyInternal() {
372
+ if (this.rawType() !== this.snapshot.nodeObjectType) return this.classIndex();
373
+ let e = this.snapshot.getLocation(this.nodeIndex);
374
+ return e ? `${e.scriptId},${e.lineNumber},${e.columnNumber},${this.className()}` : this.classIndex();
375
+ }
376
+ setClassIndex(e) {
377
+ let t = this.#e();
378
+ if (t &= G, t |= e << K, this.#t(t), this.classIndex() !== e) throw Error("String index overflow");
379
+ }
380
+ dominatorIndex() {
381
+ let e = this.snapshot.nodeFieldCount;
382
+ return this.snapshot.dominatorsTree[this.nodeIndex / this.snapshot.nodeFieldCount] * e;
383
+ }
384
+ edges() {
385
+ return new F(this);
386
+ }
387
+ edgesCount() {
388
+ return (this.edgeIndexesEnd() - this.edgeIndexesStart()) / this.snapshot.edgeFieldsCount;
389
+ }
390
+ id() {
391
+ throw Error("Not implemented");
392
+ }
393
+ rawName() {
394
+ return this.snapshot.strings[this.rawNameIndex()];
395
+ }
396
+ isRoot() {
397
+ return this.nodeIndex === this.snapshot.rootNodeIndex;
398
+ }
399
+ isUserRoot() {
400
+ throw Error("Not implemented");
401
+ }
402
+ isHidden() {
403
+ throw Error("Not implemented");
404
+ }
405
+ isArray() {
406
+ throw Error("Not implemented");
407
+ }
408
+ isSynthetic() {
409
+ throw Error("Not implemented");
410
+ }
411
+ isDocumentDOMTreesRoot() {
412
+ throw Error("Not implemented");
413
+ }
414
+ name() {
415
+ return this.rawName();
416
+ }
417
+ retainedSize() {
418
+ return this.snapshot.retainedSizes[this.ordinal()];
419
+ }
420
+ retainers() {
421
+ return new L(this);
422
+ }
423
+ retainersCount() {
424
+ let e = this.snapshot, t = this.ordinal();
425
+ return e.firstRetainerIndex[t + 1] - e.firstRetainerIndex[t];
426
+ }
427
+ selfSize() {
428
+ let e = this.snapshot;
429
+ return e.nodes.getValue(this.nodeIndex + e.nodeSelfSizeOffset);
430
+ }
431
+ type() {
432
+ return this.snapshot.nodeTypes[this.rawType()];
433
+ }
434
+ traceNodeId() {
435
+ let e = this.snapshot;
436
+ return e.nodes.getValue(this.nodeIndex + e.nodeTraceNodeIdOffset);
437
+ }
438
+ itemIndex() {
439
+ return this.nodeIndex;
440
+ }
441
+ serialize() {
442
+ return new g(this.id(), this.name(), this.distance(), this.nodeIndex, this.retainedSize(), this.selfSize(), this.type());
443
+ }
444
+ rawNameIndex() {
445
+ let e = this.snapshot;
446
+ return e.nodes.getValue(this.nodeIndex + e.nodeNameOffset);
447
+ }
448
+ edgeIndexesStart() {
449
+ return this.snapshot.firstEdgeIndexes[this.ordinal()];
450
+ }
451
+ edgeIndexesEnd() {
452
+ return this.snapshot.firstEdgeIndexes[this.ordinal() + 1];
453
+ }
454
+ ordinal() {
455
+ return this.nodeIndex / this.snapshot.nodeFieldCount;
456
+ }
457
+ nextNodeIndex() {
458
+ return this.nodeIndex + this.snapshot.nodeFieldCount;
459
+ }
460
+ rawType() {
461
+ let e = this.snapshot;
462
+ return e.nodes.getValue(this.nodeIndex + e.nodeTypeOffset);
463
+ }
464
+ isFlatConsString() {
465
+ if (this.rawType() !== this.snapshot.nodeConsStringType) return !1;
466
+ for (let e = this.edges(); e.hasNext(); e.next()) {
467
+ let t = e.edge;
468
+ if (!t.isInternal()) continue;
469
+ let n = t.name();
470
+ if ((n === "first" || n === "second") && t.node().name() === "") return !0;
471
+ }
472
+ return !1;
473
+ }
474
+ #e() {
475
+ let { snapshot: e, nodeIndex: t } = this, n = e.nodeDetachednessAndClassIndexOffset;
476
+ return n === -1 ? e.detachednessAndClassIndexArray[t / e.nodeFieldCount] : e.nodes.getValue(t + n);
477
+ }
478
+ #t(e) {
479
+ let { snapshot: t, nodeIndex: n } = this, r = t.nodeDetachednessAndClassIndexOffset;
480
+ r === -1 ? t.detachednessAndClassIndexArray[n / t.nodeFieldCount] = e : t.nodes.setValue(n + r, e);
481
+ }
482
+ detachedness() {
483
+ return this.#e() & G;
484
+ }
485
+ setDetachedness(e) {
486
+ let t = this.#e();
487
+ t &= ~G, t |= e, this.#t(t);
488
+ }
489
+ }, z = class {
490
+ node;
491
+ #e;
492
+ constructor(e) {
493
+ this.node = e, this.#e = e.snapshot.nodes.length;
494
+ }
495
+ hasNext() {
496
+ return this.node.nodeIndex < this.#e;
497
+ }
498
+ item() {
499
+ return this.node;
500
+ }
501
+ next() {
502
+ this.node.nodeIndex = this.node.nextNodeIndex();
503
+ }
504
+ }, B = class {
505
+ #e;
506
+ #t;
507
+ #n;
508
+ constructor(e, t) {
509
+ this.#e = e, this.#t = t, this.#n = 0;
510
+ }
511
+ hasNext() {
512
+ return this.#n < this.#t.length;
513
+ }
514
+ item() {
515
+ let e = this.#t[this.#n];
516
+ return this.#e.itemForIndex(e);
517
+ }
518
+ next() {
519
+ ++this.#n;
520
+ }
521
+ }, ne = class {
522
+ #e;
523
+ #t;
524
+ constructor(e, t) {
525
+ this.#e = e, this.#t = t, this.skipFilteredItems();
526
+ }
527
+ hasNext() {
528
+ return this.#e.hasNext();
529
+ }
530
+ item() {
531
+ return this.#e.item();
532
+ }
533
+ next() {
534
+ this.#e.next(), this.skipFilteredItems();
535
+ }
536
+ skipFilteredItems() {
537
+ for (; this.#e.hasNext() && this.#t && !this.#t(this.#e.item());) this.#e.next();
538
+ }
539
+ }, V = class {
540
+ #e;
541
+ constructor(e) {
542
+ this.#e = e;
543
+ }
544
+ updateStatus(e) {
545
+ this.sendUpdateEvent(u(e));
546
+ }
547
+ updateProgress(e, t, n) {
548
+ let r = ((n ? t / n : 0) * 100).toFixed(0);
549
+ this.sendUpdateEvent(u(e, { PH1: r }));
550
+ }
551
+ reportProblem(e) {
552
+ this.#e && this.#e.sendEvent(y.BrokenSnapshot, e);
553
+ }
554
+ sendUpdateEvent(e) {
555
+ this.#e && this.#e.sendEvent(y.Update, e);
556
+ }
557
+ };
558
+ function H(e, t) {
559
+ e.length > 100 || e.push(t);
560
+ }
561
+ function re(e, t) {
562
+ let n = e.rootNode();
563
+ return t.map((e) => typeof e == "string" ? e : (n.nodeIndex = e, `${n.name()} @${n.id()}`)).join("\n ");
564
+ }
565
+ function U(e, t) {
566
+ t.postMessage({ problemReport: e });
567
+ }
568
+ var W = class {
569
+ argsStep1;
570
+ argsStep2;
571
+ argsStep3;
572
+ constructor(e) {
573
+ let { promise: t, resolve: n } = Promise.withResolvers();
574
+ this.argsStep1 = t;
575
+ let { promise: r, resolve: i } = Promise.withResolvers();
576
+ this.argsStep2 = r;
577
+ let { promise: a, resolve: o } = Promise.withResolvers();
578
+ this.argsStep3 = a;
579
+ let s = (t) => {
580
+ let r = t.data;
581
+ switch (r.step) {
582
+ case 1:
583
+ n(r.args);
584
+ break;
585
+ case 2:
586
+ i(r.args);
587
+ break;
588
+ case 3:
589
+ o(r.args), e.removeEventListener("message", s);
590
+ break;
591
+ }
592
+ };
593
+ e.addEventListener("message", s), e.start(), this.initialize(e);
594
+ }
595
+ async getNodeSelfSizes() {
596
+ return (await this.argsStep3).nodeSelfSizes;
597
+ }
598
+ async initialize(e) {
599
+ try {
600
+ let t = await this.argsStep1, n = q.buildRetainers(t), r = await this.argsStep2, i = {
601
+ ...r,
602
+ ...t,
603
+ ...n,
604
+ essentialEdges: a(r.essentialEdgesBuffer),
605
+ port: e,
606
+ nodeSelfSizesPromise: this.getNodeSelfSizes()
607
+ }, o = await q.calculateDominatorsAndRetainedSizes(i), s = q.buildDominatedNodes({
608
+ ...i,
609
+ ...o
610
+ }), c = {
611
+ ...n,
612
+ ...o,
613
+ ...s
614
+ };
615
+ e.postMessage({ resultsFromSecondWorker: c }, [
616
+ c.dominatorsTree.buffer,
617
+ c.retainedSizes.buffer,
618
+ c.firstRetainerIndex.buffer,
619
+ c.retainingNodes.buffer,
620
+ c.retainingEdges.buffer,
621
+ c.firstDominatedNodeIndex.buffer,
622
+ c.dominatedNodes.buffer
623
+ ]);
624
+ } catch (t) {
625
+ e.postMessage({ error: t + "\n" + t?.stack });
626
+ }
627
+ }
628
+ }, G = 3, K = 2, ie = 1, ae = 120, oe = 2, se = 1e3, q = class e {
629
+ nodes;
630
+ containmentEdges;
631
+ #e;
632
+ #t;
633
+ #n = null;
634
+ strings;
635
+ #r;
636
+ #i;
637
+ #a = -5;
638
+ rootNodeIndexInternal = 0;
639
+ #o = {};
640
+ #s;
641
+ #c = {};
642
+ #l = {};
643
+ profile;
644
+ nodeTypeOffset;
645
+ nodeNameOffset;
646
+ nodeIdOffset;
647
+ nodeSelfSizeOffset;
648
+ #u;
649
+ nodeTraceNodeIdOffset;
650
+ nodeFieldCount;
651
+ nodeTypes;
652
+ nodeArrayType;
653
+ nodeHiddenType;
654
+ nodeObjectType;
655
+ nodeNativeType;
656
+ nodeStringType;
657
+ nodeConsStringType;
658
+ nodeSlicedStringType;
659
+ nodeCodeType;
660
+ nodeSyntheticType;
661
+ nodeClosureType;
662
+ nodeRegExpType;
663
+ edgeFieldsCount;
664
+ edgeTypeOffset;
665
+ edgeNameOffset;
666
+ edgeToNodeOffset;
667
+ edgeTypes;
668
+ edgeElementType;
669
+ edgeHiddenType;
670
+ edgeInternalType;
671
+ edgeShortcutType;
672
+ edgeWeakType;
673
+ edgeInvisibleType;
674
+ edgePropertyType;
675
+ #d;
676
+ #f;
677
+ #p;
678
+ #m;
679
+ #h;
680
+ nodeCount;
681
+ #g;
682
+ retainedSizes;
683
+ firstEdgeIndexes;
684
+ retainingNodes;
685
+ retainingEdges;
686
+ firstRetainerIndex;
687
+ nodeDistances;
688
+ firstDominatedNodeIndex;
689
+ dominatedNodes;
690
+ dominatorsTree;
691
+ #_;
692
+ nodeDetachednessAndClassIndexOffset;
693
+ #v;
694
+ #y = /* @__PURE__ */ new Set();
695
+ #b = /* @__PURE__ */ new Set();
696
+ #x;
697
+ #S;
698
+ detachednessAndClassIndexArray;
699
+ #C = /* @__PURE__ */ new Map();
700
+ #w;
701
+ constructor(e, t) {
702
+ this.nodes = e.nodes, this.containmentEdges = e.edges, this.#e = e.snapshot.meta, this.#t = e.samples, this.strings = e.strings, this.#r = e.locations, this.#i = t, e.snapshot.root_index && (this.rootNodeIndexInternal = e.snapshot.root_index), this.profile = e, this.#S = a(this.strings.length);
703
+ }
704
+ async initialize(e) {
705
+ let t = this.#e;
706
+ this.nodeTypeOffset = t.node_fields.indexOf("type"), this.nodeNameOffset = t.node_fields.indexOf("name"), this.nodeIdOffset = t.node_fields.indexOf("id"), this.nodeSelfSizeOffset = t.node_fields.indexOf("self_size"), this.#u = t.node_fields.indexOf("edge_count"), this.nodeTraceNodeIdOffset = t.node_fields.indexOf("trace_node_id"), this.nodeDetachednessAndClassIndexOffset = t.node_fields.indexOf("detachedness"), this.nodeFieldCount = t.node_fields.length, this.nodeTypes = t.node_types[this.nodeTypeOffset], this.nodeArrayType = this.nodeTypes.indexOf("array"), this.nodeHiddenType = this.nodeTypes.indexOf("hidden"), this.nodeObjectType = this.nodeTypes.indexOf("object"), this.nodeNativeType = this.nodeTypes.indexOf("native"), this.nodeStringType = this.nodeTypes.indexOf("string"), this.nodeConsStringType = this.nodeTypes.indexOf("concatenated string"), this.nodeSlicedStringType = this.nodeTypes.indexOf("sliced string"), this.nodeCodeType = this.nodeTypes.indexOf("code"), this.nodeSyntheticType = this.nodeTypes.indexOf("synthetic"), this.nodeClosureType = this.nodeTypes.indexOf("closure"), this.nodeRegExpType = this.nodeTypes.indexOf("regexp"), this.edgeFieldsCount = t.edge_fields.length, this.edgeTypeOffset = t.edge_fields.indexOf("type"), this.edgeNameOffset = t.edge_fields.indexOf("name_or_index"), this.edgeToNodeOffset = t.edge_fields.indexOf("to_node"), this.edgeTypes = t.edge_types[this.edgeTypeOffset], this.edgeTypes.push("invisible"), this.edgeElementType = this.edgeTypes.indexOf("element"), this.edgeHiddenType = this.edgeTypes.indexOf("hidden"), this.edgeInternalType = this.edgeTypes.indexOf("internal"), this.edgeShortcutType = this.edgeTypes.indexOf("shortcut"), this.edgeWeakType = this.edgeTypes.indexOf("weak"), this.edgeInvisibleType = this.edgeTypes.indexOf("invisible"), this.edgePropertyType = this.edgeTypes.indexOf("property");
707
+ let n = t.location_fields || [];
708
+ this.#d = n.indexOf("object_index"), this.#f = n.indexOf("script_id"), this.#p = n.indexOf("line"), this.#m = n.indexOf("column"), this.#h = n.length, this.nodeCount = this.nodes.length / this.nodeFieldCount, this.#g = this.containmentEdges.length / this.edgeFieldsCount, this.#i.updateStatus("Building edge indexes…"), this.firstEdgeIndexes = new Uint32Array(this.nodeCount + 1), this.buildEdgeIndexes(), this.#i.updateStatus("Building retainers…");
709
+ let r = this.startInitStep1InSecondThread(e);
710
+ if (this.#i.updateStatus("Propagating DOM state…"), this.propagateDOMState(), this.#i.updateStatus("Calculating node flags…"), this.calculateFlags(), this.#i.updateStatus("Building dominated nodes…"), this.startInitStep2InSecondThread(e), this.#i.updateStatus("Calculating shallow sizes…"), this.calculateShallowSizes(), this.#i.updateStatus("Calculating retained sizes…"), this.startInitStep3InSecondThread(e), this.#i.updateStatus("Calculating distances…"), this.nodeDistances = new Int32Array(this.nodeCount), this.calculateDistances(!1), this.#i.updateStatus("Calculating object names…"), this.calculateObjectNames(), this.applyInterfaceDefinitions(this.inferInterfaceDefinitions()), this.#i.updateStatus("Calculating samples…"), this.buildSamples(), this.#i.updateStatus("Building locations…"), this.buildLocationMap(), this.#i.updateStatus("Calculating retained sizes…"), await this.installResultsFromSecondThread(r), this.#i.updateStatus("Calculating statistics…"), this.calculateStatistics(), this.profile.snapshot.trace_function_count) {
711
+ this.#i.updateStatus("Building allocation statistics…");
712
+ let e = this.nodes.length, t = this.nodeFieldCount, n = this.rootNode(), r = {};
713
+ for (let i = 0; i < e; i += t) {
714
+ n.nodeIndex = i;
715
+ let e = n.traceNodeId(), t = r[e];
716
+ t || (r[e] = t = {
717
+ count: 0,
718
+ size: 0,
719
+ ids: []
720
+ }), t.count++, t.size += n.selfSize(), t.ids.push(n.id());
721
+ }
722
+ this.#_ = new O(this.profile, r);
723
+ }
724
+ this.#i.updateStatus("Finished processing.");
725
+ }
726
+ startInitStep1InSecondThread(e) {
727
+ let t = new Promise((t, n) => {
728
+ let r = (i) => {
729
+ let a = i.data;
730
+ if (a?.problemReport) {
731
+ let e = a.problemReport;
732
+ console.warn(re(this, e));
733
+ } else a?.resultsFromSecondWorker ? (e.removeEventListener("message", r), t(a.resultsFromSecondWorker)) : a?.error && (e.removeEventListener("message", r), n(a.error));
734
+ };
735
+ e.addEventListener("message", r), e.start();
736
+ }), n = this.#g, { containmentEdges: r, edgeToNodeOffset: i, edgeFieldsCount: a, nodeFieldCount: o } = this, s = new Uint32Array(n);
737
+ for (let e = 0; e < n; ++e) {
738
+ let t = r.getValue(e * a + i);
739
+ if (t % o) throw Error("Invalid toNodeIndex " + t);
740
+ s[e] = t / o;
741
+ }
742
+ let c = {
743
+ edgeToNodeOrdinals: s,
744
+ firstEdgeIndexes: this.firstEdgeIndexes,
745
+ nodeCount: this.nodeCount,
746
+ edgeFieldsCount: this.edgeFieldsCount,
747
+ nodeFieldCount: this.nodeFieldCount
748
+ };
749
+ return e.postMessage({
750
+ step: 1,
751
+ args: c
752
+ }, [s.buffer]), t;
753
+ }
754
+ startInitStep2InSecondThread(e) {
755
+ let t = this.rootNodeIndexInternal / this.nodeFieldCount, n = this.initEssentialEdges(), r = {
756
+ rootNodeOrdinal: t,
757
+ essentialEdgesBuffer: n.buffer
758
+ };
759
+ e.postMessage({
760
+ step: 2,
761
+ args: r
762
+ }, [n.buffer]);
763
+ }
764
+ startInitStep3InSecondThread(e) {
765
+ let { nodes: t, nodeFieldCount: n, nodeSelfSizeOffset: r, nodeCount: i } = this, a = new Uint32Array(i);
766
+ for (let e = 0; e < i; ++e) a[e] = t.getValue(e * n + r);
767
+ let o = { nodeSelfSizes: a };
768
+ e.postMessage({
769
+ step: 3,
770
+ args: o
771
+ }, [a.buffer]);
772
+ }
773
+ async installResultsFromSecondThread(e) {
774
+ let t = await e;
775
+ this.dominatedNodes = t.dominatedNodes, this.dominatorsTree = t.dominatorsTree, this.firstDominatedNodeIndex = t.firstDominatedNodeIndex, this.firstRetainerIndex = t.firstRetainerIndex, this.retainedSizes = t.retainedSizes, this.retainingEdges = t.retainingEdges, this.retainingNodes = t.retainingNodes;
776
+ }
777
+ buildEdgeIndexes() {
778
+ let e = this.nodes, t = this.nodeCount, n = this.firstEdgeIndexes, r = this.nodeFieldCount, i = this.edgeFieldsCount, a = this.#u;
779
+ n[t] = this.containmentEdges.length;
780
+ for (let o = 0, s = 0; o < t; ++o) n[o] = s, s += e.getValue(o * r + a) * i;
781
+ }
782
+ static buildRetainers(e) {
783
+ let { edgeToNodeOrdinals: t, firstEdgeIndexes: n, nodeCount: r, edgeFieldsCount: i, nodeFieldCount: a } = e, o = t.length, s = new Uint32Array(o), c = new Uint32Array(o), l = new Uint32Array(r + 1);
784
+ for (let e = 0; e < o; ++e) {
785
+ let n = t[e];
786
+ ++l[n];
787
+ }
788
+ for (let e = 0, t = 0; e < r; e++) {
789
+ let n = l[e];
790
+ l[e] = t, s[t] = n, t += n;
791
+ }
792
+ l[r] = s.length;
793
+ let u = n[0];
794
+ for (let e = 0; e < r; ++e) {
795
+ let r = u;
796
+ u = n[e + 1];
797
+ let o = e * a;
798
+ for (let e = r; e < u; e += i) {
799
+ let n = l[t[e / i]], r = n + --s[n];
800
+ s[r] = o, c[r] = e;
801
+ }
802
+ }
803
+ return {
804
+ retainingNodes: s,
805
+ retainingEdges: c,
806
+ firstRetainerIndex: l
807
+ };
808
+ }
809
+ allNodes() {
810
+ return new z(this.rootNode());
811
+ }
812
+ rootNode() {
813
+ return this.createNode(this.rootNodeIndexInternal);
814
+ }
815
+ get rootNodeIndex() {
816
+ return this.rootNodeIndexInternal;
817
+ }
818
+ get totalSize() {
819
+ return this.rootNode().retainedSize() + (this.profile.snapshot.extra_native_bytes ?? 0);
820
+ }
821
+ createFilter(e) {
822
+ let { minNodeId: t, maxNodeId: n, allocationNodeId: r, filterName: i } = e, a;
823
+ if (typeof r == "number") {
824
+ if (a = this.createAllocationStackFilter(r), !a) throw Error("Unable to create filter");
825
+ a.key = "AllocationNodeId: " + r;
826
+ } else typeof t == "number" && typeof n == "number" ? (a = this.createNodeIdFilter(t, n), a.key = "NodeIdRange: " + t + ".." + n) : i !== void 0 && (a = this.createNamedFilter(i), a.key = "NamedFilter: " + i);
827
+ return a;
828
+ }
829
+ search(e, t) {
830
+ let n = e.query;
831
+ function r(e, t, r) {
832
+ return t.indexOf(n) !== -1 && e.add(r), e;
833
+ }
834
+ let i = e.isRegex ? new RegExp(n) : c(n, "i");
835
+ function a(e, t, n) {
836
+ return i.test(t) && e.add(n), e;
837
+ }
838
+ let o = e.isRegex || !e.caseSensitive, s = o ? a : r, l = this.strings.reduce(s, /* @__PURE__ */ new Set()), u = this.createFilter(t), d = [], f = this.nodes.length, p = this.nodes, m = this.nodeNameOffset, h = this.nodeIdOffset, g = this.nodeFieldCount, _ = this.rootNode();
839
+ for (let e = 0; e < f; e += g) {
840
+ if (_.nodeIndex = e, u && !u(_) || _.selfSize() === 0) continue;
841
+ let t = _.name();
842
+ t === _.rawName() ? l.has(p.getValue(e + m)) && d.push(p.getValue(e + h)) : (o ? i.test(t) : t.indexOf(n) !== -1) && d.push(p.getValue(e + h));
843
+ }
844
+ return d;
845
+ }
846
+ aggregatesWithFilter(e) {
847
+ let t = this.createFilter(e), n = t ? t.key : "allObjects";
848
+ return this.getAggregatesByClassKey(!1, n, t);
849
+ }
850
+ createNodeIdFilter(e, t) {
851
+ function n(n) {
852
+ let r = n.id();
853
+ return r > e && r <= t;
854
+ }
855
+ return n;
856
+ }
857
+ createAllocationStackFilter(e) {
858
+ if (!this.#_) throw Error("No Allocation Profile provided");
859
+ let t = this.#_.traceIds(e);
860
+ if (!t.length) return;
861
+ let n = {};
862
+ for (let e = 0; e < t.length; e++) n[t[e]] = !0;
863
+ function r(e) {
864
+ return !!n[e.traceNodeId()];
865
+ }
866
+ return r;
867
+ }
868
+ createNamedFilter(e) {
869
+ let t = a(this.nodeCount), n = (e) => {
870
+ let n = e.nodeIndex / this.nodeFieldCount;
871
+ return t.getBit(n);
872
+ }, r = (e) => {
873
+ let n = new Int32Array(this.nodeCount);
874
+ for (let e = 0; e < this.nodeCount; ++e) n[e] = this.#a;
875
+ let r = new Uint32Array(this.nodeCount);
876
+ n[this.rootNode().ordinal()] = 0, r[0] = this.rootNode().nodeIndex, this.bfs(r, 1, n, e);
877
+ for (let e = 0; e < this.nodeCount; ++e) n[e] !== this.#a && t.setBit(e);
878
+ }, i = () => {
879
+ for (let e = 0; e < this.nodeCount; ++e) this.nodeDistances[e] === this.#a && t.setBit(e);
880
+ };
881
+ switch (e) {
882
+ case "objectsRetainedByDetachedDomNodes": return r((e, t) => t.node().detachedness() !== 2), i(), (e) => !n(e);
883
+ case "objectsRetainedByConsole": return r((e, t) => !(e.isSynthetic() && t.hasStringName() && t.name().endsWith(" / DevTools console"))), i(), (e) => !n(e);
884
+ case "duplicatedStrings": {
885
+ let e = /* @__PURE__ */ new Map(), r = this.createNode(0);
886
+ for (let n = 0; n < this.nodeCount; ++n) {
887
+ r.nodeIndex = n * this.nodeFieldCount;
888
+ let i = r.rawType();
889
+ if (i === this.nodeStringType || i === this.nodeConsStringType) {
890
+ if (r.isFlatConsString()) continue;
891
+ let n = r.name(), i = e.get(n);
892
+ i === void 0 ? e.set(n, r.nodeIndex) : (t.setBit(i / this.nodeFieldCount), t.setBit(r.nodeIndex / this.nodeFieldCount));
893
+ }
894
+ }
895
+ return n;
896
+ }
897
+ case "objectsRetainedByEventHandlers": {
898
+ let e = this.createNode(0), t = this.nodeFieldCount, o = a(this.nodeCount);
899
+ for (let n = 0; n < this.nodeCount; ++n) if (e.nodeIndex = n * t, e.rawName() === "V8EventListener") {
900
+ let n = this.getEdgeTarget(e, "1");
901
+ if (!n) continue;
902
+ let r = n.nodeIndex / t;
903
+ if (this.getEdgeTarget(n, "code")) {
904
+ o.setBit(r);
905
+ continue;
906
+ }
907
+ let i = !1;
908
+ for (let e = n.edges(); e.hasNext(); e.next()) {
909
+ let n = e.item().node();
910
+ if (this.getEdgeTarget(n, "code")) {
911
+ o.setBit(n.nodeIndex / t), i = !0;
912
+ break;
913
+ }
914
+ }
915
+ i || o.setBit(r);
916
+ }
917
+ return r((e, n) => {
918
+ let r = n.node().nodeIndex / t;
919
+ return !o.getBit(r);
920
+ }), i(), (e) => !n(e);
921
+ }
922
+ }
923
+ throw Error("Invalid filter name");
924
+ }
925
+ getAggregatesByClassKey(e, t, n) {
926
+ let r;
927
+ if (t && this.#c[t]) r = this.#c[t];
928
+ else {
929
+ let e = this.buildAggregates(n);
930
+ this.calculateClassesRetainedSize(e, n), r = Object.create(null);
931
+ for (let [t, n] of e.entries()) {
932
+ let e = this.#T(t);
933
+ r[e] = n;
934
+ }
935
+ t && (this.#c[t] = r);
936
+ }
937
+ return e && (!t || !this.#l[t]) && (this.sortAggregateIndexes(r), t && (this.#l[t] = e)), r;
938
+ }
939
+ allocationTracesTops() {
940
+ return this.#_.serializeTraceTops();
941
+ }
942
+ allocationNodeCallers(e) {
943
+ return this.#_.serializeCallers(e);
944
+ }
945
+ allocationStack(e) {
946
+ let t = this.createNode(e).traceNodeId();
947
+ return t ? this.#_.serializeAllocationStack(t) : null;
948
+ }
949
+ aggregatesForDiff(e) {
950
+ if (this.#s?.interfaceDefinitions === e) return this.#s.aggregates;
951
+ let t = this.#w;
952
+ this.applyInterfaceDefinitions(JSON.parse(e));
953
+ let n = this.getAggregatesByClassKey(!0, "allObjects");
954
+ this.applyInterfaceDefinitions(t ?? []);
955
+ let r = {}, i = this.createNode();
956
+ for (let e in n) {
957
+ let t = n[e].idxs, a = Array(t.length), o = Array(t.length);
958
+ for (let e = 0; e < t.length; e++) i.nodeIndex = t[e], a[e] = i.id(), o[e] = i.selfSize();
959
+ r[e] = {
960
+ name: i.className(),
961
+ indexes: t,
962
+ ids: a,
963
+ selfSizes: o
964
+ };
965
+ }
966
+ return this.#s = {
967
+ interfaceDefinitions: e,
968
+ aggregates: r
969
+ }, r;
970
+ }
971
+ isUserRoot(e) {
972
+ return !0;
973
+ }
974
+ calculateShallowSizes() {}
975
+ calculateDistances(e, t) {
976
+ let n = this.nodeCount;
977
+ if (e) {
978
+ let e = t;
979
+ t = (t, n) => !this.#y.has(n.nodeIndex()) && (!e || e(t, n)), this.#x === void 0 && (this.#x = new Int32Array(n));
980
+ }
981
+ let r = e ? this.#x : this.nodeDistances, i = this.#a;
982
+ for (let e = 0; e < n; ++e) r[e] = i;
983
+ let a = new Uint32Array(this.nodeCount), o = 0;
984
+ for (let e = this.rootNode().edges(); e.hasNext(); e.next()) {
985
+ let t = e.edge.node();
986
+ this.isUserRoot(t) && (r[t.ordinal()] = 1, a[o++] = t.nodeIndex);
987
+ }
988
+ this.bfs(a, o, r, t), r[this.rootNode().ordinal()] = o > 0 ? T : 0, a[0] = this.rootNode().nodeIndex, o = 1, this.bfs(a, o, r, t);
989
+ }
990
+ bfs(e, t, n, r) {
991
+ let i = this.edgeFieldsCount, a = this.nodeFieldCount, o = this.containmentEdges, s = this.firstEdgeIndexes, c = this.edgeToNodeOffset, l = this.edgeTypeOffset, u = this.nodeCount, d = this.edgeWeakType, f = this.#a, p = 0, m = this.createEdge(0), h = this.createNode(0);
992
+ for (; p < t;) {
993
+ let u = e[p++], g = u / a, _ = n[g] + 1, v = s[g], y = s[g + 1];
994
+ h.nodeIndex = u;
995
+ for (let s = v; s < y; s += i) {
996
+ if (o.getValue(s + l) === d) continue;
997
+ let i = o.getValue(s + c), u = i / a;
998
+ n[u] === f && (m.edgeIndex = s, !(r && !r(h, m)) && (n[u] = _, e[t++] = i));
999
+ }
1000
+ }
1001
+ if (t > u) throw Error("BFS failed. Nodes to visit (" + t + ") is more than nodes count (" + u + ")");
1002
+ }
1003
+ buildAggregates(e) {
1004
+ let t = /* @__PURE__ */ new Map(), n = this.nodes, r = n.length, i = this.nodeFieldCount, a = this.nodeSelfSizeOffset, o = this.rootNode(), s = this.nodeDistances;
1005
+ for (let c = 0; c < r; c += i) {
1006
+ if (o.nodeIndex = c, e && !e(o)) continue;
1007
+ let r = n.getValue(c + a);
1008
+ if (!r) continue;
1009
+ let l = o.classKeyInternal(), u = s[c / i], d = t.get(l);
1010
+ d ? (d.distance = Math.min(d.distance, u), ++d.count, d.self += r, d.idxs.push(c)) : (d = {
1011
+ count: 1,
1012
+ distance: u,
1013
+ self: r,
1014
+ maxRet: 0,
1015
+ name: o.className(),
1016
+ idxs: [c]
1017
+ }, t.set(l, d));
1018
+ }
1019
+ for (let e of t.values()) e.idxs = e.idxs.slice();
1020
+ return t;
1021
+ }
1022
+ calculateClassesRetainedSize(e, t) {
1023
+ let n = this.rootNodeIndexInternal, r = this.createNode(n), i = [n], a = [-1], o = [], s = /* @__PURE__ */ new Map(), c = this.nodeFieldCount, l = this.dominatedNodes, u = this.firstDominatedNodeIndex;
1024
+ for (; i.length;) {
1025
+ let n = i.pop();
1026
+ r.nodeIndex = n;
1027
+ let d = r.classKeyInternal(), f = !!s.get(d), p = n / c, m = u[p], h = u[p + 1];
1028
+ !f && (!t || t(r)) && r.selfSize() && (e.get(d).maxRet += r.retainedSize(), m !== h && (s.set(d, !0), a.push(i.length), o.push(d)));
1029
+ for (let e = m; e < h; e++) i.push(l[e]);
1030
+ let g = i.length;
1031
+ for (; a[a.length - 1] === g;) a.pop(), d = o.pop(), s.set(d, !1);
1032
+ }
1033
+ }
1034
+ sortAggregateIndexes(e) {
1035
+ let t = this.createNode(), n = this.createNode();
1036
+ for (let r in e) e[r].idxs.sort((e, r) => (t.nodeIndex = e, n.nodeIndex = r, t.id() < n.id() ? -1 : 1));
1037
+ }
1038
+ tryParseWeakMapEdgeName(e) {
1039
+ if (this.#S.getBit(e)) return;
1040
+ let t = this.strings[e].match(/^\d+(?<duplicatedPart> \/ part of key \(.*? @\d+\) -> value \(.*? @\d+\) pair in WeakMap \(table @(?<tableId>\d+)\))$/);
1041
+ if (!t) {
1042
+ this.#S.setBit(e);
1043
+ return;
1044
+ }
1045
+ return t.groups;
1046
+ }
1047
+ computeIsEssentialEdge(e, t, n) {
1048
+ let r = this.containmentEdges.getValue(t + this.edgeTypeOffset);
1049
+ if (r === this.edgeInternalType) {
1050
+ let n = this.containmentEdges.getValue(t + this.edgeNameOffset), r = this.tryParseWeakMapEdgeName(n);
1051
+ if (r && this.nodes.getValue(e + this.nodeIdOffset) === parseInt(r.tableId, 10)) return !1;
1052
+ }
1053
+ if (r === this.edgeWeakType) return !1;
1054
+ let i = this.containmentEdges.getValue(t + this.edgeToNodeOffset);
1055
+ if (e === i) return !1;
1056
+ if (e !== this.rootNodeIndex) {
1057
+ if (r === this.edgeShortcutType) return !1;
1058
+ let t = n ? n.map : null, a = n ? n.flag : 0, o = e / this.nodeFieldCount, s = i / this.nodeFieldCount, c = !t || t[o] & a;
1059
+ if ((!t || t[s] & a) && !c) return !1;
1060
+ }
1061
+ return !0;
1062
+ }
1063
+ initEssentialEdges() {
1064
+ let e = a(this.#g), { nodes: t, nodeFieldCount: n, edgeFieldsCount: r } = this, i = this.userObjectsMapAndFlag(), o = t.length, s = this.createNode(0);
1065
+ for (let t = 0; t < o; t += n) {
1066
+ s.nodeIndex = t;
1067
+ let n = s.edgeIndexesEnd();
1068
+ for (let a = s.edgeIndexesStart(); a < n; a += r) this.computeIsEssentialEdge(t, a, i) && e.setBit(a / r);
1069
+ }
1070
+ return e;
1071
+ }
1072
+ static hasOnlyWeakRetainers(e, t) {
1073
+ let { retainingEdges: n, edgeFieldsCount: r, firstRetainerIndex: i, essentialEdges: a } = e, o = i[t], s = i[t + 1];
1074
+ for (let e = o; e < s; ++e) {
1075
+ let t = n[e];
1076
+ if (a.getBit(t / r)) return !1;
1077
+ }
1078
+ return !0;
1079
+ }
1080
+ static async calculateDominatorsAndRetainedSizes(t) {
1081
+ let { nodeCount: n, firstEdgeIndexes: r, edgeFieldsCount: i, nodeFieldCount: a, firstRetainerIndex: o, retainingEdges: s, retainingNodes: c, edgeToNodeOrdinals: l, rootNodeOrdinal: u, essentialEdges: d, nodeSelfSizesPromise: f, port: p } = t;
1082
+ function m(e) {
1083
+ return d.getBit(e / i);
1084
+ }
1085
+ let h = n + 1, g = new Uint32Array(h), _ = new Uint32Array(h), v = new Uint32Array(h), y = new Uint32Array(h), b = new Uint32Array(h), x = Array(h), S = 0, C = new Uint32Array(h), w = (e) => {
1086
+ let t = e - 1;
1087
+ C[t] = r[t];
1088
+ let n = e;
1089
+ for (; n !== 0;) {
1090
+ b[n] === 0 && (b[n] = ++S, v[S] = y[n] = n);
1091
+ let e = g[n], t = n - 1;
1092
+ for (; C[t] < r[t + 1]; C[t] += i) {
1093
+ let a = C[t];
1094
+ if (!m(a)) continue;
1095
+ let o = l[a / i], s = o + 1;
1096
+ if (b[s] === 0) {
1097
+ g[s] = n, C[o] = r[o], e = s;
1098
+ break;
1099
+ }
1100
+ }
1101
+ n = e;
1102
+ }
1103
+ }, T = new Uint32Array(h), E = (e) => {
1104
+ let t = 0;
1105
+ for (; _[_[e]] !== 0;) T[++t] = e, e = _[e];
1106
+ for (; t > 0;) {
1107
+ let e = T[t--];
1108
+ b[y[_[e]]] < b[y[e]] && (y[e] = y[_[e]]), _[e] = _[_[e]];
1109
+ }
1110
+ }, D = (e) => _[e] === 0 ? e : (E(e), y[e]), O = (e, t) => {
1111
+ _[t] = e;
1112
+ }, k = u + 1;
1113
+ S = 0;
1114
+ let A = new Uint32Array(h);
1115
+ if (w(k), S < n) {
1116
+ let r = [`Heap snapshot: ${n - S} nodes are unreachable from the root.`];
1117
+ H(r, "The following nodes have only weak retainers:");
1118
+ for (let i = 1; i <= n; i++) {
1119
+ let n = i - 1;
1120
+ b[i] === 0 && e.hasOnlyWeakRetainers(t, n) && (H(r, n * a), g[i] = k, w(i));
1121
+ }
1122
+ U(r, p);
1123
+ }
1124
+ if (S < n) {
1125
+ let e = [`Heap snapshot: Still found ${n - S} unreachable nodes:`];
1126
+ for (let t = 1; t <= n; t++) b[t] === 0 && (H(e, (t - 1) * a), g[t] = k, b[t] = ++S, v[S] = y[t] = t);
1127
+ U(e, p);
1128
+ }
1129
+ for (let e = S; e >= 2; --e) {
1130
+ let t = v[e], n = t - 1, r = !0;
1131
+ for (let e = o[n]; e < o[n + 1]; e++) {
1132
+ if (!m(s[e])) continue;
1133
+ r = !1;
1134
+ let n = D(c[e] / a + 1);
1135
+ b[n] < b[t] && (b[t] = b[n]);
1136
+ }
1137
+ if (r && (b[t] = b[k]), x[v[b[t]]] === void 0 && (x[v[b[t]]] = /* @__PURE__ */ new Set()), x[v[b[t]]].add(t), O(g[t], t), x[g[t]] !== void 0) {
1138
+ for (let e of x[g[t]]) {
1139
+ let n = D(e);
1140
+ A[e] = b[n] < b[e] ? n : g[t];
1141
+ }
1142
+ x[g[t]].clear();
1143
+ }
1144
+ }
1145
+ A[0] = A[k] = k;
1146
+ for (let e = 2; e <= S; e++) {
1147
+ let t = v[e];
1148
+ A[t] !== v[b[t]] && (A[t] = A[A[t]]);
1149
+ }
1150
+ let j = new Uint32Array(n), M = new Float64Array(n), N = await f;
1151
+ for (let e = 0; e < n; e++) j[e] = A[e + 1] - 1, M[e] = N[e];
1152
+ for (let e = S; e > 1; e--) {
1153
+ let t = v[e] - 1, n = j[t];
1154
+ M[n] += M[t];
1155
+ }
1156
+ return {
1157
+ dominatorsTree: j,
1158
+ retainedSizes: M
1159
+ };
1160
+ }
1161
+ static buildDominatedNodes(e) {
1162
+ let { nodeCount: t, dominatorsTree: n, rootNodeOrdinal: r, nodeFieldCount: i } = e, a = new Uint32Array(t + 1), o = new Uint32Array(t - 1), s = 0, c = t;
1163
+ if (r === s) s = 1;
1164
+ else if (r === c - 1) --c;
1165
+ else throw Error("Root node is expected to be either first or last");
1166
+ for (let e = s; e < c; ++e) ++a[n[e]];
1167
+ let l = 0;
1168
+ for (let e = 0, n = t; e < n; ++e) {
1169
+ let t = o[l] = a[e];
1170
+ a[e] = l, l += t;
1171
+ }
1172
+ a[t] = o.length;
1173
+ for (let e = s; e < c; ++e) {
1174
+ let t = a[n[e]];
1175
+ t += --o[t], o[t] = e * i;
1176
+ }
1177
+ return {
1178
+ firstDominatedNodeIndex: a,
1179
+ dominatedNodes: o
1180
+ };
1181
+ }
1182
+ calculateObjectNames() {
1183
+ let { nodes: e, nodeCount: t, nodeNameOffset: n, nodeNativeType: r, nodeHiddenType: i, nodeObjectType: a, nodeCodeType: o, nodeClosureType: s, nodeRegExpType: c } = this;
1184
+ this.nodeDetachednessAndClassIndexOffset === -1 && (this.detachednessAndClassIndexArray = new Uint32Array(t));
1185
+ let l = /* @__PURE__ */ new Map(), u = (e) => {
1186
+ let t = l.get(e);
1187
+ return t === void 0 && (t = this.addString(e), l.set(e, t)), t;
1188
+ }, d = u("(system)"), f = u("(compiled code)"), p = u("Function"), m = u("RegExp");
1189
+ function h(t) {
1190
+ switch (t.rawType()) {
1191
+ case i: return d;
1192
+ case a:
1193
+ case r: {
1194
+ let r = t.rawName();
1195
+ if (r.startsWith("<")) {
1196
+ let e = r.indexOf(" ");
1197
+ return e !== -1 && (r = r.substring(0, e) + ">"), u(r);
1198
+ }
1199
+ if (r.startsWith("Detached <")) {
1200
+ let e = r.indexOf(" ", 10);
1201
+ return e !== -1 && (r = r.substring(0, e) + ">"), u(r);
1202
+ }
1203
+ return e.getValue(t.nodeIndex + n);
1204
+ }
1205
+ case o: return f;
1206
+ case s: return p;
1207
+ case c: return m;
1208
+ default: return u("(" + t.type() + ")");
1209
+ }
1210
+ }
1211
+ let g = this.createNode(0);
1212
+ for (let e = 0; e < t; ++e) g.setClassIndex(h(g)), g.nodeIndex = g.nextNodeIndex();
1213
+ }
1214
+ interfaceDefinitions() {
1215
+ return JSON.stringify(this.#w ?? []);
1216
+ }
1217
+ isPlainJSObject(e) {
1218
+ return e.rawType() === this.nodeObjectType && e.rawName() === "Object";
1219
+ }
1220
+ inferInterfaceDefinitions() {
1221
+ let { edgePropertyType: e } = this, t = /* @__PURE__ */ new Map(), n = 0;
1222
+ for (let r = this.allNodes(); r.hasNext(); r.next()) {
1223
+ let i = r.item();
1224
+ if (!this.isPlainJSObject(i)) continue;
1225
+ ++n;
1226
+ let a = "{", o = [];
1227
+ for (let t = i.edges(); t.hasNext(); t.next()) {
1228
+ let n = t.item(), r = n.name();
1229
+ if (n.rawType() !== e || r === "__proto__") continue;
1230
+ let i = Q.formatPropertyName(r);
1231
+ if (a.length > ie && a.length + i.length > ae) break;
1232
+ a.length !== 1 && (a += ", "), a += i, o.push(r);
1233
+ }
1234
+ if (o.length === 0) continue;
1235
+ a += "}";
1236
+ let s = t.get(a);
1237
+ s ? ++s.count : t.set(a, {
1238
+ name: a,
1239
+ properties: o,
1240
+ count: 1
1241
+ });
1242
+ }
1243
+ let r = Array.from(t.values());
1244
+ r.sort((e, t) => t.count - e.count);
1245
+ let i = [], a = Math.max(oe, n / se);
1246
+ for (let e = 0; e < r.length; ++e) {
1247
+ let t = r[e];
1248
+ if (t.count < a) break;
1249
+ i.push(t);
1250
+ }
1251
+ return i;
1252
+ }
1253
+ applyInterfaceDefinitions(e) {
1254
+ let { edgePropertyType: t } = this;
1255
+ this.#w = e, this.#c = {}, this.#l = {};
1256
+ function n(e, t) {
1257
+ return !t || e.propertyCount > t.propertyCount ? e : t.propertyCount > e.propertyCount ? t : e.index <= t.index ? e : t;
1258
+ }
1259
+ let r = {
1260
+ next: /* @__PURE__ */ new Map(),
1261
+ matchInfo: null,
1262
+ greatestNext: null
1263
+ };
1264
+ for (let t = 0; t < e.length; ++t) {
1265
+ let n = e[t], i = n.properties.toSorted(), a = r;
1266
+ for (let e of i) {
1267
+ let t = a.next, n = t.get(e);
1268
+ n || (n = {
1269
+ next: /* @__PURE__ */ new Map(),
1270
+ matchInfo: null,
1271
+ greatestNext: null
1272
+ }, t.set(e, n), (a.greatestNext === null || a.greatestNext < e) && (a.greatestNext = e)), a = n;
1273
+ }
1274
+ a.matchInfo ||= {
1275
+ name: n.name,
1276
+ propertyCount: i.length,
1277
+ index: t
1278
+ };
1279
+ }
1280
+ let i = {
1281
+ name: "Object",
1282
+ propertyCount: 0,
1283
+ index: Infinity
1284
+ };
1285
+ for (let e = this.allNodes(); e.hasNext(); e.next()) {
1286
+ let a = e.item();
1287
+ if (!this.isPlainJSObject(a)) continue;
1288
+ let o = [];
1289
+ for (let e = a.edges(); e.hasNext(); e.next()) {
1290
+ let n = e.item();
1291
+ n.rawType() === t && o.push(n.name());
1292
+ }
1293
+ o.sort();
1294
+ let s = /* @__PURE__ */ new Set();
1295
+ s.add(r);
1296
+ let c = n(i, r.matchInfo);
1297
+ for (let e of o) for (let t of Array.from(s.keys())) {
1298
+ (t.greatestNext === null || e >= t.greatestNext) && s.delete(t);
1299
+ let r = t.next.get(e);
1300
+ r && (s.add(r), c = n(c, r.matchInfo));
1301
+ }
1302
+ let l = c === i ? a.rawNameIndex() : this.#C.get(c.name);
1303
+ l === void 0 && (l = this.addString(c.name), this.#C.set(c.name, l)), a.setClassIndex(l);
1304
+ }
1305
+ }
1306
+ iterateFilteredChildren(e, t, n) {
1307
+ let r = this.firstEdgeIndexes[e], i = this.firstEdgeIndexes[e + 1];
1308
+ for (let e = r; e < i; e += this.edgeFieldsCount) {
1309
+ let r = this.containmentEdges.getValue(e + this.edgeToNodeOffset) / this.nodeFieldCount;
1310
+ t(this.containmentEdges.getValue(e + this.edgeTypeOffset)) && n(r);
1311
+ }
1312
+ }
1313
+ addString(e) {
1314
+ return this.strings.push(e), this.strings.length - 1;
1315
+ }
1316
+ getEdgeTarget(e, t) {
1317
+ for (let n = e.edges(); n.hasNext(); n.next()) {
1318
+ let e = n.item();
1319
+ if (e.name() === t) return e.node();
1320
+ }
1321
+ return null;
1322
+ }
1323
+ propagateDOMState() {
1324
+ if (this.nodeDetachednessAndClassIndexOffset === -1) return;
1325
+ console.time("propagateDOMState");
1326
+ let e = new Uint8Array(this.nodeCount), t = [], n = [], r = /* @__PURE__ */ new Map(), i = this.createNode(0), a = function(e, t) {
1327
+ let n = e.nodes.getValue(t + e.nodeNameOffset), i = r.get(n);
1328
+ i === void 0 && (i = e.addString("Detached " + e.strings[n]), r.set(n, i)), e.nodes.setValue(t + e.nodeNameOffset, i);
1329
+ }, o = function(r, o, s) {
1330
+ if (e[o]) return;
1331
+ let c = o * r.nodeFieldCount;
1332
+ if (r.nodes.getValue(c + r.nodeTypeOffset) !== r.nodeNativeType) {
1333
+ e[o] = 1;
1334
+ return;
1335
+ }
1336
+ i.nodeIndex = c, i.setDetachedness(s), s === 1 ? t.push(o) : s === 2 && (a(r, c), n.push(o)), e[o] = 1;
1337
+ }, s = function(e, t, n) {
1338
+ e.iterateFilteredChildren(t, (t) => ![
1339
+ e.edgeHiddenType,
1340
+ e.edgeInvisibleType,
1341
+ e.edgeWeakType
1342
+ ].includes(t), (t) => o(e, t, n));
1343
+ };
1344
+ for (let e = 0; e < this.nodeCount; ++e) {
1345
+ i.nodeIndex = e * this.nodeFieldCount;
1346
+ let t = i.detachedness();
1347
+ t !== 0 && o(this, e, t);
1348
+ }
1349
+ for (; t.length !== 0;) {
1350
+ let e = t.pop();
1351
+ s(this, e, 1);
1352
+ }
1353
+ for (; n.length !== 0;) {
1354
+ let e = n.pop();
1355
+ i.nodeIndex = e * this.nodeFieldCount, i.detachedness() !== 1 && s(this, e, 2);
1356
+ }
1357
+ console.timeEnd("propagateDOMState");
1358
+ }
1359
+ buildSamples() {
1360
+ let e = this.#t;
1361
+ if (!e?.length) return;
1362
+ let t = e.length / 2, r = Array(t), i = Array(t), a = Array(t), o = this.#e.sample_fields.indexOf("timestamp_us"), s = this.#e.sample_fields.indexOf("last_assigned_id");
1363
+ for (let n = 0; n < t; n++) r[n] = 0, i[n] = e[2 * n + o] / 1e3, a[n] = e[2 * n + s];
1364
+ let c = this.nodes.length, u = this.nodeFieldCount, d = this.rootNode();
1365
+ for (let e = 0; e < c; e += u) {
1366
+ d.nodeIndex = e;
1367
+ let i = d.id();
1368
+ if (i % 2 == 0) continue;
1369
+ let o = l(a, i, n);
1370
+ o !== t && (r[o] += d.selfSize());
1371
+ }
1372
+ this.#n = new b(i, a, r);
1373
+ }
1374
+ buildLocationMap() {
1375
+ let e = /* @__PURE__ */ new Map(), t = this.#r;
1376
+ for (let n = 0; n < t.length; n += this.#h) {
1377
+ let r = t[n + this.#d], i = t[n + this.#f], a = t[n + this.#p], o = t[n + this.#m];
1378
+ e.set(r, new h(i, a, o));
1379
+ }
1380
+ this.#v = e;
1381
+ }
1382
+ getLocation(e) {
1383
+ return this.#v.get(e) || null;
1384
+ }
1385
+ getSamples() {
1386
+ return this.#n;
1387
+ }
1388
+ calculateFlags() {
1389
+ throw Error("Not implemented");
1390
+ }
1391
+ calculateStatistics() {
1392
+ throw Error("Not implemented");
1393
+ }
1394
+ userObjectsMapAndFlag() {
1395
+ throw Error("Not implemented");
1396
+ }
1397
+ calculateSnapshotDiff(e, t) {
1398
+ let n = this.#o[e];
1399
+ if (n) return n;
1400
+ n = {};
1401
+ let r = this.getAggregatesByClassKey(!0, "allObjects");
1402
+ for (let e in t) {
1403
+ let i = t[e], a = this.calculateDiffForClass(i, r[e]);
1404
+ a && (n[e] = a);
1405
+ }
1406
+ let i = new x();
1407
+ for (let e in r) {
1408
+ if (e in t) continue;
1409
+ let a = this.calculateDiffForClass(i, r[e]);
1410
+ a && (n[e] = a);
1411
+ }
1412
+ return this.#o[e] = n, n;
1413
+ }
1414
+ calculateDiffForClass(e, t) {
1415
+ let n = e.ids, r = e.indexes, i = e.selfSizes, a = t ? t.idxs : [], o = 0, s = 0, c = n.length, l = a.length, u = new S(t ? t.name : e.name), d = this.createNode(a[s]);
1416
+ for (; o < c && s < l;) {
1417
+ let e = n[o];
1418
+ e < d.id() ? (u.deletedIndexes.push(r[o]), u.removedCount++, u.removedSize += i[o], ++o) : e > d.id() ? (u.addedIndexes.push(a[s]), u.addedCount++, u.addedSize += d.selfSize(), d.nodeIndex = a[++s]) : (++o, d.nodeIndex = a[++s]);
1419
+ }
1420
+ for (; o < c;) u.deletedIndexes.push(r[o]), u.removedCount++, u.removedSize += i[o], ++o;
1421
+ for (; s < l;) u.addedIndexes.push(a[s]), u.addedCount++, u.addedSize += d.selfSize(), d.nodeIndex = a[++s];
1422
+ return u.countDelta = u.addedCount - u.removedCount, u.sizeDelta = u.addedSize - u.removedSize, !u.addedCount && !u.removedCount ? null : u;
1423
+ }
1424
+ nodeForSnapshotObjectId(e) {
1425
+ for (let t = this.allNodes(); t.hasNext(); t.next()) if (t.node.id() === e) return t.node;
1426
+ return null;
1427
+ }
1428
+ #T(e) {
1429
+ return typeof e == "number" ? "," + this.strings[e] : e;
1430
+ }
1431
+ nodeClassKey(e) {
1432
+ let t = this.nodeForSnapshotObjectId(e);
1433
+ return t ? this.#T(t.classKeyInternal()) : null;
1434
+ }
1435
+ createEdgesProvider(e) {
1436
+ let t = this.createNode(e), n = this.containmentEdgesFilter(), r = new P(this);
1437
+ return new Y(this, n, t.edges(), r);
1438
+ }
1439
+ createEdgesProviderForTest(e, t) {
1440
+ let n = this.createNode(e), r = new P(this);
1441
+ return new Y(this, t, n.edges(), r);
1442
+ }
1443
+ retainingEdgesFilter() {
1444
+ return null;
1445
+ }
1446
+ containmentEdgesFilter() {
1447
+ return null;
1448
+ }
1449
+ createRetainingEdgesProvider(e) {
1450
+ let t = this.createNode(e), n = this.retainingEdgesFilter(), r = new te(this);
1451
+ return new Y(this, n, t.retainers(), r);
1452
+ }
1453
+ createAddedNodesProvider(e, t) {
1454
+ let n = this.#o[e][t];
1455
+ return new X(this, n.addedIndexes);
1456
+ }
1457
+ createDeletedNodesProvider(e) {
1458
+ return new X(this, e);
1459
+ }
1460
+ createNodesProviderForClass(e, t) {
1461
+ return new X(this, this.aggregatesWithFilter(t)[e].idxs);
1462
+ }
1463
+ maxJsNodeId() {
1464
+ let e = this.nodeFieldCount, t = this.nodes, n = t.length, r = 0;
1465
+ for (let i = this.nodeIdOffset; i < n; i += e) {
1466
+ let e = t.getValue(i);
1467
+ e % 2 != 0 && r < e && (r = e);
1468
+ }
1469
+ return r;
1470
+ }
1471
+ updateStaticData() {
1472
+ return new f(this.nodeCount, this.rootNodeIndexInternal, this.totalSize, this.maxJsNodeId());
1473
+ }
1474
+ ignoreNodeInRetainersView(e) {
1475
+ this.#y.add(e), this.calculateDistances(!0), this.#E();
1476
+ }
1477
+ unignoreNodeInRetainersView(e) {
1478
+ this.#y.delete(e), this.#y.size === 0 ? this.#x = void 0 : this.calculateDistances(!0), this.#E();
1479
+ }
1480
+ unignoreAllNodesInRetainersView() {
1481
+ this.#y.clear(), this.#x = void 0, this.#E();
1482
+ }
1483
+ #E() {
1484
+ let e = this.#x;
1485
+ if (this.#b.clear(), e === void 0) return;
1486
+ let t = new o(), n = this.#a, { nodeCount: r, nodeFieldCount: i } = this, a = this.createNode(0);
1487
+ for (let o = 0; o < r; ++o) if (e[o] === n) {
1488
+ a.nodeIndex = o * i;
1489
+ for (let e = a.edges(); e.hasNext(); e.next()) {
1490
+ let n = e.edge;
1491
+ if (!n.isInternal()) continue;
1492
+ let r = this.tryParseWeakMapEdgeName(n.nameIndex());
1493
+ r && t.set(n.nodeIndex(), r.duplicatedPart);
1494
+ }
1495
+ }
1496
+ for (let e of t.keys()) {
1497
+ a.nodeIndex = e;
1498
+ for (let n = a.retainers(); n.hasNext(); n.next()) {
1499
+ let r = n.item();
1500
+ if (!r.isInternal()) continue;
1501
+ let i = this.tryParseWeakMapEdgeName(r.nameIndex());
1502
+ if (i && t.hasValue(e, i.duplicatedPart)) {
1503
+ let e = this.retainingEdges[r.itemIndex()];
1504
+ this.#b.add(e);
1505
+ }
1506
+ }
1507
+ }
1508
+ }
1509
+ areNodesIgnoredInRetainersView() {
1510
+ return this.#y.size > 0;
1511
+ }
1512
+ getDistanceForRetainersView(e) {
1513
+ let t = e / this.nodeFieldCount, n = (this.#x ?? this.nodeDistances)[t];
1514
+ return n === this.#a ? Math.max(0, this.nodeDistances[t]) + E : n;
1515
+ }
1516
+ isNodeIgnoredInRetainersView(e) {
1517
+ return this.#y.has(e);
1518
+ }
1519
+ isEdgeIgnoredInRetainersView(e) {
1520
+ return this.#b.has(e);
1521
+ }
1522
+ }, J = class {
1523
+ iterator;
1524
+ #e;
1525
+ #t;
1526
+ iterationOrder;
1527
+ currentComparator;
1528
+ #n;
1529
+ #r;
1530
+ constructor(e, t) {
1531
+ this.iterator = e, this.#e = t, this.#t = !e.hasNext(), this.iterationOrder = null, this.currentComparator = null, this.#n = 0, this.#r = 0;
1532
+ }
1533
+ createIterationOrder() {
1534
+ if (!this.iterationOrder) {
1535
+ this.iterationOrder = [];
1536
+ for (let e = this.iterator; e.hasNext(); e.next()) this.iterationOrder.push(e.item().itemIndex());
1537
+ }
1538
+ }
1539
+ isEmpty() {
1540
+ return this.#t;
1541
+ }
1542
+ serializeItemsRange(e, t) {
1543
+ if (this.createIterationOrder(), e > t) throw Error("Start position > end position: " + e + " > " + t);
1544
+ if (!this.iterationOrder) throw Error("Iteration order undefined");
1545
+ if (t > this.iterationOrder.length && (t = this.iterationOrder.length), this.#n < t && e < this.iterationOrder.length - this.#r && this.currentComparator) {
1546
+ let n = this.currentComparator;
1547
+ this.sort(n, this.#n, this.iterationOrder.length - 1 - this.#r, e, t - 1), e <= this.#n && (this.#n = t), t >= this.iterationOrder.length - this.#r && (this.#r = this.iterationOrder.length - e);
1548
+ }
1549
+ let n = e, r = t - e, i = Array(r);
1550
+ for (let e = 0; e < r; ++e) {
1551
+ let t = this.iterationOrder[n++];
1552
+ i[e] = this.#e.itemForIndex(t).serialize();
1553
+ }
1554
+ return new w(e, t, this.iterationOrder.length, i);
1555
+ }
1556
+ sortAndRewind(e) {
1557
+ this.currentComparator = e, this.#n = 0, this.#r = 0;
1558
+ }
1559
+ }, Y = class extends J {
1560
+ snapshot;
1561
+ constructor(e, t, n, r) {
1562
+ let i = t ? new ne(n, t) : n;
1563
+ super(i, r), this.snapshot = e;
1564
+ }
1565
+ sort(e, n, r, i, a) {
1566
+ let o = e.fieldName1, s = e.fieldName2, c = e.ascending1, l = e.ascending2, u = this.iterator.item().clone(), d = u.clone(), f = this.snapshot.createNode(), p = this.snapshot.createNode();
1567
+ function m(e, t, n, r) {
1568
+ u.edgeIndex = n, d.edgeIndex = r;
1569
+ let i = 0;
1570
+ if (e === "!edgeName") {
1571
+ if (d.name() === "__proto__") return -1;
1572
+ if (u.name() === "__proto__") return 1;
1573
+ i = u.hasStringName() === d.hasStringName() ? u.name() < d.name() ? -1 : +(u.name() > d.name()) : u.hasStringName() ? -1 : 1;
1574
+ } else i = u.getValueForSorting(e) - d.getValueForSorting(e);
1575
+ return t ? i : -i;
1576
+ }
1577
+ function h(e, t, n, r) {
1578
+ u.edgeIndex = n, f.nodeIndex = u.nodeIndex();
1579
+ let i = f[e]();
1580
+ d.edgeIndex = r, p.nodeIndex = d.nodeIndex();
1581
+ let a = p[e](), o = i < a ? -1 : +(i > a);
1582
+ return t ? o : -o;
1583
+ }
1584
+ function g(e, t) {
1585
+ let n = m(o, c, e, t);
1586
+ return n === 0 && (n = m(s, l, e, t)), n === 0 ? e - t : n;
1587
+ }
1588
+ function _(e, t) {
1589
+ let n = m(o, c, e, t);
1590
+ return n === 0 && (n = h(s, l, e, t)), n === 0 ? e - t : n;
1591
+ }
1592
+ function v(e, t) {
1593
+ let n = h(o, c, e, t);
1594
+ return n === 0 && (n = m(s, l, e, t)), n === 0 ? e - t : n;
1595
+ }
1596
+ function y(e, t) {
1597
+ let n = h(o, c, e, t);
1598
+ return n === 0 && (n = h(s, l, e, t)), n === 0 ? e - t : n;
1599
+ }
1600
+ if (!this.iterationOrder) throw Error("Iteration order not defined");
1601
+ function b(e) {
1602
+ return e.startsWith("!edge");
1603
+ }
1604
+ b(o) ? b(s) ? t(this.iterationOrder, g, n, r, i, a) : t(this.iterationOrder, _, n, r, i, a) : b(s) ? t(this.iterationOrder, v, n, r, i, a) : t(this.iterationOrder, y, n, r, i, a);
1605
+ }
1606
+ }, X = class extends J {
1607
+ snapshot;
1608
+ constructor(e, t) {
1609
+ let n = new ee(e), r = new B(n, t);
1610
+ super(r, n), this.snapshot = e;
1611
+ }
1612
+ nodePosition(e) {
1613
+ this.createIterationOrder();
1614
+ let t = this.snapshot.createNode(), n = 0;
1615
+ if (!this.iterationOrder) throw Error("Iteration order not defined");
1616
+ for (; n < this.iterationOrder.length && (t.nodeIndex = this.iterationOrder[n], t.id() !== e); n++);
1617
+ if (n === this.iterationOrder.length) return -1;
1618
+ let r = this.iterationOrder[n], i = 0, a = this.currentComparator, o = this.buildCompareFunction(a);
1619
+ for (let e = 0; e < this.iterationOrder.length; e++) o(this.iterationOrder[e], r) < 0 && ++i;
1620
+ return i;
1621
+ }
1622
+ buildCompareFunction(e) {
1623
+ let t = this.snapshot.createNode(), n = this.snapshot.createNode(), r = t[e.fieldName1], i = t[e.fieldName2], a = e.ascending1 ? 1 : -1, o = e.ascending2 ? 1 : -1;
1624
+ function s(e, r) {
1625
+ let i = e.call(t), a = e.call(n);
1626
+ return i < a ? -r : i > a ? r : 0;
1627
+ }
1628
+ function c(e, c) {
1629
+ t.nodeIndex = e, n.nodeIndex = c;
1630
+ let l = s(r, a);
1631
+ return l === 0 && (l = s(i, o)), l || e - c;
1632
+ }
1633
+ return c;
1634
+ }
1635
+ sort(e, n, r, i, a) {
1636
+ if (!this.iterationOrder) throw Error("Iteration order not defined");
1637
+ t(this.iterationOrder, this.buildCompareFunction(e), n, r, i, a);
1638
+ }
1639
+ }, Z = class extends q {
1640
+ nodeFlags;
1641
+ flags;
1642
+ #e;
1643
+ constructor(e, t) {
1644
+ super(e, t), this.nodeFlags = {
1645
+ canBeQueried: 1,
1646
+ detachedDOMTreeNode: 2,
1647
+ pageObject: 4
1648
+ };
1649
+ }
1650
+ createNode(e) {
1651
+ return new Q(this, e === void 0 ? -1 : e);
1652
+ }
1653
+ createEdge(e) {
1654
+ return new le(this, e);
1655
+ }
1656
+ createRetainingEdge(e) {
1657
+ return new $(this, e);
1658
+ }
1659
+ containmentEdgesFilter() {
1660
+ return (e) => !e.isInvisible();
1661
+ }
1662
+ retainingEdgesFilter() {
1663
+ let e = this.containmentEdgesFilter();
1664
+ function t(t) {
1665
+ return e(t) && !t.node().isRoot() && !t.isWeak();
1666
+ }
1667
+ return t;
1668
+ }
1669
+ calculateFlags() {
1670
+ this.flags = new Uint8Array(this.nodeCount), this.markDetachedDOMTreeNodes(), this.markQueriableHeapObjects(), this.markPageOwnedNodes();
1671
+ }
1672
+ #t() {
1673
+ for (let e = this.rootNode().edges(); e.hasNext(); e.next()) if (this.isUserRoot(e.edge.node())) return !0;
1674
+ return !1;
1675
+ }
1676
+ calculateShallowSizes() {
1677
+ if (!this.#t()) return;
1678
+ let { nodeCount: e, nodes: t, nodeFieldCount: n, nodeSelfSizeOffset: r } = this, i = 4294967295, a = 4294967294;
1679
+ if (e >= a) throw Error("Too many nodes for calculateShallowSizes");
1680
+ let o = new Uint32Array(e), s = [], c = this.createNode(0);
1681
+ for (let t = 0; t < e; ++t) c.isHidden() || c.isArray() || c.isNative() && c.rawName() === "system / ExternalStringData" ? o[t] = i : (o[t] = t, s.push(t)), c.nodeIndex = c.nextNodeIndex();
1682
+ for (; s.length !== 0;) {
1683
+ let e = s.pop(), t = o[e];
1684
+ c.nodeIndex = e * n;
1685
+ for (let e = c.edges(); e.hasNext(); e.next()) {
1686
+ let r = e.edge;
1687
+ if (r.isWeak()) continue;
1688
+ let c = r.nodeIndex() / n;
1689
+ switch (o[c]) {
1690
+ case i:
1691
+ o[c] = t, s.push(c);
1692
+ break;
1693
+ case c:
1694
+ case t:
1695
+ case a: break;
1696
+ default:
1697
+ o[c] = a, s.push(c);
1698
+ break;
1699
+ }
1700
+ }
1701
+ }
1702
+ for (let s = 0; s < e; ++s) {
1703
+ let e = o[s];
1704
+ switch (e) {
1705
+ case i:
1706
+ case a:
1707
+ case s: break;
1708
+ default: {
1709
+ let i = s * n, a = e * n;
1710
+ if (c.nodeIndex = a, c.isSynthetic() || c.isRoot()) break;
1711
+ let o = t.getValue(i + r);
1712
+ t.setValue(i + r, 0), t.setValue(a + r, t.getValue(a + r) + o);
1713
+ break;
1714
+ }
1715
+ }
1716
+ }
1717
+ }
1718
+ calculateDistances(e) {
1719
+ let t = /* @__PURE__ */ new Set(), n = this;
1720
+ function r(e, r) {
1721
+ if (e.isHidden() && r.name() === "sloppy_function_map" && e.rawName() === "system / NativeContext") return !1;
1722
+ if (e.isArray() && e.rawName() === "(map descriptors)") {
1723
+ let e = parseInt(r.name(), 10);
1724
+ return e < 2 || e % 3 != 1;
1725
+ }
1726
+ if (r.isInternal()) {
1727
+ let e = n.tryParseWeakMapEdgeName(r.nameIndex());
1728
+ if (e && !t.delete(e.duplicatedPart)) return t.add(e.duplicatedPart), !1;
1729
+ }
1730
+ return !0;
1731
+ }
1732
+ super.calculateDistances(e, r);
1733
+ }
1734
+ isUserRoot(e) {
1735
+ return e.isUserRoot() || e.isDocumentDOMTreesRoot();
1736
+ }
1737
+ userObjectsMapAndFlag() {
1738
+ return {
1739
+ map: this.flags,
1740
+ flag: this.nodeFlags.pageObject
1741
+ };
1742
+ }
1743
+ flagsOfNode(e) {
1744
+ return this.flags[e.nodeIndex / this.nodeFieldCount];
1745
+ }
1746
+ markDetachedDOMTreeNodes() {
1747
+ let e = this.nodes, t = e.length, n = this.nodeFieldCount, r = this.nodeNativeType, i = this.nodeTypeOffset, a = this.nodeFlags.detachedDOMTreeNode, o = this.rootNode();
1748
+ for (let s = 0, c = 0; s < t; s += n, c++) e.getValue(s + i) === r && (o.nodeIndex = s, o.name().startsWith("Detached ") && (this.flags[c] |= a));
1749
+ }
1750
+ markQueriableHeapObjects() {
1751
+ let e = this.nodeFlags.canBeQueried, t = this.edgeHiddenType, n = this.edgeInternalType, r = this.edgeInvisibleType, i = this.edgeWeakType, a = this.edgeToNodeOffset, o = this.edgeTypeOffset, s = this.edgeFieldsCount, c = this.containmentEdges, l = this.nodeFieldCount, u = this.firstEdgeIndexes, d = this.flags, f = [];
1752
+ for (let e = this.rootNode().edges(); e.hasNext(); e.next()) e.edge.node().isUserRoot() && f.push(e.edge.node().nodeIndex / l);
1753
+ for (; f.length;) {
1754
+ let p = f.pop();
1755
+ if (d[p] & e) continue;
1756
+ d[p] |= e;
1757
+ let m = u[p], h = u[p + 1];
1758
+ for (let u = m; u < h; u += s) {
1759
+ let s = c.getValue(u + a) / l;
1760
+ if (d[s] & e) continue;
1761
+ let p = c.getValue(u + o);
1762
+ p === t || p === r || p === n || p === i || f.push(s);
1763
+ }
1764
+ }
1765
+ }
1766
+ markPageOwnedNodes() {
1767
+ let e = this.edgeShortcutType, t = this.edgeElementType, n = this.edgeToNodeOffset, r = this.edgeTypeOffset, i = this.edgeFieldsCount, a = this.edgeWeakType, o = this.firstEdgeIndexes, s = this.containmentEdges, c = this.nodeFieldCount, l = this.nodeCount, u = this.flags, d = this.nodeFlags.pageObject, f = new Uint32Array(l), p = 0, m = this.rootNodeIndexInternal / c, h = this.rootNode();
1768
+ for (let a = o[m], l = o[m + 1]; a < l; a += i) {
1769
+ let i = s.getValue(a + r), o = s.getValue(a + n);
1770
+ if (i === t) {
1771
+ if (h.nodeIndex = o, !h.isDocumentDOMTreesRoot()) continue;
1772
+ } else if (i !== e) continue;
1773
+ let l = o / c;
1774
+ f[p++] = l, u[l] |= d;
1775
+ }
1776
+ for (; p;) {
1777
+ let e = f[--p], t = o[e], l = o[e + 1];
1778
+ for (let e = t; e < l; e += i) {
1779
+ let t = s.getValue(e + n) / c;
1780
+ u[t] & d || s.getValue(e + r) !== a && (f[p++] = t, u[t] |= d);
1781
+ }
1782
+ }
1783
+ }
1784
+ calculateStatistics() {
1785
+ let e = this.nodeFieldCount, t = this.nodes, n = t.length, r = this.nodeTypeOffset, i = this.nodeSelfSizeOffset, a = this.nodeNativeType, o = this.nodeCodeType, s = this.nodeConsStringType, c = this.nodeSlicedStringType, l = this.nodeHiddenType, u = this.nodeStringType, d = this.profile.snapshot.extra_native_bytes ?? 0, f = 0, p = 0, m = 0, h = 0, g = 0, _ = this.rootNode();
1786
+ for (let v = 0; v < n; v += e) {
1787
+ let e = t.getValue(v + i), n = t.getValue(v + r);
1788
+ if (n === l) {
1789
+ g += e;
1790
+ continue;
1791
+ }
1792
+ _.nodeIndex = v, n === a ? (d += e, _.rawName() === "system / JSArrayBufferData" && (f += e)) : n === o ? p += e : n === s || n === c || n === u ? m += e : _.rawName() === "Array" && (h += this.calculateArraySize(_));
1793
+ }
1794
+ this.#e = {
1795
+ total: this.totalSize,
1796
+ native: {
1797
+ total: d,
1798
+ typedArrays: f
1799
+ },
1800
+ v8heap: {
1801
+ total: this.totalSize - d,
1802
+ code: p,
1803
+ jsArrays: h,
1804
+ strings: m,
1805
+ system: g
1806
+ }
1807
+ };
1808
+ }
1809
+ calculateArraySize(e) {
1810
+ let t = e.selfSize(), n = e.edgeIndexesStart(), r = e.edgeIndexesEnd(), i = this.containmentEdges, a = this.strings, o = this.edgeToNodeOffset, s = this.edgeTypeOffset, c = this.edgeNameOffset, l = this.edgeFieldsCount, u = this.edgeInternalType;
1811
+ for (let d = n; d < r; d += l) if (i.getValue(d + s) === u && a[i.getValue(d + c)] === "elements") {
1812
+ e.nodeIndex = i.getValue(d + o), e.retainersCount() === 1 && (t += e.selfSize());
1813
+ break;
1814
+ }
1815
+ return t;
1816
+ }
1817
+ getStatistics() {
1818
+ return this.#e;
1819
+ }
1820
+ };
1821
+ async function ce(e) {
1822
+ let t = new Z(e, new V()), n = new MessageChannel();
1823
+ return new W(n.port2), await t.initialize(n.port1), t;
1824
+ }
1825
+ var Q = class e extends R {
1826
+ canBeQueried() {
1827
+ let e = this.snapshot;
1828
+ return !!(e.flagsOfNode(this) & e.nodeFlags.canBeQueried);
1829
+ }
1830
+ name() {
1831
+ let e = this.snapshot;
1832
+ return this.rawType() === e.nodeConsStringType ? this.consStringName() : this.rawType() === e.nodeObjectType && this.rawName() === "Object" ? this.#e() : this.rawName();
1833
+ }
1834
+ consStringName() {
1835
+ let e = this.snapshot, t = e.nodeConsStringType, n = e.edgeInternalType, r = e.edgeFieldsCount, i = e.edgeToNodeOffset, a = e.edgeTypeOffset, o = e.edgeNameOffset, s = e.strings, c = e.containmentEdges, l = e.firstEdgeIndexes, u = e.nodeFieldCount, d = e.nodeTypeOffset, f = e.nodeNameOffset, p = e.nodes, m = [];
1836
+ m.push(this.nodeIndex);
1837
+ let h = "";
1838
+ for (; m.length && h.length < 1024;) {
1839
+ let e = m.pop();
1840
+ if (p.getValue(e + d) !== t) {
1841
+ h += s[p.getValue(e + f)];
1842
+ continue;
1843
+ }
1844
+ let g = e / u, _ = l[g], v = l[g + 1], y = 0, b = 0;
1845
+ for (let e = _; e < v && (!y || !b); e += r) if (c.getValue(e + a) === n) {
1846
+ let t = s[c.getValue(e + o)];
1847
+ t === "first" ? y = c.getValue(e + i) : t === "second" && (b = c.getValue(e + i));
1848
+ }
1849
+ m.push(b), m.push(y);
1850
+ }
1851
+ return h;
1852
+ }
1853
+ #e() {
1854
+ let t = this.snapshot, { edgeFieldsCount: n, edgePropertyType: r } = t, i = t.createEdge(0), a = "{", o = "}", s = this.edgeIndexesStart(), c = this.edgeIndexesEnd() - n, l = !1;
1855
+ for (; s <= c;) {
1856
+ if (i.edgeIndex = l ? c : s, i.rawType() !== r || i.name() === "__proto__") {
1857
+ l ? c -= n : s += n;
1858
+ continue;
1859
+ }
1860
+ let t = e.formatPropertyName(i.name());
1861
+ if (a.length > 1 && a.length + o.length + t.length > 100) break;
1862
+ l ? (c -= n, o.length > 1 && (o = ", " + o), o = t + o) : (s += n, a.length > 1 && (a += ", "), a += t), l = !l;
1863
+ }
1864
+ return s <= c && (a += ", …"), o.length > 1 && (a += ", "), a + o;
1865
+ }
1866
+ static formatPropertyName(e) {
1867
+ return /[,'"{}]/.test(e) && (e = JSON.stringify({ [e]: 0 }), e = e.substring(1, e.length - 3)), e;
1868
+ }
1869
+ id() {
1870
+ let e = this.snapshot;
1871
+ return e.nodes.getValue(this.nodeIndex + e.nodeIdOffset);
1872
+ }
1873
+ isHidden() {
1874
+ return this.rawType() === this.snapshot.nodeHiddenType;
1875
+ }
1876
+ isArray() {
1877
+ return this.rawType() === this.snapshot.nodeArrayType;
1878
+ }
1879
+ isSynthetic() {
1880
+ return this.rawType() === this.snapshot.nodeSyntheticType;
1881
+ }
1882
+ isNative() {
1883
+ return this.rawType() === this.snapshot.nodeNativeType;
1884
+ }
1885
+ isUserRoot() {
1886
+ return !this.isSynthetic();
1887
+ }
1888
+ isDocumentDOMTreesRoot() {
1889
+ return this.isSynthetic() && this.rawName() === "(Document DOM trees)";
1890
+ }
1891
+ serialize() {
1892
+ let e = super.serialize(), t = this.snapshot, n = t.flagsOfNode(this);
1893
+ return n & t.nodeFlags.canBeQueried && (e.canBeQueried = !0), n & t.nodeFlags.detachedDOMTreeNode && (e.detachedDOMTreeNode = !0), e;
1894
+ }
1895
+ }, le = class e extends N {
1896
+ clone() {
1897
+ let t = this.snapshot;
1898
+ return new e(t, this.edgeIndex);
1899
+ }
1900
+ hasStringName() {
1901
+ return this.isShortcut() ? isNaN(parseInt(this.#t(), 10)) : this.#e();
1902
+ }
1903
+ isElement() {
1904
+ return this.rawType() === this.snapshot.edgeElementType;
1905
+ }
1906
+ isHidden() {
1907
+ return this.rawType() === this.snapshot.edgeHiddenType;
1908
+ }
1909
+ isWeak() {
1910
+ return this.rawType() === this.snapshot.edgeWeakType;
1911
+ }
1912
+ isInternal() {
1913
+ return this.rawType() === this.snapshot.edgeInternalType;
1914
+ }
1915
+ isInvisible() {
1916
+ return this.rawType() === this.snapshot.edgeInvisibleType;
1917
+ }
1918
+ isShortcut() {
1919
+ return this.rawType() === this.snapshot.edgeShortcutType;
1920
+ }
1921
+ name() {
1922
+ let e = this.#t();
1923
+ if (!this.isShortcut()) return String(e);
1924
+ let t = parseInt(e, 10);
1925
+ return String(isNaN(t) ? e : t);
1926
+ }
1927
+ toString() {
1928
+ let e = this.name();
1929
+ switch (this.type()) {
1930
+ case "context": return "->" + e;
1931
+ case "element": return "[" + e + "]";
1932
+ case "weak": return "[[" + e + "]]";
1933
+ case "property": return e.indexOf(" ") === -1 ? "." + e : "[\"" + e + "\"]";
1934
+ case "shortcut": return typeof e == "string" ? e.indexOf(" ") === -1 ? "." + e : "[\"" + e + "\"]" : "[" + e + "]";
1935
+ case "internal":
1936
+ case "hidden":
1937
+ case "invisible": return "{" + e + "}";
1938
+ }
1939
+ return "?" + e + "?";
1940
+ }
1941
+ #e() {
1942
+ let e = this.rawType(), t = this.snapshot;
1943
+ return e !== t.edgeElementType && e !== t.edgeHiddenType;
1944
+ }
1945
+ #t() {
1946
+ return this.#e() ? this.snapshot.strings[this.nameOrIndex()] : this.nameOrIndex();
1947
+ }
1948
+ nameOrIndex() {
1949
+ return this.edges.getValue(this.edgeIndex + this.snapshot.edgeNameOffset);
1950
+ }
1951
+ rawType() {
1952
+ return this.edges.getValue(this.edgeIndex + this.snapshot.edgeTypeOffset);
1953
+ }
1954
+ nameIndex() {
1955
+ if (!this.#e()) throw Error("Edge does not have string name");
1956
+ return this.nameOrIndex();
1957
+ }
1958
+ }, $ = class e extends I {
1959
+ clone() {
1960
+ let t = this.snapshot;
1961
+ return new e(t, this.retainerIndex());
1962
+ }
1963
+ isHidden() {
1964
+ return this.edge().isHidden();
1965
+ }
1966
+ isInvisible() {
1967
+ return this.edge().isInvisible();
1968
+ }
1969
+ isShortcut() {
1970
+ return this.edge().isShortcut();
1971
+ }
1972
+ isWeak() {
1973
+ return this.edge().isWeak();
1974
+ }
1975
+ }, ue = /* @__PURE__ */ e({ HeapSnapshotLoader: () => de }), de = class {
1976
+ #e;
1977
+ #t;
1978
+ #n;
1979
+ #r;
1980
+ #i;
1981
+ #a;
1982
+ #o;
1983
+ #s = "";
1984
+ parsingComplete;
1985
+ constructor(e) {
1986
+ this.#c(), this.#e = new V(e), this.#t = [], this.#n = null, this.#r = !1, this.parsingComplete = this.#m();
1987
+ }
1988
+ dispose() {
1989
+ this.#c();
1990
+ }
1991
+ #c() {
1992
+ this.#s = "", this.#i = void 0;
1993
+ }
1994
+ close() {
1995
+ this.#r = !0, this.#n && this.#n("");
1996
+ }
1997
+ async buildSnapshot(e) {
1998
+ await this.parsingComplete, this.#i = this.#i || {}, this.#e.updateStatus("Processing snapshot…");
1999
+ let t = new Z(this.#i, this.#e);
2000
+ return await t.initialize(e), this.#c(), t;
2001
+ }
2002
+ #l() {
2003
+ let e = 0, t = this.#s.length;
2004
+ for (;;) {
2005
+ for (; e < t;) {
2006
+ let t = this.#s.charCodeAt(e);
2007
+ if (48 <= t && t <= 57) break;
2008
+ if (t === 93) return this.#s = this.#s.slice(e + 1), !1;
2009
+ ++e;
2010
+ }
2011
+ if (e === t) return this.#s = "", !0;
2012
+ let n = 0, r = e;
2013
+ for (; e < t;) {
2014
+ let t = this.#s.charCodeAt(e);
2015
+ if (48 > t || t > 57) break;
2016
+ n *= 10, n += t - 48, ++e;
2017
+ }
2018
+ if (e === t) return this.#s = this.#s.slice(r), !0;
2019
+ if (!this.#a) throw Error("Array not instantiated");
2020
+ this.#a.setValue(this.#o++, n);
2021
+ }
2022
+ }
2023
+ #u() {
2024
+ this.#e.updateStatus("Parsing strings…");
2025
+ let e = this.#s.lastIndexOf("]");
2026
+ if (e === -1) throw Error("Incomplete JSON");
2027
+ if (this.#s = this.#s.slice(0, e + 1), !this.#i) throw Error("No snapshot in parseStringsArray");
2028
+ this.#i.strings = JSON.parse(this.#s);
2029
+ }
2030
+ write(e) {
2031
+ this.#t.push(e), this.#n &&= (this.#n(this.#t.shift()), null);
2032
+ }
2033
+ #d() {
2034
+ if (this.#t.length > 0) return Promise.resolve(this.#t.shift());
2035
+ let { promise: e, resolve: t } = Promise.withResolvers();
2036
+ return this.#n = t, e;
2037
+ }
2038
+ async #f(e, t) {
2039
+ for (;;) {
2040
+ let n = this.#s.indexOf(e, t || 0);
2041
+ if (n !== -1) return n;
2042
+ t = this.#s.length - e.length + 1, this.#s += await this.#d();
2043
+ }
2044
+ }
2045
+ async #p(e, t, n) {
2046
+ let i = await this.#f(e), a = await this.#f("[", i);
2047
+ for (this.#s = this.#s.slice(a + 1), this.#a = n === void 0 ? s() : r(n), this.#o = 0; this.#l();) n ? this.#e.updateProgress(t, this.#o, this.#a.length) : this.#e.updateStatus(t), this.#s += await this.#d();
2048
+ let o = this.#a;
2049
+ return this.#a = null, o;
2050
+ }
2051
+ async #m() {
2052
+ let e = await this.#f("\"snapshot\"");
2053
+ if (e === -1) throw Error("Snapshot token not found");
2054
+ this.#e.updateStatus("Loading snapshot info…");
2055
+ let t = this.#s.slice(e + 10 + 1), n = !1, r = new d((e) => {
2056
+ this.#s = r.remainder(), n = !0, this.#i = this.#i || {}, this.#i.snapshot = JSON.parse(e);
2057
+ });
2058
+ for (r.write(t); !n;) r.write(await this.#d());
2059
+ this.#i = this.#i || {};
2060
+ let i = await this.#p("\"nodes\"", "Loading nodes… {PH1}%", this.#i.snapshot.meta.node_fields.length * this.#i.snapshot.node_count);
2061
+ this.#i.nodes = i;
2062
+ let a = await this.#p("\"edges\"", "Loading edges… {PH1}%", this.#i.snapshot.meta.edge_fields.length * this.#i.snapshot.edge_count);
2063
+ if (this.#i.edges = a, this.#i.snapshot.trace_function_count) {
2064
+ let e = await this.#p("\"trace_function_infos\"", "Loading allocation traces… {PH1}%", this.#i.snapshot.meta.trace_function_info_fields.length * this.#i.snapshot.trace_function_count);
2065
+ this.#i.trace_function_infos = e.asUint32ArrayOrFail();
2066
+ let t = await this.#f(":"), n = await this.#f("\"", t), r = this.#s.indexOf("["), i = this.#s.lastIndexOf("]", n);
2067
+ this.#i.trace_tree = JSON.parse(this.#s.substring(r, i + 1)), this.#s = this.#s.slice(i + 1);
2068
+ }
2069
+ if (this.#i.snapshot.meta.sample_fields) {
2070
+ let e = await this.#p("\"samples\"", "Loading samples…");
2071
+ this.#i.samples = e.asArrayOrFail();
2072
+ }
2073
+ if (this.#i.snapshot.meta.location_fields) {
2074
+ let e = await this.#p("\"locations\"", "Loading locations…");
2075
+ this.#i.locations = e.asArrayOrFail();
2076
+ } else this.#i.locations = [];
2077
+ this.#e.updateStatus("Loading strings…");
2078
+ let o = await this.#f("\"strings\""), s = await this.#f("[", o);
2079
+ for (this.#s = this.#s.slice(s); this.#t.length > 0 || !this.#r;) this.#s += await this.#d();
2080
+ this.#u();
2081
+ }
2082
+ }, fe = new class {
2083
+ #e = [];
2084
+ #t;
2085
+ constructor(e) {
2086
+ this.#t = e;
2087
+ }
2088
+ sendEvent(e, t) {
2089
+ this.#t({
2090
+ eventName: e,
2091
+ data: t
2092
+ });
2093
+ }
2094
+ async dispatchMessage({ data: e, ports: t }) {
2095
+ let n = {
2096
+ callId: e.callId,
2097
+ result: null
2098
+ };
2099
+ try {
2100
+ switch (e.disposition) {
2101
+ case "createLoader":
2102
+ this.#e[e.objectId] = new de(this);
2103
+ break;
2104
+ case "dispose":
2105
+ delete this.#e[e.objectId];
2106
+ break;
2107
+ case "getter":
2108
+ n.result = this.#e[e.objectId][e.methodName];
2109
+ break;
2110
+ case "factory": {
2111
+ let r = this.#e[e.objectId], i = e.methodArguments.slice();
2112
+ i.push(...t);
2113
+ let a = await r[e.methodName].apply(r, i);
2114
+ a && (this.#e[e.newObjectId] = a), n.result = !!a;
2115
+ break;
2116
+ }
2117
+ case "method": {
2118
+ let t = this.#e[e.objectId];
2119
+ n.result = t[e.methodName].apply(t, e.methodArguments);
2120
+ break;
2121
+ }
2122
+ case "evaluateForTest":
2123
+ try {
2124
+ globalThis.HeapSnapshotWorker = {
2125
+ AllocationProfile: D,
2126
+ HeapSnapshot: M,
2127
+ HeapSnapshotLoader: ue
2128
+ }, globalThis.HeapSnapshotModel = C, n.result = await self.eval(e.source);
2129
+ } catch (e) {
2130
+ n.result = e.toString();
2131
+ }
2132
+ break;
2133
+ case "setupForSecondaryInit": this.#e[e.objectId] = new W(t[0]);
2134
+ }
2135
+ } catch (t) {
2136
+ n.error = t.toString(), n.errorCallStack = t.stack, e.methodName && (n.errorMethodName = e.methodName);
2137
+ }
2138
+ this.#t(n);
2139
+ }
2140
+ }(i.workerScope.postMessage.bind(i.workerScope));
2141
+ i.workerScope.onmessage = fe.dispatchMessage.bind(fe), i.workerScope.postMessage("workerReady");
2142
+ //#endregion