@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,2810 @@
|
|
|
1
|
+
import { _t as e, ft as t, k as n, r, w as i, xt as a } from "../../chunks/platform-BzB373NB.js";
|
|
2
|
+
import { o } from "../../chunks/root-DbVQo07X.js";
|
|
3
|
+
import { x as s } from "../../chunks/text_utils-ohNt_gua.js";
|
|
4
|
+
import { a as c, i as l, r as u, t as d } from "../../chunks/FormatterActions-FcPgI0uV.js";
|
|
5
|
+
import { n as f, t as p } from "../../chunks/acorn-_jSanihy.js";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/third_party/codemirror/package/mode/javascript/javascript.mjs
|
|
8
|
+
(function() {
|
|
9
|
+
function e(e, t, n) {
|
|
10
|
+
for (var r in t ||= {}, e) e.hasOwnProperty(r) && (n !== !1 || !t.hasOwnProperty(r)) && (t[r] = e[r]);
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
function t(e, t, n, r, i) {
|
|
14
|
+
t ?? (t = e.search(/[^\s\u00a0]/), t == -1 && (t = e.length));
|
|
15
|
+
for (var a = r || 0, o = i || 0;;) {
|
|
16
|
+
var s = e.indexOf(" ", a);
|
|
17
|
+
if (s < 0 || s >= t) return o + (t - a);
|
|
18
|
+
o += s - a, o += n - o % n, a = s + 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function n() {}
|
|
22
|
+
function r(t, r) {
|
|
23
|
+
var i;
|
|
24
|
+
return Object.create ? i = Object.create(t) : (n.prototype = t, i = new n()), r && e(r, i), i;
|
|
25
|
+
}
|
|
26
|
+
var i = function(e, t, n) {
|
|
27
|
+
this.pos = this.start = 0, this.string = e, this.tabSize = t || 8, this.lastColumnPos = this.lastColumnValue = 0, this.lineStart = 0, this.lineOracle = n;
|
|
28
|
+
};
|
|
29
|
+
i.prototype.eol = function() {
|
|
30
|
+
return this.pos >= this.string.length;
|
|
31
|
+
}, i.prototype.sol = function() {
|
|
32
|
+
return this.pos == this.lineStart;
|
|
33
|
+
}, i.prototype.peek = function() {
|
|
34
|
+
return this.string.charAt(this.pos) || void 0;
|
|
35
|
+
}, i.prototype.next = function() {
|
|
36
|
+
if (this.pos < this.string.length) return this.string.charAt(this.pos++);
|
|
37
|
+
}, i.prototype.eat = function(e) {
|
|
38
|
+
var t = this.string.charAt(this.pos);
|
|
39
|
+
if (typeof e == "string" ? t == e : t && (e.test ? e.test(t) : e(t))) return ++this.pos, t;
|
|
40
|
+
}, i.prototype.eatWhile = function(e) {
|
|
41
|
+
for (var t = this.pos; this.eat(e););
|
|
42
|
+
return this.pos > t;
|
|
43
|
+
}, i.prototype.eatSpace = function() {
|
|
44
|
+
for (var e = this.pos; /[\s\u00a0]/.test(this.string.charAt(this.pos));) ++this.pos;
|
|
45
|
+
return this.pos > e;
|
|
46
|
+
}, i.prototype.skipToEnd = function() {
|
|
47
|
+
this.pos = this.string.length;
|
|
48
|
+
}, i.prototype.skipTo = function(e) {
|
|
49
|
+
var t = this.string.indexOf(e, this.pos);
|
|
50
|
+
if (t > -1) return this.pos = t, !0;
|
|
51
|
+
}, i.prototype.backUp = function(e) {
|
|
52
|
+
this.pos -= e;
|
|
53
|
+
}, i.prototype.column = function() {
|
|
54
|
+
return this.lastColumnPos < this.start && (this.lastColumnValue = t(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? t(this.string, this.lineStart, this.tabSize) : 0);
|
|
55
|
+
}, i.prototype.indentation = function() {
|
|
56
|
+
return t(this.string, null, this.tabSize) - (this.lineStart ? t(this.string, this.lineStart, this.tabSize) : 0);
|
|
57
|
+
}, i.prototype.match = function(e, t, n) {
|
|
58
|
+
if (typeof e == "string") {
|
|
59
|
+
var r = function(e) {
|
|
60
|
+
return n ? e.toLowerCase() : e;
|
|
61
|
+
};
|
|
62
|
+
if (r(this.string.substr(this.pos, e.length)) == r(e)) return t !== !1 && (this.pos += e.length), !0;
|
|
63
|
+
} else {
|
|
64
|
+
var i = this.string.slice(this.pos).match(e);
|
|
65
|
+
return i && i.index > 0 ? null : (i && t !== !1 && (this.pos += i[0].length), i);
|
|
66
|
+
}
|
|
67
|
+
}, i.prototype.current = function() {
|
|
68
|
+
return this.string.slice(this.start, this.pos);
|
|
69
|
+
}, i.prototype.hideFirstChars = function(e, t) {
|
|
70
|
+
this.lineStart += e;
|
|
71
|
+
try {
|
|
72
|
+
return t();
|
|
73
|
+
} finally {
|
|
74
|
+
this.lineStart -= e;
|
|
75
|
+
}
|
|
76
|
+
}, i.prototype.lookAhead = function(e) {
|
|
77
|
+
var t = this.lineOracle;
|
|
78
|
+
return t && t.lookAhead(e);
|
|
79
|
+
}, i.prototype.baseToken = function() {
|
|
80
|
+
var e = this.lineOracle;
|
|
81
|
+
return e && e.baseToken(this.pos);
|
|
82
|
+
};
|
|
83
|
+
var a = {}, o = {};
|
|
84
|
+
function s(e, t) {
|
|
85
|
+
arguments.length > 2 && (t.dependencies = Array.prototype.slice.call(arguments, 2)), a[e] = t;
|
|
86
|
+
}
|
|
87
|
+
function c(e, t) {
|
|
88
|
+
o[e] = t;
|
|
89
|
+
}
|
|
90
|
+
function l(e) {
|
|
91
|
+
if (typeof e == "string" && o.hasOwnProperty(e)) e = o[e];
|
|
92
|
+
else if (e && typeof e.name == "string" && o.hasOwnProperty(e.name)) {
|
|
93
|
+
var t = o[e.name];
|
|
94
|
+
typeof t == "string" && (t = { name: t }), e = r(t, e), e.name = t.name;
|
|
95
|
+
} else if (typeof e == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(e)) return l("application/xml");
|
|
96
|
+
else if (typeof e == "string" && /^[\w\-]+\/[\w\-]+\+json$/.test(e)) return l("application/json");
|
|
97
|
+
return typeof e == "string" ? { name: e } : e || { name: "null" };
|
|
98
|
+
}
|
|
99
|
+
function u(e, t) {
|
|
100
|
+
t = l(t);
|
|
101
|
+
var n = a[t.name];
|
|
102
|
+
if (!n) return u(e, "text/plain");
|
|
103
|
+
var r = n(e, t);
|
|
104
|
+
if (d.hasOwnProperty(t.name)) {
|
|
105
|
+
var i = d[t.name];
|
|
106
|
+
for (var o in i) i.hasOwnProperty(o) && (r.hasOwnProperty(o) && (r["_" + o] = r[o]), r[o] = i[o]);
|
|
107
|
+
}
|
|
108
|
+
if (r.name = t.name, t.helperType && (r.helperType = t.helperType), t.modeProps) for (var s in t.modeProps) r[s] = t.modeProps[s];
|
|
109
|
+
return r;
|
|
110
|
+
}
|
|
111
|
+
var d = {};
|
|
112
|
+
function f(t, n) {
|
|
113
|
+
e(n, d.hasOwnProperty(t) ? d[t] : d[t] = {});
|
|
114
|
+
}
|
|
115
|
+
function p(e, t) {
|
|
116
|
+
if (t === !0) return t;
|
|
117
|
+
if (e.copyState) return e.copyState(t);
|
|
118
|
+
var n = {};
|
|
119
|
+
for (var r in t) {
|
|
120
|
+
var i = t[r];
|
|
121
|
+
i instanceof Array && (i = i.concat([])), n[r] = i;
|
|
122
|
+
}
|
|
123
|
+
return n;
|
|
124
|
+
}
|
|
125
|
+
function m(e, t) {
|
|
126
|
+
for (var n; e.innerMode && (n = e.innerMode(t), !(!n || n.mode == e));) t = n.state, e = n.mode;
|
|
127
|
+
return n || {
|
|
128
|
+
mode: e,
|
|
129
|
+
state: t
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function h(e, t, n) {
|
|
133
|
+
return e.startState ? e.startState(t, n) : !0;
|
|
134
|
+
}
|
|
135
|
+
var g = {
|
|
136
|
+
__proto__: null,
|
|
137
|
+
modes: a,
|
|
138
|
+
mimeModes: o,
|
|
139
|
+
defineMode: s,
|
|
140
|
+
defineMIME: c,
|
|
141
|
+
resolveMode: l,
|
|
142
|
+
getMode: u,
|
|
143
|
+
modeExtensions: d,
|
|
144
|
+
extendMode: f,
|
|
145
|
+
copyState: p,
|
|
146
|
+
innerMode: m,
|
|
147
|
+
startState: h
|
|
148
|
+
}, _ = typeof globalThis < "u" ? globalThis : window;
|
|
149
|
+
for (var v in _.CodeMirror = {}, CodeMirror.StringStream = i, g) CodeMirror[v] = g[v];
|
|
150
|
+
CodeMirror.defineMode("null", function() {
|
|
151
|
+
return { token: function(e) {
|
|
152
|
+
return e.skipToEnd();
|
|
153
|
+
} };
|
|
154
|
+
}), CodeMirror.defineMIME("text/plain", "null"), CodeMirror.registerHelper = CodeMirror.registerGlobalHelper = Math.min, CodeMirror.splitLines = function(e) {
|
|
155
|
+
return e.split(/\r?\n|\r/);
|
|
156
|
+
}, CodeMirror.countColumn = t, CodeMirror.defaults = { indentUnit: 2 }, (function(e) {
|
|
157
|
+
typeof define == "function" && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror);
|
|
158
|
+
})(function(e) {
|
|
159
|
+
e.runMode = function(t, n, r, i) {
|
|
160
|
+
var a = e.getMode(e.defaults, n), o = i && i.tabSize || e.defaults.tabSize;
|
|
161
|
+
if (r.appendChild) {
|
|
162
|
+
var s = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 9), c = r, l = 0;
|
|
163
|
+
c.innerHTML = "", r = function(e, t) {
|
|
164
|
+
if (e == "\n") {
|
|
165
|
+
c.appendChild(document.createTextNode(s ? "\r" : e)), l = 0;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
for (var n = "", r = 0;;) {
|
|
169
|
+
var i = e.indexOf(" ", r);
|
|
170
|
+
if (i == -1) {
|
|
171
|
+
n += e.slice(r), l += e.length - r;
|
|
172
|
+
break;
|
|
173
|
+
} else {
|
|
174
|
+
l += i - r, n += e.slice(r, i);
|
|
175
|
+
var a = o - l % o;
|
|
176
|
+
l += a;
|
|
177
|
+
for (var u = 0; u < a; ++u) n += " ";
|
|
178
|
+
r = i + 1;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (t) {
|
|
182
|
+
var d = c.appendChild(document.createElement("span"));
|
|
183
|
+
d.className = "cm-" + t.replace(/ +/g, " cm-"), d.appendChild(document.createTextNode(n));
|
|
184
|
+
} else c.appendChild(document.createTextNode(n));
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
for (var u = e.splitLines(t), d = i && i.state || e.startState(a), f = 0, p = u.length; f < p; ++f) {
|
|
188
|
+
f && r("\n");
|
|
189
|
+
var m = new e.StringStream(u[f], null, {
|
|
190
|
+
lookAhead: function(e) {
|
|
191
|
+
return u[f + e];
|
|
192
|
+
},
|
|
193
|
+
baseToken: function() {}
|
|
194
|
+
});
|
|
195
|
+
for (!m.string && a.blankLine && a.blankLine(d); !m.eol();) {
|
|
196
|
+
var h = a.token(m, d);
|
|
197
|
+
r(m.current(), h, f, m.start, d, a), m.start = m.pos;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
});
|
|
202
|
+
})(), (function(e) {
|
|
203
|
+
typeof define == "function" && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror);
|
|
204
|
+
})(function(e) {
|
|
205
|
+
e.defineMode("css", function(t, n) {
|
|
206
|
+
var r = n.inline;
|
|
207
|
+
n.propertyKeywords || (n = e.resolveMode("text/css"));
|
|
208
|
+
var i = t.indentUnit, a = n.tokenHooks, o = n.documentTypes || {}, s = n.mediaTypes || {}, c = n.mediaFeatures || {}, l = n.mediaValueKeywords || {}, u = n.propertyKeywords || {}, d = n.nonStandardPropertyKeywords || {}, f = n.fontProperties || {}, p = n.counterDescriptors || {}, m = n.colorKeywords || {}, h = n.valueKeywords || {}, g = n.allowNested, _ = n.lineComment, v = n.supportsAtComponent === !0, y = t.highlightNonStandardPropertyKeywords !== !1, b, x;
|
|
209
|
+
function S(e, t) {
|
|
210
|
+
return b = t, e;
|
|
211
|
+
}
|
|
212
|
+
function ee(e, t) {
|
|
213
|
+
var n = e.next();
|
|
214
|
+
if (a[n]) {
|
|
215
|
+
var r = a[n](e, t);
|
|
216
|
+
if (r !== !1) return r;
|
|
217
|
+
}
|
|
218
|
+
if (n == "@") return e.eatWhile(/[\w\\\-]/), S("def", e.current());
|
|
219
|
+
if (n == "=" || (n == "~" || n == "|") && e.eat("=")) return S(null, "compare");
|
|
220
|
+
if (n == "\"" || n == "'") return t.tokenize = C(n), t.tokenize(e, t);
|
|
221
|
+
if (n == "#") return e.eatWhile(/[\w\\\-]/), S("atom", "hash");
|
|
222
|
+
if (n == "!") return e.match(/^\s*\w*/), S("keyword", "important");
|
|
223
|
+
if (/\d/.test(n) || n == "." && e.eat(/\d/)) return e.eatWhile(/[\w.%]/), S("number", "unit");
|
|
224
|
+
if (n === "-") {
|
|
225
|
+
if (/[\d.]/.test(e.peek())) return e.eatWhile(/[\w.%]/), S("number", "unit");
|
|
226
|
+
if (e.match(/^-[\w\\\-]*/)) return e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? S("variable-2", "variable-definition") : S("variable-2", "variable");
|
|
227
|
+
if (e.match(/^\w+-/)) return S("meta", "meta");
|
|
228
|
+
} else if (/[,+>*\/]/.test(n)) return S(null, "select-op");
|
|
229
|
+
else if (n == "." && e.match(/^-?[_a-z][_a-z0-9-]*/i)) return S("qualifier", "qualifier");
|
|
230
|
+
else if (/[:;{}\[\]\(\)]/.test(n)) return S(null, n);
|
|
231
|
+
else if (e.match(/^[\w-.]+(?=\()/)) return /^(url(-prefix)?|domain|regexp)$/i.test(e.current()) && (t.tokenize = te), S("variable callee", "variable");
|
|
232
|
+
else if (/[\w\\\-]/.test(n)) return e.eatWhile(/[\w\\\-]/), S("property", "word");
|
|
233
|
+
else return S(null, null);
|
|
234
|
+
}
|
|
235
|
+
function C(e) {
|
|
236
|
+
return function(t, n) {
|
|
237
|
+
for (var r = !1, i; (i = t.next()) != null;) {
|
|
238
|
+
if (i == e && !r) {
|
|
239
|
+
e == ")" && t.backUp(1);
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
r = !r && i == "\\";
|
|
243
|
+
}
|
|
244
|
+
return (i == e || !r && e != ")") && (n.tokenize = null), S("string", "string");
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function te(e, t) {
|
|
248
|
+
return e.next(), e.match(/^\s*[\"\')]/, !1) ? t.tokenize = null : t.tokenize = C(")"), S(null, "(");
|
|
249
|
+
}
|
|
250
|
+
function w(e, t, n) {
|
|
251
|
+
this.type = e, this.indent = t, this.prev = n;
|
|
252
|
+
}
|
|
253
|
+
function T(e, t, n, r) {
|
|
254
|
+
return e.context = new w(n, t.indentation() + (r === !1 ? 0 : i), e.context), n;
|
|
255
|
+
}
|
|
256
|
+
function E(e) {
|
|
257
|
+
return e.context.prev && (e.context = e.context.prev), e.context.type;
|
|
258
|
+
}
|
|
259
|
+
function D(e, t, n) {
|
|
260
|
+
return A[n.context.type](e, t, n);
|
|
261
|
+
}
|
|
262
|
+
function O(e, t, n, r) {
|
|
263
|
+
for (var i = r || 1; i > 0; i--) n.context = n.context.prev;
|
|
264
|
+
return D(e, t, n);
|
|
265
|
+
}
|
|
266
|
+
function k(e) {
|
|
267
|
+
var t = e.current().toLowerCase();
|
|
268
|
+
x = h.hasOwnProperty(t) ? "atom" : m.hasOwnProperty(t) ? "keyword" : "variable";
|
|
269
|
+
}
|
|
270
|
+
var A = {};
|
|
271
|
+
return A.top = function(e, t, n) {
|
|
272
|
+
if (e == "{") return T(n, t, "block");
|
|
273
|
+
if (e == "}" && n.context.prev) return E(n);
|
|
274
|
+
if (v && /@component/i.test(e)) return T(n, t, "atComponentBlock");
|
|
275
|
+
if (/^@(-moz-)?document$/i.test(e)) return T(n, t, "documentTypes");
|
|
276
|
+
if (/^@(media|supports|(-moz-)?document|import)$/i.test(e)) return T(n, t, "atBlock");
|
|
277
|
+
if (/^@(font-face|counter-style)/i.test(e)) return n.stateArg = e, "restricted_atBlock_before";
|
|
278
|
+
if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e)) return "keyframes";
|
|
279
|
+
if (e && e.charAt(0) == "@") return T(n, t, "at");
|
|
280
|
+
if (e == "hash") x = "builtin";
|
|
281
|
+
else if (e == "word") x = "tag";
|
|
282
|
+
else if (e == "variable-definition") return "maybeprop";
|
|
283
|
+
else if (e == "interpolation") return T(n, t, "interpolation");
|
|
284
|
+
else if (e == ":") return "pseudo";
|
|
285
|
+
else if (g && e == "(") return T(n, t, "parens");
|
|
286
|
+
return n.context.type;
|
|
287
|
+
}, A.block = function(e, t, n) {
|
|
288
|
+
if (e == "word") {
|
|
289
|
+
var r = t.current().toLowerCase();
|
|
290
|
+
return u.hasOwnProperty(r) ? (x = "property", "maybeprop") : d.hasOwnProperty(r) ? (x = y ? "string-2" : "property", "maybeprop") : g ? (x = t.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (x += " error", "maybeprop");
|
|
291
|
+
} else if (e == "meta") return "block";
|
|
292
|
+
else if (!g && (e == "hash" || e == "qualifier")) return x = "error", "block";
|
|
293
|
+
else return A.top(e, t, n);
|
|
294
|
+
}, A.maybeprop = function(e, t, n) {
|
|
295
|
+
return e == ":" ? T(n, t, "prop") : D(e, t, n);
|
|
296
|
+
}, A.prop = function(e, t, n) {
|
|
297
|
+
if (e == ";") return E(n);
|
|
298
|
+
if (e == "{" && g) return T(n, t, "propBlock");
|
|
299
|
+
if (e == "}" || e == "{") return O(e, t, n);
|
|
300
|
+
if (e == "(") return T(n, t, "parens");
|
|
301
|
+
if (e == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())) x += " error";
|
|
302
|
+
else if (e == "word") k(t);
|
|
303
|
+
else if (e == "interpolation") return T(n, t, "interpolation");
|
|
304
|
+
return "prop";
|
|
305
|
+
}, A.propBlock = function(e, t, n) {
|
|
306
|
+
return e == "}" ? E(n) : e == "word" ? (x = "property", "maybeprop") : n.context.type;
|
|
307
|
+
}, A.parens = function(e, t, n) {
|
|
308
|
+
return e == "{" || e == "}" ? O(e, t, n) : e == ")" ? E(n) : e == "(" ? T(n, t, "parens") : e == "interpolation" ? T(n, t, "interpolation") : (e == "word" && k(t), "parens");
|
|
309
|
+
}, A.pseudo = function(e, t, n) {
|
|
310
|
+
return e == "meta" ? "pseudo" : e == "word" ? (x = "variable-3", n.context.type) : D(e, t, n);
|
|
311
|
+
}, A.documentTypes = function(e, t, n) {
|
|
312
|
+
return e == "word" && o.hasOwnProperty(t.current()) ? (x = "tag", n.context.type) : A.atBlock(e, t, n);
|
|
313
|
+
}, A.atBlock = function(e, t, n) {
|
|
314
|
+
if (e == "(") return T(n, t, "atBlock_parens");
|
|
315
|
+
if (e == "}" || e == ";") return O(e, t, n);
|
|
316
|
+
if (e == "{") return E(n) && T(n, t, g ? "block" : "top");
|
|
317
|
+
if (e == "interpolation") return T(n, t, "interpolation");
|
|
318
|
+
if (e == "word") {
|
|
319
|
+
var r = t.current().toLowerCase();
|
|
320
|
+
x = r == "only" || r == "not" || r == "and" || r == "or" ? "keyword" : s.hasOwnProperty(r) ? "attribute" : c.hasOwnProperty(r) ? "property" : l.hasOwnProperty(r) ? "keyword" : u.hasOwnProperty(r) ? "property" : d.hasOwnProperty(r) ? y ? "string-2" : "property" : h.hasOwnProperty(r) ? "atom" : m.hasOwnProperty(r) ? "keyword" : "error";
|
|
321
|
+
}
|
|
322
|
+
return n.context.type;
|
|
323
|
+
}, A.atComponentBlock = function(e, t, n) {
|
|
324
|
+
return e == "}" ? O(e, t, n) : e == "{" ? E(n) && T(n, t, g ? "block" : "top", !1) : (e == "word" && (x = "error"), n.context.type);
|
|
325
|
+
}, A.atBlock_parens = function(e, t, n) {
|
|
326
|
+
return e == ")" ? E(n) : e == "{" || e == "}" ? O(e, t, n, 2) : A.atBlock(e, t, n);
|
|
327
|
+
}, A.restricted_atBlock_before = function(e, t, n) {
|
|
328
|
+
return e == "{" ? T(n, t, "restricted_atBlock") : e == "word" && n.stateArg == "@counter-style" ? (x = "variable", "restricted_atBlock_before") : D(e, t, n);
|
|
329
|
+
}, A.restricted_atBlock = function(e, t, n) {
|
|
330
|
+
return e == "}" ? (n.stateArg = null, E(n)) : e == "word" ? (x = n.stateArg == "@font-face" && !f.hasOwnProperty(t.current().toLowerCase()) || n.stateArg == "@counter-style" && !p.hasOwnProperty(t.current().toLowerCase()) ? "error" : "property", "maybeprop") : "restricted_atBlock";
|
|
331
|
+
}, A.keyframes = function(e, t, n) {
|
|
332
|
+
return e == "word" ? (x = "variable", "keyframes") : e == "{" ? T(n, t, "top") : D(e, t, n);
|
|
333
|
+
}, A.at = function(e, t, n) {
|
|
334
|
+
return e == ";" ? E(n) : e == "{" || e == "}" ? O(e, t, n) : (e == "word" ? x = "tag" : e == "hash" && (x = "builtin"), "at");
|
|
335
|
+
}, A.interpolation = function(e, t, n) {
|
|
336
|
+
return e == "}" ? E(n) : e == "{" || e == ";" ? O(e, t, n) : (e == "word" ? x = "variable" : e != "variable" && e != "(" && e != ")" && (x = "error"), "interpolation");
|
|
337
|
+
}, {
|
|
338
|
+
startState: function(e) {
|
|
339
|
+
return {
|
|
340
|
+
tokenize: null,
|
|
341
|
+
state: r ? "block" : "top",
|
|
342
|
+
stateArg: null,
|
|
343
|
+
context: new w(r ? "block" : "top", e || 0, null)
|
|
344
|
+
};
|
|
345
|
+
},
|
|
346
|
+
token: function(e, t) {
|
|
347
|
+
if (!t.tokenize && e.eatSpace()) return null;
|
|
348
|
+
var n = (t.tokenize || ee)(e, t);
|
|
349
|
+
return n && typeof n == "object" && (b = n[1], n = n[0]), x = n, b != "comment" && (t.state = A[t.state](b, e, t)), x;
|
|
350
|
+
},
|
|
351
|
+
indent: function(e, t) {
|
|
352
|
+
var n = e.context, r = t && t.charAt(0), a = n.indent;
|
|
353
|
+
return n.type == "prop" && (r == "}" || r == ")") && (n = n.prev), n.prev && (r == "}" && (n.type == "block" || n.type == "top" || n.type == "interpolation" || n.type == "restricted_atBlock") ? (n = n.prev, a = n.indent) : (r == ")" && (n.type == "parens" || n.type == "atBlock_parens") || r == "{" && (n.type == "at" || n.type == "atBlock")) && (a = Math.max(0, n.indent - i))), a;
|
|
354
|
+
},
|
|
355
|
+
electricChars: "}",
|
|
356
|
+
blockCommentStart: "/*",
|
|
357
|
+
blockCommentEnd: "*/",
|
|
358
|
+
blockCommentContinue: " * ",
|
|
359
|
+
lineComment: _,
|
|
360
|
+
fold: "brace"
|
|
361
|
+
};
|
|
362
|
+
});
|
|
363
|
+
function t(e) {
|
|
364
|
+
for (var t = {}, n = 0; n < e.length; ++n) t[e[n].toLowerCase()] = !0;
|
|
365
|
+
return t;
|
|
366
|
+
}
|
|
367
|
+
var n = [
|
|
368
|
+
"domain",
|
|
369
|
+
"regexp",
|
|
370
|
+
"url",
|
|
371
|
+
"url-prefix"
|
|
372
|
+
], r = t(n), i = [
|
|
373
|
+
"all",
|
|
374
|
+
"aural",
|
|
375
|
+
"braille",
|
|
376
|
+
"handheld",
|
|
377
|
+
"print",
|
|
378
|
+
"projection",
|
|
379
|
+
"screen",
|
|
380
|
+
"tty",
|
|
381
|
+
"tv",
|
|
382
|
+
"embossed"
|
|
383
|
+
], a = t(i), o = /* @__PURE__ */ "width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.orientation.device-pixel-ratio.min-device-pixel-ratio.max-device-pixel-ratio.pointer.any-pointer.hover.any-hover.prefers-color-scheme".split("."), s = t(o), c = [
|
|
384
|
+
"landscape",
|
|
385
|
+
"portrait",
|
|
386
|
+
"none",
|
|
387
|
+
"coarse",
|
|
388
|
+
"fine",
|
|
389
|
+
"on-demand",
|
|
390
|
+
"hover",
|
|
391
|
+
"interlace",
|
|
392
|
+
"progressive",
|
|
393
|
+
"dark",
|
|
394
|
+
"light"
|
|
395
|
+
], l = t(c), u = /* @__PURE__ */ "align-content.align-items.align-self.alignment-adjust.alignment-baseline.all.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.binding.bleed.block-size.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.gap.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-gap.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-gap.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.inset.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.left.letter-spacing.line-break.line-height.line-height-step.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.place-content.place-items.place-self.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotate.rotation.rotation-point.row-gap.ruby-align.ruby-overhang.ruby-position.ruby-span.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-type.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-orientation.text-outline.text-overflow.text-rendering.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.touch-action.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-select.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.paint-order.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode".split("."), d = t(u), f = /* @__PURE__ */ "border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.margin-block.margin-block-end.margin-block-start.margin-inline.margin-inline-end.margin-inline-start.padding-block.padding-block-end.padding-block-start.padding-inline.padding-inline-end.padding-inline-start.scroll-snap-stop.scrollbar-3d-light-color.scrollbar-arrow-color.scrollbar-base-color.scrollbar-dark-shadow-color.scrollbar-face-color.scrollbar-highlight-color.scrollbar-shadow-color.scrollbar-track-color.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.shape-inside.zoom".split("."), p = t(f), m = t([
|
|
396
|
+
"font-display",
|
|
397
|
+
"font-family",
|
|
398
|
+
"src",
|
|
399
|
+
"unicode-range",
|
|
400
|
+
"font-variant",
|
|
401
|
+
"font-feature-settings",
|
|
402
|
+
"font-stretch",
|
|
403
|
+
"font-weight",
|
|
404
|
+
"font-style"
|
|
405
|
+
]), h = t([
|
|
406
|
+
"additive-symbols",
|
|
407
|
+
"fallback",
|
|
408
|
+
"negative",
|
|
409
|
+
"pad",
|
|
410
|
+
"prefix",
|
|
411
|
+
"range",
|
|
412
|
+
"speak-as",
|
|
413
|
+
"suffix",
|
|
414
|
+
"symbols",
|
|
415
|
+
"system"
|
|
416
|
+
]), g = /* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split("."), _ = t(g), v = /* @__PURE__ */ "above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.devanagari.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.georgian.graytext.grid.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hard-light.hebrew.help.hidden.hide.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.luminosity.malayalam.manipulation.match.matrix.matrix3d.media-controls-background.media-current-time-display.media-fullscreen-button.media-mute-button.media-play-button.media-return-to-realtime-button.media-rewind-button.media-seek-back-button.media-seek-forward-button.media-slider.media-sliderthumb.media-time-remaining-display.media-volume-slider.media-volume-slider-container.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menulist-text.menulist-textfield.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.multiple_mask_images.multiply.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.opacity.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.somali.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.square-button.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small".split("."), y = t(v), b = n.concat(i).concat(o).concat(c).concat(u).concat(f).concat(g).concat(v);
|
|
417
|
+
e.registerHelper("hintWords", "css", b);
|
|
418
|
+
function x(e, t) {
|
|
419
|
+
for (var n = !1, r; (r = e.next()) != null;) {
|
|
420
|
+
if (n && r == "/") {
|
|
421
|
+
t.tokenize = null;
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
n = r == "*";
|
|
425
|
+
}
|
|
426
|
+
return ["comment", "comment"];
|
|
427
|
+
}
|
|
428
|
+
e.defineMIME("text/css", {
|
|
429
|
+
documentTypes: r,
|
|
430
|
+
mediaTypes: a,
|
|
431
|
+
mediaFeatures: s,
|
|
432
|
+
mediaValueKeywords: l,
|
|
433
|
+
propertyKeywords: d,
|
|
434
|
+
nonStandardPropertyKeywords: p,
|
|
435
|
+
fontProperties: m,
|
|
436
|
+
counterDescriptors: h,
|
|
437
|
+
colorKeywords: _,
|
|
438
|
+
valueKeywords: y,
|
|
439
|
+
tokenHooks: { "/": function(e, t) {
|
|
440
|
+
return e.eat("*") ? (t.tokenize = x, x(e, t)) : !1;
|
|
441
|
+
} },
|
|
442
|
+
name: "css"
|
|
443
|
+
}), e.defineMIME("text/x-scss", {
|
|
444
|
+
mediaTypes: a,
|
|
445
|
+
mediaFeatures: s,
|
|
446
|
+
mediaValueKeywords: l,
|
|
447
|
+
propertyKeywords: d,
|
|
448
|
+
nonStandardPropertyKeywords: p,
|
|
449
|
+
colorKeywords: _,
|
|
450
|
+
valueKeywords: y,
|
|
451
|
+
fontProperties: m,
|
|
452
|
+
allowNested: !0,
|
|
453
|
+
lineComment: "//",
|
|
454
|
+
tokenHooks: {
|
|
455
|
+
"/": function(e, t) {
|
|
456
|
+
return e.eat("/") ? (e.skipToEnd(), ["comment", "comment"]) : e.eat("*") ? (t.tokenize = x, x(e, t)) : ["operator", "operator"];
|
|
457
|
+
},
|
|
458
|
+
":": function(e) {
|
|
459
|
+
return e.match(/^\s*\{/, !1) ? [null, null] : !1;
|
|
460
|
+
},
|
|
461
|
+
$: function(e) {
|
|
462
|
+
return e.match(/^[\w-]+/), e.match(/^\s*:/, !1) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"];
|
|
463
|
+
},
|
|
464
|
+
"#": function(e) {
|
|
465
|
+
return e.eat("{") ? [null, "interpolation"] : !1;
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
name: "css",
|
|
469
|
+
helperType: "scss"
|
|
470
|
+
}), e.defineMIME("text/x-less", {
|
|
471
|
+
mediaTypes: a,
|
|
472
|
+
mediaFeatures: s,
|
|
473
|
+
mediaValueKeywords: l,
|
|
474
|
+
propertyKeywords: d,
|
|
475
|
+
nonStandardPropertyKeywords: p,
|
|
476
|
+
colorKeywords: _,
|
|
477
|
+
valueKeywords: y,
|
|
478
|
+
fontProperties: m,
|
|
479
|
+
allowNested: !0,
|
|
480
|
+
lineComment: "//",
|
|
481
|
+
tokenHooks: {
|
|
482
|
+
"/": function(e, t) {
|
|
483
|
+
return e.eat("/") ? (e.skipToEnd(), ["comment", "comment"]) : e.eat("*") ? (t.tokenize = x, x(e, t)) : ["operator", "operator"];
|
|
484
|
+
},
|
|
485
|
+
"@": function(e) {
|
|
486
|
+
return e.eat("{") ? [null, "interpolation"] : e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, !1) ? !1 : (e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"]);
|
|
487
|
+
},
|
|
488
|
+
"&": function() {
|
|
489
|
+
return ["atom", "atom"];
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
name: "css",
|
|
493
|
+
helperType: "less"
|
|
494
|
+
}), e.defineMIME("text/x-gss", {
|
|
495
|
+
documentTypes: r,
|
|
496
|
+
mediaTypes: a,
|
|
497
|
+
mediaFeatures: s,
|
|
498
|
+
propertyKeywords: d,
|
|
499
|
+
nonStandardPropertyKeywords: p,
|
|
500
|
+
fontProperties: m,
|
|
501
|
+
counterDescriptors: h,
|
|
502
|
+
colorKeywords: _,
|
|
503
|
+
valueKeywords: y,
|
|
504
|
+
supportsAtComponent: !0,
|
|
505
|
+
tokenHooks: { "/": function(e, t) {
|
|
506
|
+
return e.eat("*") ? (t.tokenize = x, x(e, t)) : !1;
|
|
507
|
+
} },
|
|
508
|
+
name: "css",
|
|
509
|
+
helperType: "gss"
|
|
510
|
+
});
|
|
511
|
+
}), (function(e) {
|
|
512
|
+
typeof define == "function" && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror);
|
|
513
|
+
})(function(e) {
|
|
514
|
+
var t = {
|
|
515
|
+
autoSelfClosers: {
|
|
516
|
+
area: !0,
|
|
517
|
+
base: !0,
|
|
518
|
+
br: !0,
|
|
519
|
+
col: !0,
|
|
520
|
+
command: !0,
|
|
521
|
+
embed: !0,
|
|
522
|
+
frame: !0,
|
|
523
|
+
hr: !0,
|
|
524
|
+
img: !0,
|
|
525
|
+
input: !0,
|
|
526
|
+
keygen: !0,
|
|
527
|
+
link: !0,
|
|
528
|
+
meta: !0,
|
|
529
|
+
param: !0,
|
|
530
|
+
source: !0,
|
|
531
|
+
track: !0,
|
|
532
|
+
wbr: !0,
|
|
533
|
+
menuitem: !0
|
|
534
|
+
},
|
|
535
|
+
implicitlyClosed: {
|
|
536
|
+
dd: !0,
|
|
537
|
+
li: !0,
|
|
538
|
+
optgroup: !0,
|
|
539
|
+
option: !0,
|
|
540
|
+
p: !0,
|
|
541
|
+
rp: !0,
|
|
542
|
+
rt: !0,
|
|
543
|
+
tbody: !0,
|
|
544
|
+
td: !0,
|
|
545
|
+
tfoot: !0,
|
|
546
|
+
th: !0,
|
|
547
|
+
tr: !0
|
|
548
|
+
},
|
|
549
|
+
contextGrabbers: {
|
|
550
|
+
dd: {
|
|
551
|
+
dd: !0,
|
|
552
|
+
dt: !0
|
|
553
|
+
},
|
|
554
|
+
dt: {
|
|
555
|
+
dd: !0,
|
|
556
|
+
dt: !0
|
|
557
|
+
},
|
|
558
|
+
li: { li: !0 },
|
|
559
|
+
option: {
|
|
560
|
+
option: !0,
|
|
561
|
+
optgroup: !0
|
|
562
|
+
},
|
|
563
|
+
optgroup: { optgroup: !0 },
|
|
564
|
+
p: {
|
|
565
|
+
address: !0,
|
|
566
|
+
article: !0,
|
|
567
|
+
aside: !0,
|
|
568
|
+
blockquote: !0,
|
|
569
|
+
dir: !0,
|
|
570
|
+
div: !0,
|
|
571
|
+
dl: !0,
|
|
572
|
+
fieldset: !0,
|
|
573
|
+
footer: !0,
|
|
574
|
+
form: !0,
|
|
575
|
+
h1: !0,
|
|
576
|
+
h2: !0,
|
|
577
|
+
h3: !0,
|
|
578
|
+
h4: !0,
|
|
579
|
+
h5: !0,
|
|
580
|
+
h6: !0,
|
|
581
|
+
header: !0,
|
|
582
|
+
hgroup: !0,
|
|
583
|
+
hr: !0,
|
|
584
|
+
menu: !0,
|
|
585
|
+
nav: !0,
|
|
586
|
+
ol: !0,
|
|
587
|
+
p: !0,
|
|
588
|
+
pre: !0,
|
|
589
|
+
section: !0,
|
|
590
|
+
table: !0,
|
|
591
|
+
ul: !0
|
|
592
|
+
},
|
|
593
|
+
rp: {
|
|
594
|
+
rp: !0,
|
|
595
|
+
rt: !0
|
|
596
|
+
},
|
|
597
|
+
rt: {
|
|
598
|
+
rp: !0,
|
|
599
|
+
rt: !0
|
|
600
|
+
},
|
|
601
|
+
tbody: {
|
|
602
|
+
tbody: !0,
|
|
603
|
+
tfoot: !0
|
|
604
|
+
},
|
|
605
|
+
td: {
|
|
606
|
+
td: !0,
|
|
607
|
+
th: !0
|
|
608
|
+
},
|
|
609
|
+
tfoot: { tbody: !0 },
|
|
610
|
+
th: {
|
|
611
|
+
td: !0,
|
|
612
|
+
th: !0
|
|
613
|
+
},
|
|
614
|
+
thead: {
|
|
615
|
+
tbody: !0,
|
|
616
|
+
tfoot: !0
|
|
617
|
+
},
|
|
618
|
+
tr: { tr: !0 }
|
|
619
|
+
},
|
|
620
|
+
doNotIndent: { pre: !0 },
|
|
621
|
+
allowUnquoted: !0,
|
|
622
|
+
allowMissing: !0,
|
|
623
|
+
caseFold: !0
|
|
624
|
+
}, n = {
|
|
625
|
+
autoSelfClosers: {},
|
|
626
|
+
implicitlyClosed: {},
|
|
627
|
+
contextGrabbers: {},
|
|
628
|
+
doNotIndent: {},
|
|
629
|
+
allowUnquoted: !1,
|
|
630
|
+
allowMissing: !1,
|
|
631
|
+
allowMissingTagName: !1,
|
|
632
|
+
caseFold: !1
|
|
633
|
+
};
|
|
634
|
+
e.defineMode("xml", function(r, i) {
|
|
635
|
+
var a = r.indentUnit, o = {}, s = i.htmlMode ? t : n;
|
|
636
|
+
for (var c in s) o[c] = s[c];
|
|
637
|
+
for (var c in i) o[c] = i[c];
|
|
638
|
+
var l, u;
|
|
639
|
+
function d(e, t) {
|
|
640
|
+
function n(n) {
|
|
641
|
+
return t.tokenize = n, n(e, t);
|
|
642
|
+
}
|
|
643
|
+
var r = e.next();
|
|
644
|
+
return r == "<" ? e.eat("!") ? e.eat("[") ? e.match("CDATA[") ? n(m("atom", "]]>")) : null : e.match("--") ? n(m("comment", "-->")) : e.match("DOCTYPE", !0, !0) ? (e.eatWhile(/[\w\._\-]/), n(h(1))) : null : e.eat("?") ? (e.eatWhile(/[\w\._\-]/), t.tokenize = m("meta", "?>"), "meta") : (l = e.eat("/") ? "closeTag" : "openTag", t.tokenize = f, "tag bracket") : r == "&" ? (e.eat("#") ? e.eat("x") ? e.eatWhile(/[a-fA-F\d]/) && e.eat(";") : e.eatWhile(/[\d]/) && e.eat(";") : e.eatWhile(/[\w\.\-:]/) && e.eat(";")) ? "atom" : "error" : (e.eatWhile(/[^&<]/), null);
|
|
645
|
+
}
|
|
646
|
+
d.isInText = !0;
|
|
647
|
+
function f(e, t) {
|
|
648
|
+
var n = e.next();
|
|
649
|
+
if (n == ">" || n == "/" && e.eat(">")) return t.tokenize = d, l = n == ">" ? "endTag" : "selfcloseTag", "tag bracket";
|
|
650
|
+
if (n == "=") return l = "equals", null;
|
|
651
|
+
if (n == "<") {
|
|
652
|
+
t.tokenize = d, t.state = y, t.tagName = t.tagStart = null;
|
|
653
|
+
var r = t.tokenize(e, t);
|
|
654
|
+
return r ? r + " tag error" : "tag error";
|
|
655
|
+
} else if (/[\'\"]/.test(n)) return t.tokenize = p(n), t.stringStartCol = e.column(), t.tokenize(e, t);
|
|
656
|
+
else return e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/), "word";
|
|
657
|
+
}
|
|
658
|
+
function p(e) {
|
|
659
|
+
var t = function(t, n) {
|
|
660
|
+
for (; !t.eol();) if (t.next() == e) {
|
|
661
|
+
n.tokenize = f;
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
return "string";
|
|
665
|
+
};
|
|
666
|
+
return t.isInAttribute = !0, t;
|
|
667
|
+
}
|
|
668
|
+
function m(e, t) {
|
|
669
|
+
return function(n, r) {
|
|
670
|
+
for (; !n.eol();) {
|
|
671
|
+
if (n.match(t)) {
|
|
672
|
+
r.tokenize = d;
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
n.next();
|
|
676
|
+
}
|
|
677
|
+
return e;
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
function h(e) {
|
|
681
|
+
return function(t, n) {
|
|
682
|
+
for (var r; (r = t.next()) != null;) if (r == "<") return n.tokenize = h(e + 1), n.tokenize(t, n);
|
|
683
|
+
else if (r == ">") if (e == 1) {
|
|
684
|
+
n.tokenize = d;
|
|
685
|
+
break;
|
|
686
|
+
} else return n.tokenize = h(e - 1), n.tokenize(t, n);
|
|
687
|
+
return "meta";
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
function g(e, t, n) {
|
|
691
|
+
this.prev = e.context, this.tagName = t || "", this.indent = e.indented, this.startOfLine = n, (o.doNotIndent.hasOwnProperty(t) || e.context && e.context.noIndent) && (this.noIndent = !0);
|
|
692
|
+
}
|
|
693
|
+
function _(e) {
|
|
694
|
+
e.context &&= e.context.prev;
|
|
695
|
+
}
|
|
696
|
+
function v(e, t) {
|
|
697
|
+
for (var n;;) {
|
|
698
|
+
if (!e.context || (n = e.context.tagName, !o.contextGrabbers.hasOwnProperty(n) || !o.contextGrabbers[n].hasOwnProperty(t))) return;
|
|
699
|
+
_(e);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function y(e, t, n) {
|
|
703
|
+
return e == "openTag" ? (n.tagStart = t.column(), b) : e == "closeTag" ? x : y;
|
|
704
|
+
}
|
|
705
|
+
function b(e, t, n) {
|
|
706
|
+
return e == "word" ? (n.tagName = t.current(), u = "tag", C) : o.allowMissingTagName && e == "endTag" ? (u = "tag bracket", C(e, t, n)) : (u = "error", b);
|
|
707
|
+
}
|
|
708
|
+
function x(e, t, n) {
|
|
709
|
+
if (e == "word") {
|
|
710
|
+
var r = t.current();
|
|
711
|
+
return n.context && n.context.tagName != r && o.implicitlyClosed.hasOwnProperty(n.context.tagName) && _(n), n.context && n.context.tagName == r || o.matchClosing === !1 ? (u = "tag", S) : (u = "tag error", ee);
|
|
712
|
+
} else if (o.allowMissingTagName && e == "endTag") return u = "tag bracket", S(e, t, n);
|
|
713
|
+
else return u = "error", ee;
|
|
714
|
+
}
|
|
715
|
+
function S(e, t, n) {
|
|
716
|
+
return e == "endTag" ? (_(n), y) : (u = "error", S);
|
|
717
|
+
}
|
|
718
|
+
function ee(e, t, n) {
|
|
719
|
+
return u = "error", S(e, t, n);
|
|
720
|
+
}
|
|
721
|
+
function C(e, t, n) {
|
|
722
|
+
if (e == "word") return u = "attribute", te;
|
|
723
|
+
if (e == "endTag" || e == "selfcloseTag") {
|
|
724
|
+
var r = n.tagName, i = n.tagStart;
|
|
725
|
+
return n.tagName = n.tagStart = null, e == "selfcloseTag" || o.autoSelfClosers.hasOwnProperty(r) ? v(n, r) : (v(n, r), n.context = new g(n, r, i == n.indented)), y;
|
|
726
|
+
}
|
|
727
|
+
return u = "error", C;
|
|
728
|
+
}
|
|
729
|
+
function te(e, t, n) {
|
|
730
|
+
return e == "equals" ? w : (o.allowMissing || (u = "error"), C(e, t, n));
|
|
731
|
+
}
|
|
732
|
+
function w(e, t, n) {
|
|
733
|
+
return e == "string" ? T : e == "word" && o.allowUnquoted ? (u = "string", C) : (u = "error", C(e, t, n));
|
|
734
|
+
}
|
|
735
|
+
function T(e, t, n) {
|
|
736
|
+
return e == "string" ? T : C(e, t, n);
|
|
737
|
+
}
|
|
738
|
+
return {
|
|
739
|
+
startState: function(e) {
|
|
740
|
+
var t = {
|
|
741
|
+
tokenize: d,
|
|
742
|
+
state: y,
|
|
743
|
+
indented: e || 0,
|
|
744
|
+
tagName: null,
|
|
745
|
+
tagStart: null,
|
|
746
|
+
context: null
|
|
747
|
+
};
|
|
748
|
+
return e != null && (t.baseIndent = e), t;
|
|
749
|
+
},
|
|
750
|
+
token: function(e, t) {
|
|
751
|
+
if (!t.tagName && e.sol() && (t.indented = e.indentation()), e.eatSpace()) return null;
|
|
752
|
+
l = null;
|
|
753
|
+
var n = t.tokenize(e, t);
|
|
754
|
+
return (n || l) && n != "comment" && (u = null, t.state = t.state(l || n, e, t), u && (n = u == "error" ? n + " error" : u)), n;
|
|
755
|
+
},
|
|
756
|
+
indent: function(t, n, r) {
|
|
757
|
+
var i = t.context;
|
|
758
|
+
if (t.tokenize.isInAttribute) return t.tagStart == t.indented ? t.stringStartCol + 1 : t.indented + a;
|
|
759
|
+
if (i && i.noIndent) return e.Pass;
|
|
760
|
+
if (t.tokenize != f && t.tokenize != d) return r ? r.match(/^(\s*)/)[0].length : 0;
|
|
761
|
+
if (t.tagName) return o.multilineTagIndentPastTag === !1 ? t.tagStart + a * (o.multilineTagIndentFactor || 1) : t.tagStart + t.tagName.length + 2;
|
|
762
|
+
if (o.alignCDATA && /<!\[CDATA\[/.test(n)) return 0;
|
|
763
|
+
var s = n && /^<(\/)?([\w_:\.-]*)/.exec(n);
|
|
764
|
+
if (s && s[1]) for (; i;) if (i.tagName == s[2]) {
|
|
765
|
+
i = i.prev;
|
|
766
|
+
break;
|
|
767
|
+
} else if (o.implicitlyClosed.hasOwnProperty(i.tagName)) i = i.prev;
|
|
768
|
+
else break;
|
|
769
|
+
else if (s) for (; i;) {
|
|
770
|
+
var c = o.contextGrabbers[i.tagName];
|
|
771
|
+
if (c && c.hasOwnProperty(s[2])) i = i.prev;
|
|
772
|
+
else break;
|
|
773
|
+
}
|
|
774
|
+
for (; i && i.prev && !i.startOfLine;) i = i.prev;
|
|
775
|
+
return i ? i.indent + a : t.baseIndent || 0;
|
|
776
|
+
},
|
|
777
|
+
electricInput: /<\/[\s\w:]+>$/,
|
|
778
|
+
blockCommentStart: "<!--",
|
|
779
|
+
blockCommentEnd: "-->",
|
|
780
|
+
configuration: o.htmlMode ? "html" : "xml",
|
|
781
|
+
helperType: o.htmlMode ? "html" : "xml",
|
|
782
|
+
skipAttribute: function(e) {
|
|
783
|
+
e.state == w && (e.state = C);
|
|
784
|
+
},
|
|
785
|
+
xmlCurrentTag: function(e) {
|
|
786
|
+
return e.tagName ? {
|
|
787
|
+
name: e.tagName,
|
|
788
|
+
close: e.type == "closeTag"
|
|
789
|
+
} : null;
|
|
790
|
+
},
|
|
791
|
+
xmlCurrentContext: function(e) {
|
|
792
|
+
for (var t = [], n = e.context; n; n = n.prev) t.push(n.tagName);
|
|
793
|
+
return t.reverse();
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
}), e.defineMIME("text/xml", "xml"), e.defineMIME("application/xml", "xml"), e.mimeModes.hasOwnProperty("text/html") || e.defineMIME("text/html", {
|
|
797
|
+
name: "xml",
|
|
798
|
+
htmlMode: !0
|
|
799
|
+
});
|
|
800
|
+
}), (function(e) {
|
|
801
|
+
typeof define == "function" && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror);
|
|
802
|
+
})(function(e) {
|
|
803
|
+
e.defineMode("javascript", function(t, n) {
|
|
804
|
+
var r = t.indentUnit, i = n.statementIndent, a = n.jsonld, o = n.json || a, s = n.trackScope !== !1, c = n.typescript, l = n.wordCharacters || /[\w$\xa1-\uffff]/, u = function() {
|
|
805
|
+
function e(e) {
|
|
806
|
+
return {
|
|
807
|
+
type: e,
|
|
808
|
+
style: "keyword"
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
var t = e("keyword a"), n = e("keyword b"), r = e("keyword c"), i = e("keyword d"), a = e("operator"), o = {
|
|
812
|
+
type: "atom",
|
|
813
|
+
style: "atom"
|
|
814
|
+
};
|
|
815
|
+
return {
|
|
816
|
+
if: e("if"),
|
|
817
|
+
while: t,
|
|
818
|
+
with: t,
|
|
819
|
+
else: n,
|
|
820
|
+
do: n,
|
|
821
|
+
try: n,
|
|
822
|
+
finally: n,
|
|
823
|
+
return: i,
|
|
824
|
+
break: i,
|
|
825
|
+
continue: i,
|
|
826
|
+
new: e("new"),
|
|
827
|
+
delete: r,
|
|
828
|
+
void: r,
|
|
829
|
+
throw: r,
|
|
830
|
+
debugger: e("debugger"),
|
|
831
|
+
var: e("var"),
|
|
832
|
+
const: e("var"),
|
|
833
|
+
let: e("var"),
|
|
834
|
+
function: e("function"),
|
|
835
|
+
catch: e("catch"),
|
|
836
|
+
for: e("for"),
|
|
837
|
+
switch: e("switch"),
|
|
838
|
+
case: e("case"),
|
|
839
|
+
default: e("default"),
|
|
840
|
+
in: a,
|
|
841
|
+
typeof: a,
|
|
842
|
+
instanceof: a,
|
|
843
|
+
true: o,
|
|
844
|
+
false: o,
|
|
845
|
+
null: o,
|
|
846
|
+
undefined: o,
|
|
847
|
+
NaN: o,
|
|
848
|
+
Infinity: o,
|
|
849
|
+
this: e("this"),
|
|
850
|
+
class: e("class"),
|
|
851
|
+
super: e("atom"),
|
|
852
|
+
yield: r,
|
|
853
|
+
export: e("export"),
|
|
854
|
+
import: e("import"),
|
|
855
|
+
extends: r,
|
|
856
|
+
await: r
|
|
857
|
+
};
|
|
858
|
+
}(), d = /[+\-*&%=<>!?|~^@]/, f = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
|
859
|
+
function p(e) {
|
|
860
|
+
for (var t = !1, n, r = !1; (n = e.next()) != null;) {
|
|
861
|
+
if (!t) {
|
|
862
|
+
if (n == "/" && !r) return;
|
|
863
|
+
n == "[" ? r = !0 : r && n == "]" && (r = !1);
|
|
864
|
+
}
|
|
865
|
+
t = !t && n == "\\";
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
var m, h;
|
|
869
|
+
function g(e, t, n) {
|
|
870
|
+
return m = e, h = n, t;
|
|
871
|
+
}
|
|
872
|
+
function _(e, t) {
|
|
873
|
+
var n = e.next();
|
|
874
|
+
if (n == "\"" || n == "'") return t.tokenize = v(n), t.tokenize(e, t);
|
|
875
|
+
if (n == "." && e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) return g("number", "number");
|
|
876
|
+
if (n == "." && e.match("..")) return g("spread", "meta");
|
|
877
|
+
if (/[\[\]{}\(\),;\:\.]/.test(n)) return g(n);
|
|
878
|
+
if (n == "=" && e.eat(">")) return g("=>", "operator");
|
|
879
|
+
if (n == "0" && e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) return g("number", "number");
|
|
880
|
+
if (/\d/.test(n)) return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), g("number", "number");
|
|
881
|
+
if (n == "/") return e.eat("*") ? (t.tokenize = y, y(e, t)) : e.eat("/") ? (e.skipToEnd(), g("comment", "comment")) : nt(e, t, 1) ? (p(e), e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), g("regexp", "string-2")) : (e.eat("="), g("operator", "operator", e.current()));
|
|
882
|
+
if (n == "`") return t.tokenize = b, b(e, t);
|
|
883
|
+
if (n == "#" && e.peek() == "!") return e.skipToEnd(), g("meta", "meta");
|
|
884
|
+
if (n == "#" && e.eatWhile(l)) return g("variable", "property");
|
|
885
|
+
if (n == "<" && e.match("!--") || n == "-" && e.match("->") && !/\S/.test(e.string.slice(0, e.start))) return e.skipToEnd(), g("comment", "comment");
|
|
886
|
+
if (d.test(n)) return (n != ">" || !t.lexical || t.lexical.type != ">") && (e.eat("=") ? (n == "!" || n == "=") && e.eat("=") : /[<>*+\-|&?]/.test(n) && (e.eat(n), n == ">" && e.eat(n))), n == "?" && e.eat(".") ? g(".") : g("operator", "operator", e.current());
|
|
887
|
+
if (l.test(n)) {
|
|
888
|
+
e.eatWhile(l);
|
|
889
|
+
var r = e.current();
|
|
890
|
+
if (t.lastType != ".") {
|
|
891
|
+
if (u.propertyIsEnumerable(r)) {
|
|
892
|
+
var i = u[r];
|
|
893
|
+
return g(i.type, i.style, r);
|
|
894
|
+
}
|
|
895
|
+
if (r == "async" && e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1)) return g("async", "keyword", r);
|
|
896
|
+
}
|
|
897
|
+
return g("variable", "variable", r);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
function v(e) {
|
|
901
|
+
return function(t, n) {
|
|
902
|
+
var r = !1, i;
|
|
903
|
+
if (a && t.peek() == "@" && t.match(f)) return n.tokenize = _, g("jsonld-keyword", "meta");
|
|
904
|
+
for (; (i = t.next()) != null && !(i == e && !r);) r = !r && i == "\\";
|
|
905
|
+
return r || (n.tokenize = _), g("string", "string");
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
function y(e, t) {
|
|
909
|
+
for (var n = !1, r; r = e.next();) {
|
|
910
|
+
if (r == "/" && n) {
|
|
911
|
+
t.tokenize = _;
|
|
912
|
+
break;
|
|
913
|
+
}
|
|
914
|
+
n = r == "*";
|
|
915
|
+
}
|
|
916
|
+
return g("comment", "comment");
|
|
917
|
+
}
|
|
918
|
+
function b(e, t) {
|
|
919
|
+
for (var n = !1, r; (r = e.next()) != null;) {
|
|
920
|
+
if (!n && (r == "`" || r == "$" && e.eat("{"))) {
|
|
921
|
+
t.tokenize = _;
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
n = !n && r == "\\";
|
|
925
|
+
}
|
|
926
|
+
return g("quasi", "string-2", e.current());
|
|
927
|
+
}
|
|
928
|
+
var x = "([{}])";
|
|
929
|
+
function S(e, t) {
|
|
930
|
+
t.fatArrowAt &&= null;
|
|
931
|
+
var n = e.string.indexOf("=>", e.start);
|
|
932
|
+
if (!(n < 0)) {
|
|
933
|
+
if (c) {
|
|
934
|
+
var r = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start, n));
|
|
935
|
+
r && (n = r.index);
|
|
936
|
+
}
|
|
937
|
+
for (var i = 0, a = !1, o = n - 1; o >= 0; --o) {
|
|
938
|
+
var s = e.string.charAt(o), u = x.indexOf(s);
|
|
939
|
+
if (u >= 0 && u < 3) {
|
|
940
|
+
if (!i) {
|
|
941
|
+
++o;
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
if (--i == 0) {
|
|
945
|
+
s == "(" && (a = !0);
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
} else if (u >= 3 && u < 6) ++i;
|
|
949
|
+
else if (l.test(s)) a = !0;
|
|
950
|
+
else if (/["'\/`]/.test(s)) for (;; --o) {
|
|
951
|
+
if (o == 0) return;
|
|
952
|
+
if (e.string.charAt(o - 1) == s && e.string.charAt(o - 2) != "\\") {
|
|
953
|
+
o--;
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
else if (a && !i) {
|
|
958
|
+
++o;
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
a && !i && (t.fatArrowAt = o);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
var ee = {
|
|
966
|
+
atom: !0,
|
|
967
|
+
number: !0,
|
|
968
|
+
variable: !0,
|
|
969
|
+
string: !0,
|
|
970
|
+
regexp: !0,
|
|
971
|
+
this: !0,
|
|
972
|
+
import: !0,
|
|
973
|
+
"jsonld-keyword": !0
|
|
974
|
+
};
|
|
975
|
+
function C(e, t, n, r, i, a) {
|
|
976
|
+
this.indented = e, this.column = t, this.type = n, this.prev = i, this.info = a, r != null && (this.align = r);
|
|
977
|
+
}
|
|
978
|
+
function te(e, t) {
|
|
979
|
+
if (!s) return !1;
|
|
980
|
+
for (var n = e.localVars; n; n = n.next) if (n.name == t) return !0;
|
|
981
|
+
for (var r = e.context; r; r = r.prev) for (var n = r.vars; n; n = n.next) if (n.name == t) return !0;
|
|
982
|
+
}
|
|
983
|
+
function w(e, t, n, r, i) {
|
|
984
|
+
var a = e.cc;
|
|
985
|
+
for (T.state = e, T.stream = i, T.marked = null, T.cc = a, T.style = t, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0);;) if ((a.length ? a.pop() : o ? B : z)(n, r)) {
|
|
986
|
+
for (; a.length && a[a.length - 1].lex;) a.pop()();
|
|
987
|
+
return T.marked ? T.marked : n == "variable" && te(e, r) ? "variable-2" : t;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
var T = {
|
|
991
|
+
state: null,
|
|
992
|
+
column: null,
|
|
993
|
+
marked: null,
|
|
994
|
+
cc: null
|
|
995
|
+
};
|
|
996
|
+
function E() {
|
|
997
|
+
for (var e = arguments.length - 1; e >= 0; e--) T.cc.push(arguments[e]);
|
|
998
|
+
}
|
|
999
|
+
function D() {
|
|
1000
|
+
return E.apply(null, arguments), !0;
|
|
1001
|
+
}
|
|
1002
|
+
function O(e, t) {
|
|
1003
|
+
for (var n = t; n; n = n.next) if (n.name == e) return !0;
|
|
1004
|
+
return !1;
|
|
1005
|
+
}
|
|
1006
|
+
function k(e) {
|
|
1007
|
+
var t = T.state;
|
|
1008
|
+
if (T.marked = "def", s) {
|
|
1009
|
+
if (t.context) {
|
|
1010
|
+
if (t.lexical.info == "var" && t.context && t.context.block) {
|
|
1011
|
+
var r = A(e, t.context);
|
|
1012
|
+
if (r != null) {
|
|
1013
|
+
t.context = r;
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
} else if (!O(e, t.localVars)) {
|
|
1017
|
+
t.localVars = new N(e, t.localVars);
|
|
1018
|
+
return;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
n.globalVars && !O(e, t.globalVars) && (t.globalVars = new N(e, t.globalVars));
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
function A(e, t) {
|
|
1025
|
+
if (!t) return null;
|
|
1026
|
+
if (t.block) {
|
|
1027
|
+
var n = A(e, t.prev);
|
|
1028
|
+
return n ? n == t.prev ? t : new M(n, t.vars, !0) : null;
|
|
1029
|
+
} else if (O(e, t.vars)) return t;
|
|
1030
|
+
else return new M(t.prev, new N(e, t.vars), !1);
|
|
1031
|
+
}
|
|
1032
|
+
function j(e) {
|
|
1033
|
+
return e == "public" || e == "private" || e == "protected" || e == "abstract" || e == "readonly";
|
|
1034
|
+
}
|
|
1035
|
+
function M(e, t, n) {
|
|
1036
|
+
this.prev = e, this.vars = t, this.block = n;
|
|
1037
|
+
}
|
|
1038
|
+
function N(e, t) {
|
|
1039
|
+
this.name = e, this.next = t;
|
|
1040
|
+
}
|
|
1041
|
+
var ne = new N("this", new N("arguments", null));
|
|
1042
|
+
function P() {
|
|
1043
|
+
T.state.context = new M(T.state.context, T.state.localVars, !1), T.state.localVars = ne;
|
|
1044
|
+
}
|
|
1045
|
+
function re() {
|
|
1046
|
+
T.state.context = new M(T.state.context, T.state.localVars, !0), T.state.localVars = null;
|
|
1047
|
+
}
|
|
1048
|
+
function F() {
|
|
1049
|
+
T.state.localVars = T.state.context.vars, T.state.context = T.state.context.prev;
|
|
1050
|
+
}
|
|
1051
|
+
F.lex = !0;
|
|
1052
|
+
function I(e, t) {
|
|
1053
|
+
var n = function() {
|
|
1054
|
+
var n = T.state, r = n.indented;
|
|
1055
|
+
if (n.lexical.type == "stat") r = n.lexical.indented;
|
|
1056
|
+
else for (var i = n.lexical; i && i.type == ")" && i.align; i = i.prev) r = i.indented;
|
|
1057
|
+
n.lexical = new C(r, T.stream.column(), e, null, n.lexical, t);
|
|
1058
|
+
};
|
|
1059
|
+
return n.lex = !0, n;
|
|
1060
|
+
}
|
|
1061
|
+
function L() {
|
|
1062
|
+
var e = T.state;
|
|
1063
|
+
e.lexical.prev && (e.lexical.type == ")" && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev);
|
|
1064
|
+
}
|
|
1065
|
+
L.lex = !0;
|
|
1066
|
+
function R(e) {
|
|
1067
|
+
function t(n) {
|
|
1068
|
+
return n == e ? D() : e == ";" || n == "}" || n == ")" || n == "]" ? E() : D(t);
|
|
1069
|
+
}
|
|
1070
|
+
return t;
|
|
1071
|
+
}
|
|
1072
|
+
function z(e, t) {
|
|
1073
|
+
return e == "var" ? D(I("vardef", t), je, R(";"), L) : e == "keyword a" ? D(I("form"), ae, z, L) : e == "keyword b" ? D(I("form"), z, L) : e == "keyword d" ? T.stream.match(/^\s*$/, !1) ? D() : D(I("stat"), H, R(";"), L) : e == "debugger" ? D(R(";")) : e == "{" ? D(I("}"), re, ye, L, F) : e == ";" ? D() : e == "if" ? (T.state.lexical.info == "else" && T.state.cc[T.state.cc.length - 1] == L && T.state.cc.pop()(), D(I("form"), ae, z, L, Fe)) : e == "function" ? D(Z) : e == "for" ? D(I("form"), re, Ie, z, F, L) : e == "class" || c && t == "interface" ? (T.marked = "keyword", D(I("form", e == "class" ? e : t), He, L)) : e == "variable" ? c && t == "declare" ? (T.marked = "keyword", D(z)) : c && (t == "module" || t == "enum" || t == "type") && T.stream.match(/^\s*\w/, !1) ? (T.marked = "keyword", t == "enum" ? D($e) : t == "type" ? D(Be, R("operator"), q, R(";")) : D(I("form"), Y, R("{"), I("}"), ye, L, L)) : c && t == "namespace" ? (T.marked = "keyword", D(I("form"), B, z, L)) : c && t == "abstract" ? (T.marked = "keyword", D(z)) : D(I("stat"), me) : e == "switch" ? D(I("form"), ae, R("{"), I("}", "switch"), re, ye, L, L, F) : e == "case" ? D(B, R(":")) : e == "default" ? D(R(":")) : e == "catch" ? D(I("form"), P, ie, z, L, F) : e == "export" ? D(I("stat"), Ge, L) : e == "import" ? D(I("stat"), qe, L) : e == "async" ? D(z) : t == "@" ? D(B, z) : E(I("stat"), B, R(";"), L);
|
|
1074
|
+
}
|
|
1075
|
+
function ie(e) {
|
|
1076
|
+
if (e == "(") return D(Q, R(")"));
|
|
1077
|
+
}
|
|
1078
|
+
function B(e, t) {
|
|
1079
|
+
return oe(e, t, !1);
|
|
1080
|
+
}
|
|
1081
|
+
function V(e, t) {
|
|
1082
|
+
return oe(e, t, !0);
|
|
1083
|
+
}
|
|
1084
|
+
function ae(e) {
|
|
1085
|
+
return e == "(" ? D(I(")"), H, R(")"), L) : E();
|
|
1086
|
+
}
|
|
1087
|
+
function oe(e, t, n) {
|
|
1088
|
+
if (T.state.fatArrowAt == T.stream.start) {
|
|
1089
|
+
var r = n ? ue : le;
|
|
1090
|
+
if (e == "(") return D(P, I(")"), K(Q, ")"), L, R("=>"), r, F);
|
|
1091
|
+
if (e == "variable") return E(P, Y, R("=>"), r, F);
|
|
1092
|
+
}
|
|
1093
|
+
var i = n ? W : U;
|
|
1094
|
+
return ee.hasOwnProperty(e) ? D(i) : e == "function" ? D(Z, i) : e == "class" || c && t == "interface" ? (T.marked = "keyword", D(I("form"), Ve, L)) : e == "keyword c" || e == "async" ? D(n ? V : B) : e == "(" ? D(I(")"), H, R(")"), L, i) : e == "operator" || e == "spread" ? D(n ? V : B) : e == "[" ? D(I("]"), Qe, L, i) : e == "{" ? ve(ge, "}", null, i) : e == "quasi" ? E(se, i) : e == "new" ? D(de(n)) : D();
|
|
1095
|
+
}
|
|
1096
|
+
function H(e) {
|
|
1097
|
+
return e.match(/[;\}\)\],]/) ? E() : E(B);
|
|
1098
|
+
}
|
|
1099
|
+
function U(e, t) {
|
|
1100
|
+
return e == "," ? D(H) : W(e, t, !1);
|
|
1101
|
+
}
|
|
1102
|
+
function W(e, t, n) {
|
|
1103
|
+
var r = n == 0 ? U : W, i = n == 0 ? B : V;
|
|
1104
|
+
if (e == "=>") return D(P, n ? ue : le, F);
|
|
1105
|
+
if (e == "operator") return /\+\+|--/.test(t) || c && t == "!" ? D(r) : c && t == "<" && T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? D(I(">"), K(q, ">"), L, r) : t == "?" ? D(B, R(":"), i) : D(i);
|
|
1106
|
+
if (e == "quasi") return E(se, r);
|
|
1107
|
+
if (e != ";") {
|
|
1108
|
+
if (e == "(") return ve(V, ")", "call", r);
|
|
1109
|
+
if (e == ".") return D(he, r);
|
|
1110
|
+
if (e == "[") return D(I("]"), H, R("]"), L, r);
|
|
1111
|
+
if (c && t == "as") return T.marked = "keyword", D(q, r);
|
|
1112
|
+
if (e == "regexp") return T.state.lastType = T.marked = "operator", T.stream.backUp(T.stream.pos - T.stream.start - 1), D(i);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
function se(e, t) {
|
|
1116
|
+
return e == "quasi" ? t.slice(t.length - 2) == "${" ? D(B, ce) : D(se) : E();
|
|
1117
|
+
}
|
|
1118
|
+
function ce(e) {
|
|
1119
|
+
if (e == "}") return T.marked = "string-2", T.state.tokenize = b, D(se);
|
|
1120
|
+
}
|
|
1121
|
+
function le(e) {
|
|
1122
|
+
return S(T.stream, T.state), E(e == "{" ? z : B);
|
|
1123
|
+
}
|
|
1124
|
+
function ue(e) {
|
|
1125
|
+
return S(T.stream, T.state), E(e == "{" ? z : V);
|
|
1126
|
+
}
|
|
1127
|
+
function de(e) {
|
|
1128
|
+
return function(t) {
|
|
1129
|
+
return t == "." ? D(e ? pe : fe) : t == "variable" && c ? D(Oe, e ? W : U) : E(e ? V : B);
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
function fe(e, t) {
|
|
1133
|
+
if (t == "target") return T.marked = "keyword", D(U);
|
|
1134
|
+
}
|
|
1135
|
+
function pe(e, t) {
|
|
1136
|
+
if (t == "target") return T.marked = "keyword", D(W);
|
|
1137
|
+
}
|
|
1138
|
+
function me(e) {
|
|
1139
|
+
return e == ":" ? D(L, z) : E(U, R(";"), L);
|
|
1140
|
+
}
|
|
1141
|
+
function he(e) {
|
|
1142
|
+
if (e == "variable") return T.marked = "property", D();
|
|
1143
|
+
}
|
|
1144
|
+
function ge(e, t) {
|
|
1145
|
+
if (e == "async") return T.marked = "property", D(ge);
|
|
1146
|
+
if (e == "variable" || T.style == "keyword") {
|
|
1147
|
+
if (T.marked = "property", t == "get" || t == "set") return D(_e);
|
|
1148
|
+
var n;
|
|
1149
|
+
return c && T.state.fatArrowAt == T.stream.start && (n = T.stream.match(/^\s*:\s*/, !1)) && (T.state.fatArrowAt = T.stream.pos + n[0].length), D(G);
|
|
1150
|
+
} else if (e == "number" || e == "string") return T.marked = a ? "property" : T.style + " property", D(G);
|
|
1151
|
+
else if (e == "jsonld-keyword") return D(G);
|
|
1152
|
+
else if (c && j(t)) return T.marked = "keyword", D(ge);
|
|
1153
|
+
else if (e == "[") return D(B, be, R("]"), G);
|
|
1154
|
+
else if (e == "spread") return D(V, G);
|
|
1155
|
+
else if (t == "*") return T.marked = "keyword", D(ge);
|
|
1156
|
+
else if (e == ":") return E(G);
|
|
1157
|
+
}
|
|
1158
|
+
function _e(e) {
|
|
1159
|
+
return e == "variable" ? (T.marked = "property", D(Z)) : E(G);
|
|
1160
|
+
}
|
|
1161
|
+
function G(e) {
|
|
1162
|
+
if (e == ":") return D(V);
|
|
1163
|
+
if (e == "(") return E(Z);
|
|
1164
|
+
}
|
|
1165
|
+
function K(e, t, n) {
|
|
1166
|
+
function r(i, a) {
|
|
1167
|
+
if (n ? n.indexOf(i) > -1 : i == ",") {
|
|
1168
|
+
var o = T.state.lexical;
|
|
1169
|
+
return o.info == "call" && (o.pos = (o.pos || 0) + 1), D(function(n, r) {
|
|
1170
|
+
return n == t || r == t ? E() : E(e);
|
|
1171
|
+
}, r);
|
|
1172
|
+
}
|
|
1173
|
+
return i == t || a == t ? D() : n && n.indexOf(";") > -1 ? E(e) : D(R(t));
|
|
1174
|
+
}
|
|
1175
|
+
return function(n, i) {
|
|
1176
|
+
return n == t || i == t ? D() : E(e, r);
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
function ve(e, t, n) {
|
|
1180
|
+
for (var r = 3; r < arguments.length; r++) T.cc.push(arguments[r]);
|
|
1181
|
+
return D(I(t, n), K(e, t), L);
|
|
1182
|
+
}
|
|
1183
|
+
function ye(e) {
|
|
1184
|
+
return e == "}" ? D() : E(z, ye);
|
|
1185
|
+
}
|
|
1186
|
+
function be(e, t) {
|
|
1187
|
+
if (c) {
|
|
1188
|
+
if (e == ":") return D(q);
|
|
1189
|
+
if (t == "?") return D(be);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
function xe(e, t) {
|
|
1193
|
+
if (c && (e == ":" || t == "in")) return D(q);
|
|
1194
|
+
}
|
|
1195
|
+
function Se(e) {
|
|
1196
|
+
if (c && e == ":") return T.stream.match(/^\s*\w+\s+is\b/, !1) ? D(B, Ce, q) : D(q);
|
|
1197
|
+
}
|
|
1198
|
+
function Ce(e, t) {
|
|
1199
|
+
if (t == "is") return T.marked = "keyword", D();
|
|
1200
|
+
}
|
|
1201
|
+
function q(e, t) {
|
|
1202
|
+
if (t == "keyof" || t == "typeof" || t == "infer" || t == "readonly") return T.marked = "keyword", D(t == "typeof" ? V : q);
|
|
1203
|
+
if (e == "variable" || t == "void") return T.marked = "type", D(J);
|
|
1204
|
+
if (t == "|" || t == "&") return D(q);
|
|
1205
|
+
if (e == "string" || e == "number" || e == "atom") return D(J);
|
|
1206
|
+
if (e == "[") return D(I("]"), K(q, "]", ","), L, J);
|
|
1207
|
+
if (e == "{") return D(I("}"), Te, L, J);
|
|
1208
|
+
if (e == "(") return D(K(De, ")"), we, J);
|
|
1209
|
+
if (e == "<") return D(K(q, ">"), q);
|
|
1210
|
+
}
|
|
1211
|
+
function we(e) {
|
|
1212
|
+
if (e == "=>") return D(q);
|
|
1213
|
+
}
|
|
1214
|
+
function Te(e) {
|
|
1215
|
+
return e.match(/[\}\)\]]/) ? D() : e == "," || e == ";" ? D(Te) : E(Ee, Te);
|
|
1216
|
+
}
|
|
1217
|
+
function Ee(e, t) {
|
|
1218
|
+
if (e == "variable" || T.style == "keyword") return T.marked = "property", D(Ee);
|
|
1219
|
+
if (t == "?" || e == "number" || e == "string") return D(Ee);
|
|
1220
|
+
if (e == ":") return D(q);
|
|
1221
|
+
if (e == "[") return D(R("variable"), xe, R("]"), Ee);
|
|
1222
|
+
if (e == "(") return E(ze, Ee);
|
|
1223
|
+
if (!e.match(/[;\}\)\],]/)) return D();
|
|
1224
|
+
}
|
|
1225
|
+
function De(e, t) {
|
|
1226
|
+
return e == "variable" && T.stream.match(/^\s*[?:]/, !1) || t == "?" ? D(De) : e == ":" ? D(q) : e == "spread" ? D(De) : E(q);
|
|
1227
|
+
}
|
|
1228
|
+
function J(e, t) {
|
|
1229
|
+
if (t == "<") return D(I(">"), K(q, ">"), L, J);
|
|
1230
|
+
if (t == "|" || e == "." || t == "&") return D(q);
|
|
1231
|
+
if (e == "[") return D(q, R("]"), J);
|
|
1232
|
+
if (t == "extends" || t == "implements") return T.marked = "keyword", D(q);
|
|
1233
|
+
if (t == "?") return D(q, R(":"), q);
|
|
1234
|
+
}
|
|
1235
|
+
function Oe(e, t) {
|
|
1236
|
+
if (t == "<") return D(I(">"), K(q, ">"), L, J);
|
|
1237
|
+
}
|
|
1238
|
+
function ke() {
|
|
1239
|
+
return E(q, Ae);
|
|
1240
|
+
}
|
|
1241
|
+
function Ae(e, t) {
|
|
1242
|
+
if (t == "=") return D(q);
|
|
1243
|
+
}
|
|
1244
|
+
function je(e, t) {
|
|
1245
|
+
return t == "enum" ? (T.marked = "keyword", D($e)) : E(Y, be, X, Pe);
|
|
1246
|
+
}
|
|
1247
|
+
function Y(e, t) {
|
|
1248
|
+
if (c && j(t)) return T.marked = "keyword", D(Y);
|
|
1249
|
+
if (e == "variable") return k(t), D();
|
|
1250
|
+
if (e == "spread") return D(Y);
|
|
1251
|
+
if (e == "[") return ve(Ne, "]");
|
|
1252
|
+
if (e == "{") return ve(Me, "}");
|
|
1253
|
+
}
|
|
1254
|
+
function Me(e, t) {
|
|
1255
|
+
return e == "variable" && !T.stream.match(/^\s*:/, !1) ? (k(t), D(X)) : (e == "variable" && (T.marked = "property"), e == "spread" ? D(Y) : e == "}" ? E() : e == "[" ? D(B, R("]"), R(":"), Me) : D(R(":"), Y, X));
|
|
1256
|
+
}
|
|
1257
|
+
function Ne() {
|
|
1258
|
+
return E(Y, X);
|
|
1259
|
+
}
|
|
1260
|
+
function X(e, t) {
|
|
1261
|
+
if (t == "=") return D(V);
|
|
1262
|
+
}
|
|
1263
|
+
function Pe(e) {
|
|
1264
|
+
if (e == ",") return D(je);
|
|
1265
|
+
}
|
|
1266
|
+
function Fe(e, t) {
|
|
1267
|
+
if (e == "keyword b" && t == "else") return D(I("form", "else"), z, L);
|
|
1268
|
+
}
|
|
1269
|
+
function Ie(e, t) {
|
|
1270
|
+
if (t == "await") return D(Ie);
|
|
1271
|
+
if (e == "(") return D(I(")"), Le, L);
|
|
1272
|
+
}
|
|
1273
|
+
function Le(e) {
|
|
1274
|
+
return e == "var" ? D(je, Re) : e == "variable" ? D(Re) : E(Re);
|
|
1275
|
+
}
|
|
1276
|
+
function Re(e, t) {
|
|
1277
|
+
return e == ")" ? D() : e == ";" ? D(Re) : t == "in" || t == "of" ? (T.marked = "keyword", D(B, Re)) : E(B, Re);
|
|
1278
|
+
}
|
|
1279
|
+
function Z(e, t) {
|
|
1280
|
+
if (t == "*") return T.marked = "keyword", D(Z);
|
|
1281
|
+
if (e == "variable") return k(t), D(Z);
|
|
1282
|
+
if (e == "(") return D(P, I(")"), K(Q, ")"), L, Se, z, F);
|
|
1283
|
+
if (c && t == "<") return D(I(">"), K(ke, ">"), L, Z);
|
|
1284
|
+
}
|
|
1285
|
+
function ze(e, t) {
|
|
1286
|
+
if (t == "*") return T.marked = "keyword", D(ze);
|
|
1287
|
+
if (e == "variable") return k(t), D(ze);
|
|
1288
|
+
if (e == "(") return D(P, I(")"), K(Q, ")"), L, Se, F);
|
|
1289
|
+
if (c && t == "<") return D(I(">"), K(ke, ">"), L, ze);
|
|
1290
|
+
}
|
|
1291
|
+
function Be(e, t) {
|
|
1292
|
+
if (e == "keyword" || e == "variable") return T.marked = "type", D(Be);
|
|
1293
|
+
if (t == "<") return D(I(">"), K(ke, ">"), L);
|
|
1294
|
+
}
|
|
1295
|
+
function Q(e, t) {
|
|
1296
|
+
return t == "@" && D(B, Q), e == "spread" ? D(Q) : c && j(t) ? (T.marked = "keyword", D(Q)) : c && e == "this" ? D(be, X) : E(Y, be, X);
|
|
1297
|
+
}
|
|
1298
|
+
function Ve(e, t) {
|
|
1299
|
+
return e == "variable" ? He(e, t) : Ue(e, t);
|
|
1300
|
+
}
|
|
1301
|
+
function He(e, t) {
|
|
1302
|
+
if (e == "variable") return k(t), D(Ue);
|
|
1303
|
+
}
|
|
1304
|
+
function Ue(e, t) {
|
|
1305
|
+
if (t == "<") return D(I(">"), K(ke, ">"), L, Ue);
|
|
1306
|
+
if (t == "extends" || t == "implements" || c && e == ",") return t == "implements" && (T.marked = "keyword"), D(c ? q : B, Ue);
|
|
1307
|
+
if (e == "{") return D(I("}"), $, L);
|
|
1308
|
+
}
|
|
1309
|
+
function $(e, t) {
|
|
1310
|
+
if (e == "async" || e == "variable" && (t == "static" || t == "get" || t == "set" || c && j(t)) && T.stream.match(/^\s+[\w$\xa1-\uffff]/, !1)) return T.marked = "keyword", D($);
|
|
1311
|
+
if (e == "variable" || T.style == "keyword") return T.marked = "property", D(We, $);
|
|
1312
|
+
if (e == "number" || e == "string") return D(We, $);
|
|
1313
|
+
if (e == "[") return D(B, be, R("]"), We, $);
|
|
1314
|
+
if (t == "*") return T.marked = "keyword", D($);
|
|
1315
|
+
if (c && e == "(") return E(ze, $);
|
|
1316
|
+
if (e == ";" || e == ",") return D($);
|
|
1317
|
+
if (e == "}") return D();
|
|
1318
|
+
if (t == "@") return D(B, $);
|
|
1319
|
+
}
|
|
1320
|
+
function We(e, t) {
|
|
1321
|
+
if (t == "?") return D(We);
|
|
1322
|
+
if (e == ":") return D(q, X);
|
|
1323
|
+
if (t == "=") return D(V);
|
|
1324
|
+
var n = T.state.lexical.prev;
|
|
1325
|
+
return E(n && n.info == "interface" ? ze : Z);
|
|
1326
|
+
}
|
|
1327
|
+
function Ge(e, t) {
|
|
1328
|
+
return t == "*" ? (T.marked = "keyword", D(Ze, R(";"))) : t == "default" ? (T.marked = "keyword", D(B, R(";"))) : e == "{" ? D(K(Ke, "}"), Ze, R(";")) : E(z);
|
|
1329
|
+
}
|
|
1330
|
+
function Ke(e, t) {
|
|
1331
|
+
if (t == "as") return T.marked = "keyword", D(R("variable"));
|
|
1332
|
+
if (e == "variable") return E(V, Ke);
|
|
1333
|
+
}
|
|
1334
|
+
function qe(e) {
|
|
1335
|
+
return e == "string" ? D() : e == "(" ? E(B) : e == "." ? E(U) : E(Je, Ye, Ze);
|
|
1336
|
+
}
|
|
1337
|
+
function Je(e, t) {
|
|
1338
|
+
return e == "{" ? ve(Je, "}") : (e == "variable" && k(t), t == "*" && (T.marked = "keyword"), D(Xe));
|
|
1339
|
+
}
|
|
1340
|
+
function Ye(e) {
|
|
1341
|
+
if (e == ",") return D(Je, Ye);
|
|
1342
|
+
}
|
|
1343
|
+
function Xe(e, t) {
|
|
1344
|
+
if (t == "as") return T.marked = "keyword", D(Je);
|
|
1345
|
+
}
|
|
1346
|
+
function Ze(e, t) {
|
|
1347
|
+
if (t == "from") return T.marked = "keyword", D(B);
|
|
1348
|
+
}
|
|
1349
|
+
function Qe(e) {
|
|
1350
|
+
return e == "]" ? D() : E(K(V, "]"));
|
|
1351
|
+
}
|
|
1352
|
+
function $e() {
|
|
1353
|
+
return E(I("form"), Y, R("{"), I("}"), K(et, "}"), L, L);
|
|
1354
|
+
}
|
|
1355
|
+
function et() {
|
|
1356
|
+
return E(Y, X);
|
|
1357
|
+
}
|
|
1358
|
+
function tt(e, t) {
|
|
1359
|
+
return e.lastType == "operator" || e.lastType == "," || d.test(t.charAt(0)) || /[,.]/.test(t.charAt(0));
|
|
1360
|
+
}
|
|
1361
|
+
function nt(e, t, n) {
|
|
1362
|
+
return t.tokenize == _ && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType) || t.lastType == "quasi" && /\{\s*$/.test(e.string.slice(0, e.pos - (n || 0)));
|
|
1363
|
+
}
|
|
1364
|
+
return {
|
|
1365
|
+
startState: function(e) {
|
|
1366
|
+
var t = {
|
|
1367
|
+
tokenize: _,
|
|
1368
|
+
lastType: "sof",
|
|
1369
|
+
cc: [],
|
|
1370
|
+
lexical: new C((e || 0) - r, 0, "block", !1),
|
|
1371
|
+
localVars: n.localVars,
|
|
1372
|
+
context: n.localVars && new M(null, null, !1),
|
|
1373
|
+
indented: e || 0
|
|
1374
|
+
};
|
|
1375
|
+
return n.globalVars && typeof n.globalVars == "object" && (t.globalVars = n.globalVars), t;
|
|
1376
|
+
},
|
|
1377
|
+
token: function(e, t) {
|
|
1378
|
+
if (e.sol() && (t.lexical.hasOwnProperty("align") || (t.lexical.align = !1), t.indented = e.indentation(), S(e, t)), t.tokenize != y && e.eatSpace()) return null;
|
|
1379
|
+
var n = t.tokenize(e, t);
|
|
1380
|
+
return m == "comment" ? n : (t.lastType = m == "operator" && (h == "++" || h == "--") ? "incdec" : m, w(t, n, m, h, e));
|
|
1381
|
+
},
|
|
1382
|
+
indent: function(t, a) {
|
|
1383
|
+
if (t.tokenize == y || t.tokenize == b) return e.Pass;
|
|
1384
|
+
if (t.tokenize != _) return 0;
|
|
1385
|
+
var o = a && a.charAt(0), s = t.lexical, c;
|
|
1386
|
+
if (!/^\s*else\b/.test(a)) for (var l = t.cc.length - 1; l >= 0; --l) {
|
|
1387
|
+
var u = t.cc[l];
|
|
1388
|
+
if (u == L) s = s.prev;
|
|
1389
|
+
else if (u != Fe && u != F) break;
|
|
1390
|
+
}
|
|
1391
|
+
for (; (s.type == "stat" || s.type == "form") && (o == "}" || (c = t.cc[t.cc.length - 1]) && (c == U || c == W) && !/^[,\.=+\-*:?[\(]/.test(a));) s = s.prev;
|
|
1392
|
+
i && s.type == ")" && s.prev.type == "stat" && (s = s.prev);
|
|
1393
|
+
var d = s.type, f = o == d;
|
|
1394
|
+
return d == "vardef" ? s.indented + (t.lastType == "operator" || t.lastType == "," ? s.info.length + 1 : 0) : d == "form" && o == "{" ? s.indented : d == "form" ? s.indented + r : d == "stat" ? s.indented + (tt(t, a) ? i || r : 0) : s.info == "switch" && !f && n.doubleIndentSwitch != 0 ? s.indented + (/^(?:case|default)\b/.test(a) ? r : 2 * r) : s.align ? s.column + +!f : s.indented + (f ? 0 : r);
|
|
1395
|
+
},
|
|
1396
|
+
electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
|
1397
|
+
blockCommentStart: o ? null : "/*",
|
|
1398
|
+
blockCommentEnd: o ? null : "*/",
|
|
1399
|
+
blockCommentContinue: o ? null : " * ",
|
|
1400
|
+
lineComment: o ? null : "//",
|
|
1401
|
+
fold: "brace",
|
|
1402
|
+
closeBrackets: "()[]{}''\"\"``",
|
|
1403
|
+
helperType: o ? "json" : "javascript",
|
|
1404
|
+
jsonldMode: a,
|
|
1405
|
+
jsonMode: o,
|
|
1406
|
+
expressionAllowed: nt,
|
|
1407
|
+
skipExpression: function(e) {
|
|
1408
|
+
var t = e.cc[e.cc.length - 1];
|
|
1409
|
+
(t == B || t == V) && e.cc.pop();
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
}), e.registerHelper("wordChars", "javascript", /[\w$]/), e.defineMIME("text/javascript", "javascript"), e.defineMIME("text/ecmascript", "javascript"), e.defineMIME("application/javascript", "javascript"), e.defineMIME("application/x-javascript", "javascript"), e.defineMIME("application/ecmascript", "javascript"), e.defineMIME("application/json", {
|
|
1413
|
+
name: "javascript",
|
|
1414
|
+
json: !0
|
|
1415
|
+
}), e.defineMIME("application/x-json", {
|
|
1416
|
+
name: "javascript",
|
|
1417
|
+
json: !0
|
|
1418
|
+
}), e.defineMIME("application/manifest+json", {
|
|
1419
|
+
name: "javascript",
|
|
1420
|
+
json: !0
|
|
1421
|
+
}), e.defineMIME("application/ld+json", {
|
|
1422
|
+
name: "javascript",
|
|
1423
|
+
jsonld: !0
|
|
1424
|
+
}), e.defineMIME("text/typescript", {
|
|
1425
|
+
name: "javascript",
|
|
1426
|
+
typescript: !0
|
|
1427
|
+
}), e.defineMIME("application/typescript", {
|
|
1428
|
+
name: "javascript",
|
|
1429
|
+
typescript: !0
|
|
1430
|
+
});
|
|
1431
|
+
});
|
|
1432
|
+
//#endregion
|
|
1433
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts
|
|
1434
|
+
var m = class {
|
|
1435
|
+
indentString;
|
|
1436
|
+
#e = 0;
|
|
1437
|
+
#t = [];
|
|
1438
|
+
#n = 0;
|
|
1439
|
+
#r = 0;
|
|
1440
|
+
#i = 0;
|
|
1441
|
+
#a = 0;
|
|
1442
|
+
#o = !0;
|
|
1443
|
+
#s = !1;
|
|
1444
|
+
#c = 0;
|
|
1445
|
+
#l = /* @__PURE__ */ new Map();
|
|
1446
|
+
#u = /[$\u200C\u200D\p{ID_Continue}]/u;
|
|
1447
|
+
mapping = {
|
|
1448
|
+
original: [0],
|
|
1449
|
+
formatted: [0]
|
|
1450
|
+
};
|
|
1451
|
+
constructor(e) {
|
|
1452
|
+
this.indentString = e;
|
|
1453
|
+
}
|
|
1454
|
+
setEnforceSpaceBetweenWords(e) {
|
|
1455
|
+
let t = this.#o;
|
|
1456
|
+
return this.#o = e, t;
|
|
1457
|
+
}
|
|
1458
|
+
addToken(e, t) {
|
|
1459
|
+
if (this.#o && !this.#c && !this.#s) {
|
|
1460
|
+
let t = this.#t.at(-1)?.at(-1) ?? "";
|
|
1461
|
+
this.#u.test(t) && this.#u.test(e) && this.addSoftSpace();
|
|
1462
|
+
}
|
|
1463
|
+
this.#d(), this.#m(t), this.#p(e);
|
|
1464
|
+
}
|
|
1465
|
+
addSoftSpace() {
|
|
1466
|
+
this.#c || (this.#s = !0);
|
|
1467
|
+
}
|
|
1468
|
+
addHardSpace() {
|
|
1469
|
+
this.#s = !1, ++this.#c;
|
|
1470
|
+
}
|
|
1471
|
+
addNewLine(e) {
|
|
1472
|
+
this.#n && (e ? ++this.#a : this.#a = this.#a || 1);
|
|
1473
|
+
}
|
|
1474
|
+
increaseNestingLevel() {
|
|
1475
|
+
this.#i += 1;
|
|
1476
|
+
}
|
|
1477
|
+
decreaseNestingLevel() {
|
|
1478
|
+
this.#i > 0 && --this.#i;
|
|
1479
|
+
}
|
|
1480
|
+
content() {
|
|
1481
|
+
return this.#t.join("") + (this.#a ? "\n" : "");
|
|
1482
|
+
}
|
|
1483
|
+
#d() {
|
|
1484
|
+
if (this.#a) {
|
|
1485
|
+
for (let e = 0; e < this.#a; ++e) this.#p("\n");
|
|
1486
|
+
this.#p(this.#f());
|
|
1487
|
+
} else this.#s && this.#p(" ");
|
|
1488
|
+
if (this.#c) for (let e = 0; e < this.#c; ++e) this.#p(" ");
|
|
1489
|
+
this.#a = 0, this.#s = !1, this.#c = 0;
|
|
1490
|
+
}
|
|
1491
|
+
#f() {
|
|
1492
|
+
let e = this.#l.get(this.#i);
|
|
1493
|
+
if (e) return e;
|
|
1494
|
+
let t = "";
|
|
1495
|
+
for (let e = 0; e < this.#i; ++e) t += this.indentString;
|
|
1496
|
+
return this.#i <= 20 && this.#l.set(this.#i, t), t;
|
|
1497
|
+
}
|
|
1498
|
+
#p(e) {
|
|
1499
|
+
this.#t.push(e), this.#n += e.length;
|
|
1500
|
+
}
|
|
1501
|
+
#m(e) {
|
|
1502
|
+
e - this.#e !== this.#n - this.#r && (this.mapping.original.push(e), this.#e = e, this.mapping.formatted.push(this.#n), this.#r = this.#n);
|
|
1503
|
+
}
|
|
1504
|
+
}, h = class {
|
|
1505
|
+
#e;
|
|
1506
|
+
#t;
|
|
1507
|
+
#n;
|
|
1508
|
+
#r;
|
|
1509
|
+
#i = 0;
|
|
1510
|
+
constructor(e, t) {
|
|
1511
|
+
this.#r = t;
|
|
1512
|
+
let n = i(e);
|
|
1513
|
+
this.#e = new s(n), this.#t = 0, this.#n = 0;
|
|
1514
|
+
}
|
|
1515
|
+
static punctuator(e, t) {
|
|
1516
|
+
return e.type !== f.num && e.type !== f.regexp && e.type !== f.string && e.type !== f.name && !e.type.keyword && (!t || e.type.label.length === 1 && t.indexOf(e.type.label) !== -1);
|
|
1517
|
+
}
|
|
1518
|
+
static keyword(e, t) {
|
|
1519
|
+
return !!e.type.keyword && e.type !== f._true && e.type !== f._false && e.type !== f._null && (!t || e.type.keyword === t);
|
|
1520
|
+
}
|
|
1521
|
+
static identifier(e, t) {
|
|
1522
|
+
return e.type === f.name && (!t || e.value === t);
|
|
1523
|
+
}
|
|
1524
|
+
static arrowIdentifier(e, t) {
|
|
1525
|
+
return e.type === f.arrow && (!t || e.type.label === t);
|
|
1526
|
+
}
|
|
1527
|
+
static lineComment(e) {
|
|
1528
|
+
return e.type === "Line";
|
|
1529
|
+
}
|
|
1530
|
+
static blockComment(e) {
|
|
1531
|
+
return e.type === "Block";
|
|
1532
|
+
}
|
|
1533
|
+
nextToken() {
|
|
1534
|
+
let e = this.#r[this.#i++];
|
|
1535
|
+
return !e || e.type === f.eof ? null : (this.#e.advance(e.start), this.#t = this.#e.lineNumber(), this.#e.advance(e.end), this.#n = this.#e.lineNumber(), e);
|
|
1536
|
+
}
|
|
1537
|
+
peekToken() {
|
|
1538
|
+
let e = this.#r[this.#i];
|
|
1539
|
+
return !e || e.type === f.eof ? null : e;
|
|
1540
|
+
}
|
|
1541
|
+
tokenLineStart() {
|
|
1542
|
+
return this.#t;
|
|
1543
|
+
}
|
|
1544
|
+
tokenLineEnd() {
|
|
1545
|
+
return this.#n;
|
|
1546
|
+
}
|
|
1547
|
+
}, g = "latest", _ = class {
|
|
1548
|
+
#e;
|
|
1549
|
+
#t;
|
|
1550
|
+
constructor(e, t) {
|
|
1551
|
+
this.#e = e, this.#t = t;
|
|
1552
|
+
}
|
|
1553
|
+
walk(e) {
|
|
1554
|
+
this.#n(e, null);
|
|
1555
|
+
}
|
|
1556
|
+
#n(e, t) {
|
|
1557
|
+
if (!e) return;
|
|
1558
|
+
e.parent = t, this.#e.call(null, e);
|
|
1559
|
+
let n = v[e.type];
|
|
1560
|
+
if (!n) {
|
|
1561
|
+
console.error("Walk order not defined for " + e.type);
|
|
1562
|
+
return;
|
|
1563
|
+
}
|
|
1564
|
+
if (e.type === "TemplateLiteral") {
|
|
1565
|
+
let t = e, n = t.expressions.length;
|
|
1566
|
+
for (let e = 0; e < n; ++e) this.#n(t.quasis[e], t), this.#n(t.expressions[e], t);
|
|
1567
|
+
this.#n(t.quasis[n], t);
|
|
1568
|
+
} else for (let t = 0; t < n.length; ++t) {
|
|
1569
|
+
let r = e[n[t]];
|
|
1570
|
+
Array.isArray(r) ? this.#r(r, e) : this.#n(r, e);
|
|
1571
|
+
}
|
|
1572
|
+
this.#t.call(null, e);
|
|
1573
|
+
}
|
|
1574
|
+
#r(e, t) {
|
|
1575
|
+
for (let n = 0; n < e.length; ++n) this.#n(e[n], t);
|
|
1576
|
+
}
|
|
1577
|
+
}, v = {
|
|
1578
|
+
AwaitExpression: ["argument"],
|
|
1579
|
+
ArrayExpression: ["elements"],
|
|
1580
|
+
ArrayPattern: ["elements"],
|
|
1581
|
+
ArrowFunctionExpression: ["params", "body"],
|
|
1582
|
+
AssignmentExpression: ["left", "right"],
|
|
1583
|
+
AssignmentPattern: ["left", "right"],
|
|
1584
|
+
BinaryExpression: ["left", "right"],
|
|
1585
|
+
BlockStatement: ["body"],
|
|
1586
|
+
BreakStatement: ["label"],
|
|
1587
|
+
CallExpression: ["callee", "arguments"],
|
|
1588
|
+
CatchClause: ["param", "body"],
|
|
1589
|
+
ClassBody: ["body"],
|
|
1590
|
+
ClassDeclaration: [
|
|
1591
|
+
"id",
|
|
1592
|
+
"superClass",
|
|
1593
|
+
"body"
|
|
1594
|
+
],
|
|
1595
|
+
ClassExpression: [
|
|
1596
|
+
"id",
|
|
1597
|
+
"superClass",
|
|
1598
|
+
"body"
|
|
1599
|
+
],
|
|
1600
|
+
ChainExpression: ["expression"],
|
|
1601
|
+
ConditionalExpression: [
|
|
1602
|
+
"test",
|
|
1603
|
+
"consequent",
|
|
1604
|
+
"alternate"
|
|
1605
|
+
],
|
|
1606
|
+
ContinueStatement: ["label"],
|
|
1607
|
+
DebuggerStatement: [],
|
|
1608
|
+
DoWhileStatement: ["body", "test"],
|
|
1609
|
+
EmptyStatement: [],
|
|
1610
|
+
ExpressionStatement: ["expression"],
|
|
1611
|
+
ForInStatement: [
|
|
1612
|
+
"left",
|
|
1613
|
+
"right",
|
|
1614
|
+
"body"
|
|
1615
|
+
],
|
|
1616
|
+
ForOfStatement: [
|
|
1617
|
+
"left",
|
|
1618
|
+
"right",
|
|
1619
|
+
"body"
|
|
1620
|
+
],
|
|
1621
|
+
ForStatement: [
|
|
1622
|
+
"init",
|
|
1623
|
+
"test",
|
|
1624
|
+
"update",
|
|
1625
|
+
"body"
|
|
1626
|
+
],
|
|
1627
|
+
FunctionDeclaration: [
|
|
1628
|
+
"id",
|
|
1629
|
+
"params",
|
|
1630
|
+
"body"
|
|
1631
|
+
],
|
|
1632
|
+
FunctionExpression: [
|
|
1633
|
+
"id",
|
|
1634
|
+
"params",
|
|
1635
|
+
"body"
|
|
1636
|
+
],
|
|
1637
|
+
Identifier: [],
|
|
1638
|
+
ImportDeclaration: [
|
|
1639
|
+
"specifiers",
|
|
1640
|
+
"source",
|
|
1641
|
+
"attributes"
|
|
1642
|
+
],
|
|
1643
|
+
ImportAttribute: ["key", "value"],
|
|
1644
|
+
ImportDefaultSpecifier: ["local"],
|
|
1645
|
+
ImportNamespaceSpecifier: ["local"],
|
|
1646
|
+
ImportSpecifier: ["imported", "local"],
|
|
1647
|
+
ImportExpression: ["source"],
|
|
1648
|
+
ExportAllDeclaration: ["source"],
|
|
1649
|
+
ExportDefaultDeclaration: ["declaration"],
|
|
1650
|
+
ExportNamedDeclaration: [
|
|
1651
|
+
"specifiers",
|
|
1652
|
+
"source",
|
|
1653
|
+
"declaration"
|
|
1654
|
+
],
|
|
1655
|
+
ExportSpecifier: ["exported", "local"],
|
|
1656
|
+
IfStatement: [
|
|
1657
|
+
"test",
|
|
1658
|
+
"consequent",
|
|
1659
|
+
"alternate"
|
|
1660
|
+
],
|
|
1661
|
+
LabeledStatement: ["label", "body"],
|
|
1662
|
+
Literal: [],
|
|
1663
|
+
LogicalExpression: ["left", "right"],
|
|
1664
|
+
MemberExpression: ["object", "property"],
|
|
1665
|
+
MetaProperty: ["meta", "property"],
|
|
1666
|
+
MethodDefinition: ["key", "value"],
|
|
1667
|
+
NewExpression: ["callee", "arguments"],
|
|
1668
|
+
ObjectExpression: ["properties"],
|
|
1669
|
+
ObjectPattern: ["properties"],
|
|
1670
|
+
ParenthesizedExpression: ["expression"],
|
|
1671
|
+
PrivateIdentifier: [],
|
|
1672
|
+
PropertyDefinition: ["key", "value"],
|
|
1673
|
+
Program: ["body"],
|
|
1674
|
+
Property: ["key", "value"],
|
|
1675
|
+
RestElement: ["argument"],
|
|
1676
|
+
ReturnStatement: ["argument"],
|
|
1677
|
+
SequenceExpression: ["expressions"],
|
|
1678
|
+
SpreadElement: ["argument"],
|
|
1679
|
+
StaticBlock: ["body"],
|
|
1680
|
+
Super: [],
|
|
1681
|
+
SwitchCase: ["test", "consequent"],
|
|
1682
|
+
SwitchStatement: ["discriminant", "cases"],
|
|
1683
|
+
TaggedTemplateExpression: ["tag", "quasi"],
|
|
1684
|
+
TemplateElement: [],
|
|
1685
|
+
TemplateLiteral: ["quasis", "expressions"],
|
|
1686
|
+
ThisExpression: [],
|
|
1687
|
+
ThrowStatement: ["argument"],
|
|
1688
|
+
TryStatement: [
|
|
1689
|
+
"block",
|
|
1690
|
+
"handler",
|
|
1691
|
+
"finalizer"
|
|
1692
|
+
],
|
|
1693
|
+
UnaryExpression: ["argument"],
|
|
1694
|
+
UpdateExpression: ["argument"],
|
|
1695
|
+
VariableDeclaration: ["declarations"],
|
|
1696
|
+
VariableDeclarator: ["id", "init"],
|
|
1697
|
+
WhileStatement: ["test", "body"],
|
|
1698
|
+
WithStatement: ["object", "body"],
|
|
1699
|
+
YieldExpression: ["argument"]
|
|
1700
|
+
}, y = class {
|
|
1701
|
+
#e;
|
|
1702
|
+
#t;
|
|
1703
|
+
#n;
|
|
1704
|
+
#r;
|
|
1705
|
+
#i;
|
|
1706
|
+
#a;
|
|
1707
|
+
constructor(e) {
|
|
1708
|
+
this.#e = e;
|
|
1709
|
+
}
|
|
1710
|
+
format(e, t, n, r) {
|
|
1711
|
+
this.#r = n, this.#a = r, this.#n = e.substring(this.#r, this.#a), this.#i = 0;
|
|
1712
|
+
let i = [], a = p(this.#n, {
|
|
1713
|
+
ranges: !1,
|
|
1714
|
+
preserveParens: !0,
|
|
1715
|
+
allowAwaitOutsideFunction: !0,
|
|
1716
|
+
allowImportExportEverywhere: !0,
|
|
1717
|
+
ecmaVersion: g,
|
|
1718
|
+
allowHashBang: !0,
|
|
1719
|
+
onToken: i,
|
|
1720
|
+
onComment: i
|
|
1721
|
+
});
|
|
1722
|
+
this.#t = new h(this.#n, i), new _(this.#s.bind(this), this.#c.bind(this)).walk(a);
|
|
1723
|
+
}
|
|
1724
|
+
#o(e, t) {
|
|
1725
|
+
for (let n = 0; n < t.length; ++n) t[n] === "s" ? this.#e.addSoftSpace() : t[n] === "S" ? this.#e.addHardSpace() : t[n] === "n" ? this.#e.addNewLine() : t[n] === ">" ? this.#e.increaseNestingLevel() : t[n] === "<" ? this.#e.decreaseNestingLevel() : t[n] === "t" && (this.#t.tokenLineStart() - this.#i > 1 && this.#e.addNewLine(!0), this.#i = this.#t.tokenLineEnd(), e && this.#e.addToken(this.#n.substring(e.start, e.end), this.#r + e.start));
|
|
1726
|
+
}
|
|
1727
|
+
#s(e) {
|
|
1728
|
+
if (!e.parent) return;
|
|
1729
|
+
e.type === "TemplateLiteral" && this.#e.setEnforceSpaceBetweenWords(!1);
|
|
1730
|
+
let t;
|
|
1731
|
+
for (; (t = this.#t.peekToken()) && t.start < e.start;) {
|
|
1732
|
+
let t = this.#t.nextToken(), n = this.#u(e.parent, t);
|
|
1733
|
+
this.#o(t, n);
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
#c(e) {
|
|
1737
|
+
let t = this.#e.setEnforceSpaceBetweenWords(e.type !== "TemplateElement"), n;
|
|
1738
|
+
for (; (n = this.#t.peekToken()) && n.start < e.end;) {
|
|
1739
|
+
let t = this.#t.nextToken(), n = this.#u(e, t);
|
|
1740
|
+
this.#o(t, n);
|
|
1741
|
+
}
|
|
1742
|
+
this.#o(null, this.#d(e)), this.#e.setEnforceSpaceBetweenWords(t || e.type === "TemplateLiteral");
|
|
1743
|
+
}
|
|
1744
|
+
#l(e) {
|
|
1745
|
+
let t = e.parent;
|
|
1746
|
+
if (!t) return !1;
|
|
1747
|
+
if (t.type === "ForStatement") {
|
|
1748
|
+
let n = t;
|
|
1749
|
+
return e === n.init || e === n.test || e === n.update;
|
|
1750
|
+
}
|
|
1751
|
+
if (t.type === "ForInStatement" || t.type === "ForOfStatement") {
|
|
1752
|
+
let n = t;
|
|
1753
|
+
return e === n.left || e === n.right;
|
|
1754
|
+
}
|
|
1755
|
+
return !1;
|
|
1756
|
+
}
|
|
1757
|
+
#u(e, t) {
|
|
1758
|
+
let n = h;
|
|
1759
|
+
if (n.lineComment(t) || n.blockComment(t)) return "tn";
|
|
1760
|
+
let r = t, i = e.type;
|
|
1761
|
+
if (i === "ContinueStatement" || i === "BreakStatement") return e.label && n.keyword(r) ? "ts" : "t";
|
|
1762
|
+
if (i === "Identifier" || i === "PrivateIdentifier") return "t";
|
|
1763
|
+
if (i === "ReturnStatement" || i === "AwaitExpression") return n.punctuator(r, ";") ? "t" : e.argument ? "ts" : "t";
|
|
1764
|
+
if (i === "Property" || i === "ImportAttribute") return n.punctuator(r, ":") ? "ts" : "t";
|
|
1765
|
+
if (i === "ArrayExpression") return n.punctuator(r, ",") ? "ts" : "t";
|
|
1766
|
+
if (i === "LabeledStatement") {
|
|
1767
|
+
if (n.punctuator(r, ":")) return "ts";
|
|
1768
|
+
} else if (i === "LogicalExpression" || i === "AssignmentExpression" || i === "BinaryExpression") {
|
|
1769
|
+
if (n.punctuator(r) && !n.punctuator(r, "()")) return "sts";
|
|
1770
|
+
} else if (i === "ConditionalExpression") {
|
|
1771
|
+
if (n.punctuator(r, "?:")) return "sts";
|
|
1772
|
+
} else if (i === "VariableDeclarator") {
|
|
1773
|
+
if (n.punctuator(r, "=")) return "sts";
|
|
1774
|
+
} else if (i === "ObjectPattern") {
|
|
1775
|
+
if (e.parent?.type === "VariableDeclarator" && n.punctuator(r, "{")) return "st";
|
|
1776
|
+
if (n.punctuator(r, ",")) return "ts";
|
|
1777
|
+
} else if (i === "FunctionDeclaration") {
|
|
1778
|
+
if (n.punctuator(r, ",)")) return "ts";
|
|
1779
|
+
} else if (i === "FunctionExpression") {
|
|
1780
|
+
if (n.punctuator(r, ",)")) return "ts";
|
|
1781
|
+
if (n.keyword(r, "function")) return e.id ? "ts" : "t";
|
|
1782
|
+
} else if (i === "ArrowFunctionExpression") {
|
|
1783
|
+
if (n.punctuator(r, ",)")) return "ts";
|
|
1784
|
+
if (n.punctuator(r, "(")) return "st";
|
|
1785
|
+
if (n.arrowIdentifier(r, "=>")) return "sts";
|
|
1786
|
+
} else if (i === "WithStatement") {
|
|
1787
|
+
if (n.punctuator(r, ")")) return e.body?.type === "BlockStatement" ? "ts" : "tn>";
|
|
1788
|
+
} else if (i === "SwitchStatement") {
|
|
1789
|
+
if (n.punctuator(r, "{")) return "tn>";
|
|
1790
|
+
if (n.punctuator(r, "}")) return "n<tn";
|
|
1791
|
+
if (n.punctuator(r, ")")) return "ts";
|
|
1792
|
+
} else if (i === "SwitchCase") {
|
|
1793
|
+
if (n.keyword(r, "case")) return "n<ts";
|
|
1794
|
+
if (n.keyword(r, "default")) return "n<t";
|
|
1795
|
+
if (n.punctuator(r, ":")) return "tn>";
|
|
1796
|
+
} else if (i === "VariableDeclaration") {
|
|
1797
|
+
if (n.punctuator(r, ",")) {
|
|
1798
|
+
let t = !0, n = e.declarations;
|
|
1799
|
+
for (let e = 0; e < n.length; ++e) t &&= !!n[e].init;
|
|
1800
|
+
return !this.#l(e) && t ? "nSSts" : "ts";
|
|
1801
|
+
}
|
|
1802
|
+
} else if (i === "PropertyDefinition") {
|
|
1803
|
+
if (n.punctuator(r, "=")) return "sts";
|
|
1804
|
+
if (n.punctuator(r, ";")) return "tn";
|
|
1805
|
+
} else if (i === "BlockStatement") {
|
|
1806
|
+
if (n.punctuator(r, "{")) return e.body.length ? "tn>" : "t";
|
|
1807
|
+
if (n.punctuator(r, "}")) return e.body.length ? "n<t" : "t";
|
|
1808
|
+
} else if (i === "CatchClause") {
|
|
1809
|
+
if (n.punctuator(r, ")")) return "ts";
|
|
1810
|
+
} else if (i === "ObjectExpression") {
|
|
1811
|
+
if (!e.properties.length) return "t";
|
|
1812
|
+
if (n.punctuator(r, "{")) return "tn>";
|
|
1813
|
+
if (n.punctuator(r, "}")) return "n<t";
|
|
1814
|
+
if (n.punctuator(r, ",")) return "tn";
|
|
1815
|
+
} else if (i === "IfStatement") {
|
|
1816
|
+
if (n.punctuator(r, ")")) return e.consequent?.type === "BlockStatement" ? "ts" : "tn>";
|
|
1817
|
+
if (n.keyword(r, "else")) {
|
|
1818
|
+
let t = e.consequent?.type === "BlockStatement" ? "st" : "n<t", n = "n>";
|
|
1819
|
+
return e.alternate && (e.alternate.type === "BlockStatement" || e.alternate.type === "IfStatement") && (n = "s"), t + n;
|
|
1820
|
+
}
|
|
1821
|
+
} else if (i === "CallExpression") {
|
|
1822
|
+
if (n.punctuator(r, ",")) return "ts";
|
|
1823
|
+
} else if (i === "SequenceExpression" && n.punctuator(r, ",")) return e.parent?.type === "SwitchCase" ? "ts" : "tn";
|
|
1824
|
+
else if (i === "ForStatement" || i === "ForOfStatement" || i === "ForInStatement") {
|
|
1825
|
+
if (n.punctuator(r, ";")) return "ts";
|
|
1826
|
+
if (n.keyword(r, "in") || n.identifier(r, "of")) return "sts";
|
|
1827
|
+
if (n.punctuator(r, ")")) return e.body?.type === "BlockStatement" ? "ts" : "tn>";
|
|
1828
|
+
} else if (i === "WhileStatement") {
|
|
1829
|
+
if (n.punctuator(r, ")")) return e.body?.type === "BlockStatement" ? "ts" : "tn>";
|
|
1830
|
+
} else if (i === "DoWhileStatement") {
|
|
1831
|
+
let t = e.body?.type === "BlockStatement";
|
|
1832
|
+
if (n.keyword(r, "do")) return t ? "ts" : "tn>";
|
|
1833
|
+
if (n.keyword(r, "while")) return t ? "sts" : "n<ts";
|
|
1834
|
+
if (n.punctuator(r, ";")) return "tn";
|
|
1835
|
+
} else if (i === "ClassBody") return n.punctuator(r, "{") ? "stn>" : n.punctuator(r, "}") ? "<ntn" : "t";
|
|
1836
|
+
else if (i === "YieldExpression") return "t";
|
|
1837
|
+
else if (i === "Super") return "t";
|
|
1838
|
+
else if (i === "ImportExpression") return "t";
|
|
1839
|
+
else if (i === "ExportAllDeclaration") return n.punctuator(r, "*") ? "sts" : "t";
|
|
1840
|
+
else if (i === "ExportNamedDeclaration" || i === "ImportDeclaration") return n.punctuator(r, "{") ? "st" : n.punctuator(r, ",") ? "ts" : n.punctuator(r, "}") ? e.attributes.length > 0 ? "t" : e.source ? "ts" : "t" : n.punctuator(r, "*") || n.keyword(r, "with") ? "sts" : "t";
|
|
1841
|
+
else if (i === "MemberExpression") return e.object.type === "Literal" && typeof e.object.value == "number" ? "st" : "t";
|
|
1842
|
+
return n.keyword(r) && !n.keyword(r, "this") ? "ts" : "t";
|
|
1843
|
+
}
|
|
1844
|
+
#d(e) {
|
|
1845
|
+
let t = e.type;
|
|
1846
|
+
if (t === "WithStatement") {
|
|
1847
|
+
if (e.body && e.body.type !== "BlockStatement") return "n<";
|
|
1848
|
+
} else if (t === "VariableDeclaration") {
|
|
1849
|
+
if (!this.#l(e)) return "n";
|
|
1850
|
+
} else if (t === "ForStatement" || t === "ForOfStatement" || t === "ForInStatement") {
|
|
1851
|
+
if (e.body && e.body.type !== "BlockStatement") return "n<";
|
|
1852
|
+
} else if (t === "BlockStatement") {
|
|
1853
|
+
if (e.parent?.type === "IfStatement") {
|
|
1854
|
+
let t = e.parent;
|
|
1855
|
+
if (t.alternate && t.consequent === e) return "";
|
|
1856
|
+
}
|
|
1857
|
+
return e.parent?.type === "FunctionExpression" && e.parent.parent?.type === "Property" || e.parent?.type === "FunctionExpression" && e.parent.parent?.type === "VariableDeclarator" || e.parent?.type === "FunctionExpression" && e.parent.parent?.type === "CallExpression" || e.parent?.type === "DoWhileStatement" ? "" : e.parent?.type === "TryStatement" && e.parent.block === e || e.parent?.type === "CatchClause" && e.parent.parent?.finalizer ? "s" : "n";
|
|
1858
|
+
} else if (t === "WhileStatement") {
|
|
1859
|
+
if (e.body && e.body.type !== "BlockStatement") return "n<";
|
|
1860
|
+
} else if (t === "IfStatement") {
|
|
1861
|
+
if (e.alternate) {
|
|
1862
|
+
if (e.alternate.type !== "BlockStatement" && e.alternate.type !== "IfStatement") return "<";
|
|
1863
|
+
} else if (e.consequent && e.consequent.type !== "BlockStatement") return "<";
|
|
1864
|
+
} else if (t === "BreakStatement" || t === "ContinueStatement" || t === "ThrowStatement" || t === "ReturnStatement" || t === "ExpressionStatement") return "n";
|
|
1865
|
+
else if (t === "ImportDeclaration" || t === "ExportAllDeclaration" || t === "ExportDefaultDeclaration" || t === "ExportNamedDeclaration") return "n";
|
|
1866
|
+
return "";
|
|
1867
|
+
}
|
|
1868
|
+
}, b = class {
|
|
1869
|
+
builder;
|
|
1870
|
+
toOffset;
|
|
1871
|
+
fromOffset;
|
|
1872
|
+
lineEndings;
|
|
1873
|
+
lastLine;
|
|
1874
|
+
text;
|
|
1875
|
+
constructor(e) {
|
|
1876
|
+
this.builder = e, this.lastLine = -1;
|
|
1877
|
+
}
|
|
1878
|
+
format(e, t, n, r) {
|
|
1879
|
+
this.lineEndings = t, this.fromOffset = n, this.toOffset = r, this.lastLine = -1, this.text = e, ie("application/json")(e.substring(this.fromOffset, this.toOffset), this.tokenCallback.bind(this));
|
|
1880
|
+
}
|
|
1881
|
+
tokenCallback(e, t, n) {
|
|
1882
|
+
switch (e.charAt(0)) {
|
|
1883
|
+
case "{":
|
|
1884
|
+
case "[":
|
|
1885
|
+
this.text[n + 1] === "}" || this.text[n + 1] === "]" ? this.builder.addToken(e, n) : (this.builder.addToken(e, n), this.builder.addNewLine(), this.builder.increaseNestingLevel());
|
|
1886
|
+
break;
|
|
1887
|
+
case "}":
|
|
1888
|
+
case "]":
|
|
1889
|
+
this.text[n - 1] === "{" || this.text[n - 1] === "[" ? this.builder.addToken(e, n) : (this.builder.decreaseNestingLevel(), this.builder.addNewLine(), this.builder.addToken(e, n));
|
|
1890
|
+
break;
|
|
1891
|
+
case ":":
|
|
1892
|
+
this.builder.addToken(e, n), this.builder.addSoftSpace();
|
|
1893
|
+
break;
|
|
1894
|
+
case ",":
|
|
1895
|
+
this.builder.addToken(e, n), this.builder.addNewLine();
|
|
1896
|
+
break;
|
|
1897
|
+
case "":
|
|
1898
|
+
case " ":
|
|
1899
|
+
case "\n": break;
|
|
1900
|
+
default:
|
|
1901
|
+
this.builder.addToken(e, n);
|
|
1902
|
+
break;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
}, x = class {
|
|
1906
|
+
#e;
|
|
1907
|
+
#t;
|
|
1908
|
+
#n;
|
|
1909
|
+
#r;
|
|
1910
|
+
#i;
|
|
1911
|
+
#a;
|
|
1912
|
+
#o;
|
|
1913
|
+
constructor(e) {
|
|
1914
|
+
this.#e = e, this.#t = new y(e), this.#n = new b(e), this.#r = new oe(e);
|
|
1915
|
+
}
|
|
1916
|
+
format(e, t) {
|
|
1917
|
+
this.#i = e, this.#a = t, this.#o = new te(e), this.#c(this.#o.document());
|
|
1918
|
+
}
|
|
1919
|
+
#s(e, t) {
|
|
1920
|
+
if (!this.#o) return;
|
|
1921
|
+
let n = this.#o.peekToken();
|
|
1922
|
+
for (; n && n.startOffset < t;) {
|
|
1923
|
+
let t = this.#o.nextToken();
|
|
1924
|
+
this.#p(e, t), n = this.#o.peekToken();
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
#c(e) {
|
|
1928
|
+
if (!e.openTag || !e.closeTag) throw Error("Element is missing open or close tag");
|
|
1929
|
+
e.parent && this.#s(e.parent, e.openTag.startOffset), this.#l(e), this.#s(e, e.openTag.endOffset), this.#u(e);
|
|
1930
|
+
for (let t = 0; t < e.children.length; ++t) this.#c(e.children[t]);
|
|
1931
|
+
this.#s(e, e.closeTag.startOffset), this.#d(e), this.#s(e, e.closeTag.endOffset), this.#f(e);
|
|
1932
|
+
}
|
|
1933
|
+
#l(e) {
|
|
1934
|
+
this.#o && (!e.children.length || e === this.#o.document() || this.#e.addNewLine());
|
|
1935
|
+
}
|
|
1936
|
+
#u(e) {
|
|
1937
|
+
this.#o && (!e.children.length || e === this.#o.document() || (this.#e.increaseNestingLevel(), this.#e.addNewLine()));
|
|
1938
|
+
}
|
|
1939
|
+
#d(e) {
|
|
1940
|
+
this.#o && (!e.children.length || e === this.#o.document() || (this.#e.decreaseNestingLevel(), this.#e.addNewLine()));
|
|
1941
|
+
}
|
|
1942
|
+
#f(e) {
|
|
1943
|
+
this.#e.addNewLine();
|
|
1944
|
+
}
|
|
1945
|
+
#p(e, t) {
|
|
1946
|
+
if (n(t.value)) return;
|
|
1947
|
+
if (C(t.type, "comment") || C(t.type, "meta")) {
|
|
1948
|
+
this.#e.addNewLine(), this.#e.addToken(t.value.trim(), t.startOffset), this.#e.addNewLine();
|
|
1949
|
+
return;
|
|
1950
|
+
}
|
|
1951
|
+
if (!e.openTag || !e.closeTag) return;
|
|
1952
|
+
let r = e.openTag.endOffset <= t.startOffset && t.startOffset < e.closeTag.startOffset;
|
|
1953
|
+
if (r && e.name === "style") {
|
|
1954
|
+
this.#e.addNewLine(), this.#e.increaseNestingLevel(), this.#r.format(this.#i || "", this.#a || [], t.startOffset, t.endOffset), this.#e.decreaseNestingLevel();
|
|
1955
|
+
return;
|
|
1956
|
+
}
|
|
1957
|
+
if (r && e.name === "script") {
|
|
1958
|
+
this.#e.addNewLine(), this.#e.increaseNestingLevel(), S(e) ? this.#t.format(this.#i || "", this.#a || [], t.startOffset, t.endOffset) : ee(e) ? this.#n.format(this.#i || "", this.#a || [], t.startOffset, t.endOffset) : (this.#e.addToken(t.value, t.startOffset), this.#e.addNewLine()), this.#e.decreaseNestingLevel();
|
|
1959
|
+
return;
|
|
1960
|
+
}
|
|
1961
|
+
!r && C(t.type, "attribute") && this.#e.addSoftSpace(), this.#e.addToken(t.value, t.startOffset);
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
function S(e) {
|
|
1965
|
+
if (!e.openTag || !e.openTag.attributes.has("type")) return !0;
|
|
1966
|
+
let t = e.openTag.attributes.get("type");
|
|
1967
|
+
if (!t) return !0;
|
|
1968
|
+
t = t.toLowerCase();
|
|
1969
|
+
let n = /^(["\'])(.*)\1$/.exec(t.trim());
|
|
1970
|
+
return n && (t = n[2]), [
|
|
1971
|
+
"application/ecmascript",
|
|
1972
|
+
"application/javascript",
|
|
1973
|
+
"application/x-ecmascript",
|
|
1974
|
+
"application/x-javascript",
|
|
1975
|
+
"module",
|
|
1976
|
+
"text/ecmascript",
|
|
1977
|
+
"text/javascript",
|
|
1978
|
+
"text/javascript1.0",
|
|
1979
|
+
"text/javascript1.1",
|
|
1980
|
+
"text/javascript1.2",
|
|
1981
|
+
"text/javascript1.3",
|
|
1982
|
+
"text/javascript1.4",
|
|
1983
|
+
"text/javascript1.5",
|
|
1984
|
+
"text/jscript",
|
|
1985
|
+
"text/livescript",
|
|
1986
|
+
"text/x-ecmascript",
|
|
1987
|
+
"text/x-javascript"
|
|
1988
|
+
].includes(t.trim());
|
|
1989
|
+
}
|
|
1990
|
+
function ee(e) {
|
|
1991
|
+
if (!e.openTag) return !1;
|
|
1992
|
+
let t = e.openTag.attributes.get("type");
|
|
1993
|
+
if (!t) return !1;
|
|
1994
|
+
t = t.toLowerCase();
|
|
1995
|
+
let n = /^(["\'])(.*)\1$/.exec(t.trim());
|
|
1996
|
+
return n && (t = n[2]), /^application\/\w+\+json$/.exec(t.trim()) && (t = "application/json"), [
|
|
1997
|
+
"application/json",
|
|
1998
|
+
"importmap",
|
|
1999
|
+
"speculationrules"
|
|
2000
|
+
].includes(t.trim());
|
|
2001
|
+
}
|
|
2002
|
+
function C(e, t) {
|
|
2003
|
+
return e.has(t) || e.has(`xml-${t}`);
|
|
2004
|
+
}
|
|
2005
|
+
var te = class {
|
|
2006
|
+
#e = "Initial";
|
|
2007
|
+
#t;
|
|
2008
|
+
#n;
|
|
2009
|
+
#r = [];
|
|
2010
|
+
#i = 0;
|
|
2011
|
+
#a = /* @__PURE__ */ new Map();
|
|
2012
|
+
#o = "";
|
|
2013
|
+
#s = "";
|
|
2014
|
+
#c = !1;
|
|
2015
|
+
#l;
|
|
2016
|
+
#u;
|
|
2017
|
+
constructor(e) {
|
|
2018
|
+
this.#t = new O("document"), this.#t.openTag = new D("document", 0, 0, /* @__PURE__ */ new Map(), !0, !1), this.#t.closeTag = new D("document", e.length, e.length, /* @__PURE__ */ new Map(), !1, !1), this.#n = [this.#t], this.#d(e);
|
|
2019
|
+
}
|
|
2020
|
+
#d(e) {
|
|
2021
|
+
let t = ie("text/html"), n = 0, r = 0, i = null, a = (e) => {
|
|
2022
|
+
this.#r.push(e), this.#f(e);
|
|
2023
|
+
let t = this.#n[this.#n.length - 1];
|
|
2024
|
+
if (t && (t.name === "script" || t.name === "style") && t.openTag?.endOffset === r) return B;
|
|
2025
|
+
}, o = (e, t, o, s) => {
|
|
2026
|
+
o += n, s += n, r = s;
|
|
2027
|
+
let c = new E(e, t ? new Set(t.split(" ")) : /* @__PURE__ */ new Set(), o, s);
|
|
2028
|
+
if (i) {
|
|
2029
|
+
if (e === "/" && t === "attribute" && i.type.has("string")) c.startOffset = i.startOffset, c.value = `${i.value}${e}`, c.type = i.type;
|
|
2030
|
+
else if (e.startsWith("&") && t === "error" && i.type.size === 0 || t === null && i.type.has("error")) {
|
|
2031
|
+
i.endOffset = c.endOffset, i.value += e, i.type = c.type;
|
|
2032
|
+
return;
|
|
2033
|
+
} else if (a(i) === B) return B;
|
|
2034
|
+
i = null;
|
|
2035
|
+
}
|
|
2036
|
+
if (t === "string" || t === null) {
|
|
2037
|
+
i = c;
|
|
2038
|
+
return;
|
|
2039
|
+
}
|
|
2040
|
+
return a(c);
|
|
2041
|
+
};
|
|
2042
|
+
for (; n = r, t(e.substring(r), o), i &&= (a(i), null), !(r >= e.length);) {
|
|
2043
|
+
let t = this.#n[this.#n.length - 1];
|
|
2044
|
+
if (!t) break;
|
|
2045
|
+
for (;;) {
|
|
2046
|
+
if (r = e.indexOf("</", r), r === -1) {
|
|
2047
|
+
r = e.length;
|
|
2048
|
+
break;
|
|
2049
|
+
}
|
|
2050
|
+
if (e.substring(r + 2).toLowerCase().startsWith(t.name)) break;
|
|
2051
|
+
r += 2;
|
|
2052
|
+
}
|
|
2053
|
+
if (!t.openTag) break;
|
|
2054
|
+
let n = t.openTag.endOffset, i = r, a = e.substring(n, i);
|
|
2055
|
+
this.#r.push(new E(a, /* @__PURE__ */ new Set(), n, i));
|
|
2056
|
+
}
|
|
2057
|
+
for (; this.#n.length > 1;) {
|
|
2058
|
+
let t = this.#n[this.#n.length - 1];
|
|
2059
|
+
if (!t) break;
|
|
2060
|
+
this.#g(new D(t.name, e.length, e.length, /* @__PURE__ */ new Map(), !1, !1));
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
#f(e) {
|
|
2064
|
+
let t = e.value, n = e.type;
|
|
2065
|
+
switch (this.#e) {
|
|
2066
|
+
case "Initial":
|
|
2067
|
+
C(n, "bracket") && (t === "<" || t === "</") && (this.#p(e), this.#e = "Tag");
|
|
2068
|
+
return;
|
|
2069
|
+
case "Tag":
|
|
2070
|
+
C(n, "tag") && !C(n, "bracket") ? this.#s = t.trim().toLowerCase() : C(n, "attribute") ? (this.#o = t.trim().toLowerCase(), this.#a.set(this.#o, ""), this.#e = "AttributeName") : C(n, "bracket") && (t === ">" || t === "/>") && (this.#m(e), this.#e = "Initial");
|
|
2071
|
+
return;
|
|
2072
|
+
case "AttributeName":
|
|
2073
|
+
!n.size && t === "=" ? this.#e = "AttributeValue" : C(n, "bracket") && (t === ">" || t === "/>") && (this.#m(e), this.#e = "Initial");
|
|
2074
|
+
return;
|
|
2075
|
+
case "AttributeValue":
|
|
2076
|
+
C(n, "string") ? (this.#a.set(this.#o, t), this.#e = "Tag") : C(n, "bracket") && (t === ">" || t === "/>") && (this.#m(e), this.#e = "Initial");
|
|
2077
|
+
return;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
#p(e) {
|
|
2081
|
+
this.#s = "", this.#l = e.startOffset, this.#u = null, this.#a = /* @__PURE__ */ new Map(), this.#o = "", this.#c = e.value === "<";
|
|
2082
|
+
}
|
|
2083
|
+
#m(e) {
|
|
2084
|
+
this.#u = e.endOffset;
|
|
2085
|
+
let t = e.value === "/>" || w.has(this.#s), n = new D(this.#s, this.#l || 0, this.#u, this.#a, this.#c, t);
|
|
2086
|
+
this.#h(n);
|
|
2087
|
+
}
|
|
2088
|
+
#h(e) {
|
|
2089
|
+
if (e.isOpenTag) {
|
|
2090
|
+
let t = this.#n[this.#n.length - 1];
|
|
2091
|
+
if (t) {
|
|
2092
|
+
let r = T.get(t.name);
|
|
2093
|
+
t !== this.#t && t.openTag?.selfClosingTag ? this.#g(n(t, t.openTag.endOffset)) : r?.has(e.name) && this.#g(n(t, e.startOffset)), this.#_(e);
|
|
2094
|
+
}
|
|
2095
|
+
return;
|
|
2096
|
+
}
|
|
2097
|
+
let t = this.#n[this.#n.length - 1];
|
|
2098
|
+
for (; this.#n.length > 1 && t && t.name !== e.name;) this.#g(n(t, e.startOffset)), t = this.#n[this.#n.length - 1];
|
|
2099
|
+
if (this.#n.length === 1) return;
|
|
2100
|
+
this.#g(e);
|
|
2101
|
+
function n(e, t) {
|
|
2102
|
+
return new D(e.name, t, t, /* @__PURE__ */ new Map(), !1, !1);
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
#g(e) {
|
|
2106
|
+
let t = this.#n.pop();
|
|
2107
|
+
t && (t.closeTag = e);
|
|
2108
|
+
}
|
|
2109
|
+
#_(e) {
|
|
2110
|
+
let t = this.#n[this.#n.length - 1], n = new O(e.name);
|
|
2111
|
+
t && (n.parent = t, t.children.push(n)), n.openTag = e, this.#n.push(n);
|
|
2112
|
+
}
|
|
2113
|
+
peekToken() {
|
|
2114
|
+
return this.#i < this.#r.length ? this.#r[this.#i] : null;
|
|
2115
|
+
}
|
|
2116
|
+
nextToken() {
|
|
2117
|
+
return this.#r[this.#i++];
|
|
2118
|
+
}
|
|
2119
|
+
document() {
|
|
2120
|
+
return this.#t;
|
|
2121
|
+
}
|
|
2122
|
+
}, w = new Set([
|
|
2123
|
+
"area",
|
|
2124
|
+
"base",
|
|
2125
|
+
"br",
|
|
2126
|
+
"col",
|
|
2127
|
+
"command",
|
|
2128
|
+
"embed",
|
|
2129
|
+
"hr",
|
|
2130
|
+
"img",
|
|
2131
|
+
"input",
|
|
2132
|
+
"keygen",
|
|
2133
|
+
"link",
|
|
2134
|
+
"meta",
|
|
2135
|
+
"param",
|
|
2136
|
+
"source",
|
|
2137
|
+
"track",
|
|
2138
|
+
"wbr"
|
|
2139
|
+
]), T = new Map([
|
|
2140
|
+
["head", new Set(["body"])],
|
|
2141
|
+
["li", new Set(["li"])],
|
|
2142
|
+
["dt", new Set(["dt", "dd"])],
|
|
2143
|
+
["dd", new Set(["dt", "dd"])],
|
|
2144
|
+
["p", new Set(/* @__PURE__ */ "address.article.aside.blockquote.div.dl.fieldset.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.nav.ol.p.pre.section.table.ul".split("."))],
|
|
2145
|
+
["rb", new Set([
|
|
2146
|
+
"rb",
|
|
2147
|
+
"rt",
|
|
2148
|
+
"rtc",
|
|
2149
|
+
"rp"
|
|
2150
|
+
])],
|
|
2151
|
+
["rt", new Set([
|
|
2152
|
+
"rb",
|
|
2153
|
+
"rt",
|
|
2154
|
+
"rtc",
|
|
2155
|
+
"rp"
|
|
2156
|
+
])],
|
|
2157
|
+
["rtc", new Set([
|
|
2158
|
+
"rb",
|
|
2159
|
+
"rtc",
|
|
2160
|
+
"rp"
|
|
2161
|
+
])],
|
|
2162
|
+
["rp", new Set([
|
|
2163
|
+
"rb",
|
|
2164
|
+
"rt",
|
|
2165
|
+
"rtc",
|
|
2166
|
+
"rp"
|
|
2167
|
+
])],
|
|
2168
|
+
["optgroup", new Set(["optgroup"])],
|
|
2169
|
+
["option", new Set(["option", "optgroup"])],
|
|
2170
|
+
["colgroup", new Set(["colgroup"])],
|
|
2171
|
+
["thead", new Set(["tbody", "tfoot"])],
|
|
2172
|
+
["tbody", new Set(["tbody", "tfoot"])],
|
|
2173
|
+
["tfoot", new Set(["tbody"])],
|
|
2174
|
+
["tr", new Set(["tr"])],
|
|
2175
|
+
["td", new Set(["td", "th"])],
|
|
2176
|
+
["th", new Set(["td", "th"])]
|
|
2177
|
+
]), E = class {
|
|
2178
|
+
value;
|
|
2179
|
+
type;
|
|
2180
|
+
startOffset;
|
|
2181
|
+
endOffset;
|
|
2182
|
+
constructor(e, t, n, r) {
|
|
2183
|
+
this.value = e, this.type = t, this.startOffset = n, this.endOffset = r;
|
|
2184
|
+
}
|
|
2185
|
+
}, D = class {
|
|
2186
|
+
name;
|
|
2187
|
+
startOffset;
|
|
2188
|
+
endOffset;
|
|
2189
|
+
attributes;
|
|
2190
|
+
isOpenTag;
|
|
2191
|
+
selfClosingTag;
|
|
2192
|
+
constructor(e, t, n, r, i, a) {
|
|
2193
|
+
this.name = e, this.startOffset = t, this.endOffset = n, this.attributes = r, this.isOpenTag = i, this.selfClosingTag = a;
|
|
2194
|
+
}
|
|
2195
|
+
}, O = class {
|
|
2196
|
+
name;
|
|
2197
|
+
children = [];
|
|
2198
|
+
parent = null;
|
|
2199
|
+
openTag = null;
|
|
2200
|
+
closeTag = null;
|
|
2201
|
+
constructor(e) {
|
|
2202
|
+
this.name = e;
|
|
2203
|
+
}
|
|
2204
|
+
}, k = class {
|
|
2205
|
+
builder;
|
|
2206
|
+
constructor(e) {
|
|
2207
|
+
this.builder = e;
|
|
2208
|
+
}
|
|
2209
|
+
format(e, t, n, r) {
|
|
2210
|
+
let i = e.substring(n, r);
|
|
2211
|
+
this.builder.addToken(i, n);
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
2214
|
+
//#endregion
|
|
2215
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker/ScopeParser.ts
|
|
2216
|
+
function A(e, t = "script") {
|
|
2217
|
+
let n = null;
|
|
2218
|
+
try {
|
|
2219
|
+
n = p(e, {
|
|
2220
|
+
ecmaVersion: g,
|
|
2221
|
+
allowAwaitOutsideFunction: !0,
|
|
2222
|
+
ranges: !1,
|
|
2223
|
+
sourceType: t
|
|
2224
|
+
});
|
|
2225
|
+
} catch {
|
|
2226
|
+
return null;
|
|
2227
|
+
}
|
|
2228
|
+
return new M(n, e).run();
|
|
2229
|
+
}
|
|
2230
|
+
var j = class {
|
|
2231
|
+
variables = /* @__PURE__ */ new Map();
|
|
2232
|
+
parent;
|
|
2233
|
+
start;
|
|
2234
|
+
end;
|
|
2235
|
+
kind;
|
|
2236
|
+
name;
|
|
2237
|
+
nameMappingLocations;
|
|
2238
|
+
children = [];
|
|
2239
|
+
constructor(e, t, n, r, i, a) {
|
|
2240
|
+
this.start = e, this.end = t, this.parent = n, this.kind = r, this.name = i, this.nameMappingLocations = a, n && n.children.push(this);
|
|
2241
|
+
}
|
|
2242
|
+
export() {
|
|
2243
|
+
let e = [];
|
|
2244
|
+
for (let t of this.variables) {
|
|
2245
|
+
let n = [];
|
|
2246
|
+
for (let e of t[1].uses) n.push(e.offset);
|
|
2247
|
+
e.push({
|
|
2248
|
+
name: t[0],
|
|
2249
|
+
kind: t[1].definitionKind,
|
|
2250
|
+
offsets: n
|
|
2251
|
+
});
|
|
2252
|
+
}
|
|
2253
|
+
let t = this.children.map((e) => e.export());
|
|
2254
|
+
return {
|
|
2255
|
+
start: this.start,
|
|
2256
|
+
end: this.end,
|
|
2257
|
+
variables: e,
|
|
2258
|
+
kind: this.kind,
|
|
2259
|
+
name: this.name,
|
|
2260
|
+
nameMappingLocations: this.nameMappingLocations,
|
|
2261
|
+
children: t
|
|
2262
|
+
};
|
|
2263
|
+
}
|
|
2264
|
+
addVariable(e, t, n, r) {
|
|
2265
|
+
let i = this.variables.get(e), a = {
|
|
2266
|
+
offset: t,
|
|
2267
|
+
scope: this,
|
|
2268
|
+
isShorthandAssignmentProperty: r
|
|
2269
|
+
};
|
|
2270
|
+
if (!i) {
|
|
2271
|
+
this.variables.set(e, {
|
|
2272
|
+
definitionKind: n,
|
|
2273
|
+
uses: [a]
|
|
2274
|
+
});
|
|
2275
|
+
return;
|
|
2276
|
+
}
|
|
2277
|
+
i.definitionKind === d.NONE && (i.definitionKind = n), i.uses.push(a);
|
|
2278
|
+
}
|
|
2279
|
+
findBinders(e) {
|
|
2280
|
+
let t = [], n = this;
|
|
2281
|
+
for (; n !== null;) {
|
|
2282
|
+
let r = n.variables.get(e);
|
|
2283
|
+
r && r.definitionKind !== d.NONE && t.push(r), n = n.parent;
|
|
2284
|
+
}
|
|
2285
|
+
return t;
|
|
2286
|
+
}
|
|
2287
|
+
#e(e, t) {
|
|
2288
|
+
let n = this.variables.get(e);
|
|
2289
|
+
if (!n) {
|
|
2290
|
+
this.variables.set(e, t);
|
|
2291
|
+
return;
|
|
2292
|
+
}
|
|
2293
|
+
n.uses.push(...t.uses), t.definitionKind === d.VAR ? (console.assert(n.definitionKind !== d.LET), n.definitionKind === d.NONE && (n.definitionKind = t.definitionKind)) : console.assert(t.definitionKind === d.NONE);
|
|
2294
|
+
}
|
|
2295
|
+
finalizeToParent(e) {
|
|
2296
|
+
if (!this.parent) throw console.error("Internal error: wrong nesting in scope analysis."), Error("Internal error");
|
|
2297
|
+
let t = [];
|
|
2298
|
+
for (let [n, r] of this.variables.entries()) (r.definitionKind === d.NONE || r.definitionKind === d.VAR && !e) && (this.parent.#e(n, r), t.push(n));
|
|
2299
|
+
t.forEach((e) => this.variables.delete(e));
|
|
2300
|
+
}
|
|
2301
|
+
}, M = class {
|
|
2302
|
+
#e;
|
|
2303
|
+
#t = /* @__PURE__ */ new Set();
|
|
2304
|
+
#n;
|
|
2305
|
+
#r;
|
|
2306
|
+
#i;
|
|
2307
|
+
#a;
|
|
2308
|
+
#o = [];
|
|
2309
|
+
constructor(e, t) {
|
|
2310
|
+
this.#r = e, this.#i = t, this.#e = new j(e.start, e.end, null, c.GLOBAL), this.#n = this.#e;
|
|
2311
|
+
}
|
|
2312
|
+
run() {
|
|
2313
|
+
return this.#s(this.#r), this.#e;
|
|
2314
|
+
}
|
|
2315
|
+
#s(e) {
|
|
2316
|
+
if (e !== null) switch (e.type) {
|
|
2317
|
+
case "AwaitExpression":
|
|
2318
|
+
this.#s(e.argument);
|
|
2319
|
+
break;
|
|
2320
|
+
case "ArrayExpression":
|
|
2321
|
+
e.elements.forEach((e) => this.#s(e));
|
|
2322
|
+
break;
|
|
2323
|
+
case "ExpressionStatement":
|
|
2324
|
+
this.#s(e.expression);
|
|
2325
|
+
break;
|
|
2326
|
+
case "Program":
|
|
2327
|
+
console.assert(this.#n === this.#e), e.body.forEach((e) => this.#s(e)), console.assert(this.#n === this.#e);
|
|
2328
|
+
break;
|
|
2329
|
+
case "ArrayPattern":
|
|
2330
|
+
e.elements.forEach((e) => this.#s(e));
|
|
2331
|
+
break;
|
|
2332
|
+
case "ArrowFunctionExpression":
|
|
2333
|
+
this.#c(e.start, e.end, c.ARROW_FUNCTION, void 0, F(e, this.#i)), e.params.forEach(this.#d.bind(this, d.VAR, !1)), e.body.type === "BlockStatement" ? e.body.body.forEach(this.#s.bind(this)) : this.#s(e.body), this.#l(!0);
|
|
2334
|
+
break;
|
|
2335
|
+
case "AssignmentExpression":
|
|
2336
|
+
case "AssignmentPattern":
|
|
2337
|
+
case "BinaryExpression":
|
|
2338
|
+
case "LogicalExpression":
|
|
2339
|
+
this.#s(e.left), this.#s(e.right);
|
|
2340
|
+
break;
|
|
2341
|
+
case "BlockStatement":
|
|
2342
|
+
this.#c(e.start, e.end, c.BLOCK), e.body.forEach(this.#s.bind(this)), this.#l(!1);
|
|
2343
|
+
break;
|
|
2344
|
+
case "CallExpression":
|
|
2345
|
+
this.#s(e.callee), e.arguments.forEach(this.#s.bind(this));
|
|
2346
|
+
break;
|
|
2347
|
+
case "VariableDeclaration": {
|
|
2348
|
+
let t = e.kind === "var" ? d.VAR : d.LET;
|
|
2349
|
+
e.declarations.forEach(this.#f.bind(this, t));
|
|
2350
|
+
break;
|
|
2351
|
+
}
|
|
2352
|
+
case "CatchClause":
|
|
2353
|
+
this.#c(e.start, e.end, c.BLOCK), this.#d(d.LET, !1, e.param), this.#s(e.body), this.#l(!1);
|
|
2354
|
+
break;
|
|
2355
|
+
case "ClassBody":
|
|
2356
|
+
e.body.forEach(this.#s.bind(this));
|
|
2357
|
+
break;
|
|
2358
|
+
case "ClassDeclaration":
|
|
2359
|
+
this.#d(d.LET, !1, e.id), this.#s(e.superClass ?? null), this.#s(e.body);
|
|
2360
|
+
break;
|
|
2361
|
+
case "ClassExpression":
|
|
2362
|
+
this.#s(e.superClass ?? null), this.#s(e.body);
|
|
2363
|
+
break;
|
|
2364
|
+
case "ChainExpression":
|
|
2365
|
+
this.#s(e.expression);
|
|
2366
|
+
break;
|
|
2367
|
+
case "ConditionalExpression":
|
|
2368
|
+
this.#s(e.test), this.#s(e.consequent), this.#s(e.alternate);
|
|
2369
|
+
break;
|
|
2370
|
+
case "DoWhileStatement":
|
|
2371
|
+
this.#s(e.body), this.#s(e.test);
|
|
2372
|
+
break;
|
|
2373
|
+
case "ForInStatement":
|
|
2374
|
+
case "ForOfStatement":
|
|
2375
|
+
this.#c(e.start, e.end, c.BLOCK), this.#s(e.left), this.#s(e.right), this.#s(e.body), this.#l(!1);
|
|
2376
|
+
break;
|
|
2377
|
+
case "ForStatement":
|
|
2378
|
+
this.#c(e.start, e.end, c.BLOCK), this.#s(e.init ?? null), this.#s(e.test ?? null), this.#s(e.update ?? null), this.#s(e.body), this.#l(!1);
|
|
2379
|
+
break;
|
|
2380
|
+
case "FunctionDeclaration":
|
|
2381
|
+
this.#d(d.VAR, !1, e.id), this.#c(e.id?.end ?? e.start, e.end, c.FUNCTION, e.id.name, N(e, this.#i)), this.#u("this", e.start, d.FIXED), this.#u("arguments", e.start, d.FIXED), e.params.forEach(this.#d.bind(this, d.LET, !1)), e.body.body.forEach(this.#s.bind(this)), this.#l(!0);
|
|
2382
|
+
break;
|
|
2383
|
+
case "FunctionExpression":
|
|
2384
|
+
this.#c(e.id?.end ?? e.start, e.end, c.FUNCTION, this.#a ?? e.id?.name, [...this.#o, ...ne(e, this.#i)]), this.#o = [], this.#a = void 0, this.#u("this", e.start, d.FIXED), this.#u("arguments", e.start, d.FIXED), e.params.forEach(this.#d.bind(this, d.LET, !1)), e.body.body.forEach(this.#s.bind(this)), this.#l(!0);
|
|
2385
|
+
break;
|
|
2386
|
+
case "Identifier":
|
|
2387
|
+
this.#u(e.name, e.start);
|
|
2388
|
+
break;
|
|
2389
|
+
case "IfStatement":
|
|
2390
|
+
this.#s(e.test), this.#s(e.consequent), this.#s(e.alternate ?? null);
|
|
2391
|
+
break;
|
|
2392
|
+
case "LabeledStatement":
|
|
2393
|
+
this.#s(e.body);
|
|
2394
|
+
break;
|
|
2395
|
+
case "MetaProperty": break;
|
|
2396
|
+
case "MethodDefinition":
|
|
2397
|
+
e.computed ? this.#s(e.key) : (this.#o = P(e), this.#a = re(e)), this.#s(e.value);
|
|
2398
|
+
break;
|
|
2399
|
+
case "NewExpression":
|
|
2400
|
+
this.#s(e.callee), e.arguments.forEach(this.#s.bind(this));
|
|
2401
|
+
break;
|
|
2402
|
+
case "MemberExpression":
|
|
2403
|
+
this.#s(e.object), e.computed && this.#s(e.property);
|
|
2404
|
+
break;
|
|
2405
|
+
case "ObjectExpression":
|
|
2406
|
+
e.properties.forEach(this.#s.bind(this));
|
|
2407
|
+
break;
|
|
2408
|
+
case "ObjectPattern":
|
|
2409
|
+
e.properties.forEach(this.#s.bind(this));
|
|
2410
|
+
break;
|
|
2411
|
+
case "PrivateIdentifier": break;
|
|
2412
|
+
case "PropertyDefinition":
|
|
2413
|
+
e.computed && this.#s(e.key), this.#s(e.value ?? null);
|
|
2414
|
+
break;
|
|
2415
|
+
case "Property":
|
|
2416
|
+
e.shorthand ? (console.assert(e.value.type === "Identifier"), console.assert(e.key.type === "Identifier"), console.assert(e.value.name === e.key.name), this.#u(e.value.name, e.value.start, d.NONE, !0)) : (e.computed ? this.#s(e.key) : e.value.type === "FunctionExpression" && (this.#o = P(e), this.#a = re(e)), this.#s(e.value));
|
|
2417
|
+
break;
|
|
2418
|
+
case "RestElement":
|
|
2419
|
+
this.#d(d.LET, !1, e.argument);
|
|
2420
|
+
break;
|
|
2421
|
+
case "ReturnStatement":
|
|
2422
|
+
this.#s(e.argument ?? null);
|
|
2423
|
+
break;
|
|
2424
|
+
case "SequenceExpression":
|
|
2425
|
+
e.expressions.forEach(this.#s.bind(this));
|
|
2426
|
+
break;
|
|
2427
|
+
case "SpreadElement":
|
|
2428
|
+
this.#s(e.argument);
|
|
2429
|
+
break;
|
|
2430
|
+
case "SwitchCase":
|
|
2431
|
+
this.#s(e.test ?? null), e.consequent.forEach(this.#s.bind(this));
|
|
2432
|
+
break;
|
|
2433
|
+
case "SwitchStatement":
|
|
2434
|
+
this.#s(e.discriminant), e.cases.forEach(this.#s.bind(this));
|
|
2435
|
+
break;
|
|
2436
|
+
case "TaggedTemplateExpression":
|
|
2437
|
+
this.#s(e.tag), this.#s(e.quasi);
|
|
2438
|
+
break;
|
|
2439
|
+
case "TemplateLiteral":
|
|
2440
|
+
e.expressions.forEach(this.#s.bind(this));
|
|
2441
|
+
break;
|
|
2442
|
+
case "ThisExpression":
|
|
2443
|
+
this.#u("this", e.start);
|
|
2444
|
+
break;
|
|
2445
|
+
case "ThrowStatement":
|
|
2446
|
+
this.#s(e.argument);
|
|
2447
|
+
break;
|
|
2448
|
+
case "TryStatement":
|
|
2449
|
+
this.#s(e.block), this.#s(e.handler ?? null), this.#s(e.finalizer ?? null);
|
|
2450
|
+
break;
|
|
2451
|
+
case "WithStatement":
|
|
2452
|
+
this.#s(e.object), this.#s(e.body);
|
|
2453
|
+
break;
|
|
2454
|
+
case "YieldExpression":
|
|
2455
|
+
this.#s(e.argument ?? null);
|
|
2456
|
+
break;
|
|
2457
|
+
case "UnaryExpression":
|
|
2458
|
+
case "UpdateExpression":
|
|
2459
|
+
this.#s(e.argument);
|
|
2460
|
+
break;
|
|
2461
|
+
case "WhileStatement":
|
|
2462
|
+
this.#s(e.test), this.#s(e.body);
|
|
2463
|
+
break;
|
|
2464
|
+
case "BreakStatement":
|
|
2465
|
+
case "ContinueStatement":
|
|
2466
|
+
case "DebuggerStatement":
|
|
2467
|
+
case "EmptyStatement":
|
|
2468
|
+
case "Literal":
|
|
2469
|
+
case "Super":
|
|
2470
|
+
case "TemplateElement": break;
|
|
2471
|
+
case "ImportDeclaration":
|
|
2472
|
+
case "ImportDefaultSpecifier":
|
|
2473
|
+
case "ImportNamespaceSpecifier":
|
|
2474
|
+
case "ImportSpecifier":
|
|
2475
|
+
case "ImportExpression":
|
|
2476
|
+
case "ExportAllDeclaration":
|
|
2477
|
+
case "ExportDefaultDeclaration":
|
|
2478
|
+
case "ExportNamedDeclaration":
|
|
2479
|
+
case "ExportSpecifier": break;
|
|
2480
|
+
case "VariableDeclarator":
|
|
2481
|
+
console.error("Should not encounter VariableDeclarator in general traversal.");
|
|
2482
|
+
break;
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
getFreeVariables() {
|
|
2486
|
+
let e = /* @__PURE__ */ new Map();
|
|
2487
|
+
for (let [t, n] of this.#e.variables) n.definitionKind === d.NONE && e.set(t, n.uses);
|
|
2488
|
+
return e;
|
|
2489
|
+
}
|
|
2490
|
+
getAllNames() {
|
|
2491
|
+
return this.#t;
|
|
2492
|
+
}
|
|
2493
|
+
#c(e, t, n, r, i) {
|
|
2494
|
+
this.#n = new j(e, t, this.#n, n, r, i);
|
|
2495
|
+
}
|
|
2496
|
+
#l(e) {
|
|
2497
|
+
if (this.#n.parent === null) throw console.error("Internal error: wrong nesting in scope analysis."), Error("Internal error");
|
|
2498
|
+
this.#n.finalizeToParent(e), this.#n = this.#n.parent;
|
|
2499
|
+
}
|
|
2500
|
+
#u(e, t, n = d.NONE, r = !1) {
|
|
2501
|
+
this.#t.add(e), this.#n.addVariable(e, t, n, r);
|
|
2502
|
+
}
|
|
2503
|
+
#d(e, t, n) {
|
|
2504
|
+
if (n !== null) switch (n.type) {
|
|
2505
|
+
case "ArrayPattern":
|
|
2506
|
+
n.elements.forEach(this.#d.bind(this, e, !1));
|
|
2507
|
+
break;
|
|
2508
|
+
case "AssignmentPattern":
|
|
2509
|
+
this.#d(e, t, n.left), this.#s(n.right);
|
|
2510
|
+
break;
|
|
2511
|
+
case "Identifier":
|
|
2512
|
+
this.#u(n.name, n.start, e, t);
|
|
2513
|
+
break;
|
|
2514
|
+
case "MemberExpression":
|
|
2515
|
+
this.#s(n.object), n.computed && this.#s(n.property);
|
|
2516
|
+
break;
|
|
2517
|
+
case "ObjectPattern":
|
|
2518
|
+
n.properties.forEach(this.#d.bind(this, e, !1));
|
|
2519
|
+
break;
|
|
2520
|
+
case "Property":
|
|
2521
|
+
n.computed && this.#s(n.key), this.#d(e, n.shorthand, n.value);
|
|
2522
|
+
break;
|
|
2523
|
+
case "RestElement":
|
|
2524
|
+
this.#d(e, !1, n.argument);
|
|
2525
|
+
break;
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
#f(e, t) {
|
|
2529
|
+
this.#d(e, !1, t.id), this.#s(t.init ?? null);
|
|
2530
|
+
}
|
|
2531
|
+
};
|
|
2532
|
+
function N(e, t) {
|
|
2533
|
+
let n = [e.id.start], r = e.params.length ? e.params[0].start : e.body.start, i = I(t, "(", e.id.end, r);
|
|
2534
|
+
return i >= 0 && n.push(i), n;
|
|
2535
|
+
}
|
|
2536
|
+
function ne(e, t) {
|
|
2537
|
+
let n = [];
|
|
2538
|
+
e.id && n.push(e.id.start);
|
|
2539
|
+
let r = I(t, "(", e.id ? e.id.end : e.start, e.params.length ? e.params[0].start : e.body.start);
|
|
2540
|
+
return r >= 0 && n.push(r), n;
|
|
2541
|
+
}
|
|
2542
|
+
function P(e) {
|
|
2543
|
+
return e.key.type === "Identifier" || e.key.type === "PrivateIdentifier" ? [e.key.start] : [];
|
|
2544
|
+
}
|
|
2545
|
+
function re(e) {
|
|
2546
|
+
if (e.key.type === "Identifier") return e.key.name;
|
|
2547
|
+
if (e.key.type === "PrivateIdentifier") return "#" + e.key.name;
|
|
2548
|
+
}
|
|
2549
|
+
function F(e, t) {
|
|
2550
|
+
let n = [], r = I(t, "(", e.async ? e.start + 5 : e.start, e.params.length ? e.params[0].start : e.body.start);
|
|
2551
|
+
r >= 0 && n.push(r);
|
|
2552
|
+
let i = I(t, "=", e.params.length ? e.params[e.params.length - 1].end : e.start, e.body.start);
|
|
2553
|
+
return i >= 0 && t[i + 1] === ">" && n.push(i), n;
|
|
2554
|
+
}
|
|
2555
|
+
function I(e, t, n, r) {
|
|
2556
|
+
for (let i = n; i < r; ++i) if (e[i] === t) return i;
|
|
2557
|
+
return -1;
|
|
2558
|
+
}
|
|
2559
|
+
//#endregion
|
|
2560
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker/Substitute.ts
|
|
2561
|
+
function L(e, t) {
|
|
2562
|
+
return z(e, R(e, t));
|
|
2563
|
+
}
|
|
2564
|
+
function R(e, t) {
|
|
2565
|
+
let n = new M(p(e, {
|
|
2566
|
+
ecmaVersion: g,
|
|
2567
|
+
allowAwaitOutsideFunction: !0,
|
|
2568
|
+
allowImportExportEverywhere: !0,
|
|
2569
|
+
checkPrivateFields: !1,
|
|
2570
|
+
ranges: !1
|
|
2571
|
+
}), e);
|
|
2572
|
+
n.run();
|
|
2573
|
+
let r = n.getFreeVariables(), i = [], a = n.getAllNames();
|
|
2574
|
+
for (let e of t.values()) e && a.add(e);
|
|
2575
|
+
function o(e) {
|
|
2576
|
+
let t = 1;
|
|
2577
|
+
for (; a.has(`${e}_${t}`);) t++;
|
|
2578
|
+
let n = `${e}_${t}`;
|
|
2579
|
+
return a.add(n), n;
|
|
2580
|
+
}
|
|
2581
|
+
for (let [e, n] of t.entries()) {
|
|
2582
|
+
let t = r.get(e);
|
|
2583
|
+
if (!t) continue;
|
|
2584
|
+
if (n === null) throw Error(`Cannot substitute '${e}' as the underlying variable '${n}' is unavailable`);
|
|
2585
|
+
let a = [];
|
|
2586
|
+
for (let r of t) i.push({
|
|
2587
|
+
from: e,
|
|
2588
|
+
to: n,
|
|
2589
|
+
offset: r.offset,
|
|
2590
|
+
isShorthandAssignmentProperty: r.isShorthandAssignmentProperty
|
|
2591
|
+
}), a.push(...r.scope.findBinders(n));
|
|
2592
|
+
for (let e of a) {
|
|
2593
|
+
if (e.definitionKind === d.FIXED) throw Error(`Cannot avoid capture of '${n}'`);
|
|
2594
|
+
let t = o(n);
|
|
2595
|
+
for (let r of e.uses) i.push({
|
|
2596
|
+
from: n,
|
|
2597
|
+
to: t,
|
|
2598
|
+
offset: r.offset,
|
|
2599
|
+
isShorthandAssignmentProperty: r.isShorthandAssignmentProperty
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
return i.sort((e, t) => e.offset - t.offset), i;
|
|
2604
|
+
}
|
|
2605
|
+
function z(e, t) {
|
|
2606
|
+
let n = [], r = 0;
|
|
2607
|
+
for (let i of t) {
|
|
2608
|
+
n.push(e.slice(r, i.offset));
|
|
2609
|
+
let t = i.to;
|
|
2610
|
+
i.isShorthandAssignmentProperty && (t = `${i.from}: ${i.to}`), n.push(t), r = i.offset + i.from.length;
|
|
2611
|
+
}
|
|
2612
|
+
return n.push(e.slice(r)), n.join("");
|
|
2613
|
+
}
|
|
2614
|
+
//#endregion
|
|
2615
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker/FormatterWorker.ts
|
|
2616
|
+
function ie(e) {
|
|
2617
|
+
let t = CodeMirror.getMode({ indentUnit: 2 }, e), n = CodeMirror.startState(t);
|
|
2618
|
+
if (!t || t.name === "null") throw Error(`Could not find CodeMirror mode for MimeType: ${e}`);
|
|
2619
|
+
if (!t.token) throw Error(`Could not find CodeMirror mode with token method: ${e}`);
|
|
2620
|
+
return (e, r) => {
|
|
2621
|
+
let i = new CodeMirror.StringStream(e);
|
|
2622
|
+
for (; !i.eol();) {
|
|
2623
|
+
let e = t.token(i, n), a = i.current();
|
|
2624
|
+
if (r(a, e, i.start, i.start + a.length) === B) return;
|
|
2625
|
+
i.start = i.pos;
|
|
2626
|
+
}
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2629
|
+
var B = {};
|
|
2630
|
+
function V(e, t, n) {
|
|
2631
|
+
n ||= " ";
|
|
2632
|
+
let r, a = new m(n), o = i(t);
|
|
2633
|
+
try {
|
|
2634
|
+
switch (e) {
|
|
2635
|
+
case u.TEXT_HTML:
|
|
2636
|
+
new x(a).format(t, o);
|
|
2637
|
+
break;
|
|
2638
|
+
case u.TEXT_CSS:
|
|
2639
|
+
new oe(a).format(t, o, 0, t.length);
|
|
2640
|
+
break;
|
|
2641
|
+
case u.APPLICATION_JAVASCRIPT:
|
|
2642
|
+
case u.TEXT_JAVASCRIPT:
|
|
2643
|
+
new y(a).format(t, o, 0, t.length);
|
|
2644
|
+
break;
|
|
2645
|
+
case u.APPLICATION_JSON:
|
|
2646
|
+
case u.APPLICATION_MANIFEST_JSON:
|
|
2647
|
+
new b(a).format(t, o, 0, t.length);
|
|
2648
|
+
break;
|
|
2649
|
+
default: new k(a).format(t, o, 0, t.length);
|
|
2650
|
+
}
|
|
2651
|
+
r = {
|
|
2652
|
+
mapping: a.mapping,
|
|
2653
|
+
content: a.content()
|
|
2654
|
+
};
|
|
2655
|
+
} catch (e) {
|
|
2656
|
+
console.error(e), r = {
|
|
2657
|
+
mapping: {
|
|
2658
|
+
original: [0],
|
|
2659
|
+
formatted: [0]
|
|
2660
|
+
},
|
|
2661
|
+
content: t
|
|
2662
|
+
};
|
|
2663
|
+
}
|
|
2664
|
+
return r;
|
|
2665
|
+
}
|
|
2666
|
+
(function() {
|
|
2667
|
+
o.queryParam("test") && (console.error = () => void 0);
|
|
2668
|
+
})();
|
|
2669
|
+
//#endregion
|
|
2670
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/formatter_worker/CSSFormatter.ts
|
|
2671
|
+
var ae = (e) => e.replace(/(?:\r?\n|[\t\f\r ])+$/g, ""), oe = class {
|
|
2672
|
+
#e;
|
|
2673
|
+
#t;
|
|
2674
|
+
#n;
|
|
2675
|
+
#r;
|
|
2676
|
+
#i = -1;
|
|
2677
|
+
#a = {};
|
|
2678
|
+
constructor(e) {
|
|
2679
|
+
this.#e = e;
|
|
2680
|
+
}
|
|
2681
|
+
format(e, t, n, r) {
|
|
2682
|
+
this.#r = t, this.#n = n, this.#t = r, this.#a = {}, this.#i = -1;
|
|
2683
|
+
let i = ie("text/css"), a = this.#e.setEnforceSpaceBetweenWords(!1);
|
|
2684
|
+
i(e.substring(this.#n, this.#t), this.#o.bind(this)), this.#e.setEnforceSpaceBetweenWords(a);
|
|
2685
|
+
}
|
|
2686
|
+
#o(t, n, r) {
|
|
2687
|
+
r += this.#n;
|
|
2688
|
+
let i = a(this.#r, r, e);
|
|
2689
|
+
if (i !== this.#i && (this.#a.eatWhitespace = !0), n && (/^property/.test(n) || /^variable-2/.test(n)) && !this.#a.inPropertyValue && (this.#a.seenProperty = !0), this.#i = i, /^(?:\r?\n|[\t\f\r ])+$/.test(t)) {
|
|
2690
|
+
this.#a.eatWhitespace || this.#e.addSoftSpace();
|
|
2691
|
+
return;
|
|
2692
|
+
}
|
|
2693
|
+
if (this.#a.eatWhitespace = !1, t !== "\n") {
|
|
2694
|
+
if (t !== "}" && (this.#a.afterClosingBrace && this.#e.addNewLine(!0), this.#a.afterClosingBrace = !1), t === "}") this.#a.inPropertyValue && this.#e.addNewLine(), this.#e.decreaseNestingLevel(), this.#a.afterClosingBrace = !0, this.#a.inPropertyValue = !1;
|
|
2695
|
+
else if (t === ":" && !this.#a.inPropertyValue && this.#a.seenProperty) {
|
|
2696
|
+
this.#e.addToken(t, r), this.#e.addSoftSpace(), this.#a.eatWhitespace = !0, this.#a.inPropertyValue = !0, this.#a.seenProperty = !1;
|
|
2697
|
+
return;
|
|
2698
|
+
} else if (t === "{") {
|
|
2699
|
+
this.#e.addSoftSpace(), this.#e.addToken(t, r), this.#e.addNewLine(), this.#e.increaseNestingLevel();
|
|
2700
|
+
return;
|
|
2701
|
+
}
|
|
2702
|
+
this.#e.addToken(ae(t), r), n === "comment" && !this.#a.inPropertyValue && !this.#a.seenProperty && this.#e.addNewLine(), t === ";" && this.#a.inPropertyValue ? (this.#a.inPropertyValue = !1, this.#e.addNewLine()) : t === "}" && this.#e.addNewLine();
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
}, H = {
|
|
2706
|
+
Initial: "Initial",
|
|
2707
|
+
Selector: "Selector",
|
|
2708
|
+
Style: "Style",
|
|
2709
|
+
PropertyName: "PropertyName",
|
|
2710
|
+
PropertyValue: "PropertyValue",
|
|
2711
|
+
AtRule: "AtRule"
|
|
2712
|
+
};
|
|
2713
|
+
function U(e, t) {
|
|
2714
|
+
let n = e.split("\n"), r = [], i = 0, a = H.Initial, o, s, c = /* @__PURE__ */ new Set(), l = [];
|
|
2715
|
+
function u(e) {
|
|
2716
|
+
l = l.concat(e.chunk);
|
|
2717
|
+
}
|
|
2718
|
+
function d(e) {
|
|
2719
|
+
return e.replace(/^(?:\r?\n|[\t\f\r ])+|(?:\r?\n|[\t\f\r ])+$/g, "");
|
|
2720
|
+
}
|
|
2721
|
+
function f(e, n, f, p) {
|
|
2722
|
+
let g = n ? new Set(n.split(" ")) : c;
|
|
2723
|
+
switch (a) {
|
|
2724
|
+
case H.Initial:
|
|
2725
|
+
g.has("qualifier") || g.has("builtin") || g.has("tag") ? (o = {
|
|
2726
|
+
selectorText: e,
|
|
2727
|
+
lineNumber: m,
|
|
2728
|
+
columnNumber: f,
|
|
2729
|
+
properties: []
|
|
2730
|
+
}, a = H.Selector) : g.has("def") && (o = {
|
|
2731
|
+
atRule: e,
|
|
2732
|
+
lineNumber: m,
|
|
2733
|
+
columnNumber: f
|
|
2734
|
+
}, a = H.AtRule);
|
|
2735
|
+
break;
|
|
2736
|
+
case H.Selector:
|
|
2737
|
+
e === "{" && g === c ? (o.selectorText = d(o.selectorText), o.styleRange = h(m, p), a = H.Style) : o.selectorText += e;
|
|
2738
|
+
break;
|
|
2739
|
+
case H.AtRule:
|
|
2740
|
+
(e === ";" || e === "{") && g === c ? (o.atRule = d(o.atRule), r.push(o), a = H.Initial) : o.atRule += e;
|
|
2741
|
+
break;
|
|
2742
|
+
case H.Style:
|
|
2743
|
+
if (g.has("meta") || g.has("property") || g.has("variable-2")) s = {
|
|
2744
|
+
name: e,
|
|
2745
|
+
value: "",
|
|
2746
|
+
range: h(m, f),
|
|
2747
|
+
nameRange: h(m, f)
|
|
2748
|
+
}, a = H.PropertyName;
|
|
2749
|
+
else if (e === "}" && g === c) o.styleRange.endLine = m, o.styleRange.endColumn = f, r.push(o), a = H.Initial;
|
|
2750
|
+
else if (g.has("comment")) {
|
|
2751
|
+
if (e.substring(0, 2) !== "/*" || e.substring(e.length - 2) !== "*/") break;
|
|
2752
|
+
let t = "a{\n" + e.substring(2, e.length - 2) + "}";
|
|
2753
|
+
if (l = [], U(t, u), l.length === 1 && l[0].properties.length === 1) {
|
|
2754
|
+
let e = l[0].properties[0];
|
|
2755
|
+
e.disabled = !0, e.range = h(m, f), e.range.endColumn = p;
|
|
2756
|
+
let t = m - 1, n = f + 2;
|
|
2757
|
+
e.nameRange.startLine += t, e.nameRange.startColumn += n, e.nameRange.endLine += t, e.nameRange.endColumn += n, e.valueRange.startLine += t, e.valueRange.startColumn += n, e.valueRange.endLine += t, e.valueRange.endColumn += n, o.properties.push(e);
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
break;
|
|
2761
|
+
case H.PropertyName:
|
|
2762
|
+
e === ":" && g === c ? (s.name = s.name, s.nameRange.endLine = m, s.nameRange.endColumn = f, s.valueRange = h(m, p), a = H.PropertyValue) : g.has("property") && (s.name += e);
|
|
2763
|
+
break;
|
|
2764
|
+
case H.PropertyValue:
|
|
2765
|
+
(e === ";" || e === "}") && g === c ? (s.value = s.value, s.valueRange.endLine = m, s.valueRange.endColumn = f, s.range.endLine = m, s.range.endColumn = e === ";" ? p : f, o.properties.push(s), e === "}" ? (o.styleRange.endLine = m, o.styleRange.endColumn = f, r.push(o), a = H.Initial) : a = H.Style) : g.has("comment") || (s.value += e);
|
|
2766
|
+
break;
|
|
2767
|
+
default: console.assert(!1, "Unknown CSS parser state.");
|
|
2768
|
+
}
|
|
2769
|
+
i += p - f, i > 1e5 && (t({
|
|
2770
|
+
chunk: r,
|
|
2771
|
+
isLastChunk: !1
|
|
2772
|
+
}), r = [], i = 0);
|
|
2773
|
+
}
|
|
2774
|
+
let p = ie("text/css"), m;
|
|
2775
|
+
for (m = 0; m < n.length; ++m) {
|
|
2776
|
+
let e = n[m];
|
|
2777
|
+
p(e, f), f("\n", null, e.length, e.length + 1);
|
|
2778
|
+
}
|
|
2779
|
+
t({
|
|
2780
|
+
chunk: r,
|
|
2781
|
+
isLastChunk: !0
|
|
2782
|
+
});
|
|
2783
|
+
function h(e, t) {
|
|
2784
|
+
return {
|
|
2785
|
+
startLine: e,
|
|
2786
|
+
startColumn: t,
|
|
2787
|
+
endLine: e,
|
|
2788
|
+
endColumn: t
|
|
2789
|
+
};
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
t.workerScope.onmessage = function(e) {
|
|
2793
|
+
let n = e.data.method, i = e.data.params;
|
|
2794
|
+
if (n) switch (n) {
|
|
2795
|
+
case l.FORMAT:
|
|
2796
|
+
t.workerScope.postMessage(V(i.mimeType, i.content, i.indentString));
|
|
2797
|
+
break;
|
|
2798
|
+
case l.PARSE_CSS:
|
|
2799
|
+
U(i.content, self.postMessage);
|
|
2800
|
+
break;
|
|
2801
|
+
case l.JAVASCRIPT_SUBSTITUTE:
|
|
2802
|
+
t.workerScope.postMessage(L(i.content, i.mapping));
|
|
2803
|
+
break;
|
|
2804
|
+
case l.JAVASCRIPT_SCOPE_TREE:
|
|
2805
|
+
t.workerScope.postMessage(A(i.content, i.sourceType)?.export());
|
|
2806
|
+
break;
|
|
2807
|
+
default: r(n, `Unsupport method name: ${n}`);
|
|
2808
|
+
}
|
|
2809
|
+
}, t.workerScope.postMessage("workerReady");
|
|
2810
|
+
//#endregion
|