@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.
- package/README.i18n.yaml +49 -0
- package/README.md +179 -2
- package/README.zh.md +180 -0
- package/cordis.patch.yml +5 -0
- package/icon.svg +12 -0
- package/lib/client.js +3572 -0
- package/lib/client.page.js +314 -0
- package/lib/devtools/Images/3d-center.svg +3 -0
- package/lib/devtools/Images/3d-pan.svg +3 -0
- package/lib/devtools/Images/3d-rotate.svg +3 -0
- package/lib/devtools/Images/accelerometer-back.svg +69 -0
- package/lib/devtools/Images/accelerometer-bottom.png +0 -0
- package/lib/devtools/Images/accelerometer-front.svg +28 -0
- package/lib/devtools/Images/accelerometer-left.png +0 -0
- package/lib/devtools/Images/accelerometer-right.png +0 -0
- package/lib/devtools/Images/accelerometer-top.png +0 -0
- package/lib/devtools/Images/account-tree.svg +10 -0
- package/lib/devtools/Images/add-photo.svg +3 -0
- package/lib/devtools/Images/ai-explorer-badge.svg +114 -0
- package/lib/devtools/Images/align-content-center.svg +5 -0
- package/lib/devtools/Images/align-content-end.svg +5 -0
- package/lib/devtools/Images/align-content-space-around.svg +6 -0
- package/lib/devtools/Images/align-content-space-between.svg +4 -0
- package/lib/devtools/Images/align-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/align-content-start.svg +5 -0
- package/lib/devtools/Images/align-content-stretch.svg +4 -0
- package/lib/devtools/Images/align-items-baseline.svg +4 -0
- package/lib/devtools/Images/align-items-center.svg +5 -0
- package/lib/devtools/Images/align-items-end.svg +5 -0
- package/lib/devtools/Images/align-items-start.svg +5 -0
- package/lib/devtools/Images/align-items-stretch.svg +6 -0
- package/lib/devtools/Images/align-self-center.svg +3 -0
- package/lib/devtools/Images/align-self-end.svg +4 -0
- package/lib/devtools/Images/align-self-start.svg +4 -0
- package/lib/devtools/Images/align-self-stretch.svg +5 -0
- package/lib/devtools/Images/animation.svg +3 -0
- package/lib/devtools/Images/arrow-back.svg +4 -0
- package/lib/devtools/Images/arrow-collapse.svg +3 -0
- package/lib/devtools/Images/arrow-down.svg +10 -0
- package/lib/devtools/Images/arrow-drop-down-dark.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down-light.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down.svg +3 -0
- package/lib/devtools/Images/arrow-forward.svg +4 -0
- package/lib/devtools/Images/arrow-right-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down.svg +3 -0
- package/lib/devtools/Images/arrow-up.svg +10 -0
- package/lib/devtools/Images/attach-file.svg +3 -0
- package/lib/devtools/Images/baseline-high-availability.svg +17 -0
- package/lib/devtools/Images/baseline-limited-availability.svg +19 -0
- package/lib/devtools/Images/baseline-low-availability.svg +31 -0
- package/lib/devtools/Images/bell.svg +3 -0
- package/lib/devtools/Images/bezier-curve-filled.svg +3 -0
- package/lib/devtools/Images/bin.svg +1 -0
- package/lib/devtools/Images/bottom-panel-close.svg +1 -0
- package/lib/devtools/Images/bottom-panel-open.svg +1 -0
- package/lib/devtools/Images/brackets.svg +1 -0
- package/lib/devtools/Images/breakpoint-circle.svg +4 -0
- package/lib/devtools/Images/breakpoint-crossed-filled.svg +1 -0
- package/lib/devtools/Images/breakpoint-crossed.svg +1 -0
- package/lib/devtools/Images/brush-2.svg +3 -0
- package/lib/devtools/Images/brush-filled.svg +1 -0
- package/lib/devtools/Images/brush.svg +1 -0
- package/lib/devtools/Images/bucket.svg +4 -0
- package/lib/devtools/Images/bug.svg +3 -0
- package/lib/devtools/Images/button-magic.svg +3 -0
- package/lib/devtools/Images/calendar-today.svg +3 -0
- package/lib/devtools/Images/center-focus-weak.svg +3 -0
- package/lib/devtools/Images/check-circle.svg +3 -0
- package/lib/devtools/Images/check-double.svg +3 -0
- package/lib/devtools/Images/checker.svg +12 -0
- package/lib/devtools/Images/checkmark.svg +1 -0
- package/lib/devtools/Images/chevron-double-right.svg +3 -0
- package/lib/devtools/Images/chevron-down.svg +3 -0
- package/lib/devtools/Images/chevron-left-dot.svg +4 -0
- package/lib/devtools/Images/chevron-left.svg +3 -0
- package/lib/devtools/Images/chevron-right.svg +3 -0
- package/lib/devtools/Images/chevron-up.svg +3 -0
- package/lib/devtools/Images/chromeLeft.avif +0 -0
- package/lib/devtools/Images/chromeMiddle.avif +0 -0
- package/lib/devtools/Images/chromeRight.avif +0 -0
- package/lib/devtools/Images/class.svg +6 -0
- package/lib/devtools/Images/clear-list.svg +3 -0
- package/lib/devtools/Images/clear.svg +3 -0
- package/lib/devtools/Images/cloud.svg +3 -0
- package/lib/devtools/Images/code-circle.svg +5 -0
- package/lib/devtools/Images/code-whisperer-badge.svg +166 -0
- package/lib/devtools/Images/code.svg +3 -0
- package/lib/devtools/Images/colon.svg +4 -0
- package/lib/devtools/Images/color-picker-filled.svg +3 -0
- package/lib/devtools/Images/color-picker.svg +3 -0
- package/lib/devtools/Images/compress.svg +8 -0
- package/lib/devtools/Images/console-conditional-breakpoint.svg +1 -0
- package/lib/devtools/Images/console-logpoint.svg +1 -0
- package/lib/devtools/Images/container.svg +4 -0
- package/lib/devtools/Images/cookie.svg +3 -0
- package/lib/devtools/Images/cookie_off.svg +3 -0
- package/lib/devtools/Images/copy.svg +3 -0
- package/lib/devtools/Images/corporate-fare.svg +3 -0
- package/lib/devtools/Images/credit-card.svg +3 -0
- package/lib/devtools/Images/cross-circle-filled.svg +3 -0
- package/lib/devtools/Images/cross-circle.svg +3 -0
- package/lib/devtools/Images/cross.svg +3 -0
- package/lib/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/lib/devtools/Images/database-off.svg +1 -0
- package/lib/devtools/Images/database.svg +3 -0
- package/lib/devtools/Images/deployed.svg +3 -0
- package/lib/devtools/Images/device-fold.svg +1 -0
- package/lib/devtools/Images/devices.svg +3 -0
- package/lib/devtools/Images/devtools-thumbnail.svg +57 -0
- package/lib/devtools/Images/devtools-tips.svg +61 -0
- package/lib/devtools/Images/devtools-user-badge.svg +129 -0
- package/lib/devtools/Images/devtools.svg +13 -0
- package/lib/devtools/Images/difference.svg +3 -0
- package/lib/devtools/Images/dock-bottom.svg +3 -0
- package/lib/devtools/Images/dock-left.svg +3 -0
- package/lib/devtools/Images/dock-right.svg +3 -0
- package/lib/devtools/Images/dock-window.svg +3 -0
- package/lib/devtools/Images/document.svg +3 -0
- package/lib/devtools/Images/dog-paw.svg +10 -0
- package/lib/devtools/Images/dom-detective-badge.svg +136 -0
- package/lib/devtools/Images/domain.svg +3 -0
- package/lib/devtools/Images/dots-horizontal.svg +1 -0
- package/lib/devtools/Images/dots-vertical.svg +3 -0
- package/lib/devtools/Images/download.svg +3 -0
- package/lib/devtools/Images/edit.svg +1 -0
- package/lib/devtools/Images/empty.svg +2 -0
- package/lib/devtools/Images/errorWave.svg +74 -0
- package/lib/devtools/Images/exclamation.svg +3 -0
- package/lib/devtools/Images/expand.svg +1 -0
- package/lib/devtools/Images/experiment-check.svg +1 -0
- package/lib/devtools/Images/experiment.svg +3 -0
- package/lib/devtools/Images/extension.svg +1 -0
- package/lib/devtools/Images/eye-crossed.svg +3 -0
- package/lib/devtools/Images/eye.svg +3 -0
- package/lib/devtools/Images/file-document.svg +3 -0
- package/lib/devtools/Images/file-fetch-xhr.svg +3 -0
- package/lib/devtools/Images/file-font.svg +4 -0
- package/lib/devtools/Images/file-generic.svg +3 -0
- package/lib/devtools/Images/file-image.svg +3 -0
- package/lib/devtools/Images/file-json.svg +4 -0
- package/lib/devtools/Images/file-manifest.svg +3 -0
- package/lib/devtools/Images/file-media.svg +3 -0
- package/lib/devtools/Images/file-script.svg +3 -0
- package/lib/devtools/Images/file-snippet.svg +4 -0
- package/lib/devtools/Images/file-stylesheet.svg +4 -0
- package/lib/devtools/Images/file-wasm.svg +5 -0
- package/lib/devtools/Images/file-websocket.svg +3 -0
- package/lib/devtools/Images/filter-clear.svg +3 -0
- package/lib/devtools/Images/filter-filled.svg +3 -0
- package/lib/devtools/Images/filter.svg +3 -0
- package/lib/devtools/Images/flex-direction.svg +5 -0
- package/lib/devtools/Images/flex-no-wrap.svg +5 -0
- package/lib/devtools/Images/flex-wrap.svg +8 -0
- package/lib/devtools/Images/flow.svg +3 -0
- package/lib/devtools/Images/flowsheet.svg +1 -0
- package/lib/devtools/Images/fold-more.svg +3 -0
- package/lib/devtools/Images/folder-asterisk.svg +10 -0
- package/lib/devtools/Images/folder-off.svg +3 -0
- package/lib/devtools/Images/folder.svg +3 -0
- package/lib/devtools/Images/frame-crossed.svg +3 -0
- package/lib/devtools/Images/frame-icon.svg +54 -0
- package/lib/devtools/Images/frame.svg +3 -0
- package/lib/devtools/Images/gdp-logo-dark.png +0 -0
- package/lib/devtools/Images/gdp-logo-light.png +0 -0
- package/lib/devtools/Images/gear-filled.svg +3 -0
- package/lib/devtools/Images/gear.svg +4 -0
- package/lib/devtools/Images/gears.svg +3 -0
- package/lib/devtools/Images/geminiInDevTools.png +0 -0
- package/lib/devtools/Images/geminiInDevTools_2x.png +0 -0
- package/lib/devtools/Images/global.svg +5 -0
- package/lib/devtools/Images/google.svg +3 -0
- package/lib/devtools/Images/goto-filled.svg +1 -0
- package/lib/devtools/Images/grid-direction.svg +6 -0
- package/lib/devtools/Images/grid-on.svg +10 -0
- package/lib/devtools/Images/group.svg +3 -0
- package/lib/devtools/Images/heap-snapshot.svg +6 -0
- package/lib/devtools/Images/heap-snapshots.svg +7 -0
- package/lib/devtools/Images/help.svg +3 -0
- package/lib/devtools/Images/history.svg +3 -0
- package/lib/devtools/Images/home.svg +3 -0
- package/lib/devtools/Images/hover.svg +6 -0
- package/lib/devtools/Images/iframe-crossed.svg +3 -0
- package/lib/devtools/Images/iframe.svg +3 -0
- package/lib/devtools/Images/import.svg +3 -0
- package/lib/devtools/Images/indeterminate-question-box.svg +3 -0
- package/lib/devtools/Images/info-filled.svg +3 -0
- package/lib/devtools/Images/info.svg +3 -0
- package/lib/devtools/Images/issue-cross-filled.svg +3 -0
- package/lib/devtools/Images/issue-exclamation-filled.svg +3 -0
- package/lib/devtools/Images/issue-questionmark-filled.svg +3 -0
- package/lib/devtools/Images/issue-text-filled.svg +3 -0
- package/lib/devtools/Images/justify-content-center.svg +5 -0
- package/lib/devtools/Images/justify-content-end.svg +5 -0
- package/lib/devtools/Images/justify-content-space-around.svg +6 -0
- package/lib/devtools/Images/justify-content-space-between.svg +4 -0
- package/lib/devtools/Images/justify-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/justify-content-start.svg +5 -0
- package/lib/devtools/Images/justify-content-stretch.svg +4 -0
- package/lib/devtools/Images/justify-items-center.svg +4 -0
- package/lib/devtools/Images/justify-items-end.svg +4 -0
- package/lib/devtools/Images/justify-items-start.svg +4 -0
- package/lib/devtools/Images/justify-items-stretch.svg +4 -0
- package/lib/devtools/Images/keyboard-arrow-right.svg +1 -0
- package/lib/devtools/Images/keyboard-full.svg +10 -0
- package/lib/devtools/Images/keyboard-pen.svg +1 -0
- package/lib/devtools/Images/keyboard.svg +3 -0
- package/lib/devtools/Images/label-auto.svg +3 -0
- package/lib/devtools/Images/label.svg +10 -0
- package/lib/devtools/Images/large-arrow-right-filled.svg +1 -0
- package/lib/devtools/Images/layers-filled.svg +1 -0
- package/lib/devtools/Images/layers.svg +1 -0
- package/lib/devtools/Images/left-panel-close.svg +1 -0
- package/lib/devtools/Images/left-panel-open.svg +1 -0
- package/lib/devtools/Images/lightbulb-spark.svg +13 -0
- package/lib/devtools/Images/lightbulb.svg +3 -0
- package/lib/devtools/Images/lighthouse_logo.svg +158 -0
- package/lib/devtools/Images/list.svg +3 -0
- package/lib/devtools/Images/location-on.svg +3 -0
- package/lib/devtools/Images/lock-person.svg +1 -0
- package/lib/devtools/Images/lock.svg +3 -0
- package/lib/devtools/Images/mark-email-unread.svg +3 -0
- package/lib/devtools/Images/match-case.svg +3 -0
- package/lib/devtools/Images/match-whole-word.svg +1 -0
- package/lib/devtools/Images/memory.svg +6 -0
- package/lib/devtools/Images/minus.svg +3 -0
- package/lib/devtools/Images/mop.svg +1 -0
- package/lib/devtools/Images/mouse.svg +4 -0
- package/lib/devtools/Images/navigationControls.png +0 -0
- package/lib/devtools/Images/navigationControls_2x.png +0 -0
- package/lib/devtools/Images/network-settings.svg +3 -0
- package/lib/devtools/Images/node-stack-icon.svg +1 -0
- package/lib/devtools/Images/nodeIcon.avif +0 -0
- package/lib/devtools/Images/open-externally.svg +3 -0
- package/lib/devtools/Images/override.svg +11 -0
- package/lib/devtools/Images/palette.svg +10 -0
- package/lib/devtools/Images/pause-circle.svg +1 -0
- package/lib/devtools/Images/pause.svg +1 -0
- package/lib/devtools/Images/pen-spark.svg +3 -0
- package/lib/devtools/Images/performance-panel-delete-annotation.svg +32 -0
- package/lib/devtools/Images/performance-panel-diagram.svg +34 -0
- package/lib/devtools/Images/performance-panel-entry-label.svg +75 -0
- package/lib/devtools/Images/performance-panel-time-range.svg +15 -0
- package/lib/devtools/Images/performance.svg +3 -0
- package/lib/devtools/Images/person.svg +3 -0
- package/lib/devtools/Images/photo-camera.svg +10 -0
- package/lib/devtools/Images/play.svg +3 -0
- package/lib/devtools/Images/plus.svg +3 -0
- package/lib/devtools/Images/policy.svg +3 -0
- package/lib/devtools/Images/popoverArrows.png +0 -0
- package/lib/devtools/Images/popup.svg +3 -0
- package/lib/devtools/Images/preview_feature_video_thumbnail.svg +92 -0
- package/lib/devtools/Images/profile.svg +3 -0
- package/lib/devtools/Images/psychiatry.svg +3 -0
- package/lib/devtools/Images/puzzle.svg +3 -0
- package/lib/devtools/Images/record-start.svg +4 -0
- package/lib/devtools/Images/record-stop.svg +4 -0
- package/lib/devtools/Images/redo.svg +3 -0
- package/lib/devtools/Images/refresh.svg +10 -0
- package/lib/devtools/Images/regular-expression.svg +3 -0
- package/lib/devtools/Images/replace.svg +1 -0
- package/lib/devtools/Images/replay.svg +3 -0
- package/lib/devtools/Images/report.svg +1 -0
- package/lib/devtools/Images/resizeDiagonal.svg +1 -0
- package/lib/devtools/Images/resizeHorizontal.svg +1 -0
- package/lib/devtools/Images/resizeVertical.svg +1 -0
- package/lib/devtools/Images/resume.svg +1 -0
- package/lib/devtools/Images/revert.svg +3 -0
- package/lib/devtools/Images/review.svg +5 -0
- package/lib/devtools/Images/right-panel-close.svg +1 -0
- package/lib/devtools/Images/right-panel-open.svg +1 -0
- package/lib/devtools/Images/scissors.svg +3 -0
- package/lib/devtools/Images/screen-rotation.svg +1 -0
- package/lib/devtools/Images/search.svg +3 -0
- package/lib/devtools/Images/select-element.svg +3 -0
- package/lib/devtools/Images/send.svg +3 -0
- package/lib/devtools/Images/shadow.svg +3 -0
- package/lib/devtools/Images/shield.svg +3 -0
- package/lib/devtools/Images/small-status-dot.svg +3 -0
- package/lib/devtools/Images/smart-assistant.svg +3 -0
- package/lib/devtools/Images/snippet.svg +4 -0
- package/lib/devtools/Images/spark-info.svg +3 -0
- package/lib/devtools/Images/spark.svg +3 -0
- package/lib/devtools/Images/speculative-loads.svg +1 -0
- package/lib/devtools/Images/speedster-badge.svg +166 -0
- package/lib/devtools/Images/star.svg +3 -0
- package/lib/devtools/Images/step-into.svg +1 -0
- package/lib/devtools/Images/step-out.svg +1 -0
- package/lib/devtools/Images/step-over.svg +1 -0
- package/lib/devtools/Images/step.svg +1 -0
- package/lib/devtools/Images/stop.svg +3 -0
- package/lib/devtools/Images/symbol.svg +3 -0
- package/lib/devtools/Images/sync.svg +3 -0
- package/lib/devtools/Images/tab-move.svg +1 -0
- package/lib/devtools/Images/table.svg +3 -0
- package/lib/devtools/Images/terminal.svg +10 -0
- package/lib/devtools/Images/text-analysis.svg +3 -0
- package/lib/devtools/Images/thumb-down-filled.svg +3 -0
- package/lib/devtools/Images/thumb-down.svg +3 -0
- package/lib/devtools/Images/thumb-up-filled.svg +3 -0
- package/lib/devtools/Images/thumb-up.svg +3 -0
- package/lib/devtools/Images/tonality.svg +10 -0
- package/lib/devtools/Images/toolbarResizerVertical.png +0 -0
- package/lib/devtools/Images/top-panel-close.svg +1 -0
- package/lib/devtools/Images/top-panel-open.svg +1 -0
- package/lib/devtools/Images/touch-app.svg +4 -0
- package/lib/devtools/Images/touchCursor.png +0 -0
- package/lib/devtools/Images/touchCursor_2x.png +0 -0
- package/lib/devtools/Images/triangle-bottom-right.svg +3 -0
- package/lib/devtools/Images/triangle-down.svg +1 -0
- package/lib/devtools/Images/triangle-left.svg +1 -0
- package/lib/devtools/Images/triangle-right.svg +1 -0
- package/lib/devtools/Images/triangle-up.svg +3 -0
- package/lib/devtools/Images/trophy.svg +3 -0
- package/lib/devtools/Images/tune.svg +3 -0
- package/lib/devtools/Images/undo.svg +1 -0
- package/lib/devtools/Images/warning-filled.svg +3 -0
- package/lib/devtools/Images/warning.svg +3 -0
- package/lib/devtools/Images/watch.svg +3 -0
- package/lib/devtools/Images/whatsnew.svg +61 -0
- package/lib/devtools/Images/width.svg +3 -0
- package/lib/devtools/Images/zoom-in.svg +3 -0
- package/lib/devtools/LICENSE +27 -0
- package/lib/devtools/application_tokens.css +413 -0
- package/lib/devtools/chunks/FormatterActions-FcPgI0uV.js +19 -0
- package/lib/devtools/chunks/UIFilter-CIzBruM3.js +18 -0
- package/lib/devtools/chunks/UIRequestLocation-CtGcVN3I.js +48 -0
- package/lib/devtools/chunks/_qilin-devtools_empty-BvRk9kiK.js +0 -0
- package/lib/devtools/chunks/accessibility-CwvHp3sj.js +2718 -0
- package/lib/devtools/chunks/acorn-_jSanihy.js +3232 -0
- package/lib/devtools/chunks/adorners-D4aU6nuY.js +45 -0
- package/lib/devtools/chunks/ai_assistance-BU6E0Wio.js +4255 -0
- package/lib/devtools/chunks/angular-Dutmu-L9.js +117 -0
- package/lib/devtools/chunks/animation-TEwO5UI_.js +922 -0
- package/lib/devtools/chunks/application-SCf6MiCN.js +12740 -0
- package/lib/devtools/chunks/autofill-Dp3nMnuK.js +198 -0
- package/lib/devtools/chunks/autofill_manager-BXntqfdp.js +58 -0
- package/lib/devtools/chunks/bindings-DgoVEdsr.js +4105 -0
- package/lib/devtools/chunks/browser-DL1S1Kiu.js +62 -0
- package/lib/devtools/chunks/browser_debugger-p7Rr4IBR.js +629 -0
- package/lib/devtools/chunks/changes-DeW5MC9u.js +2 -0
- package/lib/devtools/chunks/changes-k42bihtm.js +393 -0
- package/lib/devtools/chunks/checkbox.css-CZJJ6atQ.js +4 -0
- package/lib/devtools/chunks/chunk-DF993M8W.js +11 -0
- package/lib/devtools/chunks/code_highlighter-BnTPt9_G.js +210 -0
- package/lib/devtools/chunks/codemirror-CBR9VJma.js +15842 -0
- package/lib/devtools/chunks/color_picker-Cuh_X19Y.js +1566 -0
- package/lib/devtools/chunks/common-DjRFwulW.js +15145 -0
- package/lib/devtools/chunks/common-Uu9A2glf.js +2 -0
- package/lib/devtools/chunks/common-qd_KLeYO.js +6639 -0
- package/lib/devtools/chunks/components-CnPGgDUW.js +704 -0
- package/lib/devtools/chunks/components-Cw5tHQqN.js +1338 -0
- package/lib/devtools/chunks/components-EJwviLtZ.js +1090 -0
- package/lib/devtools/chunks/console-D1WlMaFQ.js +3855 -0
- package/lib/devtools/chunks/console-yMm3XVTY.js +2 -0
- package/lib/devtools/chunks/console_counters-9SfIdrUo.js +103 -0
- package/lib/devtools/chunks/coverage-BbFH390Q.js +1176 -0
- package/lib/devtools/chunks/coverage-CLBpovLw.js +2 -0
- package/lib/devtools/chunks/cpp-CdElSCaB.js +435 -0
- package/lib/devtools/chunks/css_overview-cITV9auE.js +1288 -0
- package/lib/devtools/chunks/data_grid-pC5qqfsJ.js +1671 -0
- package/lib/devtools/chunks/developer_resources-4DqQIvy6.js +240 -0
- package/lib/devtools/chunks/diff-qn55JSCS.js +444 -0
- package/lib/devtools/chunks/dom_extension-BfrKZ4JG.js +172 -0
- package/lib/devtools/chunks/elements-CgEYz3mX.js +2 -0
- package/lib/devtools/chunks/elements-Dbx4q9-v.js +11407 -0
- package/lib/devtools/chunks/emulation-C6XKPPGu.js +1306 -0
- package/lib/devtools/chunks/emulation-D8xbdsAj.js +2 -0
- package/lib/devtools/chunks/emulation-EtJlEukP.js +2732 -0
- package/lib/devtools/chunks/emulation-cjFPXHT9.js +157 -0
- package/lib/devtools/chunks/event_listeners-BeTH3gi2.js +414 -0
- package/lib/devtools/chunks/explain-P_aDGFSD.js +747 -0
- package/lib/devtools/chunks/greendev-BU0QcVPX.js +152 -0
- package/lib/devtools/chunks/heap_snapshot-CZt2KUPL.js +427 -0
- package/lib/devtools/chunks/helper-CI72KvIC.js +33 -0
- package/lib/devtools/chunks/helpers--xrfGSwQ.js +29 -0
- package/lib/devtools/chunks/i18n-DvFMqQdJ.js +17 -0
- package/lib/devtools/chunks/icon_button-BebVdJD8.js +83 -0
- package/lib/devtools/chunks/inline_editor-D54X5UUr.js +1309 -0
- package/lib/devtools/chunks/inspector_main-DRbdXLmF.js +279 -0
- package/lib/devtools/chunks/issue_counter-CeOjTNGW.js +193 -0
- package/lib/devtools/chunks/issues-CegBKEda.js +1649 -0
- package/lib/devtools/chunks/issues_manager-D7nfNPN1.js +3009 -0
- package/lib/devtools/chunks/java-7g_qfFa2.js +263 -0
- package/lib/devtools/chunks/layer_viewer-CaFC5oyv.js +1423 -0
- package/lib/devtools/chunks/layers-CXqlD9zH.js +370 -0
- package/lib/devtools/chunks/legacy-Bqn4Q0Tf.js +41804 -0
- package/lib/devtools/chunks/legacy-DOCLCisy.js +1434 -0
- package/lib/devtools/chunks/less-DXiRNbd4.js +195 -0
- package/lib/devtools/chunks/lighthouse-DtpzvfT6.js +3920 -0
- package/lib/devtools/chunks/lighthouse-T9ZpmENr.js +2 -0
- package/lib/devtools/chunks/linear_memory_inspector-C50PtM45.js +305 -0
- package/lib/devtools/chunks/live-metrics-Bs7wxibB.js +284 -0
- package/lib/devtools/chunks/main-C5y6NscM.js +2 -0
- package/lib/devtools/chunks/main-DcgYyEI0.js +755 -0
- package/lib/devtools/chunks/markdown-tZoR6Bsu.js +1512 -0
- package/lib/devtools/chunks/markdown_view-C67b2DdG.js +461 -0
- package/lib/devtools/chunks/marked-zGgfoDxO.js +1362 -0
- package/lib/devtools/chunks/media-BhuqASbO.js +1337 -0
- package/lib/devtools/chunks/media-Wfo1AbXC.js +2 -0
- package/lib/devtools/chunks/menus-BAUukA5-.js +969 -0
- package/lib/devtools/chunks/mobile_throttling-C26zde8o.js +2 -0
- package/lib/devtools/chunks/mobile_throttling-Cw4AkJH4.js +1052 -0
- package/lib/devtools/chunks/network-C3gIloDN.js +2 -0
- package/lib/devtools/chunks/network-CaxdpGU2.js +9181 -0
- package/lib/devtools/chunks/objectValue.css-C9o9fdM2.js +4 -0
- package/lib/devtools/chunks/object_ui-BYgPTK_b.js +1461 -0
- package/lib/devtools/chunks/object_ui-E7eR7aD-.js +2 -0
- package/lib/devtools/chunks/perf_ui-BqzJrt4p.js +2 -0
- package/lib/devtools/chunks/perf_ui-CQMkYfn3.js +3143 -0
- package/lib/devtools/chunks/performance_monitor-B2kUoCv0.js +385 -0
- package/lib/devtools/chunks/php-tl5gKrxu.js +423 -0
- package/lib/devtools/chunks/platform-BzB373NB.js +600 -0
- package/lib/devtools/chunks/profiler-BGu3akEf.js +4608 -0
- package/lib/devtools/chunks/protocol_client-Cwf_jb8R.js +24329 -0
- package/lib/devtools/chunks/protocol_monitor-B9nMqAAE.js +2 -0
- package/lib/devtools/chunks/protocol_monitor-CvLQ8ms1.js +1224 -0
- package/lib/devtools/chunks/puppeteer-CaOjgj3v.js +13299 -0
- package/lib/devtools/chunks/python-D9AdRkMm.js +580 -0
- package/lib/devtools/chunks/quick_open-C3IZ69m9.js +2 -0
- package/lib/devtools/chunks/quick_open-DRITaPnZ.js +722 -0
- package/lib/devtools/chunks/recorder-C0f1n95b.js +5465 -0
- package/lib/devtools/chunks/recorder-actions-S2RfLX4H.js +6 -0
- package/lib/devtools/chunks/request_link_icon-fGy57GcW.js +87 -0
- package/lib/devtools/chunks/root-DbVQo07X.js +255 -0
- package/lib/devtools/chunks/sass-BPQlMmw2.js +370 -0
- package/lib/devtools/chunks/security-NbgKa3ux.js +898 -0
- package/lib/devtools/chunks/sensors-nM7qcBE4.js +752 -0
- package/lib/devtools/chunks/settings-aKtQC12v.js +1433 -0
- package/lib/devtools/chunks/settings_ui-CzxAFzIb.js +175 -0
- package/lib/devtools/chunks/snackbars-lPThuWYs.js +12010 -0
- package/lib/devtools/chunks/snippets-dIuBmVBv.js +173 -0
- package/lib/devtools/chunks/source_frame-CSjno3kf.js +1352 -0
- package/lib/devtools/chunks/sources-BIZssBei.js +8216 -0
- package/lib/devtools/chunks/sources-Bf8QJxju.js +2 -0
- package/lib/devtools/chunks/suggestion_input-Duuu5pyd.js +196 -0
- package/lib/devtools/chunks/svelte-DJS1itbE.js +744 -0
- package/lib/devtools/chunks/textInput.css-DPvwvIic.js +4 -0
- package/lib/devtools/chunks/text_editor-Dq1P6D2J.js +15706 -0
- package/lib/devtools/chunks/text_utils-ohNt_gua.js +608 -0
- package/lib/devtools/chunks/theme_support-CbSSLkbO.js +92 -0
- package/lib/devtools/chunks/third-party-web-DGiPoc0U.js +12626 -0
- package/lib/devtools/chunks/timeline-BE_ysZxO.js +2 -0
- package/lib/devtools/chunks/timeline-C4vCX79k.js +16347 -0
- package/lib/devtools/chunks/utils-CELci976.js +298 -0
- package/lib/devtools/chunks/vue-CjH9yovn.js +73 -0
- package/lib/devtools/chunks/wast-CbGHiqaW.js +109 -0
- package/lib/devtools/chunks/web_audio-IdfBLjwV.js +277 -0
- package/lib/devtools/chunks/webauthn-iRZlbjGV.js +522 -0
- package/lib/devtools/chunks/whats_new-DOTPf2xJ.js +177 -0
- package/lib/devtools/chunks/xml-DI9dcP5w.js +327 -0
- package/lib/devtools/connect.js +9 -0
- package/lib/devtools/design_system_tokens.css +1061 -0
- package/lib/devtools/device_mode_emulation_frame.html +25 -0
- package/lib/devtools/devtools_app.html +25 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/optimized_images.gni +53 -0
- package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +4 -0
- package/lib/devtools/entrypoints/devtools_app/devtools_app.js +6240 -0
- package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +2810 -0
- package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +2142 -0
- package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +290095 -0
- package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +3403 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/LowTextContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspURLViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/deprecation.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/heavyAd.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/mixedContent.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -0
- package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -0
- package/lib/devtools/panels/whats_new/resources/WNDT.md +14 -0
- package/lib/devtools/resource-manifest.json +3818 -0
- package/lib/devtools/third_party/acorn/package/LICENSE +21 -0
- package/lib/devtools/third_party/axe-core/LICENSE +362 -0
- package/lib/devtools/third_party/chromium/LICENSE +27 -0
- package/lib/devtools/third_party/codemirror/package/LICENSE +21 -0
- package/lib/devtools/third_party/codemirror.next/LICENSE +21 -0
- package/lib/devtools/third_party/csp_evaluator/package/LICENSE +202 -0
- package/lib/devtools/third_party/diff/LICENSE +202 -0
- package/lib/devtools/third_party/i18n/LICENSE +202 -0
- package/lib/devtools/third_party/intl-messageformat/LICENSE +33 -0
- package/lib/devtools/third_party/intl-messageformat/package/LICENSE.md +33 -0
- package/lib/devtools/third_party/json5/LICENSE +23 -0
- package/lib/devtools/third_party/legacy-javascript/LICENSE +202 -0
- package/lib/devtools/third_party/lighthouse/LICENSE +202 -0
- package/lib/devtools/third_party/lit/LICENSE +28 -0
- package/lib/devtools/third_party/marked/LICENSE +39 -0
- package/lib/devtools/third_party/marked/package/LICENSE.md +44 -0
- package/lib/devtools/third_party/puppeteer/LICENSE +202 -0
- package/lib/devtools/third_party/puppeteer/third_party/mitt/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/parsel/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/rxjs/LICENSE +201 -0
- package/lib/devtools/third_party/puppeteer-replay/package/LICENSE +202 -0
- package/lib/devtools/third_party/source-map-scopes-codec/LICENSE +26 -0
- package/lib/devtools/third_party/source-map-scopes-codec/package/LICENSE +26 -0
- package/lib/devtools/third_party/third-party-web/LICENSE +20 -0
- package/lib/devtools/third_party/third-party-web/package/LICENSE +20 -0
- package/lib/devtools/third_party/vscode.web-custom-data/package/LICENSE.md +21 -0
- package/lib/devtools/third_party/wasmparser/package/LICENSE +177 -0
- package/lib/devtools/third_party/web-vitals/package/LICENSE +202 -0
- package/lib/index.js +2554 -0
- package/lib/types/client/bottom/keyboard.d.ts +10 -0
- package/lib/types/client/bottom/locales.d.ts +17 -0
- package/lib/types/client/bottom/page.d.ts +10 -0
- package/lib/types/client/bottom/resize.d.ts +12 -0
- package/lib/types/client/bridge/controller.d.ts +10 -0
- package/lib/types/client/bridge/dispatcher.d.ts +26 -0
- package/lib/types/client/bridge/lifecycle.d.ts +22 -0
- package/lib/types/client/bridge/locales.d.ts +3 -0
- package/lib/types/client/bridge/publisher.d.ts +42 -0
- package/lib/types/client/bridge/rpc.d.ts +13 -0
- package/lib/types/client/bridge/transport.d.ts +41 -0
- package/lib/types/client/cdp/console.d.ts +45 -0
- package/lib/types/client/cdp/debugger.d.ts +8 -0
- package/lib/types/client/cdp/errors.d.ts +8 -0
- package/lib/types/client/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/client/cdp/index.d.ts +10 -0
- package/lib/types/client/cdp/objects.d.ts +69 -0
- package/lib/types/client/cdp/profiler.d.ts +8 -0
- package/lib/types/client/cdp/properties.d.ts +16 -0
- package/lib/types/client/cdp/runtime.d.ts +79 -0
- package/lib/types/client/cdp/sources.d.ts +53 -0
- package/lib/types/client/cdp/stack.d.ts +27 -0
- package/lib/types/client/index.d.ts +3 -0
- package/lib/types/client/inspection/cordis.d.ts +3 -0
- package/lib/types/client/inspection/network.d.ts +4 -0
- package/lib/types/client/inspection/realm.d.ts +27 -0
- package/lib/types/client/plugin.d.ts +29 -0
- package/lib/types/host/bridge/controller.d.ts +108 -0
- package/lib/types/host/bridge/dispatcher.d.ts +16 -0
- package/lib/types/host/bridge/lifecycle.d.ts +42 -0
- package/lib/types/host/bridge/publisher.d.ts +31 -0
- package/lib/types/host/bridge/rpc.d.ts +15 -0
- package/lib/types/host/bridge/transport.d.ts +28 -0
- package/lib/types/host/cdp/console.d.ts +14 -0
- package/lib/types/host/cdp/debugger.d.ts +8 -0
- package/lib/types/host/cdp/errors.d.ts +6 -0
- package/lib/types/host/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/host/cdp/index.d.ts +10 -0
- package/lib/types/host/cdp/objects.d.ts +8 -0
- package/lib/types/host/cdp/profiler.d.ts +8 -0
- package/lib/types/host/cdp/properties.d.ts +7 -0
- package/lib/types/host/cdp/runtime.d.ts +16 -0
- package/lib/types/host/cdp/sources.d.ts +14 -0
- package/lib/types/host/cdp/stack.d.ts +4 -0
- package/lib/types/host/index.d.ts +3 -0
- package/lib/types/host/inspection/cordis.d.ts +3 -0
- package/lib/types/host/inspection/network.d.ts +23 -0
- package/lib/types/host/inspection/realm.d.ts +9 -0
- package/lib/types/host/plugin.d.ts +19 -0
- package/lib/types/index.d.ts +50 -0
- package/lib/types/shared/bridge/buffer.d.ts +62 -0
- package/lib/types/shared/bridge/codec.d.ts +4 -0
- package/lib/types/shared/bridge/control-codec.d.ts +27 -0
- package/lib/types/shared/bridge/ids.d.ts +19 -0
- package/lib/types/shared/bridge/messages/control.d.ts +64 -0
- package/lib/types/shared/bridge/messages/cordis.d.ts +4 -0
- package/lib/types/shared/bridge/messages/network.d.ts +4 -0
- package/lib/types/shared/bridge/messages/observation.d.ts +110 -0
- package/lib/types/shared/bridge/messages/query/codec.d.ts +40 -0
- package/lib/types/shared/bridge/messages/query/commands.d.ts +35 -0
- package/lib/types/shared/bridge/messages/query/frames.d.ts +31 -0
- package/lib/types/shared/bridge/messages/query/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/command-codec.d.ts +9 -0
- package/lib/types/shared/bridge/messages/runtime/commands.d.ts +76 -0
- package/lib/types/shared/bridge/messages/runtime/console-frames.d.ts +52 -0
- package/lib/types/shared/bridge/messages/runtime/frames.d.ts +98 -0
- package/lib/types/shared/bridge/messages/runtime/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/value-codec.d.ts +28 -0
- package/lib/types/shared/bridge/messages/sources/codec.d.ts +15 -0
- package/lib/types/shared/bridge/messages/sources/commands.d.ts +42 -0
- package/lib/types/shared/bridge/messages/sources/frames.d.ts +67 -0
- package/lib/types/shared/bridge/messages/sources/index.d.ts +5 -0
- package/lib/types/shared/bridge/publisher.d.ts +33 -0
- package/lib/types/shared/bridge/query-reader.d.ts +10 -0
- package/lib/types/shared/bridge/rpc.d.ts +62 -0
- package/lib/types/shared/bridge/validation.d.ts +3 -0
- package/lib/types/shared/bridge/version.d.ts +3 -0
- package/lib/types/shared/cdp/capabilities.d.ts +17 -0
- package/lib/types/shared/cdp/console.d.ts +28 -0
- package/lib/types/shared/cdp/debugger.d.ts +69 -0
- package/lib/types/shared/cdp/errors.d.ts +27 -0
- package/lib/types/shared/cdp/ids.d.ts +9 -0
- package/lib/types/shared/cdp/index.d.ts +11 -0
- package/lib/types/shared/cdp/operations.d.ts +86 -0
- package/lib/types/shared/cdp/property.d.ts +28 -0
- package/lib/types/shared/cdp/realm.d.ts +137 -0
- package/lib/types/shared/cdp/remote-object.d.ts +44 -0
- package/lib/types/shared/cdp/sources.d.ts +18 -0
- package/lib/types/shared/cordis/collector.d.ts +26 -0
- package/lib/types/shared/cordis/ids.d.ts +7 -0
- package/lib/types/shared/cordis/model.d.ts +61 -0
- package/lib/types/shared/cordis/object-reference.d.ts +14 -0
- package/lib/types/shared/cordis/object-registry.d.ts +80 -0
- package/lib/types/shared/cordis/observer.d.ts +15 -0
- package/lib/types/shared/cordis/projector.d.ts +34 -0
- package/lib/types/shared/cordis/publisher.d.ts +13 -0
- package/lib/types/shared/cordis/reader.d.ts +18 -0
- package/lib/types/shared/cordis/snapshot.d.ts +39 -0
- package/lib/types/shared/dispose.d.ts +11 -0
- package/lib/types/shared/identity.d.ts +12 -0
- package/lib/types/shared/index.d.ts +18 -0
- package/lib/types/shared/json.d.ts +35 -0
- package/lib/types/shared/network/event-source.d.ts +20 -0
- package/lib/types/shared/network/observation.d.ts +52 -0
- package/lib/types/shared/service.d.ts +23 -0
- package/lib/types/shared/validation.d.ts +52 -0
- package/lib/types/shared/web.d.ts +16 -0
- package/lib/types/worker/bridge/endpoint.d.ts +49 -0
- package/lib/types/worker/bridge/hub.d.ts +108 -0
- package/lib/types/worker/bridge/runtime-rpc.d.ts +90 -0
- package/lib/types/worker/bridge/session.d.ts +15 -0
- package/lib/types/worker/bridge/source-rpc.d.ts +42 -0
- package/lib/types/worker/cdp/domains/debugger/cdp-params.d.ts +15 -0
- package/lib/types/worker/cdp/domains/debugger/index.d.ts +6 -0
- package/lib/types/worker/cdp/domains/debugger/projector.d.ts +22 -0
- package/lib/types/worker/cdp/domains/debugger/script-registry.d.ts +70 -0
- package/lib/types/worker/cdp/domains/debugger/session.d.ts +47 -0
- package/lib/types/worker/cdp/domains/dom/index.d.ts +4 -0
- package/lib/types/worker/cdp/domains/dom/model.d.ts +121 -0
- package/lib/types/worker/cdp/domains/dom/session.d.ts +78 -0
- package/lib/types/worker/cdp/domains/native.d.ts +25 -0
- package/lib/types/worker/cdp/domains/network/session.d.ts +46 -0
- package/lib/types/worker/cdp/domains/runtime/cdp-params.d.ts +82 -0
- package/lib/types/worker/cdp/domains/runtime/index.d.ts +3 -0
- package/lib/types/worker/cdp/domains/runtime/object-table.d.ts +117 -0
- package/lib/types/worker/cdp/domains/runtime/session.d.ts +97 -0
- package/lib/types/worker/cdp/ids.d.ts +37 -0
- package/lib/types/worker/cdp/protocol.d.ts +46 -0
- package/lib/types/worker/cdp/realm-sessions.d.ts +67 -0
- package/lib/types/worker/cdp/session.d.ts +39 -0
- package/lib/types/worker/cdp/target.d.ts +17 -0
- package/lib/types/worker/entry.d.ts +3 -0
- package/lib/types/worker/inspection/cordis-query.d.ts +11 -0
- package/lib/types/worker/inspection/cordis-store.d.ts +94 -0
- package/lib/types/worker/inspection/network-store.d.ts +110 -0
- package/lib/types/worker/inspection/query-router.d.ts +78 -0
- package/lib/types/worker/inspection/realm-store.d.ts +58 -0
- package/lib/types/worker/inspection/realm.d.ts +43 -0
- package/lib/types/worker/realms/client/bridge.d.ts +18 -0
- package/lib/types/worker/realms/client/console.d.ts +21 -0
- package/lib/types/worker/realms/client/debugger.d.ts +8 -0
- package/lib/types/worker/realms/client/index.d.ts +18 -0
- package/lib/types/worker/realms/client/runtime.d.ts +28 -0
- package/lib/types/worker/realms/client/scripts.d.ts +15 -0
- package/lib/types/worker/realms/client/sources.d.ts +30 -0
- package/lib/types/worker/realms/client/values.d.ts +55 -0
- package/lib/types/worker/realms/host/bridge.d.ts +49 -0
- package/lib/types/worker/realms/host/console.d.ts +25 -0
- package/lib/types/worker/realms/host/debugger.d.ts +25 -0
- package/lib/types/worker/realms/host/index.d.ts +13 -0
- package/lib/types/worker/realms/host/runtime.d.ts +54 -0
- package/lib/types/worker/realms/host/scripts.d.ts +9 -0
- package/lib/types/worker/realms/host/sources.d.ts +26 -0
- package/lib/types/worker/realms/host/values.d.ts +22 -0
- package/lib/types/worker/server.d.ts +16 -0
- package/lib/worker.js +7289 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +90 -3
|
@@ -0,0 +1,1224 @@
|
|
|
1
|
+
import { n as e } from "./chunk-DF993M8W.js";
|
|
2
|
+
import { gt as t } from "./platform-BzB373NB.js";
|
|
3
|
+
import { bt as n, jt as r, wt as i } from "./common-qd_KLeYO.js";
|
|
4
|
+
import { $i as a, Ad as o, Ao as s, Fo as c, Jn as l, L as u, La as d, Md as f, No as p, Po as m, Qi as h, S as g, Wo as _, Xf as v, Zi as y, ei as b, ii as ee, ja as x, kf as te, mo as S, qa as ne, x as re } from "./legacy-Bqn4Q0Tf.js";
|
|
5
|
+
import { c as ie } from "./text_utils-ohNt_gua.js";
|
|
6
|
+
import { i as C, r as w } from "./protocol_client-Cwf_jb8R.js";
|
|
7
|
+
import { o as ae } from "./bindings-DgoVEdsr.js";
|
|
8
|
+
import "./data_grid-pC5qqfsJ.js";
|
|
9
|
+
import { d as oe } from "./components-Cw5tHQqN.js";
|
|
10
|
+
import { i as T } from "./source_frame-CSjno3kf.js";
|
|
11
|
+
import "./menus-BAUukA5-.js";
|
|
12
|
+
import { t as E } from "./suggestion_input-Duuu5pyd.js";
|
|
13
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/panels/protocol_monitor/JSONEditor.css.mjs
|
|
14
|
+
var se = "/*\n * Copyright 2023 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n* {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n font-size: inherit;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.target-selector {\n max-width: var(--sys-size-21);\n}\n\n.warning-icon {\n margin-left: -18px;\n margin-right: 4px;\n}\n\n.row {\n flex-wrap: wrap;\n}\n\n.row,\n.row-icons {\n display: flex;\n flex-direction: row;\n color: var(--sys-color-token-property-special);\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n align-items: center;\n line-height: 18px;\n margin-top: 3px;\n}\n\n.separator {\n margin-right: 0.5em;\n color: var(--sys-color-on-surface);\n}\n\nul {\n padding-left: 2em;\n}\n\n.optional-parameter {\n color: var(--sys-color-token-attribute-value);\n\n --override-color-recorder-input: var(--sys-color-on-surface);\n}\n\n.undefined-parameter {\n color: var(--sys-color-state-disabled);\n}\n\n.wrapper {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n}\n\n.editor-wrapper {\n padding-left: 1em;\n overflow-x: hidden;\n flex-grow: 1;\n padding-top: 0.5em;\n min-height: 1lh;\n}\n\n.editor-wrapper::after {\n content: \"\";\n display: block;\n height: 50px;\n}\n\n.clear-button,\n.add-button,\n.delete-button {\n opacity: 0%;\n transition: opacity 0.3s ease-in-out;\n}\n\n.clear-button,\n.delete-button {\n margin-left: 5px;\n}\n\n.row:focus-within .delete-button,\n.row:focus-within .add-button,\n.row:focus-within .clear-button,\n.row:hover .delete-button,\n.row:hover .add-button,\n.row:hover .clear-button {\n opacity: 100%;\n}\n\n.protocol-monitor-sidebar-toolbar {\n border-top: 1px solid var(--sys-color-divider);\n}\n", ce = /* @__PURE__ */ e({
|
|
15
|
+
DEFAULT_VIEW: () => H,
|
|
16
|
+
Events: () => me,
|
|
17
|
+
JSONEditor: () => R,
|
|
18
|
+
ParameterType: () => N,
|
|
19
|
+
suggestionFilter: () => L
|
|
20
|
+
}), { html: D, render: le, Directives: ue, nothing: O } = p, { live: k, classMap: A, repeat: de } = ue, j = {
|
|
21
|
+
deleteParameter: "Delete parameter",
|
|
22
|
+
addParameter: "Add a parameter",
|
|
23
|
+
resetDefaultValue: "Reset to default value",
|
|
24
|
+
addCustomProperty: "Add custom property",
|
|
25
|
+
sendCommandCtrlEnter: "Send command - Ctrl+Enter",
|
|
26
|
+
sendCommandCmdEnter: "Send command - ⌘+Enter",
|
|
27
|
+
copyCommand: "Copy command",
|
|
28
|
+
selectTarget: "Select a target"
|
|
29
|
+
}, fe = i("panels/protocol_monitor/JSONEditor.ts", j), M = n.bind(void 0, fe), N = /* @__PURE__ */ function(e) {
|
|
30
|
+
return e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e.ARRAY = "array", e.OBJECT = "object", e.UNKNOWN = "unknown", e;
|
|
31
|
+
}({}), pe = (e) => {
|
|
32
|
+
if (e.length > 150) {
|
|
33
|
+
let [t, n] = e.split(".");
|
|
34
|
+
return t + "", [t, n];
|
|
35
|
+
}
|
|
36
|
+
return [e, ""];
|
|
37
|
+
}, P = new Map([
|
|
38
|
+
["string", ""],
|
|
39
|
+
["number", 0],
|
|
40
|
+
["boolean", !1],
|
|
41
|
+
["unknown", ""]
|
|
42
|
+
]), F = "dummy", I = "<empty_string>";
|
|
43
|
+
function L(e, t) {
|
|
44
|
+
return e.toLowerCase().includes(t.toLowerCase());
|
|
45
|
+
}
|
|
46
|
+
var me = /* @__PURE__ */ function(e) {
|
|
47
|
+
return e.SUBMIT_EDITOR = "submiteditor", e;
|
|
48
|
+
}({}), R = class extends r(b) {
|
|
49
|
+
#e = /* @__PURE__ */ new Map();
|
|
50
|
+
#t = /* @__PURE__ */ new Map();
|
|
51
|
+
#n = /* @__PURE__ */ new Map();
|
|
52
|
+
#r = [];
|
|
53
|
+
#i = [];
|
|
54
|
+
#a = "";
|
|
55
|
+
#o;
|
|
56
|
+
#s;
|
|
57
|
+
#c;
|
|
58
|
+
displayTargetSelector = !0;
|
|
59
|
+
displayCommandInput = !0;
|
|
60
|
+
displayToolbar = !0;
|
|
61
|
+
constructor(e, t = H) {
|
|
62
|
+
super(e, { useShadowDom: !0 }), this.#c = t, this.registerRequiredCSS(se);
|
|
63
|
+
}
|
|
64
|
+
get metadataByCommand() {
|
|
65
|
+
return this.#e;
|
|
66
|
+
}
|
|
67
|
+
set metadataByCommand(e) {
|
|
68
|
+
this.#e = e, this.requestUpdate();
|
|
69
|
+
}
|
|
70
|
+
get typesByName() {
|
|
71
|
+
return this.#t;
|
|
72
|
+
}
|
|
73
|
+
set typesByName(e) {
|
|
74
|
+
this.#t = e, this.requestUpdate();
|
|
75
|
+
}
|
|
76
|
+
get enumsByName() {
|
|
77
|
+
return this.#n;
|
|
78
|
+
}
|
|
79
|
+
set enumsByName(e) {
|
|
80
|
+
this.#n = e, this.requestUpdate();
|
|
81
|
+
}
|
|
82
|
+
get parameters() {
|
|
83
|
+
return this.#r;
|
|
84
|
+
}
|
|
85
|
+
set parameters(e) {
|
|
86
|
+
this.#r = e, this.requestUpdate();
|
|
87
|
+
}
|
|
88
|
+
get targets() {
|
|
89
|
+
return this.#i;
|
|
90
|
+
}
|
|
91
|
+
set targets(e) {
|
|
92
|
+
this.#i = e, this.requestUpdate();
|
|
93
|
+
}
|
|
94
|
+
get command() {
|
|
95
|
+
return this.#a;
|
|
96
|
+
}
|
|
97
|
+
set command(e) {
|
|
98
|
+
this.#a !== e && (this.#a = e, this.requestUpdate());
|
|
99
|
+
}
|
|
100
|
+
set commandToDisplay(e) {
|
|
101
|
+
this.displayCommand(e.command, e.parameters ?? {});
|
|
102
|
+
}
|
|
103
|
+
get targetId() {
|
|
104
|
+
return this.#o;
|
|
105
|
+
}
|
|
106
|
+
set targetId(e) {
|
|
107
|
+
this.#o !== e && (this.#o = e, this.requestUpdate());
|
|
108
|
+
}
|
|
109
|
+
wasShown() {
|
|
110
|
+
super.wasShown(), this.#s = new re(this.contentElement, (e) => this.#m(e), "protocol-monitor.hint"), this.#s.setDisableOnClick(!0), this.#s.setTimeout(300), f.instance().addEventListener(o.AVAILABLE_TARGETS_CHANGED, this.#l, this), this.#l(), this.requestUpdate();
|
|
111
|
+
}
|
|
112
|
+
willHide() {
|
|
113
|
+
super.willHide(), this.#s?.hidePopover(), this.#s?.dispose(), f.instance().removeEventListener(o.AVAILABLE_TARGETS_CHANGED, this.#l, this);
|
|
114
|
+
}
|
|
115
|
+
#l() {
|
|
116
|
+
this.targets = f.instance().targets(), this.targets.length && this.targetId === void 0 && (this.targetId = this.targets[0].id());
|
|
117
|
+
}
|
|
118
|
+
getParameters() {
|
|
119
|
+
let e = (t) => {
|
|
120
|
+
if (t.value !== void 0) switch (t.type) {
|
|
121
|
+
case "number": return Number(t.value);
|
|
122
|
+
case "boolean": return !!t.value;
|
|
123
|
+
case "object": {
|
|
124
|
+
let n = {};
|
|
125
|
+
for (let r of t.value) e(r) !== void 0 && (n[r.name] = e(r));
|
|
126
|
+
return Object.keys(n).length === 0 ? void 0 : n;
|
|
127
|
+
}
|
|
128
|
+
case "array": {
|
|
129
|
+
let n = [];
|
|
130
|
+
for (let r of t.value) n.push(e(r));
|
|
131
|
+
return n.length === 0 ? [] : n;
|
|
132
|
+
}
|
|
133
|
+
case "unknown": try {
|
|
134
|
+
return JSON.parse(t.value);
|
|
135
|
+
} catch {
|
|
136
|
+
return t.value;
|
|
137
|
+
}
|
|
138
|
+
default: return t.value;
|
|
139
|
+
}
|
|
140
|
+
}, t = {};
|
|
141
|
+
for (let n of this.parameters) t[n.name] = e(n);
|
|
142
|
+
return e({
|
|
143
|
+
type: "object",
|
|
144
|
+
name: F,
|
|
145
|
+
optional: !0,
|
|
146
|
+
value: this.parameters,
|
|
147
|
+
description: ""
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
displayCommand(e, t, n) {
|
|
151
|
+
this.targetId = n, this.command = e;
|
|
152
|
+
let r = this.metadataByCommand.get(this.command);
|
|
153
|
+
if (!r?.parameters) return;
|
|
154
|
+
this.populateParametersForCommandWithDefaultValues();
|
|
155
|
+
let i = this.#u("", t, {
|
|
156
|
+
typeRef: F,
|
|
157
|
+
type: "object",
|
|
158
|
+
name: "",
|
|
159
|
+
description: "",
|
|
160
|
+
optional: !0,
|
|
161
|
+
value: []
|
|
162
|
+
}, r.parameters).value, a = new Map(this.parameters.map((e) => [e.name, e]));
|
|
163
|
+
for (let e of i) {
|
|
164
|
+
let t = a.get(e.name);
|
|
165
|
+
t && (t.value = e.value);
|
|
166
|
+
}
|
|
167
|
+
this.requestUpdate();
|
|
168
|
+
}
|
|
169
|
+
#u(e, t, n, r) {
|
|
170
|
+
let i = n?.type || typeof t, a = n?.description ?? "", o = n?.optional ?? !0;
|
|
171
|
+
switch (i) {
|
|
172
|
+
case "string":
|
|
173
|
+
case "boolean":
|
|
174
|
+
case "number": return this.#d(e, t, n);
|
|
175
|
+
case "object": return this.#f(e, t, n, r);
|
|
176
|
+
case "array": return this.#p(e, t, n);
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
type: i,
|
|
180
|
+
name: e,
|
|
181
|
+
optional: o,
|
|
182
|
+
typeRef: n?.typeRef,
|
|
183
|
+
value: t,
|
|
184
|
+
description: a
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
#d(e, t, n) {
|
|
188
|
+
let r = n?.type || typeof t, i = n?.description ?? "";
|
|
189
|
+
return {
|
|
190
|
+
type: r,
|
|
191
|
+
name: e,
|
|
192
|
+
optional: n?.optional ?? !0,
|
|
193
|
+
typeRef: n?.typeRef,
|
|
194
|
+
value: t,
|
|
195
|
+
description: i,
|
|
196
|
+
isCorrectType: n ? this.#b(n, String(t)) : !0
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
#f(e, t, n, r) {
|
|
200
|
+
let i = n?.description ?? "";
|
|
201
|
+
if (typeof t != "object" || !t) throw Error("The value is not an object");
|
|
202
|
+
let a = n?.typeRef;
|
|
203
|
+
if (!a) throw Error("Every object parameters should have a type ref");
|
|
204
|
+
let o = a === F ? r : this.typesByName.get(a);
|
|
205
|
+
if (!o) throw Error("No nested type for keys were found");
|
|
206
|
+
let s = [];
|
|
207
|
+
for (let e of Object.keys(t)) {
|
|
208
|
+
let n = o.find((t) => t.name === e);
|
|
209
|
+
s.push(this.#u(e, t[e], n));
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
type: "object",
|
|
213
|
+
name: e,
|
|
214
|
+
optional: n.optional,
|
|
215
|
+
typeRef: n.typeRef,
|
|
216
|
+
value: s,
|
|
217
|
+
description: i,
|
|
218
|
+
isCorrectType: !0
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
#p(e, t, n) {
|
|
222
|
+
let r = n?.description ?? "", i = n?.optional ?? !0, a = n?.typeRef;
|
|
223
|
+
if (!a) throw Error("Every array parameters should have a type ref");
|
|
224
|
+
if (!Array.isArray(t)) throw Error("The value is not an array");
|
|
225
|
+
let o = z(a) ? void 0 : {
|
|
226
|
+
optional: !0,
|
|
227
|
+
type: "object",
|
|
228
|
+
value: [],
|
|
229
|
+
typeRef: a,
|
|
230
|
+
description: "",
|
|
231
|
+
name: ""
|
|
232
|
+
}, s = [];
|
|
233
|
+
for (let e = 0; e < t.length; e++) {
|
|
234
|
+
let n = this.#u(`${e}`, t[e], o);
|
|
235
|
+
s.push(n);
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
type: "array",
|
|
239
|
+
name: e,
|
|
240
|
+
optional: i,
|
|
241
|
+
typeRef: n?.typeRef,
|
|
242
|
+
value: s,
|
|
243
|
+
description: r,
|
|
244
|
+
isCorrectType: !0
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
#m(e) {
|
|
248
|
+
let t = e.composedPath()[0], n = this.#h(t);
|
|
249
|
+
if (!n?.description) return null;
|
|
250
|
+
let [r, i] = pe(n.description), a = n.type, o = n.replyArgs, s;
|
|
251
|
+
return s = o && o.length > 0 ? D`${i}Returns: ${o}<br>` : a ? D`${i}<br>Type: ${a}<br>` : i, {
|
|
252
|
+
box: t.boxInWindow(),
|
|
253
|
+
show: async (e) => {
|
|
254
|
+
let t = new oe({
|
|
255
|
+
getMessage: () => D`<span>${r}</span>`,
|
|
256
|
+
getPossibleFixMessage: () => s,
|
|
257
|
+
getLearnMoreLink: () => `https://chromedevtools.github.io/devtools-protocol/tot/${this.command.split(".")[0]}/`
|
|
258
|
+
});
|
|
259
|
+
return e.contentElement.appendChild(t), !0;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
#h(e) {
|
|
264
|
+
if (e.matches(".command")) {
|
|
265
|
+
let e = this.metadataByCommand.get(this.command);
|
|
266
|
+
if (e) return {
|
|
267
|
+
description: e.description,
|
|
268
|
+
replyArgs: e.replyArgs
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
if (e.matches(".parameter")) {
|
|
272
|
+
let t = e.dataset.paramid;
|
|
273
|
+
if (!t) return;
|
|
274
|
+
let n = t.split("."), { parameter: r } = this.#y(n);
|
|
275
|
+
return r.description ? {
|
|
276
|
+
description: r.description,
|
|
277
|
+
type: r.type
|
|
278
|
+
} : void 0;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
getCommandJson() {
|
|
282
|
+
return this.command === "" ? "" : JSON.stringify({
|
|
283
|
+
command: this.command,
|
|
284
|
+
parameters: this.getParameters()
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
#g() {
|
|
288
|
+
let e = this.getCommandJson();
|
|
289
|
+
v.copyText(e);
|
|
290
|
+
}
|
|
291
|
+
#_() {
|
|
292
|
+
this.dispatchEventToListeners("submiteditor", {
|
|
293
|
+
command: this.command,
|
|
294
|
+
parameters: this.getParameters(),
|
|
295
|
+
targetId: this.targetId
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
populateParametersForCommandWithDefaultValues() {
|
|
299
|
+
let e = this.metadataByCommand.get(this.command)?.parameters;
|
|
300
|
+
e && (this.parameters = e.map((e) => this.#v(e)));
|
|
301
|
+
}
|
|
302
|
+
#v(e) {
|
|
303
|
+
if (e.type === "object") {
|
|
304
|
+
let t = e.typeRef;
|
|
305
|
+
t ||= F;
|
|
306
|
+
let n = (this.typesByName.get(t) ?? []).map((e) => this.#v(e));
|
|
307
|
+
return {
|
|
308
|
+
...e,
|
|
309
|
+
value: e.optional ? void 0 : n,
|
|
310
|
+
isCorrectType: !0
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
return e.type === "array" ? {
|
|
314
|
+
...e,
|
|
315
|
+
value: e?.optional ? void 0 : e.value?.map((e) => this.#v(e)) || [],
|
|
316
|
+
isCorrectType: !0
|
|
317
|
+
} : {
|
|
318
|
+
...e,
|
|
319
|
+
value: e.optional ? void 0 : P.get(e.type),
|
|
320
|
+
isCorrectType: !0
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
#y(e) {
|
|
324
|
+
let t = this.parameters, n;
|
|
325
|
+
for (let r = 0; r < e.length; r++) {
|
|
326
|
+
let i = e[r], a = t.find((e) => e.name === i);
|
|
327
|
+
if (r === e.length - 1) return {
|
|
328
|
+
parameter: a,
|
|
329
|
+
parentParameter: n
|
|
330
|
+
};
|
|
331
|
+
if (a?.type === "array" || a?.type === "object") a.value && (t = a.value);
|
|
332
|
+
else throw Error("Parameter on the path in not an object or an array");
|
|
333
|
+
n = a;
|
|
334
|
+
}
|
|
335
|
+
throw Error("Not found");
|
|
336
|
+
}
|
|
337
|
+
#b(e, t) {
|
|
338
|
+
if (e.type === "number" && isNaN(Number(t))) return !1;
|
|
339
|
+
let n = this.#M(e);
|
|
340
|
+
return !(n.length !== 0 && !n.includes(t));
|
|
341
|
+
}
|
|
342
|
+
#x = (e) => {
|
|
343
|
+
if (!(e.target instanceof E)) return;
|
|
344
|
+
let t;
|
|
345
|
+
if (e instanceof KeyboardEvent) {
|
|
346
|
+
let n = e.target.renderRoot.querySelector("devtools-editable-content");
|
|
347
|
+
if (!n) return;
|
|
348
|
+
t = n.innerText;
|
|
349
|
+
} else t = e.target.value;
|
|
350
|
+
let n = e.target.getAttribute("data-paramid");
|
|
351
|
+
if (!n) return;
|
|
352
|
+
let r = n.split("."), i = this.#y(r).parameter;
|
|
353
|
+
t === "" ? i.value = P.get(i.type) : (i.value = t, i.isCorrectType = this.#b(i, t)), this.requestUpdate();
|
|
354
|
+
};
|
|
355
|
+
#S = (e) => {
|
|
356
|
+
if (!(e.target instanceof E)) return;
|
|
357
|
+
let t = e.target.value, n = e.target.getAttribute("data-paramid");
|
|
358
|
+
if (!n) return;
|
|
359
|
+
let r = n.split("."), { parameter: i } = this.#y(r);
|
|
360
|
+
i.name = t, this.requestUpdate();
|
|
361
|
+
};
|
|
362
|
+
#C = (e) => {
|
|
363
|
+
e.target instanceof E && e.key === "Enter" && (e.ctrlKey || e.metaKey) && this.#x(e);
|
|
364
|
+
};
|
|
365
|
+
#w(e) {
|
|
366
|
+
if (!(e.target instanceof E)) return;
|
|
367
|
+
let t = e.target.getAttribute("data-paramid");
|
|
368
|
+
if (!t) return;
|
|
369
|
+
let n = t.split("."), r = this.#y(n).parameter;
|
|
370
|
+
r.isCorrectType = !0, this.requestUpdate();
|
|
371
|
+
}
|
|
372
|
+
#T = async (e) => {
|
|
373
|
+
e.target instanceof E && (this.command = e.target.value), this.populateParametersForCommandWithDefaultValues();
|
|
374
|
+
let t = e.target;
|
|
375
|
+
await this.updateComplete, this.#E(t);
|
|
376
|
+
};
|
|
377
|
+
#E(e) {
|
|
378
|
+
let t = this.contentElement.querySelectorAll("devtools-suggestion-input,.add-button"), n = [...t].findIndex((t) => t === e.shadowRoot?.host);
|
|
379
|
+
n >= 0 && n + 1 < t.length ? t[n + 1].focus() : this.contentElement.querySelector("devtools-button[jslogcontext=\"protocol-monitor.send-command\"]")?.focus();
|
|
380
|
+
}
|
|
381
|
+
#D(e, t) {
|
|
382
|
+
if (e.type === "object") {
|
|
383
|
+
let n = e.typeRef;
|
|
384
|
+
n ||= F;
|
|
385
|
+
let r = (this.typesByName.get(n) ?? []).map((e) => this.#D(e, e.name));
|
|
386
|
+
return {
|
|
387
|
+
type: "object",
|
|
388
|
+
name: t,
|
|
389
|
+
optional: e.optional,
|
|
390
|
+
typeRef: n,
|
|
391
|
+
value: r,
|
|
392
|
+
isCorrectType: !0,
|
|
393
|
+
description: e.description
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
return {
|
|
397
|
+
type: e.type,
|
|
398
|
+
name: t,
|
|
399
|
+
optional: e.optional,
|
|
400
|
+
isCorrectType: !0,
|
|
401
|
+
typeRef: e.typeRef,
|
|
402
|
+
value: e.optional ? void 0 : P.get(e.type),
|
|
403
|
+
description: e.description
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
#O(e) {
|
|
407
|
+
let t = e.split("."), { parameter: n, parentParameter: r } = this.#y(t);
|
|
408
|
+
if (n) {
|
|
409
|
+
switch (n.type) {
|
|
410
|
+
case "array": {
|
|
411
|
+
let e = n.typeRef;
|
|
412
|
+
if (!e) throw Error("Every array parameter must have a typeRef");
|
|
413
|
+
let t = this.typesByName.get(e) ?? [], r = t.map((e) => this.#D(e, e.name)), i = z(e) ? e : "object";
|
|
414
|
+
t.length === 0 && this.enumsByName.get(e) && (i = "string"), n.value ||= [], n.value.push({
|
|
415
|
+
type: i,
|
|
416
|
+
name: String(n.value.length),
|
|
417
|
+
optional: !0,
|
|
418
|
+
typeRef: e,
|
|
419
|
+
value: r.length === 0 ? "" : r,
|
|
420
|
+
description: "",
|
|
421
|
+
isCorrectType: !0
|
|
422
|
+
});
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
case "object": {
|
|
426
|
+
let e = n.typeRef;
|
|
427
|
+
if (e ||= F, n.value ||= [], !this.typesByName.get(e)) {
|
|
428
|
+
n.value.push({
|
|
429
|
+
type: "string",
|
|
430
|
+
name: "",
|
|
431
|
+
optional: !0,
|
|
432
|
+
value: "",
|
|
433
|
+
isCorrectType: !0,
|
|
434
|
+
description: "",
|
|
435
|
+
isKeyEditable: !0
|
|
436
|
+
});
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
let t = this.typesByName.get(e) ?? [], i = t.map((e) => this.#D(e, e.name)), a = t.map((e) => this.#v(e));
|
|
440
|
+
r ? n.value.push({
|
|
441
|
+
type: "object",
|
|
442
|
+
name: "",
|
|
443
|
+
optional: !0,
|
|
444
|
+
typeRef: e,
|
|
445
|
+
value: i,
|
|
446
|
+
isCorrectType: !0,
|
|
447
|
+
description: ""
|
|
448
|
+
}) : n.value = a;
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
default:
|
|
452
|
+
n.value = P.get(n.type);
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
this.requestUpdate();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
#k(e, t) {
|
|
459
|
+
if (e?.value !== void 0) {
|
|
460
|
+
switch (e.type) {
|
|
461
|
+
case "object":
|
|
462
|
+
if (e.optional && !t) {
|
|
463
|
+
e.value = void 0;
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
!e.typeRef || !this.typesByName.get(e.typeRef) ? e.value = [] : e.value.forEach((e) => this.#k(e, t));
|
|
467
|
+
break;
|
|
468
|
+
case "array":
|
|
469
|
+
e.value = e.optional ? void 0 : [];
|
|
470
|
+
break;
|
|
471
|
+
default:
|
|
472
|
+
e.value = e.optional ? void 0 : P.get(e.type), e.isCorrectType = !0;
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
this.requestUpdate();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
#A(e, t) {
|
|
479
|
+
if (e && Array.isArray(t.value)) {
|
|
480
|
+
if (t.value.splice(t.value.findIndex((t) => t === e), 1), t.type === "array") for (let e = 0; e < t.value.length; e++) t.value[e].name = String(e);
|
|
481
|
+
this.requestUpdate();
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
#j(e) {
|
|
485
|
+
e.target instanceof HTMLSelectElement && (this.targetId = e.target.value), this.requestUpdate();
|
|
486
|
+
}
|
|
487
|
+
#M(e) {
|
|
488
|
+
if (e.type === "string") {
|
|
489
|
+
let t = this.enumsByName.get(`${e.typeRef}`) ?? {};
|
|
490
|
+
return Object.values(t);
|
|
491
|
+
}
|
|
492
|
+
return e.type === "boolean" ? ["true", "false"] : [];
|
|
493
|
+
}
|
|
494
|
+
performUpdate() {
|
|
495
|
+
let e = {
|
|
496
|
+
onParameterValueBlur: (e) => {
|
|
497
|
+
this.#x(e);
|
|
498
|
+
},
|
|
499
|
+
onParameterKeydown: (e) => {
|
|
500
|
+
this.#C(e);
|
|
501
|
+
},
|
|
502
|
+
onParameterFocus: (e) => {
|
|
503
|
+
this.#w(e);
|
|
504
|
+
},
|
|
505
|
+
onParameterKeyBlur: (e) => {
|
|
506
|
+
this.#S(e);
|
|
507
|
+
},
|
|
508
|
+
onKeydown: (e) => {
|
|
509
|
+
e.key === "Enter" && (e.ctrlKey || e.metaKey) && (this.#C(e), this.#_());
|
|
510
|
+
},
|
|
511
|
+
parameters: this.parameters,
|
|
512
|
+
metadataByCommand: this.metadataByCommand,
|
|
513
|
+
command: this.command,
|
|
514
|
+
typesByName: this.typesByName,
|
|
515
|
+
onCommandInputBlur: (e) => this.#T(e),
|
|
516
|
+
onCommandSend: () => this.#_(),
|
|
517
|
+
onCopyToClipboard: () => this.#g(),
|
|
518
|
+
targets: this.targets,
|
|
519
|
+
targetId: this.targetId,
|
|
520
|
+
onAddParameter: (e) => {
|
|
521
|
+
this.#O(e);
|
|
522
|
+
},
|
|
523
|
+
onClearParameter: (e, t) => {
|
|
524
|
+
this.#k(e, t);
|
|
525
|
+
},
|
|
526
|
+
onDeleteParameter: (e, t) => {
|
|
527
|
+
this.#A(e, t);
|
|
528
|
+
},
|
|
529
|
+
onTargetSelected: (e) => {
|
|
530
|
+
this.#j(e);
|
|
531
|
+
},
|
|
532
|
+
computeDropdownValues: (e) => this.#M(e),
|
|
533
|
+
displayTargetSelector: this.displayTargetSelector,
|
|
534
|
+
displayCommandInput: this.displayCommandInput,
|
|
535
|
+
displayToolbar: this.displayToolbar
|
|
536
|
+
};
|
|
537
|
+
this.#c(e, {}, this.contentElement);
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
function z(e) {
|
|
541
|
+
return e === "string" || e === "boolean" || e === "number";
|
|
542
|
+
}
|
|
543
|
+
function he(e) {
|
|
544
|
+
return D`
|
|
545
|
+
<div class="row attribute padded">
|
|
546
|
+
<div>target<span class="separator">:</span></div>
|
|
547
|
+
<select class="target-selector"
|
|
548
|
+
title=${M(j.selectTarget)}
|
|
549
|
+
jslog=${x("target-selector").track({ change: !0 })}
|
|
550
|
+
@change=${e.onTargetSelected}>
|
|
551
|
+
${e.targets.map((t) => D`
|
|
552
|
+
<option jslog=${d("target").track({
|
|
553
|
+
click: !0,
|
|
554
|
+
resize: !0
|
|
555
|
+
})}
|
|
556
|
+
value=${t.id()} ?selected=${t.id() === e.targetId}>
|
|
557
|
+
${t.name()} (${t.inspectedURL()})
|
|
558
|
+
</option>`)}
|
|
559
|
+
</select>
|
|
560
|
+
</div>
|
|
561
|
+
`;
|
|
562
|
+
}
|
|
563
|
+
function B(e) {
|
|
564
|
+
return D`
|
|
565
|
+
<devtools-button
|
|
566
|
+
title=${e.title}
|
|
567
|
+
.size=${y.SMALL}
|
|
568
|
+
.iconName=${e.iconName}
|
|
569
|
+
.variant=${a.ICON}
|
|
570
|
+
class=${A(e.classMap)}
|
|
571
|
+
@click=${e.onClick}
|
|
572
|
+
.jslogContext=${e.jslogContext}
|
|
573
|
+
></devtools-button>
|
|
574
|
+
`;
|
|
575
|
+
}
|
|
576
|
+
function ge() {
|
|
577
|
+
return D`<devtools-icon name='warning-filled' class='warning-icon small'>
|
|
578
|
+
</devtools-icon>`;
|
|
579
|
+
}
|
|
580
|
+
function V(e, t, n, r, i) {
|
|
581
|
+
return t.sort((e, t) => Number(e.optional) - Number(t.optional)), D`
|
|
582
|
+
<ul>
|
|
583
|
+
${de(t, (t) => {
|
|
584
|
+
let a = r ? `${i}.${t.name}` : t.name, o = t.type === "array" || t.type === "object" ? t.value ?? [] : [], s = z(t.type), c = t.type === "array", l = r && r.type === "array", u = r && r.type === "object", d = t.type === "object", f = t.value === void 0, p = t.optional, m = d && t.typeRef && e.typesByName.get(t.typeRef) !== void 0, h = t.isKeyEditable, g = d && !m, _ = t.type === "string" || t.type === "boolean", v = c && !f && t.value?.length !== 0 || d && !f, y = {
|
|
585
|
+
"optional-parameter": t.optional,
|
|
586
|
+
parameter: !0,
|
|
587
|
+
"undefined-parameter": t.value === void 0 && t.optional
|
|
588
|
+
};
|
|
589
|
+
return D`
|
|
590
|
+
<li class="row">
|
|
591
|
+
<div class="row-icons">
|
|
592
|
+
${t.isCorrectType ? O : D`${ge()}`}
|
|
593
|
+
|
|
594
|
+
<!-- If an object parameter has no predefined keys, show an input to enter the key, otherwise show the name of the parameter -->
|
|
595
|
+
<div class=${A(y)} data-paramId=${a}>
|
|
596
|
+
${h ? D`<devtools-suggestion-input
|
|
597
|
+
data-paramId=${a}
|
|
598
|
+
.isKey=${!0}
|
|
599
|
+
.isCorrectInput=${k(t.isCorrectType)}
|
|
600
|
+
.options=${_ ? e.computeDropdownValues(t) : []}
|
|
601
|
+
.autocomplete=${!1}
|
|
602
|
+
.value=${k(t.name ?? "")}
|
|
603
|
+
.placeholder=${t.value === "" ? I : `<${P.get(t.type)}>`}
|
|
604
|
+
@blur=${e.onParameterKeyBlur}
|
|
605
|
+
@focus=${e.onParameterFocus}
|
|
606
|
+
@keydown=${e.onParameterKeydown}
|
|
607
|
+
></devtools-suggestion-input>` : D`${t.name}`} <span class="separator">:</span>
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
<!-- Render button to add values inside an array parameter -->
|
|
611
|
+
${c ? D`
|
|
612
|
+
${B({
|
|
613
|
+
title: M(j.addParameter),
|
|
614
|
+
iconName: "plus",
|
|
615
|
+
onClick: () => e.onAddParameter(a),
|
|
616
|
+
classMap: { "add-button": !0 },
|
|
617
|
+
jslogContext: "protocol-monitor.add-parameter"
|
|
618
|
+
})}
|
|
619
|
+
` : O}
|
|
620
|
+
|
|
621
|
+
<!-- Render button to complete reset an array parameter or an object parameter-->
|
|
622
|
+
${v ? B({
|
|
623
|
+
title: M(j.resetDefaultValue),
|
|
624
|
+
iconName: "clear",
|
|
625
|
+
onClick: () => e.onClearParameter(t, l),
|
|
626
|
+
classMap: { "clear-button": !0 },
|
|
627
|
+
jslogContext: "protocol-monitor.reset-to-default-value"
|
|
628
|
+
}) : O}
|
|
629
|
+
|
|
630
|
+
<!-- Render the buttons to change the value from undefined to empty string for optional primitive parameters -->
|
|
631
|
+
${s && !l && p && f ? D` ${B({
|
|
632
|
+
title: M(j.addParameter),
|
|
633
|
+
iconName: "plus",
|
|
634
|
+
onClick: () => e.onAddParameter(a),
|
|
635
|
+
classMap: { "add-button": !0 },
|
|
636
|
+
jslogContext: "protocol-monitor.add-parameter"
|
|
637
|
+
})}` : O}
|
|
638
|
+
|
|
639
|
+
<!-- Render the buttons to change the value from undefined to populate the values inside object with their default values -->
|
|
640
|
+
${d && p && f && m ? D` ${B({
|
|
641
|
+
title: M(j.addParameter),
|
|
642
|
+
iconName: "plus",
|
|
643
|
+
onClick: () => e.onAddParameter(a),
|
|
644
|
+
classMap: { "add-button": !0 },
|
|
645
|
+
jslogContext: "protocol-monitor.add-parameter"
|
|
646
|
+
})}` : O}
|
|
647
|
+
</div>
|
|
648
|
+
|
|
649
|
+
<div class="row-icons">
|
|
650
|
+
<!-- If an object has no predefined keys, show an input to enter the value, and a delete icon to delete the whole key/value pair -->
|
|
651
|
+
${h && u ? D`
|
|
652
|
+
<!-- @ts-ignore -->
|
|
653
|
+
<devtools-suggestion-input
|
|
654
|
+
data-paramId=${a}
|
|
655
|
+
.isCorrectInput=${k(t.isCorrectType)}
|
|
656
|
+
.options=${_ ? e.computeDropdownValues(t) : []}
|
|
657
|
+
.autocomplete=${!1}
|
|
658
|
+
.value=${k(t.value ?? "")}
|
|
659
|
+
.placeholder=${t.value === "" ? I : `<${P.get(t.type)}>`}
|
|
660
|
+
.jslogContext=${"parameter-value"}
|
|
661
|
+
@blur=${e.onParameterValueBlur}
|
|
662
|
+
@focus=${e.onParameterFocus}
|
|
663
|
+
@keydown=${e.onParameterKeydown}
|
|
664
|
+
></devtools-suggestion-input>
|
|
665
|
+
|
|
666
|
+
${B({
|
|
667
|
+
title: M(j.deleteParameter),
|
|
668
|
+
iconName: "bin",
|
|
669
|
+
onClick: () => e.onDeleteParameter(t, r),
|
|
670
|
+
classMap: {
|
|
671
|
+
deleteButton: !0,
|
|
672
|
+
deleteIcon: !0
|
|
673
|
+
},
|
|
674
|
+
jslogContext: "protocol-monitor.delete-parameter"
|
|
675
|
+
})}` : O}
|
|
676
|
+
|
|
677
|
+
<!-- In case the parameter is not optional or its value is not undefined render the input -->
|
|
678
|
+
${s && !h && (!f || !p) && !l ? D`
|
|
679
|
+
<!-- @ts-ignore -->
|
|
680
|
+
<devtools-suggestion-input
|
|
681
|
+
data-paramId=${a}
|
|
682
|
+
.strikethrough=${k(t.isCorrectType)}
|
|
683
|
+
.options=${_ ? e.computeDropdownValues(t) : []}
|
|
684
|
+
.autocomplete=${!1}
|
|
685
|
+
.value=${k(t.value ?? "")}
|
|
686
|
+
.placeholder=${t.value === "" ? I : `<${P.get(t.type)}>`}
|
|
687
|
+
.jslogContext=${"parameter-value"}
|
|
688
|
+
@blur=${e.onParameterValueBlur}
|
|
689
|
+
@focus=${e.onParameterFocus}
|
|
690
|
+
@keydown=${e.onParameterKeydown}
|
|
691
|
+
></devtools-suggestion-input>` : O}
|
|
692
|
+
|
|
693
|
+
<!-- Render the buttons to change the value from empty string to undefined for optional primitive parameters -->
|
|
694
|
+
${s && !h && !l && p && !f ? D` ${B({
|
|
695
|
+
title: M(j.resetDefaultValue),
|
|
696
|
+
iconName: "clear",
|
|
697
|
+
onClick: () => e.onClearParameter(t),
|
|
698
|
+
classMap: { "clear-button": !0 },
|
|
699
|
+
jslogContext: "protocol-monitor.reset-to-default-value"
|
|
700
|
+
})}` : O}
|
|
701
|
+
|
|
702
|
+
<!-- If the parameter is an object with no predefined keys, renders a button to add key/value pairs to it's value -->
|
|
703
|
+
${g ? D`
|
|
704
|
+
${B({
|
|
705
|
+
title: M(j.addCustomProperty),
|
|
706
|
+
iconName: "plus",
|
|
707
|
+
onClick: () => e.onAddParameter(a),
|
|
708
|
+
classMap: { "add-button": !0 },
|
|
709
|
+
jslogContext: "protocol-monitor.add-custom-property"
|
|
710
|
+
})}
|
|
711
|
+
` : O}
|
|
712
|
+
|
|
713
|
+
<!-- In case the parameter is nested inside an array we render the input field as well as a delete button -->
|
|
714
|
+
${l ? D`
|
|
715
|
+
<!-- If the parameter is an object we don't want to display the input field we just want the delete button-->
|
|
716
|
+
${d ? O : D`
|
|
717
|
+
<!-- @ts-ignore -->
|
|
718
|
+
<devtools-suggestion-input
|
|
719
|
+
data-paramId=${a}
|
|
720
|
+
.options=${_ ? e.computeDropdownValues(t) : []}
|
|
721
|
+
.autocomplete=${!1}
|
|
722
|
+
.value=${k(t.value ?? "")}
|
|
723
|
+
.placeholder=${t.value === "" ? I : `<${P.get(t.type)}>`}
|
|
724
|
+
.jslogContext=${"parameter"}
|
|
725
|
+
@blur=${e.onParameterValueBlur}
|
|
726
|
+
@keydown=${e.onParameterKeydown}
|
|
727
|
+
class=${A({ "json-input": !0 })}
|
|
728
|
+
></devtools-suggestion-input>`}
|
|
729
|
+
|
|
730
|
+
${B({
|
|
731
|
+
title: M(j.deleteParameter),
|
|
732
|
+
iconName: "bin",
|
|
733
|
+
onClick: () => e.onDeleteParameter(t, r),
|
|
734
|
+
classMap: { "delete-button": !0 },
|
|
735
|
+
jslogContext: "protocol-monitor.delete-parameter"
|
|
736
|
+
})}` : O}
|
|
737
|
+
</div>
|
|
738
|
+
</li>
|
|
739
|
+
${V(e, o, n, t, a)}
|
|
740
|
+
`;
|
|
741
|
+
})}
|
|
742
|
+
</ul>
|
|
743
|
+
`;
|
|
744
|
+
}
|
|
745
|
+
var H = (e, t, n) => {
|
|
746
|
+
le(D`
|
|
747
|
+
<div class="wrapper" @keydown=${e.onKeydown} jslog=${ne("command-editor").track({ resize: !0 })}>
|
|
748
|
+
<div class="editor-wrapper">
|
|
749
|
+
${e.displayTargetSelector === !1 ? O : he(e)}
|
|
750
|
+
${e.displayCommandInput === !1 ? O : D`
|
|
751
|
+
<div class="row attribute padded">
|
|
752
|
+
<div class="command">command<span class="separator">:</span></div>
|
|
753
|
+
<devtools-suggestion-input
|
|
754
|
+
.options=${[...e.metadataByCommand.keys()]}
|
|
755
|
+
.value=${e.command}
|
|
756
|
+
.placeholder=${"Enter your command…"}
|
|
757
|
+
.suggestionFilter=${L}
|
|
758
|
+
.jslogContext=${"command"}
|
|
759
|
+
@blur=${e.onCommandInputBlur}
|
|
760
|
+
class=${A({ "json-input": !0 })}
|
|
761
|
+
></devtools-suggestion-input>
|
|
762
|
+
</div>`}
|
|
763
|
+
${e.parameters.length ? D`
|
|
764
|
+
<div class="row attribute padded">
|
|
765
|
+
<div>parameters<span class="separator">:</span></div>
|
|
766
|
+
</div>
|
|
767
|
+
${V(e, e.parameters)}
|
|
768
|
+
` : O}
|
|
769
|
+
</div>
|
|
770
|
+
${e.displayToolbar === !1 ? O : D`
|
|
771
|
+
<devtools-toolbar class="protocol-monitor-sidebar-toolbar">
|
|
772
|
+
<devtools-button title=${M(j.copyCommand)}
|
|
773
|
+
.iconName=${"copy"}
|
|
774
|
+
.jslogContext=${"protocol-monitor.copy-command"}
|
|
775
|
+
.variant=${a.TOOLBAR}
|
|
776
|
+
@click=${e.onCopyToClipboard}></devtools-button>
|
|
777
|
+
<div class=toolbar-spacer></div>
|
|
778
|
+
<devtools-button title=${te() ? M(j.sendCommandCmdEnter) : M(j.sendCommandCtrlEnter)}
|
|
779
|
+
.iconName=${"send"}
|
|
780
|
+
jslogContext="protocol-monitor.send-command"
|
|
781
|
+
.variant=${a.PRIMARY_TOOLBAR}
|
|
782
|
+
@click=${e.onCommandSend}></devtools-button>
|
|
783
|
+
</devtools-toolbar>
|
|
784
|
+
`}
|
|
785
|
+
</div>`, n);
|
|
786
|
+
}, _e = "/*\n * Copyright 2021 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n@scope to (devtools-widget > *) {\n .protocol-monitor-toolbar {\n border-bottom: 1px solid var(--sys-color-divider);\n }\n\n .protocol-monitor-bottom-toolbar {\n border-top: 1px solid var(--sys-color-divider);\n }\n\n .target-selector {\n max-width: 120px;\n }\n\n .protocol-monitor-main {\n /* allows the main area to grow automatically */\n flex-grow: 1;\n }\n}\n", ve = /* @__PURE__ */ e({
|
|
787
|
+
CommandAutocompleteSuggestionProvider: () => Z,
|
|
788
|
+
DEFAULT_VIEW: () => X,
|
|
789
|
+
InfoWidget: () => Q,
|
|
790
|
+
ProtocolMonitorImpl: () => Se,
|
|
791
|
+
buildProtocolMetadata: () => q,
|
|
792
|
+
parseCommandInput: () => $
|
|
793
|
+
}), { styleMap: U } = _, { widget: W, widgetRef: ye } = ee, G = {
|
|
794
|
+
method: "Method",
|
|
795
|
+
type: "Type",
|
|
796
|
+
request: "Request",
|
|
797
|
+
response: "Response",
|
|
798
|
+
timestamp: "Timestamp",
|
|
799
|
+
elapsedTime: "Elapsed time",
|
|
800
|
+
target: "Target",
|
|
801
|
+
record: "Record",
|
|
802
|
+
clearAll: "Clear all",
|
|
803
|
+
filter: "Filter",
|
|
804
|
+
documentation: "Documentation",
|
|
805
|
+
editAndResend: "Edit and resend",
|
|
806
|
+
sMs: "{PH1} ms",
|
|
807
|
+
noMessageSelected: "No message selected",
|
|
808
|
+
selectAMessageToView: "Select a message to see its details",
|
|
809
|
+
save: "Save",
|
|
810
|
+
session: "Session",
|
|
811
|
+
sendRawCDPCommand: "Send a raw `CDP` command",
|
|
812
|
+
sendRawCDPCommandExplanation: "Format: `'Domain.commandName'` for a command without parameters, or `'{\"command\":\"Domain.commandName\", \"parameters\": {...}}'` as a JSON object for a command with parameters. `'cmd'`/`'method'` and `'args'`/`'params'`/`'arguments'` are also supported as alternative keys for the `JSON` object.",
|
|
813
|
+
selectTarget: "Select a target",
|
|
814
|
+
showCDPCommandEditor: "Show CDP command editor",
|
|
815
|
+
hideCDPCommandEditor: "Hide CDP command editor"
|
|
816
|
+
}, be = i("panels/protocol_monitor/ProtocolMonitor.ts", G), K = n.bind(void 0, be), q = (e) => {
|
|
817
|
+
let t = /* @__PURE__ */ new Map();
|
|
818
|
+
for (let n of e) for (let e of Object.keys(n.metadata)) t.set(e, n.metadata[e]);
|
|
819
|
+
return t;
|
|
820
|
+
}, J = q(w.agentPrototypes.values()), xe = w.typeMap, Y = w.enumMap, X = (e, t, n) => {
|
|
821
|
+
c(m`
|
|
822
|
+
<style>${l}</style>
|
|
823
|
+
<style>${_e}</style>
|
|
824
|
+
<devtools-split-view name="protocol-monitor-split-container"
|
|
825
|
+
direction="column"
|
|
826
|
+
sidebar-initial-size="400"
|
|
827
|
+
sidebar-visibility=${e.sidebarVisible ? "visible" : "hidden"}
|
|
828
|
+
@change=${(t) => e.onSplitChange(t.detail === "OnlyMain")}>
|
|
829
|
+
<div slot="main" class="vbox protocol-monitor-main">
|
|
830
|
+
<devtools-toolbar class="protocol-monitor-toolbar"
|
|
831
|
+
jslog=${S("top")}>
|
|
832
|
+
<devtools-button title=${K(G.record)}
|
|
833
|
+
.iconName=${"record-start"}
|
|
834
|
+
.toggledIconName=${"record-stop"}
|
|
835
|
+
.jslogContext=${"protocol-monitor.toggle-recording"}
|
|
836
|
+
.variant=${a.ICON_TOGGLE}
|
|
837
|
+
.toggleType=${h.RED}
|
|
838
|
+
.toggled=${!0}
|
|
839
|
+
@click=${(t) => e.onRecord(t.target.toggled)}>
|
|
840
|
+
</devtools-button>
|
|
841
|
+
<devtools-button title=${K(G.clearAll)}
|
|
842
|
+
.iconName=${"clear"}
|
|
843
|
+
.variant=${a.TOOLBAR}
|
|
844
|
+
.jslogContext=${"protocol-monitor.clear-all"}
|
|
845
|
+
@click=${() => e.onClear()}></devtools-button>
|
|
846
|
+
<devtools-button title=${K(G.save)}
|
|
847
|
+
.iconName=${"download"}
|
|
848
|
+
.variant=${a.TOOLBAR}
|
|
849
|
+
.jslogContext=${"protocol-monitor.save"}
|
|
850
|
+
@click=${() => e.onSave()}></devtools-button>
|
|
851
|
+
<devtools-toolbar-input type="filter"
|
|
852
|
+
list="filter-suggestions"
|
|
853
|
+
style="flex-grow: 1"
|
|
854
|
+
value=${e.filter}
|
|
855
|
+
@change=${(t) => e.onFilterChanged(t.detail)}>
|
|
856
|
+
<datalist id="filter-suggestions">
|
|
857
|
+
${e.filterKeys.map((e) => m`
|
|
858
|
+
<option value=${e + ":"}></option>
|
|
859
|
+
<option value=${"-" + e + ":"}></option>`)}
|
|
860
|
+
</datalist>
|
|
861
|
+
</devtools-toolbar-input>
|
|
862
|
+
</devtools-toolbar>
|
|
863
|
+
<devtools-split-view direction="column" sidebar-position="second"
|
|
864
|
+
name="protocol-monitor-panel-split" sidebar-initial-size="250">
|
|
865
|
+
<devtools-data-grid
|
|
866
|
+
striped
|
|
867
|
+
slot="main"
|
|
868
|
+
.filters=${e.parseFilter(e.filter)}>
|
|
869
|
+
<table>
|
|
870
|
+
<tr>
|
|
871
|
+
<th id="type" sortable style="text-align: center" hideable weight="1">
|
|
872
|
+
${K(G.type)}
|
|
873
|
+
</th>
|
|
874
|
+
<th id="method" weight="5">
|
|
875
|
+
${K(G.method)}
|
|
876
|
+
</th>
|
|
877
|
+
<th id="request" hideable weight="5">
|
|
878
|
+
${K(G.request)}
|
|
879
|
+
</th>
|
|
880
|
+
<th id="response" hideable weight="5">
|
|
881
|
+
${K(G.response)}
|
|
882
|
+
</th>
|
|
883
|
+
<th id="elapsed-time" sortable hideable weight="2">
|
|
884
|
+
${K(G.elapsedTime)}
|
|
885
|
+
</th>
|
|
886
|
+
<th id="timestamp" sortable hideable weight="5">
|
|
887
|
+
${K(G.timestamp)}
|
|
888
|
+
</th>
|
|
889
|
+
<th id="target" sortable hideable weight="5">
|
|
890
|
+
${K(G.target)}
|
|
891
|
+
</th>
|
|
892
|
+
<th id="session" sortable hideable weight="5">
|
|
893
|
+
${K(G.session)}
|
|
894
|
+
</th>
|
|
895
|
+
</tr>
|
|
896
|
+
${e.messages.map((t) => m`
|
|
897
|
+
<tr @select=${() => e.onSelect(t)}
|
|
898
|
+
@contextmenu=${(n) => e.onContextMenu(t, n.detail)}
|
|
899
|
+
style="--override-data-grid-row-background-color: var(--sys-color-surface3)">
|
|
900
|
+
${"id" in t ? m`
|
|
901
|
+
<td title="sent">
|
|
902
|
+
<devtools-icon name="arrow-up-down" class="medium" style="color: var(--icon-request-response);">
|
|
903
|
+
</devtools-icon>
|
|
904
|
+
</td>` : m`
|
|
905
|
+
<td title="received">
|
|
906
|
+
<devtools-icon name="arrow-down" class="medium" style="color: var(--icon-request);">
|
|
907
|
+
</devtools-icon>
|
|
908
|
+
</td>`}
|
|
909
|
+
<td>${t.method}</td>
|
|
910
|
+
<td>${t.params ? m`<code>${JSON.stringify(t.params)}</code>` : ""}</td>
|
|
911
|
+
<td>
|
|
912
|
+
${t.result ? m`<code>${JSON.stringify(t.result)}</code>` : t.error ? m`<code>${JSON.stringify(t.error)}</code>` : "id" in t ? "(pending)" : ""}
|
|
913
|
+
</td>
|
|
914
|
+
<td data-value=${t.elapsedTime || 0}>
|
|
915
|
+
${"id" in t ? t.elapsedTime ? K(G.sMs, { PH1: String(t.elapsedTime) }) : "(pending)" : ""}
|
|
916
|
+
</td>
|
|
917
|
+
<td data-value=${t.requestTime}>${K(G.sMs, { PH1: String(t.requestTime) })}</td>
|
|
918
|
+
<td>${we(t.target)}</td>
|
|
919
|
+
<td>${t.sessionId || ""}</td>
|
|
920
|
+
</tr>`)}
|
|
921
|
+
</table>
|
|
922
|
+
</devtools-data-grid>
|
|
923
|
+
<devtools-widget ${W(Q, {
|
|
924
|
+
request: e.selectedMessage?.params,
|
|
925
|
+
response: e.selectedMessage?.result || e.selectedMessage?.error,
|
|
926
|
+
type: e.selectedMessage ? "id" in e?.selectedMessage ? "sent" : "received" : void 0
|
|
927
|
+
})}
|
|
928
|
+
class="protocol-monitor-info"
|
|
929
|
+
slot="sidebar"></devtools-widget>
|
|
930
|
+
</devtools-split-view>
|
|
931
|
+
<devtools-toolbar class="protocol-monitor-bottom-toolbar"
|
|
932
|
+
jslog=${S("bottom")}>
|
|
933
|
+
<devtools-button .title=${e.sidebarVisible ? K(G.hideCDPCommandEditor) : K(G.showCDPCommandEditor)}
|
|
934
|
+
.iconName=${e.sidebarVisible ? "left-panel-close" : "left-panel-open"}
|
|
935
|
+
.variant=${a.TOOLBAR}
|
|
936
|
+
.jslogContext=${"protocol-monitor.toggle-command-editor"}
|
|
937
|
+
@click=${() => e.onToggleSidebar()}></devtools-button>
|
|
938
|
+
</devtools-button>
|
|
939
|
+
<devtools-toolbar-input id="command-input"
|
|
940
|
+
style=${U({
|
|
941
|
+
"flex-grow": 1,
|
|
942
|
+
display: e.sidebarVisible ? "none" : "flex"
|
|
943
|
+
})}
|
|
944
|
+
value=${e.command}
|
|
945
|
+
list="command-input-suggestions"
|
|
946
|
+
placeholder=${K(G.sendRawCDPCommand)}
|
|
947
|
+
title=${K(G.sendRawCDPCommandExplanation)}
|
|
948
|
+
@change=${(t) => e.onCommandChange(t.detail)}
|
|
949
|
+
@submit=${(t) => e.onCommandSubmitted(t.detail)}>
|
|
950
|
+
<datalist id="command-input-suggestions">
|
|
951
|
+
${e.commandSuggestions.map((e) => m`<option value=${e}></option>`)}
|
|
952
|
+
</datalist>
|
|
953
|
+
</devtools-toolbar-input>
|
|
954
|
+
<select class="target-selector"
|
|
955
|
+
title=${K(G.selectTarget)}
|
|
956
|
+
style=${U({ display: e.sidebarVisible ? "none" : "flex" })}
|
|
957
|
+
jslog=${x("target-selector").track({ change: !0 })}
|
|
958
|
+
@change=${(t) => e.onTargetChange(t.target.value)}>
|
|
959
|
+
${e.targets.map((t) => m`
|
|
960
|
+
<option jslog=${d("target").track({ click: !0 })}
|
|
961
|
+
value=${t.id()} ?selected=${t.id() === e.selectedTargetId}>
|
|
962
|
+
${t.name()} (${t.inspectedURL()})
|
|
963
|
+
</option>`)}
|
|
964
|
+
</select>
|
|
965
|
+
</devtools-toolbar>
|
|
966
|
+
</div>
|
|
967
|
+
<devtools-widget slot="sidebar"
|
|
968
|
+
${W(R, {
|
|
969
|
+
metadataByCommand: J,
|
|
970
|
+
typesByName: xe,
|
|
971
|
+
enumsByName: Y
|
|
972
|
+
})}
|
|
973
|
+
@submiteditor=${(t) => e.onEditorSubmit(t.detail.command, t.detail.parameters, t.detail.targetId)}
|
|
974
|
+
${ye(R, (e) => {
|
|
975
|
+
t.editorWidget = e;
|
|
976
|
+
})}>
|
|
977
|
+
</devtools-widget>
|
|
978
|
+
</devtools-split-view>`, n);
|
|
979
|
+
}, Se = class extends g {
|
|
980
|
+
started;
|
|
981
|
+
startTime;
|
|
982
|
+
messageForId = /* @__PURE__ */ new Map();
|
|
983
|
+
filterParser;
|
|
984
|
+
#e = [
|
|
985
|
+
"method",
|
|
986
|
+
"request",
|
|
987
|
+
"response",
|
|
988
|
+
"target",
|
|
989
|
+
"session"
|
|
990
|
+
];
|
|
991
|
+
#t = new Z();
|
|
992
|
+
#n;
|
|
993
|
+
#r = "";
|
|
994
|
+
#i = !1;
|
|
995
|
+
#a;
|
|
996
|
+
#o = [];
|
|
997
|
+
#s;
|
|
998
|
+
#c = "";
|
|
999
|
+
#l;
|
|
1000
|
+
#u = /* @__PURE__ */ new Map();
|
|
1001
|
+
constructor(e = X) {
|
|
1002
|
+
super("protocol-monitor", !0), this.#a = e, this.started = !1, this.startTime = 0, this.#e = [
|
|
1003
|
+
"method",
|
|
1004
|
+
"request",
|
|
1005
|
+
"response",
|
|
1006
|
+
"type",
|
|
1007
|
+
"target",
|
|
1008
|
+
"session"
|
|
1009
|
+
], this.filterParser = new ie(this.#e), this.#n = "main", this.performUpdate(), f.instance().addEventListener(o.AVAILABLE_TARGETS_CHANGED, () => {
|
|
1010
|
+
this.requestUpdate();
|
|
1011
|
+
}), f.instance().observeTargets(this);
|
|
1012
|
+
}
|
|
1013
|
+
targetAdded(e) {
|
|
1014
|
+
this.#u.set(e.sessionId, e);
|
|
1015
|
+
}
|
|
1016
|
+
targetRemoved(e) {
|
|
1017
|
+
this.#u.delete(e.sessionId);
|
|
1018
|
+
}
|
|
1019
|
+
#d() {
|
|
1020
|
+
let e = this.#l.getCommandJson(), t = this.#l.targetId;
|
|
1021
|
+
t && (this.#n = t), e && (this.#r = e, this.requestUpdate());
|
|
1022
|
+
}
|
|
1023
|
+
performUpdate() {
|
|
1024
|
+
let e = {
|
|
1025
|
+
messages: this.#o,
|
|
1026
|
+
selectedMessage: this.#s,
|
|
1027
|
+
sidebarVisible: this.#i,
|
|
1028
|
+
command: this.#r,
|
|
1029
|
+
commandSuggestions: this.#t.allSuggestions(),
|
|
1030
|
+
filterKeys: this.#e,
|
|
1031
|
+
filter: this.#c,
|
|
1032
|
+
parseFilter: this.filterParser.parse.bind(this.filterParser),
|
|
1033
|
+
onSplitChange: (e) => {
|
|
1034
|
+
if (e) this.#d(), this.#i = !1;
|
|
1035
|
+
else {
|
|
1036
|
+
let { command: e, parameters: t } = $(this.#r);
|
|
1037
|
+
this.#l.displayCommand(e, t, this.#n), this.#i = !0;
|
|
1038
|
+
}
|
|
1039
|
+
this.requestUpdate();
|
|
1040
|
+
},
|
|
1041
|
+
onRecord: (e) => {
|
|
1042
|
+
this.setRecording(e);
|
|
1043
|
+
},
|
|
1044
|
+
onClear: () => {
|
|
1045
|
+
this.#o = [], this.messageForId.clear(), this.requestUpdate();
|
|
1046
|
+
},
|
|
1047
|
+
onSave: () => {
|
|
1048
|
+
this.saveAsFile();
|
|
1049
|
+
},
|
|
1050
|
+
onSelect: (e) => {
|
|
1051
|
+
this.#s = e, this.requestUpdate();
|
|
1052
|
+
},
|
|
1053
|
+
onContextMenu: this.#f.bind(this),
|
|
1054
|
+
onCommandChange: (e) => {
|
|
1055
|
+
this.#r = e;
|
|
1056
|
+
},
|
|
1057
|
+
onCommandSubmitted: (e) => {
|
|
1058
|
+
this.#t.addEntry(e);
|
|
1059
|
+
let { command: t, parameters: n } = $(e);
|
|
1060
|
+
this.onCommandSend(t, n, this.#n);
|
|
1061
|
+
},
|
|
1062
|
+
onFilterChanged: (e) => {
|
|
1063
|
+
this.#c = e, this.requestUpdate();
|
|
1064
|
+
},
|
|
1065
|
+
onTargetChange: (e) => {
|
|
1066
|
+
this.#n = e;
|
|
1067
|
+
},
|
|
1068
|
+
onToggleSidebar: () => {
|
|
1069
|
+
this.#i = !this.#i, this.requestUpdate();
|
|
1070
|
+
},
|
|
1071
|
+
onEditorSubmit: (e, t, n) => {
|
|
1072
|
+
this.onCommandSend(e, t, n);
|
|
1073
|
+
},
|
|
1074
|
+
targets: f.instance().targets(),
|
|
1075
|
+
selectedTargetId: this.#n
|
|
1076
|
+
}, t = this;
|
|
1077
|
+
this.#a(e, { set editorWidget(e) {
|
|
1078
|
+
t.#l = e;
|
|
1079
|
+
} }, this.contentElement);
|
|
1080
|
+
}
|
|
1081
|
+
#f(e, t) {
|
|
1082
|
+
t.editSection().appendItem(K(G.editAndResend), () => {
|
|
1083
|
+
if (!this.#s) return;
|
|
1084
|
+
let t = this.#s.params, n = this.#s.target?.id() || "", r = e.method;
|
|
1085
|
+
this.#r = JSON.stringify({
|
|
1086
|
+
command: r,
|
|
1087
|
+
parameters: t
|
|
1088
|
+
}), this.#i ? this.#l.displayCommand(r, t, n) : (this.#i = !0, this.requestUpdate());
|
|
1089
|
+
}, {
|
|
1090
|
+
jslogContext: "edit-and-resend",
|
|
1091
|
+
disabled: !("id" in e)
|
|
1092
|
+
}), t.editSection().appendItem(K(G.filter), () => {
|
|
1093
|
+
this.#c = `method:${e.method}`, this.requestUpdate();
|
|
1094
|
+
}, { jslogContext: "filter" }), t.footerSection().appendItem(K(G.documentation), () => {
|
|
1095
|
+
let [t, n] = e.method.split(".");
|
|
1096
|
+
s(`https://chromedevtools.github.io/devtools-protocol/tot/${t}#${"id" in e ? "method" : "event"}-${n}`);
|
|
1097
|
+
}, { jslogContext: "documentation" });
|
|
1098
|
+
}
|
|
1099
|
+
onCommandSend(e, t, n) {
|
|
1100
|
+
let r = C, i = f.instance(), a = n ? i.targetById(n) : null, o = a ? a.sessionId : "";
|
|
1101
|
+
r.sendRawMessage(e, t, () => {}, o);
|
|
1102
|
+
}
|
|
1103
|
+
wasShown() {
|
|
1104
|
+
super.wasShown(), !this.started && (this.started = !0, this.startTime = Date.now(), this.setRecording(!0));
|
|
1105
|
+
}
|
|
1106
|
+
setRecording(e) {
|
|
1107
|
+
let t = C;
|
|
1108
|
+
e ? (t.onMessageSent = this.messageSent.bind(this), t.onMessageReceived = this.messageReceived.bind(this)) : (t.onMessageSent = null, t.onMessageReceived = null);
|
|
1109
|
+
}
|
|
1110
|
+
messageReceived(e) {
|
|
1111
|
+
if ("id" in e && e.id) {
|
|
1112
|
+
let t = this.messageForId.get(e.id);
|
|
1113
|
+
if (!t) return;
|
|
1114
|
+
t.result = e.result, t.error = e.error, t.elapsedTime = Date.now() - this.startTime - t.requestTime, this.messageForId.delete(e.id), this.requestUpdate();
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
let t = e.sessionId === void 0 ? void 0 : this.#u.get(e.sessionId);
|
|
1118
|
+
this.#o.push({
|
|
1119
|
+
method: e.method,
|
|
1120
|
+
sessionId: e.sessionId,
|
|
1121
|
+
target: t,
|
|
1122
|
+
requestTime: Date.now() - this.startTime,
|
|
1123
|
+
result: e.params
|
|
1124
|
+
}), this.requestUpdate();
|
|
1125
|
+
}
|
|
1126
|
+
messageSent(e) {
|
|
1127
|
+
let t = e.sessionId === void 0 ? void 0 : this.#u.get(e.sessionId), n = {
|
|
1128
|
+
method: e.method,
|
|
1129
|
+
params: e.params,
|
|
1130
|
+
id: e.id,
|
|
1131
|
+
sessionId: e.sessionId,
|
|
1132
|
+
target: t,
|
|
1133
|
+
requestTime: Date.now() - this.startTime
|
|
1134
|
+
};
|
|
1135
|
+
this.#o.push(n), this.requestUpdate(), this.messageForId.set(e.id, n);
|
|
1136
|
+
}
|
|
1137
|
+
async saveAsFile() {
|
|
1138
|
+
let e = "ProtocolMonitor-" + t(/* @__PURE__ */ new Date()) + ".json", n = new ae();
|
|
1139
|
+
if (!await n.open(e)) return;
|
|
1140
|
+
let r = this.#o.map((e) => ({
|
|
1141
|
+
...e,
|
|
1142
|
+
target: e.target?.id()
|
|
1143
|
+
}));
|
|
1144
|
+
n.write(JSON.stringify(r, null, " ")), n.close();
|
|
1145
|
+
}
|
|
1146
|
+
}, Z = class {
|
|
1147
|
+
#e = 200;
|
|
1148
|
+
#t = /* @__PURE__ */ new Set();
|
|
1149
|
+
constructor(e) {
|
|
1150
|
+
e !== void 0 && (this.#e = e);
|
|
1151
|
+
}
|
|
1152
|
+
allSuggestions() {
|
|
1153
|
+
let e = [...this.#t].reverse();
|
|
1154
|
+
return e.push(...J.keys()), e;
|
|
1155
|
+
}
|
|
1156
|
+
buildTextPromptCompletions = async (e, t, n) => !t && !n && e ? [] : this.allSuggestions().filter((e) => e.startsWith(t)).map((e) => ({ text: e }));
|
|
1157
|
+
addEntry(e) {
|
|
1158
|
+
if (this.#t.has(e) && this.#t.delete(e), this.#t.add(e), this.#t.size > this.#e) {
|
|
1159
|
+
let e = this.#t.values().next().value;
|
|
1160
|
+
this.#t.delete(e);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}, Ce = (e, t, n) => {
|
|
1164
|
+
c(m`
|
|
1165
|
+
<devtools-tabbed-pane>${e.type === void 0 ? m`
|
|
1166
|
+
<devtools-widget
|
|
1167
|
+
id="request" title=${K(G.request)}
|
|
1168
|
+
?selected=${e.selectedTab === "request"} disabled
|
|
1169
|
+
${W(u, {
|
|
1170
|
+
header: K(G.noMessageSelected),
|
|
1171
|
+
text: K(G.selectAMessageToView)
|
|
1172
|
+
})}>
|
|
1173
|
+
</devtools-widget>
|
|
1174
|
+
<devtools-widget
|
|
1175
|
+
id="response" title=${K(G.response)}
|
|
1176
|
+
?selected=${e.selectedTab === "response"}
|
|
1177
|
+
${W(u, {
|
|
1178
|
+
header: K(G.noMessageSelected),
|
|
1179
|
+
text: K(G.selectAMessageToView)
|
|
1180
|
+
})}>
|
|
1181
|
+
</devtools-widget>` : m`
|
|
1182
|
+
<devtools-widget
|
|
1183
|
+
id="request" title=${K(G.request)}
|
|
1184
|
+
?selected=${e.selectedTab === "request"} ?disabled=${e.type !== "sent"}
|
|
1185
|
+
${W(T, { jsonObject: e.request })}>
|
|
1186
|
+
</devtools-widget>
|
|
1187
|
+
<devtools-widget
|
|
1188
|
+
id="response" title=${K(G.response)}
|
|
1189
|
+
?selected=${e.selectedTab === "response"}
|
|
1190
|
+
${W(T, { jsonObject: e.response })}>
|
|
1191
|
+
</devtools-widget>`}
|
|
1192
|
+
</devtools-tabbed-pane>`, n);
|
|
1193
|
+
}, Q = class extends b {
|
|
1194
|
+
#e;
|
|
1195
|
+
request;
|
|
1196
|
+
response;
|
|
1197
|
+
type;
|
|
1198
|
+
constructor(e, t = Ce) {
|
|
1199
|
+
super(e), this.#e = t, this.requestUpdate();
|
|
1200
|
+
}
|
|
1201
|
+
performUpdate() {
|
|
1202
|
+
this.#e({
|
|
1203
|
+
request: this.request,
|
|
1204
|
+
response: this.response,
|
|
1205
|
+
type: this.type,
|
|
1206
|
+
selectedTab: this.type === "sent" ? void 0 : "response"
|
|
1207
|
+
}, void 0, this.contentElement);
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
function $(e) {
|
|
1211
|
+
let t = null;
|
|
1212
|
+
try {
|
|
1213
|
+
t = JSON.parse(e);
|
|
1214
|
+
} catch {}
|
|
1215
|
+
return {
|
|
1216
|
+
command: t ? t.command || t.method || t.cmd || "" : e,
|
|
1217
|
+
parameters: t?.parameters || t?.params || t?.args || t?.arguments || {}
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1220
|
+
function we(e) {
|
|
1221
|
+
return e ? e.decorateLabel(`${e.name()} ${e === f.instance().rootTarget() ? "" : e.id()}`) : "";
|
|
1222
|
+
}
|
|
1223
|
+
//#endregion
|
|
1224
|
+
export { N as i, R as n, ce as r, ve as t };
|