@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,1433 @@
|
|
|
1
|
+
import { n as e } from "./chunk-DF993M8W.js";
|
|
2
|
+
import { mt as t, ut as n } from "./platform-BzB373NB.js";
|
|
3
|
+
import { St as r, Z as i, bt as a, d as o, g as s, l as c, m as l, p as u, u as ee, wt as d } from "./common-qd_KLeYO.js";
|
|
4
|
+
import { a as f, l as te, p, r as m, s as h, t as ne } from "./root-DbVQo07X.js";
|
|
5
|
+
import { $i as g, Ao as _, Bt as re, Dt as v, Et as ie, Ff as ae, Fo as y, Ft as oe, G as se, Gf as ce, Gi as le, Hf as ue, Hi as b, If as de, Io as fe, La as pe, Lf as me, Ln as he, Lt as ge, Mo as _e, Nf as ve, No as ye, Or as be, Ot as xe, Pf as Se, Po as x, Pr as Ce, Q as we, Qt as Te, Rf as Ee, T as De, U as S, Ui as Oe, Ur as ke, Ut as Ae, Vi as je, Vr as Me, Vt as Ne, Wf as Pe, Wi as C, Wo as Fe, Xf as w, Xi as Ie, Z as Le, Zi as T, Zo as E, _r as Re, an as ze, bn as D, ei as O, ep as Be, et as Ve, fa as k, gr as He, ha as Ue, ii as We, jr as Ge, kf as Ke, kr as qe, la as Je, ma as Ye, mf as Xe, na as Ze, ni as Qe, no as $e, nt as et, pf as A, qa as j, qi as M, qr as tt, ra as nt, ui as rt, uo as it, vn as at, w as ot, yr as st, zi as ct } from "./legacy-Bqn4Q0Tf.js";
|
|
6
|
+
import { $t as lt, J as ut, K as dt, Qt as ft, S as pt, W as mt, Y as ht, _ as gt, _n as N, an as _t, en as vt, gn as yt, q as bt, ut as xt, vn as St } from "./common-DjRFwulW.js";
|
|
7
|
+
import { n as Ct } from "./i18n-DvFMqQdJ.js";
|
|
8
|
+
import "./data_grid-pC5qqfsJ.js";
|
|
9
|
+
import { n as P, t as wt } from "./settings_ui-CzxAFzIb.js";
|
|
10
|
+
import { t as Tt } from "./checkbox.css-CZJJ6atQ.js";
|
|
11
|
+
import { t as Et } from "./utils-CELci976.js";
|
|
12
|
+
//#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/settings/components/syncSection.css.mjs
|
|
13
|
+
var Dt = "/*\n * Copyright 2021 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n :scope {\n break-inside: avoid;\n display: block;\n width: 100%;\n position: relative;\n }\n\n fieldset {\n border: 0;\n padding: 0;\n padding: 4px 0 0;\n }\n\n .link {\n color: var(--sys-color-primary);\n text-decoration: underline;\n cursor: pointer;\n outline-offset: 2px;\n }\n\n .account-avatar {\n border: 0;\n border-radius: var(--sys-shape-corner-full);\n display: block;\n height: var(--sys-size-9);\n width: var(--sys-size-9);\n }\n\n .account-info {\n display: flex;\n align-items: center;\n }\n\n .account-email {\n display: flex;\n flex-direction: column;\n margin-left: 8px;\n }\n\n .not-signed-in {\n padding-bottom: 4px;\n }\n\n .setting-checkbox-container {\n display: flex;\n align-items: center;\n gap: var(--sys-size-2);\n }\n\n .setting-checkbox {\n display: inline-block;\n }\n\n .gdp-profile-container {\n padding-bottom: var(--sys-size-4);\n }\n\n .gdp-profile-container .divider {\n left: 0;\n position: absolute;\n width: 100%;\n height: var(--sys-size-1);\n background: var(--sys-color-divider);\n }\n\n .gdp-profile-container .gdp-profile-header {\n display: flex;\n align-items: center;\n gap: var(--sys-size-5);\n font-family: \"Google Sans\", system-ui;\n font-size: var(--sys-typescale-body3-size);\n height: var(--sys-size-11);\n }\n\n .gdp-profile-container .gdp-profile-header .gdp-logo {\n background-image: var(--image-file-gdp-logo-light);\n background-size: contain;\n width: 203px;\n height: 18px;\n background-repeat: no-repeat;\n }\n\n :host-context(.theme-with-dark-background) & .gdp-profile-container .gdp-profile-header .gdp-logo {\n background-image: var(--image-file-gdp-logo-dark);\n }\n\n .gdp-profile-container .gdp-profile-sign-up-content {\n padding-top: var(--sys-size-7);\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .gdp-profile-container .gdp-profile-details-content {\n padding-top: var(--sys-size-7);\n font: var(--sys-typescale-body4-regular);\n }\n\n .gdp-profile-container .gdp-profile-details-content .plan-details {\n margin-top: var(--sys-size-3);\n height: 18px;\n display: flex;\n align-items: center;\n }\n\n .gdp-profile-container .gdp-profile-details-content .setting-container {\n margin: calc(var(--sys-size-3) - 6px) 0 -6px;\n display: flex;\n align-items: center;\n gap: var(--sys-size-2);\n }\n\n .gdp-profile-container .gdp-profile-details-content .tooltip-content {\n max-width: 278px;\n padding: var(--sys-size-2) var(--sys-size-3);\n font: var(--sys-typescale-body5-regular);\n }\n}\n", F = {
|
|
14
|
+
syncDisabled: "To turn this setting on, you must enable Chrome sync.",
|
|
15
|
+
preferencesSyncDisabled: "You need to first enable saving `Chrome` settings in your `Google` account.",
|
|
16
|
+
signedIn: "Signed into Chrome as:",
|
|
17
|
+
notSignedIn: "You're not signed into Chrome.",
|
|
18
|
+
gdpStandardPlan: "Standard plan",
|
|
19
|
+
gdpPremiumSubscription: "Premium",
|
|
20
|
+
gdpProSubscription: "Pro",
|
|
21
|
+
gdpUnknownSubscription: "Unknown plan",
|
|
22
|
+
signUp: "Sign up",
|
|
23
|
+
viewProfile: "View profile",
|
|
24
|
+
tooltipDisclaimerText: "When you qualify for a badge, the badge’s identifier and the type of activity you did to earn it are sent to Google",
|
|
25
|
+
relevantData: "Relevant data",
|
|
26
|
+
dataDisclaimer: "({PH1} is sent to Google)"
|
|
27
|
+
}, Ot = d("panels/settings/components/SyncSection.ts", F), I = a.bind(void 0, Ot), kt = fe.bind(void 0, Ot), { html: L, render: At, Directives: { ref: jt } } = ye;
|
|
28
|
+
function Mt(e) {
|
|
29
|
+
if (!e.activeSubscription || e.activeSubscription.subscriptionStatus !== ae.ENABLED) return I(F.gdpStandardPlan);
|
|
30
|
+
switch (e.activeSubscription.subscriptionTier) {
|
|
31
|
+
case de.PREMIUM_ANNUAL:
|
|
32
|
+
case de.PREMIUM_MONTHLY: return I(F.gdpPremiumSubscription);
|
|
33
|
+
case de.PRO_ANNUAL:
|
|
34
|
+
case de.PRO_MONTHLY: return I(F.gdpProSubscription);
|
|
35
|
+
default: return I(F.gdpUnknownSubscription);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
var Nt = (e, t, n) => {
|
|
39
|
+
At(L`
|
|
40
|
+
<style>${Dt}</style>
|
|
41
|
+
<fieldset>
|
|
42
|
+
${e.syncInfo.accountEmail ? L`
|
|
43
|
+
<div class="account-info">
|
|
44
|
+
<img class="account-avatar" src="data:image/png;base64, ${e.syncInfo.accountImage}"
|
|
45
|
+
alt="Account avatar" />
|
|
46
|
+
<div class="account-email">
|
|
47
|
+
<span>${I(F.signedIn)}</span>
|
|
48
|
+
<span>${e.syncInfo.accountEmail}</span>
|
|
49
|
+
</div>
|
|
50
|
+
</div>` : L`
|
|
51
|
+
<div class="not-signed-in">${I(F.notSignedIn)}</div>
|
|
52
|
+
`}
|
|
53
|
+
${(() => {
|
|
54
|
+
if (!e.syncInfo.accountEmail) return E;
|
|
55
|
+
let t = e.warningType === "SYNC_DISABLED" ? I(F.syncDisabled) : I(F.preferencesSyncDisabled);
|
|
56
|
+
return L`
|
|
57
|
+
<div class="setting-checkbox-container">
|
|
58
|
+
<setting-checkbox class="setting-checkbox"
|
|
59
|
+
.data=${{ setting: e.syncSetting }}>
|
|
60
|
+
</setting-checkbox>
|
|
61
|
+
${e.warningType ? L`
|
|
62
|
+
<devtools-button
|
|
63
|
+
aria-details="settings-sync-info"
|
|
64
|
+
.iconName=${"info"}
|
|
65
|
+
.variant=${g.ICON}
|
|
66
|
+
.size=${T.SMALL}
|
|
67
|
+
@click=${e.onWarningClick}>
|
|
68
|
+
</devtools-button>
|
|
69
|
+
<devtools-tooltip
|
|
70
|
+
id="settings-sync-info"
|
|
71
|
+
variant="rich">
|
|
72
|
+
${t}
|
|
73
|
+
</devtools-tooltip>` : E}
|
|
74
|
+
</div>
|
|
75
|
+
`;
|
|
76
|
+
})()}
|
|
77
|
+
${(() => {
|
|
78
|
+
if (!e.isEligibleToCreateGdpProfile && !e.gdpProfile) return E;
|
|
79
|
+
let n = me() && e.receiveBadgesSetting, r = () => L`
|
|
80
|
+
<div class="gdp-profile-header">
|
|
81
|
+
<div class="gdp-logo" role="img" aria-label="Google Developer Program"></div>
|
|
82
|
+
</div>
|
|
83
|
+
`;
|
|
84
|
+
return L`
|
|
85
|
+
<div class="gdp-profile-container" .jslog=${$e().context("gdp-profile")}>
|
|
86
|
+
<div class="divider"></div>
|
|
87
|
+
${e.gdpProfile ? L`
|
|
88
|
+
<div class="gdp-profile-details-content">
|
|
89
|
+
${r()}
|
|
90
|
+
<div class="plan-details">
|
|
91
|
+
${Mt(e.gdpProfile)}
|
|
92
|
+
·
|
|
93
|
+
<devtools-link
|
|
94
|
+
jslogcontext="view-profile"
|
|
95
|
+
class="link"
|
|
96
|
+
href=${ve}>
|
|
97
|
+
${I(F.viewProfile)}
|
|
98
|
+
</devtools-link></div>
|
|
99
|
+
${n ? L`
|
|
100
|
+
<div class="setting-container" ${jt((e) => {
|
|
101
|
+
t.highlightReceiveBadgesSetting = () => {
|
|
102
|
+
e && Et.highlightElement(e);
|
|
103
|
+
};
|
|
104
|
+
})}>
|
|
105
|
+
<setting-checkbox class="setting-checkbox"
|
|
106
|
+
.data=${{ setting: e.receiveBadgesSetting }}
|
|
107
|
+
@change=${(t) => e.onReceiveBadgesSettingClick(t)}>
|
|
108
|
+
</setting-checkbox>
|
|
109
|
+
<span>${kt(F.dataDisclaimer, { PH1: L`
|
|
110
|
+
<span class="link" tabindex="0" aria-details="gdp-profile-tooltip">
|
|
111
|
+
${I(F.relevantData)}</span>
|
|
112
|
+
<devtools-tooltip id="gdp-profile-tooltip" variant="rich">
|
|
113
|
+
<div class="tooltip-content" tabindex="0">
|
|
114
|
+
${I(F.tooltipDisclaimerText)}</div>
|
|
115
|
+
</devtools-tooltip>` })}
|
|
116
|
+
</span>
|
|
117
|
+
</div>
|
|
118
|
+
` : E}
|
|
119
|
+
</div>
|
|
120
|
+
` : L`
|
|
121
|
+
<div class="gdp-profile-sign-up-content">
|
|
122
|
+
${r()}
|
|
123
|
+
<devtools-button
|
|
124
|
+
@click=${e.onSignUpClick}
|
|
125
|
+
.jslogContext=${"open-sign-up-dialog"}
|
|
126
|
+
.variant=${g.OUTLINED}>
|
|
127
|
+
${I(F.signUp)}
|
|
128
|
+
</devtools-button>
|
|
129
|
+
</div>
|
|
130
|
+
`}
|
|
131
|
+
</div>
|
|
132
|
+
`;
|
|
133
|
+
})()}
|
|
134
|
+
</fieldset>
|
|
135
|
+
`, n);
|
|
136
|
+
}, Pt = class extends Qe {
|
|
137
|
+
#e = { isSyncActive: !1 };
|
|
138
|
+
#t;
|
|
139
|
+
#n;
|
|
140
|
+
#r = !1;
|
|
141
|
+
#i;
|
|
142
|
+
#a;
|
|
143
|
+
#o = {};
|
|
144
|
+
constructor(e, t = Nt) {
|
|
145
|
+
super(e), this.#a = t, this.#n = o.instance().moduleSetting("receive-gdp-badges"), this.#t = u("sync-preferences");
|
|
146
|
+
}
|
|
147
|
+
wasShown() {
|
|
148
|
+
super.wasShown(), this.requestUpdate();
|
|
149
|
+
}
|
|
150
|
+
set syncInfo(e) {
|
|
151
|
+
this.#e = e, this.requestUpdate(), e.accountEmail && this.#u();
|
|
152
|
+
}
|
|
153
|
+
async highlightReceiveBadgesSetting() {
|
|
154
|
+
this.requestUpdate(), await this.updateComplete, this.#o.highlightReceiveBadgesSetting?.();
|
|
155
|
+
}
|
|
156
|
+
performUpdate() {
|
|
157
|
+
let e = !this.#e.isSyncActive || !this.#e.arePreferencesSynced;
|
|
158
|
+
this.#t?.setDisabled(e);
|
|
159
|
+
let t;
|
|
160
|
+
this.#e.isSyncActive ? this.#e.arePreferencesSynced || (t = "PREFERENCES_SYNC_DISABLED") : t = "SYNC_DISABLED";
|
|
161
|
+
let n = {
|
|
162
|
+
syncInfo: this.#e,
|
|
163
|
+
syncSetting: this.#t,
|
|
164
|
+
receiveBadgesSetting: this.#n,
|
|
165
|
+
gdpProfile: this.#i,
|
|
166
|
+
isEligibleToCreateGdpProfile: Ee() && this.#r,
|
|
167
|
+
onSignUpClick: this.#s.bind(this),
|
|
168
|
+
onReceiveBadgesSettingClick: this.#c.bind(this),
|
|
169
|
+
onWarningClick: this.#l.bind(this),
|
|
170
|
+
warningType: t
|
|
171
|
+
};
|
|
172
|
+
this.#a(n, this.#o, this.contentElement);
|
|
173
|
+
}
|
|
174
|
+
#s() {
|
|
175
|
+
mt.show({ onSuccess: this.#u.bind(this) });
|
|
176
|
+
}
|
|
177
|
+
#c(e) {
|
|
178
|
+
let t = e.target;
|
|
179
|
+
dt.instance().initialize().then(() => {
|
|
180
|
+
t.checked && dt.instance().recordAction(bt.RECEIVE_BADGES_SETTING_ENABLED);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
#l(e) {
|
|
184
|
+
_(this.#e.isSyncActive ? "chrome://settings/syncSetup/advanced" : "chrome://settings/syncSetup"), e.consume();
|
|
185
|
+
}
|
|
186
|
+
async #u() {
|
|
187
|
+
if (!Ee()) return;
|
|
188
|
+
let e = await Se.instance().getProfile();
|
|
189
|
+
e && (this.#i = e.profile ?? void 0, this.#r = e.isEligible, this.requestUpdate());
|
|
190
|
+
}
|
|
191
|
+
}, R = "/*\n * Copyright 2015 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.settings-window-main {\n color: var(--sys-color-on-surface);\n background-color: var(--sys-color-cdt-base-container);\n}\n\n.settings-content {\n overflow: hidden auto;\n margin: 8px 8px 8px 0;\n padding: 0 4px;\n flex: auto;\n}\n\n.settings-experiments-block {\n padding: 0 var(--sys-size-6) var(--sys-size-5) var(--sys-size-4);\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n border: none;\n}\n\nlabel {\n padding-right: 8px;\n}\n\n.experiments-filter {\n width: 100%;\n padding: 0 var(--sys-size-9) 0 var(--sys-size-8);\n max-width: var(--sys-size-35);\n\n > devtools-toolbar {\n min-width: var(--sys-size-31);\n }\n}\n\n.settings-select {\n align-items: center;\n display: grid;\n row-gap: var(--sys-size-3);\n margin: var(--sys-size-4) 0;\n}\n\ndiv:has(.settings-select) + div:has(.settings-select) {\n padding-top: var(--sys-size-5);\n}\n\n.settings-window-label-element {\n flex: none;\n}\n\n.settings-window-title {\n display: flex;\n align-items: center;\n font-size: var(--sys-size-9);\n color: var(--sys-color-on-surface);\n margin: var(--sys-size-8) var(--sys-size-7);\n\n &::before {\n content: \"\";\n width: var(--sys-size-9);\n height: var(--sys-size-9);\n margin-right: var(--sys-size-6);\n background-image: var(--image-file-devtools);\n }\n}\n\n.settings-card-container-wrapper {\n scrollbar-gutter: stable;\n padding: var(--sys-size-8) 0;\n overflow: auto;\n position: absolute;\n inset: var(--sys-size-8) 0 0;\n container-type: inline-size;\n container-name: settings-content;\n}\n\n.settings-card-container,\n.settings-multicolumn-card-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--sys-size-9);\n\n > devtools-button {\n max-width: var(--sys-size-35);\n width: calc(100% - var(--sys-size-5));\n margin-left: var(--sys-size-5);\n }\n}\n\n/* In multi-column mode, we adopt single-column styles unless\n enough space is available to actually show two columns (at 850px) */\n@container settings-content (min-width: 850px) {\n .settings-multicolumn-card-container {\n display: block;\n column-width: var(--sys-size-32);\n column-gap: var(--sys-size-11);\n margin: 0 var(--sys-size-9);\n\n > * + * {\n margin-top: var(--sys-size-8);\n }\n\n > devtools-button {\n align-self: start;\n }\n }\n}\n\n.settings-card-container-wrapper select {\n margin-left: 10px;\n width: var(--sys-size-28);\n}\n\n.settings-card-container-wrapper setting-checkbox { /* stylelint-disable-line selector-type-no-unknown */\n min-height: var(--sys-size-13);\n position: relative;\n left: calc(var(--sys-size-4) * -1);\n}\n\n.settings-experiment {\n margin: 0;\n min-height: var(--sys-size-13);\n display: grid;\n grid-template-columns: auto min-content auto 1fr;\n\n & .devtools-link {\n display: flex !important; /* stylelint-disable-line declaration-no-important */\n align-items: center;\n }\n}\n\ndevtools-button.link-icon {\n cursor: pointer;\n}\n\n.experiment-label {\n margin: var(--sys-size-3) var(--sys-size-2) var(--sys-size-3) 0;\n white-space: normal;\n}\n\n.settings-experiment .feedback-link {\n color: var(--sys-color-primary);\n text-decoration-line: underline;\n margin-left: 4px;\n}\n\n.tabbed-pane-content slot::slotted(.widget) {\n /* '!important' in order to overwrite the slotted widget's 'overflow-auto' class.\n This prevents the focus-ring of selectable elements from being cut off. */\n overflow: visible !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.experiments-warning-subsection {\n display: flex;\n align-items: center;\n\n > devtools-icon {\n color: var(--sys-color-orange-bright);\n margin-right: var(--sys-size-4);\n }\n}\n\n@media (forced-colors: active) {\n .settings-window-title {\n color: canvastext;\n }\n\n .tabbed-pane-header-tab {\n background: ButtonFace;\n }\n\n .tabbed-pane-header-tab-title {\n color: canvastext;\n }\n}\n\n@media (forced-colors: active) and (prefers-color-scheme: dark) {\n .tabbed-pane-header-tab.selected {\n background: ButtonFace;\n }\n\n .tabbed-pane-header-tab.selected .tabbed-pane-header-tab-title {\n color: HighlightText;\n }\n}\n\n.greendev-widgets input[type=\"radio\"] {\n margin: 6px;\n}\n", Ft = /* @__PURE__ */ e({
|
|
192
|
+
ActionDelegate: () => Bt,
|
|
193
|
+
ExperimentsSettingsTab: () => zt,
|
|
194
|
+
GenericSettingsTab: () => Rt,
|
|
195
|
+
GreenDevSettingsTab: () => Ht,
|
|
196
|
+
Revealer: () => Vt,
|
|
197
|
+
SettingsScreen: () => H
|
|
198
|
+
}), z = {
|
|
199
|
+
settings: "Settings",
|
|
200
|
+
shortcuts: "Shortcuts",
|
|
201
|
+
restoreDefaultsAndReload: "Restore defaults and reload",
|
|
202
|
+
experiments: "Experiments",
|
|
203
|
+
experimentsFound: "{n, plural, =1 {# experiment found} other {# experiments found}}",
|
|
204
|
+
theseExperimentsCouldBeUnstable: "Warning: These experiments could be unstable or unreliable.",
|
|
205
|
+
greenDevUnstable: "Warning: All these features are prototype and very unstable. They exist for user testing and are not designed to be relied on.",
|
|
206
|
+
settingsChangedReloadDevTools: "Settings changed. To apply, reload DevTools.",
|
|
207
|
+
settingsChangedRestartChrome: "Settings changed. To apply, restart Chrome.",
|
|
208
|
+
noResults: "No experiments match the filter",
|
|
209
|
+
learnMore: "Learn more",
|
|
210
|
+
sendFeedback: "Send feedback",
|
|
211
|
+
searchExperiments: "Search experiments"
|
|
212
|
+
}, It = d("panels/settings/SettingsScreen.ts", z), B = a.bind(void 0, It), Lt;
|
|
213
|
+
function V(e, ...t) {
|
|
214
|
+
let n = document.createElement("devtools-card");
|
|
215
|
+
return n.heading = e, n.append(...t), n;
|
|
216
|
+
}
|
|
217
|
+
var H = class e extends O {
|
|
218
|
+
tabbedLocation;
|
|
219
|
+
keybindsTab;
|
|
220
|
+
reportTabOnReveal;
|
|
221
|
+
constructor() {
|
|
222
|
+
super({ useShadowDom: !0 }), this.registerRequiredCSS(R), this.contentElement.classList.add("settings-window-main"), this.contentElement.classList.add("vbox");
|
|
223
|
+
let t = document.createElement("div");
|
|
224
|
+
t.classList.add("settings-window-label-element");
|
|
225
|
+
let n = at(t, { cssFile: R }).createChild("div", "settings-window-title");
|
|
226
|
+
we(n, 1), n.textContent = B(z.settings), this.tabbedLocation = Ge.instance().createTabbedLocation(() => e.revealSettingsScreen(), "settings-view");
|
|
227
|
+
let r = this.tabbedLocation.tabbedPane();
|
|
228
|
+
r.registerRequiredCSS(R), r.headerElement().prepend(t), r.setShrinkableTabs(!1), r.makeVerticalTabLayout();
|
|
229
|
+
let i = Ge.instance().view("keybinds");
|
|
230
|
+
i && i.widget().then((e) => {
|
|
231
|
+
this.keybindsTab = e;
|
|
232
|
+
}), r.show(this.contentElement), r.selectTab("preferences"), r.addEventListener(Me.TabInvoked, this.tabInvoked, this), this.reportTabOnReveal = !1;
|
|
233
|
+
}
|
|
234
|
+
static instance(t = { forceNew: null }) {
|
|
235
|
+
let { forceNew: n } = t;
|
|
236
|
+
return (!Lt || n) && (Lt = new e()), Lt;
|
|
237
|
+
}
|
|
238
|
+
static revealSettingsScreen() {
|
|
239
|
+
let t = e.instance();
|
|
240
|
+
if (t.isShowing()) return t;
|
|
241
|
+
t.reportTabOnReveal = !0;
|
|
242
|
+
let n = new oe("settings");
|
|
243
|
+
return n.contentElement.removeAttribute("aria-modal"), n.contentElement.tabIndex = -1, n.addCloseButton(), n.setOutsideClickCallback(() => {}), n.setPointerEventsBehavior(Ne.PIERCE_GLASS_PANE), n.setOutsideTabIndexBehavior(ge.PRESERVE_MAIN_VIEW_TAB_INDEX), t.show(n.contentElement), n.setEscapeKeyCallback(t.onEscapeKeyPressed.bind(t)), n.setMarginBehavior(re.NO_MARGIN), n.show(), n.contentElement.focus(), t;
|
|
244
|
+
}
|
|
245
|
+
static async showSettingsScreen(t = {}) {
|
|
246
|
+
let { name: n, focusTabHeader: r } = t, i = e.revealSettingsScreen();
|
|
247
|
+
i.selectTab(n || "preferences");
|
|
248
|
+
let a = i.tabbedLocation.tabbedPane();
|
|
249
|
+
await a.waitForTabElementUpdate(), r ? a.focusSelectedTabHeader() : a.focus();
|
|
250
|
+
}
|
|
251
|
+
resolveLocation(e) {
|
|
252
|
+
return this.tabbedLocation;
|
|
253
|
+
}
|
|
254
|
+
selectTab(e) {
|
|
255
|
+
this.tabbedLocation.tabbedPane().selectTab(e, !0);
|
|
256
|
+
}
|
|
257
|
+
tabInvoked(e) {
|
|
258
|
+
let t = e.data;
|
|
259
|
+
if (!t.isUserGesture) return;
|
|
260
|
+
let n = t.prevTabId, r = t.tabId;
|
|
261
|
+
!this.reportTabOnReveal && n && n === r || (this.reportTabOnReveal = !1, this.reportSettingsPanelShown(r));
|
|
262
|
+
}
|
|
263
|
+
reportSettingsPanelShown(e) {
|
|
264
|
+
if (e === B(z.shortcuts)) {
|
|
265
|
+
qe.instance().settingsPanelShown("shortcuts");
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
qe.instance().settingsPanelShown(e);
|
|
269
|
+
}
|
|
270
|
+
onEscapeKeyPressed(e) {
|
|
271
|
+
this.tabbedLocation.tabbedPane().selectedTabId === "keybinds" && this.keybindsTab && this.keybindsTab.onEscapeKeyPressed(e);
|
|
272
|
+
}
|
|
273
|
+
}, Rt = class e extends O {
|
|
274
|
+
syncSection = new Pt();
|
|
275
|
+
settingToControl = /* @__PURE__ */ new Map();
|
|
276
|
+
containerElement;
|
|
277
|
+
#e = -1;
|
|
278
|
+
#t = null;
|
|
279
|
+
constructor() {
|
|
280
|
+
super({ jslog: `${j("preferences")}` }), this.element.classList.add("settings-tab-container"), this.element.id = "preferences-tab-content", this.containerElement = this.contentElement.createChild("div", "settings-card-container-wrapper").createChild("div"), this.containerElement.classList.add("settings-multicolumn-card-container"), this.syncSection.markAsRoot();
|
|
281
|
+
let t = [
|
|
282
|
+
l.NONE,
|
|
283
|
+
l.APPEARANCE,
|
|
284
|
+
l.SOURCES,
|
|
285
|
+
l.ELEMENTS,
|
|
286
|
+
l.NETWORK,
|
|
287
|
+
l.PERFORMANCE,
|
|
288
|
+
l.MEMORY,
|
|
289
|
+
l.CONSOLE,
|
|
290
|
+
l.EXTENSIONS,
|
|
291
|
+
l.PERSISTENCE,
|
|
292
|
+
l.DEBUGGER,
|
|
293
|
+
l.GLOBAL,
|
|
294
|
+
l.ACCOUNT
|
|
295
|
+
], n = o.instance().getRegisteredSettings().sort((e, t) => e.order && t.order ? e.order - t.order : e.order ? -1 : +!!t.order);
|
|
296
|
+
for (let r of t) {
|
|
297
|
+
let t = n.filter((t) => t.category === r && e.isSettingVisible(t));
|
|
298
|
+
this.createSectionElement(r, t);
|
|
299
|
+
}
|
|
300
|
+
let r = D(B(z.restoreDefaultsAndReload), i, { jslogContext: "settings.restore-defaults-and-reload" });
|
|
301
|
+
this.containerElement.appendChild(r);
|
|
302
|
+
function i() {
|
|
303
|
+
o.instance().clearAll(), gt();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
static isSettingVisible(e) {
|
|
307
|
+
return !!e.title?.() && !!e.category;
|
|
308
|
+
}
|
|
309
|
+
wasShown() {
|
|
310
|
+
k.instance().setFlavor(e, this), super.wasShown(), this.updateSyncSection();
|
|
311
|
+
}
|
|
312
|
+
willHide() {
|
|
313
|
+
this.#e > 0 && (window.clearTimeout(this.#e), this.#e = -1), super.willHide(), k.instance().setFlavor(e, null);
|
|
314
|
+
}
|
|
315
|
+
updateSyncSection() {
|
|
316
|
+
this.#e > 0 && (window.clearTimeout(this.#e), this.#e = -1), this.#t = new Promise((e) => w.getSyncInformation(e)).then((e) => {
|
|
317
|
+
this.syncSection.syncInfo = e, (!e.isSyncActive || !e.arePreferencesSynced) && (this.#e = window.setTimeout(this.updateSyncSection.bind(this), 500));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
createExtensionSection(e) {
|
|
321
|
+
let t = l.EXTENSIONS, n = pt.instance().settingElement();
|
|
322
|
+
this.createStandardSectionElement(t, e, n);
|
|
323
|
+
}
|
|
324
|
+
createSectionElement(e, t) {
|
|
325
|
+
if (e === l.EXTENSIONS) this.createExtensionSection(t);
|
|
326
|
+
else if (e === l.ACCOUNT && t.length > 0) {
|
|
327
|
+
let e = V(s(l.ACCOUNT), this.syncSection.element);
|
|
328
|
+
this.containerElement.appendChild(e);
|
|
329
|
+
} else t.length > 0 && this.createStandardSectionElement(e, t);
|
|
330
|
+
}
|
|
331
|
+
createStandardSectionElement(e, t, n) {
|
|
332
|
+
let r = s(e), i = document.createElement("div");
|
|
333
|
+
for (let e of t) {
|
|
334
|
+
let t = o.instance().moduleSetting(e.settingName), n = wt(t);
|
|
335
|
+
n && (this.settingToControl.set(t, n), i.appendChild(n));
|
|
336
|
+
}
|
|
337
|
+
n && i.appendChild(n);
|
|
338
|
+
let a = V(r, i);
|
|
339
|
+
this.containerElement.appendChild(a);
|
|
340
|
+
}
|
|
341
|
+
highlightObject(e) {
|
|
342
|
+
if (e instanceof c) {
|
|
343
|
+
let t = this.settingToControl.get(e);
|
|
344
|
+
t ? Et.highlightElement(t) : e.name === "receive-gdp-badges" && this.#t?.then(() => {
|
|
345
|
+
this.syncSection.highlightReceiveBadgesSetting();
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}, zt = class e extends O {
|
|
350
|
+
#e;
|
|
351
|
+
experimentToControl = /* @__PURE__ */ new Map();
|
|
352
|
+
containerElement;
|
|
353
|
+
constructor() {
|
|
354
|
+
super({ jslog: `${j("experiments")}` }), this.element.classList.add("settings-tab-container"), this.element.id = "experiments-tab-content", this.containerElement = this.contentElement.createChild("div", "settings-card-container-wrapper").createChild("div"), this.containerElement.classList.add("settings-card-container");
|
|
355
|
+
let e = this.containerElement.createChild("div");
|
|
356
|
+
e.classList.add("experiments-filter"), y(x`
|
|
357
|
+
<devtools-toolbar>
|
|
358
|
+
<devtools-toolbar-input autofocus type="filter" placeholder=${B(z.searchExperiments)} style="flex-grow:1" @change=${this.#t.bind(this)}></devtools-toolbar-input>
|
|
359
|
+
</devtools-toolbar>
|
|
360
|
+
`, e), this.renderExperiments("");
|
|
361
|
+
}
|
|
362
|
+
#t(e) {
|
|
363
|
+
this.renderExperiments(e.detail.toLowerCase());
|
|
364
|
+
}
|
|
365
|
+
renderExperiments(e) {
|
|
366
|
+
this.experimentToControl.clear(), this.#e && this.#e.remove();
|
|
367
|
+
let t = te.allConfigurableExperiments().sort((e, t) => e.title.localeCompare(t.title)).filter((t) => t.title.toLowerCase().includes(e));
|
|
368
|
+
if (t.length) {
|
|
369
|
+
let e = document.createElement("div");
|
|
370
|
+
e.classList.add("settings-experiments-block");
|
|
371
|
+
let n = B(z.theseExperimentsCouldBeUnstable), r = this.createExperimentsWarningSubsection(n);
|
|
372
|
+
for (let n of t) e.appendChild(this.createExperimentCheckbox(n));
|
|
373
|
+
this.#e = V(B(z.experiments), r, e), this.containerElement.appendChild(this.#e), S.alert(B(z.experimentsFound, { n: t.length }));
|
|
374
|
+
} else {
|
|
375
|
+
let e = document.createElement("span");
|
|
376
|
+
e.textContent = B(z.noResults), S.alert(e.textContent), this.#e = V(B(z.experiments), e), this.containerElement.appendChild(this.#e);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
createExperimentsWarningSubsection(e) {
|
|
380
|
+
let t = document.createElement("div");
|
|
381
|
+
t.classList.add("experiments-warning-subsection");
|
|
382
|
+
let n = _e("warning");
|
|
383
|
+
t.appendChild(n);
|
|
384
|
+
let r = t.createChild("span");
|
|
385
|
+
return r.textContent = e, t;
|
|
386
|
+
}
|
|
387
|
+
createExperimentCheckbox(e) {
|
|
388
|
+
let t = Ae.createWithStringLiteral(e.title, e.isEnabled(), e.name);
|
|
389
|
+
t.classList.add("experiment-label"), t.name = e.name;
|
|
390
|
+
function n() {
|
|
391
|
+
e instanceof f && w.setChromeFlag(e.aboutFlag, t.checked), e.setEnabled(t.checked), A.experimentChanged(e.name, e.isEnabled()), e instanceof f && e.requiresChromeRestart ? be.instance().displayChromeRestartRequiredWarning(B(z.settingsChangedRestartChrome)) : be.instance().displayReloadRequiredWarning(B(z.settingsChangedReloadDevTools));
|
|
392
|
+
}
|
|
393
|
+
t.addEventListener("click", n, !1);
|
|
394
|
+
let r = document.createElement("p");
|
|
395
|
+
this.experimentToControl.set(e, r), r.classList.add("settings-experiment"), r.appendChild(t);
|
|
396
|
+
let i = e.docLink;
|
|
397
|
+
if (i) {
|
|
398
|
+
let t = new Ie();
|
|
399
|
+
t.data = {
|
|
400
|
+
iconName: "help",
|
|
401
|
+
variant: g.ICON,
|
|
402
|
+
size: T.SMALL,
|
|
403
|
+
jslogContext: `${e.name}-documentation`,
|
|
404
|
+
title: B(z.learnMore)
|
|
405
|
+
}, t.addEventListener("click", () => _(i)), t.classList.add("link-icon"), r.appendChild(t);
|
|
406
|
+
}
|
|
407
|
+
if (e.feedbackLink) {
|
|
408
|
+
let t = Ye.create(e.feedbackLink, void 0, void 0, `${e.name}-feedback`);
|
|
409
|
+
t.textContent = B(z.sendFeedback), t.classList.add("feedback-link"), r.appendChild(t);
|
|
410
|
+
}
|
|
411
|
+
return r;
|
|
412
|
+
}
|
|
413
|
+
highlightObject(e) {
|
|
414
|
+
if (e instanceof ne || e instanceof f) {
|
|
415
|
+
let t = this.experimentToControl.get(e);
|
|
416
|
+
t && Et.highlightElement(t);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
wasShown() {
|
|
420
|
+
k.instance().setFlavor(e, this), super.wasShown();
|
|
421
|
+
}
|
|
422
|
+
willHide() {
|
|
423
|
+
super.willHide(), k.instance().setFlavor(e, null);
|
|
424
|
+
}
|
|
425
|
+
}, Bt = class {
|
|
426
|
+
handleAction(e, t) {
|
|
427
|
+
switch (t) {
|
|
428
|
+
case "settings.show": return H.showSettingsScreen({ focusTabHeader: !0 }), !0;
|
|
429
|
+
case "settings.documentation": return _("https://developer.chrome.com/docs/devtools/"), !0;
|
|
430
|
+
case "settings.shortcuts": return H.showSettingsScreen({
|
|
431
|
+
name: "keybinds",
|
|
432
|
+
focusTabHeader: !0
|
|
433
|
+
}), !0;
|
|
434
|
+
}
|
|
435
|
+
return !1;
|
|
436
|
+
}
|
|
437
|
+
}, Vt = class {
|
|
438
|
+
async reveal(e) {
|
|
439
|
+
let t = k.instance();
|
|
440
|
+
if (e instanceof ne || e instanceof f) {
|
|
441
|
+
w.bringToFront(), await H.showSettingsScreen({ name: "experiments" });
|
|
442
|
+
let n = t.flavor(zt);
|
|
443
|
+
n !== null && n.highlightObject(e);
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
for (let n of o.instance().getRegisteredSettings()) if (Rt.isSettingVisible(n) && n.settingName === e.name) {
|
|
447
|
+
w.bringToFront(), await H.showSettingsScreen();
|
|
448
|
+
let n = t.flavor(Rt);
|
|
449
|
+
n !== null && n.highlightObject(e);
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
for (let t of Ge.instance().getRegisteredViewExtensions()) {
|
|
453
|
+
let n = t.viewId();
|
|
454
|
+
if (t.location() !== Ce.SETTINGS_VIEW) continue;
|
|
455
|
+
let r = t.settings();
|
|
456
|
+
if (r && r.indexOf(e.name) !== -1) {
|
|
457
|
+
w.bringToFront(), await H.showSettingsScreen({ name: n });
|
|
458
|
+
let r = await t.widget();
|
|
459
|
+
"highlightObject" in r && typeof r.highlightObject == "function" && r.highlightObject(e);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}, Ht = class extends O {
|
|
465
|
+
#e;
|
|
466
|
+
constructor(e = Ut) {
|
|
467
|
+
super({ jslog: `${j("greendev-prototypes")}` }), this.element.id = "greendev-prototypes-tab-content", this.#e = e, this.requestUpdate();
|
|
468
|
+
}
|
|
469
|
+
highlightObject(e) {}
|
|
470
|
+
performUpdate() {
|
|
471
|
+
let e = tt.instance().settings();
|
|
472
|
+
this.#e({ settings: e }, {}, this.element);
|
|
473
|
+
}
|
|
474
|
+
}, Ut = (e, t, n) => {
|
|
475
|
+
y(x`
|
|
476
|
+
<div class="settings-card-container">
|
|
477
|
+
<devtools-card .heading=${"GreenDev prototypes"}>
|
|
478
|
+
<div class="experiments-warning-subsection">
|
|
479
|
+
<devtools-icon .name=${"warning"}></devtools-icon>
|
|
480
|
+
<span>${B(z.greenDevUnstable)}</span>
|
|
481
|
+
</div>
|
|
482
|
+
<div class="settings-experiments-block">
|
|
483
|
+
${Gt(e.settings, [
|
|
484
|
+
"aiAnnotations",
|
|
485
|
+
"beyondStylingGemini",
|
|
486
|
+
"beyondStylingAntigravity",
|
|
487
|
+
"emulationCapabilities"
|
|
488
|
+
])}
|
|
489
|
+
</div>
|
|
490
|
+
</devtools-card>
|
|
491
|
+
</div>
|
|
492
|
+
`, n);
|
|
493
|
+
}, Wt = {
|
|
494
|
+
aiAnnotations: "AI auto-annotations",
|
|
495
|
+
beyondStylingGemini: "Beyond Styling (Gemini CLI)",
|
|
496
|
+
beyondStylingAntigravity: "Beyond Styling (Antigravity CLI)",
|
|
497
|
+
emulationCapabilities: "Emulation Capabilities"
|
|
498
|
+
};
|
|
499
|
+
function Gt(e, t) {
|
|
500
|
+
let { bindToSetting: n } = Te;
|
|
501
|
+
function r() {
|
|
502
|
+
be.instance().displayReloadRequiredWarning(B(z.settingsChangedReloadDevTools));
|
|
503
|
+
}
|
|
504
|
+
return x`${Object.keys(e).map((i) => {
|
|
505
|
+
let a = i;
|
|
506
|
+
if (!t.includes(a)) return E;
|
|
507
|
+
let o = e[a], s = Wt[a];
|
|
508
|
+
return x`<p class="settings-experiment">
|
|
509
|
+
<devtools-checkbox @change=${r} title=${s} ${n(o)}>${s}</devtools-checkbox>
|
|
510
|
+
</p>`;
|
|
511
|
+
})}`;
|
|
512
|
+
}
|
|
513
|
+
//#endregion
|
|
514
|
+
//#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/settings/aiSettingsTab.css.mjs
|
|
515
|
+
var Kt = "/*\n * Copyright 2024 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *){\n .ai-settings-container {\n container-type: inline-size;\n container-name: ai-settings;\n\n @container ai-settings (min-width: 480px) {\n .settings-container-wrapper {\n align-items: center;\n }\n }\n }\n\n * {\n box-sizing: border-box;\n min-height: auto;\n }\n\n .shared-disclaimer {\n background: linear-gradient(135deg, var(--sys-color-gradient-primary), var(--sys-color-gradient-tertiary));\n border-radius: var(--sys-size-5);\n padding: var(--sys-size-9) var(--sys-size-11);\n max-width: var(--sys-size-35);\n min-width: var(--sys-size-28);\n\n h2 {\n font: var(--sys-typescale-headline5);\n margin: 0 0 var(--sys-size-6);\n }\n }\n\n .disclaimer-list-header {\n font: var(--sys-typescale-body5-medium);\n margin: 0;\n }\n\n .disclaimer-list {\n padding: var(--sys-size-6) 0 0;\n display: grid;\n grid-template-columns: var(--sys-size-12) auto;\n gap: var(--sys-size-6) 0;\n line-height: var(--sys-typescale-body5-line-height);\n }\n\n .settings-container {\n display: grid;\n grid-template-columns: 1fr auto auto;\n border-radius: var(--sys-size-5);\n box-shadow: var(--sys-elevation-level2);\n margin: var(--sys-size-11) 0 var(--sys-size-4);\n line-height: var(--sys-typescale-body5-line-height);\n min-width: var(--sys-size-28);\n max-width: var(--sys-size-35);\n background-color: var(--app-color-card-background);\n }\n\n .accordion-header {\n display: grid;\n grid-template-columns: auto 1fr auto;\n\n &:hover {\n background-color: var(--sys-color-state-hover-on-subtle);\n }\n }\n\n .icon-container,\n .dropdown {\n padding: 0 var(--sys-size-8);\n }\n\n .toggle-container {\n padding: 0 var(--sys-size-8) 0 var(--sys-size-9);\n\n &:hover {\n background-color: var(--sys-color-state-hover-on-subtle);\n }\n }\n\n .expansion-grid {\n padding: var(--sys-size-4) var(--sys-size-8) var(--sys-size-6);\n display: grid;\n grid-template-columns: var(--sys-size-9) auto;\n gap: var(--sys-size-6) var(--sys-size-8);\n line-height: var(--sys-typescale-body5-line-height);\n color: var(--sys-color-on-surface-subtle);\n }\n\n .expansion-grid-whole-row {\n grid-column: span 2;\n font-weight: var(--ref-typeface-weight-medium);\n color: var(--sys-color-on-surface);\n padding-top: var(--sys-size-4);\n margin: 0;\n font-size: inherit;\n }\n\n .setting-description {\n color: var(--sys-color-on-surface-subtle);\n }\n\n .centered {\n display: grid;\n place-content: center;\n }\n\n .setting-card {\n padding: var(--sys-size-6) 0;\n\n h2 {\n margin: 0;\n font: inherit;\n }\n }\n\n .divider {\n margin: var(--sys-size-5) 0;\n border-left: var(--sys-size-1) solid var(--sys-color-divider);\n }\n\n .accordion-header ~ .accordion-header,\n .divider ~ .divider,\n .toggle-container ~ .toggle-container {\n border-top: var(--sys-size-1) solid var(--sys-color-divider);\n }\n\n .whole-row {\n grid-column: span 5;\n overflow: hidden;\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows var(--sys-motion-duration-short4) ease-in;\n }\n\n .whole-row.open {\n grid-template-rows: 1fr;\n }\n\n .overflow-hidden {\n overflow: hidden;\n }\n\n .link,\n .devtools-link {\n color: var(--sys-color-primary);\n text-decoration: underline;\n cursor: pointer;\n outline-offset: var(--sys-size-2);\n padding: 0;\n font-weight: var(--ref-typeface-weight-regular);\n }\n\n .padded {\n padding: var(--sys-size-2) 0;\n }\n\n .settings-container-wrapper {\n position: absolute;\n inset: var(--sys-size-8) 0 0;\n overflow: auto;\n padding: var(--sys-size-3) var(--sys-size-6) var(--sys-size-6);\n display: flex;\n flex-direction: column;\n }\n\n header {\n font-size: var(--sys-typescale-headline3-size);\n font-weight: var(--ref-typeface-weight-regular);\n }\n\n .disabled-explainer {\n background-color: var(--sys-color-surface-yellow);\n border-radius: var(--sys-shape-corner-medium-small);\n margin-top: var(--sys-size-11);\n padding: var(--sys-size-6) var(--sys-size-11) var(--sys-size-8);\n width: 100%;\n max-width: var(--sys-size-35);\n min-width: var(--sys-size-28);\n color: var(--sys-color-yellow);\n }\n\n .disabled-explainer-row {\n display: flex;\n gap: var(--sys-size-6);\n margin-top: var(--sys-size-4);\n }\n}\n", qt = /* @__PURE__ */ e({
|
|
516
|
+
AISettingsTab: () => en,
|
|
517
|
+
AI_SETTINGS_TAB_DEFAULT_VIEW: () => $t
|
|
518
|
+
}), { html: U, nothing: Jt, render: Yt, Directives: { ifDefined: Xt, classMap: Zt } } = ye, W = {
|
|
519
|
+
boostYourProductivity: "Boost your productivity with AI",
|
|
520
|
+
thingsToConsider: "Things to consider",
|
|
521
|
+
experimentalFeatures: "These features use generative AI and may provide inaccurate or offensive information that doesn’t represent Google’s views",
|
|
522
|
+
sendsDataToGoogle: "These features send relevant data to Google. Google collects this data and feedback to improve its products and services with the help of human reviewers. Avoid sharing sensitive or personal information.",
|
|
523
|
+
sendsDataToGoogleNoLogging: "Your content will not be used by human reviewers to improve AI. Your organization may change these settings at any time.",
|
|
524
|
+
dataCollection: "Depending on your region, Google may refrain from data collection",
|
|
525
|
+
dataCollectionNoLogging: "Depending on your Google account management and/or region, Google may refrain from data collection",
|
|
526
|
+
helpUnderstandConsole: "Helps you understand and fix console warnings and errors",
|
|
527
|
+
aIAnnotationsFeatureDescription: "Automatically generate titles for performance trace annotations",
|
|
528
|
+
helpAnnotatePerformance: "Helps you annotate your performance trace with auto-generated labels",
|
|
529
|
+
showMore: "Show more",
|
|
530
|
+
showLess: "Show less",
|
|
531
|
+
whenOn: "When on",
|
|
532
|
+
explainConsole: "Get explanations for console warnings and errors",
|
|
533
|
+
receiveSuggestions: "Receive suggestions and code samples to address these issues",
|
|
534
|
+
consoleInsightsSendsData: "To generate explanations, the console message, associated stack trace, related source code, and the associated network headers are sent to Google. This data may be seen by human reviewers to improve this feature.",
|
|
535
|
+
consoleInsightsSendsDataNoLogging: "To generate explanations, the console message, associated stack trace, related source code, and the associated network headers are sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.",
|
|
536
|
+
termsOfServicePrivacyNotice: "Use of these features is subject to the {PH1} and {PH2}",
|
|
537
|
+
helpUnderstandStyling: "Get help with understanding CSS styles",
|
|
538
|
+
helpUnderstandStylingAndNetworkRequest: "Get help with understanding CSS styles, and network requests",
|
|
539
|
+
helpUnderstandStylingNetworkAndFile: "Get help with understanding CSS styles, network requests, and files",
|
|
540
|
+
helpUnderstandStylingNetworkPerformanceAndFile: "Get help with understanding CSS styles, network requests, performance, and files",
|
|
541
|
+
aiAssistanceDescriptionV2: "Get context-aware help on the inspected page",
|
|
542
|
+
aiAssistanceWhenOnItem1V2: "Debug styling, network, performance, source code, accessibility and storage issues with DevTools AI assistance",
|
|
543
|
+
aiAssistanceWhenOnItem2V2: "Follow the agent's reasoning step-by-step and quickly jump to the relevant source data",
|
|
544
|
+
aiAssistanceThingsToConsiderV2: "To generate explanations, chat messages, data accessible for this site via DevTools panels and Web APIs, and items you select such as network requests, files, and performance traces are sent to Google and may be seen by human reviewers to improve this feature. This is an experimental AI feature and won’t always get it right.",
|
|
545
|
+
aiAssistanceThingsToConsiderNoLoggingV2: "To generate explanations, chat messages, data accessible for this site via DevTools panels and Web APIs, and items you select such as network requests, files, and performance traces are sent to Google. The content you submit and that is generated by this feature will not be used to improve Google’s AI models. This is an experimental AI feature and won’t always get it right.",
|
|
546
|
+
helpUnderstandCodeSuggestions: "Write code faster with AI-powered suggestions",
|
|
547
|
+
learnMore: "Learn more",
|
|
548
|
+
explainStyling: "Understand CSS styles with AI-powered insights",
|
|
549
|
+
explainStylingAndNetworkRequest: "Understand CSS styles, and network activity with AI-powered insights",
|
|
550
|
+
explainStylingNetworkAndFile: "Understand CSS styles, network activity, and file origins with AI-powered insights",
|
|
551
|
+
explainStylingNetworkPerformanceAndFile: "Understand CSS styles, network activity, performance bottlenecks, and file origins with AI-powered insights",
|
|
552
|
+
receiveStylingSuggestions: "Improve your development workflow with contextual explanations and suggestions",
|
|
553
|
+
freestylerSendsData: "To generate explanations, your chat messages, any data the inspected page can see using Web APIs, and the items you select such as files, network requests, and performance traces are sent to Google. This data may be seen by human reviewers to improve this feature. Don’t use on pages with personal or sensitive information.",
|
|
554
|
+
freestylerSendsDataNoLogging: "To generate explanations, your chat messages, any data the inspected page can see using Web APIs, and the items you select such as files, network requests, and performance traces are sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.",
|
|
555
|
+
generatedAiAnnotationsSendData: "To generate annotation suggestions, your performance trace is sent to Google. This data may be seen by human reviewers to improve this feature.",
|
|
556
|
+
generatedAiAnnotationsSendDataNoLogging: "To generate annotation suggestions, your performance trace is sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.",
|
|
557
|
+
asYouTypeCodeSuggestions: "As you type in the Console or Sources panel, you’ll get code suggestions. Press Tab to accept one.",
|
|
558
|
+
asYouTypeRelevantDataIsBeingSentToGoogle: "As you type, relevant data is being sent to Google to generate code suggestions. Press Tab to accept.",
|
|
559
|
+
describeCodeInComment: "In Console or Sources, describe the code you need in a comment, then press Ctrl+I to generate it.",
|
|
560
|
+
describeCodeInCommentForMacOs: "In Console or Sources, describe the code you need in a comment, then press Cmd+I to generate it.",
|
|
561
|
+
codeSuggestionsSendData: "To generate code suggestions, your console input, the history of your current console session, the currently inspected CSS, and the contents of the currently open file are shared with Google. This data may be seen by human reviewers to improve this feature.",
|
|
562
|
+
codeSuggestionsSendDataNoLogging: "To generate code suggestions, your console input, the history of your current console session, the currently inspected CSS, and the contents of the currently open file are shared with Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.",
|
|
563
|
+
termsOfService: "Google Terms of Service",
|
|
564
|
+
privacyNotice: "Google Privacy Policy",
|
|
565
|
+
enableConsoleInsights: "Enable `Console insights`",
|
|
566
|
+
enableAiAssistance: "Enable AI assistance",
|
|
567
|
+
enableAiSuggestedAnnotations: "Enable AI suggestions for performance panel annotations",
|
|
568
|
+
enableAiCodeSuggestions: "Enable AI code suggestions"
|
|
569
|
+
}, Qt = d("panels/settings/AISettingsTab.ts", W), G = a.bind(void 0, Qt), $t = (e, t, n) => {
|
|
570
|
+
let r = e.disabledReasons.length ? U`
|
|
571
|
+
<div class="disabled-explainer">
|
|
572
|
+
${e.disabledReasons.map((e) => U`
|
|
573
|
+
<div class="disabled-explainer-row">
|
|
574
|
+
<devtools-icon name="warning" class="medium" style="color: var(--icon-warning);">
|
|
575
|
+
</devtools-icon>
|
|
576
|
+
${e}
|
|
577
|
+
</div>
|
|
578
|
+
`)}
|
|
579
|
+
</div>
|
|
580
|
+
` : Jt, i = U`
|
|
581
|
+
<div class="shared-disclaimer">
|
|
582
|
+
<h2>${G(W.boostYourProductivity)}</h2>
|
|
583
|
+
<h3 class="disclaimer-list-header">${G(W.thingsToConsider)}</h3>
|
|
584
|
+
<div class="disclaimer-list">
|
|
585
|
+
${e.sharedDisclaimerBulletPoints.map((e) => U`<div><devtools-icon .name=${e.icon} class="medium"></devtools-icon>
|
|
586
|
+
</div><div>${e.text}</div>`)}
|
|
587
|
+
</div>
|
|
588
|
+
</div>
|
|
589
|
+
`, a = (e) => U`
|
|
590
|
+
<div>
|
|
591
|
+
<devtools-icon class="extra-large" .name=${e.iconName}>
|
|
592
|
+
</devtools-icon>
|
|
593
|
+
</div>
|
|
594
|
+
<div class="padded">${e.text}</div>
|
|
595
|
+
`, o = e.disabledReasons.length > 0, s = e.disabledReasons.join("\n") || void 0, c = Array.from(e.settingToParams.keys()).map((t) => {
|
|
596
|
+
let n = e.settingToParams.get(t);
|
|
597
|
+
if (!n) return Jt;
|
|
598
|
+
let r = {
|
|
599
|
+
"whole-row": !0,
|
|
600
|
+
open: n.settingExpandState.isSettingExpanded
|
|
601
|
+
}, i = n.settingExpandState.isSettingExpanded ? "0" : "-1";
|
|
602
|
+
return U`
|
|
603
|
+
<div class="accordion-header" @click=${e.expandSetting.bind(void 0, t)}>
|
|
604
|
+
<div class="icon-container centered">
|
|
605
|
+
<devtools-icon name=${n.iconName}></devtools-icon>
|
|
606
|
+
</div>
|
|
607
|
+
<div class="setting-card">
|
|
608
|
+
<h2>${n.settingName}</h2>
|
|
609
|
+
<div class="setting-description">${n.settingDescription}</div>
|
|
610
|
+
</div>
|
|
611
|
+
<div class="dropdown centered">
|
|
612
|
+
<devtools-button
|
|
613
|
+
.data=${{
|
|
614
|
+
title: n.settingExpandState.isSettingExpanded ? G(W.showLess) : G(W.showMore),
|
|
615
|
+
size: T.SMALL,
|
|
616
|
+
iconName: n.settingExpandState.isSettingExpanded ? "chevron-up" : "chevron-down",
|
|
617
|
+
variant: g.ICON,
|
|
618
|
+
jslogContext: n.settingExpandState.expandSettingJSLogContext
|
|
619
|
+
}}
|
|
620
|
+
></devtools-button>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
<div class="divider"></div>
|
|
624
|
+
<div class="toggle-container centered"
|
|
625
|
+
title=${Xt(s)}
|
|
626
|
+
@click=${e.toggleSetting.bind(void 0, t)}
|
|
627
|
+
>
|
|
628
|
+
<devtools-switch
|
|
629
|
+
.checked=${!!t.get() && !o}
|
|
630
|
+
.jslogContext=${t.name || ""}
|
|
631
|
+
.disabled=${o}
|
|
632
|
+
.label=${s || n.enableSettingText}
|
|
633
|
+
data-testid=${n.enableSettingText}
|
|
634
|
+
@switchchange=${e.toggleSetting.bind(void 0, t)}
|
|
635
|
+
></devtools-switch>
|
|
636
|
+
</div>
|
|
637
|
+
<div class=${Zt(r)}>
|
|
638
|
+
<div class="overflow-hidden">
|
|
639
|
+
<div class="expansion-grid">
|
|
640
|
+
<h3 class="expansion-grid-whole-row">${G(W.whenOn)}</h3>
|
|
641
|
+
${n.settingItems.map((e) => a(e))}
|
|
642
|
+
<h3 class="expansion-grid-whole-row">${G(W.thingsToConsider)}</h3>
|
|
643
|
+
${n.toConsiderSettingItems.map((e) => a(e))}
|
|
644
|
+
<div class="expansion-grid-whole-row">
|
|
645
|
+
<devtools-link
|
|
646
|
+
href=${n.learnMoreLink.url}
|
|
647
|
+
class="link"
|
|
648
|
+
tabindex=${i}
|
|
649
|
+
.jslogContext=${n.learnMoreLink.linkJSLogContext}
|
|
650
|
+
>${G(W.learnMore)}</devtools-link>
|
|
651
|
+
</div>
|
|
652
|
+
</div>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
`;
|
|
656
|
+
});
|
|
657
|
+
Yt(U`
|
|
658
|
+
<style>${Tt}</style>
|
|
659
|
+
<style>${Kt}</style>
|
|
660
|
+
<div class="ai-settings-container">
|
|
661
|
+
<div class="settings-container-wrapper" jslog=${j("chrome-ai")}>
|
|
662
|
+
${i}
|
|
663
|
+
${e.settingToParams.size ? U`
|
|
664
|
+
${r}
|
|
665
|
+
<div class="settings-container">
|
|
666
|
+
${c}
|
|
667
|
+
</div>
|
|
668
|
+
` : Jt}
|
|
669
|
+
</div></div>
|
|
670
|
+
`, n);
|
|
671
|
+
}, en = class extends O {
|
|
672
|
+
#e;
|
|
673
|
+
#t;
|
|
674
|
+
#n;
|
|
675
|
+
#r;
|
|
676
|
+
#i;
|
|
677
|
+
#a = Be.NO_ACCOUNT_EMAIL;
|
|
678
|
+
#o;
|
|
679
|
+
#s = /* @__PURE__ */ new Map();
|
|
680
|
+
constructor(e) {
|
|
681
|
+
super();
|
|
682
|
+
try {
|
|
683
|
+
this.#t = o.instance().moduleSetting("console-insights-enabled");
|
|
684
|
+
} catch {
|
|
685
|
+
this.#t = void 0;
|
|
686
|
+
}
|
|
687
|
+
try {
|
|
688
|
+
this.#r = o.instance().moduleSetting("ai-assistance-enabled");
|
|
689
|
+
} catch {
|
|
690
|
+
this.#r = void 0;
|
|
691
|
+
}
|
|
692
|
+
p.devToolsAiGeneratedTimelineLabels?.enabled && (this.#n = o.instance().createSetting("ai-annotations-enabled", !1)), p.devToolsAiCodeCompletion?.enabled && (this.#i = o.instance().createSetting("ai-code-completion-enabled", !1)), this.#o = this.#l.bind(this), this.#c(), this.#e = e ?? $t;
|
|
693
|
+
}
|
|
694
|
+
performUpdate() {
|
|
695
|
+
let e = {
|
|
696
|
+
disabledReasons: ft(this.#a),
|
|
697
|
+
sharedDisclaimerBulletPoints: this.#m(),
|
|
698
|
+
settingToParams: this.#s,
|
|
699
|
+
expandSetting: this.#f.bind(this),
|
|
700
|
+
toggleSetting: this.#p.bind(this)
|
|
701
|
+
};
|
|
702
|
+
this.#e(e, void 0, this.contentElement);
|
|
703
|
+
}
|
|
704
|
+
wasShown() {
|
|
705
|
+
super.wasShown(), ce.instance().addEventListener(Pe.AIDA_AVAILABILITY_CHANGED, this.#o), this.#l(), this.requestUpdate();
|
|
706
|
+
}
|
|
707
|
+
willHide() {
|
|
708
|
+
super.willHide(), ce.instance().removeEventListener(Pe.AIDA_AVAILABILITY_CHANGED, this.#o);
|
|
709
|
+
}
|
|
710
|
+
#c() {
|
|
711
|
+
let e = p.aidaAvailability?.enterprisePolicyValue === m.ALLOW_WITHOUT_LOGGING;
|
|
712
|
+
if (this.#t) {
|
|
713
|
+
let t = {
|
|
714
|
+
settingName: r("Console Insights"),
|
|
715
|
+
iconName: "lightbulb-spark",
|
|
716
|
+
settingDescription: G(W.helpUnderstandConsole),
|
|
717
|
+
enableSettingText: G(W.enableConsoleInsights),
|
|
718
|
+
settingItems: [{
|
|
719
|
+
iconName: "lightbulb",
|
|
720
|
+
text: G(W.explainConsole)
|
|
721
|
+
}, {
|
|
722
|
+
iconName: "code",
|
|
723
|
+
text: G(W.receiveSuggestions)
|
|
724
|
+
}],
|
|
725
|
+
toConsiderSettingItems: [{
|
|
726
|
+
iconName: "google",
|
|
727
|
+
text: G(e ? W.consoleInsightsSendsDataNoLogging : W.consoleInsightsSendsData)
|
|
728
|
+
}],
|
|
729
|
+
learnMoreLink: {
|
|
730
|
+
url: "https://developer.chrome.com/docs/devtools/console/understand-messages",
|
|
731
|
+
linkJSLogContext: "learn-more.console-insights"
|
|
732
|
+
},
|
|
733
|
+
settingExpandState: {
|
|
734
|
+
isSettingExpanded: !1,
|
|
735
|
+
expandSettingJSLogContext: "console-insights.accordion"
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
this.#s.set(this.#t, t);
|
|
739
|
+
}
|
|
740
|
+
if (this.#r) {
|
|
741
|
+
let t = p.devToolsAiAssistanceV2?.enabled, n = {
|
|
742
|
+
settingName: r(vt() ? "Gemini in Chrome DevTools" : "AI assistance"),
|
|
743
|
+
iconName: lt(),
|
|
744
|
+
settingDescription: this.#u(),
|
|
745
|
+
enableSettingText: G(W.enableAiAssistance),
|
|
746
|
+
settingItems: [{
|
|
747
|
+
iconName: "info",
|
|
748
|
+
text: this.#d()
|
|
749
|
+
}, {
|
|
750
|
+
iconName: "pen-spark",
|
|
751
|
+
text: G(t ? W.aiAssistanceWhenOnItem2V2 : W.receiveStylingSuggestions)
|
|
752
|
+
}],
|
|
753
|
+
toConsiderSettingItems: [{
|
|
754
|
+
iconName: "google",
|
|
755
|
+
text: G(t ? e ? W.aiAssistanceThingsToConsiderNoLoggingV2 : W.aiAssistanceThingsToConsiderV2 : e ? W.freestylerSendsDataNoLogging : W.freestylerSendsData)
|
|
756
|
+
}],
|
|
757
|
+
learnMoreLink: {
|
|
758
|
+
url: "https://developer.chrome.com/docs/devtools/ai-assistance",
|
|
759
|
+
linkJSLogContext: "learn-more.ai-assistance"
|
|
760
|
+
},
|
|
761
|
+
settingExpandState: {
|
|
762
|
+
isSettingExpanded: !1,
|
|
763
|
+
expandSettingJSLogContext: "freestyler.accordion"
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
this.#s.set(this.#r, n);
|
|
767
|
+
}
|
|
768
|
+
if (this.#n) {
|
|
769
|
+
let t = {
|
|
770
|
+
settingName: r("Auto annotations"),
|
|
771
|
+
iconName: "pen-spark",
|
|
772
|
+
settingDescription: G(W.aIAnnotationsFeatureDescription),
|
|
773
|
+
enableSettingText: G(W.enableAiSuggestedAnnotations),
|
|
774
|
+
settingItems: [{
|
|
775
|
+
iconName: "label-auto",
|
|
776
|
+
text: G(W.helpAnnotatePerformance)
|
|
777
|
+
}],
|
|
778
|
+
toConsiderSettingItems: [{
|
|
779
|
+
iconName: "google",
|
|
780
|
+
text: G(e ? W.generatedAiAnnotationsSendDataNoLogging : W.generatedAiAnnotationsSendData)
|
|
781
|
+
}],
|
|
782
|
+
learnMoreLink: {
|
|
783
|
+
url: "https://developer.chrome.com/docs/devtools/performance/annotations#auto-annotations",
|
|
784
|
+
linkJSLogContext: "learn-more.auto-annotations"
|
|
785
|
+
},
|
|
786
|
+
settingExpandState: {
|
|
787
|
+
isSettingExpanded: !1,
|
|
788
|
+
expandSettingJSLogContext: "auto-annotations.accordion"
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
this.#s.set(this.#n, t);
|
|
792
|
+
}
|
|
793
|
+
if (this.#i) {
|
|
794
|
+
let t = p.devToolsAiCodeGeneration?.enabled ? [{
|
|
795
|
+
iconName: "code",
|
|
796
|
+
text: G(W.asYouTypeRelevantDataIsBeingSentToGoogle)
|
|
797
|
+
}, {
|
|
798
|
+
iconName: "text-analysis",
|
|
799
|
+
text: Ke() ? G(W.describeCodeInCommentForMacOs) : G(W.describeCodeInComment)
|
|
800
|
+
}] : [{
|
|
801
|
+
iconName: "code",
|
|
802
|
+
text: G(W.asYouTypeCodeSuggestions)
|
|
803
|
+
}], n = {
|
|
804
|
+
settingName: r("Code suggestions"),
|
|
805
|
+
iconName: "text-analysis",
|
|
806
|
+
settingDescription: G(W.helpUnderstandCodeSuggestions),
|
|
807
|
+
enableSettingText: G(W.enableAiCodeSuggestions),
|
|
808
|
+
settingItems: t,
|
|
809
|
+
toConsiderSettingItems: [{
|
|
810
|
+
iconName: "google",
|
|
811
|
+
text: G(e ? W.codeSuggestionsSendDataNoLogging : W.codeSuggestionsSendData)
|
|
812
|
+
}],
|
|
813
|
+
learnMoreLink: {
|
|
814
|
+
url: " https://developers.chrome.com/docs/devtools/ai-assistance/code-completion",
|
|
815
|
+
linkJSLogContext: "learn-more.code-completion"
|
|
816
|
+
},
|
|
817
|
+
settingExpandState: {
|
|
818
|
+
isSettingExpanded: !1,
|
|
819
|
+
expandSettingJSLogContext: "code-completion.accordion"
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
this.#s.set(this.#i, n);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
async #l() {
|
|
826
|
+
let e = await ue.checkAccessPreconditions();
|
|
827
|
+
e !== this.#a && (this.#a = e, this.requestUpdate());
|
|
828
|
+
}
|
|
829
|
+
#u() {
|
|
830
|
+
let { hostConfig: e } = h;
|
|
831
|
+
return e.devToolsAiAssistanceV2?.enabled ? G(W.aiAssistanceDescriptionV2) : e.devToolsAiAssistancePerformanceAgent?.enabled ? G(W.helpUnderstandStylingNetworkPerformanceAndFile) : e.devToolsAiAssistanceFileAgent?.enabled ? G(W.helpUnderstandStylingNetworkAndFile) : e.devToolsAiAssistanceNetworkAgent?.enabled ? G(W.helpUnderstandStylingAndNetworkRequest) : G(W.helpUnderstandStyling);
|
|
832
|
+
}
|
|
833
|
+
#d() {
|
|
834
|
+
let { hostConfig: e } = h;
|
|
835
|
+
return e.devToolsAiAssistanceV2?.enabled ? G(W.aiAssistanceWhenOnItem1V2) : e.devToolsAiAssistancePerformanceAgent?.enabled ? G(W.explainStylingNetworkPerformanceAndFile) : e.devToolsAiAssistanceFileAgent?.enabled ? G(W.explainStylingNetworkAndFile) : e.devToolsAiAssistanceNetworkAgent?.enabled ? G(W.explainStylingAndNetworkRequest) : G(W.explainStyling);
|
|
836
|
+
}
|
|
837
|
+
#f(e) {
|
|
838
|
+
let t = this.#s.get(e);
|
|
839
|
+
t && (t.settingExpandState.isSettingExpanded = !t.settingExpandState.isSettingExpanded, this.requestUpdate());
|
|
840
|
+
}
|
|
841
|
+
#p(e, t) {
|
|
842
|
+
if (t.target instanceof ut && t.type !== ht.eventName) return;
|
|
843
|
+
let n = this.#s.get(e);
|
|
844
|
+
if (!n) return;
|
|
845
|
+
let r = e.get();
|
|
846
|
+
e.set(!r), !r && !n.settingExpandState.isSettingExpanded && (n.settingExpandState.isSettingExpanded = !0), e.name === "console-insights-enabled" ? r ? o.instance().createLocalSetting("console-insights-onboarding-finished", !1).set(!1) : o.instance().createSetting("console-insights-skip-reminder", !0, ee.SESSION).set(!0) : e.name === "ai-assistance-enabled" && (e.get() || xt.instance().deleteAll(), p.devToolsAiAssistanceV2?.enabled && e.get() && o.instance().moduleSetting("ai-assistance-v2-opt-in-change-dialog-seen").set(!0)), this.requestUpdate();
|
|
847
|
+
}
|
|
848
|
+
#m() {
|
|
849
|
+
let e = U`<devtools-link href="https://policies.google.com/terms" .jslogContext=${"terms-of-service"}>${G(W.termsOfService)}</devtools-link>`, t = U`<devtools-link href="https://policies.google.com/privacy" .jslogContext=${"privacy-notice"}>${G(W.privacyNotice)}</devtools-link>`, n = p.aidaAvailability?.enterprisePolicyValue === m.ALLOW_WITHOUT_LOGGING;
|
|
850
|
+
return [
|
|
851
|
+
{
|
|
852
|
+
icon: "psychiatry",
|
|
853
|
+
text: G(W.experimentalFeatures)
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
icon: "google",
|
|
857
|
+
text: G(n ? W.sendsDataToGoogleNoLogging : W.sendsDataToGoogle)
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
icon: "corporate-fare",
|
|
861
|
+
text: G(n ? W.dataCollectionNoLogging : W.dataCollection)
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
icon: "policy",
|
|
865
|
+
text: Ct(Qt, W.termsOfServicePrivacyNotice, {
|
|
866
|
+
PH1: e,
|
|
867
|
+
PH2: t
|
|
868
|
+
})
|
|
869
|
+
}
|
|
870
|
+
];
|
|
871
|
+
}
|
|
872
|
+
}, tn = "/*\n * Copyright 2015 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n .excluded-folder-header {\n display: flex;\n flex-direction: column;\n min-height: var(--sys-size-16);\n padding: var(--sys-size-4) var(--sys-size-6);\n gap: var(--sys-size-4);\n\n & > .excluded-folder-url {\n color: var(--sys-color-on-surface-subtle);\n overflow-wrap: break-word;\n }\n }\n\n .exclude-subfolders-table {\n padding: var(--sys-size-4) 0;\n }\n\n .excluded-folder-error {\n color: var(--sys-color-error);\n }\n}\n", nn = /* @__PURE__ */ e({
|
|
873
|
+
DEFAULT_VIEW: () => cn,
|
|
874
|
+
EditFileSystemView: () => ln,
|
|
875
|
+
ExcludedFolderStatus: () => on
|
|
876
|
+
}), { styleMap: rn } = Fe, K = {
|
|
877
|
+
url: "URL",
|
|
878
|
+
excludedFolders: "Excluded sub-folders",
|
|
879
|
+
enterAPath: "Enter a path",
|
|
880
|
+
enterAUniquePath: "Enter a unique path"
|
|
881
|
+
}, an = d("panels/settings/EditFileSystemView.ts", K), q = a.bind(void 0, an), on = /* @__PURE__ */ function(e) {
|
|
882
|
+
return e[e.VALID = 1] = "VALID", e[e.ERROR_NOT_A_PATH = 2] = "ERROR_NOT_A_PATH", e[e.ERROR_NOT_UNIQUE = 3] = "ERROR_NOT_UNIQUE", e;
|
|
883
|
+
}({});
|
|
884
|
+
function sn(e) {
|
|
885
|
+
switch (e) {
|
|
886
|
+
case 2: return q(K.enterAPath);
|
|
887
|
+
case 3: return q(K.enterAUniquePath);
|
|
888
|
+
case 1: throw Error("unreachable");
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
var cn = (e, t, n) => {
|
|
892
|
+
y(x`
|
|
893
|
+
<style>${tn}</style>
|
|
894
|
+
<div class="excluded-folder-header">
|
|
895
|
+
<span>${q(K.url)}</span>
|
|
896
|
+
<span class="excluded-folder-url">${e.fileSystemPath}</span>
|
|
897
|
+
<devtools-data-grid
|
|
898
|
+
@create=${e.onCreate}
|
|
899
|
+
class="exclude-subfolders-table"
|
|
900
|
+
parts="excluded-folder-row-with-error"
|
|
901
|
+
inline striped>
|
|
902
|
+
<table>
|
|
903
|
+
<thead>
|
|
904
|
+
<tr>
|
|
905
|
+
<th id="url" editable>${q(K.excludedFolders)}</th>
|
|
906
|
+
</tr>
|
|
907
|
+
</thead>
|
|
908
|
+
<tbody>
|
|
909
|
+
${e.excludedFolderPaths.map((t, n) => x`
|
|
910
|
+
<tr data-url=${t.path} data-index=${n}
|
|
911
|
+
@edit=${e.onEdit}
|
|
912
|
+
@delete=${e.onDelete}>
|
|
913
|
+
<td style=${rn({ backgroundColor: t.status === 1 ? void 0 : "var(--sys-color-error-container)" })}>${t.path}</td>
|
|
914
|
+
</tr>
|
|
915
|
+
`)}
|
|
916
|
+
<tr placeholder></tr>
|
|
917
|
+
</tbody>
|
|
918
|
+
</table>
|
|
919
|
+
</devtools-data-grid>
|
|
920
|
+
${e.excludedFolderPaths.filter(({ status: e }) => e !== 1).map(({ status: e }) => x`<span class="excluded-folder-error">${sn(e)}</span>`)}
|
|
921
|
+
</div>`, n);
|
|
922
|
+
}, ln = class e extends O {
|
|
923
|
+
#e;
|
|
924
|
+
#t = [];
|
|
925
|
+
#n;
|
|
926
|
+
constructor(e, t = cn) {
|
|
927
|
+
super(e), this.#n = t;
|
|
928
|
+
}
|
|
929
|
+
set fileSystem(e) {
|
|
930
|
+
this.#e = e, this.#r(), this.requestUpdate();
|
|
931
|
+
}
|
|
932
|
+
wasShown() {
|
|
933
|
+
super.wasShown(), this.#r(), this.requestUpdate();
|
|
934
|
+
}
|
|
935
|
+
#r() {
|
|
936
|
+
this.#t = this.#e?.excludedFolders().values().map((e) => ({
|
|
937
|
+
path: e,
|
|
938
|
+
status: 1
|
|
939
|
+
})).toArray() ?? [];
|
|
940
|
+
}
|
|
941
|
+
performUpdate() {
|
|
942
|
+
let e = {
|
|
943
|
+
fileSystemPath: this.#e?.path() ?? t``,
|
|
944
|
+
excludedFolderPaths: this.#t,
|
|
945
|
+
onCreate: (e) => this.#i(e.detail.url),
|
|
946
|
+
onEdit: (e) => this.#a(e.currentTarget.dataset.index ?? "-1", e.detail.valueBeforeEditing, e.detail.newText),
|
|
947
|
+
onDelete: (e) => this.#o(e.currentTarget.dataset.index ?? "-1")
|
|
948
|
+
};
|
|
949
|
+
this.#n(e, {}, this.contentElement);
|
|
950
|
+
}
|
|
951
|
+
#i(e) {
|
|
952
|
+
if (e === void 0) return;
|
|
953
|
+
let t = this.#s(e);
|
|
954
|
+
this.#t.push(t), t.status === 1 && this.#e?.addExcludedFolder(t.path), this.requestUpdate();
|
|
955
|
+
}
|
|
956
|
+
#a(e, t, n) {
|
|
957
|
+
let r = Number.parseInt(e, 10);
|
|
958
|
+
if (r < 0 || r >= this.#t.length) return;
|
|
959
|
+
let i = this.#s(n), a = this.#t[r];
|
|
960
|
+
this.#t[r] = i, a.status === 1 && this.#e?.removeExcludedFolder(t), i.status === 1 && this.#e?.addExcludedFolder(i.path), this.requestUpdate();
|
|
961
|
+
}
|
|
962
|
+
#o(e) {
|
|
963
|
+
let t = Number.parseInt(e, 10);
|
|
964
|
+
t < 0 || t >= this.#t.length || (this.#e?.removeExcludedFolder(this.#t[t].path), this.#t.splice(t, 1), this.requestUpdate());
|
|
965
|
+
}
|
|
966
|
+
#s(t) {
|
|
967
|
+
let n = e.#c(t.trim());
|
|
968
|
+
return n ? this.#t.findIndex(({ path: e }) => e === n) === -1 ? {
|
|
969
|
+
path: n,
|
|
970
|
+
status: 1
|
|
971
|
+
} : {
|
|
972
|
+
path: n,
|
|
973
|
+
status: 3
|
|
974
|
+
} : {
|
|
975
|
+
path: n,
|
|
976
|
+
status: 2
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
static #c(e) {
|
|
980
|
+
return e ? e + (e[e.length - 1] === "/" ? "" : "/") : "";
|
|
981
|
+
}
|
|
982
|
+
}, un = "/*\n * Copyright 2015 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.ignore-list-option {\n flex: none;\n display: flex;\n align-items: center;\n height: var(--sys-size-13);\n}\n\n.ignore-list-option devtools-button {\n cursor: pointer;\n position: relative;\n top: var(--sys-size-2);\n margin-left: var(--sys-size-2);\n}\n\n.add-button {\n padding: var(--sys-size-5) var(--sys-size-6);\n align-self: flex-start;\n flex: none;\n}\n\n.ignore-list {\n flex: 0 1 auto;\n}\n\n.enable-ignore-listing,\n.ignore-list-item,\n.general-exclusion-group {\n padding-left: var(--sys-size-4);\n}\n\n.custom-exclusion-group {\n padding-left: 0;\n padding-right: 0;\n}\n\n.ignore-list-item {\n height: var(--sys-size-13);\n display: flex;\n align-items: center;\n position: relative;\n flex: auto 1 1;\n}\n\n.ignore-list-pattern {\n flex: auto;\n}\n\n.ignore-list-item > devtools-checkbox {\n width: 100%;\n}\n\n.ignore-list-item .ignore-list-pattern {\n white-space: nowrap;\n text-overflow: ellipsis;\n user-select: none;\n color: var(--sys-color-on-surface);\n overflow: hidden;\n}\n\n.ignore-list-edit-row {\n flex: none;\n display: flex;\n flex-direction: row;\n margin: 6px 5px;\n align-items: center;\n}\n\n.ignore-list-edit-row input,\n.ignore-list-edit-row select {\n width: 100%;\n text-align: inherit;\n}\n\n.list:has(.ignore-list-empty),\n.list:has(.ignore-list-edit-row),\n.list:has(.ignore-list-item) {\n border: none;\n}\n\n.editor-container:has(.ignore-list-edit-row) {\n background: var(--sys-color-surface1);\n border-radius: 10px;\n}\n\n.ignore-list.list-editing ~ .add-button {\n display: none;\n}\n\n.devtools-link:has(devtools-icon) {\n margin-left: 6px;\n}\n", dn = /* @__PURE__ */ e({ FrameworkIgnoreListSettingsTab: () => pn }), J = {
|
|
983
|
+
frameworkIgnoreList: "Ignore listing",
|
|
984
|
+
ignoreListingDescription: "When enabled, the debugger will skip over ignore-listed scripts and will ignore exceptions that only affect them and the Performance panel will collapse matching flamechart items.",
|
|
985
|
+
ignoreListContentScripts: "Content scripts injected by extensions",
|
|
986
|
+
ignoreListAnonymousScripts: "Anonymous scripts from eval or console",
|
|
987
|
+
automaticallyIgnoreListKnownThirdPartyScripts: "Known third-party scripts from source maps",
|
|
988
|
+
ignoreListing: "Ignore listing",
|
|
989
|
+
enableIgnoreListingTooltip: "Uncheck to disable all ignore listing",
|
|
990
|
+
generalExclusionRules: "General exclusion rules",
|
|
991
|
+
customExclusionRules: "Custom exclusion rules",
|
|
992
|
+
addPattern: "Add regex rule",
|
|
993
|
+
addFilenamePattern: "Add a regular expression rule for the script's URL",
|
|
994
|
+
ignoreScriptsWhoseNamesMatchS: "Ignore scripts whose names match ''{PH1}''",
|
|
995
|
+
pattern: "Add a regular expression rule for the script's URL",
|
|
996
|
+
patternCannotBeEmpty: "Rule can't be empty",
|
|
997
|
+
patternAlreadyExists: "Rule already exists",
|
|
998
|
+
patternMustBeAValidRegular: "Rule must be a valid regular expression",
|
|
999
|
+
learnMore: "Learn more"
|
|
1000
|
+
}, fn = d("panels/settings/FrameworkIgnoreListSettingsTab.ts", J), Y = a.bind(void 0, fn), pn = class extends O {
|
|
1001
|
+
list;
|
|
1002
|
+
setting;
|
|
1003
|
+
editor;
|
|
1004
|
+
constructor() {
|
|
1005
|
+
super({
|
|
1006
|
+
jslog: `${j("blackbox")}`,
|
|
1007
|
+
useShadowDom: !0
|
|
1008
|
+
}), this.registerRequiredCSS(un, R);
|
|
1009
|
+
let e = this.contentElement.createChild("div", "settings-card-container-wrapper").createChild("div");
|
|
1010
|
+
e.classList.add("settings-card-container", "ignore-list-settings");
|
|
1011
|
+
let t = document.createElement("span");
|
|
1012
|
+
t.textContent = Y(J.ignoreListingDescription);
|
|
1013
|
+
let n = o.instance().moduleSetting("enable-ignore-listing"), r = this.contentElement.createChild("div", "enable-ignore-listing");
|
|
1014
|
+
r.appendChild(P(Y(J.ignoreListing), n)), ke.install(r, Y(J.enableIgnoreListingTooltip));
|
|
1015
|
+
let i = e.createChild("devtools-card");
|
|
1016
|
+
i.heading = Y(J.frameworkIgnoreList), i.append(t, r);
|
|
1017
|
+
let a = this.createSettingGroup();
|
|
1018
|
+
a.classList.add("general-exclusion-group");
|
|
1019
|
+
let s = a.createChild("div", "ignore-list-option").appendChild(P(Y(J.ignoreListContentScripts), o.instance().moduleSetting("skip-content-scripts"))), c = a.createChild("div", "ignore-list-option"), l = c.appendChild(P(Y(J.automaticallyIgnoreListKnownThirdPartyScripts), o.instance().moduleSetting("automatically-ignore-list-known-third-party-scripts"))), u = new Ie();
|
|
1020
|
+
u.data = {
|
|
1021
|
+
iconName: "help",
|
|
1022
|
+
variant: g.ICON,
|
|
1023
|
+
size: T.SMALL,
|
|
1024
|
+
jslogContext: "learn-more",
|
|
1025
|
+
title: Y(J.learnMore)
|
|
1026
|
+
}, u.addEventListener("click", () => _("https://developer.chrome.com/docs/devtools/settings/ignore-list/#skip-third-party")), c.appendChild(u);
|
|
1027
|
+
let ee = a.createChild("div", "ignore-list-option").appendChild(P(Y(J.ignoreListAnonymousScripts), o.instance().moduleSetting("skip-anonymous-scripts"))), d = e.createChild("devtools-card", "ignore-list-options");
|
|
1028
|
+
d.heading = Y(J.generalExclusionRules), d.append(a);
|
|
1029
|
+
let f = this.createSettingGroup();
|
|
1030
|
+
f.classList.add("custom-exclusion-group");
|
|
1031
|
+
let te = e.createChild("devtools-card", "ignore-list-options");
|
|
1032
|
+
te.heading = Y(J.customExclusionRules), te.append(f), this.list = new De(this), this.list.element.classList.add("ignore-list"), this.list.registerRequiredCSS(un);
|
|
1033
|
+
let p = document.createElement("div");
|
|
1034
|
+
p.classList.add("ignore-list-empty"), this.list.setEmptyPlaceholder(p), this.list.show(f);
|
|
1035
|
+
let m = D(Y(J.addPattern), this.addButtonClicked.bind(this), {
|
|
1036
|
+
className: "add-button",
|
|
1037
|
+
jslogContext: "settings.add-ignore-list-pattern"
|
|
1038
|
+
});
|
|
1039
|
+
v(m, Y(J.addFilenamePattern)), f.appendChild(m), this.setting = o.instance().moduleSetting("skip-stack-frames-pattern"), this.setting.addChangeListener(this.settingUpdated, this);
|
|
1040
|
+
let h = () => {
|
|
1041
|
+
let e = n.get();
|
|
1042
|
+
s.disabled = !e, l.disabled = !e, u.disabled = !e, ee.disabled = !e, m.disabled = !e, this.settingUpdated();
|
|
1043
|
+
};
|
|
1044
|
+
n.addChangeListener(h), h();
|
|
1045
|
+
}
|
|
1046
|
+
wasShown() {
|
|
1047
|
+
super.wasShown(), this.settingUpdated();
|
|
1048
|
+
}
|
|
1049
|
+
settingUpdated() {
|
|
1050
|
+
let e = o.instance().moduleSetting("enable-ignore-listing").get();
|
|
1051
|
+
this.list.clear();
|
|
1052
|
+
let t = this.setting.getAsArray();
|
|
1053
|
+
for (let n = 0; n < t.length; ++n) this.list.appendItem(t[n], e);
|
|
1054
|
+
}
|
|
1055
|
+
addButtonClicked() {
|
|
1056
|
+
this.list.addNewItem(this.setting.getAsArray().length, {
|
|
1057
|
+
pattern: "",
|
|
1058
|
+
disabled: !1
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
createSettingGroup() {
|
|
1062
|
+
let e = document.createElement("div");
|
|
1063
|
+
return e.classList.add("ignore-list-option-group"), Le(e), e;
|
|
1064
|
+
}
|
|
1065
|
+
renderItem(e, t) {
|
|
1066
|
+
let n = document.createElement("div"), r = this.setting, i = Ae.createWithStringLiteral(e.pattern, !e.disabled, "settings.ignore-list-pattern"), a = Y(J.ignoreScriptsWhoseNamesMatchS, { PH1: e.pattern });
|
|
1067
|
+
return ke.install(i, a), i.ariaLabel = a, i.addEventListener("change", o, !1), i.disabled = !t, n.appendChild(i), n.classList.add("ignore-list-item"), n;
|
|
1068
|
+
function o() {
|
|
1069
|
+
let t = !i.checked;
|
|
1070
|
+
e.disabled !== t && (e.disabled = t, e.disabledForUrl = void 0, r.setAsArray(r.getAsArray()));
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
removeItemRequested(e, t) {
|
|
1074
|
+
let n = this.setting.getAsArray();
|
|
1075
|
+
n.splice(t, 1), this.setting.setAsArray(n);
|
|
1076
|
+
}
|
|
1077
|
+
commitEdit(e, t, n) {
|
|
1078
|
+
e.pattern = t.control("pattern").value.trim();
|
|
1079
|
+
let r = this.setting.getAsArray();
|
|
1080
|
+
n && r.push(e), this.setting.setAsArray(r);
|
|
1081
|
+
}
|
|
1082
|
+
beginEdit(e) {
|
|
1083
|
+
let t = this.createEditor();
|
|
1084
|
+
return t.control("pattern").value = e.pattern, t;
|
|
1085
|
+
}
|
|
1086
|
+
createEditor() {
|
|
1087
|
+
if (this.editor) return this.editor;
|
|
1088
|
+
let e = new ot();
|
|
1089
|
+
this.editor = e;
|
|
1090
|
+
let t = e.contentElement(), n = t.createChild("div", "ignore-list-edit-row");
|
|
1091
|
+
n.createChild("div", "ignore-list-pattern").textContent = Y(J.pattern);
|
|
1092
|
+
let r = t.createChild("div", "ignore-list-edit-row"), i = e.createInput("pattern", "text", "/framework\\.js$", a.bind(this));
|
|
1093
|
+
return v(i, Y(J.pattern)), r.createChild("div", "ignore-list-pattern").appendChild(i), e;
|
|
1094
|
+
function a(e, t, n) {
|
|
1095
|
+
let r = n.value.trim(), i = this.setting.getAsArray();
|
|
1096
|
+
if (!r.length) return {
|
|
1097
|
+
valid: !1,
|
|
1098
|
+
errorMessage: Y(J.patternCannotBeEmpty)
|
|
1099
|
+
};
|
|
1100
|
+
for (let e = 0; e < i.length; ++e) if (e !== t && i[e].pattern === r) return {
|
|
1101
|
+
valid: !1,
|
|
1102
|
+
errorMessage: Y(J.patternAlreadyExists)
|
|
1103
|
+
};
|
|
1104
|
+
let a;
|
|
1105
|
+
try {
|
|
1106
|
+
a = new RegExp(r);
|
|
1107
|
+
} catch {}
|
|
1108
|
+
return a ? { valid: !0 } : {
|
|
1109
|
+
valid: !1,
|
|
1110
|
+
errorMessage: Y(J.patternMustBeAValidRegular)
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}, mn = "/*\n * Copyright 2020 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.shortcut-list {\n padding-left: 0;\n padding-right: 0;\n}\n\n.keybinds-key {\n display: flex;\n align-items: center;\n justify-content: center;\n height: var(--sys-size-11);\n min-width: var(--sys-size-11);\n font: var(--sys-typescale-body5-medium);\n white-space: nowrap;\n border-radius: var(--sys-shape-corner-small);\n background: var(--sys-color-tonal-container);\n padding: 0 var(--sys-size-4);\n}\n\n.keybinds-list-item {\n margin: 0 var(--sys-size-6);\n padding: var(--sys-size-4) 0;\n display: grid;\n grid-template-rows: 1fr;\n grid-template-columns: 1fr 30px 2fr 30px 30px;\n border-top: var(--sys-size-1) solid var(--app-color-card-divider);\n}\n\n.keybinds-list-item:focus-visible {\n background-color: var(--sys-color-tonal-container);\n}\n\n.keybinds-list-item-wrapper:has(.keybinds-list-item.keybinds-editing) {\n background-color: var(--sys-color-neutral-container);\n}\n\n.keybinds-list-text.keybinds-action-name {\n grid-row: 1 / 1;\n}\n\n.keybinds-shortcut,\n.keybinds-info {\n grid-row: auto;\n grid-column: 3 / span 1;\n}\n\n.keybinds-error {\n color: var(--sys-color-error);\n}\n\n.keybinds-shortcut {\n gap: var(--sys-size-4);\n}\n\n.keybinds-list-item.keybinds-editing .keybinds-shortcut {\n display: flex;\n}\n\n.keybinds-modified {\n grid-column: 2 / span 1;\n margin-top: var(--sys-size-3);\n}\n\n.keybinds-list-item button[disabled] {\n opacity: 40%;\n}\n\n.keybinds-cancel-button {\n grid-column: -1 / span 1;\n}\n\n.keybinds-edit-button {\n display: none;\n grid-row: 1 / span 1;\n grid-column: 5 / span 1;\n}\n\n.keybinds-list-item:not(.keybinds-editing):hover .keybinds-edit-button,\n.keybinds-list-item:not(.keybinds-editing):focus-within .keybinds-edit-button {\n display: inline-block;\n}\n\n.keybinds-list-text {\n min-height: var(--sys-size-12);\n display: flex;\n align-items: center;\n user-select: none;\n color: var(--sys-color-on-surface);\n text-align: start;\n position: relative;\n margin-right: 0;\n}\n\n.keybinds-category-header {\n display: flex;\n align-items: center;\n font: var(--sys-typescale-body4-bold);\n height: var(--sys-size-13);\n padding: var(--sys-size-4) var(--sys-size-7);\n white-space: nowrap;\n\n + .keybinds-list-item-wrapper > .keybinds-list-item {\n border-top: unset;\n }\n}\n\n.keybinds-list-item-wrapper:has(.keybinds-list-item:hover),\n.keybinds-list-item-wrapper:has(\n .keybinds-list-item:not(.keybinds-editing)):focus-within {\n background: var(--sys-color-state-hover-on-subtle);\n}\n\n.keybinds-set-select label p {\n display: inline;\n color: var(--sys-color-on-surface);\n}\n\nbutton.text-button {\n width: fit-content;\n align-self: flex-end;\n}\n\n.keybinds-list-text input {\n margin: 0 2px;\n}\n\n.keybinds-set-select {\n margin: 0;\n padding: var(--sys-size-5) var(--sys-size-7);\n\n & .settings-select {\n display: flex;\n justify-content: space-between;\n\n & label {\n padding: 0;\n }\n }\n}\n\n.keybinds-list-text:has(.keybinds-delete-button) {\n grid-column: 3 / -1;\n}\n\n.keybinds-delete-button {\n flex-shrink: 0;\n}\n\n.docs-link.devtools-link {\n align-self: flex-start;\n min-height: 2em;\n line-height: 2em;\n margin-bottom: 4px;\n}\n\n.keybinds-footer {\n padding: var(--sys-size-5) var(--sys-size-7);\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n min-height: fit-content;\n margin-top: 10px;\n}\n\n@media (forced-colors: active) {\n .keybinds-list-item.keybinds-editing .keybinds-shortcut {\n & devtools-button {\n --sys-color-primary: buttonFace;\n }\n }\n\n .keybinds-list-text input {\n color: buttonText;\n }\n\n /* Keyboard focus / hover on wrapper element (shortcut items) */\n .keybinds-list-item-wrapper {\n &:has(.keybinds-list-item:hover),\n &:has(.keybinds-list-item:not(.keybinds-editing)):focus-within,\n &:focus,\n &:focus-visible {\n background-color: Highlight;\n forced-color-adjust: none;\n\n --icon-default: HighlightText;\n\n & .keybinds-list-text,\n & .keybinds-action-name {\n color: HighlightText;\n }\n\n & .keybinds-key {\n background: HighlightText;\n color: Highlight;\n }\n }\n }\n\n /* Editing state */\n .keybinds-list-item-wrapper:has(.keybinds-list-item.keybinds-editing) {\n background-color: Highlight;\n forced-color-adjust: none;\n\n --icon-default: HighlightText;\n\n & .keybinds-list-text {\n color: HighlightText;\n }\n\n & .keybinds-error {\n color: highlightText;\n }\n }\n}\n", hn = /* @__PURE__ */ e({
|
|
1115
|
+
KeybindsSettingsTab: () => _n,
|
|
1116
|
+
ShortcutListItem: () => vn
|
|
1117
|
+
}), X = {
|
|
1118
|
+
shortcuts: "Shortcuts",
|
|
1119
|
+
matchShortcutsFromPreset: "Shortcut preset",
|
|
1120
|
+
keyboardShortcutsList: "Keyboard shortcuts list",
|
|
1121
|
+
shortcutModified: "Shortcut modified",
|
|
1122
|
+
noShortcutForAction: "No shortcut for action",
|
|
1123
|
+
addAShortcut: "Add a shortcut",
|
|
1124
|
+
recordingKeys: "Recoding keys",
|
|
1125
|
+
confirmChanges: "Confirm changes",
|
|
1126
|
+
discardChanges: "Discard changes",
|
|
1127
|
+
removeShortcut: "Remove shortcut",
|
|
1128
|
+
editShortcut: "Edit shortcut",
|
|
1129
|
+
shortcutsCannotContainOnly: "Shortcuts cannot contain only modifier keys.",
|
|
1130
|
+
thisShortcutIsInUseByS: "This shortcut is in use by {PH1}: {PH2}.",
|
|
1131
|
+
RestoreDefaultShortcuts: "Restore default shortcuts",
|
|
1132
|
+
FullListOfDevtoolsKeyboard: "Full list of DevTools keyboard shortcuts and gestures",
|
|
1133
|
+
ResetShortcutsForAction: "Reset shortcuts for action",
|
|
1134
|
+
shortcutRemoved: "{PH1} Shortcut removed",
|
|
1135
|
+
shortcutChangesRestored: "Changes to shortcut restored to default",
|
|
1136
|
+
shortcutChangesApplied: "Changes to shortcut applied",
|
|
1137
|
+
shortcutChangesDiscarded: "Changes to shortcut discarded"
|
|
1138
|
+
}, gn = d("panels/settings/KeybindsSettingsTab.ts", X), Z = a.bind(void 0, gn), _n = class extends O {
|
|
1139
|
+
items;
|
|
1140
|
+
list;
|
|
1141
|
+
editingItem;
|
|
1142
|
+
editingRow;
|
|
1143
|
+
constructor() {
|
|
1144
|
+
super({
|
|
1145
|
+
jslog: `${j("keybinds")}`,
|
|
1146
|
+
useShadowDom: !0
|
|
1147
|
+
}), this.registerRequiredCSS(mn, R);
|
|
1148
|
+
let e = this.contentElement.createChild("div", "settings-card-container-wrapper").createChild("div");
|
|
1149
|
+
e.classList.add("settings-card-container");
|
|
1150
|
+
let t = o.instance().moduleSetting("active-keybind-set"), n = o.instance().moduleSetting("user-shortcuts");
|
|
1151
|
+
t.addChangeListener(this.update, this);
|
|
1152
|
+
let r = wt(t, Z(X.matchShortcutsFromPreset)), i = e.createChild("devtools-card");
|
|
1153
|
+
i.heading = Z(X.shortcuts), r && r.classList.add("keybinds-set-select"), this.items = new st(), this.list = new He(this.items, this, Re.NonViewport), this.list.element.classList.add("shortcut-list"), this.items.replaceAll(this.createListItems()), Ve(this.list.element), v(this.list.element, Z(X.keyboardShortcutsList));
|
|
1154
|
+
let a = document.createElement("div");
|
|
1155
|
+
a.classList.add("keybinds-footer");
|
|
1156
|
+
let s = Ye.create("https://developer.chrome.com/docs/devtools/shortcuts/", Z(X.FullListOfDevtoolsKeyboard), void 0, "learn-more");
|
|
1157
|
+
s.classList.add("docs-link"), a.appendChild(s);
|
|
1158
|
+
let c = D(Z(X.RestoreDefaultShortcuts), () => {
|
|
1159
|
+
n.set([]), t.set(ct);
|
|
1160
|
+
}, { jslogContext: "restore-default-shortcuts" });
|
|
1161
|
+
a.appendChild(c), this.editingItem = null, this.editingRow = null, r && i.append(r), i.append(this.list.element, a), this.update();
|
|
1162
|
+
}
|
|
1163
|
+
createElementForItem(e) {
|
|
1164
|
+
let t = document.createElement("div"), n;
|
|
1165
|
+
if (typeof e == "string") n = t, n.classList.add("keybinds-category-header"), n.textContent = Je(e), xe(n, 1);
|
|
1166
|
+
else {
|
|
1167
|
+
let r = new vn(e, this, e === this.editingItem);
|
|
1168
|
+
n = r.element, xe(n, 2), e === this.editingItem && (this.editingRow = r), n.classList.add("keybinds-list-item"), t.classList.add("keybinds-list-item-wrapper"), t.appendChild(n);
|
|
1169
|
+
}
|
|
1170
|
+
return et(n), n.tabIndex = e === this.list.selectedItem() && e !== this.editingItem ? 0 : -1, t;
|
|
1171
|
+
}
|
|
1172
|
+
commitChanges(e, t) {
|
|
1173
|
+
for (let [e, n] of t) e.type !== M.UNSET_SHORTCUT && (b.instance().removeShortcut(e), n || A.actionTaken(Xe.ShortcutRemoved)), n && (b.instance().registerUserShortcut(e.changeKeys(n).changeType(M.USER_SHORTCUT)), e.type === M.UNSET_SHORTCUT ? A.actionTaken(Xe.UserShortcutAdded) : A.actionTaken(Xe.ShortcutModified));
|
|
1174
|
+
this.stopEditing(e);
|
|
1175
|
+
}
|
|
1176
|
+
heightForItem(e) {
|
|
1177
|
+
return 0;
|
|
1178
|
+
}
|
|
1179
|
+
isItemSelectable(e) {
|
|
1180
|
+
return e instanceof nt;
|
|
1181
|
+
}
|
|
1182
|
+
selectedItemChanged(e, t, n, r) {
|
|
1183
|
+
n && (n.tabIndex = -1), r && (t === this.editingItem && this.editingRow ? this.editingRow.focus() : (r.tabIndex = 0, this.list.element.hasFocus() && r.focus()), this.setDefaultFocusedElement(r));
|
|
1184
|
+
}
|
|
1185
|
+
updateSelectedItemARIA(e, t) {
|
|
1186
|
+
return !0;
|
|
1187
|
+
}
|
|
1188
|
+
startEditing(e) {
|
|
1189
|
+
this.list.selectItem(e), this.editingItem && this.stopEditing(this.editingItem), he(this.list.element, !0), this.editingItem = e, this.list.refreshItem(e);
|
|
1190
|
+
}
|
|
1191
|
+
stopEditing(e) {
|
|
1192
|
+
he(this.list.element, !1), this.editingItem = null, this.editingRow = null, this.list.refreshItem(e), this.focus();
|
|
1193
|
+
}
|
|
1194
|
+
createListItems() {
|
|
1195
|
+
let e = Ze.instance().actions().filter((e) => e.configurableBindings()).sort((e, t) => e.category() < t.category() ? -1 : e.category() > t.category() ? 1 : e.id() < t.id() ? -1 : +(e.id() > t.id())), t = [], n;
|
|
1196
|
+
return e.forEach((e) => {
|
|
1197
|
+
n !== e.category() && t.push(e.category()), t.push(e), n = e.category();
|
|
1198
|
+
}), t;
|
|
1199
|
+
}
|
|
1200
|
+
onEscapeKeyPressed(e) {
|
|
1201
|
+
let t = rt(document);
|
|
1202
|
+
this.editingRow && t?.nodeName === "INPUT" && this.editingRow.onEscapeKeyPressed(e);
|
|
1203
|
+
}
|
|
1204
|
+
update() {
|
|
1205
|
+
this.editingItem && this.stopEditing(this.editingItem), this.list.refreshAllItems(), this.list.selectedItem() || this.list.selectFirstItem();
|
|
1206
|
+
}
|
|
1207
|
+
willHide() {
|
|
1208
|
+
super.willHide(), this.editingItem && this.stopEditing(this.editingItem);
|
|
1209
|
+
}
|
|
1210
|
+
}, vn = class {
|
|
1211
|
+
isEditing;
|
|
1212
|
+
settingsTab;
|
|
1213
|
+
item;
|
|
1214
|
+
element;
|
|
1215
|
+
editedShortcuts;
|
|
1216
|
+
shortcutInputs;
|
|
1217
|
+
shortcuts;
|
|
1218
|
+
elementToFocus;
|
|
1219
|
+
confirmButton;
|
|
1220
|
+
addShortcutLinkContainer;
|
|
1221
|
+
errorMessageElement;
|
|
1222
|
+
secondKeyTimeout;
|
|
1223
|
+
constructor(e, t, n) {
|
|
1224
|
+
this.isEditing = !!n, this.settingsTab = t, this.item = e, this.element = document.createElement("div"), this.element.setAttribute("jslog", `${pe().context(e.id()).track({
|
|
1225
|
+
keydown: "Escape",
|
|
1226
|
+
resize: !0
|
|
1227
|
+
})}`), this.editedShortcuts = /* @__PURE__ */ new Map(), this.shortcutInputs = /* @__PURE__ */ new Map(), this.shortcuts = b.instance().shortcutsForAction(e.id()), this.elementToFocus = null, this.confirmButton = null, this.addShortcutLinkContainer = null, this.errorMessageElement = null, this.secondKeyTimeout = null, this.update();
|
|
1228
|
+
}
|
|
1229
|
+
focus() {
|
|
1230
|
+
this.elementToFocus && this.elementToFocus.focus();
|
|
1231
|
+
}
|
|
1232
|
+
update() {
|
|
1233
|
+
this.element.removeChildren(), this.elementToFocus = null, this.shortcutInputs.clear(), this.element.classList.toggle("keybinds-editing", this.isEditing), this.element.createChild("div", "keybinds-action-name keybinds-list-text").textContent = this.item.title(), this.shortcuts.forEach(this.createShortcutRow, this), this.shortcuts.length === 0 && this.createEmptyInfo(), this.isEditing && this.setupEditor();
|
|
1234
|
+
}
|
|
1235
|
+
createEmptyInfo() {
|
|
1236
|
+
if (b.instance().actionHasDefaultShortcut(this.item.id())) {
|
|
1237
|
+
let e = _e("keyboard-pen", "keybinds-modified");
|
|
1238
|
+
v(e, Z(X.shortcutModified)), this.element.appendChild(e);
|
|
1239
|
+
}
|
|
1240
|
+
this.isEditing || (v(this.element.createChild("div", "keybinds-shortcut keybinds-list-text"), Z(X.noShortcutForAction)), this.element.appendChild(this.createEditButton()));
|
|
1241
|
+
}
|
|
1242
|
+
setupEditor() {
|
|
1243
|
+
this.addShortcutLinkContainer = this.element.createChild("div", "keybinds-shortcut");
|
|
1244
|
+
let e = D(Z(X.addAShortcut), this.addShortcut.bind(this), { jslogContext: "add-shortcut" });
|
|
1245
|
+
this.addShortcutLinkContainer.appendChild(e), this.elementToFocus ||= e, this.errorMessageElement = this.element.createChild("div", "keybinds-info keybinds-error hidden"), se(this.errorMessageElement), this.element.appendChild(this.createIconButton(Z(X.ResetShortcutsForAction), "undo", "", "undo", this.resetShortcutsToDefaults.bind(this))), this.confirmButton = this.createIconButton(Z(X.confirmChanges), "checkmark", "keybinds-confirm-button", "confirm", () => {
|
|
1246
|
+
this.settingsTab.commitChanges(this.item, this.editedShortcuts), S.alert(Z(X.shortcutChangesApplied, { PH1: this.item.title() }));
|
|
1247
|
+
}), this.element.appendChild(this.confirmButton), this.element.appendChild(this.createIconButton(Z(X.discardChanges), "cross", "keybinds-cancel-button", "cancel", () => {
|
|
1248
|
+
this.settingsTab.stopEditing(this.item), S.alert(Z(X.shortcutChangesDiscarded));
|
|
1249
|
+
})), this.element.addEventListener("keydown", (e) => {
|
|
1250
|
+
n(e) && (this.settingsTab.stopEditing(this.item), e.consume(!0));
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
addShortcut() {
|
|
1254
|
+
let e = new C([], this.item.id(), M.UNSET_SHORTCUT);
|
|
1255
|
+
this.shortcuts.push(e), this.update();
|
|
1256
|
+
let t = this.shortcutInputs.get(e);
|
|
1257
|
+
t && t.focus();
|
|
1258
|
+
}
|
|
1259
|
+
createShortcutRow(e, t) {
|
|
1260
|
+
if (this.editedShortcuts.has(e) && !this.editedShortcuts.get(e)) return;
|
|
1261
|
+
let n;
|
|
1262
|
+
e.type !== M.UNSET_SHORTCUT && !e.isDefault() && (n = _e("keyboard-pen", "keybinds-modified"), v(n, Z(X.shortcutModified)), this.element.appendChild(n));
|
|
1263
|
+
let r = this.element.createChild("div", "keybinds-shortcut keybinds-list-text");
|
|
1264
|
+
if (this.isEditing) {
|
|
1265
|
+
let t = r.createChild("input", "harmony-input");
|
|
1266
|
+
t.setAttribute("jslog", `${it().track({ change: !0 })}`), t.setAttribute("placeholder", Z(X.recordingKeys)), t.spellcheck = !1, t.maxLength = 0, this.shortcutInputs.set(e, t), this.elementToFocus ||= t, t.value = e.title();
|
|
1267
|
+
let n = this.editedShortcuts.get(e);
|
|
1268
|
+
n && (t.value = this.shortcutInputTextForDescriptors(n)), t.addEventListener("keydown", this.onShortcutInputKeyDown.bind(this, e, t)), t.addEventListener("blur", () => {
|
|
1269
|
+
this.secondKeyTimeout !== null && (clearTimeout(this.secondKeyTimeout), this.secondKeyTimeout = null);
|
|
1270
|
+
}), r.appendChild(this.createIconButton(Z(X.removeShortcut), "bin", "keybinds-delete-button", "delete", () => {
|
|
1271
|
+
let t = this.shortcuts.indexOf(e);
|
|
1272
|
+
e.isDefault() || this.shortcuts.splice(t, 1), this.editedShortcuts.set(e, null), this.update(), this.focus(), this.validateInputs(), S.alert(Z(X.shortcutRemoved, { PH1: this.item.title() }));
|
|
1273
|
+
}));
|
|
1274
|
+
} else {
|
|
1275
|
+
let n = Ke() ? " " : " + ";
|
|
1276
|
+
e.descriptors.flatMap((e) => e.name.split(n)).forEach((e) => {
|
|
1277
|
+
r.createChild("div", "keybinds-key").createChild("span").textContent = e;
|
|
1278
|
+
}), t === 0 && this.element.appendChild(this.createEditButton());
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
createEditButton() {
|
|
1282
|
+
return this.createIconButton(Z(X.editShortcut), "edit", "keybinds-edit-button", "edit", () => this.settingsTab.startEditing(this.item));
|
|
1283
|
+
}
|
|
1284
|
+
createIconButton(e, t, n, r, i) {
|
|
1285
|
+
let a = new Ie();
|
|
1286
|
+
return a.data = {
|
|
1287
|
+
variant: g.ICON,
|
|
1288
|
+
iconName: t,
|
|
1289
|
+
jslogContext: r,
|
|
1290
|
+
title: e
|
|
1291
|
+
}, a.addEventListener("click", i), v(a, e), n && a.classList.add(n), a;
|
|
1292
|
+
}
|
|
1293
|
+
onShortcutInputKeyDown(e, t, n) {
|
|
1294
|
+
if (n.key !== "Tab") {
|
|
1295
|
+
let r = this.descriptorForEvent(n), i = this.editedShortcuts.get(e) || [];
|
|
1296
|
+
this.editedShortcuts.set(e, i);
|
|
1297
|
+
let a = i.length === 2 && C.isModifier(i[1].key);
|
|
1298
|
+
i.length === 2 && !a && i.splice(0, 2), this.secondKeyTimeout ? (clearTimeout(this.secondKeyTimeout), this.secondKeyTimeout = null, i.push(r)) : a ? i[1] = r : C.isModifier(r.key) ? i[0] = r : (i[0] = r, this.secondKeyTimeout = window.setTimeout(() => {
|
|
1299
|
+
this.secondKeyTimeout = null;
|
|
1300
|
+
}, je)), t.value = this.shortcutInputTextForDescriptors(i), this.validateInputs(), n.consume(!0);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
descriptorForEvent(e) {
|
|
1304
|
+
let t = C.makeKeyFromEvent(e), n = C.keyCodeAndModifiersFromKey(t), r = le[e.key] || Oe[e.key];
|
|
1305
|
+
if (!r && !/^[a-z]$/i.test(e.key)) {
|
|
1306
|
+
let t = e.code;
|
|
1307
|
+
r = le[t] || Oe[t], t.startsWith("Digit") ? r = t.slice(5) : t.startsWith("Key") && (r = t.slice(3));
|
|
1308
|
+
}
|
|
1309
|
+
return C.makeDescriptor(r || e.key, n.modifiers);
|
|
1310
|
+
}
|
|
1311
|
+
shortcutInputTextForDescriptors(e) {
|
|
1312
|
+
return e.map((e) => e.name).join(" ");
|
|
1313
|
+
}
|
|
1314
|
+
resetShortcutsToDefaults() {
|
|
1315
|
+
this.editedShortcuts.clear();
|
|
1316
|
+
for (let e of this.shortcuts) if (e.type === M.UNSET_SHORTCUT) {
|
|
1317
|
+
let t = this.shortcuts.indexOf(e);
|
|
1318
|
+
this.shortcuts.splice(t, 1);
|
|
1319
|
+
} else e.type === M.USER_SHORTCUT && this.editedShortcuts.set(e, null);
|
|
1320
|
+
b.instance().disabledDefaultsForAction(this.item.id()).forEach((e) => {
|
|
1321
|
+
this.shortcuts.includes(e) || (this.shortcuts.push(e), this.editedShortcuts.set(e, e.descriptors));
|
|
1322
|
+
}), this.update(), this.focus(), S.alert(Z(X.shortcutChangesRestored, { PH1: this.item.title() }));
|
|
1323
|
+
}
|
|
1324
|
+
onEscapeKeyPressed(e) {
|
|
1325
|
+
let t = rt(document);
|
|
1326
|
+
for (let [n, r] of this.shortcutInputs.entries()) t === r && this.onShortcutInputKeyDown(n, r, e);
|
|
1327
|
+
}
|
|
1328
|
+
validateInputs() {
|
|
1329
|
+
let e = this.confirmButton, t = this.errorMessageElement;
|
|
1330
|
+
!e || !t || (e.disabled = !1, t.classList.add("hidden"), this.shortcutInputs.forEach((n, r) => {
|
|
1331
|
+
let i = this.editedShortcuts.get(r);
|
|
1332
|
+
if (!i) return;
|
|
1333
|
+
if (i.some((e) => C.isModifier(e.key))) {
|
|
1334
|
+
e.disabled = !0, n.classList.add("error-input"), ie(n, !0), t.classList.remove("hidden"), t.textContent = Z(X.shortcutsCannotContainOnly);
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
let a = b.instance().actionsForDescriptors(i).filter((e) => e !== this.item.id());
|
|
1338
|
+
if (a.length) {
|
|
1339
|
+
if (e.disabled = !0, n.classList.add("error-input"), ie(n, !0), t.classList.remove("hidden"), !Ze.instance().hasAction(a[0])) return;
|
|
1340
|
+
let r = Ze.instance().getAction(a[0]), i = r.title(), o = r.category();
|
|
1341
|
+
t.textContent = Z(X.thisShortcutIsInUseByS, {
|
|
1342
|
+
PH1: o,
|
|
1343
|
+
PH2: i
|
|
1344
|
+
});
|
|
1345
|
+
return;
|
|
1346
|
+
}
|
|
1347
|
+
n.classList.remove("error-input"), ie(n, !1);
|
|
1348
|
+
}));
|
|
1349
|
+
}
|
|
1350
|
+
}, yn = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n .mappings-info,\n .folder-exclude-pattern {\n height: var(--settings-single-item-height);\n }\n\n .mapping-view-container {\n padding-left: 0;\n padding-right: 0;\n }\n\n .folder-exclude-pattern {\n display: flex;\n align-items: center;\n\n & > input {\n flex: 1;\n }\n }\n\n label {\n padding-bottom: 0;\n }\n\n .mappings-info {\n border: none;\n }\n\n .add-button-container {\n max-width: var(--sys-size-35);\n margin-left: var(--sys-size-8);\n width: 100%;\n\n & .add-folder {\n min-width: var(--sys-size-31);\n max-width: var(--sys-size-35);\n }\n }\n}\n", bn = /* @__PURE__ */ e({
|
|
1351
|
+
DEFAULT_VIEW: () => Cn,
|
|
1352
|
+
WorkspaceSettingsTab: () => wn
|
|
1353
|
+
}), Q = {
|
|
1354
|
+
workspace: "Workspace",
|
|
1355
|
+
mappingsAreInferredAutomatically: "Mappings are inferred automatically.",
|
|
1356
|
+
addFolder: "Add folder",
|
|
1357
|
+
folderExcludePattern: "Exclude from workspace",
|
|
1358
|
+
remove: "Remove"
|
|
1359
|
+
}, xn = d("panels/settings/WorkspaceSettingsTab.ts", Q), $ = a.bind(void 0, xn), { widget: Sn } = We, Cn = (e, t, n) => {
|
|
1360
|
+
y(x`
|
|
1361
|
+
<style>${yn}</style>
|
|
1362
|
+
<div class="settings-card-container-wrapper" jslog=${j("workspace")}>
|
|
1363
|
+
<div class="settings-card-container">
|
|
1364
|
+
<devtools-card heading=${$(Q.workspace)}>
|
|
1365
|
+
<div class="folder-exclude-pattern">
|
|
1366
|
+
<label for="workspace-setting-folder-exclude-pattern">${$(Q.folderExcludePattern)}</label>
|
|
1367
|
+
<input
|
|
1368
|
+
class="harmony-input"
|
|
1369
|
+
jslog=${it().track({
|
|
1370
|
+
keydown: "Enter",
|
|
1371
|
+
change: !0
|
|
1372
|
+
}).context(e.excludePatternSetting.name)}
|
|
1373
|
+
${ze(e.excludePatternSetting, { jslog: !1 })}
|
|
1374
|
+
id="workspace-setting-folder-exclude-pattern">
|
|
1375
|
+
</div>
|
|
1376
|
+
<div class="mappings-info">${$(Q.mappingsAreInferredAutomatically)}</div>
|
|
1377
|
+
</devtools-card>
|
|
1378
|
+
${e.fileSystems.map((t) => x`
|
|
1379
|
+
<devtools-card heading=${t.displayName}>
|
|
1380
|
+
<devtools-icon name="folder" slot="heading-prefix"></devtools-icon>
|
|
1381
|
+
<div class="mapping-view-container">
|
|
1382
|
+
${Sn(ln, { fileSystem: t.fileSystem })}
|
|
1383
|
+
</div>
|
|
1384
|
+
<devtools-button
|
|
1385
|
+
slot="heading-suffix"
|
|
1386
|
+
.variant=${g.OUTLINED}
|
|
1387
|
+
jslog=${Ue().track({ click: !0 }).context("settings.remove-file-system")}
|
|
1388
|
+
@click=${e.onRemoveClicked.bind(null, t.fileSystem)}>${$(Q.remove)}</devtools-button>
|
|
1389
|
+
</devtools-card>
|
|
1390
|
+
`)}
|
|
1391
|
+
<div class="add-button-container">
|
|
1392
|
+
<devtools-button
|
|
1393
|
+
class="add-folder"
|
|
1394
|
+
.variant=${g.OUTLINED}
|
|
1395
|
+
jslog=${Ue().track({ click: !0 }).context("sources.add-folder-to-workspace")}
|
|
1396
|
+
@click=${e.onAddClicked}>${$(Q.addFolder)}</devtools-button>
|
|
1397
|
+
</div>
|
|
1398
|
+
</div>
|
|
1399
|
+
</div>`, n);
|
|
1400
|
+
}, wn = class e extends O {
|
|
1401
|
+
#e;
|
|
1402
|
+
#t = [];
|
|
1403
|
+
constructor(e = Cn) {
|
|
1404
|
+
super(), this.#e = e;
|
|
1405
|
+
}
|
|
1406
|
+
wasShown() {
|
|
1407
|
+
super.wasShown(), this.#t = [N.instance().addEventListener(yt.FileSystemAdded, this.requestUpdate.bind(this)), N.instance().addEventListener(yt.FileSystemRemoved, this.requestUpdate.bind(this))], this.requestUpdate();
|
|
1408
|
+
}
|
|
1409
|
+
willHide() {
|
|
1410
|
+
super.willHide(), i(this.#t), this.#t = [];
|
|
1411
|
+
}
|
|
1412
|
+
performUpdate() {
|
|
1413
|
+
let t = {
|
|
1414
|
+
excludePatternSetting: N.instance().workspaceFolderExcludePatternSetting(),
|
|
1415
|
+
onAddClicked: () => N.instance().addFileSystem(),
|
|
1416
|
+
onRemoveClicked: (e) => N.instance().removeFileSystem(e),
|
|
1417
|
+
fileSystems: N.instance().fileSystems().filter((e) => {
|
|
1418
|
+
let t = _t.instance().project();
|
|
1419
|
+
return e instanceof St && (!t || N.instance().fileSystem(t.fileSystemPath()) !== e);
|
|
1420
|
+
}).map((t) => ({
|
|
1421
|
+
displayName: e.#n(t),
|
|
1422
|
+
fileSystem: t
|
|
1423
|
+
})).sort((e, t) => e.displayName.localeCompare(t.displayName))
|
|
1424
|
+
};
|
|
1425
|
+
this.#e(t, {}, this.contentElement);
|
|
1426
|
+
}
|
|
1427
|
+
static #n(e) {
|
|
1428
|
+
let t = e.path(), n = t.lastIndexOf("/"), r = t.substring(n + 1);
|
|
1429
|
+
return decodeURIComponent(r);
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
//#endregion
|
|
1433
|
+
export { qt as AISettingsTab, nn as EditFileSystemView, dn as FrameworkIgnoreListSettingsTab, hn as KeybindsSettingsTab, Ft as SettingsScreen, bn as WorkspaceSettingsTab };
|