@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,3403 @@
|
|
|
1
|
+
import { gn as e } from "../../chunks/common-qd_KLeYO.js";
|
|
2
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js
|
|
3
|
+
var t = 1836278016, n = 13, r = 1, i;
|
|
4
|
+
(function(e) {
|
|
5
|
+
e[e.Unknown = -1] = "Unknown", e[e.Custom = 0] = "Custom", e[e.Type = 1] = "Type", e[e.Import = 2] = "Import", e[e.Function = 3] = "Function", e[e.Table = 4] = "Table", e[e.Memory = 5] = "Memory", e[e.Global = 6] = "Global", e[e.Export = 7] = "Export", e[e.Start = 8] = "Start", e[e.Element = 9] = "Element", e[e.Code = 10] = "Code", e[e.Data = 11] = "Data", e[e.Event = 13] = "Event";
|
|
6
|
+
})(i ||= {});
|
|
7
|
+
var a;
|
|
8
|
+
(function(e) {
|
|
9
|
+
e[e.unreachable = 0] = "unreachable", e[e.nop = 1] = "nop", e[e.block = 2] = "block", e[e.loop = 3] = "loop", e[e.if = 4] = "if", e[e.else = 5] = "else", e[e.try = 6] = "try", e[e.catch = 7] = "catch", e[e.throw = 8] = "throw", e[e.rethrow = 9] = "rethrow", e[e.unwind = 10] = "unwind", e[e.end = 11] = "end", e[e.br = 12] = "br", e[e.br_if = 13] = "br_if", e[e.br_table = 14] = "br_table", e[e.return = 15] = "return", e[e.call = 16] = "call", e[e.call_indirect = 17] = "call_indirect", e[e.return_call = 18] = "return_call", e[e.return_call_indirect = 19] = "return_call_indirect", e[e.call_ref = 20] = "call_ref", e[e.return_call_ref = 21] = "return_call_ref", e[e.let = 23] = "let", e[e.delegate = 24] = "delegate", e[e.catch_all = 25] = "catch_all", e[e.drop = 26] = "drop", e[e.select = 27] = "select", e[e.select_with_type = 28] = "select_with_type", e[e.local_get = 32] = "local_get", e[e.local_set = 33] = "local_set", e[e.local_tee = 34] = "local_tee", e[e.global_get = 35] = "global_get", e[e.global_set = 36] = "global_set", e[e.i32_load = 40] = "i32_load", e[e.i64_load = 41] = "i64_load", e[e.f32_load = 42] = "f32_load", e[e.f64_load = 43] = "f64_load", e[e.i32_load8_s = 44] = "i32_load8_s", e[e.i32_load8_u = 45] = "i32_load8_u", e[e.i32_load16_s = 46] = "i32_load16_s", e[e.i32_load16_u = 47] = "i32_load16_u", e[e.i64_load8_s = 48] = "i64_load8_s", e[e.i64_load8_u = 49] = "i64_load8_u", e[e.i64_load16_s = 50] = "i64_load16_s", e[e.i64_load16_u = 51] = "i64_load16_u", e[e.i64_load32_s = 52] = "i64_load32_s", e[e.i64_load32_u = 53] = "i64_load32_u", e[e.i32_store = 54] = "i32_store", e[e.i64_store = 55] = "i64_store", e[e.f32_store = 56] = "f32_store", e[e.f64_store = 57] = "f64_store", e[e.i32_store8 = 58] = "i32_store8", e[e.i32_store16 = 59] = "i32_store16", e[e.i64_store8 = 60] = "i64_store8", e[e.i64_store16 = 61] = "i64_store16", e[e.i64_store32 = 62] = "i64_store32", e[e.current_memory = 63] = "current_memory", e[e.grow_memory = 64] = "grow_memory", e[e.i32_const = 65] = "i32_const", e[e.i64_const = 66] = "i64_const", e[e.f32_const = 67] = "f32_const", e[e.f64_const = 68] = "f64_const", e[e.i32_eqz = 69] = "i32_eqz", e[e.i32_eq = 70] = "i32_eq", e[e.i32_ne = 71] = "i32_ne", e[e.i32_lt_s = 72] = "i32_lt_s", e[e.i32_lt_u = 73] = "i32_lt_u", e[e.i32_gt_s = 74] = "i32_gt_s", e[e.i32_gt_u = 75] = "i32_gt_u", e[e.i32_le_s = 76] = "i32_le_s", e[e.i32_le_u = 77] = "i32_le_u", e[e.i32_ge_s = 78] = "i32_ge_s", e[e.i32_ge_u = 79] = "i32_ge_u", e[e.i64_eqz = 80] = "i64_eqz", e[e.i64_eq = 81] = "i64_eq", e[e.i64_ne = 82] = "i64_ne", e[e.i64_lt_s = 83] = "i64_lt_s", e[e.i64_lt_u = 84] = "i64_lt_u", e[e.i64_gt_s = 85] = "i64_gt_s", e[e.i64_gt_u = 86] = "i64_gt_u", e[e.i64_le_s = 87] = "i64_le_s", e[e.i64_le_u = 88] = "i64_le_u", e[e.i64_ge_s = 89] = "i64_ge_s", e[e.i64_ge_u = 90] = "i64_ge_u", e[e.f32_eq = 91] = "f32_eq", e[e.f32_ne = 92] = "f32_ne", e[e.f32_lt = 93] = "f32_lt", e[e.f32_gt = 94] = "f32_gt", e[e.f32_le = 95] = "f32_le", e[e.f32_ge = 96] = "f32_ge", e[e.f64_eq = 97] = "f64_eq", e[e.f64_ne = 98] = "f64_ne", e[e.f64_lt = 99] = "f64_lt", e[e.f64_gt = 100] = "f64_gt", e[e.f64_le = 101] = "f64_le", e[e.f64_ge = 102] = "f64_ge", e[e.i32_clz = 103] = "i32_clz", e[e.i32_ctz = 104] = "i32_ctz", e[e.i32_popcnt = 105] = "i32_popcnt", e[e.i32_add = 106] = "i32_add", e[e.i32_sub = 107] = "i32_sub", e[e.i32_mul = 108] = "i32_mul", e[e.i32_div_s = 109] = "i32_div_s", e[e.i32_div_u = 110] = "i32_div_u", e[e.i32_rem_s = 111] = "i32_rem_s", e[e.i32_rem_u = 112] = "i32_rem_u", e[e.i32_and = 113] = "i32_and", e[e.i32_or = 114] = "i32_or", e[e.i32_xor = 115] = "i32_xor", e[e.i32_shl = 116] = "i32_shl", e[e.i32_shr_s = 117] = "i32_shr_s", e[e.i32_shr_u = 118] = "i32_shr_u", e[e.i32_rotl = 119] = "i32_rotl", e[e.i32_rotr = 120] = "i32_rotr", e[e.i64_clz = 121] = "i64_clz", e[e.i64_ctz = 122] = "i64_ctz", e[e.i64_popcnt = 123] = "i64_popcnt", e[e.i64_add = 124] = "i64_add", e[e.i64_sub = 125] = "i64_sub", e[e.i64_mul = 126] = "i64_mul", e[e.i64_div_s = 127] = "i64_div_s", e[e.i64_div_u = 128] = "i64_div_u", e[e.i64_rem_s = 129] = "i64_rem_s", e[e.i64_rem_u = 130] = "i64_rem_u", e[e.i64_and = 131] = "i64_and", e[e.i64_or = 132] = "i64_or", e[e.i64_xor = 133] = "i64_xor", e[e.i64_shl = 134] = "i64_shl", e[e.i64_shr_s = 135] = "i64_shr_s", e[e.i64_shr_u = 136] = "i64_shr_u", e[e.i64_rotl = 137] = "i64_rotl", e[e.i64_rotr = 138] = "i64_rotr", e[e.f32_abs = 139] = "f32_abs", e[e.f32_neg = 140] = "f32_neg", e[e.f32_ceil = 141] = "f32_ceil", e[e.f32_floor = 142] = "f32_floor", e[e.f32_trunc = 143] = "f32_trunc", e[e.f32_nearest = 144] = "f32_nearest", e[e.f32_sqrt = 145] = "f32_sqrt", e[e.f32_add = 146] = "f32_add", e[e.f32_sub = 147] = "f32_sub", e[e.f32_mul = 148] = "f32_mul", e[e.f32_div = 149] = "f32_div", e[e.f32_min = 150] = "f32_min", e[e.f32_max = 151] = "f32_max", e[e.f32_copysign = 152] = "f32_copysign", e[e.f64_abs = 153] = "f64_abs", e[e.f64_neg = 154] = "f64_neg", e[e.f64_ceil = 155] = "f64_ceil", e[e.f64_floor = 156] = "f64_floor", e[e.f64_trunc = 157] = "f64_trunc", e[e.f64_nearest = 158] = "f64_nearest", e[e.f64_sqrt = 159] = "f64_sqrt", e[e.f64_add = 160] = "f64_add", e[e.f64_sub = 161] = "f64_sub", e[e.f64_mul = 162] = "f64_mul", e[e.f64_div = 163] = "f64_div", e[e.f64_min = 164] = "f64_min", e[e.f64_max = 165] = "f64_max", e[e.f64_copysign = 166] = "f64_copysign", e[e.i32_wrap_i64 = 167] = "i32_wrap_i64", e[e.i32_trunc_f32_s = 168] = "i32_trunc_f32_s", e[e.i32_trunc_f32_u = 169] = "i32_trunc_f32_u", e[e.i32_trunc_f64_s = 170] = "i32_trunc_f64_s", e[e.i32_trunc_f64_u = 171] = "i32_trunc_f64_u", e[e.i64_extend_i32_s = 172] = "i64_extend_i32_s", e[e.i64_extend_i32_u = 173] = "i64_extend_i32_u", e[e.i64_trunc_f32_s = 174] = "i64_trunc_f32_s", e[e.i64_trunc_f32_u = 175] = "i64_trunc_f32_u", e[e.i64_trunc_f64_s = 176] = "i64_trunc_f64_s", e[e.i64_trunc_f64_u = 177] = "i64_trunc_f64_u", e[e.f32_convert_i32_s = 178] = "f32_convert_i32_s", e[e.f32_convert_i32_u = 179] = "f32_convert_i32_u", e[e.f32_convert_i64_s = 180] = "f32_convert_i64_s", e[e.f32_convert_i64_u = 181] = "f32_convert_i64_u", e[e.f32_demote_f64 = 182] = "f32_demote_f64", e[e.f64_convert_i32_s = 183] = "f64_convert_i32_s", e[e.f64_convert_i32_u = 184] = "f64_convert_i32_u", e[e.f64_convert_i64_s = 185] = "f64_convert_i64_s", e[e.f64_convert_i64_u = 186] = "f64_convert_i64_u", e[e.f64_promote_f32 = 187] = "f64_promote_f32", e[e.i32_reinterpret_f32 = 188] = "i32_reinterpret_f32", e[e.i64_reinterpret_f64 = 189] = "i64_reinterpret_f64", e[e.f32_reinterpret_i32 = 190] = "f32_reinterpret_i32", e[e.f64_reinterpret_i64 = 191] = "f64_reinterpret_i64", e[e.i32_extend8_s = 192] = "i32_extend8_s", e[e.i32_extend16_s = 193] = "i32_extend16_s", e[e.i64_extend8_s = 194] = "i64_extend8_s", e[e.i64_extend16_s = 195] = "i64_extend16_s", e[e.i64_extend32_s = 196] = "i64_extend32_s", e[e.prefix_0xfb = 251] = "prefix_0xfb", e[e.prefix_0xfc = 252] = "prefix_0xfc", e[e.prefix_0xfd = 253] = "prefix_0xfd", e[e.prefix_0xfe = 254] = "prefix_0xfe", e[e.i32_trunc_sat_f32_s = 64512] = "i32_trunc_sat_f32_s", e[e.i32_trunc_sat_f32_u = 64513] = "i32_trunc_sat_f32_u", e[e.i32_trunc_sat_f64_s = 64514] = "i32_trunc_sat_f64_s", e[e.i32_trunc_sat_f64_u = 64515] = "i32_trunc_sat_f64_u", e[e.i64_trunc_sat_f32_s = 64516] = "i64_trunc_sat_f32_s", e[e.i64_trunc_sat_f32_u = 64517] = "i64_trunc_sat_f32_u", e[e.i64_trunc_sat_f64_s = 64518] = "i64_trunc_sat_f64_s", e[e.i64_trunc_sat_f64_u = 64519] = "i64_trunc_sat_f64_u", e[e.memory_init = 64520] = "memory_init", e[e.data_drop = 64521] = "data_drop", e[e.memory_copy = 64522] = "memory_copy", e[e.memory_fill = 64523] = "memory_fill", e[e.table_init = 64524] = "table_init", e[e.elem_drop = 64525] = "elem_drop", e[e.table_copy = 64526] = "table_copy", e[e.table_grow = 64527] = "table_grow", e[e.table_size = 64528] = "table_size", e[e.table_fill = 64529] = "table_fill", e[e.table_get = 37] = "table_get", e[e.table_set = 38] = "table_set", e[e.ref_null = 208] = "ref_null", e[e.ref_is_null = 209] = "ref_is_null", e[e.ref_func = 210] = "ref_func", e[e.ref_as_non_null = 211] = "ref_as_non_null", e[e.br_on_null = 212] = "br_on_null", e[e.ref_eq = 213] = "ref_eq", e[e.br_on_non_null = 214] = "br_on_non_null", e[e.atomic_notify = 65024] = "atomic_notify", e[e.i32_atomic_wait = 65025] = "i32_atomic_wait", e[e.i64_atomic_wait = 65026] = "i64_atomic_wait", e[e.atomic_fence = 65027] = "atomic_fence", e[e.i32_atomic_load = 65040] = "i32_atomic_load", e[e.i64_atomic_load = 65041] = "i64_atomic_load", e[e.i32_atomic_load8_u = 65042] = "i32_atomic_load8_u", e[e.i32_atomic_load16_u = 65043] = "i32_atomic_load16_u", e[e.i64_atomic_load8_u = 65044] = "i64_atomic_load8_u", e[e.i64_atomic_load16_u = 65045] = "i64_atomic_load16_u", e[e.i64_atomic_load32_u = 65046] = "i64_atomic_load32_u", e[e.i32_atomic_store = 65047] = "i32_atomic_store", e[e.i64_atomic_store = 65048] = "i64_atomic_store", e[e.i32_atomic_store8 = 65049] = "i32_atomic_store8", e[e.i32_atomic_store16 = 65050] = "i32_atomic_store16", e[e.i64_atomic_store8 = 65051] = "i64_atomic_store8", e[e.i64_atomic_store16 = 65052] = "i64_atomic_store16", e[e.i64_atomic_store32 = 65053] = "i64_atomic_store32", e[e.i32_atomic_rmw_add = 65054] = "i32_atomic_rmw_add", e[e.i64_atomic_rmw_add = 65055] = "i64_atomic_rmw_add", e[e.i32_atomic_rmw8_add_u = 65056] = "i32_atomic_rmw8_add_u", e[e.i32_atomic_rmw16_add_u = 65057] = "i32_atomic_rmw16_add_u", e[e.i64_atomic_rmw8_add_u = 65058] = "i64_atomic_rmw8_add_u", e[e.i64_atomic_rmw16_add_u = 65059] = "i64_atomic_rmw16_add_u", e[e.i64_atomic_rmw32_add_u = 65060] = "i64_atomic_rmw32_add_u", e[e.i32_atomic_rmw_sub = 65061] = "i32_atomic_rmw_sub", e[e.i64_atomic_rmw_sub = 65062] = "i64_atomic_rmw_sub", e[e.i32_atomic_rmw8_sub_u = 65063] = "i32_atomic_rmw8_sub_u", e[e.i32_atomic_rmw16_sub_u = 65064] = "i32_atomic_rmw16_sub_u", e[e.i64_atomic_rmw8_sub_u = 65065] = "i64_atomic_rmw8_sub_u", e[e.i64_atomic_rmw16_sub_u = 65066] = "i64_atomic_rmw16_sub_u", e[e.i64_atomic_rmw32_sub_u = 65067] = "i64_atomic_rmw32_sub_u", e[e.i32_atomic_rmw_and = 65068] = "i32_atomic_rmw_and", e[e.i64_atomic_rmw_and = 65069] = "i64_atomic_rmw_and", e[e.i32_atomic_rmw8_and_u = 65070] = "i32_atomic_rmw8_and_u", e[e.i32_atomic_rmw16_and_u = 65071] = "i32_atomic_rmw16_and_u", e[e.i64_atomic_rmw8_and_u = 65072] = "i64_atomic_rmw8_and_u", e[e.i64_atomic_rmw16_and_u = 65073] = "i64_atomic_rmw16_and_u", e[e.i64_atomic_rmw32_and_u = 65074] = "i64_atomic_rmw32_and_u", e[e.i32_atomic_rmw_or = 65075] = "i32_atomic_rmw_or", e[e.i64_atomic_rmw_or = 65076] = "i64_atomic_rmw_or", e[e.i32_atomic_rmw8_or_u = 65077] = "i32_atomic_rmw8_or_u", e[e.i32_atomic_rmw16_or_u = 65078] = "i32_atomic_rmw16_or_u", e[e.i64_atomic_rmw8_or_u = 65079] = "i64_atomic_rmw8_or_u", e[e.i64_atomic_rmw16_or_u = 65080] = "i64_atomic_rmw16_or_u", e[e.i64_atomic_rmw32_or_u = 65081] = "i64_atomic_rmw32_or_u", e[e.i32_atomic_rmw_xor = 65082] = "i32_atomic_rmw_xor", e[e.i64_atomic_rmw_xor = 65083] = "i64_atomic_rmw_xor", e[e.i32_atomic_rmw8_xor_u = 65084] = "i32_atomic_rmw8_xor_u", e[e.i32_atomic_rmw16_xor_u = 65085] = "i32_atomic_rmw16_xor_u", e[e.i64_atomic_rmw8_xor_u = 65086] = "i64_atomic_rmw8_xor_u", e[e.i64_atomic_rmw16_xor_u = 65087] = "i64_atomic_rmw16_xor_u", e[e.i64_atomic_rmw32_xor_u = 65088] = "i64_atomic_rmw32_xor_u", e[e.i32_atomic_rmw_xchg = 65089] = "i32_atomic_rmw_xchg", e[e.i64_atomic_rmw_xchg = 65090] = "i64_atomic_rmw_xchg", e[e.i32_atomic_rmw8_xchg_u = 65091] = "i32_atomic_rmw8_xchg_u", e[e.i32_atomic_rmw16_xchg_u = 65092] = "i32_atomic_rmw16_xchg_u", e[e.i64_atomic_rmw8_xchg_u = 65093] = "i64_atomic_rmw8_xchg_u", e[e.i64_atomic_rmw16_xchg_u = 65094] = "i64_atomic_rmw16_xchg_u", e[e.i64_atomic_rmw32_xchg_u = 65095] = "i64_atomic_rmw32_xchg_u", e[e.i32_atomic_rmw_cmpxchg = 65096] = "i32_atomic_rmw_cmpxchg", e[e.i64_atomic_rmw_cmpxchg = 65097] = "i64_atomic_rmw_cmpxchg", e[e.i32_atomic_rmw8_cmpxchg_u = 65098] = "i32_atomic_rmw8_cmpxchg_u", e[e.i32_atomic_rmw16_cmpxchg_u = 65099] = "i32_atomic_rmw16_cmpxchg_u", e[e.i64_atomic_rmw8_cmpxchg_u = 65100] = "i64_atomic_rmw8_cmpxchg_u", e[e.i64_atomic_rmw16_cmpxchg_u = 65101] = "i64_atomic_rmw16_cmpxchg_u", e[e.i64_atomic_rmw32_cmpxchg_u = 65102] = "i64_atomic_rmw32_cmpxchg_u", e[e.v128_load = 64768] = "v128_load", e[e.i16x8_load8x8_s = 64769] = "i16x8_load8x8_s", e[e.i16x8_load8x8_u = 64770] = "i16x8_load8x8_u", e[e.i32x4_load16x4_s = 64771] = "i32x4_load16x4_s", e[e.i32x4_load16x4_u = 64772] = "i32x4_load16x4_u", e[e.i64x2_load32x2_s = 64773] = "i64x2_load32x2_s", e[e.i64x2_load32x2_u = 64774] = "i64x2_load32x2_u", e[e.v8x16_load_splat = 64775] = "v8x16_load_splat", e[e.v16x8_load_splat = 64776] = "v16x8_load_splat", e[e.v32x4_load_splat = 64777] = "v32x4_load_splat", e[e.v64x2_load_splat = 64778] = "v64x2_load_splat", e[e.v128_store = 64779] = "v128_store", e[e.v128_const = 64780] = "v128_const", e[e.i8x16_shuffle = 64781] = "i8x16_shuffle", e[e.i8x16_swizzle = 64782] = "i8x16_swizzle", e[e.i8x16_splat = 64783] = "i8x16_splat", e[e.i16x8_splat = 64784] = "i16x8_splat", e[e.i32x4_splat = 64785] = "i32x4_splat", e[e.i64x2_splat = 64786] = "i64x2_splat", e[e.f32x4_splat = 64787] = "f32x4_splat", e[e.f64x2_splat = 64788] = "f64x2_splat", e[e.i8x16_extract_lane_s = 64789] = "i8x16_extract_lane_s", e[e.i8x16_extract_lane_u = 64790] = "i8x16_extract_lane_u", e[e.i8x16_replace_lane = 64791] = "i8x16_replace_lane", e[e.i16x8_extract_lane_s = 64792] = "i16x8_extract_lane_s", e[e.i16x8_extract_lane_u = 64793] = "i16x8_extract_lane_u", e[e.i16x8_replace_lane = 64794] = "i16x8_replace_lane", e[e.i32x4_extract_lane = 64795] = "i32x4_extract_lane", e[e.i32x4_replace_lane = 64796] = "i32x4_replace_lane", e[e.i64x2_extract_lane = 64797] = "i64x2_extract_lane", e[e.i64x2_replace_lane = 64798] = "i64x2_replace_lane", e[e.f32x4_extract_lane = 64799] = "f32x4_extract_lane", e[e.f32x4_replace_lane = 64800] = "f32x4_replace_lane", e[e.f64x2_extract_lane = 64801] = "f64x2_extract_lane", e[e.f64x2_replace_lane = 64802] = "f64x2_replace_lane", e[e.i8x16_eq = 64803] = "i8x16_eq", e[e.i8x16_ne = 64804] = "i8x16_ne", e[e.i8x16_lt_s = 64805] = "i8x16_lt_s", e[e.i8x16_lt_u = 64806] = "i8x16_lt_u", e[e.i8x16_gt_s = 64807] = "i8x16_gt_s", e[e.i8x16_gt_u = 64808] = "i8x16_gt_u", e[e.i8x16_le_s = 64809] = "i8x16_le_s", e[e.i8x16_le_u = 64810] = "i8x16_le_u", e[e.i8x16_ge_s = 64811] = "i8x16_ge_s", e[e.i8x16_ge_u = 64812] = "i8x16_ge_u", e[e.i16x8_eq = 64813] = "i16x8_eq", e[e.i16x8_ne = 64814] = "i16x8_ne", e[e.i16x8_lt_s = 64815] = "i16x8_lt_s", e[e.i16x8_lt_u = 64816] = "i16x8_lt_u", e[e.i16x8_gt_s = 64817] = "i16x8_gt_s", e[e.i16x8_gt_u = 64818] = "i16x8_gt_u", e[e.i16x8_le_s = 64819] = "i16x8_le_s", e[e.i16x8_le_u = 64820] = "i16x8_le_u", e[e.i16x8_ge_s = 64821] = "i16x8_ge_s", e[e.i16x8_ge_u = 64822] = "i16x8_ge_u", e[e.i32x4_eq = 64823] = "i32x4_eq", e[e.i32x4_ne = 64824] = "i32x4_ne", e[e.i32x4_lt_s = 64825] = "i32x4_lt_s", e[e.i32x4_lt_u = 64826] = "i32x4_lt_u", e[e.i32x4_gt_s = 64827] = "i32x4_gt_s", e[e.i32x4_gt_u = 64828] = "i32x4_gt_u", e[e.i32x4_le_s = 64829] = "i32x4_le_s", e[e.i32x4_le_u = 64830] = "i32x4_le_u", e[e.i32x4_ge_s = 64831] = "i32x4_ge_s", e[e.i32x4_ge_u = 64832] = "i32x4_ge_u", e[e.f32x4_eq = 64833] = "f32x4_eq", e[e.f32x4_ne = 64834] = "f32x4_ne", e[e.f32x4_lt = 64835] = "f32x4_lt", e[e.f32x4_gt = 64836] = "f32x4_gt", e[e.f32x4_le = 64837] = "f32x4_le", e[e.f32x4_ge = 64838] = "f32x4_ge", e[e.f64x2_eq = 64839] = "f64x2_eq", e[e.f64x2_ne = 64840] = "f64x2_ne", e[e.f64x2_lt = 64841] = "f64x2_lt", e[e.f64x2_gt = 64842] = "f64x2_gt", e[e.f64x2_le = 64843] = "f64x2_le", e[e.f64x2_ge = 64844] = "f64x2_ge", e[e.v128_not = 64845] = "v128_not", e[e.v128_and = 64846] = "v128_and", e[e.v128_andnot = 64847] = "v128_andnot", e[e.v128_or = 64848] = "v128_or", e[e.v128_xor = 64849] = "v128_xor", e[e.v128_bitselect = 64850] = "v128_bitselect", e[e.v128_any_true = 64851] = "v128_any_true", e[e.v128_load8_lane = 64852] = "v128_load8_lane", e[e.v128_load16_lane = 64853] = "v128_load16_lane", e[e.v128_load32_lane = 64854] = "v128_load32_lane", e[e.v128_load64_lane = 64855] = "v128_load64_lane", e[e.v128_store8_lane = 64856] = "v128_store8_lane", e[e.v128_store16_lane = 64857] = "v128_store16_lane", e[e.v128_store32_lane = 64858] = "v128_store32_lane", e[e.v128_store64_lane = 64859] = "v128_store64_lane", e[e.v128_load32_zero = 64860] = "v128_load32_zero", e[e.v128_load64_zero = 64861] = "v128_load64_zero", e[e.f32x4_demote_f64x2_zero = 64862] = "f32x4_demote_f64x2_zero", e[e.f64x2_promote_low_f32x4 = 64863] = "f64x2_promote_low_f32x4", e[e.i8x16_abs = 64864] = "i8x16_abs", e[e.i8x16_neg = 64865] = "i8x16_neg", e[e.i8x16_popcnt = 64866] = "i8x16_popcnt", e[e.i8x16_all_true = 64867] = "i8x16_all_true", e[e.i8x16_bitmask = 64868] = "i8x16_bitmask", e[e.i8x16_narrow_i16x8_s = 64869] = "i8x16_narrow_i16x8_s", e[e.i8x16_narrow_i16x8_u = 64870] = "i8x16_narrow_i16x8_u", e[e.f32x4_ceil = 64871] = "f32x4_ceil", e[e.f32x4_floor = 64872] = "f32x4_floor", e[e.f32x4_trunc = 64873] = "f32x4_trunc", e[e.f32x4_nearest = 64874] = "f32x4_nearest", e[e.i8x16_shl = 64875] = "i8x16_shl", e[e.i8x16_shr_s = 64876] = "i8x16_shr_s", e[e.i8x16_shr_u = 64877] = "i8x16_shr_u", e[e.i8x16_add = 64878] = "i8x16_add", e[e.i8x16_add_sat_s = 64879] = "i8x16_add_sat_s", e[e.i8x16_add_sat_u = 64880] = "i8x16_add_sat_u", e[e.i8x16_sub = 64881] = "i8x16_sub", e[e.i8x16_sub_sat_s = 64882] = "i8x16_sub_sat_s", e[e.i8x16_sub_sat_u = 64883] = "i8x16_sub_sat_u", e[e.f64x2_ceil = 64884] = "f64x2_ceil", e[e.f64x2_floor = 64885] = "f64x2_floor", e[e.i8x16_min_s = 64886] = "i8x16_min_s", e[e.i8x16_min_u = 64887] = "i8x16_min_u", e[e.i8x16_max_s = 64888] = "i8x16_max_s", e[e.i8x16_max_u = 64889] = "i8x16_max_u", e[e.f64x2_trunc = 64890] = "f64x2_trunc", e[e.i8x16_avgr_u = 64891] = "i8x16_avgr_u", e[e.i16x8_extadd_pairwise_i8x16_s = 64892] = "i16x8_extadd_pairwise_i8x16_s", e[e.i16x8_extadd_pairwise_i8x16_u = 64893] = "i16x8_extadd_pairwise_i8x16_u", e[e.i32x4_extadd_pairwise_i16x8_s = 64894] = "i32x4_extadd_pairwise_i16x8_s", e[e.i32x4_extadd_pairwise_i16x8_u = 64895] = "i32x4_extadd_pairwise_i16x8_u", e[e.i16x8_abs = 64896] = "i16x8_abs", e[e.i16x8_neg = 64897] = "i16x8_neg", e[e.i16x8_q15mulr_sat_s = 64898] = "i16x8_q15mulr_sat_s", e[e.i16x8_all_true = 64899] = "i16x8_all_true", e[e.i16x8_bitmask = 64900] = "i16x8_bitmask", e[e.i16x8_narrow_i32x4_s = 64901] = "i16x8_narrow_i32x4_s", e[e.i16x8_narrow_i32x4_u = 64902] = "i16x8_narrow_i32x4_u", e[e.i16x8_extend_low_i8x16_s = 64903] = "i16x8_extend_low_i8x16_s", e[e.i16x8_extend_high_i8x16_s = 64904] = "i16x8_extend_high_i8x16_s", e[e.i16x8_extend_low_i8x16_u = 64905] = "i16x8_extend_low_i8x16_u", e[e.i16x8_extend_high_i8x16_u = 64906] = "i16x8_extend_high_i8x16_u", e[e.i16x8_shl = 64907] = "i16x8_shl", e[e.i16x8_shr_s = 64908] = "i16x8_shr_s", e[e.i16x8_shr_u = 64909] = "i16x8_shr_u", e[e.i16x8_add = 64910] = "i16x8_add", e[e.i16x8_add_sat_s = 64911] = "i16x8_add_sat_s", e[e.i16x8_add_sat_u = 64912] = "i16x8_add_sat_u", e[e.i16x8_sub = 64913] = "i16x8_sub", e[e.i16x8_sub_sat_s = 64914] = "i16x8_sub_sat_s", e[e.i16x8_sub_sat_u = 64915] = "i16x8_sub_sat_u", e[e.f64x2_nearest = 64916] = "f64x2_nearest", e[e.i16x8_mul = 64917] = "i16x8_mul", e[e.i16x8_min_s = 64918] = "i16x8_min_s", e[e.i16x8_min_u = 64919] = "i16x8_min_u", e[e.i16x8_max_s = 64920] = "i16x8_max_s", e[e.i16x8_max_u = 64921] = "i16x8_max_u", e[e.i16x8_avgr_u = 64923] = "i16x8_avgr_u", e[e.i16x8_extmul_low_i8x16_s = 64924] = "i16x8_extmul_low_i8x16_s", e[e.i16x8_extmul_high_i8x16_s = 64925] = "i16x8_extmul_high_i8x16_s", e[e.i16x8_extmul_low_i8x16_u = 64926] = "i16x8_extmul_low_i8x16_u", e[e.i16x8_extmul_high_i8x16_u = 64927] = "i16x8_extmul_high_i8x16_u", e[e.i32x4_abs = 64928] = "i32x4_abs", e[e.i32x4_neg = 64929] = "i32x4_neg", e[e.i32x4_all_true = 64931] = "i32x4_all_true", e[e.i32x4_bitmask = 64932] = "i32x4_bitmask", e[e.i32x4_extend_low_i16x8_s = 64935] = "i32x4_extend_low_i16x8_s", e[e.i32x4_extend_high_i16x8_s = 64936] = "i32x4_extend_high_i16x8_s", e[e.i32x4_extend_low_i16x8_u = 64937] = "i32x4_extend_low_i16x8_u", e[e.i32x4_extend_high_i16x8_u = 64938] = "i32x4_extend_high_i16x8_u", e[e.i32x4_shl = 64939] = "i32x4_shl", e[e.i32x4_shr_s = 64940] = "i32x4_shr_s", e[e.i32x4_shr_u = 64941] = "i32x4_shr_u", e[e.i32x4_add = 64942] = "i32x4_add", e[e.i32x4_sub = 64945] = "i32x4_sub", e[e.i32x4_mul = 64949] = "i32x4_mul", e[e.i32x4_min_s = 64950] = "i32x4_min_s", e[e.i32x4_min_u = 64951] = "i32x4_min_u", e[e.i32x4_max_s = 64952] = "i32x4_max_s", e[e.i32x4_max_u = 64953] = "i32x4_max_u", e[e.i32x4_dot_i16x8_s = 64954] = "i32x4_dot_i16x8_s", e[e.i32x4_extmul_low_i16x8_s = 64956] = "i32x4_extmul_low_i16x8_s", e[e.i32x4_extmul_high_i16x8_s = 64957] = "i32x4_extmul_high_i16x8_s", e[e.i32x4_extmul_low_i16x8_u = 64958] = "i32x4_extmul_low_i16x8_u", e[e.i32x4_extmul_high_i16x8_u = 64959] = "i32x4_extmul_high_i16x8_u", e[e.i64x2_abs = 64960] = "i64x2_abs", e[e.i64x2_neg = 64961] = "i64x2_neg", e[e.i64x2_all_true = 64963] = "i64x2_all_true", e[e.i64x2_bitmask = 64964] = "i64x2_bitmask", e[e.i64x2_extend_low_i32x4_s = 64967] = "i64x2_extend_low_i32x4_s", e[e.i64x2_extend_high_i32x4_s = 64968] = "i64x2_extend_high_i32x4_s", e[e.i64x2_extend_low_i32x4_u = 64969] = "i64x2_extend_low_i32x4_u", e[e.i64x2_extend_high_i32x4_u = 64970] = "i64x2_extend_high_i32x4_u", e[e.i64x2_shl = 64971] = "i64x2_shl", e[e.i64x2_shr_s = 64972] = "i64x2_shr_s", e[e.i64x2_shr_u = 64973] = "i64x2_shr_u", e[e.i64x2_add = 64974] = "i64x2_add", e[e.i64x2_sub = 64977] = "i64x2_sub", e[e.i64x2_mul = 64981] = "i64x2_mul", e[e.i64x2_eq = 64982] = "i64x2_eq", e[e.i64x2_ne = 64983] = "i64x2_ne", e[e.i64x2_lt_s = 64984] = "i64x2_lt_s", e[e.i64x2_gt_s = 64985] = "i64x2_gt_s", e[e.i64x2_le_s = 64986] = "i64x2_le_s", e[e.i64x2_ge_s = 64987] = "i64x2_ge_s", e[e.i64x2_extmul_low_i32x4_s = 64988] = "i64x2_extmul_low_i32x4_s", e[e.i64x2_extmul_high_i32x4_s = 64989] = "i64x2_extmul_high_i32x4_s", e[e.i64x2_extmul_low_i32x4_u = 64990] = "i64x2_extmul_low_i32x4_u", e[e.i64x2_extmul_high_i32x4_u = 64991] = "i64x2_extmul_high_i32x4_u", e[e.f32x4_abs = 64992] = "f32x4_abs", e[e.f32x4_neg = 64993] = "f32x4_neg", e[e.f32x4_sqrt = 64995] = "f32x4_sqrt", e[e.f32x4_add = 64996] = "f32x4_add", e[e.f32x4_sub = 64997] = "f32x4_sub", e[e.f32x4_mul = 64998] = "f32x4_mul", e[e.f32x4_div = 64999] = "f32x4_div", e[e.f32x4_min = 65e3] = "f32x4_min", e[e.f32x4_max = 65001] = "f32x4_max", e[e.f32x4_pmin = 65002] = "f32x4_pmin", e[e.f32x4_pmax = 65003] = "f32x4_pmax", e[e.f64x2_abs = 65004] = "f64x2_abs", e[e.f64x2_neg = 65005] = "f64x2_neg", e[e.f64x2_sqrt = 65007] = "f64x2_sqrt", e[e.f64x2_add = 65008] = "f64x2_add", e[e.f64x2_sub = 65009] = "f64x2_sub", e[e.f64x2_mul = 65010] = "f64x2_mul", e[e.f64x2_div = 65011] = "f64x2_div", e[e.f64x2_min = 65012] = "f64x2_min", e[e.f64x2_max = 65013] = "f64x2_max", e[e.f64x2_pmin = 65014] = "f64x2_pmin", e[e.f64x2_pmax = 65015] = "f64x2_pmax", e[e.i32x4_trunc_sat_f32x4_s = 65016] = "i32x4_trunc_sat_f32x4_s", e[e.i32x4_trunc_sat_f32x4_u = 65017] = "i32x4_trunc_sat_f32x4_u", e[e.f32x4_convert_i32x4_s = 65018] = "f32x4_convert_i32x4_s", e[e.f32x4_convert_i32x4_u = 65019] = "f32x4_convert_i32x4_u", e[e.i32x4_trunc_sat_f64x2_s_zero = 65020] = "i32x4_trunc_sat_f64x2_s_zero", e[e.i32x4_trunc_sat_f64x2_u_zero = 65021] = "i32x4_trunc_sat_f64x2_u_zero", e[e.f64x2_convert_low_i32x4_s = 65022] = "f64x2_convert_low_i32x4_s", e[e.f64x2_convert_low_i32x4_u = 65023] = "f64x2_convert_low_i32x4_u", e[e.struct_new_with_rtt = 64257] = "struct_new_with_rtt", e[e.struct_new_default_with_rtt = 64258] = "struct_new_default_with_rtt", e[e.struct_get = 64259] = "struct_get", e[e.struct_get_s = 64260] = "struct_get_s", e[e.struct_get_u = 64261] = "struct_get_u", e[e.struct_set = 64262] = "struct_set", e[e.struct_new = 64263] = "struct_new", e[e.struct_new_default = 64264] = "struct_new_default", e[e.array_new_with_rtt = 64273] = "array_new_with_rtt", e[e.array_new_default_with_rtt = 64274] = "array_new_default_with_rtt", e[e.array_get = 64275] = "array_get", e[e.array_get_s = 64276] = "array_get_s", e[e.array_get_u = 64277] = "array_get_u", e[e.array_set = 64278] = "array_set", e[e.array_len = 64279] = "array_len", e[e.array_copy = 64280] = "array_copy", e[e.array_init = 64281] = "array_init", e[e.array_init_static = 64282] = "array_init_static", e[e.array_new = 64283] = "array_new", e[e.array_new_default = 64284] = "array_new_default", e[e.i31_new = 64288] = "i31_new", e[e.i31_get_s = 64289] = "i31_get_s", e[e.i31_get_u = 64290] = "i31_get_u", e[e.rtt_canon = 64304] = "rtt_canon", e[e.rtt_sub = 64305] = "rtt_sub", e[e.rtt_fresh_sub = 64306] = "rtt_fresh_sub", e[e.ref_test = 64320] = "ref_test", e[e.ref_test_static = 64324] = "ref_test_static", e[e.ref_cast = 64321] = "ref_cast", e[e.ref_cast_static = 64325] = "ref_cast_static", e[e.br_on_cast = 64322] = "br_on_cast", e[e.br_on_cast_static = 64326] = "br_on_cast_static", e[e.br_on_cast_fail = 64323] = "br_on_cast_fail", e[e.br_on_cast_static_fail = 64327] = "br_on_cast_static_fail", e[e.ref_is_func = 64336] = "ref_is_func", e[e.ref_is_data = 64337] = "ref_is_data", e[e.ref_is_i31 = 64338] = "ref_is_i31", e[e.ref_as_func = 64344] = "ref_as_func", e[e.ref_as_data = 64345] = "ref_as_data", e[e.ref_as_i31 = 64346] = "ref_as_i31", e[e.br_on_func = 64352] = "br_on_func", e[e.br_on_data = 64353] = "br_on_data", e[e.br_on_i31 = 64354] = "br_on_i31", e[e.br_on_non_func = 64355] = "br_on_non_func", e[e.br_on_non_data = 64356] = "br_on_non_data", e[e.br_on_non_i31 = 64357] = "br_on_non_i31";
|
|
10
|
+
})(a ||= {});
|
|
11
|
+
var o = [
|
|
12
|
+
"unreachable",
|
|
13
|
+
"nop",
|
|
14
|
+
"block",
|
|
15
|
+
"loop",
|
|
16
|
+
"if",
|
|
17
|
+
"else",
|
|
18
|
+
"try",
|
|
19
|
+
"catch",
|
|
20
|
+
"throw",
|
|
21
|
+
"rethrow",
|
|
22
|
+
"unwind",
|
|
23
|
+
"end",
|
|
24
|
+
"br",
|
|
25
|
+
"br_if",
|
|
26
|
+
"br_table",
|
|
27
|
+
"return",
|
|
28
|
+
"call",
|
|
29
|
+
"call_indirect",
|
|
30
|
+
"return_call",
|
|
31
|
+
"return_call_indirect",
|
|
32
|
+
"call_ref",
|
|
33
|
+
"return_call_ref",
|
|
34
|
+
void 0,
|
|
35
|
+
"let",
|
|
36
|
+
"delegate",
|
|
37
|
+
"catch_all",
|
|
38
|
+
"drop",
|
|
39
|
+
"select",
|
|
40
|
+
"select",
|
|
41
|
+
void 0,
|
|
42
|
+
void 0,
|
|
43
|
+
void 0,
|
|
44
|
+
"local.get",
|
|
45
|
+
"local.set",
|
|
46
|
+
"local.tee",
|
|
47
|
+
"global.get",
|
|
48
|
+
"global.set",
|
|
49
|
+
"table.get",
|
|
50
|
+
"table.set",
|
|
51
|
+
void 0,
|
|
52
|
+
"i32.load",
|
|
53
|
+
"i64.load",
|
|
54
|
+
"f32.load",
|
|
55
|
+
"f64.load",
|
|
56
|
+
"i32.load8_s",
|
|
57
|
+
"i32.load8_u",
|
|
58
|
+
"i32.load16_s",
|
|
59
|
+
"i32.load16_u",
|
|
60
|
+
"i64.load8_s",
|
|
61
|
+
"i64.load8_u",
|
|
62
|
+
"i64.load16_s",
|
|
63
|
+
"i64.load16_u",
|
|
64
|
+
"i64.load32_s",
|
|
65
|
+
"i64.load32_u",
|
|
66
|
+
"i32.store",
|
|
67
|
+
"i64.store",
|
|
68
|
+
"f32.store",
|
|
69
|
+
"f64.store",
|
|
70
|
+
"i32.store8",
|
|
71
|
+
"i32.store16",
|
|
72
|
+
"i64.store8",
|
|
73
|
+
"i64.store16",
|
|
74
|
+
"i64.store32",
|
|
75
|
+
"current_memory",
|
|
76
|
+
"memory.grow",
|
|
77
|
+
"i32.const",
|
|
78
|
+
"i64.const",
|
|
79
|
+
"f32.const",
|
|
80
|
+
"f64.const",
|
|
81
|
+
"i32.eqz",
|
|
82
|
+
"i32.eq",
|
|
83
|
+
"i32.ne",
|
|
84
|
+
"i32.lt_s",
|
|
85
|
+
"i32.lt_u",
|
|
86
|
+
"i32.gt_s",
|
|
87
|
+
"i32.gt_u",
|
|
88
|
+
"i32.le_s",
|
|
89
|
+
"i32.le_u",
|
|
90
|
+
"i32.ge_s",
|
|
91
|
+
"i32.ge_u",
|
|
92
|
+
"i64.eqz",
|
|
93
|
+
"i64.eq",
|
|
94
|
+
"i64.ne",
|
|
95
|
+
"i64.lt_s",
|
|
96
|
+
"i64.lt_u",
|
|
97
|
+
"i64.gt_s",
|
|
98
|
+
"i64.gt_u",
|
|
99
|
+
"i64.le_s",
|
|
100
|
+
"i64.le_u",
|
|
101
|
+
"i64.ge_s",
|
|
102
|
+
"i64.ge_u",
|
|
103
|
+
"f32.eq",
|
|
104
|
+
"f32.ne",
|
|
105
|
+
"f32.lt",
|
|
106
|
+
"f32.gt",
|
|
107
|
+
"f32.le",
|
|
108
|
+
"f32.ge",
|
|
109
|
+
"f64.eq",
|
|
110
|
+
"f64.ne",
|
|
111
|
+
"f64.lt",
|
|
112
|
+
"f64.gt",
|
|
113
|
+
"f64.le",
|
|
114
|
+
"f64.ge",
|
|
115
|
+
"i32.clz",
|
|
116
|
+
"i32.ctz",
|
|
117
|
+
"i32.popcnt",
|
|
118
|
+
"i32.add",
|
|
119
|
+
"i32.sub",
|
|
120
|
+
"i32.mul",
|
|
121
|
+
"i32.div_s",
|
|
122
|
+
"i32.div_u",
|
|
123
|
+
"i32.rem_s",
|
|
124
|
+
"i32.rem_u",
|
|
125
|
+
"i32.and",
|
|
126
|
+
"i32.or",
|
|
127
|
+
"i32.xor",
|
|
128
|
+
"i32.shl",
|
|
129
|
+
"i32.shr_s",
|
|
130
|
+
"i32.shr_u",
|
|
131
|
+
"i32.rotl",
|
|
132
|
+
"i32.rotr",
|
|
133
|
+
"i64.clz",
|
|
134
|
+
"i64.ctz",
|
|
135
|
+
"i64.popcnt",
|
|
136
|
+
"i64.add",
|
|
137
|
+
"i64.sub",
|
|
138
|
+
"i64.mul",
|
|
139
|
+
"i64.div_s",
|
|
140
|
+
"i64.div_u",
|
|
141
|
+
"i64.rem_s",
|
|
142
|
+
"i64.rem_u",
|
|
143
|
+
"i64.and",
|
|
144
|
+
"i64.or",
|
|
145
|
+
"i64.xor",
|
|
146
|
+
"i64.shl",
|
|
147
|
+
"i64.shr_s",
|
|
148
|
+
"i64.shr_u",
|
|
149
|
+
"i64.rotl",
|
|
150
|
+
"i64.rotr",
|
|
151
|
+
"f32.abs",
|
|
152
|
+
"f32.neg",
|
|
153
|
+
"f32.ceil",
|
|
154
|
+
"f32.floor",
|
|
155
|
+
"f32.trunc",
|
|
156
|
+
"f32.nearest",
|
|
157
|
+
"f32.sqrt",
|
|
158
|
+
"f32.add",
|
|
159
|
+
"f32.sub",
|
|
160
|
+
"f32.mul",
|
|
161
|
+
"f32.div",
|
|
162
|
+
"f32.min",
|
|
163
|
+
"f32.max",
|
|
164
|
+
"f32.copysign",
|
|
165
|
+
"f64.abs",
|
|
166
|
+
"f64.neg",
|
|
167
|
+
"f64.ceil",
|
|
168
|
+
"f64.floor",
|
|
169
|
+
"f64.trunc",
|
|
170
|
+
"f64.nearest",
|
|
171
|
+
"f64.sqrt",
|
|
172
|
+
"f64.add",
|
|
173
|
+
"f64.sub",
|
|
174
|
+
"f64.mul",
|
|
175
|
+
"f64.div",
|
|
176
|
+
"f64.min",
|
|
177
|
+
"f64.max",
|
|
178
|
+
"f64.copysign",
|
|
179
|
+
"i32.wrap_i64",
|
|
180
|
+
"i32.trunc_f32_s",
|
|
181
|
+
"i32.trunc_f32_u",
|
|
182
|
+
"i32.trunc_f64_s",
|
|
183
|
+
"i32.trunc_f64_u",
|
|
184
|
+
"i64.extend_i32_s",
|
|
185
|
+
"i64.extend_i32_u",
|
|
186
|
+
"i64.trunc_f32_s",
|
|
187
|
+
"i64.trunc_f32_u",
|
|
188
|
+
"i64.trunc_f64_s",
|
|
189
|
+
"i64.trunc_f64_u",
|
|
190
|
+
"f32.convert_i32_s",
|
|
191
|
+
"f32.convert_i32_u",
|
|
192
|
+
"f32.convert_i64_s",
|
|
193
|
+
"f32.convert_i64_u",
|
|
194
|
+
"f32.demote_f64",
|
|
195
|
+
"f64.convert_i32_s",
|
|
196
|
+
"f64.convert_i32_u",
|
|
197
|
+
"f64.convert_i64_s",
|
|
198
|
+
"f64.convert_i64_u",
|
|
199
|
+
"f64.promote_f32",
|
|
200
|
+
"i32.reinterpret_f32",
|
|
201
|
+
"i64.reinterpret_f64",
|
|
202
|
+
"f32.reinterpret_i32",
|
|
203
|
+
"f64.reinterpret_i64",
|
|
204
|
+
"i32.extend8_s",
|
|
205
|
+
"i32.extend16_s",
|
|
206
|
+
"i64.extend8_s",
|
|
207
|
+
"i64.extend16_s",
|
|
208
|
+
"i64.extend32_s",
|
|
209
|
+
void 0,
|
|
210
|
+
void 0,
|
|
211
|
+
void 0,
|
|
212
|
+
void 0,
|
|
213
|
+
void 0,
|
|
214
|
+
void 0,
|
|
215
|
+
void 0,
|
|
216
|
+
void 0,
|
|
217
|
+
void 0,
|
|
218
|
+
void 0,
|
|
219
|
+
void 0,
|
|
220
|
+
"ref.null",
|
|
221
|
+
"ref.is_null",
|
|
222
|
+
"ref.func",
|
|
223
|
+
"ref.as_non_null",
|
|
224
|
+
"br_on_null",
|
|
225
|
+
"ref.eq",
|
|
226
|
+
"br_on_non_null",
|
|
227
|
+
void 0,
|
|
228
|
+
void 0,
|
|
229
|
+
void 0,
|
|
230
|
+
void 0,
|
|
231
|
+
void 0,
|
|
232
|
+
void 0,
|
|
233
|
+
void 0,
|
|
234
|
+
void 0,
|
|
235
|
+
void 0,
|
|
236
|
+
void 0,
|
|
237
|
+
void 0,
|
|
238
|
+
void 0,
|
|
239
|
+
void 0,
|
|
240
|
+
void 0,
|
|
241
|
+
void 0,
|
|
242
|
+
void 0,
|
|
243
|
+
void 0,
|
|
244
|
+
void 0,
|
|
245
|
+
void 0,
|
|
246
|
+
void 0,
|
|
247
|
+
void 0,
|
|
248
|
+
void 0,
|
|
249
|
+
void 0,
|
|
250
|
+
void 0,
|
|
251
|
+
void 0,
|
|
252
|
+
void 0,
|
|
253
|
+
void 0,
|
|
254
|
+
void 0,
|
|
255
|
+
void 0,
|
|
256
|
+
void 0,
|
|
257
|
+
void 0,
|
|
258
|
+
void 0,
|
|
259
|
+
void 0,
|
|
260
|
+
void 0,
|
|
261
|
+
void 0,
|
|
262
|
+
void 0,
|
|
263
|
+
void 0,
|
|
264
|
+
void 0,
|
|
265
|
+
void 0,
|
|
266
|
+
void 0,
|
|
267
|
+
void 0
|
|
268
|
+
];
|
|
269
|
+
[
|
|
270
|
+
"i32.trunc_sat_f32_s",
|
|
271
|
+
"i32.trunc_sat_f32_u",
|
|
272
|
+
"i32.trunc_sat_f64_s",
|
|
273
|
+
"i32.trunc_sat_f64_u",
|
|
274
|
+
"i64.trunc_sat_f32_s",
|
|
275
|
+
"i64.trunc_sat_f32_u",
|
|
276
|
+
"i64.trunc_sat_f64_s",
|
|
277
|
+
"i64.trunc_sat_f64_u",
|
|
278
|
+
"memory.init",
|
|
279
|
+
"data.drop",
|
|
280
|
+
"memory.copy",
|
|
281
|
+
"memory.fill",
|
|
282
|
+
"table.init",
|
|
283
|
+
"elem.drop",
|
|
284
|
+
"table.copy",
|
|
285
|
+
"table.grow",
|
|
286
|
+
"table.size",
|
|
287
|
+
"table.fill"
|
|
288
|
+
].forEach((e, t) => {
|
|
289
|
+
o[64512 | t] = e;
|
|
290
|
+
}), [
|
|
291
|
+
"v128.load",
|
|
292
|
+
"i16x8.load8x8_s",
|
|
293
|
+
"i16x8.load8x8_u",
|
|
294
|
+
"i32x4.load16x4_s",
|
|
295
|
+
"i32x4.load16x4_u",
|
|
296
|
+
"i64x2.load32x2_s",
|
|
297
|
+
"i64x2.load32x2_u",
|
|
298
|
+
"v8x16.load_splat",
|
|
299
|
+
"v16x8.load_splat",
|
|
300
|
+
"v32x4.load_splat",
|
|
301
|
+
"v64x2.load_splat",
|
|
302
|
+
"v128.store",
|
|
303
|
+
"v128.const",
|
|
304
|
+
"i8x16.shuffle",
|
|
305
|
+
"i8x16.swizzle",
|
|
306
|
+
"i8x16.splat",
|
|
307
|
+
"i16x8.splat",
|
|
308
|
+
"i32x4.splat",
|
|
309
|
+
"i64x2.splat",
|
|
310
|
+
"f32x4.splat",
|
|
311
|
+
"f64x2.splat",
|
|
312
|
+
"i8x16.extract_lane_s",
|
|
313
|
+
"i8x16.extract_lane_u",
|
|
314
|
+
"i8x16.replace_lane",
|
|
315
|
+
"i16x8.extract_lane_s",
|
|
316
|
+
"i16x8.extract_lane_u",
|
|
317
|
+
"i16x8.replace_lane",
|
|
318
|
+
"i32x4.extract_lane",
|
|
319
|
+
"i32x4.replace_lane",
|
|
320
|
+
"i64x2.extract_lane",
|
|
321
|
+
"i64x2.replace_lane",
|
|
322
|
+
"f32x4.extract_lane",
|
|
323
|
+
"f32x4.replace_lane",
|
|
324
|
+
"f64x2.extract_lane",
|
|
325
|
+
"f64x2.replace_lane",
|
|
326
|
+
"i8x16.eq",
|
|
327
|
+
"i8x16.ne",
|
|
328
|
+
"i8x16.lt_s",
|
|
329
|
+
"i8x16.lt_u",
|
|
330
|
+
"i8x16.gt_s",
|
|
331
|
+
"i8x16.gt_u",
|
|
332
|
+
"i8x16.le_s",
|
|
333
|
+
"i8x16.le_u",
|
|
334
|
+
"i8x16.ge_s",
|
|
335
|
+
"i8x16.ge_u",
|
|
336
|
+
"i16x8.eq",
|
|
337
|
+
"i16x8.ne",
|
|
338
|
+
"i16x8.lt_s",
|
|
339
|
+
"i16x8.lt_u",
|
|
340
|
+
"i16x8.gt_s",
|
|
341
|
+
"i16x8.gt_u",
|
|
342
|
+
"i16x8.le_s",
|
|
343
|
+
"i16x8.le_u",
|
|
344
|
+
"i16x8.ge_s",
|
|
345
|
+
"i16x8.ge_u",
|
|
346
|
+
"i32x4.eq",
|
|
347
|
+
"i32x4.ne",
|
|
348
|
+
"i32x4.lt_s",
|
|
349
|
+
"i32x4.lt_u",
|
|
350
|
+
"i32x4.gt_s",
|
|
351
|
+
"i32x4.gt_u",
|
|
352
|
+
"i32x4.le_s",
|
|
353
|
+
"i32x4.le_u",
|
|
354
|
+
"i32x4.ge_s",
|
|
355
|
+
"i32x4.ge_u",
|
|
356
|
+
"f32x4.eq",
|
|
357
|
+
"f32x4.ne",
|
|
358
|
+
"f32x4.lt",
|
|
359
|
+
"f32x4.gt",
|
|
360
|
+
"f32x4.le",
|
|
361
|
+
"f32x4.ge",
|
|
362
|
+
"f64x2.eq",
|
|
363
|
+
"f64x2.ne",
|
|
364
|
+
"f64x2.lt",
|
|
365
|
+
"f64x2.gt",
|
|
366
|
+
"f64x2.le",
|
|
367
|
+
"f64x2.ge",
|
|
368
|
+
"v128.not",
|
|
369
|
+
"v128.and",
|
|
370
|
+
"v128.andnot",
|
|
371
|
+
"v128.or",
|
|
372
|
+
"v128.xor",
|
|
373
|
+
"v128.bitselect",
|
|
374
|
+
"v128.any_true",
|
|
375
|
+
"v128.load8_lane",
|
|
376
|
+
"v128.load16_lane",
|
|
377
|
+
"v128.load32_lane",
|
|
378
|
+
"v128.load64_lane",
|
|
379
|
+
"v128.store8_lane",
|
|
380
|
+
"v128.store16_lane",
|
|
381
|
+
"v128.store32_lane",
|
|
382
|
+
"v128.store64_lane",
|
|
383
|
+
"v128.load32_zero",
|
|
384
|
+
"v128.load64_zero",
|
|
385
|
+
"f32x4.demote_f64x2_zero",
|
|
386
|
+
"f64x2.promote_low_f32x4",
|
|
387
|
+
"i8x16.abs",
|
|
388
|
+
"i8x16.neg",
|
|
389
|
+
"i8x16_popcnt",
|
|
390
|
+
"i8x16.all_true",
|
|
391
|
+
"i8x16.bitmask",
|
|
392
|
+
"i8x16.narrow_i16x8_s",
|
|
393
|
+
"i8x16.narrow_i16x8_u",
|
|
394
|
+
"f32x4.ceil",
|
|
395
|
+
"f32x4.floor",
|
|
396
|
+
"f32x4.trunc",
|
|
397
|
+
"f32x4.nearest",
|
|
398
|
+
"i8x16.shl",
|
|
399
|
+
"i8x16.shr_s",
|
|
400
|
+
"i8x16.shr_u",
|
|
401
|
+
"i8x16.add",
|
|
402
|
+
"i8x16.add_sat_s",
|
|
403
|
+
"i8x16.add_sat_u",
|
|
404
|
+
"i8x16.sub",
|
|
405
|
+
"i8x16.sub_sat_s",
|
|
406
|
+
"i8x16.sub_sat_u",
|
|
407
|
+
"f64x2.ceil",
|
|
408
|
+
"f64x2.floor",
|
|
409
|
+
"i8x16.min_s",
|
|
410
|
+
"i8x16.min_u",
|
|
411
|
+
"i8x16.max_s",
|
|
412
|
+
"i8x16.max_u",
|
|
413
|
+
"f64x2.trunc",
|
|
414
|
+
"i8x16.avgr_u",
|
|
415
|
+
"i16x8.extadd_pairwise_i8x16_s",
|
|
416
|
+
"i16x8.extadd_pairwise_i8x16_u",
|
|
417
|
+
"i32x4.extadd_pairwise_i16x8_s",
|
|
418
|
+
"i32x4.extadd_pairwise_i16x8_u",
|
|
419
|
+
"i16x8.abs",
|
|
420
|
+
"i16x8.neg",
|
|
421
|
+
"i16x8.q15mulr_sat_s",
|
|
422
|
+
"i16x8.all_true",
|
|
423
|
+
"i16x8.bitmask",
|
|
424
|
+
"i16x8.narrow_i32x4_s",
|
|
425
|
+
"i16x8.narrow_i32x4_u",
|
|
426
|
+
"i16x8.extend_low_i8x16_s",
|
|
427
|
+
"i16x8.extend_high_i8x16_s",
|
|
428
|
+
"i16x8.extend_low_i8x16_u",
|
|
429
|
+
"i16x8.extend_high_i8x16_u",
|
|
430
|
+
"i16x8.shl",
|
|
431
|
+
"i16x8.shr_s",
|
|
432
|
+
"i16x8.shr_u",
|
|
433
|
+
"i16x8.add",
|
|
434
|
+
"i16x8.add_sat_s",
|
|
435
|
+
"i16x8.add_sat_u",
|
|
436
|
+
"i16x8.sub",
|
|
437
|
+
"i16x8.sub_sat_s",
|
|
438
|
+
"i16x8.sub_sat_u",
|
|
439
|
+
"f64x2.nearest",
|
|
440
|
+
"i16x8.mul",
|
|
441
|
+
"i16x8.min_s",
|
|
442
|
+
"i16x8.min_u",
|
|
443
|
+
"i16x8.max_s",
|
|
444
|
+
"i16x8.max_u",
|
|
445
|
+
void 0,
|
|
446
|
+
"i16x8.avgr_u",
|
|
447
|
+
"i16x8.extmul_low_i8x16_s",
|
|
448
|
+
"i16x8.extmul_high_i8x16_s",
|
|
449
|
+
"i16x8.extmul_low_i8x16_u",
|
|
450
|
+
"i16x8.extmul_high_i8x16_u",
|
|
451
|
+
"i32x4.abs",
|
|
452
|
+
"i32x4.neg",
|
|
453
|
+
void 0,
|
|
454
|
+
"i32x4.all_true",
|
|
455
|
+
"i32x4.bitmask",
|
|
456
|
+
void 0,
|
|
457
|
+
void 0,
|
|
458
|
+
"i32x4.extend_low_i16x8_s",
|
|
459
|
+
"i32x4.extend_high_i16x8_s",
|
|
460
|
+
"i32x4.extend_low_i16x8_u",
|
|
461
|
+
"i32x4.extend_high_i16x8_u",
|
|
462
|
+
"i32x4.shl",
|
|
463
|
+
"i32x4.shr_s",
|
|
464
|
+
"i32x4.shr_u",
|
|
465
|
+
"i32x4.add",
|
|
466
|
+
void 0,
|
|
467
|
+
void 0,
|
|
468
|
+
"i32x4.sub",
|
|
469
|
+
void 0,
|
|
470
|
+
void 0,
|
|
471
|
+
void 0,
|
|
472
|
+
"i32x4.mul",
|
|
473
|
+
"i32x4.min_s",
|
|
474
|
+
"i32x4.min_u",
|
|
475
|
+
"i32x4.max_s",
|
|
476
|
+
"i32x4.max_u",
|
|
477
|
+
"i32x4.dot_i16x8_s",
|
|
478
|
+
void 0,
|
|
479
|
+
"i32x4.extmul_low_i16x8_s",
|
|
480
|
+
"i32x4.extmul_high_i16x8_s",
|
|
481
|
+
"i32x4.extmul_low_i16x8_u",
|
|
482
|
+
"i32x4.extmul_high_i16x8_u",
|
|
483
|
+
"i64x2.abs",
|
|
484
|
+
"i64x2.neg",
|
|
485
|
+
void 0,
|
|
486
|
+
"i64x2.all_true",
|
|
487
|
+
"i64x2.bitmask",
|
|
488
|
+
void 0,
|
|
489
|
+
void 0,
|
|
490
|
+
"i64x2.extend_low_i32x4_s",
|
|
491
|
+
"i64x2.extend_high_i32x4_s",
|
|
492
|
+
"i64x2.extend_low_i32x4_u",
|
|
493
|
+
"i64x2.extend_high_i32x4_u",
|
|
494
|
+
"i64x2.shl",
|
|
495
|
+
"i64x2.shr_s",
|
|
496
|
+
"i64x2.shr_u",
|
|
497
|
+
"i64x2.add",
|
|
498
|
+
void 0,
|
|
499
|
+
void 0,
|
|
500
|
+
"i64x2.sub",
|
|
501
|
+
void 0,
|
|
502
|
+
void 0,
|
|
503
|
+
void 0,
|
|
504
|
+
"i64x2.mul",
|
|
505
|
+
"i64x2.eq",
|
|
506
|
+
"i64x2.ne",
|
|
507
|
+
"i64x2.lt_s",
|
|
508
|
+
"i64x2.gt_s",
|
|
509
|
+
"i64x2.le_s",
|
|
510
|
+
"i64x2.ge_s",
|
|
511
|
+
"i64x2.extmul_low_i32x4_s",
|
|
512
|
+
"i64x2.extmul_high_i32x4_s",
|
|
513
|
+
"i64x2.extmul_low_i32x4_u",
|
|
514
|
+
"i64x2.extmul_high_i32x4_u",
|
|
515
|
+
"f32x4.abs",
|
|
516
|
+
"f32x4.neg",
|
|
517
|
+
void 0,
|
|
518
|
+
"f32x4.sqrt",
|
|
519
|
+
"f32x4.add",
|
|
520
|
+
"f32x4.sub",
|
|
521
|
+
"f32x4.mul",
|
|
522
|
+
"f32x4.div",
|
|
523
|
+
"f32x4.min",
|
|
524
|
+
"f32x4.max",
|
|
525
|
+
"f32x4.pmin",
|
|
526
|
+
"f32x4.pmax",
|
|
527
|
+
"f64x2.abs",
|
|
528
|
+
"f64x2.neg",
|
|
529
|
+
void 0,
|
|
530
|
+
"f64x2.sqrt",
|
|
531
|
+
"f64x2.add",
|
|
532
|
+
"f64x2.sub",
|
|
533
|
+
"f64x2.mul",
|
|
534
|
+
"f64x2.div",
|
|
535
|
+
"f64x2.min",
|
|
536
|
+
"f64x2.max",
|
|
537
|
+
"f64x2.pmin",
|
|
538
|
+
"f64x2.pmax",
|
|
539
|
+
"i32x4.trunc_sat_f32x4_s",
|
|
540
|
+
"i32x4.trunc_sat_f32x4_u",
|
|
541
|
+
"f32x4.convert_i32x4_s",
|
|
542
|
+
"f32x4.convert_i32x4_u",
|
|
543
|
+
"i32x4.trunc_sat_f64x2_s_zero",
|
|
544
|
+
"i32x4.trunc_sat_f64x2_u_zero",
|
|
545
|
+
"f64x2.convert_low_i32x4_s",
|
|
546
|
+
"f64x2.convert_low_i32x4_u"
|
|
547
|
+
].forEach((e, t) => {
|
|
548
|
+
o[64768 | t] = e;
|
|
549
|
+
}), [
|
|
550
|
+
"atomic.notify",
|
|
551
|
+
"i32.atomic.wait",
|
|
552
|
+
"i64.atomic.wait",
|
|
553
|
+
"atomic.fence",
|
|
554
|
+
void 0,
|
|
555
|
+
void 0,
|
|
556
|
+
void 0,
|
|
557
|
+
void 0,
|
|
558
|
+
void 0,
|
|
559
|
+
void 0,
|
|
560
|
+
void 0,
|
|
561
|
+
void 0,
|
|
562
|
+
void 0,
|
|
563
|
+
void 0,
|
|
564
|
+
void 0,
|
|
565
|
+
void 0,
|
|
566
|
+
"i32.atomic.load",
|
|
567
|
+
"i64.atomic.load",
|
|
568
|
+
"i32.atomic.load8_u",
|
|
569
|
+
"i32.atomic.load16_u",
|
|
570
|
+
"i64.atomic.load8_u",
|
|
571
|
+
"i64.atomic.load16_u",
|
|
572
|
+
"i64.atomic.load32_u",
|
|
573
|
+
"i32.atomic.store",
|
|
574
|
+
"i64.atomic.store",
|
|
575
|
+
"i32.atomic.store8",
|
|
576
|
+
"i32.atomic.store16",
|
|
577
|
+
"i64.atomic.store8",
|
|
578
|
+
"i64.atomic.store16",
|
|
579
|
+
"i64.atomic.store32",
|
|
580
|
+
"i32.atomic.rmw.add",
|
|
581
|
+
"i64.atomic.rmw.add",
|
|
582
|
+
"i32.atomic.rmw8.add_u",
|
|
583
|
+
"i32.atomic.rmw16.add_u",
|
|
584
|
+
"i64.atomic.rmw8.add_u",
|
|
585
|
+
"i64.atomic.rmw16.add_u",
|
|
586
|
+
"i64.atomic.rmw32.add_u",
|
|
587
|
+
"i32.atomic.rmw.sub",
|
|
588
|
+
"i64.atomic.rmw.sub",
|
|
589
|
+
"i32.atomic.rmw8.sub_u",
|
|
590
|
+
"i32.atomic.rmw16.sub_u",
|
|
591
|
+
"i64.atomic.rmw8.sub_u",
|
|
592
|
+
"i64.atomic.rmw16.sub_u",
|
|
593
|
+
"i64.atomic.rmw32.sub_u",
|
|
594
|
+
"i32.atomic.rmw.and",
|
|
595
|
+
"i64.atomic.rmw.and",
|
|
596
|
+
"i32.atomic.rmw8.and_u",
|
|
597
|
+
"i32.atomic.rmw16.and_u",
|
|
598
|
+
"i64.atomic.rmw8.and_u",
|
|
599
|
+
"i64.atomic.rmw16.and_u",
|
|
600
|
+
"i64.atomic.rmw32.and_u",
|
|
601
|
+
"i32.atomic.rmw.or",
|
|
602
|
+
"i64.atomic.rmw.or",
|
|
603
|
+
"i32.atomic.rmw8.or_u",
|
|
604
|
+
"i32.atomic.rmw16.or_u",
|
|
605
|
+
"i64.atomic.rmw8.or_u",
|
|
606
|
+
"i64.atomic.rmw16.or_u",
|
|
607
|
+
"i64.atomic.rmw32.or_u",
|
|
608
|
+
"i32.atomic.rmw.xor",
|
|
609
|
+
"i64.atomic.rmw.xor",
|
|
610
|
+
"i32.atomic.rmw8.xor_u",
|
|
611
|
+
"i32.atomic.rmw16.xor_u",
|
|
612
|
+
"i64.atomic.rmw8.xor_u",
|
|
613
|
+
"i64.atomic.rmw16.xor_u",
|
|
614
|
+
"i64.atomic.rmw32.xor_u",
|
|
615
|
+
"i32.atomic.rmw.xchg",
|
|
616
|
+
"i64.atomic.rmw.xchg",
|
|
617
|
+
"i32.atomic.rmw8.xchg_u",
|
|
618
|
+
"i32.atomic.rmw16.xchg_u",
|
|
619
|
+
"i64.atomic.rmw8.xchg_u",
|
|
620
|
+
"i64.atomic.rmw16.xchg_u",
|
|
621
|
+
"i64.atomic.rmw32.xchg_u",
|
|
622
|
+
"i32.atomic.rmw.cmpxchg",
|
|
623
|
+
"i64.atomic.rmw.cmpxchg",
|
|
624
|
+
"i32.atomic.rmw8.cmpxchg_u",
|
|
625
|
+
"i32.atomic.rmw16.cmpxchg_u",
|
|
626
|
+
"i64.atomic.rmw8.cmpxchg_u",
|
|
627
|
+
"i64.atomic.rmw16.cmpxchg_u",
|
|
628
|
+
"i64.atomic.rmw32.cmpxchg_u"
|
|
629
|
+
].forEach((e, t) => {
|
|
630
|
+
o[65024 | t] = e;
|
|
631
|
+
}), o[64257] = "struct.new_with_rtt", o[64258] = "struct.new_default_with_rtt", o[64259] = "struct.get", o[64260] = "struct.get_s", o[64261] = "struct.get_u", o[64262] = "struct.set", o[64263] = "struct.new", o[64264] = "struct.new_default", o[64273] = "array.new_with_rtt", o[64274] = "array.new_default_with_rtt", o[64275] = "array.get", o[64276] = "array.get_s", o[64277] = "array.get_u", o[64278] = "array.set", o[64279] = "array.len", o[64280] = "array.copy", o[64281] = "array.init", o[64282] = "array.init_static", o[64283] = "array.new", o[64284] = "array.new_default", o[64288] = "i31.new", o[64289] = "i31.get_s", o[64290] = "i31.get_u", o[64304] = "rtt.canon", o[64305] = "rtt.sub", o[64306] = "rtt.fresh_sub", o[64320] = "ref.test", o[64321] = "ref.cast", o[64322] = "br_on_cast", o[64323] = "br_on_cast_fail", o[64324] = "ref.test_static", o[64325] = "ref.cast_static", o[64326] = "br_on_cast_static", o[64327] = "br_on_cast_static_fail", o[64336] = "ref.is_func", o[64337] = "ref.is_data", o[64338] = "ref.is_i31", o[64344] = "ref.as_func", o[64345] = "ref.as_data", o[64346] = "ref.as_i31", o[64352] = "br_on_func", o[64353] = "br_on_data", o[64354] = "br_on_i31", o[64355] = "br_on_non_func", o[64356] = "br_on_non_data", o[64357] = "br_on_non_i31";
|
|
632
|
+
var s;
|
|
633
|
+
(function(e) {
|
|
634
|
+
e[e.Function = 0] = "Function", e[e.Table = 1] = "Table", e[e.Memory = 2] = "Memory", e[e.Global = 3] = "Global", e[e.Event = 4] = "Event";
|
|
635
|
+
})(s ||= {});
|
|
636
|
+
var c;
|
|
637
|
+
(function(e) {
|
|
638
|
+
e[e.unspecified = 0] = "unspecified", e[e.i32 = -1] = "i32", e[e.i64 = -2] = "i64", e[e.f32 = -3] = "f32", e[e.f64 = -4] = "f64", e[e.v128 = -5] = "v128", e[e.i8 = -6] = "i8", e[e.i16 = -7] = "i16", e[e.funcref = -16] = "funcref", e[e.externref = -17] = "externref", e[e.anyref = -18] = "anyref", e[e.eqref = -19] = "eqref", e[e.optref = -20] = "optref", e[e.ref = -21] = "ref", e[e.i31ref = -22] = "i31ref", e[e.rtt_d = -23] = "rtt_d", e[e.rtt = -24] = "rtt", e[e.dataref = -25] = "dataref", e[e.func = -32] = "func", e[e.struct = -33] = "struct", e[e.array = -34] = "array", e[e.func_subtype = -35] = "func_subtype", e[e.struct_subtype = -36] = "struct_subtype", e[e.array_subtype = -37] = "array_subtype", e[e.empty_block_type = -64] = "empty_block_type";
|
|
639
|
+
})(c ||= {});
|
|
640
|
+
var l = class {
|
|
641
|
+
constructor(e, t = -1, n = -1) {
|
|
642
|
+
if (!(e < 0 || e === 0 && t >= 0)) throw Error(`invalid type: ${e}/${t}/${n}`);
|
|
643
|
+
this.kind = e, this.index = t, this.depth = n, (t === -16 && e === -20 || t === -17 && e === -20 || t === -18 && e === -20 || t === -19 && e === -20 || t === -22 && e === -21 || t === -25 && e === -21) && (this.kind = t, this.index = -1);
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
l.funcref = new l(-16), l.externref = new l(-17);
|
|
647
|
+
var u;
|
|
648
|
+
(function(e) {
|
|
649
|
+
e[e.FunctionIndex_LEB = 0] = "FunctionIndex_LEB", e[e.TableIndex_SLEB = 1] = "TableIndex_SLEB", e[e.TableIndex_I32 = 2] = "TableIndex_I32", e[e.GlobalAddr_LEB = 3] = "GlobalAddr_LEB", e[e.GlobalAddr_SLEB = 4] = "GlobalAddr_SLEB", e[e.GlobalAddr_I32 = 5] = "GlobalAddr_I32", e[e.TypeIndex_LEB = 6] = "TypeIndex_LEB", e[e.GlobalIndex_LEB = 7] = "GlobalIndex_LEB";
|
|
650
|
+
})(u ||= {});
|
|
651
|
+
var d;
|
|
652
|
+
(function(e) {
|
|
653
|
+
e[e.StackPointer = 1] = "StackPointer";
|
|
654
|
+
})(d ||= {});
|
|
655
|
+
var f;
|
|
656
|
+
(function(e) {
|
|
657
|
+
e[e.Module = 0] = "Module", e[e.Function = 1] = "Function", e[e.Local = 2] = "Local", e[e.Event = 3] = "Event", e[e.Type = 4] = "Type", e[e.Table = 5] = "Table", e[e.Memory = 6] = "Memory", e[e.Global = 7] = "Global", e[e.Field = 10] = "Field";
|
|
658
|
+
})(f ||= {});
|
|
659
|
+
var p;
|
|
660
|
+
(function(e) {
|
|
661
|
+
e[e.ERROR = -1] = "ERROR", e[e.INITIAL = 0] = "INITIAL", e[e.BEGIN_WASM = 1] = "BEGIN_WASM", e[e.END_WASM = 2] = "END_WASM", e[e.BEGIN_SECTION = 3] = "BEGIN_SECTION", e[e.END_SECTION = 4] = "END_SECTION", e[e.SKIPPING_SECTION = 5] = "SKIPPING_SECTION", e[e.READING_SECTION_RAW_DATA = 6] = "READING_SECTION_RAW_DATA", e[e.SECTION_RAW_DATA = 7] = "SECTION_RAW_DATA", e[e.TYPE_SECTION_ENTRY = 11] = "TYPE_SECTION_ENTRY", e[e.IMPORT_SECTION_ENTRY = 12] = "IMPORT_SECTION_ENTRY", e[e.FUNCTION_SECTION_ENTRY = 13] = "FUNCTION_SECTION_ENTRY", e[e.TABLE_SECTION_ENTRY = 14] = "TABLE_SECTION_ENTRY", e[e.MEMORY_SECTION_ENTRY = 15] = "MEMORY_SECTION_ENTRY", e[e.GLOBAL_SECTION_ENTRY = 16] = "GLOBAL_SECTION_ENTRY", e[e.EXPORT_SECTION_ENTRY = 17] = "EXPORT_SECTION_ENTRY", e[e.DATA_SECTION_ENTRY = 18] = "DATA_SECTION_ENTRY", e[e.NAME_SECTION_ENTRY = 19] = "NAME_SECTION_ENTRY", e[e.ELEMENT_SECTION_ENTRY = 20] = "ELEMENT_SECTION_ENTRY", e[e.LINKING_SECTION_ENTRY = 21] = "LINKING_SECTION_ENTRY", e[e.START_SECTION_ENTRY = 22] = "START_SECTION_ENTRY", e[e.EVENT_SECTION_ENTRY = 23] = "EVENT_SECTION_ENTRY", e[e.BEGIN_INIT_EXPRESSION_BODY = 25] = "BEGIN_INIT_EXPRESSION_BODY", e[e.INIT_EXPRESSION_OPERATOR = 26] = "INIT_EXPRESSION_OPERATOR", e[e.END_INIT_EXPRESSION_BODY = 27] = "END_INIT_EXPRESSION_BODY", e[e.BEGIN_FUNCTION_BODY = 28] = "BEGIN_FUNCTION_BODY", e[e.READING_FUNCTION_HEADER = 29] = "READING_FUNCTION_HEADER", e[e.CODE_OPERATOR = 30] = "CODE_OPERATOR", e[e.END_FUNCTION_BODY = 31] = "END_FUNCTION_BODY", e[e.SKIPPING_FUNCTION_BODY = 32] = "SKIPPING_FUNCTION_BODY", e[e.BEGIN_ELEMENT_SECTION_ENTRY = 33] = "BEGIN_ELEMENT_SECTION_ENTRY", e[e.ELEMENT_SECTION_ENTRY_BODY = 34] = "ELEMENT_SECTION_ENTRY_BODY", e[e.END_ELEMENT_SECTION_ENTRY = 35] = "END_ELEMENT_SECTION_ENTRY", e[e.BEGIN_DATA_SECTION_ENTRY = 36] = "BEGIN_DATA_SECTION_ENTRY", e[e.DATA_SECTION_ENTRY_BODY = 37] = "DATA_SECTION_ENTRY_BODY", e[e.END_DATA_SECTION_ENTRY = 38] = "END_DATA_SECTION_ENTRY", e[e.BEGIN_GLOBAL_SECTION_ENTRY = 39] = "BEGIN_GLOBAL_SECTION_ENTRY", e[e.END_GLOBAL_SECTION_ENTRY = 40] = "END_GLOBAL_SECTION_ENTRY", e[e.RELOC_SECTION_HEADER = 41] = "RELOC_SECTION_HEADER", e[e.RELOC_SECTION_ENTRY = 42] = "RELOC_SECTION_ENTRY", e[e.SOURCE_MAPPING_URL = 43] = "SOURCE_MAPPING_URL", e[e.BEGIN_OFFSET_EXPRESSION_BODY = 44] = "BEGIN_OFFSET_EXPRESSION_BODY", e[e.OFFSET_EXPRESSION_OPERATOR = 45] = "OFFSET_EXPRESSION_OPERATOR", e[e.END_OFFSET_EXPRESSION_BODY = 46] = "END_OFFSET_EXPRESSION_BODY";
|
|
662
|
+
})(p ||= {});
|
|
663
|
+
var m;
|
|
664
|
+
(function(e) {
|
|
665
|
+
e[e.Active = 0] = "Active", e[e.Passive = 1] = "Passive", e[e.ActiveWithMemoryIndex = 2] = "ActiveWithMemoryIndex";
|
|
666
|
+
})(m ||= {});
|
|
667
|
+
function h(e) {
|
|
668
|
+
switch (e) {
|
|
669
|
+
case 0:
|
|
670
|
+
case 2: return !0;
|
|
671
|
+
default: return !1;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
var g;
|
|
675
|
+
(function(e) {
|
|
676
|
+
e[e.Active = 0] = "Active", e[e.Passive = 1] = "Passive";
|
|
677
|
+
})(g ||= {});
|
|
678
|
+
var _;
|
|
679
|
+
(function(e) {
|
|
680
|
+
e[e.LegacyActiveFuncrefExternval = 0] = "LegacyActiveFuncrefExternval", e[e.PassiveExternval = 1] = "PassiveExternval", e[e.ActiveExternval = 2] = "ActiveExternval", e[e.DeclaredExternval = 3] = "DeclaredExternval", e[e.LegacyActiveFuncrefElemexpr = 4] = "LegacyActiveFuncrefElemexpr", e[e.PassiveElemexpr = 5] = "PassiveElemexpr", e[e.ActiveElemexpr = 6] = "ActiveElemexpr", e[e.DeclaredElemexpr = 7] = "DeclaredElemexpr";
|
|
681
|
+
})(_ ||= {});
|
|
682
|
+
function v(e) {
|
|
683
|
+
switch (e) {
|
|
684
|
+
case 0:
|
|
685
|
+
case 2:
|
|
686
|
+
case 4:
|
|
687
|
+
case 6: return !0;
|
|
688
|
+
default: return !1;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
function y(e) {
|
|
692
|
+
switch (e) {
|
|
693
|
+
case 0:
|
|
694
|
+
case 1:
|
|
695
|
+
case 2:
|
|
696
|
+
case 3: return !0;
|
|
697
|
+
default: return !1;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
var b;
|
|
701
|
+
(function(e) {
|
|
702
|
+
e[e.Active = 0] = "Active", e[e.Passive = 1] = "Passive", e[e.Declarative = 2] = "Declarative";
|
|
703
|
+
})(b ||= {});
|
|
704
|
+
var x = class {
|
|
705
|
+
constructor(e, t) {
|
|
706
|
+
this.start = e, this.end = t;
|
|
707
|
+
}
|
|
708
|
+
offset(e) {
|
|
709
|
+
this.start += e, this.end += e;
|
|
710
|
+
}
|
|
711
|
+
}, S = class {
|
|
712
|
+
constructor(e) {
|
|
713
|
+
this._data = e || new Uint8Array(8);
|
|
714
|
+
}
|
|
715
|
+
toInt32() {
|
|
716
|
+
return this._data[0] | this._data[1] << 8 | this._data[2] << 16 | this._data[3] << 24;
|
|
717
|
+
}
|
|
718
|
+
toDouble() {
|
|
719
|
+
var e = 1, t;
|
|
720
|
+
if (this._data[7] & 128) {
|
|
721
|
+
t = -1;
|
|
722
|
+
for (var n = 0; n < 8; n++, e *= 256) t -= e * (255 ^ this._data[n]);
|
|
723
|
+
} else {
|
|
724
|
+
t = 0;
|
|
725
|
+
for (var n = 0; n < 8; n++, e *= 256) t += e * this._data[n];
|
|
726
|
+
}
|
|
727
|
+
return t;
|
|
728
|
+
}
|
|
729
|
+
toString() {
|
|
730
|
+
var e = (this._data[0] | this._data[1] << 8 | this._data[2] << 16 | this._data[3] << 24) >>> 0, t = (this._data[4] | this._data[5] << 8 | this._data[6] << 16 | this._data[7] << 24) >>> 0;
|
|
731
|
+
if (e === 0 && t === 0) return "0";
|
|
732
|
+
var n = !1;
|
|
733
|
+
t >> 31 && (t = 4294967296 - t, e > 0 && (t--, e = 4294967296 - e), n = !0);
|
|
734
|
+
for (var r = []; t > 0;) {
|
|
735
|
+
var i = t % 10 * 4294967296 + e;
|
|
736
|
+
t = Math.floor(t / 10), r.unshift((i % 10).toString()), e = Math.floor(i / 10);
|
|
737
|
+
}
|
|
738
|
+
for (; e > 0;) r.unshift((e % 10).toString()), e = Math.floor(e / 10);
|
|
739
|
+
return n && r.unshift("-"), r.join("");
|
|
740
|
+
}
|
|
741
|
+
get data() {
|
|
742
|
+
return this._data;
|
|
743
|
+
}
|
|
744
|
+
}, C = class {
|
|
745
|
+
constructor() {
|
|
746
|
+
this._data = null, this._pos = 0, this._length = 0, this._eof = !1, this.state = 0, this.result = null, this.error = null, this._sectionEntriesLeft = 0, this._sectionId = -1, this._sectionRange = null, this._functionRange = null, this._segmentType = 0, this._segmentEntriesLeft = 0;
|
|
747
|
+
}
|
|
748
|
+
get data() {
|
|
749
|
+
return this._data;
|
|
750
|
+
}
|
|
751
|
+
get position() {
|
|
752
|
+
return this._pos;
|
|
753
|
+
}
|
|
754
|
+
get length() {
|
|
755
|
+
return this._length;
|
|
756
|
+
}
|
|
757
|
+
setData(e, t, n, r) {
|
|
758
|
+
var i = t - this._pos;
|
|
759
|
+
this._data = new Uint8Array(e), this._pos = t, this._length = n, this._eof = r === void 0 ? !0 : r, this._sectionRange && this._sectionRange.offset(i), this._functionRange && this._functionRange.offset(i);
|
|
760
|
+
}
|
|
761
|
+
hasBytes(e) {
|
|
762
|
+
return this._pos + e <= this._length;
|
|
763
|
+
}
|
|
764
|
+
hasMoreBytes() {
|
|
765
|
+
return this.hasBytes(1);
|
|
766
|
+
}
|
|
767
|
+
readUint8() {
|
|
768
|
+
return this._data[this._pos++];
|
|
769
|
+
}
|
|
770
|
+
readInt32() {
|
|
771
|
+
var e = this._data[this._pos++], t = this._data[this._pos++], n = this._data[this._pos++], r = this._data[this._pos++];
|
|
772
|
+
return e | t << 8 | n << 16 | r << 24;
|
|
773
|
+
}
|
|
774
|
+
readUint32() {
|
|
775
|
+
return this.readInt32();
|
|
776
|
+
}
|
|
777
|
+
peekInt32() {
|
|
778
|
+
var e = this._data[this._pos], t = this._data[this._pos + 1], n = this._data[this._pos + 2], r = this._data[this._pos + 3];
|
|
779
|
+
return e | t << 8 | n << 16 | r << 24;
|
|
780
|
+
}
|
|
781
|
+
hasVarIntBytes() {
|
|
782
|
+
for (var e = this._pos; e < this._length;) if (!(this._data[e++] & 128)) return !0;
|
|
783
|
+
return !1;
|
|
784
|
+
}
|
|
785
|
+
readVarUint1() {
|
|
786
|
+
return this.readUint8();
|
|
787
|
+
}
|
|
788
|
+
readVarInt7() {
|
|
789
|
+
return this.readUint8() << 25 >> 25;
|
|
790
|
+
}
|
|
791
|
+
readVarUint7() {
|
|
792
|
+
return this.readUint8();
|
|
793
|
+
}
|
|
794
|
+
readVarInt32() {
|
|
795
|
+
for (var e = 0, t = 0;;) {
|
|
796
|
+
var n = this.readUint8();
|
|
797
|
+
if (e |= (n & 127) << t, t += 7, !(n & 128)) break;
|
|
798
|
+
}
|
|
799
|
+
if (t >= 32) return e;
|
|
800
|
+
var r = 32 - t;
|
|
801
|
+
return e << r >> r;
|
|
802
|
+
}
|
|
803
|
+
readVarUint32() {
|
|
804
|
+
for (var e = 0, t = 0;;) {
|
|
805
|
+
var n = this.readUint8();
|
|
806
|
+
if (e |= (n & 127) << t, t += 7, !(n & 128)) break;
|
|
807
|
+
}
|
|
808
|
+
return e >>> 0;
|
|
809
|
+
}
|
|
810
|
+
readVarInt64() {
|
|
811
|
+
for (var e = new Uint8Array(8), t = 0, n = 0, r = 0;;) {
|
|
812
|
+
var i = this.readUint8();
|
|
813
|
+
if (n |= (i & 127) << r, r += 7, r > 8 && (e[t++] = n & 255, n >>= 8, r -= 8), !(i & 128)) break;
|
|
814
|
+
}
|
|
815
|
+
var a = 32 - r;
|
|
816
|
+
for (n = n << a >> a; t < 8;) e[t++] = n & 255, n >>= 8;
|
|
817
|
+
return new S(e);
|
|
818
|
+
}
|
|
819
|
+
readHeapType() {
|
|
820
|
+
for (var e = 0, t = 0, n;;) {
|
|
821
|
+
if (n = this.readUint8(), t === 28) return (n << 25 >> 25) * 2 ** 28 + e;
|
|
822
|
+
if (e |= (n & 127) << t, t += 7, !(n & 128)) break;
|
|
823
|
+
}
|
|
824
|
+
return t = 32 - t, e << t >> t;
|
|
825
|
+
}
|
|
826
|
+
readTypeInternal(e) {
|
|
827
|
+
if (e === -21 || e === -20 || e === -24) {
|
|
828
|
+
var t = this.readHeapType();
|
|
829
|
+
return new l(e, t);
|
|
830
|
+
}
|
|
831
|
+
if (e === -23) {
|
|
832
|
+
var t = this.readHeapType();
|
|
833
|
+
return new l(e, t, this.readVarUint32());
|
|
834
|
+
}
|
|
835
|
+
return new l(e);
|
|
836
|
+
}
|
|
837
|
+
readType() {
|
|
838
|
+
var e = this.readVarInt7();
|
|
839
|
+
return this.readTypeInternal(e);
|
|
840
|
+
}
|
|
841
|
+
readBlockType() {
|
|
842
|
+
var e = this.readHeapType();
|
|
843
|
+
return e < 0 ? this.readTypeInternal(e) : new l(0, e);
|
|
844
|
+
}
|
|
845
|
+
readStringBytes() {
|
|
846
|
+
var e = this.readVarUint32();
|
|
847
|
+
return this.readBytes(e);
|
|
848
|
+
}
|
|
849
|
+
readBytes(e) {
|
|
850
|
+
var t = this._data.subarray(this._pos, this._pos + e);
|
|
851
|
+
return this._pos += e, new Uint8Array(t);
|
|
852
|
+
}
|
|
853
|
+
skipBytes(e) {
|
|
854
|
+
this._pos += e;
|
|
855
|
+
}
|
|
856
|
+
hasStringBytes() {
|
|
857
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
858
|
+
var e = this._pos, t = this.readVarUint32(), n = this.hasBytes(t);
|
|
859
|
+
return this._pos = e, n;
|
|
860
|
+
}
|
|
861
|
+
hasSectionPayload() {
|
|
862
|
+
return this.hasBytes(this._sectionRange.end - this._pos);
|
|
863
|
+
}
|
|
864
|
+
readFuncType() {
|
|
865
|
+
for (var e = this.readVarUint32(), t = Array(e), n = 0; n < e; n++) t[n] = this.readType();
|
|
866
|
+
for (var r = this.readVarUint1(), i = Array(r), n = 0; n < r; n++) i[n] = this.readType();
|
|
867
|
+
return {
|
|
868
|
+
form: -32,
|
|
869
|
+
params: t,
|
|
870
|
+
returns: i
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
readFuncSubtype() {
|
|
874
|
+
var e = this.readFuncType();
|
|
875
|
+
return e.form = -35, e.supertype = this.readHeapType(), e;
|
|
876
|
+
}
|
|
877
|
+
readStructType() {
|
|
878
|
+
for (var e = this.readVarUint32(), t = Array(e), n = Array(e), r = 0; r < e; r++) t[r] = this.readType(), n[r] = !!this.readVarUint1();
|
|
879
|
+
return {
|
|
880
|
+
form: -33,
|
|
881
|
+
fields: t,
|
|
882
|
+
mutabilities: n
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
readStructSubtype() {
|
|
886
|
+
var e = this.readStructType();
|
|
887
|
+
return e.form = -36, e.supertype = this.readHeapType(), e;
|
|
888
|
+
}
|
|
889
|
+
readArrayType() {
|
|
890
|
+
return {
|
|
891
|
+
form: -34,
|
|
892
|
+
elementType: this.readType(),
|
|
893
|
+
mutability: !!this.readVarUint1()
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
readArraySubtype() {
|
|
897
|
+
var e = this.readArrayType();
|
|
898
|
+
return e.form = -37, e.supertype = this.readHeapType(), e;
|
|
899
|
+
}
|
|
900
|
+
readResizableLimits(e) {
|
|
901
|
+
var t = this.readVarUint32(), n;
|
|
902
|
+
return e && (n = this.readVarUint32()), {
|
|
903
|
+
initial: t,
|
|
904
|
+
maximum: n
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
readTableType() {
|
|
908
|
+
var e = this.readType(), t = this.readVarUint32();
|
|
909
|
+
return {
|
|
910
|
+
elementType: e,
|
|
911
|
+
limits: this.readResizableLimits(!!(t & 1))
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
readMemoryType() {
|
|
915
|
+
var e = this.readVarUint32(), t = !!(e & 2);
|
|
916
|
+
return {
|
|
917
|
+
limits: this.readResizableLimits(!!(e & 1)),
|
|
918
|
+
shared: t
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
readGlobalType() {
|
|
922
|
+
if (!this.hasVarIntBytes()) return null;
|
|
923
|
+
var e = this._pos, t = this.readType();
|
|
924
|
+
return this.hasVarIntBytes() ? {
|
|
925
|
+
contentType: t,
|
|
926
|
+
mutability: this.readVarUint1()
|
|
927
|
+
} : (this._pos = e, null);
|
|
928
|
+
}
|
|
929
|
+
readEventType() {
|
|
930
|
+
return {
|
|
931
|
+
attribute: this.readVarUint32(),
|
|
932
|
+
typeIndex: this.readVarUint32()
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
readTypeEntry() {
|
|
936
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
937
|
+
this.state = 11;
|
|
938
|
+
var e = this.readVarInt7();
|
|
939
|
+
switch (e) {
|
|
940
|
+
case -32:
|
|
941
|
+
this.result = this.readFuncType();
|
|
942
|
+
break;
|
|
943
|
+
case -35:
|
|
944
|
+
this.result = this.readFuncSubtype();
|
|
945
|
+
break;
|
|
946
|
+
case -33:
|
|
947
|
+
this.result = this.readStructType();
|
|
948
|
+
break;
|
|
949
|
+
case -36:
|
|
950
|
+
this.result = this.readStructSubtype();
|
|
951
|
+
break;
|
|
952
|
+
case -34:
|
|
953
|
+
this.result = this.readArrayType();
|
|
954
|
+
break;
|
|
955
|
+
case -37:
|
|
956
|
+
this.result = this.readArraySubtype();
|
|
957
|
+
break;
|
|
958
|
+
default: throw Error(`Unknown type kind: ${e}`);
|
|
959
|
+
}
|
|
960
|
+
return this._sectionEntriesLeft--, !0;
|
|
961
|
+
}
|
|
962
|
+
readImportEntry() {
|
|
963
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
964
|
+
this.state = 12;
|
|
965
|
+
var e = this.readStringBytes(), t = this.readStringBytes(), n = this.readUint8(), r, i;
|
|
966
|
+
switch (n) {
|
|
967
|
+
case 0:
|
|
968
|
+
r = this.readVarUint32();
|
|
969
|
+
break;
|
|
970
|
+
case 1:
|
|
971
|
+
i = this.readTableType();
|
|
972
|
+
break;
|
|
973
|
+
case 2:
|
|
974
|
+
i = this.readMemoryType();
|
|
975
|
+
break;
|
|
976
|
+
case 3:
|
|
977
|
+
i = this.readGlobalType();
|
|
978
|
+
break;
|
|
979
|
+
case 4:
|
|
980
|
+
i = this.readEventType();
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
return this.result = {
|
|
984
|
+
module: e,
|
|
985
|
+
field: t,
|
|
986
|
+
kind: n,
|
|
987
|
+
funcTypeIndex: r,
|
|
988
|
+
type: i
|
|
989
|
+
}, this._sectionEntriesLeft--, !0;
|
|
990
|
+
}
|
|
991
|
+
readExportEntry() {
|
|
992
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
993
|
+
var e = this.readStringBytes(), t = this.readUint8(), n = this.readVarUint32();
|
|
994
|
+
return this.state = 17, this.result = {
|
|
995
|
+
field: e,
|
|
996
|
+
kind: t,
|
|
997
|
+
index: n
|
|
998
|
+
}, this._sectionEntriesLeft--, !0;
|
|
999
|
+
}
|
|
1000
|
+
readFunctionEntry() {
|
|
1001
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
1002
|
+
var e = this.readVarUint32();
|
|
1003
|
+
return this.state = 13, this.result = { typeIndex: e }, this._sectionEntriesLeft--, !0;
|
|
1004
|
+
}
|
|
1005
|
+
readTableEntry() {
|
|
1006
|
+
return this._sectionEntriesLeft === 0 ? (this.skipSection(), this.read()) : (this.state = 14, this.result = this.readTableType(), this._sectionEntriesLeft--, !0);
|
|
1007
|
+
}
|
|
1008
|
+
readMemoryEntry() {
|
|
1009
|
+
return this._sectionEntriesLeft === 0 ? (this.skipSection(), this.read()) : (this.state = 15, this.result = this.readMemoryType(), this._sectionEntriesLeft--, !0);
|
|
1010
|
+
}
|
|
1011
|
+
readEventEntry() {
|
|
1012
|
+
return this._sectionEntriesLeft === 0 ? (this.skipSection(), this.read()) : (this.state = 23, this.result = this.readEventType(), this._sectionEntriesLeft--, !0);
|
|
1013
|
+
}
|
|
1014
|
+
readGlobalEntry() {
|
|
1015
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
1016
|
+
var e = this.readGlobalType();
|
|
1017
|
+
return e ? (this.state = 39, this.result = { type: e }, this._sectionEntriesLeft--, !0) : (this.state = 16, !1);
|
|
1018
|
+
}
|
|
1019
|
+
readElementEntry() {
|
|
1020
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
1021
|
+
let e = this._pos;
|
|
1022
|
+
if (!this.hasMoreBytes()) return this.state = 20, !1;
|
|
1023
|
+
let t = this.readUint8(), n, r;
|
|
1024
|
+
switch (t) {
|
|
1025
|
+
case 0:
|
|
1026
|
+
case 4:
|
|
1027
|
+
n = 0, r = 0;
|
|
1028
|
+
break;
|
|
1029
|
+
case 1:
|
|
1030
|
+
case 5:
|
|
1031
|
+
n = 1;
|
|
1032
|
+
break;
|
|
1033
|
+
case 2:
|
|
1034
|
+
case 6:
|
|
1035
|
+
if (n = 0, !this.hasVarIntBytes()) return this.state = 20, this._pos = e, !1;
|
|
1036
|
+
r = this.readVarUint32();
|
|
1037
|
+
break;
|
|
1038
|
+
case 3:
|
|
1039
|
+
case 7:
|
|
1040
|
+
n = 2;
|
|
1041
|
+
break;
|
|
1042
|
+
default: throw Error(`Unsupported element segment type ${t}`);
|
|
1043
|
+
}
|
|
1044
|
+
return this.state = 33, this.result = {
|
|
1045
|
+
mode: n,
|
|
1046
|
+
tableIndex: r
|
|
1047
|
+
}, this._sectionEntriesLeft--, this._segmentType = t, !0;
|
|
1048
|
+
}
|
|
1049
|
+
readElementEntryBody() {
|
|
1050
|
+
let e = l.funcref;
|
|
1051
|
+
switch (this._segmentType) {
|
|
1052
|
+
case 1:
|
|
1053
|
+
case 2:
|
|
1054
|
+
case 3:
|
|
1055
|
+
if (!this.hasMoreBytes()) return !1;
|
|
1056
|
+
this.skipBytes(1);
|
|
1057
|
+
break;
|
|
1058
|
+
case 5:
|
|
1059
|
+
case 6:
|
|
1060
|
+
case 7:
|
|
1061
|
+
if (!this.hasMoreBytes()) return !1;
|
|
1062
|
+
e = this.readType();
|
|
1063
|
+
break;
|
|
1064
|
+
case 0:
|
|
1065
|
+
case 4: break;
|
|
1066
|
+
default: throw Error(`Unsupported element segment type ${this._segmentType}`);
|
|
1067
|
+
}
|
|
1068
|
+
return this.state = 34, this.result = { elementType: e }, !0;
|
|
1069
|
+
}
|
|
1070
|
+
readDataEntry() {
|
|
1071
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
1072
|
+
let e = this._pos;
|
|
1073
|
+
if (!this.hasVarIntBytes()) return this.state = 18, !1;
|
|
1074
|
+
let t = this.readVarUint32(), n, r;
|
|
1075
|
+
switch (t) {
|
|
1076
|
+
case 0:
|
|
1077
|
+
n = 0, r = 0;
|
|
1078
|
+
break;
|
|
1079
|
+
case 1:
|
|
1080
|
+
n = 1;
|
|
1081
|
+
break;
|
|
1082
|
+
case 2:
|
|
1083
|
+
if (n = 0, !this.hasVarIntBytes()) return this._pos = e, this.state = 18, !1;
|
|
1084
|
+
r = this.readVarUint32();
|
|
1085
|
+
break;
|
|
1086
|
+
default: throw Error(`Unsupported data segment type ${t}`);
|
|
1087
|
+
}
|
|
1088
|
+
return this.state = 36, this.result = {
|
|
1089
|
+
mode: n,
|
|
1090
|
+
memoryIndex: r
|
|
1091
|
+
}, this._sectionEntriesLeft--, this._segmentType = t, !0;
|
|
1092
|
+
}
|
|
1093
|
+
readDataEntryBody() {
|
|
1094
|
+
return this.hasStringBytes() ? (this.state = 37, this.result = { data: this.readStringBytes() }, !0) : !1;
|
|
1095
|
+
}
|
|
1096
|
+
readInitExpressionBody() {
|
|
1097
|
+
return this.state = 25, this.result = null, !0;
|
|
1098
|
+
}
|
|
1099
|
+
readOffsetExpressionBody() {
|
|
1100
|
+
return this.state = 44, this.result = null, !0;
|
|
1101
|
+
}
|
|
1102
|
+
readMemoryImmediate() {
|
|
1103
|
+
return {
|
|
1104
|
+
flags: this.readVarUint32(),
|
|
1105
|
+
offset: this.readVarUint32()
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
readNameMap() {
|
|
1109
|
+
for (var e = this.readVarUint32(), t = [], n = 0; n < e; n++) {
|
|
1110
|
+
var r = this.readVarUint32(), i = this.readStringBytes();
|
|
1111
|
+
t.push({
|
|
1112
|
+
index: r,
|
|
1113
|
+
name: i
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
return t;
|
|
1117
|
+
}
|
|
1118
|
+
readNameEntry() {
|
|
1119
|
+
var e = this._pos;
|
|
1120
|
+
if (e >= this._sectionRange.end) return this.skipSection(), this.read();
|
|
1121
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
1122
|
+
var t = this.readVarUint7();
|
|
1123
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
1124
|
+
var n = this.readVarUint32();
|
|
1125
|
+
if (!this.hasBytes(n)) return this._pos = e, !1;
|
|
1126
|
+
var r;
|
|
1127
|
+
switch (t) {
|
|
1128
|
+
case 0:
|
|
1129
|
+
r = {
|
|
1130
|
+
type: t,
|
|
1131
|
+
moduleName: this.readStringBytes()
|
|
1132
|
+
};
|
|
1133
|
+
break;
|
|
1134
|
+
case 1:
|
|
1135
|
+
case 3:
|
|
1136
|
+
case 4:
|
|
1137
|
+
case 5:
|
|
1138
|
+
case 6:
|
|
1139
|
+
case 7:
|
|
1140
|
+
r = {
|
|
1141
|
+
type: t,
|
|
1142
|
+
names: this.readNameMap()
|
|
1143
|
+
};
|
|
1144
|
+
break;
|
|
1145
|
+
case 2:
|
|
1146
|
+
for (var i = this.readVarUint32(), a = [], o = 0; o < i; o++) {
|
|
1147
|
+
var s = this.readVarUint32();
|
|
1148
|
+
a.push({
|
|
1149
|
+
index: s,
|
|
1150
|
+
locals: this.readNameMap()
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
r = {
|
|
1154
|
+
type: t,
|
|
1155
|
+
funcs: a
|
|
1156
|
+
};
|
|
1157
|
+
break;
|
|
1158
|
+
case 10:
|
|
1159
|
+
for (var c = this.readVarUint32(), l = [], o = 0; o < c; o++) {
|
|
1160
|
+
var u = this.readVarUint32();
|
|
1161
|
+
l.push({
|
|
1162
|
+
index: u,
|
|
1163
|
+
fields: this.readNameMap()
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
r = {
|
|
1167
|
+
type: t,
|
|
1168
|
+
types: l
|
|
1169
|
+
};
|
|
1170
|
+
break;
|
|
1171
|
+
default: return this.skipBytes(n), this.read();
|
|
1172
|
+
}
|
|
1173
|
+
return this.state = 19, this.result = r, !0;
|
|
1174
|
+
}
|
|
1175
|
+
readRelocHeader() {
|
|
1176
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
1177
|
+
var e = this._pos, t = this.readVarUint7(), n;
|
|
1178
|
+
if (t === 0) {
|
|
1179
|
+
if (!this.hasStringBytes()) return this._pos = e, !1;
|
|
1180
|
+
n = this.readStringBytes();
|
|
1181
|
+
}
|
|
1182
|
+
return this.state = 41, this.result = {
|
|
1183
|
+
id: t,
|
|
1184
|
+
name: n
|
|
1185
|
+
}, !0;
|
|
1186
|
+
}
|
|
1187
|
+
readLinkingEntry() {
|
|
1188
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
1189
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
1190
|
+
var e = this._pos, t = this.readVarUint32(), n;
|
|
1191
|
+
switch (t) {
|
|
1192
|
+
case 1:
|
|
1193
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
1194
|
+
n = this.readVarUint32();
|
|
1195
|
+
break;
|
|
1196
|
+
default: return this.error = /* @__PURE__ */ Error(`Bad linking type: ${t}`), this.state = -1, !0;
|
|
1197
|
+
}
|
|
1198
|
+
return this.state = 21, this.result = {
|
|
1199
|
+
type: t,
|
|
1200
|
+
index: n
|
|
1201
|
+
}, this._sectionEntriesLeft--, !0;
|
|
1202
|
+
}
|
|
1203
|
+
readSourceMappingURL() {
|
|
1204
|
+
if (!this.hasStringBytes()) return !1;
|
|
1205
|
+
var e = this.readStringBytes();
|
|
1206
|
+
return this.state = 43, this.result = { url: e }, !0;
|
|
1207
|
+
}
|
|
1208
|
+
readRelocEntry() {
|
|
1209
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
1210
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
1211
|
+
var e = this._pos, t = this.readVarUint7();
|
|
1212
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
1213
|
+
var n = this.readVarUint32();
|
|
1214
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
1215
|
+
var r = this.readVarUint32(), i;
|
|
1216
|
+
switch (t) {
|
|
1217
|
+
case 0:
|
|
1218
|
+
case 1:
|
|
1219
|
+
case 2:
|
|
1220
|
+
case 6:
|
|
1221
|
+
case 7: break;
|
|
1222
|
+
case 3:
|
|
1223
|
+
case 4:
|
|
1224
|
+
case 5:
|
|
1225
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
1226
|
+
i = this.readVarUint32();
|
|
1227
|
+
break;
|
|
1228
|
+
default: return this.error = /* @__PURE__ */ Error(`Bad relocation type: ${t}`), this.state = -1, !0;
|
|
1229
|
+
}
|
|
1230
|
+
return this.state = 42, this.result = {
|
|
1231
|
+
type: t,
|
|
1232
|
+
offset: n,
|
|
1233
|
+
index: r,
|
|
1234
|
+
addend: i
|
|
1235
|
+
}, this._sectionEntriesLeft--, !0;
|
|
1236
|
+
}
|
|
1237
|
+
readCodeOperator_0xfb() {
|
|
1238
|
+
if (!this._eof && !this.hasBytes(12)) return !1;
|
|
1239
|
+
var e = this._data[this._pos++] | 64256, t, n, r, i;
|
|
1240
|
+
switch (e) {
|
|
1241
|
+
case 64322:
|
|
1242
|
+
case 64323:
|
|
1243
|
+
case 64352:
|
|
1244
|
+
case 64355:
|
|
1245
|
+
case 64353:
|
|
1246
|
+
case 64356:
|
|
1247
|
+
case 64354:
|
|
1248
|
+
case 64357:
|
|
1249
|
+
t = this.readVarUint32();
|
|
1250
|
+
break;
|
|
1251
|
+
case 64326:
|
|
1252
|
+
case 64327:
|
|
1253
|
+
t = this.readVarUint32(), n = this.readHeapType();
|
|
1254
|
+
break;
|
|
1255
|
+
case 64275:
|
|
1256
|
+
case 64276:
|
|
1257
|
+
case 64277:
|
|
1258
|
+
case 64279:
|
|
1259
|
+
case 64278:
|
|
1260
|
+
case 64283:
|
|
1261
|
+
case 64273:
|
|
1262
|
+
case 64284:
|
|
1263
|
+
case 64274:
|
|
1264
|
+
case 64263:
|
|
1265
|
+
case 64257:
|
|
1266
|
+
case 64264:
|
|
1267
|
+
case 64258:
|
|
1268
|
+
case 64304:
|
|
1269
|
+
case 64305:
|
|
1270
|
+
case 64306:
|
|
1271
|
+
case 64324:
|
|
1272
|
+
case 64325:
|
|
1273
|
+
n = this.readHeapType();
|
|
1274
|
+
break;
|
|
1275
|
+
case 64280:
|
|
1276
|
+
n = this.readHeapType(), r = this.readHeapType();
|
|
1277
|
+
break;
|
|
1278
|
+
case 64259:
|
|
1279
|
+
case 64260:
|
|
1280
|
+
case 64261:
|
|
1281
|
+
case 64262:
|
|
1282
|
+
n = this.readHeapType(), i = this.readVarUint32();
|
|
1283
|
+
break;
|
|
1284
|
+
case 64281:
|
|
1285
|
+
case 64282:
|
|
1286
|
+
n = this.readHeapType(), t = this.readVarUint32();
|
|
1287
|
+
break;
|
|
1288
|
+
case 64336:
|
|
1289
|
+
case 64337:
|
|
1290
|
+
case 64338:
|
|
1291
|
+
case 64344:
|
|
1292
|
+
case 64345:
|
|
1293
|
+
case 64346:
|
|
1294
|
+
case 64320:
|
|
1295
|
+
case 64321:
|
|
1296
|
+
case 64288:
|
|
1297
|
+
case 64289:
|
|
1298
|
+
case 64290: break;
|
|
1299
|
+
default: return this.error = /* @__PURE__ */ Error(`Unknown operator: 0x${e.toString(16).padStart(4, "0")}`), this.state = -1, !0;
|
|
1300
|
+
}
|
|
1301
|
+
return this.result = {
|
|
1302
|
+
code: e,
|
|
1303
|
+
blockType: void 0,
|
|
1304
|
+
refType: n,
|
|
1305
|
+
srcType: r,
|
|
1306
|
+
brDepth: t,
|
|
1307
|
+
brTable: void 0,
|
|
1308
|
+
tableIndex: void 0,
|
|
1309
|
+
funcIndex: void 0,
|
|
1310
|
+
typeIndex: void 0,
|
|
1311
|
+
localIndex: void 0,
|
|
1312
|
+
globalIndex: void 0,
|
|
1313
|
+
fieldIndex: i,
|
|
1314
|
+
memoryAddress: void 0,
|
|
1315
|
+
literal: void 0,
|
|
1316
|
+
segmentIndex: void 0,
|
|
1317
|
+
destinationIndex: void 0,
|
|
1318
|
+
lines: void 0,
|
|
1319
|
+
lineIndex: void 0
|
|
1320
|
+
}, !0;
|
|
1321
|
+
}
|
|
1322
|
+
readCodeOperator_0xfc() {
|
|
1323
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
1324
|
+
var e = this.readVarUint32() | 64512, t, n, r;
|
|
1325
|
+
switch (e) {
|
|
1326
|
+
case 64512:
|
|
1327
|
+
case 64513:
|
|
1328
|
+
case 64514:
|
|
1329
|
+
case 64515:
|
|
1330
|
+
case 64516:
|
|
1331
|
+
case 64517:
|
|
1332
|
+
case 64518:
|
|
1333
|
+
case 64519: break;
|
|
1334
|
+
case 64522:
|
|
1335
|
+
this.readVarUint1(), this.readVarUint1();
|
|
1336
|
+
break;
|
|
1337
|
+
case 64523:
|
|
1338
|
+
this.readVarUint1();
|
|
1339
|
+
break;
|
|
1340
|
+
case 64524:
|
|
1341
|
+
t = this.readVarUint32(), r = this.readVarUint32();
|
|
1342
|
+
break;
|
|
1343
|
+
case 64526:
|
|
1344
|
+
r = this.readVarUint32(), n = this.readVarUint32();
|
|
1345
|
+
break;
|
|
1346
|
+
case 64527:
|
|
1347
|
+
case 64528:
|
|
1348
|
+
case 64529:
|
|
1349
|
+
r = this.readVarUint32();
|
|
1350
|
+
break;
|
|
1351
|
+
case 64520:
|
|
1352
|
+
t = this.readVarUint32(), this.readVarUint1();
|
|
1353
|
+
break;
|
|
1354
|
+
case 64521:
|
|
1355
|
+
case 64525:
|
|
1356
|
+
t = this.readVarUint32();
|
|
1357
|
+
break;
|
|
1358
|
+
default: return this.error = /* @__PURE__ */ Error(`Unknown operator: 0x${e.toString(16).padStart(4, "0")}`), this.state = -1, !0;
|
|
1359
|
+
}
|
|
1360
|
+
return this.result = {
|
|
1361
|
+
code: e,
|
|
1362
|
+
blockType: void 0,
|
|
1363
|
+
selectType: void 0,
|
|
1364
|
+
refType: void 0,
|
|
1365
|
+
srcType: void 0,
|
|
1366
|
+
brDepth: void 0,
|
|
1367
|
+
brTable: void 0,
|
|
1368
|
+
funcIndex: void 0,
|
|
1369
|
+
typeIndex: void 0,
|
|
1370
|
+
tableIndex: r,
|
|
1371
|
+
localIndex: void 0,
|
|
1372
|
+
globalIndex: void 0,
|
|
1373
|
+
fieldIndex: void 0,
|
|
1374
|
+
memoryAddress: void 0,
|
|
1375
|
+
literal: void 0,
|
|
1376
|
+
segmentIndex: t,
|
|
1377
|
+
destinationIndex: n,
|
|
1378
|
+
lines: void 0,
|
|
1379
|
+
lineIndex: void 0
|
|
1380
|
+
}, !0;
|
|
1381
|
+
}
|
|
1382
|
+
readCodeOperator_0xfd() {
|
|
1383
|
+
var e = this._pos;
|
|
1384
|
+
if (!this._eof && e + 17 > this._length || !this.hasVarIntBytes()) return !1;
|
|
1385
|
+
var t = this.readVarUint32() | 64768, n, r, i, a;
|
|
1386
|
+
switch (t) {
|
|
1387
|
+
case 64768:
|
|
1388
|
+
case 64769:
|
|
1389
|
+
case 64770:
|
|
1390
|
+
case 64771:
|
|
1391
|
+
case 64772:
|
|
1392
|
+
case 64773:
|
|
1393
|
+
case 64774:
|
|
1394
|
+
case 64775:
|
|
1395
|
+
case 64776:
|
|
1396
|
+
case 64777:
|
|
1397
|
+
case 64778:
|
|
1398
|
+
case 64779:
|
|
1399
|
+
case 64860:
|
|
1400
|
+
case 64861:
|
|
1401
|
+
n = this.readMemoryImmediate();
|
|
1402
|
+
break;
|
|
1403
|
+
case 64780:
|
|
1404
|
+
r = this.readBytes(16);
|
|
1405
|
+
break;
|
|
1406
|
+
case 64781:
|
|
1407
|
+
a = new Uint8Array(16);
|
|
1408
|
+
for (var o = 0; o < a.length; o++) a[o] = this.readUint8();
|
|
1409
|
+
break;
|
|
1410
|
+
case 64789:
|
|
1411
|
+
case 64790:
|
|
1412
|
+
case 64791:
|
|
1413
|
+
case 64792:
|
|
1414
|
+
case 64793:
|
|
1415
|
+
case 64794:
|
|
1416
|
+
case 64795:
|
|
1417
|
+
case 64796:
|
|
1418
|
+
case 64797:
|
|
1419
|
+
case 64798:
|
|
1420
|
+
case 64799:
|
|
1421
|
+
case 64800:
|
|
1422
|
+
case 64801:
|
|
1423
|
+
case 64802:
|
|
1424
|
+
i = this.readUint8();
|
|
1425
|
+
break;
|
|
1426
|
+
case 64782:
|
|
1427
|
+
case 64783:
|
|
1428
|
+
case 64784:
|
|
1429
|
+
case 64785:
|
|
1430
|
+
case 64786:
|
|
1431
|
+
case 64787:
|
|
1432
|
+
case 64788:
|
|
1433
|
+
case 64803:
|
|
1434
|
+
case 64804:
|
|
1435
|
+
case 64805:
|
|
1436
|
+
case 64806:
|
|
1437
|
+
case 64807:
|
|
1438
|
+
case 64808:
|
|
1439
|
+
case 64809:
|
|
1440
|
+
case 64810:
|
|
1441
|
+
case 64811:
|
|
1442
|
+
case 64812:
|
|
1443
|
+
case 64813:
|
|
1444
|
+
case 64814:
|
|
1445
|
+
case 64815:
|
|
1446
|
+
case 64816:
|
|
1447
|
+
case 64817:
|
|
1448
|
+
case 64818:
|
|
1449
|
+
case 64819:
|
|
1450
|
+
case 64820:
|
|
1451
|
+
case 64821:
|
|
1452
|
+
case 64822:
|
|
1453
|
+
case 64823:
|
|
1454
|
+
case 64824:
|
|
1455
|
+
case 64825:
|
|
1456
|
+
case 64826:
|
|
1457
|
+
case 64827:
|
|
1458
|
+
case 64828:
|
|
1459
|
+
case 64829:
|
|
1460
|
+
case 64830:
|
|
1461
|
+
case 64831:
|
|
1462
|
+
case 64832:
|
|
1463
|
+
case 64833:
|
|
1464
|
+
case 64834:
|
|
1465
|
+
case 64835:
|
|
1466
|
+
case 64836:
|
|
1467
|
+
case 64837:
|
|
1468
|
+
case 64838:
|
|
1469
|
+
case 64839:
|
|
1470
|
+
case 64840:
|
|
1471
|
+
case 64841:
|
|
1472
|
+
case 64842:
|
|
1473
|
+
case 64843:
|
|
1474
|
+
case 64844:
|
|
1475
|
+
case 64845:
|
|
1476
|
+
case 64846:
|
|
1477
|
+
case 64847:
|
|
1478
|
+
case 64848:
|
|
1479
|
+
case 64849:
|
|
1480
|
+
case 64850:
|
|
1481
|
+
case 64851:
|
|
1482
|
+
case 64862:
|
|
1483
|
+
case 64863:
|
|
1484
|
+
case 64864:
|
|
1485
|
+
case 64865:
|
|
1486
|
+
case 64866:
|
|
1487
|
+
case 64867:
|
|
1488
|
+
case 64868:
|
|
1489
|
+
case 64869:
|
|
1490
|
+
case 64870:
|
|
1491
|
+
case 64871:
|
|
1492
|
+
case 64872:
|
|
1493
|
+
case 64873:
|
|
1494
|
+
case 64874:
|
|
1495
|
+
case 64875:
|
|
1496
|
+
case 64876:
|
|
1497
|
+
case 64877:
|
|
1498
|
+
case 64878:
|
|
1499
|
+
case 64879:
|
|
1500
|
+
case 64880:
|
|
1501
|
+
case 64881:
|
|
1502
|
+
case 64882:
|
|
1503
|
+
case 64883:
|
|
1504
|
+
case 64884:
|
|
1505
|
+
case 64885:
|
|
1506
|
+
case 64886:
|
|
1507
|
+
case 64887:
|
|
1508
|
+
case 64888:
|
|
1509
|
+
case 64889:
|
|
1510
|
+
case 64890:
|
|
1511
|
+
case 64891:
|
|
1512
|
+
case 64892:
|
|
1513
|
+
case 64893:
|
|
1514
|
+
case 64894:
|
|
1515
|
+
case 64895:
|
|
1516
|
+
case 64896:
|
|
1517
|
+
case 64897:
|
|
1518
|
+
case 64898:
|
|
1519
|
+
case 64899:
|
|
1520
|
+
case 64900:
|
|
1521
|
+
case 64901:
|
|
1522
|
+
case 64902:
|
|
1523
|
+
case 64903:
|
|
1524
|
+
case 64904:
|
|
1525
|
+
case 64905:
|
|
1526
|
+
case 64906:
|
|
1527
|
+
case 64907:
|
|
1528
|
+
case 64908:
|
|
1529
|
+
case 64909:
|
|
1530
|
+
case 64910:
|
|
1531
|
+
case 64911:
|
|
1532
|
+
case 64912:
|
|
1533
|
+
case 64913:
|
|
1534
|
+
case 64914:
|
|
1535
|
+
case 64915:
|
|
1536
|
+
case 64916:
|
|
1537
|
+
case 64917:
|
|
1538
|
+
case 64918:
|
|
1539
|
+
case 64919:
|
|
1540
|
+
case 64920:
|
|
1541
|
+
case 64921:
|
|
1542
|
+
case 64923:
|
|
1543
|
+
case 64924:
|
|
1544
|
+
case 64925:
|
|
1545
|
+
case 64926:
|
|
1546
|
+
case 64927:
|
|
1547
|
+
case 64928:
|
|
1548
|
+
case 64929:
|
|
1549
|
+
case 64931:
|
|
1550
|
+
case 64932:
|
|
1551
|
+
case 64935:
|
|
1552
|
+
case 64936:
|
|
1553
|
+
case 64937:
|
|
1554
|
+
case 64938:
|
|
1555
|
+
case 64939:
|
|
1556
|
+
case 64940:
|
|
1557
|
+
case 64941:
|
|
1558
|
+
case 64942:
|
|
1559
|
+
case 64945:
|
|
1560
|
+
case 64949:
|
|
1561
|
+
case 64950:
|
|
1562
|
+
case 64951:
|
|
1563
|
+
case 64952:
|
|
1564
|
+
case 64953:
|
|
1565
|
+
case 64954:
|
|
1566
|
+
case 64956:
|
|
1567
|
+
case 64957:
|
|
1568
|
+
case 64958:
|
|
1569
|
+
case 64959:
|
|
1570
|
+
case 64960:
|
|
1571
|
+
case 64961:
|
|
1572
|
+
case 64963:
|
|
1573
|
+
case 64964:
|
|
1574
|
+
case 64967:
|
|
1575
|
+
case 64968:
|
|
1576
|
+
case 64969:
|
|
1577
|
+
case 64970:
|
|
1578
|
+
case 64971:
|
|
1579
|
+
case 64972:
|
|
1580
|
+
case 64973:
|
|
1581
|
+
case 64974:
|
|
1582
|
+
case 64977:
|
|
1583
|
+
case 64981:
|
|
1584
|
+
case 64982:
|
|
1585
|
+
case 64983:
|
|
1586
|
+
case 64984:
|
|
1587
|
+
case 64985:
|
|
1588
|
+
case 64986:
|
|
1589
|
+
case 64987:
|
|
1590
|
+
case 64988:
|
|
1591
|
+
case 64989:
|
|
1592
|
+
case 64988:
|
|
1593
|
+
case 64989:
|
|
1594
|
+
case 64992:
|
|
1595
|
+
case 64992:
|
|
1596
|
+
case 64993:
|
|
1597
|
+
case 64995:
|
|
1598
|
+
case 64996:
|
|
1599
|
+
case 64997:
|
|
1600
|
+
case 64998:
|
|
1601
|
+
case 64999:
|
|
1602
|
+
case 65e3:
|
|
1603
|
+
case 65001:
|
|
1604
|
+
case 65002:
|
|
1605
|
+
case 65003:
|
|
1606
|
+
case 65004:
|
|
1607
|
+
case 65005:
|
|
1608
|
+
case 65007:
|
|
1609
|
+
case 65008:
|
|
1610
|
+
case 65009:
|
|
1611
|
+
case 65010:
|
|
1612
|
+
case 65011:
|
|
1613
|
+
case 65012:
|
|
1614
|
+
case 65013:
|
|
1615
|
+
case 65014:
|
|
1616
|
+
case 65015:
|
|
1617
|
+
case 65016:
|
|
1618
|
+
case 65017:
|
|
1619
|
+
case 65018:
|
|
1620
|
+
case 65019:
|
|
1621
|
+
case 65020:
|
|
1622
|
+
case 65021:
|
|
1623
|
+
case 65022:
|
|
1624
|
+
case 65023: break;
|
|
1625
|
+
default: return this.error = /* @__PURE__ */ Error(`Unknown operator: 0x${t.toString(16).padStart(4, "0")}`), this.state = -1, !0;
|
|
1626
|
+
}
|
|
1627
|
+
return this.result = {
|
|
1628
|
+
code: t,
|
|
1629
|
+
blockType: void 0,
|
|
1630
|
+
selectType: void 0,
|
|
1631
|
+
refType: void 0,
|
|
1632
|
+
srcType: void 0,
|
|
1633
|
+
brDepth: void 0,
|
|
1634
|
+
brTable: void 0,
|
|
1635
|
+
funcIndex: void 0,
|
|
1636
|
+
typeIndex: void 0,
|
|
1637
|
+
localIndex: void 0,
|
|
1638
|
+
globalIndex: void 0,
|
|
1639
|
+
fieldIndex: void 0,
|
|
1640
|
+
memoryAddress: n,
|
|
1641
|
+
literal: r,
|
|
1642
|
+
segmentIndex: void 0,
|
|
1643
|
+
destinationIndex: void 0,
|
|
1644
|
+
lines: a,
|
|
1645
|
+
lineIndex: i
|
|
1646
|
+
}, !0;
|
|
1647
|
+
}
|
|
1648
|
+
readCodeOperator_0xfe() {
|
|
1649
|
+
var e = this._pos;
|
|
1650
|
+
if (!this._eof && e + 11 > this._length || !this.hasVarIntBytes()) return !1;
|
|
1651
|
+
var t = this.readVarUint32() | 65024, n;
|
|
1652
|
+
switch (t) {
|
|
1653
|
+
case 65024:
|
|
1654
|
+
case 65025:
|
|
1655
|
+
case 65026:
|
|
1656
|
+
case 65040:
|
|
1657
|
+
case 65041:
|
|
1658
|
+
case 65042:
|
|
1659
|
+
case 65043:
|
|
1660
|
+
case 65044:
|
|
1661
|
+
case 65045:
|
|
1662
|
+
case 65046:
|
|
1663
|
+
case 65047:
|
|
1664
|
+
case 65048:
|
|
1665
|
+
case 65049:
|
|
1666
|
+
case 65050:
|
|
1667
|
+
case 65051:
|
|
1668
|
+
case 65052:
|
|
1669
|
+
case 65053:
|
|
1670
|
+
case 65054:
|
|
1671
|
+
case 65055:
|
|
1672
|
+
case 65056:
|
|
1673
|
+
case 65057:
|
|
1674
|
+
case 65058:
|
|
1675
|
+
case 65059:
|
|
1676
|
+
case 65060:
|
|
1677
|
+
case 65061:
|
|
1678
|
+
case 65062:
|
|
1679
|
+
case 65063:
|
|
1680
|
+
case 65064:
|
|
1681
|
+
case 65065:
|
|
1682
|
+
case 65066:
|
|
1683
|
+
case 65067:
|
|
1684
|
+
case 65068:
|
|
1685
|
+
case 65069:
|
|
1686
|
+
case 65070:
|
|
1687
|
+
case 65071:
|
|
1688
|
+
case 65072:
|
|
1689
|
+
case 65073:
|
|
1690
|
+
case 65074:
|
|
1691
|
+
case 65075:
|
|
1692
|
+
case 65076:
|
|
1693
|
+
case 65077:
|
|
1694
|
+
case 65078:
|
|
1695
|
+
case 65079:
|
|
1696
|
+
case 65080:
|
|
1697
|
+
case 65081:
|
|
1698
|
+
case 65082:
|
|
1699
|
+
case 65083:
|
|
1700
|
+
case 65084:
|
|
1701
|
+
case 65085:
|
|
1702
|
+
case 65086:
|
|
1703
|
+
case 65087:
|
|
1704
|
+
case 65088:
|
|
1705
|
+
case 65089:
|
|
1706
|
+
case 65090:
|
|
1707
|
+
case 65091:
|
|
1708
|
+
case 65092:
|
|
1709
|
+
case 65093:
|
|
1710
|
+
case 65094:
|
|
1711
|
+
case 65095:
|
|
1712
|
+
case 65096:
|
|
1713
|
+
case 65097:
|
|
1714
|
+
case 65098:
|
|
1715
|
+
case 65099:
|
|
1716
|
+
case 65100:
|
|
1717
|
+
case 65101:
|
|
1718
|
+
case 65102:
|
|
1719
|
+
n = this.readMemoryImmediate();
|
|
1720
|
+
break;
|
|
1721
|
+
case 65027:
|
|
1722
|
+
if (this.readUint8() != 0) return this.error = /* @__PURE__ */ Error("atomic.fence consistency model must be 0"), this.state = -1, !0;
|
|
1723
|
+
break;
|
|
1724
|
+
default: return this.error = /* @__PURE__ */ Error(`Unknown operator: 0x${t.toString(16).padStart(4, "0")}`), this.state = -1, !0;
|
|
1725
|
+
}
|
|
1726
|
+
return this.result = {
|
|
1727
|
+
code: t,
|
|
1728
|
+
blockType: void 0,
|
|
1729
|
+
selectType: void 0,
|
|
1730
|
+
refType: void 0,
|
|
1731
|
+
srcType: void 0,
|
|
1732
|
+
brDepth: void 0,
|
|
1733
|
+
brTable: void 0,
|
|
1734
|
+
funcIndex: void 0,
|
|
1735
|
+
typeIndex: void 0,
|
|
1736
|
+
localIndex: void 0,
|
|
1737
|
+
globalIndex: void 0,
|
|
1738
|
+
fieldIndex: void 0,
|
|
1739
|
+
memoryAddress: n,
|
|
1740
|
+
literal: void 0,
|
|
1741
|
+
segmentIndex: void 0,
|
|
1742
|
+
destinationIndex: void 0,
|
|
1743
|
+
lines: void 0,
|
|
1744
|
+
lineIndex: void 0
|
|
1745
|
+
}, !0;
|
|
1746
|
+
}
|
|
1747
|
+
readCodeOperator() {
|
|
1748
|
+
switch (this.state) {
|
|
1749
|
+
case 30:
|
|
1750
|
+
if (this._pos >= this._functionRange.end) return this.skipFunctionBody(), this.read();
|
|
1751
|
+
break;
|
|
1752
|
+
case 26:
|
|
1753
|
+
if (this.result && this.result.code === 11) return this.state = 27, this.result = null, !0;
|
|
1754
|
+
break;
|
|
1755
|
+
case 45:
|
|
1756
|
+
if (this.result && this.result.code === 11) return this.state = 46, this.result = null, !0;
|
|
1757
|
+
break;
|
|
1758
|
+
}
|
|
1759
|
+
var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m;
|
|
1760
|
+
if (this.state === 26 && this._sectionId === 9 && y(this._segmentType)) if (this.result && this.result.code === 210) e = 11;
|
|
1761
|
+
else {
|
|
1762
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
1763
|
+
e = 210, s = this.readVarUint32();
|
|
1764
|
+
}
|
|
1765
|
+
else {
|
|
1766
|
+
var h = this._pos;
|
|
1767
|
+
if (!this._eof && h + 11 > this._length) return !1;
|
|
1768
|
+
switch (e = this._data[this._pos++], e) {
|
|
1769
|
+
case 2:
|
|
1770
|
+
case 3:
|
|
1771
|
+
case 4:
|
|
1772
|
+
case 6:
|
|
1773
|
+
t = this.readBlockType();
|
|
1774
|
+
break;
|
|
1775
|
+
case 12:
|
|
1776
|
+
case 13:
|
|
1777
|
+
case 212:
|
|
1778
|
+
case 214:
|
|
1779
|
+
i = this.readVarUint32();
|
|
1780
|
+
break;
|
|
1781
|
+
case 14:
|
|
1782
|
+
var g = this.readVarUint32();
|
|
1783
|
+
if (!this.hasBytes(g + 1)) return this._pos = h, !1;
|
|
1784
|
+
a = [];
|
|
1785
|
+
for (var _ = 0; _ <= g; _++) {
|
|
1786
|
+
if (!this.hasVarIntBytes()) return this._pos = h, !1;
|
|
1787
|
+
a.push(this.readVarUint32());
|
|
1788
|
+
}
|
|
1789
|
+
break;
|
|
1790
|
+
case 9:
|
|
1791
|
+
case 24:
|
|
1792
|
+
o = this.readVarUint32();
|
|
1793
|
+
break;
|
|
1794
|
+
case 7:
|
|
1795
|
+
case 8:
|
|
1796
|
+
f = this.readVarInt32();
|
|
1797
|
+
break;
|
|
1798
|
+
case 208:
|
|
1799
|
+
r = this.readHeapType();
|
|
1800
|
+
break;
|
|
1801
|
+
case 16:
|
|
1802
|
+
case 18:
|
|
1803
|
+
case 210:
|
|
1804
|
+
s = this.readVarUint32();
|
|
1805
|
+
break;
|
|
1806
|
+
case 17:
|
|
1807
|
+
case 19:
|
|
1808
|
+
c = this.readVarUint32(), this.readVarUint1();
|
|
1809
|
+
break;
|
|
1810
|
+
case 32:
|
|
1811
|
+
case 33:
|
|
1812
|
+
case 34:
|
|
1813
|
+
u = this.readVarUint32();
|
|
1814
|
+
break;
|
|
1815
|
+
case 35:
|
|
1816
|
+
case 36:
|
|
1817
|
+
d = this.readVarUint32();
|
|
1818
|
+
break;
|
|
1819
|
+
case 37:
|
|
1820
|
+
case 38:
|
|
1821
|
+
l = this.readVarUint32();
|
|
1822
|
+
break;
|
|
1823
|
+
case 40:
|
|
1824
|
+
case 41:
|
|
1825
|
+
case 42:
|
|
1826
|
+
case 43:
|
|
1827
|
+
case 44:
|
|
1828
|
+
case 45:
|
|
1829
|
+
case 46:
|
|
1830
|
+
case 47:
|
|
1831
|
+
case 48:
|
|
1832
|
+
case 49:
|
|
1833
|
+
case 50:
|
|
1834
|
+
case 51:
|
|
1835
|
+
case 52:
|
|
1836
|
+
case 53:
|
|
1837
|
+
case 54:
|
|
1838
|
+
case 55:
|
|
1839
|
+
case 56:
|
|
1840
|
+
case 57:
|
|
1841
|
+
case 58:
|
|
1842
|
+
case 59:
|
|
1843
|
+
case 60:
|
|
1844
|
+
case 61:
|
|
1845
|
+
case 62:
|
|
1846
|
+
p = this.readMemoryImmediate();
|
|
1847
|
+
break;
|
|
1848
|
+
case 63:
|
|
1849
|
+
case 64:
|
|
1850
|
+
this.readVarUint1();
|
|
1851
|
+
break;
|
|
1852
|
+
case 65:
|
|
1853
|
+
m = this.readVarInt32();
|
|
1854
|
+
break;
|
|
1855
|
+
case 66:
|
|
1856
|
+
m = this.readVarInt64();
|
|
1857
|
+
break;
|
|
1858
|
+
case 67:
|
|
1859
|
+
m = new DataView(this._data.buffer, this._data.byteOffset).getFloat32(this._pos, !0), this._pos += 4;
|
|
1860
|
+
break;
|
|
1861
|
+
case 68:
|
|
1862
|
+
m = new DataView(this._data.buffer, this._data.byteOffset).getFloat64(this._pos, !0), this._pos += 8;
|
|
1863
|
+
break;
|
|
1864
|
+
case 28:
|
|
1865
|
+
this.readVarInt32() == 1 && (n = this.readType());
|
|
1866
|
+
break;
|
|
1867
|
+
case 251: return this.readCodeOperator_0xfb() ? !0 : (this._pos = h, !1);
|
|
1868
|
+
case 252: return this.readCodeOperator_0xfc() ? !0 : (this._pos = h, !1);
|
|
1869
|
+
case 253: return this.readCodeOperator_0xfd() ? !0 : (this._pos = h, !1);
|
|
1870
|
+
case 254: return this.readCodeOperator_0xfe() ? !0 : (this._pos = h, !1);
|
|
1871
|
+
case 0:
|
|
1872
|
+
case 1:
|
|
1873
|
+
case 5:
|
|
1874
|
+
case 10:
|
|
1875
|
+
case 11:
|
|
1876
|
+
case 15:
|
|
1877
|
+
case 25:
|
|
1878
|
+
case 26:
|
|
1879
|
+
case 27:
|
|
1880
|
+
case 69:
|
|
1881
|
+
case 70:
|
|
1882
|
+
case 71:
|
|
1883
|
+
case 72:
|
|
1884
|
+
case 73:
|
|
1885
|
+
case 74:
|
|
1886
|
+
case 75:
|
|
1887
|
+
case 76:
|
|
1888
|
+
case 77:
|
|
1889
|
+
case 78:
|
|
1890
|
+
case 79:
|
|
1891
|
+
case 80:
|
|
1892
|
+
case 81:
|
|
1893
|
+
case 82:
|
|
1894
|
+
case 83:
|
|
1895
|
+
case 84:
|
|
1896
|
+
case 85:
|
|
1897
|
+
case 86:
|
|
1898
|
+
case 87:
|
|
1899
|
+
case 88:
|
|
1900
|
+
case 89:
|
|
1901
|
+
case 90:
|
|
1902
|
+
case 91:
|
|
1903
|
+
case 92:
|
|
1904
|
+
case 93:
|
|
1905
|
+
case 94:
|
|
1906
|
+
case 95:
|
|
1907
|
+
case 96:
|
|
1908
|
+
case 97:
|
|
1909
|
+
case 98:
|
|
1910
|
+
case 99:
|
|
1911
|
+
case 100:
|
|
1912
|
+
case 101:
|
|
1913
|
+
case 102:
|
|
1914
|
+
case 103:
|
|
1915
|
+
case 104:
|
|
1916
|
+
case 105:
|
|
1917
|
+
case 106:
|
|
1918
|
+
case 107:
|
|
1919
|
+
case 108:
|
|
1920
|
+
case 109:
|
|
1921
|
+
case 110:
|
|
1922
|
+
case 111:
|
|
1923
|
+
case 112:
|
|
1924
|
+
case 113:
|
|
1925
|
+
case 114:
|
|
1926
|
+
case 115:
|
|
1927
|
+
case 116:
|
|
1928
|
+
case 117:
|
|
1929
|
+
case 118:
|
|
1930
|
+
case 119:
|
|
1931
|
+
case 120:
|
|
1932
|
+
case 121:
|
|
1933
|
+
case 122:
|
|
1934
|
+
case 123:
|
|
1935
|
+
case 124:
|
|
1936
|
+
case 125:
|
|
1937
|
+
case 126:
|
|
1938
|
+
case 127:
|
|
1939
|
+
case 128:
|
|
1940
|
+
case 129:
|
|
1941
|
+
case 130:
|
|
1942
|
+
case 131:
|
|
1943
|
+
case 132:
|
|
1944
|
+
case 133:
|
|
1945
|
+
case 134:
|
|
1946
|
+
case 135:
|
|
1947
|
+
case 136:
|
|
1948
|
+
case 137:
|
|
1949
|
+
case 138:
|
|
1950
|
+
case 139:
|
|
1951
|
+
case 140:
|
|
1952
|
+
case 141:
|
|
1953
|
+
case 142:
|
|
1954
|
+
case 143:
|
|
1955
|
+
case 144:
|
|
1956
|
+
case 145:
|
|
1957
|
+
case 146:
|
|
1958
|
+
case 147:
|
|
1959
|
+
case 148:
|
|
1960
|
+
case 149:
|
|
1961
|
+
case 150:
|
|
1962
|
+
case 151:
|
|
1963
|
+
case 152:
|
|
1964
|
+
case 153:
|
|
1965
|
+
case 154:
|
|
1966
|
+
case 155:
|
|
1967
|
+
case 156:
|
|
1968
|
+
case 157:
|
|
1969
|
+
case 158:
|
|
1970
|
+
case 159:
|
|
1971
|
+
case 160:
|
|
1972
|
+
case 161:
|
|
1973
|
+
case 162:
|
|
1974
|
+
case 163:
|
|
1975
|
+
case 164:
|
|
1976
|
+
case 165:
|
|
1977
|
+
case 166:
|
|
1978
|
+
case 167:
|
|
1979
|
+
case 168:
|
|
1980
|
+
case 169:
|
|
1981
|
+
case 170:
|
|
1982
|
+
case 171:
|
|
1983
|
+
case 172:
|
|
1984
|
+
case 173:
|
|
1985
|
+
case 174:
|
|
1986
|
+
case 175:
|
|
1987
|
+
case 176:
|
|
1988
|
+
case 177:
|
|
1989
|
+
case 178:
|
|
1990
|
+
case 179:
|
|
1991
|
+
case 180:
|
|
1992
|
+
case 181:
|
|
1993
|
+
case 182:
|
|
1994
|
+
case 183:
|
|
1995
|
+
case 184:
|
|
1996
|
+
case 185:
|
|
1997
|
+
case 186:
|
|
1998
|
+
case 187:
|
|
1999
|
+
case 188:
|
|
2000
|
+
case 189:
|
|
2001
|
+
case 190:
|
|
2002
|
+
case 191:
|
|
2003
|
+
case 192:
|
|
2004
|
+
case 193:
|
|
2005
|
+
case 194:
|
|
2006
|
+
case 195:
|
|
2007
|
+
case 196:
|
|
2008
|
+
case 20:
|
|
2009
|
+
case 21:
|
|
2010
|
+
case 209:
|
|
2011
|
+
case 211:
|
|
2012
|
+
case 213: break;
|
|
2013
|
+
default: return this.error = /* @__PURE__ */ Error(`Unknown operator: ${e}`), this.state = -1, !0;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
return this.result = {
|
|
2017
|
+
code: e,
|
|
2018
|
+
blockType: t,
|
|
2019
|
+
selectType: n,
|
|
2020
|
+
refType: r,
|
|
2021
|
+
srcType: void 0,
|
|
2022
|
+
brDepth: i,
|
|
2023
|
+
brTable: a,
|
|
2024
|
+
relativeDepth: o,
|
|
2025
|
+
tableIndex: l,
|
|
2026
|
+
funcIndex: s,
|
|
2027
|
+
typeIndex: c,
|
|
2028
|
+
localIndex: u,
|
|
2029
|
+
globalIndex: d,
|
|
2030
|
+
fieldIndex: void 0,
|
|
2031
|
+
eventIndex: f,
|
|
2032
|
+
memoryAddress: p,
|
|
2033
|
+
literal: m,
|
|
2034
|
+
segmentIndex: void 0,
|
|
2035
|
+
destinationIndex: void 0,
|
|
2036
|
+
lines: void 0,
|
|
2037
|
+
lineIndex: void 0
|
|
2038
|
+
}, !0;
|
|
2039
|
+
}
|
|
2040
|
+
readFunctionBody() {
|
|
2041
|
+
if (this._sectionEntriesLeft === 0) return this.skipSection(), this.read();
|
|
2042
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
2043
|
+
var e = this._pos, t = this.readVarUint32(), n = this._pos + t;
|
|
2044
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
2045
|
+
for (var r = this.readVarUint32(), i = [], a = 0; a < r; a++) {
|
|
2046
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
2047
|
+
var o = this.readVarUint32();
|
|
2048
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
2049
|
+
var s = this.readType();
|
|
2050
|
+
i.push({
|
|
2051
|
+
count: o,
|
|
2052
|
+
type: s
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
var c = this._pos;
|
|
2056
|
+
return this.state = 28, this.result = { locals: i }, this._functionRange = new x(c, n), this._sectionEntriesLeft--, !0;
|
|
2057
|
+
}
|
|
2058
|
+
readSectionHeader() {
|
|
2059
|
+
if (this._pos >= this._length && this._eof || this._pos < this._length - 4 && this.peekInt32() === t) return this._sectionId = -1, this._sectionRange = null, this.result = null, this.state = 2, !0;
|
|
2060
|
+
if (!this.hasVarIntBytes()) return !1;
|
|
2061
|
+
var e = this._pos, n = this.readVarUint7();
|
|
2062
|
+
if (!this.hasVarIntBytes()) return this._pos = e, !1;
|
|
2063
|
+
var r = this.readVarUint32(), i = null, a = this._pos + r;
|
|
2064
|
+
if (n == 0) {
|
|
2065
|
+
if (!this.hasStringBytes()) return this._pos = e, !1;
|
|
2066
|
+
i = this.readStringBytes();
|
|
2067
|
+
}
|
|
2068
|
+
return this.result = {
|
|
2069
|
+
id: n,
|
|
2070
|
+
name: i
|
|
2071
|
+
}, this._sectionId = n, this._sectionRange = new x(this._pos, a), this.state = 3, !0;
|
|
2072
|
+
}
|
|
2073
|
+
readSectionRawData() {
|
|
2074
|
+
var e = this._sectionRange.end - this._sectionRange.start;
|
|
2075
|
+
return this.hasBytes(e) ? (this.state = 7, this.result = this.readBytes(e), !0) : !1;
|
|
2076
|
+
}
|
|
2077
|
+
readSectionBody() {
|
|
2078
|
+
if (this._pos >= this._sectionRange.end) return this.result = null, this.state = 4, this._sectionId = -1, this._sectionRange = null, !0;
|
|
2079
|
+
var e = this.result;
|
|
2080
|
+
switch (e.id) {
|
|
2081
|
+
case 1: return this.hasSectionPayload() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readTypeEntry()) : !1;
|
|
2082
|
+
case 2: return this.hasSectionPayload() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readImportEntry()) : !1;
|
|
2083
|
+
case 7: return this.hasSectionPayload() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readExportEntry()) : !1;
|
|
2084
|
+
case 3: return this.hasSectionPayload() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readFunctionEntry()) : !1;
|
|
2085
|
+
case 4: return this.hasSectionPayload() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readTableEntry()) : !1;
|
|
2086
|
+
case 5: return this.hasSectionPayload() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readMemoryEntry()) : !1;
|
|
2087
|
+
case 6: return this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readGlobalEntry()) : !1;
|
|
2088
|
+
case 8: return this.hasVarIntBytes() ? (this.state = 22, this.result = { index: this.readVarUint32() }, !0) : !1;
|
|
2089
|
+
case 10: return this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.state = 29, this.readFunctionBody()) : !1;
|
|
2090
|
+
case 9: return this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readElementEntry()) : !1;
|
|
2091
|
+
case 11: return this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readDataEntry()) : !1;
|
|
2092
|
+
case 13: return this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readEventEntry()) : !1;
|
|
2093
|
+
case 0:
|
|
2094
|
+
var t = w(e.name);
|
|
2095
|
+
return t === "name" ? this.readNameEntry() : t.indexOf("reloc.") === 0 ? this.readRelocHeader() : t === "linking" ? this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readLinkingEntry()) : !1 : t === "sourceMappingURL" ? this.readSourceMappingURL() : this.readSectionRawData();
|
|
2096
|
+
default: return this.error = /* @__PURE__ */ Error(`Unsupported section: ${this._sectionId}`), this.state = -1, !0;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
read() {
|
|
2100
|
+
switch (this.state) {
|
|
2101
|
+
case 0:
|
|
2102
|
+
if (!this.hasBytes(8)) return !1;
|
|
2103
|
+
var e = this.readUint32();
|
|
2104
|
+
if (e != t) return this.error = /* @__PURE__ */ Error("Bad magic number"), this.state = -1, !0;
|
|
2105
|
+
var i = this.readUint32();
|
|
2106
|
+
return i != r && i != n ? (this.error = /* @__PURE__ */ Error(`Bad version number ${i}`), this.state = -1, !0) : (this.result = {
|
|
2107
|
+
magicNumber: e,
|
|
2108
|
+
version: i
|
|
2109
|
+
}, this.state = 1, !0);
|
|
2110
|
+
case 2: return this.result = null, this.state = 1, this.hasMoreBytes() ? (this.state = 0, this.read()) : !1;
|
|
2111
|
+
case -1: return !0;
|
|
2112
|
+
case 1:
|
|
2113
|
+
case 4: return this.readSectionHeader();
|
|
2114
|
+
case 3: return this.readSectionBody();
|
|
2115
|
+
case 5: return this.hasSectionPayload() ? (this.state = 4, this._pos = this._sectionRange.end, this._sectionId = -1, this._sectionRange = null, this.result = null, !0) : !1;
|
|
2116
|
+
case 32: return this.state = 31, this._pos = this._functionRange.end, this._functionRange = null, this.result = null, !0;
|
|
2117
|
+
case 11: return this.readTypeEntry();
|
|
2118
|
+
case 12: return this.readImportEntry();
|
|
2119
|
+
case 17: return this.readExportEntry();
|
|
2120
|
+
case 13: return this.readFunctionEntry();
|
|
2121
|
+
case 14: return this.readTableEntry();
|
|
2122
|
+
case 15: return this.readMemoryEntry();
|
|
2123
|
+
case 23: return this.readEventEntry();
|
|
2124
|
+
case 16:
|
|
2125
|
+
case 40: return this.readGlobalEntry();
|
|
2126
|
+
case 39: return this.readInitExpressionBody();
|
|
2127
|
+
case 20:
|
|
2128
|
+
case 35: return this.readElementEntry();
|
|
2129
|
+
case 33: return v(this._segmentType) ? this.readOffsetExpressionBody() : this.readElementEntryBody();
|
|
2130
|
+
case 34: return this.hasVarIntBytes() ? (this._segmentEntriesLeft = this.readVarUint32(), this._segmentEntriesLeft === 0 ? (this.state = 35, this.result = null, !0) : this.readInitExpressionBody()) : !1;
|
|
2131
|
+
case 18:
|
|
2132
|
+
case 38: return this.readDataEntry();
|
|
2133
|
+
case 36: return h(this._segmentType) ? this.readOffsetExpressionBody() : this.readDataEntryBody();
|
|
2134
|
+
case 37: return this.state = 38, this.result = null, !0;
|
|
2135
|
+
case 27:
|
|
2136
|
+
switch (this._sectionId) {
|
|
2137
|
+
case 6: return this.state = 40, !0;
|
|
2138
|
+
case 9: return --this._segmentEntriesLeft > 0 ? this.readInitExpressionBody() : (this.state = 35, this.result = null, !0);
|
|
2139
|
+
}
|
|
2140
|
+
return this.error = /* @__PURE__ */ Error(`Unexpected section type: ${this._sectionId}`), this.state = -1, !0;
|
|
2141
|
+
case 46: return this._sectionId === 11 ? this.readDataEntryBody() : this.readElementEntryBody();
|
|
2142
|
+
case 19: return this.readNameEntry();
|
|
2143
|
+
case 41: return this.hasVarIntBytes() ? (this._sectionEntriesLeft = this.readVarUint32(), this.readRelocEntry()) : !1;
|
|
2144
|
+
case 21: return this.readLinkingEntry();
|
|
2145
|
+
case 43: return this.state = 4, this.result = null, !0;
|
|
2146
|
+
case 42: return this.readRelocEntry();
|
|
2147
|
+
case 29:
|
|
2148
|
+
case 31: return this.readFunctionBody();
|
|
2149
|
+
case 28: return this.state = 30, this.readCodeOperator();
|
|
2150
|
+
case 25: return this.state = 26, this.readCodeOperator();
|
|
2151
|
+
case 44: return this.state = 45, this.readCodeOperator();
|
|
2152
|
+
case 30:
|
|
2153
|
+
case 26:
|
|
2154
|
+
case 45: return this.readCodeOperator();
|
|
2155
|
+
case 6: return this.readSectionRawData();
|
|
2156
|
+
case 22:
|
|
2157
|
+
case 7: return this.state = 4, this.result = null, !0;
|
|
2158
|
+
default: return this.error = /* @__PURE__ */ Error(`Unsupported state: ${this.state}`), this.state = -1, !0;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
skipSection() {
|
|
2162
|
+
this.state === -1 || this.state === 0 || this.state === 4 || this.state === 1 || this.state === 2 || (this.state = 5);
|
|
2163
|
+
}
|
|
2164
|
+
skipFunctionBody() {
|
|
2165
|
+
this.state !== 28 && this.state !== 30 || (this.state = 32);
|
|
2166
|
+
}
|
|
2167
|
+
skipInitExpression() {
|
|
2168
|
+
for (; this.state === 26;) this.readCodeOperator();
|
|
2169
|
+
}
|
|
2170
|
+
fetchSectionRawData() {
|
|
2171
|
+
if (this.state !== 3) {
|
|
2172
|
+
this.error = /* @__PURE__ */ Error(`Unsupported state: ${this.state}`), this.state = -1;
|
|
2173
|
+
return;
|
|
2174
|
+
}
|
|
2175
|
+
this.state = 6;
|
|
2176
|
+
}
|
|
2177
|
+
}, w;
|
|
2178
|
+
if (typeof TextDecoder < "u") try {
|
|
2179
|
+
w = (function() {
|
|
2180
|
+
var e = new TextDecoder("utf-8");
|
|
2181
|
+
return e.decode(new Uint8Array([
|
|
2182
|
+
97,
|
|
2183
|
+
208,
|
|
2184
|
+
144
|
|
2185
|
+
])), (t) => e.decode(t);
|
|
2186
|
+
})();
|
|
2187
|
+
} catch {}
|
|
2188
|
+
w ||= (e) => {
|
|
2189
|
+
var t = String.fromCharCode.apply(null, e);
|
|
2190
|
+
return decodeURIComponent(escape(t));
|
|
2191
|
+
};
|
|
2192
|
+
//#endregion
|
|
2193
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js
|
|
2194
|
+
var T = "name", E = /[^0-9A-Za-z!#$%&'*+.:<=>?@^_`|~\/\-]/, D = new RegExp(E.source, "g");
|
|
2195
|
+
function O(e) {
|
|
2196
|
+
if (e === 0) return 1 / e < 0 ? "-0.0" : "0.0";
|
|
2197
|
+
if (isFinite(e)) return e.toString();
|
|
2198
|
+
if (!isNaN(e)) return e < 0 ? "-inf" : "inf";
|
|
2199
|
+
var t = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
|
|
2200
|
+
t.setFloat32(0, e, !0);
|
|
2201
|
+
var n = t.getInt32(0, !0), r = n & 8388607;
|
|
2202
|
+
let i = 4194304;
|
|
2203
|
+
return n > 0 && r === i ? "nan" : r === i ? "-nan" : (n < 0 ? "-" : "+") + "nan:0x" + r.toString(16);
|
|
2204
|
+
}
|
|
2205
|
+
function k(e) {
|
|
2206
|
+
if (e === 0) return 1 / e < 0 ? "-0.0" : "0.0";
|
|
2207
|
+
if (isFinite(e)) return e.toString();
|
|
2208
|
+
if (!isNaN(e)) return e < 0 ? "-inf" : "inf";
|
|
2209
|
+
var t = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
|
|
2210
|
+
t.setFloat64(0, e, !0);
|
|
2211
|
+
var n = t.getUint32(0, !0), r = t.getInt32(4, !0), i = n + (r & 1048575) * 4294967296;
|
|
2212
|
+
let a = 524288 * 4294967296;
|
|
2213
|
+
return r > 0 && i === a ? "nan" : i === a ? "-nan" : (r < 0 ? "-" : "+") + "nan:0x" + i.toString(16);
|
|
2214
|
+
}
|
|
2215
|
+
function A(e, t) {
|
|
2216
|
+
for (var n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = [], i = 0; i < t; i++) r.push(`0x${F(n.getInt32(i << 2, !0), 8)}`);
|
|
2217
|
+
return r.join(" ");
|
|
2218
|
+
}
|
|
2219
|
+
function j(e, t) {
|
|
2220
|
+
for (var n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = [], i = 0; i < t; i++) r.push(`${n.getInt8(i)}`);
|
|
2221
|
+
return r.join(" ");
|
|
2222
|
+
}
|
|
2223
|
+
function M(e, t) {
|
|
2224
|
+
var n;
|
|
2225
|
+
switch (t) {
|
|
2226
|
+
case 64768:
|
|
2227
|
+
case 64769:
|
|
2228
|
+
case 64770:
|
|
2229
|
+
case 64771:
|
|
2230
|
+
case 64772:
|
|
2231
|
+
case 64773:
|
|
2232
|
+
case 64774:
|
|
2233
|
+
case 64775:
|
|
2234
|
+
case 64776:
|
|
2235
|
+
case 64777:
|
|
2236
|
+
case 64778:
|
|
2237
|
+
case 64779:
|
|
2238
|
+
n = 4;
|
|
2239
|
+
break;
|
|
2240
|
+
case 41:
|
|
2241
|
+
case 55:
|
|
2242
|
+
case 43:
|
|
2243
|
+
case 57:
|
|
2244
|
+
case 65026:
|
|
2245
|
+
case 65041:
|
|
2246
|
+
case 65048:
|
|
2247
|
+
case 65055:
|
|
2248
|
+
case 65062:
|
|
2249
|
+
case 65069:
|
|
2250
|
+
case 65076:
|
|
2251
|
+
case 65083:
|
|
2252
|
+
case 65090:
|
|
2253
|
+
case 65097:
|
|
2254
|
+
case 64861:
|
|
2255
|
+
n = 3;
|
|
2256
|
+
break;
|
|
2257
|
+
case 40:
|
|
2258
|
+
case 52:
|
|
2259
|
+
case 53:
|
|
2260
|
+
case 54:
|
|
2261
|
+
case 62:
|
|
2262
|
+
case 42:
|
|
2263
|
+
case 56:
|
|
2264
|
+
case 65024:
|
|
2265
|
+
case 65025:
|
|
2266
|
+
case 65040:
|
|
2267
|
+
case 65046:
|
|
2268
|
+
case 65047:
|
|
2269
|
+
case 65053:
|
|
2270
|
+
case 65054:
|
|
2271
|
+
case 65060:
|
|
2272
|
+
case 65061:
|
|
2273
|
+
case 65067:
|
|
2274
|
+
case 65068:
|
|
2275
|
+
case 65074:
|
|
2276
|
+
case 65075:
|
|
2277
|
+
case 65081:
|
|
2278
|
+
case 65082:
|
|
2279
|
+
case 65088:
|
|
2280
|
+
case 65089:
|
|
2281
|
+
case 65095:
|
|
2282
|
+
case 65096:
|
|
2283
|
+
case 65102:
|
|
2284
|
+
case 64860:
|
|
2285
|
+
n = 2;
|
|
2286
|
+
break;
|
|
2287
|
+
case 46:
|
|
2288
|
+
case 47:
|
|
2289
|
+
case 50:
|
|
2290
|
+
case 51:
|
|
2291
|
+
case 59:
|
|
2292
|
+
case 61:
|
|
2293
|
+
case 65043:
|
|
2294
|
+
case 65045:
|
|
2295
|
+
case 65050:
|
|
2296
|
+
case 65052:
|
|
2297
|
+
case 65057:
|
|
2298
|
+
case 65059:
|
|
2299
|
+
case 65064:
|
|
2300
|
+
case 65066:
|
|
2301
|
+
case 65071:
|
|
2302
|
+
case 65073:
|
|
2303
|
+
case 65078:
|
|
2304
|
+
case 65080:
|
|
2305
|
+
case 65085:
|
|
2306
|
+
case 65087:
|
|
2307
|
+
case 65092:
|
|
2308
|
+
case 65094:
|
|
2309
|
+
case 65099:
|
|
2310
|
+
case 65101:
|
|
2311
|
+
n = 1;
|
|
2312
|
+
break;
|
|
2313
|
+
case 44:
|
|
2314
|
+
case 45:
|
|
2315
|
+
case 48:
|
|
2316
|
+
case 49:
|
|
2317
|
+
case 58:
|
|
2318
|
+
case 60:
|
|
2319
|
+
case 65042:
|
|
2320
|
+
case 65044:
|
|
2321
|
+
case 65049:
|
|
2322
|
+
case 65051:
|
|
2323
|
+
case 65056:
|
|
2324
|
+
case 65058:
|
|
2325
|
+
case 65063:
|
|
2326
|
+
case 65065:
|
|
2327
|
+
case 65070:
|
|
2328
|
+
case 65072:
|
|
2329
|
+
case 65077:
|
|
2330
|
+
case 65079:
|
|
2331
|
+
case 65084:
|
|
2332
|
+
case 65086:
|
|
2333
|
+
case 65091:
|
|
2334
|
+
case 65093:
|
|
2335
|
+
case 65098:
|
|
2336
|
+
case 65100:
|
|
2337
|
+
n = 0;
|
|
2338
|
+
break;
|
|
2339
|
+
}
|
|
2340
|
+
return e.flags == n ? e.offset ? `offset=${e.offset}` : null : e.offset ? `offset=${e.offset | 0} align=${1 << e.flags}` : `align=${1 << e.flags}`;
|
|
2341
|
+
}
|
|
2342
|
+
function N(e) {
|
|
2343
|
+
return e.initial + (e.maximum === void 0 ? "" : " " + e.maximum);
|
|
2344
|
+
}
|
|
2345
|
+
var P = [
|
|
2346
|
+
"0",
|
|
2347
|
+
"00",
|
|
2348
|
+
"000"
|
|
2349
|
+
];
|
|
2350
|
+
function F(e, t) {
|
|
2351
|
+
var n = (e >>> 0).toString(16).toUpperCase();
|
|
2352
|
+
if (t === void 0 || n.length >= t) return n;
|
|
2353
|
+
for (var r = t - n.length - 1; r >= P.length;) P.push(P[P.length - 1] + "0");
|
|
2354
|
+
return P[r] + n;
|
|
2355
|
+
}
|
|
2356
|
+
var I = " ";
|
|
2357
|
+
function L(e) {
|
|
2358
|
+
return !E.test(e);
|
|
2359
|
+
}
|
|
2360
|
+
var R = class {
|
|
2361
|
+
getTypeName(e, t) {
|
|
2362
|
+
return "$type" + e;
|
|
2363
|
+
}
|
|
2364
|
+
getTableName(e, t) {
|
|
2365
|
+
return "$table" + e;
|
|
2366
|
+
}
|
|
2367
|
+
getMemoryName(e, t) {
|
|
2368
|
+
return "$memory" + e;
|
|
2369
|
+
}
|
|
2370
|
+
getGlobalName(e, t) {
|
|
2371
|
+
return "$global" + e;
|
|
2372
|
+
}
|
|
2373
|
+
getElementName(e, t) {
|
|
2374
|
+
return `$elem${e}`;
|
|
2375
|
+
}
|
|
2376
|
+
getEventName(e, t) {
|
|
2377
|
+
return `$event${e}`;
|
|
2378
|
+
}
|
|
2379
|
+
getFunctionName(e, t, n) {
|
|
2380
|
+
return (t ? "$import" : "$func") + e;
|
|
2381
|
+
}
|
|
2382
|
+
getVariableName(e, t, n) {
|
|
2383
|
+
return "$var" + t;
|
|
2384
|
+
}
|
|
2385
|
+
getFieldName(e, t, n) {
|
|
2386
|
+
return "$field" + t;
|
|
2387
|
+
}
|
|
2388
|
+
getLabel(e) {
|
|
2389
|
+
return "$label" + e;
|
|
2390
|
+
}
|
|
2391
|
+
}, z = [], B = class {
|
|
2392
|
+
constructor(e, t, n, r, i) {
|
|
2393
|
+
this._functionExportNames = e, this._globalExportNames = t, this._memoryExportNames = n, this._tableExportNames = r, this._eventExportNames = i;
|
|
2394
|
+
}
|
|
2395
|
+
getFunctionExportNames(e) {
|
|
2396
|
+
return this._functionExportNames[e] ?? z;
|
|
2397
|
+
}
|
|
2398
|
+
getGlobalExportNames(e) {
|
|
2399
|
+
return this._globalExportNames[e] ?? z;
|
|
2400
|
+
}
|
|
2401
|
+
getMemoryExportNames(e) {
|
|
2402
|
+
return this._memoryExportNames[e] ?? z;
|
|
2403
|
+
}
|
|
2404
|
+
getTableExportNames(e) {
|
|
2405
|
+
return this._tableExportNames[e] ?? z;
|
|
2406
|
+
}
|
|
2407
|
+
getEventExportNames(e) {
|
|
2408
|
+
return this._eventExportNames[e] ?? z;
|
|
2409
|
+
}
|
|
2410
|
+
}, V;
|
|
2411
|
+
(function(e) {
|
|
2412
|
+
e[e.Depth = 0] = "Depth", e[e.WhenUsed = 1] = "WhenUsed", e[e.Always = 2] = "Always";
|
|
2413
|
+
})(V ||= {});
|
|
2414
|
+
var H = class {
|
|
2415
|
+
constructor() {
|
|
2416
|
+
this._skipTypes = !0, this._exportMetadata = null, this._lines = [], this._offsets = [], this._buffer = "", this._indent = null, this._indentLevel = 0, this._addOffsets = !1, this._done = !1, this._currentPosition = 0, this._nameResolver = new R(), this._labelMode = V.WhenUsed, this._functionBodyOffsets = [], this._currentFunctionBodyOffset = 0, this._currentSectionId = -1, this._logFirstInstruction = !1, this._reset();
|
|
2417
|
+
}
|
|
2418
|
+
_reset() {
|
|
2419
|
+
this._types = [], this._funcIndex = 0, this._funcTypes = [], this._importCount = 0, this._globalCount = 0, this._memoryCount = 0, this._eventCount = 0, this._tableCount = 0, this._elementCount = 0, this._expression = [], this._backrefLabels = null, this._labelIndex = 0;
|
|
2420
|
+
}
|
|
2421
|
+
get addOffsets() {
|
|
2422
|
+
return this._addOffsets;
|
|
2423
|
+
}
|
|
2424
|
+
set addOffsets(e) {
|
|
2425
|
+
if (this._currentPosition) throw Error("Cannot switch addOffsets during processing.");
|
|
2426
|
+
this._addOffsets = e;
|
|
2427
|
+
}
|
|
2428
|
+
get skipTypes() {
|
|
2429
|
+
return this._skipTypes;
|
|
2430
|
+
}
|
|
2431
|
+
set skipTypes(e) {
|
|
2432
|
+
if (this._currentPosition) throw Error("Cannot switch skipTypes during processing.");
|
|
2433
|
+
this._skipTypes = e;
|
|
2434
|
+
}
|
|
2435
|
+
get labelMode() {
|
|
2436
|
+
return this._labelMode;
|
|
2437
|
+
}
|
|
2438
|
+
set labelMode(e) {
|
|
2439
|
+
if (this._currentPosition) throw Error("Cannot switch labelMode during processing.");
|
|
2440
|
+
this._labelMode = e;
|
|
2441
|
+
}
|
|
2442
|
+
get exportMetadata() {
|
|
2443
|
+
return this._exportMetadata;
|
|
2444
|
+
}
|
|
2445
|
+
set exportMetadata(e) {
|
|
2446
|
+
if (this._currentPosition) throw Error("Cannot switch exportMetadata during processing.");
|
|
2447
|
+
this._exportMetadata = e;
|
|
2448
|
+
}
|
|
2449
|
+
get nameResolver() {
|
|
2450
|
+
return this._nameResolver;
|
|
2451
|
+
}
|
|
2452
|
+
set nameResolver(e) {
|
|
2453
|
+
if (this._currentPosition) throw Error("Cannot switch nameResolver during processing.");
|
|
2454
|
+
this._nameResolver = e;
|
|
2455
|
+
}
|
|
2456
|
+
appendBuffer(e) {
|
|
2457
|
+
this._buffer += e;
|
|
2458
|
+
}
|
|
2459
|
+
newLine() {
|
|
2460
|
+
this.addOffsets && this._offsets.push(this._currentPosition), this._lines.push(this._buffer), this._buffer = "";
|
|
2461
|
+
}
|
|
2462
|
+
logStartOfFunctionBodyOffset() {
|
|
2463
|
+
this.addOffsets && (this._currentFunctionBodyOffset = this._currentPosition);
|
|
2464
|
+
}
|
|
2465
|
+
logEndOfFunctionBodyOffset() {
|
|
2466
|
+
this.addOffsets && this._functionBodyOffsets.push({
|
|
2467
|
+
start: this._currentFunctionBodyOffset,
|
|
2468
|
+
end: this._currentPosition
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
typeIndexToString(e) {
|
|
2472
|
+
if (e >= 0) return this._nameResolver.getTypeName(e, !0);
|
|
2473
|
+
switch (e) {
|
|
2474
|
+
case -16: return "func";
|
|
2475
|
+
case -17: return "extern";
|
|
2476
|
+
case -18: return "any";
|
|
2477
|
+
case -19: return "eq";
|
|
2478
|
+
case -22: return "i31";
|
|
2479
|
+
case -25: return "data";
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
typeToString(e) {
|
|
2483
|
+
switch (e.kind) {
|
|
2484
|
+
case -1: return "i32";
|
|
2485
|
+
case -2: return "i64";
|
|
2486
|
+
case -3: return "f32";
|
|
2487
|
+
case -4: return "f64";
|
|
2488
|
+
case -5: return "v128";
|
|
2489
|
+
case -6: return "i8";
|
|
2490
|
+
case -7: return "i16";
|
|
2491
|
+
case -16: return "funcref";
|
|
2492
|
+
case -17: return "externref";
|
|
2493
|
+
case -18: return "anyref";
|
|
2494
|
+
case -19: return "eqref";
|
|
2495
|
+
case -22: return "i31ref";
|
|
2496
|
+
case -25: return "dataref";
|
|
2497
|
+
case -21: return `(ref ${this.typeIndexToString(e.index)})`;
|
|
2498
|
+
case -20: return `(ref null ${this.typeIndexToString(e.index)})`;
|
|
2499
|
+
case -24: return `(rtt ${this.typeIndexToString(e.index)})`;
|
|
2500
|
+
case -23: return `(rtt ${e.depth} ${this.typeIndexToString(e.index)})`;
|
|
2501
|
+
default: throw Error(`Unexpected type ${JSON.stringify(e)}`);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
maybeMut(e, t) {
|
|
2505
|
+
return t ? `(mut ${e})` : e;
|
|
2506
|
+
}
|
|
2507
|
+
globalTypeToString(e) {
|
|
2508
|
+
let t = this.typeToString(e.contentType);
|
|
2509
|
+
return this.maybeMut(t, !!e.mutability);
|
|
2510
|
+
}
|
|
2511
|
+
printFuncType(e) {
|
|
2512
|
+
var t = this._types[e];
|
|
2513
|
+
if (t.params.length > 0) {
|
|
2514
|
+
this.appendBuffer(" (param");
|
|
2515
|
+
for (var n = 0; n < t.params.length; n++) this.appendBuffer(" "), this.appendBuffer(this.typeToString(t.params[n]));
|
|
2516
|
+
this.appendBuffer(")");
|
|
2517
|
+
}
|
|
2518
|
+
if (t.returns.length > 0) {
|
|
2519
|
+
this.appendBuffer(" (result");
|
|
2520
|
+
for (var n = 0; n < t.returns.length; n++) this.appendBuffer(" "), this.appendBuffer(this.typeToString(t.returns[n]));
|
|
2521
|
+
this.appendBuffer(")");
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
printStructType(e) {
|
|
2525
|
+
var t = this._types[e];
|
|
2526
|
+
if (t.fields.length !== 0) for (var n = 0; n < t.fields.length; n++) {
|
|
2527
|
+
let r = this.maybeMut(this.typeToString(t.fields[n]), t.mutabilities[n]), i = this._nameResolver.getFieldName(e, n, !1);
|
|
2528
|
+
this.appendBuffer(` (field ${i} ${r})`);
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
printArrayType(e) {
|
|
2532
|
+
var t = this._types[e];
|
|
2533
|
+
this.appendBuffer(" (field "), this.appendBuffer(this.maybeMut(this.typeToString(t.elementType), t.mutability));
|
|
2534
|
+
}
|
|
2535
|
+
printBlockType(e) {
|
|
2536
|
+
if (e.kind !== -64) {
|
|
2537
|
+
if (e.kind === 0) return this.printFuncType(e.index);
|
|
2538
|
+
this.appendBuffer(" (result "), this.appendBuffer(this.typeToString(e)), this.appendBuffer(")");
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
printString(e) {
|
|
2542
|
+
this.appendBuffer("\"");
|
|
2543
|
+
for (var t = 0; t < e.length; t++) {
|
|
2544
|
+
var n = e[t];
|
|
2545
|
+
n < 32 || n >= 127 || n == 34 || n == 92 ? this.appendBuffer("\\" + (n >> 4).toString(16) + (n & 15).toString(16)) : this.appendBuffer(String.fromCharCode(n));
|
|
2546
|
+
}
|
|
2547
|
+
this.appendBuffer("\"");
|
|
2548
|
+
}
|
|
2549
|
+
printExpression(e) {
|
|
2550
|
+
for (let t of e) this.appendBuffer("("), this.printOperator(t), this.appendBuffer(")");
|
|
2551
|
+
}
|
|
2552
|
+
useLabel(e, t = 0) {
|
|
2553
|
+
if (!this._backrefLabels) return "" + e;
|
|
2554
|
+
var n = this._backrefLabels.length - e - 1 - t;
|
|
2555
|
+
if (n < 0) return "" + e;
|
|
2556
|
+
var r = this._backrefLabels[n];
|
|
2557
|
+
if (!r.useLabel) {
|
|
2558
|
+
r.useLabel = !0, r.label = this._nameResolver.getLabel(this._labelIndex);
|
|
2559
|
+
var i = this._lines[r.line];
|
|
2560
|
+
this._lines[r.line] = i.substring(0, r.position) + " " + r.label + i.substring(r.position), this._labelIndex++;
|
|
2561
|
+
}
|
|
2562
|
+
return r.label || "" + e;
|
|
2563
|
+
}
|
|
2564
|
+
printOperator(e) {
|
|
2565
|
+
var t = e.code;
|
|
2566
|
+
switch (this.appendBuffer(o[t]), t) {
|
|
2567
|
+
case 2:
|
|
2568
|
+
case 3:
|
|
2569
|
+
case 4:
|
|
2570
|
+
case 6:
|
|
2571
|
+
if (this._labelMode !== V.Depth) {
|
|
2572
|
+
let e = {
|
|
2573
|
+
line: this._lines.length,
|
|
2574
|
+
position: this._buffer.length,
|
|
2575
|
+
useLabel: !1,
|
|
2576
|
+
label: null
|
|
2577
|
+
};
|
|
2578
|
+
this._labelMode === V.Always && (e.useLabel = !0, e.label = this._nameResolver.getLabel(this._labelIndex++), e.label && (this.appendBuffer(" "), this.appendBuffer(e.label))), this._backrefLabels.push(e);
|
|
2579
|
+
}
|
|
2580
|
+
this.printBlockType(e.blockType);
|
|
2581
|
+
break;
|
|
2582
|
+
case 11:
|
|
2583
|
+
if (this._labelMode === V.Depth) break;
|
|
2584
|
+
let t = this._backrefLabels.pop();
|
|
2585
|
+
t.label && (this.appendBuffer(" "), this.appendBuffer(t.label));
|
|
2586
|
+
break;
|
|
2587
|
+
case 12:
|
|
2588
|
+
case 13:
|
|
2589
|
+
case 212:
|
|
2590
|
+
case 214:
|
|
2591
|
+
case 64322:
|
|
2592
|
+
case 64323:
|
|
2593
|
+
case 64352:
|
|
2594
|
+
case 64355:
|
|
2595
|
+
case 64353:
|
|
2596
|
+
case 64356:
|
|
2597
|
+
case 64354:
|
|
2598
|
+
case 64357:
|
|
2599
|
+
this.appendBuffer(" "), this.appendBuffer(this.useLabel(e.brDepth));
|
|
2600
|
+
break;
|
|
2601
|
+
case 64326:
|
|
2602
|
+
case 64327: {
|
|
2603
|
+
let t = this.useLabel(e.brDepth), n = this._nameResolver.getTypeName(e.refType, !0);
|
|
2604
|
+
this.appendBuffer(` ${t} ${n}`);
|
|
2605
|
+
break;
|
|
2606
|
+
}
|
|
2607
|
+
case 14:
|
|
2608
|
+
for (var n = 0; n < e.brTable.length; n++) this.appendBuffer(" "), this.appendBuffer(this.useLabel(e.brTable[n]));
|
|
2609
|
+
break;
|
|
2610
|
+
case 9:
|
|
2611
|
+
this.appendBuffer(" "), this.appendBuffer(this.useLabel(e.relativeDepth));
|
|
2612
|
+
break;
|
|
2613
|
+
case 24:
|
|
2614
|
+
this.appendBuffer(" "), this.appendBuffer(this.useLabel(e.relativeDepth, 1));
|
|
2615
|
+
break;
|
|
2616
|
+
case 7:
|
|
2617
|
+
case 8:
|
|
2618
|
+
var r = this._nameResolver.getEventName(e.eventIndex, !0);
|
|
2619
|
+
this.appendBuffer(` ${r}`);
|
|
2620
|
+
break;
|
|
2621
|
+
case 208:
|
|
2622
|
+
this.appendBuffer(" "), this.appendBuffer(this.typeIndexToString(e.refType));
|
|
2623
|
+
break;
|
|
2624
|
+
case 16:
|
|
2625
|
+
case 18:
|
|
2626
|
+
case 210:
|
|
2627
|
+
var i = this._nameResolver.getFunctionName(e.funcIndex, e.funcIndex < this._importCount, !0);
|
|
2628
|
+
this.appendBuffer(` ${i}`);
|
|
2629
|
+
break;
|
|
2630
|
+
case 17:
|
|
2631
|
+
case 19:
|
|
2632
|
+
this.printFuncType(e.typeIndex);
|
|
2633
|
+
break;
|
|
2634
|
+
case 28: {
|
|
2635
|
+
let t = this.typeToString(e.selectType);
|
|
2636
|
+
this.appendBuffer(` ${t}`);
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
case 32:
|
|
2640
|
+
case 33:
|
|
2641
|
+
case 34:
|
|
2642
|
+
var a = this._nameResolver.getVariableName(this._funcIndex, e.localIndex, !0);
|
|
2643
|
+
this.appendBuffer(` ${a}`);
|
|
2644
|
+
break;
|
|
2645
|
+
case 35:
|
|
2646
|
+
case 36:
|
|
2647
|
+
var s = this._nameResolver.getGlobalName(e.globalIndex, !0);
|
|
2648
|
+
this.appendBuffer(` ${s}`);
|
|
2649
|
+
break;
|
|
2650
|
+
case 40:
|
|
2651
|
+
case 41:
|
|
2652
|
+
case 42:
|
|
2653
|
+
case 43:
|
|
2654
|
+
case 44:
|
|
2655
|
+
case 45:
|
|
2656
|
+
case 46:
|
|
2657
|
+
case 47:
|
|
2658
|
+
case 48:
|
|
2659
|
+
case 49:
|
|
2660
|
+
case 50:
|
|
2661
|
+
case 51:
|
|
2662
|
+
case 52:
|
|
2663
|
+
case 53:
|
|
2664
|
+
case 54:
|
|
2665
|
+
case 55:
|
|
2666
|
+
case 56:
|
|
2667
|
+
case 57:
|
|
2668
|
+
case 58:
|
|
2669
|
+
case 59:
|
|
2670
|
+
case 60:
|
|
2671
|
+
case 61:
|
|
2672
|
+
case 62:
|
|
2673
|
+
case 65024:
|
|
2674
|
+
case 65025:
|
|
2675
|
+
case 65026:
|
|
2676
|
+
case 65040:
|
|
2677
|
+
case 65041:
|
|
2678
|
+
case 65042:
|
|
2679
|
+
case 65043:
|
|
2680
|
+
case 65044:
|
|
2681
|
+
case 65045:
|
|
2682
|
+
case 65046:
|
|
2683
|
+
case 65047:
|
|
2684
|
+
case 65048:
|
|
2685
|
+
case 65049:
|
|
2686
|
+
case 65050:
|
|
2687
|
+
case 65051:
|
|
2688
|
+
case 65052:
|
|
2689
|
+
case 65053:
|
|
2690
|
+
case 65054:
|
|
2691
|
+
case 65055:
|
|
2692
|
+
case 65056:
|
|
2693
|
+
case 65057:
|
|
2694
|
+
case 65058:
|
|
2695
|
+
case 65059:
|
|
2696
|
+
case 65060:
|
|
2697
|
+
case 65061:
|
|
2698
|
+
case 65062:
|
|
2699
|
+
case 65063:
|
|
2700
|
+
case 65064:
|
|
2701
|
+
case 65065:
|
|
2702
|
+
case 65066:
|
|
2703
|
+
case 65067:
|
|
2704
|
+
case 65068:
|
|
2705
|
+
case 65069:
|
|
2706
|
+
case 65070:
|
|
2707
|
+
case 65071:
|
|
2708
|
+
case 65072:
|
|
2709
|
+
case 65073:
|
|
2710
|
+
case 65074:
|
|
2711
|
+
case 65075:
|
|
2712
|
+
case 65076:
|
|
2713
|
+
case 65077:
|
|
2714
|
+
case 65078:
|
|
2715
|
+
case 65079:
|
|
2716
|
+
case 65080:
|
|
2717
|
+
case 65081:
|
|
2718
|
+
case 65082:
|
|
2719
|
+
case 65083:
|
|
2720
|
+
case 65084:
|
|
2721
|
+
case 65085:
|
|
2722
|
+
case 65086:
|
|
2723
|
+
case 65087:
|
|
2724
|
+
case 65088:
|
|
2725
|
+
case 65089:
|
|
2726
|
+
case 65090:
|
|
2727
|
+
case 65091:
|
|
2728
|
+
case 65092:
|
|
2729
|
+
case 65093:
|
|
2730
|
+
case 65094:
|
|
2731
|
+
case 65095:
|
|
2732
|
+
case 65096:
|
|
2733
|
+
case 65097:
|
|
2734
|
+
case 65098:
|
|
2735
|
+
case 65099:
|
|
2736
|
+
case 65100:
|
|
2737
|
+
case 65101:
|
|
2738
|
+
case 65102:
|
|
2739
|
+
case 64768:
|
|
2740
|
+
case 64769:
|
|
2741
|
+
case 64770:
|
|
2742
|
+
case 64771:
|
|
2743
|
+
case 64772:
|
|
2744
|
+
case 64773:
|
|
2745
|
+
case 64774:
|
|
2746
|
+
case 64775:
|
|
2747
|
+
case 64776:
|
|
2748
|
+
case 64777:
|
|
2749
|
+
case 64778:
|
|
2750
|
+
case 64779:
|
|
2751
|
+
case 64860:
|
|
2752
|
+
case 64861:
|
|
2753
|
+
var c = M(e.memoryAddress, e.code);
|
|
2754
|
+
c !== null && (this.appendBuffer(" "), this.appendBuffer(c));
|
|
2755
|
+
break;
|
|
2756
|
+
case 63:
|
|
2757
|
+
case 64: break;
|
|
2758
|
+
case 65:
|
|
2759
|
+
this.appendBuffer(` ${e.literal.toString()}`);
|
|
2760
|
+
break;
|
|
2761
|
+
case 66:
|
|
2762
|
+
this.appendBuffer(` ${e.literal.toString()}`);
|
|
2763
|
+
break;
|
|
2764
|
+
case 67:
|
|
2765
|
+
this.appendBuffer(` ${O(e.literal)}`);
|
|
2766
|
+
break;
|
|
2767
|
+
case 68:
|
|
2768
|
+
this.appendBuffer(` ${k(e.literal)}`);
|
|
2769
|
+
break;
|
|
2770
|
+
case 64780:
|
|
2771
|
+
this.appendBuffer(` i32x4 ${A(e.literal, 4)}`);
|
|
2772
|
+
break;
|
|
2773
|
+
case 64781:
|
|
2774
|
+
this.appendBuffer(` ${j(e.lines, 16)}`);
|
|
2775
|
+
break;
|
|
2776
|
+
case 64789:
|
|
2777
|
+
case 64790:
|
|
2778
|
+
case 64791:
|
|
2779
|
+
case 64792:
|
|
2780
|
+
case 64793:
|
|
2781
|
+
case 64794:
|
|
2782
|
+
case 64795:
|
|
2783
|
+
case 64796:
|
|
2784
|
+
case 64799:
|
|
2785
|
+
case 64800:
|
|
2786
|
+
case 64797:
|
|
2787
|
+
case 64798:
|
|
2788
|
+
case 64801:
|
|
2789
|
+
case 64802:
|
|
2790
|
+
this.appendBuffer(` ${e.lineIndex}`);
|
|
2791
|
+
break;
|
|
2792
|
+
case 64520:
|
|
2793
|
+
case 64521:
|
|
2794
|
+
this.appendBuffer(` ${e.segmentIndex}`);
|
|
2795
|
+
break;
|
|
2796
|
+
case 64525:
|
|
2797
|
+
let o = this._nameResolver.getElementName(e.segmentIndex, !0);
|
|
2798
|
+
this.appendBuffer(` ${o}`);
|
|
2799
|
+
break;
|
|
2800
|
+
case 38:
|
|
2801
|
+
case 37:
|
|
2802
|
+
case 64529: {
|
|
2803
|
+
let t = this._nameResolver.getTableName(e.tableIndex, !0);
|
|
2804
|
+
this.appendBuffer(` ${t}`);
|
|
2805
|
+
break;
|
|
2806
|
+
}
|
|
2807
|
+
case 64526:
|
|
2808
|
+
if (e.tableIndex !== 0 || e.destinationIndex !== 0) {
|
|
2809
|
+
let t = this._nameResolver.getTableName(e.tableIndex, !0), n = this._nameResolver.getTableName(e.destinationIndex, !0);
|
|
2810
|
+
this.appendBuffer(` ${n} ${t}`);
|
|
2811
|
+
}
|
|
2812
|
+
break;
|
|
2813
|
+
case 64524: {
|
|
2814
|
+
if (e.tableIndex !== 0) {
|
|
2815
|
+
let t = this._nameResolver.getTableName(e.tableIndex, !0);
|
|
2816
|
+
this.appendBuffer(` ${t}`);
|
|
2817
|
+
}
|
|
2818
|
+
let t = this._nameResolver.getElementName(e.segmentIndex, !0);
|
|
2819
|
+
this.appendBuffer(` ${t}`);
|
|
2820
|
+
break;
|
|
2821
|
+
}
|
|
2822
|
+
case 64259:
|
|
2823
|
+
case 64260:
|
|
2824
|
+
case 64261:
|
|
2825
|
+
case 64262: {
|
|
2826
|
+
let t = this._nameResolver.getTypeName(e.refType, !0), n = this._nameResolver.getFieldName(e.refType, e.fieldIndex, !0);
|
|
2827
|
+
this.appendBuffer(` ${t} ${n}`);
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
case 64304:
|
|
2831
|
+
case 64305:
|
|
2832
|
+
case 64306:
|
|
2833
|
+
case 64324:
|
|
2834
|
+
case 64325:
|
|
2835
|
+
case 64264:
|
|
2836
|
+
case 64258:
|
|
2837
|
+
case 64263:
|
|
2838
|
+
case 64257:
|
|
2839
|
+
case 64284:
|
|
2840
|
+
case 64274:
|
|
2841
|
+
case 64283:
|
|
2842
|
+
case 64273:
|
|
2843
|
+
case 64275:
|
|
2844
|
+
case 64276:
|
|
2845
|
+
case 64277:
|
|
2846
|
+
case 64278:
|
|
2847
|
+
case 64279: {
|
|
2848
|
+
let t = this._nameResolver.getTypeName(e.refType, !0);
|
|
2849
|
+
this.appendBuffer(` ${t}`);
|
|
2850
|
+
break;
|
|
2851
|
+
}
|
|
2852
|
+
case 64280: {
|
|
2853
|
+
let t = this._nameResolver.getTypeName(e.refType, !0), n = this._nameResolver.getTypeName(e.srcType, !0);
|
|
2854
|
+
this.appendBuffer(` ${t} ${n}`);
|
|
2855
|
+
break;
|
|
2856
|
+
}
|
|
2857
|
+
case 64281:
|
|
2858
|
+
case 64282: {
|
|
2859
|
+
let t = this._nameResolver.getTypeName(e.refType, !0), n = e.brDepth;
|
|
2860
|
+
this.appendBuffer(` ${t} ${n}`);
|
|
2861
|
+
break;
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
printImportSource(e) {
|
|
2866
|
+
this.printString(e.module), this.appendBuffer(" "), this.printString(e.field);
|
|
2867
|
+
}
|
|
2868
|
+
increaseIndent() {
|
|
2869
|
+
this._indent += I, this._indentLevel++;
|
|
2870
|
+
}
|
|
2871
|
+
decreaseIndent() {
|
|
2872
|
+
this._indent = this._indent.slice(0, -2), this._indentLevel--;
|
|
2873
|
+
}
|
|
2874
|
+
disassemble(e) {
|
|
2875
|
+
if (!this.disassembleChunk(e)) return null;
|
|
2876
|
+
let t = this._lines;
|
|
2877
|
+
this._addOffsets && (t = t.map((e, t) => {
|
|
2878
|
+
var n = F(this._offsets[t], 4);
|
|
2879
|
+
return e + " ;; @" + n;
|
|
2880
|
+
})), t.push("");
|
|
2881
|
+
let n = t.join("\n");
|
|
2882
|
+
return this._lines.length = 0, this._offsets.length = 0, this._functionBodyOffsets.length = 0, n;
|
|
2883
|
+
}
|
|
2884
|
+
getResult() {
|
|
2885
|
+
let e = this._lines.length;
|
|
2886
|
+
if (this._backrefLabels && this._labelMode === V.WhenUsed && this._backrefLabels.some((t) => t.useLabel ? !1 : (e = t.line, !0)), e === 0) return {
|
|
2887
|
+
lines: [],
|
|
2888
|
+
offsets: this._addOffsets ? [] : void 0,
|
|
2889
|
+
done: this._done,
|
|
2890
|
+
functionBodyOffsets: this._addOffsets ? [] : void 0
|
|
2891
|
+
};
|
|
2892
|
+
if (e === this._lines.length) {
|
|
2893
|
+
let e = {
|
|
2894
|
+
lines: this._lines,
|
|
2895
|
+
offsets: this._addOffsets ? this._offsets : void 0,
|
|
2896
|
+
done: this._done,
|
|
2897
|
+
functionBodyOffsets: this._addOffsets ? this._functionBodyOffsets : void 0
|
|
2898
|
+
};
|
|
2899
|
+
return this._lines = [], this._addOffsets && (this._offsets = [], this._functionBodyOffsets = []), e;
|
|
2900
|
+
}
|
|
2901
|
+
let t = {
|
|
2902
|
+
lines: this._lines.splice(0, e),
|
|
2903
|
+
offsets: this._addOffsets ? this._offsets.splice(0, e) : void 0,
|
|
2904
|
+
done: !1,
|
|
2905
|
+
functionBodyOffsets: this._addOffsets ? this._functionBodyOffsets : void 0
|
|
2906
|
+
};
|
|
2907
|
+
return this._backrefLabels && this._backrefLabels.forEach((t) => {
|
|
2908
|
+
t.line -= e;
|
|
2909
|
+
}), t;
|
|
2910
|
+
}
|
|
2911
|
+
disassembleChunk(e, t = 0) {
|
|
2912
|
+
if (this._done) throw Error("Invalid state: disassembly process was already finished.");
|
|
2913
|
+
for (;;) {
|
|
2914
|
+
if (this._currentPosition = e.position + t, !e.read()) return !1;
|
|
2915
|
+
switch (e.state) {
|
|
2916
|
+
case 2:
|
|
2917
|
+
if (this.appendBuffer(")"), this.newLine(), this._reset(), !e.hasMoreBytes()) return this._done = !0, !0;
|
|
2918
|
+
break;
|
|
2919
|
+
case -1: throw e.error;
|
|
2920
|
+
case 1:
|
|
2921
|
+
this.appendBuffer("(module"), this.newLine();
|
|
2922
|
+
break;
|
|
2923
|
+
case 4:
|
|
2924
|
+
this._currentSectionId = -1;
|
|
2925
|
+
break;
|
|
2926
|
+
case 3:
|
|
2927
|
+
var n = e.result;
|
|
2928
|
+
switch (n.id) {
|
|
2929
|
+
case 1:
|
|
2930
|
+
case 2:
|
|
2931
|
+
case 7:
|
|
2932
|
+
case 6:
|
|
2933
|
+
case 3:
|
|
2934
|
+
case 8:
|
|
2935
|
+
case 10:
|
|
2936
|
+
case 5:
|
|
2937
|
+
case 11:
|
|
2938
|
+
case 4:
|
|
2939
|
+
case 9:
|
|
2940
|
+
case 13:
|
|
2941
|
+
this._currentSectionId = n.id;
|
|
2942
|
+
break;
|
|
2943
|
+
default:
|
|
2944
|
+
e.skipSection();
|
|
2945
|
+
break;
|
|
2946
|
+
}
|
|
2947
|
+
break;
|
|
2948
|
+
case 15:
|
|
2949
|
+
var r = e.result, i = this._memoryCount++, a = this._nameResolver.getMemoryName(i, !1);
|
|
2950
|
+
if (this.appendBuffer(` (memory ${a}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getMemoryExportNames(i)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
2951
|
+
this.appendBuffer(` ${N(r.limits)}`), r.shared && this.appendBuffer(" shared"), this.appendBuffer(")"), this.newLine();
|
|
2952
|
+
break;
|
|
2953
|
+
case 23:
|
|
2954
|
+
var o = e.result, s = this._eventCount++, c = this._nameResolver.getEventName(s, !1);
|
|
2955
|
+
if (this.appendBuffer(` (event ${c}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getEventExportNames(s)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
2956
|
+
this.printFuncType(o.typeIndex), this.appendBuffer(")"), this.newLine();
|
|
2957
|
+
break;
|
|
2958
|
+
case 14:
|
|
2959
|
+
var l = e.result, u = this._tableCount++, d = this._nameResolver.getTableName(u, !1);
|
|
2960
|
+
if (this.appendBuffer(` (table ${d}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getTableExportNames(u)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
2961
|
+
this.appendBuffer(` ${N(l.limits)} ${this.typeToString(l.elementType)})`), this.newLine();
|
|
2962
|
+
break;
|
|
2963
|
+
case 17:
|
|
2964
|
+
if (this._exportMetadata === null) {
|
|
2965
|
+
var f = e.result;
|
|
2966
|
+
switch (this.appendBuffer(" (export "), this.printString(f.field), this.appendBuffer(" "), f.kind) {
|
|
2967
|
+
case 0:
|
|
2968
|
+
var p = this._nameResolver.getFunctionName(f.index, f.index < this._importCount, !0);
|
|
2969
|
+
this.appendBuffer(`(func ${p})`);
|
|
2970
|
+
break;
|
|
2971
|
+
case 1:
|
|
2972
|
+
var d = this._nameResolver.getTableName(f.index, !0);
|
|
2973
|
+
this.appendBuffer(`(table ${d})`);
|
|
2974
|
+
break;
|
|
2975
|
+
case 2:
|
|
2976
|
+
var a = this._nameResolver.getMemoryName(f.index, !0);
|
|
2977
|
+
this.appendBuffer(`(memory ${a})`);
|
|
2978
|
+
break;
|
|
2979
|
+
case 3:
|
|
2980
|
+
var m = this._nameResolver.getGlobalName(f.index, !0);
|
|
2981
|
+
this.appendBuffer(`(global ${m})`);
|
|
2982
|
+
break;
|
|
2983
|
+
case 4:
|
|
2984
|
+
var c = this._nameResolver.getEventName(f.index, !0);
|
|
2985
|
+
this.appendBuffer(`(event ${c})`);
|
|
2986
|
+
break;
|
|
2987
|
+
default: throw Error(`Unsupported export ${f.kind}`);
|
|
2988
|
+
}
|
|
2989
|
+
this.appendBuffer(")"), this.newLine();
|
|
2990
|
+
}
|
|
2991
|
+
break;
|
|
2992
|
+
case 12:
|
|
2993
|
+
var h = e.result;
|
|
2994
|
+
switch (h.kind) {
|
|
2995
|
+
case 0:
|
|
2996
|
+
this._importCount++;
|
|
2997
|
+
var g = this._funcIndex++, p = this._nameResolver.getFunctionName(g, !0, !1);
|
|
2998
|
+
if (this.appendBuffer(` (func ${p}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getFunctionExportNames(g)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
2999
|
+
this.appendBuffer(" (import "), this.printImportSource(h), this.appendBuffer(")"), this.printFuncType(h.funcTypeIndex), this.appendBuffer(")");
|
|
3000
|
+
break;
|
|
3001
|
+
case 3:
|
|
3002
|
+
var _ = h.type, v = this._globalCount++, m = this._nameResolver.getGlobalName(v, !1);
|
|
3003
|
+
if (this.appendBuffer(` (global ${m}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getGlobalExportNames(v)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
3004
|
+
this.appendBuffer(" (import "), this.printImportSource(h), this.appendBuffer(`) ${this.globalTypeToString(_)})`);
|
|
3005
|
+
break;
|
|
3006
|
+
case 2:
|
|
3007
|
+
var y = h.type, i = this._memoryCount++, a = this._nameResolver.getMemoryName(i, !1);
|
|
3008
|
+
if (this.appendBuffer(` (memory ${a}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getMemoryExportNames(i)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
3009
|
+
this.appendBuffer(" (import "), this.printImportSource(h), this.appendBuffer(`) ${N(y.limits)}`), y.shared && this.appendBuffer(" shared"), this.appendBuffer(")");
|
|
3010
|
+
break;
|
|
3011
|
+
case 1:
|
|
3012
|
+
var b = h.type, u = this._tableCount++, d = this._nameResolver.getTableName(u, !1);
|
|
3013
|
+
if (this.appendBuffer(` (table ${d}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getTableExportNames(u)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
3014
|
+
this.appendBuffer(" (import "), this.printImportSource(h), this.appendBuffer(`) ${N(b.limits)} ${this.typeToString(b.elementType)})`);
|
|
3015
|
+
break;
|
|
3016
|
+
case 4:
|
|
3017
|
+
var x = h.type, s = this._eventCount++, c = this._nameResolver.getEventName(s, !1);
|
|
3018
|
+
if (this.appendBuffer(` (event ${c}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getEventExportNames(s)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
3019
|
+
this.appendBuffer(" (import "), this.printImportSource(h), this.appendBuffer(")"), this.printFuncType(x.typeIndex), this.appendBuffer(")");
|
|
3020
|
+
break;
|
|
3021
|
+
default: throw Error(`NYI other import types: ${h.kind}`);
|
|
3022
|
+
}
|
|
3023
|
+
this.newLine();
|
|
3024
|
+
break;
|
|
3025
|
+
case 33:
|
|
3026
|
+
var S = e.result, C = this._elementCount++, w = this._nameResolver.getElementName(C, !1);
|
|
3027
|
+
switch (this.appendBuffer(` (elem ${w}`), S.mode) {
|
|
3028
|
+
case 0:
|
|
3029
|
+
if (S.tableIndex !== 0) {
|
|
3030
|
+
let e = this._nameResolver.getTableName(S.tableIndex, !1);
|
|
3031
|
+
this.appendBuffer(` (table ${e})`);
|
|
3032
|
+
}
|
|
3033
|
+
break;
|
|
3034
|
+
case 1: break;
|
|
3035
|
+
case 2:
|
|
3036
|
+
this.appendBuffer(" declare");
|
|
3037
|
+
break;
|
|
3038
|
+
}
|
|
3039
|
+
break;
|
|
3040
|
+
case 35:
|
|
3041
|
+
this.appendBuffer(")"), this.newLine();
|
|
3042
|
+
break;
|
|
3043
|
+
case 34:
|
|
3044
|
+
let t = e.result;
|
|
3045
|
+
this.appendBuffer(` ${this.typeToString(t.elementType)}`);
|
|
3046
|
+
break;
|
|
3047
|
+
case 39:
|
|
3048
|
+
var T = e.result, v = this._globalCount++, m = this._nameResolver.getGlobalName(v, !1);
|
|
3049
|
+
if (this.appendBuffer(` (global ${m}`), this._exportMetadata !== null) for (let e of this._exportMetadata.getGlobalExportNames(v)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
3050
|
+
this.appendBuffer(` ${this.globalTypeToString(T.type)}`);
|
|
3051
|
+
break;
|
|
3052
|
+
case 40:
|
|
3053
|
+
this.appendBuffer(")"), this.newLine();
|
|
3054
|
+
break;
|
|
3055
|
+
case 11:
|
|
3056
|
+
var E = e.result, D = this._types.length;
|
|
3057
|
+
if (this._types.push(E), !this._skipTypes) {
|
|
3058
|
+
var O = this._nameResolver.getTypeName(D, !1), k = void 0;
|
|
3059
|
+
if (E.supertype !== void 0 && (k = this.typeIndexToString(E.supertype)), E.form === -32) this.appendBuffer(` (type ${O} (func`), this.printFuncType(D), this.appendBuffer("))");
|
|
3060
|
+
else if (E.form === -35) this.appendBuffer(` (type ${O} (func_subtype`), this.printFuncType(D), this.appendBuffer(` (supertype ${k})))`);
|
|
3061
|
+
else if (E.form === -33) this.appendBuffer(` (type ${O} (struct`), this.printStructType(D), this.appendBuffer("))");
|
|
3062
|
+
else if (E.form === -36) this.appendBuffer(` (type ${O} (struct_subtype`), this.printStructType(D), this.appendBuffer(` (supertype ${k})))`);
|
|
3063
|
+
else if (E.form === -34) this.appendBuffer(` (type ${O} (array`), this.printArrayType(D), this.appendBuffer("))");
|
|
3064
|
+
else if (E.form === -37) this.appendBuffer(` (type ${O} (array_subtype`), this.printArrayType(D), this.appendBuffer(`) (supertype ${k})))`);
|
|
3065
|
+
else throw Error(`Unknown type form: ${E.form}`);
|
|
3066
|
+
this.newLine();
|
|
3067
|
+
}
|
|
3068
|
+
break;
|
|
3069
|
+
case 22:
|
|
3070
|
+
var A = e.result, p = this._nameResolver.getFunctionName(A.index, A.index < this._importCount, !0);
|
|
3071
|
+
this.appendBuffer(` (start ${p})`), this.newLine();
|
|
3072
|
+
break;
|
|
3073
|
+
case 36:
|
|
3074
|
+
this.appendBuffer(" (data");
|
|
3075
|
+
break;
|
|
3076
|
+
case 37:
|
|
3077
|
+
var j = e.result;
|
|
3078
|
+
this.appendBuffer(" "), this.printString(j.data);
|
|
3079
|
+
break;
|
|
3080
|
+
case 38:
|
|
3081
|
+
this.appendBuffer(")"), this.newLine();
|
|
3082
|
+
break;
|
|
3083
|
+
case 25:
|
|
3084
|
+
case 44:
|
|
3085
|
+
this._expression = [];
|
|
3086
|
+
break;
|
|
3087
|
+
case 26:
|
|
3088
|
+
case 45:
|
|
3089
|
+
var M = e.result;
|
|
3090
|
+
M.code !== 11 && this._expression.push(M);
|
|
3091
|
+
break;
|
|
3092
|
+
case 46:
|
|
3093
|
+
this._expression.length > 1 ? (this.appendBuffer(" (offset "), this.printExpression(this._expression), this.appendBuffer(")")) : (this.appendBuffer(" "), this.printExpression(this._expression)), this._expression = [];
|
|
3094
|
+
break;
|
|
3095
|
+
case 27:
|
|
3096
|
+
this._expression.length > 1 && this._currentSectionId === 9 ? (this.appendBuffer(" (item "), this.printExpression(this._expression), this.appendBuffer(")")) : (this.appendBuffer(" "), this.printExpression(this._expression)), this._expression = [];
|
|
3097
|
+
break;
|
|
3098
|
+
case 13:
|
|
3099
|
+
this._funcTypes.push(e.result.typeIndex);
|
|
3100
|
+
break;
|
|
3101
|
+
case 28:
|
|
3102
|
+
var P = e.result, F = this._types[this._funcTypes[this._funcIndex - this._importCount]];
|
|
3103
|
+
if (this.appendBuffer(" (func "), this.appendBuffer(this._nameResolver.getFunctionName(this._funcIndex, !1, !1)), this._exportMetadata !== null) for (let e of this._exportMetadata.getFunctionExportNames(this._funcIndex)) this.appendBuffer(` (export ${JSON.stringify(e)})`);
|
|
3104
|
+
for (var I = 0; I < F.params.length; I++) {
|
|
3105
|
+
var L = this._nameResolver.getVariableName(this._funcIndex, I, !1);
|
|
3106
|
+
this.appendBuffer(` (param ${L} ${this.typeToString(F.params[I])})`);
|
|
3107
|
+
}
|
|
3108
|
+
for (var I = 0; I < F.returns.length; I++) this.appendBuffer(` (result ${this.typeToString(F.returns[I])})`);
|
|
3109
|
+
this.newLine();
|
|
3110
|
+
var R = F.params.length;
|
|
3111
|
+
if (P.locals.length > 0) {
|
|
3112
|
+
this.appendBuffer(" ");
|
|
3113
|
+
for (var z of P.locals) for (var I = 0; I < z.count; I++) {
|
|
3114
|
+
var L = this._nameResolver.getVariableName(this._funcIndex, R++, !1);
|
|
3115
|
+
this.appendBuffer(` (local ${L} ${this.typeToString(z.type)})`);
|
|
3116
|
+
}
|
|
3117
|
+
this.newLine();
|
|
3118
|
+
}
|
|
3119
|
+
this._indent = " ", this._indentLevel = 0, this._labelIndex = 0, this._backrefLabels = this._labelMode === V.Depth ? null : [], this._logFirstInstruction = !0;
|
|
3120
|
+
break;
|
|
3121
|
+
case 30:
|
|
3122
|
+
this._logFirstInstruction &&= (this.logStartOfFunctionBodyOffset(), !1);
|
|
3123
|
+
var M = e.result;
|
|
3124
|
+
if (M.code == 11 && this._indentLevel == 0) {
|
|
3125
|
+
this.appendBuffer(" )"), this.newLine();
|
|
3126
|
+
break;
|
|
3127
|
+
}
|
|
3128
|
+
switch (M.code) {
|
|
3129
|
+
case 11:
|
|
3130
|
+
case 5:
|
|
3131
|
+
case 7:
|
|
3132
|
+
case 25:
|
|
3133
|
+
case 10:
|
|
3134
|
+
case 24:
|
|
3135
|
+
this.decreaseIndent();
|
|
3136
|
+
break;
|
|
3137
|
+
}
|
|
3138
|
+
switch (this.appendBuffer(this._indent), this.printOperator(M), this.newLine(), M.code) {
|
|
3139
|
+
case 4:
|
|
3140
|
+
case 2:
|
|
3141
|
+
case 3:
|
|
3142
|
+
case 5:
|
|
3143
|
+
case 6:
|
|
3144
|
+
case 7:
|
|
3145
|
+
case 25:
|
|
3146
|
+
case 10:
|
|
3147
|
+
this.increaseIndent();
|
|
3148
|
+
break;
|
|
3149
|
+
}
|
|
3150
|
+
break;
|
|
3151
|
+
case 31:
|
|
3152
|
+
this._funcIndex++, this._backrefLabels = null, this.logEndOfFunctionBodyOffset();
|
|
3153
|
+
break;
|
|
3154
|
+
default: throw Error(`Expectected state: ${e.state}`);
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
}, U = "unknown", W = class extends R {
|
|
3159
|
+
constructor(e, t, n, r, i, a, o, s) {
|
|
3160
|
+
super(), this._functionNames = e, this._localNames = t, this._eventNames = n, this._typeNames = r, this._tableNames = i, this._memoryNames = a, this._globalNames = o, this._fieldNames = s;
|
|
3161
|
+
}
|
|
3162
|
+
getTypeName(e, t) {
|
|
3163
|
+
let n = this._typeNames[e];
|
|
3164
|
+
return n ? t ? `$${n}` : `$${n} (;${e};)` : super.getTypeName(e, t);
|
|
3165
|
+
}
|
|
3166
|
+
getTableName(e, t) {
|
|
3167
|
+
let n = this._tableNames[e];
|
|
3168
|
+
return n ? t ? `$${n}` : `$${n} (;${e};)` : super.getTableName(e, t);
|
|
3169
|
+
}
|
|
3170
|
+
getMemoryName(e, t) {
|
|
3171
|
+
let n = this._memoryNames[e];
|
|
3172
|
+
return n ? t ? `$${n}` : `$${n} (;${e};)` : super.getMemoryName(e, t);
|
|
3173
|
+
}
|
|
3174
|
+
getGlobalName(e, t) {
|
|
3175
|
+
let n = this._globalNames[e];
|
|
3176
|
+
return n ? t ? `$${n}` : `$${n} (;${e};)` : super.getGlobalName(e, t);
|
|
3177
|
+
}
|
|
3178
|
+
getEventName(e, t) {
|
|
3179
|
+
let n = this._eventNames[e];
|
|
3180
|
+
return n ? t ? `$${n}` : `$${n} (;${e};)` : super.getEventName(e, t);
|
|
3181
|
+
}
|
|
3182
|
+
getFunctionName(e, t, n) {
|
|
3183
|
+
let r = this._functionNames[e];
|
|
3184
|
+
return r ? n ? `$${r}` : `$${r} (;${e};)` : `$${U}${e}`;
|
|
3185
|
+
}
|
|
3186
|
+
getVariableName(e, t, n) {
|
|
3187
|
+
let r = this._localNames[e] && this._localNames[e][t];
|
|
3188
|
+
return r ? n ? `$${r}` : `$${r} (;${t};)` : super.getVariableName(e, t, n);
|
|
3189
|
+
}
|
|
3190
|
+
getFieldName(e, t, n) {
|
|
3191
|
+
let r = this._fieldNames[e] && this._fieldNames[e][t];
|
|
3192
|
+
return r ? n ? `$${r}` : `$${r} (;${t};)` : super.getFieldName(e, t, n);
|
|
3193
|
+
}
|
|
3194
|
+
}, G = class extends W {
|
|
3195
|
+
constructor(e, t, n, r, i, a, o, s) {
|
|
3196
|
+
super(e, t, n, r, i, a, o, s);
|
|
3197
|
+
}
|
|
3198
|
+
getFunctionName(e, t, n) {
|
|
3199
|
+
let r = this._functionNames[e];
|
|
3200
|
+
return r ? n ? `$${r}` : `$${r} (;${e};)` : t ? `$import${e}` : `$func${e}`;
|
|
3201
|
+
}
|
|
3202
|
+
}, K = class {
|
|
3203
|
+
constructor() {
|
|
3204
|
+
this._done = !1, this._functionImportsCount = 0, this._memoryImportsCount = 0, this._tableImportsCount = 0, this._globalImportsCount = 0, this._eventImportsCount = 0, this._functionNames = null, this._functionLocalNames = null, this._eventNames = null, this._memoryNames = null, this._typeNames = null, this._tableNames = null, this._globalNames = null, this._fieldNames = null, this._functionExportNames = null, this._globalExportNames = null, this._memoryExportNames = null, this._tableExportNames = null, this._eventExportNames = null;
|
|
3205
|
+
}
|
|
3206
|
+
_addExportName(e, t, n) {
|
|
3207
|
+
let r = e[t];
|
|
3208
|
+
r ? r.push(n) : e[t] = [n];
|
|
3209
|
+
}
|
|
3210
|
+
_setName(e, t, n, r) {
|
|
3211
|
+
if (n) if (r) {
|
|
3212
|
+
if (!L(n)) return;
|
|
3213
|
+
e[t] = n;
|
|
3214
|
+
} else e[t] || (e[t] = n.replace(D, "_"));
|
|
3215
|
+
}
|
|
3216
|
+
read(e) {
|
|
3217
|
+
if (this._done) throw Error("Invalid state: disassembly process was already finished.");
|
|
3218
|
+
for (;;) {
|
|
3219
|
+
if (!e.read()) return !1;
|
|
3220
|
+
switch (e.state) {
|
|
3221
|
+
case 2:
|
|
3222
|
+
if (!e.hasMoreBytes()) return this._done = !0, !0;
|
|
3223
|
+
break;
|
|
3224
|
+
case -1: throw e.error;
|
|
3225
|
+
case 1:
|
|
3226
|
+
this._functionImportsCount = 0, this._memoryImportsCount = 0, this._tableImportsCount = 0, this._globalImportsCount = 0, this._eventImportsCount = 0, this._functionNames = [], this._functionLocalNames = [], this._eventNames = [], this._memoryNames = [], this._typeNames = [], this._tableNames = [], this._globalNames = [], this._fieldNames = [], this._functionExportNames = [], this._globalExportNames = [], this._memoryExportNames = [], this._tableExportNames = [], this._eventExportNames = [];
|
|
3227
|
+
break;
|
|
3228
|
+
case 4: break;
|
|
3229
|
+
case 3:
|
|
3230
|
+
var t = e.result;
|
|
3231
|
+
if (t.id === 0 && w(t.name) === T) break;
|
|
3232
|
+
switch (t.id) {
|
|
3233
|
+
case 2:
|
|
3234
|
+
case 7: break;
|
|
3235
|
+
default:
|
|
3236
|
+
e.skipSection();
|
|
3237
|
+
break;
|
|
3238
|
+
}
|
|
3239
|
+
break;
|
|
3240
|
+
case 12:
|
|
3241
|
+
var n = e.result;
|
|
3242
|
+
let i = `${w(n.module)}.${w(n.field)}`;
|
|
3243
|
+
switch (n.kind) {
|
|
3244
|
+
case 0:
|
|
3245
|
+
this._setName(this._functionNames, this._functionImportsCount++, i, !1);
|
|
3246
|
+
break;
|
|
3247
|
+
case 1:
|
|
3248
|
+
this._setName(this._tableNames, this._tableImportsCount++, i, !1);
|
|
3249
|
+
break;
|
|
3250
|
+
case 2:
|
|
3251
|
+
this._setName(this._memoryNames, this._memoryImportsCount++, i, !1);
|
|
3252
|
+
break;
|
|
3253
|
+
case 3:
|
|
3254
|
+
this._setName(this._globalNames, this._globalImportsCount++, i, !1);
|
|
3255
|
+
break;
|
|
3256
|
+
case 4: this._setName(this._eventNames, this._eventImportsCount++, i, !1);
|
|
3257
|
+
default: throw Error(`Unsupported export ${n.kind}`);
|
|
3258
|
+
}
|
|
3259
|
+
break;
|
|
3260
|
+
case 19:
|
|
3261
|
+
let a = e.result;
|
|
3262
|
+
if (a.type === 1) {
|
|
3263
|
+
let { names: e } = a;
|
|
3264
|
+
e.forEach(({ index: e, name: t }) => {
|
|
3265
|
+
this._setName(this._functionNames, e, w(t), !0);
|
|
3266
|
+
});
|
|
3267
|
+
} else if (a.type === 2) {
|
|
3268
|
+
let { funcs: e } = a;
|
|
3269
|
+
e.forEach(({ index: e, locals: t }) => {
|
|
3270
|
+
let n = this._functionLocalNames[e] = [];
|
|
3271
|
+
t.forEach(({ index: e, name: t }) => {
|
|
3272
|
+
n[e] = w(t);
|
|
3273
|
+
});
|
|
3274
|
+
});
|
|
3275
|
+
} else if (a.type === 3) {
|
|
3276
|
+
let { names: e } = a;
|
|
3277
|
+
e.forEach(({ index: e, name: t }) => {
|
|
3278
|
+
this._setName(this._eventNames, e, w(t), !0);
|
|
3279
|
+
});
|
|
3280
|
+
} else if (a.type === 4) {
|
|
3281
|
+
let { names: e } = a;
|
|
3282
|
+
e.forEach(({ index: e, name: t }) => {
|
|
3283
|
+
this._setName(this._typeNames, e, w(t), !0);
|
|
3284
|
+
});
|
|
3285
|
+
} else if (a.type === 5) {
|
|
3286
|
+
let { names: e } = a;
|
|
3287
|
+
e.forEach(({ index: e, name: t }) => {
|
|
3288
|
+
this._setName(this._tableNames, e, w(t), !0);
|
|
3289
|
+
});
|
|
3290
|
+
} else if (a.type === 6) {
|
|
3291
|
+
let { names: e } = a;
|
|
3292
|
+
e.forEach(({ index: e, name: t }) => {
|
|
3293
|
+
this._setName(this._memoryNames, e, w(t), !0);
|
|
3294
|
+
});
|
|
3295
|
+
} else if (a.type === 7) {
|
|
3296
|
+
let { names: e } = a;
|
|
3297
|
+
e.forEach(({ index: e, name: t }) => {
|
|
3298
|
+
this._setName(this._globalNames, e, w(t), !0);
|
|
3299
|
+
});
|
|
3300
|
+
} else if (a.type === 10) {
|
|
3301
|
+
let { types: e } = a;
|
|
3302
|
+
e.forEach(({ index: e, fields: t }) => {
|
|
3303
|
+
let n = this._fieldNames[e] = [];
|
|
3304
|
+
t.forEach(({ index: e, name: t }) => {
|
|
3305
|
+
n[e] = w(t);
|
|
3306
|
+
});
|
|
3307
|
+
});
|
|
3308
|
+
}
|
|
3309
|
+
break;
|
|
3310
|
+
case 17:
|
|
3311
|
+
var r = e.result;
|
|
3312
|
+
let o = w(r.field);
|
|
3313
|
+
switch (r.kind) {
|
|
3314
|
+
case 0:
|
|
3315
|
+
this._addExportName(this._functionExportNames, r.index, o), this._setName(this._functionNames, r.index, o, !1);
|
|
3316
|
+
break;
|
|
3317
|
+
case 3:
|
|
3318
|
+
this._addExportName(this._globalExportNames, r.index, o), this._setName(this._globalNames, r.index, o, !1);
|
|
3319
|
+
break;
|
|
3320
|
+
case 2:
|
|
3321
|
+
this._addExportName(this._memoryExportNames, r.index, o), this._setName(this._memoryNames, r.index, o, !1);
|
|
3322
|
+
break;
|
|
3323
|
+
case 1:
|
|
3324
|
+
this._addExportName(this._tableExportNames, r.index, o), this._setName(this._tableNames, r.index, o, !1);
|
|
3325
|
+
break;
|
|
3326
|
+
case 4:
|
|
3327
|
+
this._addExportName(this._eventExportNames, r.index, o), this._setName(this._eventNames, r.index, o, !1);
|
|
3328
|
+
break;
|
|
3329
|
+
default: throw Error(`Unsupported export ${r.kind}`);
|
|
3330
|
+
}
|
|
3331
|
+
break;
|
|
3332
|
+
default: throw Error(`Expectected state: ${e.state}`);
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
getExportMetadata() {
|
|
3337
|
+
return new B(this._functionExportNames, this._globalExportNames, this._memoryExportNames, this._tableExportNames, this._eventExportNames);
|
|
3338
|
+
}
|
|
3339
|
+
getNameResolver() {
|
|
3340
|
+
return new G(this._functionNames, this._functionLocalNames, this._eventNames, this._typeNames, this._tableNames, this._memoryNames, this._globalNames, this._fieldNames);
|
|
3341
|
+
}
|
|
3342
|
+
};
|
|
3343
|
+
//#endregion
|
|
3344
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/entrypoints/wasmparser_worker/WasmParserWorker.ts
|
|
3345
|
+
function q(t, n) {
|
|
3346
|
+
try {
|
|
3347
|
+
let r = e(t.content), i = new C();
|
|
3348
|
+
i.setData(r.buffer, 0, r.byteLength);
|
|
3349
|
+
let a = new K();
|
|
3350
|
+
a.read(i);
|
|
3351
|
+
let o = new Uint8Array(r);
|
|
3352
|
+
i = new C();
|
|
3353
|
+
let s = new H();
|
|
3354
|
+
s.addOffsets = !0, s.exportMetadata = a.getExportMetadata(), s.nameResolver = a.getNameResolver();
|
|
3355
|
+
let c = [], l = [], u = [], d = 128 * 1024, f = new Uint8Array(d), p = 0, m = 0;
|
|
3356
|
+
for (let e = 0; e < o.length;) {
|
|
3357
|
+
d > o.length - e && (d = o.length - e);
|
|
3358
|
+
let t = p + d;
|
|
3359
|
+
if (f.byteLength < t) {
|
|
3360
|
+
let e = new Uint8Array(t);
|
|
3361
|
+
e.set(f), f = e;
|
|
3362
|
+
}
|
|
3363
|
+
for (; p < t;) f[p++] = o[e++];
|
|
3364
|
+
i.setData(f.buffer, 0, t, e === o.length);
|
|
3365
|
+
let r = s.disassembleChunk(i, m), a = s.getResult();
|
|
3366
|
+
for (let e of a.lines) c.push(e);
|
|
3367
|
+
for (let e of a.offsets) l.push(e);
|
|
3368
|
+
for (let e of a.functionBodyOffsets) u.push(e);
|
|
3369
|
+
if (r) break;
|
|
3370
|
+
if (i.position === 0) {
|
|
3371
|
+
p = t;
|
|
3372
|
+
continue;
|
|
3373
|
+
}
|
|
3374
|
+
let h = i.data.subarray(i.position, i.length);
|
|
3375
|
+
p = h.length, f.set(h), m += i.position, n({
|
|
3376
|
+
event: "progress",
|
|
3377
|
+
params: { percentage: Math.floor(m / o.length * 100) }
|
|
3378
|
+
});
|
|
3379
|
+
}
|
|
3380
|
+
n({
|
|
3381
|
+
event: "progress",
|
|
3382
|
+
params: { percentage: 100 }
|
|
3383
|
+
}), n({
|
|
3384
|
+
method: "disassemble",
|
|
3385
|
+
result: {
|
|
3386
|
+
lines: c,
|
|
3387
|
+
offsets: l,
|
|
3388
|
+
functionBodyOffsets: u
|
|
3389
|
+
}
|
|
3390
|
+
});
|
|
3391
|
+
} catch (e) {
|
|
3392
|
+
n({
|
|
3393
|
+
method: "disassemble",
|
|
3394
|
+
error: e
|
|
3395
|
+
});
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
self.onmessage = (e) => {
|
|
3399
|
+
e.data.method === "disassemble" && self.postMessage(q(e.data.params, (e) => {
|
|
3400
|
+
self.postMessage(e);
|
|
3401
|
+
}));
|
|
3402
|
+
}, self.postMessage("workerReady");
|
|
3403
|
+
//#endregion
|