@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,1512 @@
|
|
|
1
|
+
import { $ as e, Cn as t, D as n, F as r, Fn as i, Ft as a, G as o, Ht as s, I as c, Nt as l, Ot as u, P as d, Tt as f, Wt as p, _n as m, an as h, bt as g, cn as ee, d as te, g as ne, h as re, ln as _, nt as ie, o as ae, q as oe, rt as v, x as se, xt as y } from "./codemirror-CBR9VJma.js";
|
|
2
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/third_party/codemirror.next/chunk/markdown.js
|
|
3
|
+
var ce = class e {
|
|
4
|
+
static create(t, n, r, i, a) {
|
|
5
|
+
return new e(t, n, r, i + (i << 8) + t + (n << 4) | 0, a, [], []);
|
|
6
|
+
}
|
|
7
|
+
constructor(e, t, n, r, i, a, o) {
|
|
8
|
+
this.type = e, this.value = t, this.from = n, this.hash = r, this.end = i, this.children = a, this.positions = o, this.hashProp = [[h.contextHash, r]];
|
|
9
|
+
}
|
|
10
|
+
addChild(e, t) {
|
|
11
|
+
e.prop(h.contextHash) != this.hash && (e = new r(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(t);
|
|
12
|
+
}
|
|
13
|
+
toTree(e, t = this.end) {
|
|
14
|
+
let n = this.children.length - 1;
|
|
15
|
+
return n >= 0 && (t = Math.max(t, this.positions[n] + this.children[n].length + this.from)), new r(e.types[this.type], this.children, this.positions, t - this.from).balance({ makeTree: (e, t, n) => new r(_.none, e, t, n, this.hashProp) });
|
|
16
|
+
}
|
|
17
|
+
}, b;
|
|
18
|
+
(function(e) {
|
|
19
|
+
e[e.Document = 1] = "Document", e[e.CodeBlock = 2] = "CodeBlock", e[e.FencedCode = 3] = "FencedCode", e[e.Blockquote = 4] = "Blockquote", e[e.HorizontalRule = 5] = "HorizontalRule", e[e.BulletList = 6] = "BulletList", e[e.OrderedList = 7] = "OrderedList", e[e.ListItem = 8] = "ListItem", e[e.ATXHeading1 = 9] = "ATXHeading1", e[e.ATXHeading2 = 10] = "ATXHeading2", e[e.ATXHeading3 = 11] = "ATXHeading3", e[e.ATXHeading4 = 12] = "ATXHeading4", e[e.ATXHeading5 = 13] = "ATXHeading5", e[e.ATXHeading6 = 14] = "ATXHeading6", e[e.SetextHeading1 = 15] = "SetextHeading1", e[e.SetextHeading2 = 16] = "SetextHeading2", e[e.HTMLBlock = 17] = "HTMLBlock", e[e.LinkReference = 18] = "LinkReference", e[e.Paragraph = 19] = "Paragraph", e[e.CommentBlock = 20] = "CommentBlock", e[e.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", e[e.Escape = 22] = "Escape", e[e.Entity = 23] = "Entity", e[e.HardBreak = 24] = "HardBreak", e[e.Emphasis = 25] = "Emphasis", e[e.StrongEmphasis = 26] = "StrongEmphasis", e[e.Link = 27] = "Link", e[e.Image = 28] = "Image", e[e.InlineCode = 29] = "InlineCode", e[e.HTMLTag = 30] = "HTMLTag", e[e.Comment = 31] = "Comment", e[e.ProcessingInstruction = 32] = "ProcessingInstruction", e[e.Autolink = 33] = "Autolink", e[e.HeaderMark = 34] = "HeaderMark", e[e.QuoteMark = 35] = "QuoteMark", e[e.ListMark = 36] = "ListMark", e[e.LinkMark = 37] = "LinkMark", e[e.EmphasisMark = 38] = "EmphasisMark", e[e.CodeMark = 39] = "CodeMark", e[e.CodeText = 40] = "CodeText", e[e.CodeInfo = 41] = "CodeInfo", e[e.LinkTitle = 42] = "LinkTitle", e[e.LinkLabel = 43] = "LinkLabel", e[e.URL = 44] = "URL";
|
|
20
|
+
})(b ||= {});
|
|
21
|
+
var le = class {
|
|
22
|
+
constructor(e, t) {
|
|
23
|
+
this.start = e, this.content = t, this.marks = [], this.parsers = [];
|
|
24
|
+
}
|
|
25
|
+
}, ue = class {
|
|
26
|
+
constructor() {
|
|
27
|
+
this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1;
|
|
28
|
+
}
|
|
29
|
+
forward() {
|
|
30
|
+
this.basePos > this.pos && this.forwardInner();
|
|
31
|
+
}
|
|
32
|
+
forwardInner() {
|
|
33
|
+
let e = this.skipSpace(this.basePos);
|
|
34
|
+
this.indent = this.countIndent(e, this.pos, this.indent), this.pos = e, this.next = e == this.text.length ? -1 : this.text.charCodeAt(e);
|
|
35
|
+
}
|
|
36
|
+
skipSpace(e) {
|
|
37
|
+
return S(this.text, e);
|
|
38
|
+
}
|
|
39
|
+
reset(e) {
|
|
40
|
+
for (this.text = e, this.baseIndent = this.basePos = this.pos = this.indent = 0, this.forwardInner(), this.depth = 1; this.markers.length;) this.markers.pop();
|
|
41
|
+
}
|
|
42
|
+
moveBase(e) {
|
|
43
|
+
this.basePos = e, this.baseIndent = this.countIndent(e, this.pos, this.indent);
|
|
44
|
+
}
|
|
45
|
+
moveBaseColumn(e) {
|
|
46
|
+
this.baseIndent = e, this.basePos = this.findColumn(e);
|
|
47
|
+
}
|
|
48
|
+
addMarker(e) {
|
|
49
|
+
this.markers.push(e);
|
|
50
|
+
}
|
|
51
|
+
countIndent(e, t = 0, n = 0) {
|
|
52
|
+
for (let r = t; r < e; r++) n += this.text.charCodeAt(r) == 9 ? 4 - n % 4 : 1;
|
|
53
|
+
return n;
|
|
54
|
+
}
|
|
55
|
+
findColumn(e) {
|
|
56
|
+
let t = 0;
|
|
57
|
+
for (let n = 0; t < this.text.length && n < e; t++) n += this.text.charCodeAt(t) == 9 ? 4 - n % 4 : 1;
|
|
58
|
+
return t;
|
|
59
|
+
}
|
|
60
|
+
scrub() {
|
|
61
|
+
if (!this.baseIndent) return this.text;
|
|
62
|
+
let e = "";
|
|
63
|
+
for (let t = 0; t < this.basePos; t++) e += " ";
|
|
64
|
+
return e + this.text.slice(this.basePos);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
function de(e, t, n) {
|
|
68
|
+
if (n.pos == n.text.length || e != t.block && n.indent >= t.stack[n.depth + 1].value + n.baseIndent) return !0;
|
|
69
|
+
if (n.indent >= n.baseIndent + 4) return !1;
|
|
70
|
+
let r = (e.type == b.OrderedList ? E : T)(n, t, !1);
|
|
71
|
+
return r > 0 && (e.type != b.BulletList || C(n, t, !1) < 0) && n.text.charCodeAt(n.pos + r - 1) == e.value;
|
|
72
|
+
}
|
|
73
|
+
var fe = {
|
|
74
|
+
[b.Blockquote]: (e, t, n) => n.next == 62 && (n.markers.push(R(b.QuoteMark, t.lineStart + n.pos, t.lineStart + n.pos + 1)), n.moveBase(n.pos + (x(n.text.charCodeAt(n.pos + 1)) ? 2 : 1)), e.end = t.lineStart + n.text.length, !0),
|
|
75
|
+
[b.ListItem]: (e, t, n) => !(n.indent < n.baseIndent + e.value && n.next > -1) && (n.moveBaseColumn(n.baseIndent + e.value), !0),
|
|
76
|
+
[b.OrderedList]: de,
|
|
77
|
+
[b.BulletList]: de,
|
|
78
|
+
[b.Document]: () => !0
|
|
79
|
+
};
|
|
80
|
+
function x(e) {
|
|
81
|
+
return e == 32 || e == 9 || e == 10 || e == 13;
|
|
82
|
+
}
|
|
83
|
+
function S(e, t = 0) {
|
|
84
|
+
for (; t < e.length && x(e.charCodeAt(t));) t++;
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
87
|
+
function pe(e, t, n) {
|
|
88
|
+
for (; t > n && x(e.charCodeAt(t - 1));) t--;
|
|
89
|
+
return t;
|
|
90
|
+
}
|
|
91
|
+
function me(e) {
|
|
92
|
+
if (e.next != 96 && e.next != 126) return -1;
|
|
93
|
+
let t = e.pos + 1;
|
|
94
|
+
for (; t < e.text.length && e.text.charCodeAt(t) == e.next;) t++;
|
|
95
|
+
if (t < e.pos + 3) return -1;
|
|
96
|
+
if (e.next == 96) {
|
|
97
|
+
for (let n = t; n < e.text.length; n++) if (e.text.charCodeAt(n) == 96) return -1;
|
|
98
|
+
}
|
|
99
|
+
return t;
|
|
100
|
+
}
|
|
101
|
+
function he(e) {
|
|
102
|
+
return e.next == 62 ? e.text.charCodeAt(e.pos + 1) == 32 ? 2 : 1 : -1;
|
|
103
|
+
}
|
|
104
|
+
function C(e, t, n) {
|
|
105
|
+
if (e.next != 42 && e.next != 45 && e.next != 95) return -1;
|
|
106
|
+
let r = 1;
|
|
107
|
+
for (let t = e.pos + 1; t < e.text.length; t++) {
|
|
108
|
+
let n = e.text.charCodeAt(t);
|
|
109
|
+
if (n == e.next) r++;
|
|
110
|
+
else if (!x(n)) return -1;
|
|
111
|
+
}
|
|
112
|
+
return n && e.next == 45 && ge(e) > -1 && e.depth == t.stack.length && t.parser.leafBlockParsers.indexOf(Ce.SetextHeading) > -1 || r < 3 ? -1 : 1;
|
|
113
|
+
}
|
|
114
|
+
function w(e, t) {
|
|
115
|
+
for (let n = e.stack.length - 1; n >= 0; n--) if (e.stack[n].type == t) return !0;
|
|
116
|
+
return !1;
|
|
117
|
+
}
|
|
118
|
+
function T(e, t, n) {
|
|
119
|
+
return e.next != 45 && e.next != 43 && e.next != 42 || e.pos != e.text.length - 1 && !x(e.text.charCodeAt(e.pos + 1)) || !(!n || w(t, b.BulletList) || e.skipSpace(e.pos + 2) < e.text.length) ? -1 : 1;
|
|
120
|
+
}
|
|
121
|
+
function E(e, t, n) {
|
|
122
|
+
let r = e.pos, i = e.next;
|
|
123
|
+
for (; i >= 48 && i <= 57;) {
|
|
124
|
+
if (r++, r == e.text.length) return -1;
|
|
125
|
+
i = e.text.charCodeAt(r);
|
|
126
|
+
}
|
|
127
|
+
return r == e.pos || r > e.pos + 9 || i != 46 && i != 41 || r < e.text.length - 1 && !x(e.text.charCodeAt(r + 1)) || n && !w(t, b.OrderedList) && (e.skipSpace(r + 1) == e.text.length || r > e.pos + 1 || e.next != 49) ? -1 : r + 1 - e.pos;
|
|
128
|
+
}
|
|
129
|
+
function D(e) {
|
|
130
|
+
if (e.next != 35) return -1;
|
|
131
|
+
let t = e.pos + 1;
|
|
132
|
+
for (; t < e.text.length && e.text.charCodeAt(t) == 35;) t++;
|
|
133
|
+
if (t < e.text.length && e.text.charCodeAt(t) != 32) return -1;
|
|
134
|
+
let n = t - e.pos;
|
|
135
|
+
return n > 6 ? -1 : n;
|
|
136
|
+
}
|
|
137
|
+
function ge(e) {
|
|
138
|
+
if (e.next != 45 && e.next != 61 || e.indent >= e.baseIndent + 4) return -1;
|
|
139
|
+
let t = e.pos + 1;
|
|
140
|
+
for (; t < e.text.length && e.text.charCodeAt(t) == e.next;) t++;
|
|
141
|
+
let n = t;
|
|
142
|
+
for (; t < e.text.length && x(e.text.charCodeAt(t));) t++;
|
|
143
|
+
return t == e.text.length ? n : -1;
|
|
144
|
+
}
|
|
145
|
+
var O = /^[ \t]*$/, _e = /-->/, ve = /\?>/, k = [
|
|
146
|
+
[/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i],
|
|
147
|
+
[/^\s*<!--/, _e],
|
|
148
|
+
[/^\s*<\?/, ve],
|
|
149
|
+
[/^\s*<![A-Z]/, />/],
|
|
150
|
+
[/^\s*<!\[CDATA\[/, /\]\]>/],
|
|
151
|
+
[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i, O],
|
|
152
|
+
[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i, O]
|
|
153
|
+
];
|
|
154
|
+
function ye(e, t, n) {
|
|
155
|
+
if (e.next != 60) return -1;
|
|
156
|
+
let r = e.text.slice(e.pos);
|
|
157
|
+
for (let e = 0, t = k.length - +!!n; e < t; e++) if (k[e][0].test(r)) return e;
|
|
158
|
+
return -1;
|
|
159
|
+
}
|
|
160
|
+
function be(e, t) {
|
|
161
|
+
let n = e.countIndent(t, e.pos, e.indent), r = e.countIndent(e.skipSpace(t), t, n);
|
|
162
|
+
return r >= n + 5 ? n + 1 : r;
|
|
163
|
+
}
|
|
164
|
+
function A(e, t, n) {
|
|
165
|
+
let r = e.length - 1;
|
|
166
|
+
r >= 0 && e[r].to == t && e[r].type == b.CodeText ? e[r].to = n : e.push(R(b.CodeText, t, n));
|
|
167
|
+
}
|
|
168
|
+
var j = {
|
|
169
|
+
LinkReference: void 0,
|
|
170
|
+
IndentedCode(e, t) {
|
|
171
|
+
let n = t.baseIndent + 4;
|
|
172
|
+
if (t.indent < n) return !1;
|
|
173
|
+
let r = t.findColumn(n), i = e.lineStart + r, a = e.lineStart + t.text.length, o = [], s = [];
|
|
174
|
+
for (A(o, i, a); e.nextLine() && t.depth >= e.stack.length;) if (t.pos == t.text.length) {
|
|
175
|
+
A(s, e.lineStart - 1, e.lineStart);
|
|
176
|
+
for (let e of t.markers) s.push(e);
|
|
177
|
+
} else {
|
|
178
|
+
if (t.indent < n) break;
|
|
179
|
+
{
|
|
180
|
+
if (s.length) {
|
|
181
|
+
for (let e of s) e.type == b.CodeText ? A(o, e.from, e.to) : o.push(e);
|
|
182
|
+
s = [];
|
|
183
|
+
}
|
|
184
|
+
A(o, e.lineStart - 1, e.lineStart);
|
|
185
|
+
for (let e of t.markers) o.push(e);
|
|
186
|
+
a = e.lineStart + t.text.length;
|
|
187
|
+
let n = e.lineStart + t.findColumn(t.baseIndent + 4);
|
|
188
|
+
n < a && A(o, n, a);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return s.length && (s = s.filter((e) => e.type != b.CodeText), s.length && (t.markers = s.concat(t.markers))), e.addNode(e.buffer.writeElements(o, -i).finish(b.CodeBlock, a - i), i), !0;
|
|
192
|
+
},
|
|
193
|
+
FencedCode(e, t) {
|
|
194
|
+
let n = me(t);
|
|
195
|
+
if (n < 0) return !1;
|
|
196
|
+
let r = e.lineStart + t.pos, i = t.next, a = n - t.pos, o = t.skipSpace(n), s = pe(t.text, t.text.length, o), c = [R(b.CodeMark, r, r + a)];
|
|
197
|
+
o < s && c.push(R(b.CodeInfo, e.lineStart + o, e.lineStart + s));
|
|
198
|
+
for (let n = !0; e.nextLine() && t.depth >= e.stack.length; n = !1) {
|
|
199
|
+
let r = t.pos;
|
|
200
|
+
if (t.indent - t.baseIndent < 4) for (; r < t.text.length && t.text.charCodeAt(r) == i;) r++;
|
|
201
|
+
if (r - t.pos >= a && t.skipSpace(r) == t.text.length) {
|
|
202
|
+
for (let e of t.markers) c.push(e);
|
|
203
|
+
c.push(R(b.CodeMark, e.lineStart + t.pos, e.lineStart + r)), e.nextLine();
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
{
|
|
207
|
+
n || A(c, e.lineStart - 1, e.lineStart);
|
|
208
|
+
for (let e of t.markers) c.push(e);
|
|
209
|
+
let r = e.lineStart + t.basePos, i = e.lineStart + t.text.length;
|
|
210
|
+
r < i && A(c, r, i);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return e.addNode(e.buffer.writeElements(c, -r).finish(b.FencedCode, e.prevLineEnd() - r), r), !0;
|
|
214
|
+
},
|
|
215
|
+
Blockquote(e, t) {
|
|
216
|
+
let n = he(t);
|
|
217
|
+
return !(n < 0) && (e.startContext(b.Blockquote, t.pos), e.addNode(b.QuoteMark, e.lineStart + t.pos, e.lineStart + t.pos + 1), t.moveBase(t.pos + n), null);
|
|
218
|
+
},
|
|
219
|
+
HorizontalRule(e, t) {
|
|
220
|
+
if (C(t, e, !1) < 0) return !1;
|
|
221
|
+
let n = e.lineStart + t.pos;
|
|
222
|
+
return e.nextLine(), e.addNode(b.HorizontalRule, n), !0;
|
|
223
|
+
},
|
|
224
|
+
BulletList(e, t) {
|
|
225
|
+
let n = T(t, e, !1);
|
|
226
|
+
if (n < 0) return !1;
|
|
227
|
+
e.block.type != b.BulletList && e.startContext(b.BulletList, t.basePos, t.next);
|
|
228
|
+
let r = be(t, t.pos + 1);
|
|
229
|
+
return e.startContext(b.ListItem, t.basePos, r - t.baseIndent), e.addNode(b.ListMark, e.lineStart + t.pos, e.lineStart + t.pos + n), t.moveBaseColumn(r), null;
|
|
230
|
+
},
|
|
231
|
+
OrderedList(e, t) {
|
|
232
|
+
let n = E(t, e, !1);
|
|
233
|
+
if (n < 0) return !1;
|
|
234
|
+
e.block.type != b.OrderedList && e.startContext(b.OrderedList, t.basePos, t.text.charCodeAt(t.pos + n - 1));
|
|
235
|
+
let r = be(t, t.pos + n);
|
|
236
|
+
return e.startContext(b.ListItem, t.basePos, r - t.baseIndent), e.addNode(b.ListMark, e.lineStart + t.pos, e.lineStart + t.pos + n), t.moveBaseColumn(r), null;
|
|
237
|
+
},
|
|
238
|
+
ATXHeading(e, t) {
|
|
239
|
+
let n = D(t);
|
|
240
|
+
if (n < 0) return !1;
|
|
241
|
+
let r = t.pos, i = e.lineStart + r, a = pe(t.text, t.text.length, r), o = a;
|
|
242
|
+
for (; o > r && t.text.charCodeAt(o - 1) == t.next;) o--;
|
|
243
|
+
o != a && o != r && x(t.text.charCodeAt(o - 1)) || (o = t.text.length);
|
|
244
|
+
let s = e.buffer.write(b.HeaderMark, 0, n).writeElements(e.parser.parseInline(t.text.slice(r + n + 1, o), i + n + 1), -i);
|
|
245
|
+
o < t.text.length && s.write(b.HeaderMark, o - r, a - r);
|
|
246
|
+
let c = s.finish(b.ATXHeading1 - 1 + n, t.text.length - r);
|
|
247
|
+
return e.nextLine(), e.addNode(c, i), !0;
|
|
248
|
+
},
|
|
249
|
+
HTMLBlock(e, t) {
|
|
250
|
+
let n = ye(t, 0, !1);
|
|
251
|
+
if (n < 0) return !1;
|
|
252
|
+
let r = e.lineStart + t.pos, i = k[n][1], a = [], o = i != O;
|
|
253
|
+
for (; !i.test(t.text) && e.nextLine();) {
|
|
254
|
+
if (t.depth < e.stack.length) {
|
|
255
|
+
o = !1;
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
for (let e of t.markers) a.push(e);
|
|
259
|
+
}
|
|
260
|
+
o && e.nextLine();
|
|
261
|
+
let s = i == _e ? b.CommentBlock : i == ve ? b.ProcessingInstructionBlock : b.HTMLBlock, c = e.prevLineEnd();
|
|
262
|
+
return e.addNode(e.buffer.writeElements(a, -r).finish(s, c - r), r), !0;
|
|
263
|
+
},
|
|
264
|
+
SetextHeading: void 0
|
|
265
|
+
}, xe = class {
|
|
266
|
+
constructor(e) {
|
|
267
|
+
this.stage = 0, this.elts = [], this.pos = 0, this.start = e.start, this.advance(e.content);
|
|
268
|
+
}
|
|
269
|
+
nextLine(e, t, n) {
|
|
270
|
+
if (this.stage == -1) return !1;
|
|
271
|
+
let r = n.content + "\n" + t.scrub(), i = this.advance(r);
|
|
272
|
+
return i > -1 && i < r.length && this.complete(e, n, i);
|
|
273
|
+
}
|
|
274
|
+
finish(e, t) {
|
|
275
|
+
return (this.stage == 2 || this.stage == 3) && S(t.content, this.pos) == t.content.length && this.complete(e, t, t.content.length);
|
|
276
|
+
}
|
|
277
|
+
complete(e, t, n) {
|
|
278
|
+
return e.addLeafElement(t, R(b.LinkReference, this.start, this.start + n, this.elts)), !0;
|
|
279
|
+
}
|
|
280
|
+
nextStage(e) {
|
|
281
|
+
return e ? (this.pos = e.to - this.start, this.elts.push(e), this.stage++, !0) : (!1 === e && (this.stage = -1), !1);
|
|
282
|
+
}
|
|
283
|
+
advance(e) {
|
|
284
|
+
for (;;) {
|
|
285
|
+
if (this.stage == -1) return -1;
|
|
286
|
+
if (this.stage == 0) {
|
|
287
|
+
if (!this.nextStage(Re(e, this.pos, this.start, !0))) return -1;
|
|
288
|
+
if (e.charCodeAt(this.pos) != 58) return this.stage = -1;
|
|
289
|
+
this.elts.push(R(b.LinkMark, this.pos + this.start, this.pos + this.start + 1)), this.pos++;
|
|
290
|
+
} else {
|
|
291
|
+
if (this.stage != 1) {
|
|
292
|
+
if (this.stage == 2) {
|
|
293
|
+
let t = S(e, this.pos), n = 0;
|
|
294
|
+
if (t > this.pos) {
|
|
295
|
+
let r = Le(e, t, this.start);
|
|
296
|
+
if (r) {
|
|
297
|
+
let t = M(e, r.to - this.start);
|
|
298
|
+
t > 0 && (this.nextStage(r), n = t);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return n ||= M(e, this.pos), n > 0 && n < e.length ? n : -1;
|
|
302
|
+
}
|
|
303
|
+
return M(e, this.pos);
|
|
304
|
+
}
|
|
305
|
+
if (!this.nextStage(Ie(e, S(e, this.pos), this.start))) return -1;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
function M(e, t) {
|
|
311
|
+
for (; t < e.length; t++) {
|
|
312
|
+
let n = e.charCodeAt(t);
|
|
313
|
+
if (n == 10) break;
|
|
314
|
+
if (!x(n)) return -1;
|
|
315
|
+
}
|
|
316
|
+
return t;
|
|
317
|
+
}
|
|
318
|
+
var Se = class {
|
|
319
|
+
nextLine(e, t, n) {
|
|
320
|
+
let r = t.depth < e.stack.length ? -1 : ge(t), i = t.next;
|
|
321
|
+
if (r < 0) return !1;
|
|
322
|
+
let a = R(b.HeaderMark, e.lineStart + t.pos, e.lineStart + r);
|
|
323
|
+
return e.nextLine(), e.addLeafElement(n, R(i == 61 ? b.SetextHeading1 : b.SetextHeading2, n.start, e.prevLineEnd(), [...e.parser.parseInline(n.content, n.start), a])), !0;
|
|
324
|
+
}
|
|
325
|
+
finish() {
|
|
326
|
+
return !1;
|
|
327
|
+
}
|
|
328
|
+
}, Ce = {
|
|
329
|
+
LinkReference: (e, t) => t.content.charCodeAt(0) == 91 ? new xe(t) : null,
|
|
330
|
+
SetextHeading: () => new Se()
|
|
331
|
+
}, we = [
|
|
332
|
+
(e, t) => D(t) >= 0,
|
|
333
|
+
(e, t) => me(t) >= 0,
|
|
334
|
+
(e, t) => he(t) >= 0,
|
|
335
|
+
(e, t) => T(t, e, !0) >= 0,
|
|
336
|
+
(e, t) => E(t, e, !0) >= 0,
|
|
337
|
+
(e, t) => C(t, e, !0) >= 0,
|
|
338
|
+
(e, t) => ye(t, 0, !0) >= 0
|
|
339
|
+
], Te = {
|
|
340
|
+
text: "",
|
|
341
|
+
end: 0
|
|
342
|
+
}, Ee = class {
|
|
343
|
+
constructor(e, t, n, r) {
|
|
344
|
+
this.parser = e, this.input = t, this.ranges = r, this.line = new ue(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = r[r.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = r[0].from, this.block = ce.create(b.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new Ve(n, t) : null, this.readLine();
|
|
345
|
+
}
|
|
346
|
+
get parsedPos() {
|
|
347
|
+
return this.absoluteLineStart;
|
|
348
|
+
}
|
|
349
|
+
advance() {
|
|
350
|
+
if (this.stoppedAt != null && this.absoluteLineStart > this.stoppedAt) return this.finish();
|
|
351
|
+
let { line: e } = this;
|
|
352
|
+
for (;;) {
|
|
353
|
+
for (let t = 0;;) {
|
|
354
|
+
let n = e.depth < this.stack.length ? this.stack[this.stack.length - 1] : null;
|
|
355
|
+
for (; t < e.markers.length && (!n || e.markers[t].from < n.end);) {
|
|
356
|
+
let n = e.markers[t++];
|
|
357
|
+
this.addNode(n.type, n.from, n.to);
|
|
358
|
+
}
|
|
359
|
+
if (!n) break;
|
|
360
|
+
this.finishContext();
|
|
361
|
+
}
|
|
362
|
+
if (e.pos < e.text.length) break;
|
|
363
|
+
if (!this.nextLine()) return this.finish();
|
|
364
|
+
}
|
|
365
|
+
if (this.fragments && this.reuseFragment(e.basePos)) return null;
|
|
366
|
+
e: for (;;) {
|
|
367
|
+
for (let t of this.parser.blockParsers) if (t) {
|
|
368
|
+
let n = t(this, e);
|
|
369
|
+
if (n != 0) {
|
|
370
|
+
if (n == 1) return null;
|
|
371
|
+
e.forward();
|
|
372
|
+
continue e;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
let t = new le(this.lineStart + e.pos, e.text.slice(e.pos));
|
|
378
|
+
for (let e of this.parser.leafBlockParsers) if (e) {
|
|
379
|
+
let n = e(this, t);
|
|
380
|
+
n && t.parsers.push(n);
|
|
381
|
+
}
|
|
382
|
+
e: for (; this.nextLine() && e.pos != e.text.length;) {
|
|
383
|
+
if (e.indent < e.baseIndent + 4) {
|
|
384
|
+
for (let n of this.parser.endLeafBlock) if (n(this, e, t)) break e;
|
|
385
|
+
}
|
|
386
|
+
for (let n of t.parsers) if (n.nextLine(this, e, t)) return null;
|
|
387
|
+
t.content += "\n" + e.scrub();
|
|
388
|
+
for (let n of e.markers) t.marks.push(n);
|
|
389
|
+
}
|
|
390
|
+
return this.finishLeaf(t), null;
|
|
391
|
+
}
|
|
392
|
+
stopAt(e) {
|
|
393
|
+
if (this.stoppedAt != null && this.stoppedAt < e) throw RangeError("Can't move stoppedAt forward");
|
|
394
|
+
this.stoppedAt = e;
|
|
395
|
+
}
|
|
396
|
+
reuseFragment(e) {
|
|
397
|
+
if (!this.fragments.moveTo(this.absoluteLineStart + e, this.absoluteLineStart) || !this.fragments.matches(this.block.hash)) return !1;
|
|
398
|
+
let t = this.fragments.takeNodes(this);
|
|
399
|
+
return !!t && (this.absoluteLineStart += t, this.lineStart = He(this.absoluteLineStart, this.ranges), this.moveRangeI(), this.absoluteLineStart < this.to ? (this.lineStart++, this.absoluteLineStart++, this.readLine()) : (this.atEnd = !0, this.readLine()), !0);
|
|
400
|
+
}
|
|
401
|
+
get depth() {
|
|
402
|
+
return this.stack.length;
|
|
403
|
+
}
|
|
404
|
+
parentType(e = this.depth - 1) {
|
|
405
|
+
return this.parser.nodeSet.types[this.stack[e].type];
|
|
406
|
+
}
|
|
407
|
+
nextLine() {
|
|
408
|
+
return this.lineStart += this.line.text.length, this.absoluteLineEnd >= this.to ? (this.absoluteLineStart = this.absoluteLineEnd, this.atEnd = !0, this.readLine(), !1) : (this.lineStart++, this.absoluteLineStart = this.absoluteLineEnd + 1, this.moveRangeI(), this.readLine(), !0);
|
|
409
|
+
}
|
|
410
|
+
peekLine() {
|
|
411
|
+
return this.scanLine(this.absoluteLineEnd + 1).text;
|
|
412
|
+
}
|
|
413
|
+
moveRangeI() {
|
|
414
|
+
for (; this.rangeI < this.ranges.length - 1 && this.absoluteLineStart >= this.ranges[this.rangeI].to;) this.rangeI++, this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from);
|
|
415
|
+
}
|
|
416
|
+
scanLine(e) {
|
|
417
|
+
let t = Te;
|
|
418
|
+
if (t.end = e, e >= this.to) t.text = "";
|
|
419
|
+
else if (t.text = this.lineChunkAt(e), t.end += t.text.length, this.ranges.length > 1) {
|
|
420
|
+
let e = this.absoluteLineStart, n = this.rangeI;
|
|
421
|
+
for (; this.ranges[n].to < t.end;) {
|
|
422
|
+
n++;
|
|
423
|
+
let r = this.ranges[n].from, i = this.lineChunkAt(r);
|
|
424
|
+
t.end = r + i.length, t.text = t.text.slice(0, this.ranges[n - 1].to - e) + i, e = t.end - t.text.length;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
return t;
|
|
428
|
+
}
|
|
429
|
+
readLine() {
|
|
430
|
+
let { line: e } = this, { text: t, end: n } = this.scanLine(this.absoluteLineStart);
|
|
431
|
+
for (this.absoluteLineEnd = n, e.reset(t); e.depth < this.stack.length; e.depth++) {
|
|
432
|
+
let t = this.stack[e.depth], n = this.parser.skipContextMarkup[t.type];
|
|
433
|
+
if (!n) throw Error("Unhandled block context " + b[t.type]);
|
|
434
|
+
if (!n(t, this, e)) break;
|
|
435
|
+
e.forward();
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
lineChunkAt(e) {
|
|
439
|
+
let t, n = this.input.chunk(e);
|
|
440
|
+
if (this.input.lineChunks) t = n == "\n" ? "" : n;
|
|
441
|
+
else {
|
|
442
|
+
let e = n.indexOf("\n");
|
|
443
|
+
t = e < 0 ? n : n.slice(0, e);
|
|
444
|
+
}
|
|
445
|
+
return e + t.length > this.to ? t.slice(0, this.to - e) : t;
|
|
446
|
+
}
|
|
447
|
+
prevLineEnd() {
|
|
448
|
+
return this.atEnd ? this.lineStart : this.lineStart - 1;
|
|
449
|
+
}
|
|
450
|
+
startContext(e, t, n = 0) {
|
|
451
|
+
this.block = ce.create(e, n, this.lineStart + t, this.block.hash, this.lineStart + this.line.text.length), this.stack.push(this.block);
|
|
452
|
+
}
|
|
453
|
+
startComposite(e, t, n = 0) {
|
|
454
|
+
this.startContext(this.parser.getNodeType(e), t, n);
|
|
455
|
+
}
|
|
456
|
+
addNode(e, t, n) {
|
|
457
|
+
typeof e == "number" && (e = new r(this.parser.nodeSet.types[e], I, I, (n ?? this.prevLineEnd()) - t)), this.block.addChild(e, t - this.block.from);
|
|
458
|
+
}
|
|
459
|
+
addElement(e) {
|
|
460
|
+
this.block.addChild(e.toTree(this.parser.nodeSet), e.from - this.block.from);
|
|
461
|
+
}
|
|
462
|
+
addLeafElement(e, t) {
|
|
463
|
+
this.addNode(this.buffer.writeElements(W(t.children, e.marks), -t.from).finish(t.type, t.to - t.from), t.from);
|
|
464
|
+
}
|
|
465
|
+
finishContext() {
|
|
466
|
+
let e = this.stack.pop(), t = this.stack[this.stack.length - 1];
|
|
467
|
+
t.addChild(e.toTree(this.parser.nodeSet), e.from - t.from), this.block = t;
|
|
468
|
+
}
|
|
469
|
+
finish() {
|
|
470
|
+
for (; this.stack.length > 1;) this.finishContext();
|
|
471
|
+
return this.addGaps(this.block.toTree(this.parser.nodeSet, this.lineStart));
|
|
472
|
+
}
|
|
473
|
+
addGaps(e) {
|
|
474
|
+
return this.ranges.length > 1 ? De(this.ranges, 0, e.topNode, this.ranges[0].from, this.reusePlaceholders) : e;
|
|
475
|
+
}
|
|
476
|
+
finishLeaf(e) {
|
|
477
|
+
for (let t of e.parsers) if (t.finish(this, e)) return;
|
|
478
|
+
let t = W(this.parser.parseInline(e.content, e.start), e.marks);
|
|
479
|
+
this.addNode(this.buffer.writeElements(t, -e.start).finish(b.Paragraph, e.content.length), e.start);
|
|
480
|
+
}
|
|
481
|
+
elt(e, t, n, r) {
|
|
482
|
+
return typeof e == "string" ? R(this.parser.getNodeType(e), t, n, r) : new je(e, t);
|
|
483
|
+
}
|
|
484
|
+
get buffer() {
|
|
485
|
+
return new Ae(this.parser.nodeSet);
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
function De(e, t, n, i, a) {
|
|
489
|
+
let o = e[t].to, s = [], c = [], l = n.from + i;
|
|
490
|
+
function u(n, r) {
|
|
491
|
+
for (; r ? n >= o : n > o;) {
|
|
492
|
+
let r = e[t + 1].from - o;
|
|
493
|
+
i += r, n += r, t++, o = e[t].to;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
for (let r = n.firstChild; r; r = r.nextSibling) {
|
|
497
|
+
u(r.from + i, !0);
|
|
498
|
+
let n, d = r.from + i, f = a.get(r.tree);
|
|
499
|
+
f ? n = f : r.to + i > o ? (n = De(e, t, r, i, a), u(r.to + i, !1)) : n = r.toTree(), s.push(n), c.push(d - l);
|
|
500
|
+
}
|
|
501
|
+
return u(n.to + i, !1), new r(n.type, s, c, n.to + i - l, n.tree ? n.tree.propValues : void 0);
|
|
502
|
+
}
|
|
503
|
+
var Oe = class e extends ae {
|
|
504
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
505
|
+
super(), this.nodeSet = e, this.blockParsers = t, this.leafBlockParsers = n, this.blockNames = r, this.endLeafBlock = i, this.skipContextMarkup = a, this.inlineParsers = o, this.inlineNames = s, this.wrappers = c, this.nodeTypes = Object.create(null);
|
|
506
|
+
for (let t of e.types) this.nodeTypes[t.name] = t.id;
|
|
507
|
+
}
|
|
508
|
+
createParse(e, t, n) {
|
|
509
|
+
let r = new Ee(this, e, t, n);
|
|
510
|
+
for (let i of this.wrappers) r = i(r, e, t, n);
|
|
511
|
+
return r;
|
|
512
|
+
}
|
|
513
|
+
configure(t) {
|
|
514
|
+
let n = P(t);
|
|
515
|
+
if (!n) return this;
|
|
516
|
+
let { nodeSet: r, skipContextMarkup: i } = this, o = this.blockParsers.slice(), s = this.leafBlockParsers.slice(), l = this.blockNames.slice(), u = this.inlineParsers.slice(), d = this.inlineNames.slice(), p = this.endLeafBlock.slice(), m = this.wrappers;
|
|
517
|
+
if (N(n.defineNodes)) {
|
|
518
|
+
i = Object.assign({}, i);
|
|
519
|
+
let e, t = r.types.slice();
|
|
520
|
+
for (let r of n.defineNodes) {
|
|
521
|
+
let { name: n, block: a, composite: o, style: s } = typeof r == "string" ? { name: r } : r;
|
|
522
|
+
if (t.some((e) => e.name == n)) continue;
|
|
523
|
+
o && (i[t.length] = (e, t, n) => o(t, n, e.value));
|
|
524
|
+
let l = t.length, u = o ? ["Block", "BlockContext"] : a ? l >= b.ATXHeading1 && l <= b.SetextHeading2 ? [
|
|
525
|
+
"Block",
|
|
526
|
+
"LeafBlock",
|
|
527
|
+
"Heading"
|
|
528
|
+
] : ["Block", "LeafBlock"] : void 0;
|
|
529
|
+
t.push(_.define({
|
|
530
|
+
id: l,
|
|
531
|
+
name: n,
|
|
532
|
+
props: u && [[h.group, u]]
|
|
533
|
+
})), s && (e ||= {}, Array.isArray(s) || s instanceof c ? e[n] = s : Object.assign(e, s));
|
|
534
|
+
}
|
|
535
|
+
r = new f(t), e && (r = r.extend(a(e)));
|
|
536
|
+
}
|
|
537
|
+
if (N(n.props) && (r = r.extend(...n.props)), N(n.remove)) for (let e of n.remove) {
|
|
538
|
+
let t = this.blockNames.indexOf(e), n = this.inlineNames.indexOf(e);
|
|
539
|
+
t > -1 && (o[t] = s[t] = void 0), n > -1 && (u[n] = void 0);
|
|
540
|
+
}
|
|
541
|
+
if (N(n.parseBlock)) for (let e of n.parseBlock) {
|
|
542
|
+
let t = l.indexOf(e.name);
|
|
543
|
+
if (t > -1) o[t] = e.parse, s[t] = e.leaf;
|
|
544
|
+
else {
|
|
545
|
+
let t = e.before ? F(l, e.before) : e.after ? F(l, e.after) + 1 : l.length - 1;
|
|
546
|
+
o.splice(t, 0, e.parse), s.splice(t, 0, e.leaf), l.splice(t, 0, e.name);
|
|
547
|
+
}
|
|
548
|
+
e.endLeaf && p.push(e.endLeaf);
|
|
549
|
+
}
|
|
550
|
+
if (N(n.parseInline)) for (let e of n.parseInline) {
|
|
551
|
+
let t = d.indexOf(e.name);
|
|
552
|
+
if (t > -1) u[t] = e.parse;
|
|
553
|
+
else {
|
|
554
|
+
let t = e.before ? F(d, e.before) : e.after ? F(d, e.after) + 1 : d.length - 1;
|
|
555
|
+
u.splice(t, 0, e.parse), d.splice(t, 0, e.name);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
return n.wrap && (m = m.concat(n.wrap)), new e(r, o, s, l, p, i, u, d, m);
|
|
559
|
+
}
|
|
560
|
+
getNodeType(e) {
|
|
561
|
+
let t = this.nodeTypes[e];
|
|
562
|
+
if (t == null) throw RangeError(`Unknown node type '${e}'`);
|
|
563
|
+
return t;
|
|
564
|
+
}
|
|
565
|
+
parseInline(e, t) {
|
|
566
|
+
let n = new ze(this, e, t);
|
|
567
|
+
e: for (let e = t; e < n.end;) {
|
|
568
|
+
let t = n.char(e);
|
|
569
|
+
for (let r of this.inlineParsers) if (r) {
|
|
570
|
+
let i = r(n, t, e);
|
|
571
|
+
if (i >= 0) {
|
|
572
|
+
e = i;
|
|
573
|
+
continue e;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
e++;
|
|
577
|
+
}
|
|
578
|
+
return n.resolveMarkers(0);
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
function N(e) {
|
|
582
|
+
return e != null && e.length > 0;
|
|
583
|
+
}
|
|
584
|
+
function P(e) {
|
|
585
|
+
if (!Array.isArray(e)) return e;
|
|
586
|
+
if (e.length == 0) return null;
|
|
587
|
+
let t = P(e[0]);
|
|
588
|
+
if (e.length == 1) return t;
|
|
589
|
+
let n = P(e.slice(1));
|
|
590
|
+
if (!n || !t) return t || n;
|
|
591
|
+
let r = (e, t) => (e || I).concat(t || I), i = t.wrap, a = n.wrap;
|
|
592
|
+
return {
|
|
593
|
+
props: r(t.props, n.props),
|
|
594
|
+
defineNodes: r(t.defineNodes, n.defineNodes),
|
|
595
|
+
parseBlock: r(t.parseBlock, n.parseBlock),
|
|
596
|
+
parseInline: r(t.parseInline, n.parseInline),
|
|
597
|
+
remove: r(t.remove, n.remove),
|
|
598
|
+
wrap: i ? a ? (e, t, n, r) => i(a(e, t, n, r), t, n, r) : i : a
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
function F(e, t) {
|
|
602
|
+
let n = e.indexOf(t);
|
|
603
|
+
if (n < 0) throw RangeError(`Position specified relative to unknown parser ${t}`);
|
|
604
|
+
return n;
|
|
605
|
+
}
|
|
606
|
+
var ke = [_.none];
|
|
607
|
+
for (let e, t = 1; e = b[t]; t++) ke[t] = _.define({
|
|
608
|
+
id: t,
|
|
609
|
+
name: e,
|
|
610
|
+
props: t >= b.Escape ? [] : [[h.group, t in fe ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
|
|
611
|
+
top: e == "Document"
|
|
612
|
+
});
|
|
613
|
+
var I = [], Ae = class {
|
|
614
|
+
constructor(e) {
|
|
615
|
+
this.nodeSet = e, this.content = [], this.nodes = [];
|
|
616
|
+
}
|
|
617
|
+
write(e, t, n, r = 0) {
|
|
618
|
+
return this.content.push(e, t, n, 4 + 4 * r), this;
|
|
619
|
+
}
|
|
620
|
+
writeElements(e, t = 0) {
|
|
621
|
+
for (let n of e) n.writeTo(this, t);
|
|
622
|
+
return this;
|
|
623
|
+
}
|
|
624
|
+
finish(e, t) {
|
|
625
|
+
return r.build({
|
|
626
|
+
buffer: this.content,
|
|
627
|
+
nodeSet: this.nodeSet,
|
|
628
|
+
reused: this.nodes,
|
|
629
|
+
topID: e,
|
|
630
|
+
length: t
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
}, L = class {
|
|
634
|
+
constructor(e, t, n, r = I) {
|
|
635
|
+
this.type = e, this.from = t, this.to = n, this.children = r;
|
|
636
|
+
}
|
|
637
|
+
writeTo(e, t) {
|
|
638
|
+
let n = e.content.length;
|
|
639
|
+
e.writeElements(this.children, t), e.content.push(this.type, this.from + t, this.to + t, e.content.length + 4 - n);
|
|
640
|
+
}
|
|
641
|
+
toTree(e) {
|
|
642
|
+
return new Ae(e).writeElements(this.children, -this.from).finish(this.type, this.to - this.from);
|
|
643
|
+
}
|
|
644
|
+
}, je = class {
|
|
645
|
+
constructor(e, t) {
|
|
646
|
+
this.tree = e, this.from = t;
|
|
647
|
+
}
|
|
648
|
+
get to() {
|
|
649
|
+
return this.from + this.tree.length;
|
|
650
|
+
}
|
|
651
|
+
get type() {
|
|
652
|
+
return this.tree.type.id;
|
|
653
|
+
}
|
|
654
|
+
get children() {
|
|
655
|
+
return I;
|
|
656
|
+
}
|
|
657
|
+
writeTo(e, t) {
|
|
658
|
+
e.nodes.push(this.tree), e.content.push(e.nodes.length - 1, this.from + t, this.to + t, -1);
|
|
659
|
+
}
|
|
660
|
+
toTree() {
|
|
661
|
+
return this.tree;
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
function R(e, t, n, r) {
|
|
665
|
+
return new L(e, t, n, r);
|
|
666
|
+
}
|
|
667
|
+
var Me = {
|
|
668
|
+
resolve: "Emphasis",
|
|
669
|
+
mark: "EmphasisMark"
|
|
670
|
+
}, Ne = {
|
|
671
|
+
resolve: "Emphasis",
|
|
672
|
+
mark: "EmphasisMark"
|
|
673
|
+
}, z = {}, B = {}, V = class {
|
|
674
|
+
constructor(e, t, n, r) {
|
|
675
|
+
this.type = e, this.from = t, this.to = n, this.side = r;
|
|
676
|
+
}
|
|
677
|
+
}, Pe = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", H = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;
|
|
678
|
+
try {
|
|
679
|
+
H = /* @__PURE__ */ RegExp("[\\p{S}|\\p{P}]", "u");
|
|
680
|
+
} catch {}
|
|
681
|
+
var U = {
|
|
682
|
+
Escape(e, t, n) {
|
|
683
|
+
if (t != 92 || n == e.end - 1) return -1;
|
|
684
|
+
let r = e.char(n + 1);
|
|
685
|
+
for (let t = 0; t < 32; t++) if (Pe.charCodeAt(t) == r) return e.append(R(b.Escape, n, n + 2));
|
|
686
|
+
return -1;
|
|
687
|
+
},
|
|
688
|
+
Entity(e, t, n) {
|
|
689
|
+
if (t != 38) return -1;
|
|
690
|
+
let r = /^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n + 1, n + 31));
|
|
691
|
+
return r ? e.append(R(b.Entity, n, n + 1 + r[0].length)) : -1;
|
|
692
|
+
},
|
|
693
|
+
InlineCode(e, t, n) {
|
|
694
|
+
if (t != 96 || n && e.char(n - 1) == 96) return -1;
|
|
695
|
+
let r = n + 1;
|
|
696
|
+
for (; r < e.end && e.char(r) == 96;) r++;
|
|
697
|
+
let i = r - n, a = 0;
|
|
698
|
+
for (; r < e.end; r++) if (e.char(r) == 96) {
|
|
699
|
+
if (a++, a == i && e.char(r + 1) != 96) return e.append(R(b.InlineCode, n, r + 1, [R(b.CodeMark, n, n + i), R(b.CodeMark, r + 1 - i, r + 1)]));
|
|
700
|
+
} else a = 0;
|
|
701
|
+
return -1;
|
|
702
|
+
},
|
|
703
|
+
HTMLTag(e, t, n) {
|
|
704
|
+
if (t != 60 || n == e.end - 1) return -1;
|
|
705
|
+
let r = e.slice(n + 1, e.end), i = /^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);
|
|
706
|
+
if (i) return e.append(R(b.Autolink, n, n + 1 + i[0].length, [
|
|
707
|
+
R(b.LinkMark, n, n + 1),
|
|
708
|
+
R(b.URL, n + 1, n + i[0].length),
|
|
709
|
+
R(b.LinkMark, n + i[0].length, n + 1 + i[0].length)
|
|
710
|
+
]));
|
|
711
|
+
let a = /^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);
|
|
712
|
+
if (a) return e.append(R(b.Comment, n, n + 1 + a[0].length));
|
|
713
|
+
let o = /^\?[^]*?\?>/.exec(r);
|
|
714
|
+
if (o) return e.append(R(b.ProcessingInstruction, n, n + 1 + o[0].length));
|
|
715
|
+
let s = /^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);
|
|
716
|
+
return s ? e.append(R(b.HTMLTag, n, n + 1 + s[0].length)) : -1;
|
|
717
|
+
},
|
|
718
|
+
Emphasis(e, t, n) {
|
|
719
|
+
if (t != 95 && t != 42) return -1;
|
|
720
|
+
let r = n + 1;
|
|
721
|
+
for (; e.char(r) == t;) r++;
|
|
722
|
+
let i = e.slice(n - 1, n), a = e.slice(r, r + 1), o = H.test(i), s = H.test(a), c = /\s|^$/.test(i), l = /\s|^$/.test(a), u = !l && (!s || c || o), d = !c && (!o || l || s), f = u && (t == 42 || !d || o), p = d && (t == 42 || !u || s);
|
|
723
|
+
return e.append(new V(t == 95 ? Me : Ne, n, r, !!f | (p ? 2 : 0)));
|
|
724
|
+
},
|
|
725
|
+
HardBreak(e, t, n) {
|
|
726
|
+
if (t == 92 && e.char(n + 1) == 10) return e.append(R(b.HardBreak, n, n + 2));
|
|
727
|
+
if (t == 32) {
|
|
728
|
+
let t = n + 1;
|
|
729
|
+
for (; e.char(t) == 32;) t++;
|
|
730
|
+
if (e.char(t) == 10 && t >= n + 2) return e.append(R(b.HardBreak, n, t + 1));
|
|
731
|
+
}
|
|
732
|
+
return -1;
|
|
733
|
+
},
|
|
734
|
+
Link: (e, t, n) => t == 91 ? e.append(new V(z, n, n + 1, 1)) : -1,
|
|
735
|
+
Image: (e, t, n) => t == 33 && e.char(n + 1) == 91 ? e.append(new V(B, n, n + 2, 1)) : -1,
|
|
736
|
+
LinkEnd(e, t, n) {
|
|
737
|
+
if (t != 93) return -1;
|
|
738
|
+
for (let t = e.parts.length - 1; t >= 0; t--) {
|
|
739
|
+
let r = e.parts[t];
|
|
740
|
+
if (r instanceof V && (r.type == z || r.type == B)) {
|
|
741
|
+
if (!r.side || e.skipSpace(r.to) == n && !/[(\[]/.test(e.slice(n + 1, n + 2))) return e.parts[t] = null, -1;
|
|
742
|
+
let i = e.takeContent(t), a = e.parts[t] = Fe(e, i, r.type == z ? b.Link : b.Image, r.from, n + 1);
|
|
743
|
+
if (r.type == z) for (let n = 0; n < t; n++) {
|
|
744
|
+
let t = e.parts[n];
|
|
745
|
+
t instanceof V && t.type == z && (t.side = 0);
|
|
746
|
+
}
|
|
747
|
+
return a.to;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return -1;
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
function Fe(e, t, n, r, i) {
|
|
754
|
+
let { text: a } = e, o = e.char(i), s = i;
|
|
755
|
+
if (t.unshift(R(b.LinkMark, r, r + (n == b.Image ? 2 : 1))), t.push(R(b.LinkMark, i - 1, i)), o == 40) {
|
|
756
|
+
let n, r = e.skipSpace(i + 1), o = Ie(a, r - e.offset, e.offset);
|
|
757
|
+
o && (r = e.skipSpace(o.to), r != o.to && (n = Le(a, r - e.offset, e.offset), n && (r = e.skipSpace(n.to)))), e.char(r) == 41 && (t.push(R(b.LinkMark, i, i + 1)), s = r + 1, o && t.push(o), n && t.push(n), t.push(R(b.LinkMark, r, s)));
|
|
758
|
+
} else if (o == 91) {
|
|
759
|
+
let n = Re(a, i - e.offset, e.offset, !1);
|
|
760
|
+
n && (t.push(n), s = n.to);
|
|
761
|
+
}
|
|
762
|
+
return R(n, r, s, t);
|
|
763
|
+
}
|
|
764
|
+
function Ie(e, t, n) {
|
|
765
|
+
if (e.charCodeAt(t) == 60) {
|
|
766
|
+
for (let r = t + 1; r < e.length; r++) {
|
|
767
|
+
let i = e.charCodeAt(r);
|
|
768
|
+
if (i == 62) return R(b.URL, t + n, r + 1 + n);
|
|
769
|
+
if (i == 60 || i == 10) return !1;
|
|
770
|
+
}
|
|
771
|
+
return null;
|
|
772
|
+
}
|
|
773
|
+
{
|
|
774
|
+
let r = 0, i = t;
|
|
775
|
+
for (let t = !1; i < e.length; i++) {
|
|
776
|
+
let n = e.charCodeAt(i);
|
|
777
|
+
if (x(n)) break;
|
|
778
|
+
if (t) t = !1;
|
|
779
|
+
else if (n == 40) r++;
|
|
780
|
+
else if (n == 41) {
|
|
781
|
+
if (!r) break;
|
|
782
|
+
r--;
|
|
783
|
+
} else n == 92 && (t = !0);
|
|
784
|
+
}
|
|
785
|
+
return i > t ? R(b.URL, t + n, i + n) : i == e.length && null;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function Le(e, t, n) {
|
|
789
|
+
let r = e.charCodeAt(t);
|
|
790
|
+
if (r != 39 && r != 34 && r != 40) return !1;
|
|
791
|
+
let i = r == 40 ? 41 : r;
|
|
792
|
+
for (let r = t + 1, a = !1; r < e.length; r++) {
|
|
793
|
+
let o = e.charCodeAt(r);
|
|
794
|
+
if (a) a = !1;
|
|
795
|
+
else {
|
|
796
|
+
if (o == i) return R(b.LinkTitle, t + n, r + 1 + n);
|
|
797
|
+
o == 92 && (a = !0);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
return null;
|
|
801
|
+
}
|
|
802
|
+
function Re(e, t, n, r) {
|
|
803
|
+
for (let i = !1, a = t + 1, o = Math.min(e.length, a + 999); a < o; a++) {
|
|
804
|
+
let o = e.charCodeAt(a);
|
|
805
|
+
if (i) i = !1;
|
|
806
|
+
else {
|
|
807
|
+
if (o == 93) return !r && R(b.LinkLabel, t + n, a + 1 + n);
|
|
808
|
+
if (r && !x(o) && (r = !1), o == 91) return !1;
|
|
809
|
+
o == 92 && (i = !0);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return null;
|
|
813
|
+
}
|
|
814
|
+
var ze = class {
|
|
815
|
+
constructor(e, t, n) {
|
|
816
|
+
this.parser = e, this.text = t, this.offset = n, this.parts = [];
|
|
817
|
+
}
|
|
818
|
+
char(e) {
|
|
819
|
+
return e >= this.end ? -1 : this.text.charCodeAt(e - this.offset);
|
|
820
|
+
}
|
|
821
|
+
get end() {
|
|
822
|
+
return this.offset + this.text.length;
|
|
823
|
+
}
|
|
824
|
+
slice(e, t) {
|
|
825
|
+
return this.text.slice(e - this.offset, t - this.offset);
|
|
826
|
+
}
|
|
827
|
+
append(e) {
|
|
828
|
+
return this.parts.push(e), e.to;
|
|
829
|
+
}
|
|
830
|
+
addDelimiter(e, t, n, r, i) {
|
|
831
|
+
return this.append(new V(e, t, n, !!r | (i ? 2 : 0)));
|
|
832
|
+
}
|
|
833
|
+
get hasOpenLink() {
|
|
834
|
+
for (let e = this.parts.length - 1; e >= 0; e--) {
|
|
835
|
+
let t = this.parts[e];
|
|
836
|
+
if (t instanceof V && (t.type == z || t.type == B)) return !0;
|
|
837
|
+
}
|
|
838
|
+
return !1;
|
|
839
|
+
}
|
|
840
|
+
addElement(e) {
|
|
841
|
+
return this.append(e);
|
|
842
|
+
}
|
|
843
|
+
resolveMarkers(e) {
|
|
844
|
+
for (let t = e; t < this.parts.length; t++) {
|
|
845
|
+
let n = this.parts[t];
|
|
846
|
+
if (!(n instanceof V && n.type.resolve && 2 & n.side)) continue;
|
|
847
|
+
let r, i = n.type == Me || n.type == Ne, a = n.to - n.from, o = t - 1;
|
|
848
|
+
for (; o >= e; o--) {
|
|
849
|
+
let e = this.parts[o];
|
|
850
|
+
if (e instanceof V && 1 & e.side && e.type == n.type && !(i && (1 & n.side || 2 & e.side) && (e.to - e.from + a) % 3 == 0 && ((e.to - e.from) % 3 || a % 3))) {
|
|
851
|
+
r = e;
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
if (!r) continue;
|
|
856
|
+
let s = n.type.resolve, c = [], l = r.from, u = n.to;
|
|
857
|
+
if (i) {
|
|
858
|
+
let e = Math.min(2, r.to - r.from, a);
|
|
859
|
+
l = r.to - e, u = n.from + e, s = e == 1 ? "Emphasis" : "StrongEmphasis";
|
|
860
|
+
}
|
|
861
|
+
r.type.mark && c.push(this.elt(r.type.mark, l, r.to));
|
|
862
|
+
for (let e = o + 1; e < t; e++) this.parts[e] instanceof L && c.push(this.parts[e]), this.parts[e] = null;
|
|
863
|
+
n.type.mark && c.push(this.elt(n.type.mark, n.from, u));
|
|
864
|
+
let d = this.elt(s, l, u, c);
|
|
865
|
+
this.parts[o] = i && r.from != l ? new V(r.type, r.from, l, r.side) : null, (this.parts[t] = i && n.to != u ? new V(n.type, u, n.to, n.side) : null) ? this.parts.splice(t, 0, d) : this.parts[t] = d;
|
|
866
|
+
}
|
|
867
|
+
let t = [];
|
|
868
|
+
for (let n = e; n < this.parts.length; n++) {
|
|
869
|
+
let e = this.parts[n];
|
|
870
|
+
e instanceof L && t.push(e);
|
|
871
|
+
}
|
|
872
|
+
return t;
|
|
873
|
+
}
|
|
874
|
+
findOpeningDelimiter(e) {
|
|
875
|
+
for (let t = this.parts.length - 1; t >= 0; t--) {
|
|
876
|
+
let n = this.parts[t];
|
|
877
|
+
if (n instanceof V && n.type == e) return t;
|
|
878
|
+
}
|
|
879
|
+
return null;
|
|
880
|
+
}
|
|
881
|
+
takeContent(e) {
|
|
882
|
+
let t = this.resolveMarkers(e);
|
|
883
|
+
return this.parts.length = e, t;
|
|
884
|
+
}
|
|
885
|
+
skipSpace(e) {
|
|
886
|
+
return S(this.text, e - this.offset) + this.offset;
|
|
887
|
+
}
|
|
888
|
+
elt(e, t, n, r) {
|
|
889
|
+
return typeof e == "string" ? R(this.parser.getNodeType(e), t, n, r) : new je(e, t);
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
function W(e, t) {
|
|
893
|
+
if (!t.length) return e;
|
|
894
|
+
if (!e.length) return t;
|
|
895
|
+
let n = e.slice(), r = 0;
|
|
896
|
+
for (let e of t) {
|
|
897
|
+
for (; r < n.length && n[r].to < e.to;) r++;
|
|
898
|
+
if (r < n.length && n[r].from < e.from) {
|
|
899
|
+
let t = n[r];
|
|
900
|
+
t instanceof L && (n[r] = new L(t.type, t.from, t.to, W(t.children, [e])));
|
|
901
|
+
} else n.splice(r++, 0, e);
|
|
902
|
+
}
|
|
903
|
+
return n;
|
|
904
|
+
}
|
|
905
|
+
var Be = [
|
|
906
|
+
b.CodeBlock,
|
|
907
|
+
b.ListItem,
|
|
908
|
+
b.OrderedList,
|
|
909
|
+
b.BulletList
|
|
910
|
+
], Ve = class {
|
|
911
|
+
constructor(e, t) {
|
|
912
|
+
this.fragments = e, this.input = t, this.i = 0, this.fragment = null, this.fragmentEnd = -1, this.cursor = null, e.length && (this.fragment = e[this.i++]);
|
|
913
|
+
}
|
|
914
|
+
nextFragment() {
|
|
915
|
+
this.fragment = this.i < this.fragments.length ? this.fragments[this.i++] : null, this.cursor = null, this.fragmentEnd = -1;
|
|
916
|
+
}
|
|
917
|
+
moveTo(e, t) {
|
|
918
|
+
for (; this.fragment && this.fragment.to <= e;) this.nextFragment();
|
|
919
|
+
if (!this.fragment || this.fragment.from > (e ? e - 1 : 0)) return !1;
|
|
920
|
+
if (this.fragmentEnd < 0) {
|
|
921
|
+
let e = this.fragment.to;
|
|
922
|
+
for (; e > 0 && this.input.read(e - 1, e) != "\n";) e--;
|
|
923
|
+
this.fragmentEnd = e ? e - 1 : 0;
|
|
924
|
+
}
|
|
925
|
+
let n = this.cursor;
|
|
926
|
+
n || (n = this.cursor = this.fragment.tree.cursor(), n.firstChild());
|
|
927
|
+
let r = e + this.fragment.offset;
|
|
928
|
+
for (; n.to <= r;) if (!n.parent()) return !1;
|
|
929
|
+
for (;;) {
|
|
930
|
+
if (n.from >= r) return this.fragment.from <= t;
|
|
931
|
+
if (!n.childAfter(r)) return !1;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
matches(e) {
|
|
935
|
+
let t = this.cursor.tree;
|
|
936
|
+
return t && t.prop(h.contextHash) == e;
|
|
937
|
+
}
|
|
938
|
+
takeNodes(e) {
|
|
939
|
+
let t = this.cursor, n = this.fragment.offset, i = this.fragmentEnd - +!!this.fragment.openEnd, a = e.absoluteLineStart, o = a, s = e.block.children.length, c = o, l = s;
|
|
940
|
+
for (;;) {
|
|
941
|
+
if (t.to - n > i) {
|
|
942
|
+
if (t.type.isAnonymous && t.firstChild()) continue;
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
let a = He(t.from - n, e.ranges);
|
|
946
|
+
if (t.to - n <= e.ranges[e.rangeI].to) e.addNode(t.tree, a);
|
|
947
|
+
else {
|
|
948
|
+
let n = new r(e.parser.nodeSet.types[b.Paragraph], [], [], 0, e.block.hashProp);
|
|
949
|
+
e.reusePlaceholders.set(n, t.tree), e.addNode(n, a);
|
|
950
|
+
}
|
|
951
|
+
if (t.type.is("Block") && (Be.indexOf(t.type.id) < 0 ? (o = t.to - n, s = e.block.children.length) : (o = c, s = l, c = t.to - n, l = e.block.children.length)), !t.nextSibling()) break;
|
|
952
|
+
}
|
|
953
|
+
for (; e.block.children.length > s;) e.block.children.pop(), e.block.positions.pop();
|
|
954
|
+
return o - a;
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
function He(e, t) {
|
|
958
|
+
let n = e;
|
|
959
|
+
for (let r = 1; r < t.length; r++) {
|
|
960
|
+
let i = t[r - 1].to, a = t[r].from;
|
|
961
|
+
i < e && (n -= a - i);
|
|
962
|
+
}
|
|
963
|
+
return n;
|
|
964
|
+
}
|
|
965
|
+
var Ue = a({
|
|
966
|
+
"Blockquote/...": y.quote,
|
|
967
|
+
HorizontalRule: y.contentSeparator,
|
|
968
|
+
"ATXHeading1/... SetextHeading1/...": y.heading1,
|
|
969
|
+
"ATXHeading2/... SetextHeading2/...": y.heading2,
|
|
970
|
+
"ATXHeading3/...": y.heading3,
|
|
971
|
+
"ATXHeading4/...": y.heading4,
|
|
972
|
+
"ATXHeading5/...": y.heading5,
|
|
973
|
+
"ATXHeading6/...": y.heading6,
|
|
974
|
+
"Comment CommentBlock": y.comment,
|
|
975
|
+
Escape: y.escape,
|
|
976
|
+
Entity: y.character,
|
|
977
|
+
"Emphasis/...": y.emphasis,
|
|
978
|
+
"StrongEmphasis/...": y.strong,
|
|
979
|
+
"Link/... Image/...": y.link,
|
|
980
|
+
"OrderedList/... BulletList/...": y.list,
|
|
981
|
+
"BlockQuote/...": y.quote,
|
|
982
|
+
"InlineCode CodeText": y.monospace,
|
|
983
|
+
"URL Autolink": y.url,
|
|
984
|
+
"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark": y.processingInstruction,
|
|
985
|
+
"CodeInfo LinkLabel": y.labelName,
|
|
986
|
+
LinkTitle: y.string,
|
|
987
|
+
Paragraph: y.content
|
|
988
|
+
}), We = new Oe(new f(ke).extend(Ue), Object.keys(j).map((e) => j[e]), Object.keys(j).map((e) => Ce[e]), Object.keys(j), we, fe, Object.keys(U).map((e) => U[e]), Object.keys(U), []);
|
|
989
|
+
function Ge(e, t, n) {
|
|
990
|
+
let r = [];
|
|
991
|
+
for (let i = e.firstChild, a = t;; i = i.nextSibling) {
|
|
992
|
+
let e = i ? i.from : n;
|
|
993
|
+
if (e > a && r.push({
|
|
994
|
+
from: a,
|
|
995
|
+
to: e
|
|
996
|
+
}), !i) break;
|
|
997
|
+
a = i.to;
|
|
998
|
+
}
|
|
999
|
+
return r;
|
|
1000
|
+
}
|
|
1001
|
+
var Ke = {
|
|
1002
|
+
resolve: "Strikethrough",
|
|
1003
|
+
mark: "StrikethroughMark"
|
|
1004
|
+
}, qe = {
|
|
1005
|
+
defineNodes: [{
|
|
1006
|
+
name: "Strikethrough",
|
|
1007
|
+
style: { "Strikethrough/...": y.strikethrough }
|
|
1008
|
+
}, {
|
|
1009
|
+
name: "StrikethroughMark",
|
|
1010
|
+
style: y.processingInstruction
|
|
1011
|
+
}],
|
|
1012
|
+
parseInline: [{
|
|
1013
|
+
name: "Strikethrough",
|
|
1014
|
+
parse(e, t, n) {
|
|
1015
|
+
if (t != 126 || e.char(n + 1) != 126 || e.char(n + 2) == 126) return -1;
|
|
1016
|
+
let r = e.slice(n - 1, n), i = e.slice(n + 2, n + 3), a = /\s|^$/.test(r), o = /\s|^$/.test(i), s = H.test(r), c = H.test(i);
|
|
1017
|
+
return e.addDelimiter(Ke, n, n + 2, !o && (!c || a || s), !a && (!s || o || c));
|
|
1018
|
+
},
|
|
1019
|
+
after: "Emphasis"
|
|
1020
|
+
}]
|
|
1021
|
+
};
|
|
1022
|
+
function G(e, t, n = 0, r, i = 0) {
|
|
1023
|
+
let a = 0, o = !0, s = -1, c = -1, l = !1, u = () => {
|
|
1024
|
+
r.push(e.elt("TableCell", i + s, i + c, e.parser.parseInline(t.slice(s, c), i + s)));
|
|
1025
|
+
};
|
|
1026
|
+
for (let d = n; d < t.length; d++) {
|
|
1027
|
+
let n = t.charCodeAt(d);
|
|
1028
|
+
n != 124 || l ? (l || n != 32 && n != 9) && (s < 0 && (s = d), c = d + 1) : ((!o || s > -1) && a++, o = !1, r && (s > -1 && u(), r.push(e.elt("TableDelimiter", d + i, d + i + 1))), s = c = -1), l = !l && n == 92;
|
|
1029
|
+
}
|
|
1030
|
+
return s > -1 && (a++, r && u()), a;
|
|
1031
|
+
}
|
|
1032
|
+
function Je(e, t) {
|
|
1033
|
+
for (let n = t; n < e.length; n++) {
|
|
1034
|
+
let t = e.charCodeAt(n);
|
|
1035
|
+
if (t == 124) return !0;
|
|
1036
|
+
t == 92 && n++;
|
|
1037
|
+
}
|
|
1038
|
+
return !1;
|
|
1039
|
+
}
|
|
1040
|
+
var Ye = /^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/, Xe = class {
|
|
1041
|
+
constructor() {
|
|
1042
|
+
this.rows = null;
|
|
1043
|
+
}
|
|
1044
|
+
nextLine(e, t, n) {
|
|
1045
|
+
if (this.rows == null) {
|
|
1046
|
+
let r;
|
|
1047
|
+
if (this.rows = !1, (t.next == 45 || t.next == 58 || t.next == 124) && Ye.test(r = t.text.slice(t.pos))) {
|
|
1048
|
+
let i = [];
|
|
1049
|
+
G(e, n.content, 0, i, n.start) == G(e, r, t.pos) && (this.rows = [e.elt("TableHeader", n.start, n.start + n.content.length, i), e.elt("TableDelimiter", e.lineStart + t.pos, e.lineStart + t.text.length)]);
|
|
1050
|
+
}
|
|
1051
|
+
} else if (this.rows) {
|
|
1052
|
+
let n = [];
|
|
1053
|
+
G(e, t.text, t.pos, n, e.lineStart), this.rows.push(e.elt("TableRow", e.lineStart + t.pos, e.lineStart + t.text.length, n));
|
|
1054
|
+
}
|
|
1055
|
+
return !1;
|
|
1056
|
+
}
|
|
1057
|
+
finish(e, t) {
|
|
1058
|
+
return !!this.rows && (e.addLeafElement(t, e.elt("Table", t.start, t.start + t.content.length, this.rows)), !0);
|
|
1059
|
+
}
|
|
1060
|
+
}, Ze = {
|
|
1061
|
+
defineNodes: [
|
|
1062
|
+
{
|
|
1063
|
+
name: "Table",
|
|
1064
|
+
block: !0
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
name: "TableHeader",
|
|
1068
|
+
style: { "TableHeader/...": y.heading }
|
|
1069
|
+
},
|
|
1070
|
+
"TableRow",
|
|
1071
|
+
{
|
|
1072
|
+
name: "TableCell",
|
|
1073
|
+
style: y.content
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
name: "TableDelimiter",
|
|
1077
|
+
style: y.processingInstruction
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
parseBlock: [{
|
|
1081
|
+
name: "Table",
|
|
1082
|
+
leaf: (e, t) => Je(t.content, 0) ? new Xe() : null,
|
|
1083
|
+
endLeaf(e, t, n) {
|
|
1084
|
+
if (n.parsers.some((e) => e instanceof Xe) || !Je(t.text, t.basePos)) return !1;
|
|
1085
|
+
let r = e.peekLine();
|
|
1086
|
+
return Ye.test(r) && G(e, t.text, t.basePos) == G(e, r, t.basePos);
|
|
1087
|
+
},
|
|
1088
|
+
before: "SetextHeading"
|
|
1089
|
+
}]
|
|
1090
|
+
}, Qe = class {
|
|
1091
|
+
nextLine() {
|
|
1092
|
+
return !1;
|
|
1093
|
+
}
|
|
1094
|
+
finish(e, t) {
|
|
1095
|
+
return e.addLeafElement(t, e.elt("Task", t.start, t.start + t.content.length, [e.elt("TaskMarker", t.start, t.start + 3), ...e.parser.parseInline(t.content.slice(3), t.start + 3)])), !0;
|
|
1096
|
+
}
|
|
1097
|
+
}, $e = {
|
|
1098
|
+
defineNodes: [{
|
|
1099
|
+
name: "Task",
|
|
1100
|
+
block: !0,
|
|
1101
|
+
style: y.list
|
|
1102
|
+
}, {
|
|
1103
|
+
name: "TaskMarker",
|
|
1104
|
+
style: y.atom
|
|
1105
|
+
}],
|
|
1106
|
+
parseBlock: [{
|
|
1107
|
+
name: "TaskList",
|
|
1108
|
+
leaf: (e, t) => /^\[[ xX]\][ \t]/.test(t.content) && e.parentType().name == "ListItem" ? new Qe() : null,
|
|
1109
|
+
after: "SetextHeading"
|
|
1110
|
+
}]
|
|
1111
|
+
}, et = /(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy, tt = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy, nt = /[\w-]+\.[\w-]+($|\/)/, rt = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, it = /\/[a-zA-Z\d@.]+/gy;
|
|
1112
|
+
function at(e, t, n, r) {
|
|
1113
|
+
let i = 0;
|
|
1114
|
+
for (let a = t; a < n; a++) e[a] == r && i++;
|
|
1115
|
+
return i;
|
|
1116
|
+
}
|
|
1117
|
+
function ot(e, t) {
|
|
1118
|
+
rt.lastIndex = t;
|
|
1119
|
+
let n = rt.exec(e);
|
|
1120
|
+
if (!n) return -1;
|
|
1121
|
+
let r = n[0][n[0].length - 1];
|
|
1122
|
+
return r == "_" || r == "-" ? -1 : t + n[0].length - +(r == ".");
|
|
1123
|
+
}
|
|
1124
|
+
var st = [
|
|
1125
|
+
Ze,
|
|
1126
|
+
$e,
|
|
1127
|
+
qe,
|
|
1128
|
+
{ parseInline: [{
|
|
1129
|
+
name: "Autolink",
|
|
1130
|
+
parse(e, t, n) {
|
|
1131
|
+
let r = n - e.offset;
|
|
1132
|
+
if (r && /\w/.test(e.text[r - 1])) return -1;
|
|
1133
|
+
et.lastIndex = r;
|
|
1134
|
+
let i = et.exec(e.text), a = -1;
|
|
1135
|
+
return i ? (i[1] || i[2] ? (a = function(e, t) {
|
|
1136
|
+
tt.lastIndex = t;
|
|
1137
|
+
let n = tt.exec(e);
|
|
1138
|
+
if (!n || nt.exec(n[0])[0].indexOf("_") > -1) return -1;
|
|
1139
|
+
let r = t + n[0].length;
|
|
1140
|
+
for (;;) {
|
|
1141
|
+
let n, i = e[r - 1];
|
|
1142
|
+
if (/[?!.,:*_~]/.test(i) || i == ")" && at(e, t, r, ")") > at(e, t, r, "(")) r--;
|
|
1143
|
+
else {
|
|
1144
|
+
if (i != ";" || !(n = /&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t, r)))) break;
|
|
1145
|
+
r = t + n.index;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
return r;
|
|
1149
|
+
}(e.text, r + i[0].length), a > -1 && e.hasOpenLink && (a = r + /([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r, a))[0].length)) : i[3] ? a = ot(e.text, r) : (a = ot(e.text, r + i[0].length), a > -1 && i[0] == "xmpp:" && (it.lastIndex = a, i = it.exec(e.text), i && (a = i.index + i[0].length))), a < 0 ? -1 : (e.addElement(e.elt("URL", n, a + e.offset)), a + e.offset)) : -1;
|
|
1150
|
+
}
|
|
1151
|
+
}] }
|
|
1152
|
+
];
|
|
1153
|
+
function ct(e, t, n) {
|
|
1154
|
+
return (r, i, a) => {
|
|
1155
|
+
if (i != e || r.char(a + 1) == e) return -1;
|
|
1156
|
+
let o = [r.elt(n, a, a + 1)];
|
|
1157
|
+
for (let i = a + 1; i < r.end; i++) {
|
|
1158
|
+
let s = r.char(i);
|
|
1159
|
+
if (s == e) return r.addElement(r.elt(t, a, i + 1, o.concat(r.elt(n, i, i + 1))));
|
|
1160
|
+
if (s == 92 && o.push(r.elt("Escape", i, 2 + i++)), x(s)) break;
|
|
1161
|
+
}
|
|
1162
|
+
return -1;
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
var lt = {
|
|
1166
|
+
defineNodes: [{
|
|
1167
|
+
name: "Superscript",
|
|
1168
|
+
style: y.special(y.content)
|
|
1169
|
+
}, {
|
|
1170
|
+
name: "SuperscriptMark",
|
|
1171
|
+
style: y.processingInstruction
|
|
1172
|
+
}],
|
|
1173
|
+
parseInline: [{
|
|
1174
|
+
name: "Superscript",
|
|
1175
|
+
parse: ct(94, "Superscript", "SuperscriptMark")
|
|
1176
|
+
}]
|
|
1177
|
+
}, ut = {
|
|
1178
|
+
defineNodes: [{
|
|
1179
|
+
name: "Subscript",
|
|
1180
|
+
style: y.special(y.content)
|
|
1181
|
+
}, {
|
|
1182
|
+
name: "SubscriptMark",
|
|
1183
|
+
style: y.processingInstruction
|
|
1184
|
+
}],
|
|
1185
|
+
parseInline: [{
|
|
1186
|
+
name: "Subscript",
|
|
1187
|
+
parse: ct(126, "Subscript", "SubscriptMark")
|
|
1188
|
+
}]
|
|
1189
|
+
}, dt = {
|
|
1190
|
+
defineNodes: [{
|
|
1191
|
+
name: "Emoji",
|
|
1192
|
+
style: y.character
|
|
1193
|
+
}],
|
|
1194
|
+
parseInline: [{
|
|
1195
|
+
name: "Emoji",
|
|
1196
|
+
parse(e, t, n) {
|
|
1197
|
+
let r;
|
|
1198
|
+
return t == 58 && (r = /^[a-zA-Z_0-9]+:/.exec(e.slice(n + 1, e.end))) ? e.addElement(e.elt("Emoji", n, n + 1 + r[0].length)) : -1;
|
|
1199
|
+
}
|
|
1200
|
+
}]
|
|
1201
|
+
}, ft = ie({ commentTokens: { block: {
|
|
1202
|
+
open: "<!--",
|
|
1203
|
+
close: "-->"
|
|
1204
|
+
} } }), pt = new h(), mt = We.configure({ props: [
|
|
1205
|
+
t.add((e) => !e.is("Block") || e.is("Document") || K(e) != null ? void 0 : (e, t) => ({
|
|
1206
|
+
from: t.doc.lineAt(e.from).to,
|
|
1207
|
+
to: e.to
|
|
1208
|
+
})),
|
|
1209
|
+
pt.add(K),
|
|
1210
|
+
l.add({ Document: () => null }),
|
|
1211
|
+
i.add({ Document: ft })
|
|
1212
|
+
] });
|
|
1213
|
+
function K(e) {
|
|
1214
|
+
let t = /^(?:ATX|Setext)Heading(\d)$/.exec(e.name);
|
|
1215
|
+
return t ? +t[1] : void 0;
|
|
1216
|
+
}
|
|
1217
|
+
function ht(e, t) {
|
|
1218
|
+
let n = e;
|
|
1219
|
+
for (;;) {
|
|
1220
|
+
let e, r = n.nextSibling;
|
|
1221
|
+
if (!r || (e = K(r.type)) != null && e <= t) break;
|
|
1222
|
+
n = r;
|
|
1223
|
+
}
|
|
1224
|
+
return n.to;
|
|
1225
|
+
}
|
|
1226
|
+
var gt = oe.of((e, t, n) => {
|
|
1227
|
+
for (let r = p(e).resolveInner(n, -1); r && !(r.from < t); r = r.parent) {
|
|
1228
|
+
let e = r.type.prop(pt);
|
|
1229
|
+
if (e == null) continue;
|
|
1230
|
+
let t = ht(r, e);
|
|
1231
|
+
if (t > n) return {
|
|
1232
|
+
from: n,
|
|
1233
|
+
to: t
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
return null;
|
|
1237
|
+
});
|
|
1238
|
+
function q(e) {
|
|
1239
|
+
return new ne(ft, e, [gt], "markdown");
|
|
1240
|
+
}
|
|
1241
|
+
var _t = q(mt), J = q(mt.configure([
|
|
1242
|
+
st,
|
|
1243
|
+
ut,
|
|
1244
|
+
lt,
|
|
1245
|
+
dt
|
|
1246
|
+
])), Y = class {
|
|
1247
|
+
constructor(e, t, n, r, i, a, o) {
|
|
1248
|
+
this.node = e, this.from = t, this.to = n, this.spaceBefore = r, this.spaceAfter = i, this.type = a, this.item = o;
|
|
1249
|
+
}
|
|
1250
|
+
blank(e, t = !0) {
|
|
1251
|
+
let n = this.spaceBefore + (this.node.name == "Blockquote" ? ">" : "");
|
|
1252
|
+
if (e != null) {
|
|
1253
|
+
for (; n.length < e;) n += " ";
|
|
1254
|
+
return n;
|
|
1255
|
+
}
|
|
1256
|
+
for (let e = this.to - this.from - n.length - this.spaceAfter.length; e > 0; e--) n += " ";
|
|
1257
|
+
return n + (t ? this.spaceAfter : "");
|
|
1258
|
+
}
|
|
1259
|
+
marker(e, t) {
|
|
1260
|
+
let n = this.node.name == "OrderedList" ? String(+yt(this.item, e)[2] + t) : "";
|
|
1261
|
+
return this.spaceBefore + n + this.type + this.spaceAfter;
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
function vt(e, t) {
|
|
1265
|
+
let n = [];
|
|
1266
|
+
for (let t = e; t && t.name != "Document"; t = t.parent) t.name != "ListItem" && t.name != "Blockquote" && t.name != "FencedCode" || n.push(t);
|
|
1267
|
+
let r = [];
|
|
1268
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
|
1269
|
+
let i, a = n[e], o = t.lineAt(a.from), s = a.from - o.from;
|
|
1270
|
+
if (a.name == "FencedCode") r.push(new Y(a, s, s, "", "", "", null));
|
|
1271
|
+
else if (a.name == "Blockquote" && (i = /^ *>( ?)/.exec(o.text.slice(s)))) r.push(new Y(a, s, s + i[0].length, "", i[1], ">", null));
|
|
1272
|
+
else if (a.name == "ListItem" && a.parent.name == "OrderedList" && (i = /^( *)\d+([.)])( *)/.exec(o.text.slice(s)))) {
|
|
1273
|
+
let e = i[3], t = i[0].length;
|
|
1274
|
+
e.length >= 4 && (e = e.slice(0, e.length - 4), t -= 4), r.push(new Y(a.parent, s, s + t, i[1], e, i[2], a));
|
|
1275
|
+
} else if (a.name == "ListItem" && a.parent.name == "BulletList" && (i = /^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))) {
|
|
1276
|
+
let e = i[4], t = i[0].length;
|
|
1277
|
+
e.length > 4 && (e = e.slice(0, e.length - 4), t -= 4);
|
|
1278
|
+
let n = i[2];
|
|
1279
|
+
i[3] && (n += i[3].replace(/[xX]/, " ")), r.push(new Y(a.parent, s, s + t, i[1], e, n, a));
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
return r;
|
|
1283
|
+
}
|
|
1284
|
+
function yt(e, t) {
|
|
1285
|
+
return /^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from, e.from + 10));
|
|
1286
|
+
}
|
|
1287
|
+
function X(e, t, n, r = 0) {
|
|
1288
|
+
for (let i = -1, a = e;;) {
|
|
1289
|
+
if (a.name == "ListItem") {
|
|
1290
|
+
let e = yt(a, t), o = +e[2];
|
|
1291
|
+
if (i >= 0) {
|
|
1292
|
+
if (o != i + 1) return;
|
|
1293
|
+
n.push({
|
|
1294
|
+
from: a.from + e[1].length,
|
|
1295
|
+
to: a.from + e[0].length,
|
|
1296
|
+
insert: String(i + 2 + r)
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
i = o;
|
|
1300
|
+
}
|
|
1301
|
+
let e = a.nextSibling;
|
|
1302
|
+
if (!e) break;
|
|
1303
|
+
a = e;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
function Z(e, t) {
|
|
1307
|
+
let n = /^[ \t]*/.exec(e)[0].length;
|
|
1308
|
+
if (!n || t.facet(m) != " ") return e;
|
|
1309
|
+
let r = "";
|
|
1310
|
+
for (let t = v(e, 4, n); t > 0;) t >= 4 ? (r += " ", t -= 4) : (r += " ", t--);
|
|
1311
|
+
return r + e.slice(n);
|
|
1312
|
+
}
|
|
1313
|
+
var bt = ({ state: e, dispatch: t }) => {
|
|
1314
|
+
let n = p(e), { doc: r } = e, i = null, a = e.changeByRange((t) => {
|
|
1315
|
+
if (!t.empty || !J.isActiveAt(e, t.from)) return i = { range: t };
|
|
1316
|
+
let a = t.from, o = r.lineAt(a), s = vt(n.resolveInner(a, -1), r);
|
|
1317
|
+
for (; s.length && s[s.length - 1].from > a - o.from;) s.pop();
|
|
1318
|
+
if (!s.length) return i = { range: t };
|
|
1319
|
+
let c = s[s.length - 1];
|
|
1320
|
+
if (c.to - c.spaceAfter.length > a - o.from) return i = { range: t };
|
|
1321
|
+
let l = a >= c.to - c.spaceAfter.length && !/\S/.test(o.text.slice(c.to));
|
|
1322
|
+
if (c.item && l) {
|
|
1323
|
+
if (c.node.firstChild.to >= a || o.from > 0 && !/[^\s>]/.test(r.lineAt(o.from - 1).text)) {
|
|
1324
|
+
let e, t = s.length > 1 ? s[s.length - 2] : null, n = "";
|
|
1325
|
+
t && t.item ? (e = o.from + t.from, n = t.marker(r, 1)) : e = o.from + (t ? t.to : 0);
|
|
1326
|
+
let i = [{
|
|
1327
|
+
from: e,
|
|
1328
|
+
to: a,
|
|
1329
|
+
insert: n
|
|
1330
|
+
}];
|
|
1331
|
+
return c.node.name == "OrderedList" && X(c.item, r, i, -2), t && t.node.name == "OrderedList" && X(t.item, r, i), {
|
|
1332
|
+
range: g.cursor(e + n.length),
|
|
1333
|
+
changes: i
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
{
|
|
1337
|
+
let t = "";
|
|
1338
|
+
for (let e = 0, n = s.length - 2; e <= n; e++) t += s[e].blank(e < n ? v(o.text, 4, s[e + 1].from) - t.length : null, e < n);
|
|
1339
|
+
return t = Z(t, e), {
|
|
1340
|
+
range: g.cursor(a + t.length + 1),
|
|
1341
|
+
changes: {
|
|
1342
|
+
from: o.from,
|
|
1343
|
+
insert: t + e.lineBreak
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
if (c.node.name == "Blockquote" && l && o.from) {
|
|
1349
|
+
let n = r.lineAt(o.from - 1), i = />\s*$/.exec(n.text);
|
|
1350
|
+
if (i && i.index == c.from) {
|
|
1351
|
+
let r = e.changes([{
|
|
1352
|
+
from: n.from + i.index,
|
|
1353
|
+
to: n.to
|
|
1354
|
+
}, {
|
|
1355
|
+
from: o.from + c.from,
|
|
1356
|
+
to: o.to
|
|
1357
|
+
}]);
|
|
1358
|
+
return {
|
|
1359
|
+
range: t.map(r),
|
|
1360
|
+
changes: r
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
let u = [];
|
|
1365
|
+
c.node.name == "OrderedList" && X(c.item, r, u);
|
|
1366
|
+
let d = c.item && c.item.from < o.from, f = "";
|
|
1367
|
+
if (!d || /^[\s\d.)\-+*>]*/.exec(o.text)[0].length >= c.to) for (let e = 0, t = s.length - 1; e <= t; e++) f += e != t || d ? s[e].blank(e < t ? v(o.text, 4, s[e + 1].from) - f.length : null) : s[e].marker(r, 1);
|
|
1368
|
+
let p = a;
|
|
1369
|
+
for (; p > o.from && /\s/.test(o.text.charAt(p - o.from - 1));) p--;
|
|
1370
|
+
return f = Z(f, e), u.push({
|
|
1371
|
+
from: p,
|
|
1372
|
+
to: a,
|
|
1373
|
+
insert: e.lineBreak + f
|
|
1374
|
+
}), {
|
|
1375
|
+
range: g.cursor(p + f.length + 1),
|
|
1376
|
+
changes: u
|
|
1377
|
+
};
|
|
1378
|
+
});
|
|
1379
|
+
return !i && (t(e.update(a, {
|
|
1380
|
+
scrollIntoView: !0,
|
|
1381
|
+
userEvent: "input"
|
|
1382
|
+
})), !0);
|
|
1383
|
+
};
|
|
1384
|
+
function xt(e) {
|
|
1385
|
+
return e.name == "QuoteMark" || e.name == "ListMark";
|
|
1386
|
+
}
|
|
1387
|
+
var St = ({ state: e, dispatch: t }) => {
|
|
1388
|
+
let n = p(e), r = null, i = e.changeByRange((t) => {
|
|
1389
|
+
let i = t.from, { doc: a } = e;
|
|
1390
|
+
if (t.empty && J.isActiveAt(e, t.from)) {
|
|
1391
|
+
let t = a.lineAt(i), r = vt(function(e, t) {
|
|
1392
|
+
let n = e.resolveInner(t, -1), r = t;
|
|
1393
|
+
xt(n) && (r = n.from, n = n.parent);
|
|
1394
|
+
for (let e; e = n.childBefore(r);) if (xt(e)) r = e.from;
|
|
1395
|
+
else {
|
|
1396
|
+
if (e.name != "OrderedList" && e.name != "BulletList") break;
|
|
1397
|
+
n = e.lastChild, r = n.to;
|
|
1398
|
+
}
|
|
1399
|
+
return n;
|
|
1400
|
+
}(n, i), a);
|
|
1401
|
+
if (r.length) {
|
|
1402
|
+
let n = r[r.length - 1], a = n.to - n.spaceAfter.length + +!!n.spaceAfter;
|
|
1403
|
+
if (i - t.from > a && !/\S/.test(t.text.slice(a, i - t.from))) return {
|
|
1404
|
+
range: g.cursor(t.from + a),
|
|
1405
|
+
changes: {
|
|
1406
|
+
from: t.from + a,
|
|
1407
|
+
to: i
|
|
1408
|
+
}
|
|
1409
|
+
};
|
|
1410
|
+
if (i - t.from == a && (!n.item || t.from <= n.item.from || !/\S/.test(t.text.slice(0, n.to)))) {
|
|
1411
|
+
let r = t.from + n.from;
|
|
1412
|
+
if (n.item && n.node.from < n.item.from && /\S/.test(t.text.slice(n.from, n.to))) {
|
|
1413
|
+
let i = n.blank(v(t.text, 4, n.to) - v(t.text, 4, n.from));
|
|
1414
|
+
return r == t.from && (i = Z(i, e)), {
|
|
1415
|
+
range: g.cursor(r + i.length),
|
|
1416
|
+
changes: {
|
|
1417
|
+
from: r,
|
|
1418
|
+
to: t.from + n.to,
|
|
1419
|
+
insert: i
|
|
1420
|
+
}
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
if (r < i) return {
|
|
1424
|
+
range: g.cursor(r),
|
|
1425
|
+
changes: {
|
|
1426
|
+
from: r,
|
|
1427
|
+
to: i
|
|
1428
|
+
}
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
return r = { range: t };
|
|
1434
|
+
});
|
|
1435
|
+
return !r && (t(e.update(i, {
|
|
1436
|
+
scrollIntoView: !0,
|
|
1437
|
+
userEvent: "delete"
|
|
1438
|
+
})), !0);
|
|
1439
|
+
}, Ct = [{
|
|
1440
|
+
key: "Enter",
|
|
1441
|
+
run: bt
|
|
1442
|
+
}, {
|
|
1443
|
+
key: "Backspace",
|
|
1444
|
+
run: St
|
|
1445
|
+
}], Q = d({ matchClosingTags: !1 });
|
|
1446
|
+
function wt(t = {}) {
|
|
1447
|
+
let { codeLanguages: n, defaultCodeLanguage: r, addKeymap: i = !0, base: { parser: a } = _t, completeHTMLTags: c = !0 } = t;
|
|
1448
|
+
if (!(a instanceof Oe)) throw RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
|
1449
|
+
let l, u = t.extensions ? [t.extensions] : [], d = [Q.support];
|
|
1450
|
+
r instanceof s ? (d.push(r.support), l = r.language) : r && (l = r);
|
|
1451
|
+
let f = n || l ? (p = n, m = l, (t) => {
|
|
1452
|
+
if (t && p) {
|
|
1453
|
+
let n = null;
|
|
1454
|
+
if (t = /\S*/.exec(t)[0], n = typeof p == "function" ? p(t) : ee.matchLanguageName(p, t, !0), n instanceof ee) return n.support ? n.support.language.parser : e.getSkippingParser(n.load());
|
|
1455
|
+
if (n) return n.parser;
|
|
1456
|
+
}
|
|
1457
|
+
return m ? m.parser : null;
|
|
1458
|
+
}) : void 0;
|
|
1459
|
+
var p, m;
|
|
1460
|
+
u.push(function(e) {
|
|
1461
|
+
let { codeParser: t, htmlParser: n } = e;
|
|
1462
|
+
return { wrap: o((e, r) => {
|
|
1463
|
+
let i = e.type.id;
|
|
1464
|
+
if (!t || i != b.CodeBlock && i != b.FencedCode) {
|
|
1465
|
+
if (n && (i == b.HTMLBlock || i == b.HTMLTag || i == b.CommentBlock)) return {
|
|
1466
|
+
parser: n,
|
|
1467
|
+
overlay: Ge(e.node, e.from, e.to)
|
|
1468
|
+
};
|
|
1469
|
+
} else {
|
|
1470
|
+
let n = "";
|
|
1471
|
+
if (i == b.FencedCode) {
|
|
1472
|
+
let t = e.node.getChild(b.CodeInfo);
|
|
1473
|
+
t && (n = r.read(t.from, t.to));
|
|
1474
|
+
}
|
|
1475
|
+
let a = t(n);
|
|
1476
|
+
if (a) return {
|
|
1477
|
+
parser: a,
|
|
1478
|
+
overlay: (e) => e.type.id == b.CodeText
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
return null;
|
|
1482
|
+
}) };
|
|
1483
|
+
}({
|
|
1484
|
+
codeParser: f,
|
|
1485
|
+
htmlParser: Q.language.parser
|
|
1486
|
+
})), i && d.push(se.high(te.of(Ct)));
|
|
1487
|
+
let h = q(a.configure(u));
|
|
1488
|
+
return c && d.push(h.data.of({ autocomplete: Tt })), new s(h, d);
|
|
1489
|
+
}
|
|
1490
|
+
function Tt(e) {
|
|
1491
|
+
let { state: t, pos: n } = e, r = /<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n - 25, n));
|
|
1492
|
+
if (!r) return null;
|
|
1493
|
+
let i = p(t).resolveInner(n, -1);
|
|
1494
|
+
for (; i && !i.type.isTop;) {
|
|
1495
|
+
if (i.name == "CodeBlock" || i.name == "FencedCode" || i.name == "ProcessingInstructionBlock" || i.name == "CommentBlock" || i.name == "Link" || i.name == "Image") return null;
|
|
1496
|
+
i = i.parent;
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
from: n - r[0].length,
|
|
1500
|
+
to: n,
|
|
1501
|
+
options: Et(),
|
|
1502
|
+
validFor: /^<[:\-\.\w\u00b7-\uffff]*$/
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
var $ = null;
|
|
1506
|
+
function Et() {
|
|
1507
|
+
if ($) return $;
|
|
1508
|
+
let e = re(new n(u.create({ extensions: Q }), 0, !0));
|
|
1509
|
+
return $ = e ? e.options : [];
|
|
1510
|
+
}
|
|
1511
|
+
//#endregion
|
|
1512
|
+
export { _t as commonmarkLanguage, St as deleteMarkupBackward, bt as insertNewlineContinueMarkup, wt as markdown, Ct as markdownKeymap, J as markdownLanguage };
|