groove-dev 0.26.17 → 0.26.19
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/node_modules/@groove-dev/daemon/src/api.js +61 -23
- package/node_modules/@groove-dev/daemon/src/index.js +19 -26
- package/node_modules/@groove-dev/daemon/src/process.js +17 -11
- package/node_modules/@groove-dev/daemon/src/teams.js +4 -0
- package/{packages/gui/dist/assets/index-GisjgmsR.js → node_modules/@groove-dev/gui/dist/assets/index-CBgUozrt.js} +135 -135
- package/node_modules/@groove-dev/gui/dist/assets/index-CHRPn_ls.css +1 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/app.css +18 -0
- package/node_modules/@groove-dev/gui/src/components/agents/agent-chat.jsx +4 -1
- package/node_modules/@groove-dev/gui/src/components/agents/agent-feed.jsx +18 -2
- package/node_modules/@groove-dev/gui/src/components/ui/thinking-indicator.jsx +63 -22
- package/node_modules/@groove-dev/gui/src/stores/groove.js +1 -0
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +7 -3
- package/package.json +1 -1
- package/packages/daemon/src/api.js +61 -23
- package/packages/daemon/src/index.js +19 -26
- package/packages/daemon/src/process.js +17 -11
- package/packages/daemon/src/teams.js +4 -0
- package/{node_modules/@groove-dev/gui/dist/assets/index-GisjgmsR.js → packages/gui/dist/assets/index-CBgUozrt.js} +135 -135
- package/packages/gui/dist/assets/index-CHRPn_ls.css +1 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/node_modules/.vite/deps/@codemirror_autocomplete.js +68 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_autocomplete.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_commands.js +1420 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_commands.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-css.js +17 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-css.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-html.js +22 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-html.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-javascript.js +34 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-javascript.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-json.js +101 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-json.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-markdown.js +2534 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-markdown.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-python.js +789 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-python.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_language.js +115 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_language.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_search.js +1136 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_search.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_state.js +63 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_state.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_theme-one-dark.js +179 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_theme-one-dark.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_view.js +104 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_view.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-dialog.js +1446 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-dialog.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-scroll-area.js +757 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-scroll-area.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tabs.js +502 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tabs.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tooltip.js +2825 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tooltip.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-fit.js +46 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-fit.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-web-links.js +121 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-web-links.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_xterm.js +9237 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_xterm.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xyflow_react.js +9934 -0
- package/packages/gui/node_modules/.vite/deps/@xyflow_react.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/_metadata.json +244 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3EE34IFC.js +5169 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3EE34IFC.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3IB5EUP7.js +2000 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3IB5EUP7.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3LBP22MX.js +1115 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3LBP22MX.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3Q7HT7ZF.js +701 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3Q7HT7ZF.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-44CLUOQE.js +1776 -0
- package/packages/gui/node_modules/.vite/deps/chunk-44CLUOQE.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-ACEP5X2F.js +292 -0
- package/packages/gui/node_modules/.vite/deps/chunk-ACEP5X2F.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-CDLO3JFW.js +1004 -0
- package/packages/gui/node_modules/.vite/deps/chunk-CDLO3JFW.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HPXOV7QR.js +23 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HPXOV7QR.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HVFOBSCQ.js +1062 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HVFOBSCQ.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-J6DMOQWP.js +105 -0
- package/packages/gui/node_modules/.vite/deps/chunk-J6DMOQWP.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-KXLIKZFX.js +434 -0
- package/packages/gui/node_modules/.vite/deps/chunk-KXLIKZFX.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-PR4QN5HX.js +42 -0
- package/packages/gui/node_modules/.vite/deps/chunk-PR4QN5HX.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-RE2FU7ZU.js +10985 -0
- package/packages/gui/node_modules/.vite/deps/chunk-RE2FU7ZU.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-WYSQD5ZG.js +264 -0
- package/packages/gui/node_modules/.vite/deps/chunk-WYSQD5ZG.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YAD7VOVN.js +280 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YAD7VOVN.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YYJMNVCJ.js +3459 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YYJMNVCJ.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/clsx.js +22 -0
- package/packages/gui/node_modules/.vite/deps/clsx.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/framer-motion.js +12732 -0
- package/packages/gui/node_modules/.vite/deps/framer-motion.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/lucide-react.js +29653 -0
- package/packages/gui/node_modules/.vite/deps/lucide-react.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/package.json +3 -0
- package/packages/gui/node_modules/.vite/deps/react-dom.js +6 -0
- package/packages/gui/node_modules/.vite/deps/react-dom.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react-dom_client.js +20217 -0
- package/packages/gui/node_modules/.vite/deps/react-dom_client.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react.js +5 -0
- package/packages/gui/node_modules/.vite/deps/react.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-dev-runtime.js +278 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-runtime.js +6 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/tailwind-merge.js +3263 -0
- package/packages/gui/node_modules/.vite/deps/tailwind-merge.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/zustand.js +56 -0
- package/packages/gui/node_modules/.vite/deps/zustand.js.map +7 -0
- package/packages/gui/src/app.css +18 -0
- package/packages/gui/src/components/agents/agent-chat.jsx +4 -1
- package/packages/gui/src/components/agents/agent-feed.jsx +18 -2
- package/packages/gui/src/components/ui/thinking-indicator.jsx +63 -22
- package/packages/gui/src/stores/groove.js +1 -0
- package/packages/gui/src/views/agents.jsx +7 -3
- package/GROOVE_AI_PITCH_DECK_OUTLINE.docx +0 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-DAy5FSuv.css +0 -1
- package/packages/gui/dist/assets/index-DAy5FSuv.css +0 -1
- package/pitch-deck-groove/convert-slides.js +0 -795
- package/pitch-deck-groove/deck.pptx +0 -0
- package/pitch-deck-groove/node_modules/.package-lock.json +0 -755
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/.github/workflows/codeql.yml +0 -74
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +0 -510
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/LICENSE +0 -27
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/README.md +0 -742
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +0 -4
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/contributing.md +0 -10
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/build.js +0 -51
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/clean.js +0 -31
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/configure.js +0 -52
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/info.js +0 -38
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/install.js +0 -235
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/main.js +0 -125
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -309
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/package.js +0 -73
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -34
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/publish.js +0 -81
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +0 -20
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +0 -19
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +0 -32
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +0 -79
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +0 -53
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +0 -41
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +0 -2602
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +0 -93
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -102
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -205
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -163
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -335
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/package.json +0 -62
- package/pitch-deck-groove/node_modules/@types/node/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/@types/node/README.md +0 -15
- package/pitch-deck-groove/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/pitch-deck-groove/node_modules/@types/node/assert.d.ts +0 -1005
- package/pitch-deck-groove/node_modules/@types/node/async_hooks.d.ts +0 -586
- package/pitch-deck-groove/node_modules/@types/node/buffer.buffer.d.ts +0 -457
- package/pitch-deck-groove/node_modules/@types/node/buffer.d.ts +0 -1901
- package/pitch-deck-groove/node_modules/@types/node/child_process.d.ts +0 -1453
- package/pitch-deck-groove/node_modules/@types/node/cluster.d.ts +0 -578
- package/pitch-deck-groove/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/pitch-deck-groove/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/pitch-deck-groove/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/pitch-deck-groove/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/pitch-deck-groove/node_modules/@types/node/console.d.ts +0 -452
- package/pitch-deck-groove/node_modules/@types/node/constants.d.ts +0 -21
- package/pitch-deck-groove/node_modules/@types/node/crypto.d.ts +0 -4504
- package/pitch-deck-groove/node_modules/@types/node/dgram.d.ts +0 -596
- package/pitch-deck-groove/node_modules/@types/node/diagnostics_channel.d.ts +0 -551
- package/pitch-deck-groove/node_modules/@types/node/dns/promises.d.ts +0 -477
- package/pitch-deck-groove/node_modules/@types/node/dns.d.ts +0 -860
- package/pitch-deck-groove/node_modules/@types/node/domain.d.ts +0 -170
- package/pitch-deck-groove/node_modules/@types/node/events.d.ts +0 -863
- package/pitch-deck-groove/node_modules/@types/node/fs/promises.d.ts +0 -1208
- package/pitch-deck-groove/node_modules/@types/node/fs.d.ts +0 -4332
- package/pitch-deck-groove/node_modules/@types/node/globals.d.ts +0 -170
- package/pitch-deck-groove/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/pitch-deck-groove/node_modules/@types/node/http.d.ts +0 -1919
- package/pitch-deck-groove/node_modules/@types/node/http2.d.ts +0 -2580
- package/pitch-deck-groove/node_modules/@types/node/https.d.ts +0 -549
- package/pitch-deck-groove/node_modules/@types/node/index.d.ts +0 -92
- package/pitch-deck-groove/node_modules/@types/node/inspector.generated.d.ts +0 -2775
- package/pitch-deck-groove/node_modules/@types/node/module.d.ts +0 -503
- package/pitch-deck-groove/node_modules/@types/node/net.d.ts +0 -924
- package/pitch-deck-groove/node_modules/@types/node/os.d.ts +0 -480
- package/pitch-deck-groove/node_modules/@types/node/package.json +0 -145
- package/pitch-deck-groove/node_modules/@types/node/path.d.ts +0 -191
- package/pitch-deck-groove/node_modules/@types/node/perf_hooks.d.ts +0 -860
- package/pitch-deck-groove/node_modules/@types/node/process.d.ts +0 -1632
- package/pitch-deck-groove/node_modules/@types/node/punycode.d.ts +0 -117
- package/pitch-deck-groove/node_modules/@types/node/querystring.d.ts +0 -140
- package/pitch-deck-groove/node_modules/@types/node/readline/promises.d.ts +0 -154
- package/pitch-deck-groove/node_modules/@types/node/readline.d.ts +0 -715
- package/pitch-deck-groove/node_modules/@types/node/repl.d.ts +0 -430
- package/pitch-deck-groove/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/pitch-deck-groove/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/pitch-deck-groove/node_modules/@types/node/stream/web.d.ts +0 -527
- package/pitch-deck-groove/node_modules/@types/node/stream.d.ts +0 -1680
- package/pitch-deck-groove/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/pitch-deck-groove/node_modules/@types/node/test.d.ts +0 -1208
- package/pitch-deck-groove/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/pitch-deck-groove/node_modules/@types/node/timers.d.ts +0 -286
- package/pitch-deck-groove/node_modules/@types/node/tls.d.ts +0 -1204
- package/pitch-deck-groove/node_modules/@types/node/trace_events.d.ts +0 -171
- package/pitch-deck-groove/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -455
- package/pitch-deck-groove/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/pitch-deck-groove/node_modules/@types/node/ts5.6/index.d.ts +0 -92
- package/pitch-deck-groove/node_modules/@types/node/tty.d.ts +0 -206
- package/pitch-deck-groove/node_modules/@types/node/url.d.ts +0 -957
- package/pitch-deck-groove/node_modules/@types/node/util.d.ts +0 -2083
- package/pitch-deck-groove/node_modules/@types/node/v8.d.ts +0 -753
- package/pitch-deck-groove/node_modules/@types/node/vm.d.ts +0 -704
- package/pitch-deck-groove/node_modules/@types/node/wasi.d.ts +0 -160
- package/pitch-deck-groove/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/pitch-deck-groove/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/pitch-deck-groove/node_modules/@types/node/web-globals/events.d.ts +0 -81
- package/pitch-deck-groove/node_modules/@types/node/web-globals/fetch.d.ts +0 -38
- package/pitch-deck-groove/node_modules/@types/node/worker_threads.d.ts +0 -698
- package/pitch-deck-groove/node_modules/@types/node/zlib.d.ts +0 -517
- package/pitch-deck-groove/node_modules/abbrev/LICENSE +0 -46
- package/pitch-deck-groove/node_modules/abbrev/README.md +0 -23
- package/pitch-deck-groove/node_modules/abbrev/abbrev.js +0 -61
- package/pitch-deck-groove/node_modules/abbrev/package.json +0 -21
- package/pitch-deck-groove/node_modules/agent-base/README.md +0 -145
- package/pitch-deck-groove/node_modules/agent-base/dist/src/index.d.ts +0 -78
- package/pitch-deck-groove/node_modules/agent-base/dist/src/index.js +0 -203
- package/pitch-deck-groove/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/pitch-deck-groove/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
- package/pitch-deck-groove/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/pitch-deck-groove/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/pitch-deck-groove/node_modules/agent-base/package.json +0 -64
- package/pitch-deck-groove/node_modules/agent-base/src/index.ts +0 -345
- package/pitch-deck-groove/node_modules/agent-base/src/promisify.ts +0 -33
- package/pitch-deck-groove/node_modules/ansi-regex/index.d.ts +0 -37
- package/pitch-deck-groove/node_modules/ansi-regex/index.js +0 -10
- package/pitch-deck-groove/node_modules/ansi-regex/license +0 -9
- package/pitch-deck-groove/node_modules/ansi-regex/package.json +0 -55
- package/pitch-deck-groove/node_modules/ansi-regex/readme.md +0 -78
- package/pitch-deck-groove/node_modules/aproba/LICENSE +0 -14
- package/pitch-deck-groove/node_modules/aproba/README.md +0 -94
- package/pitch-deck-groove/node_modules/aproba/index.js +0 -105
- package/pitch-deck-groove/node_modules/aproba/package.json +0 -35
- package/pitch-deck-groove/node_modules/are-we-there-yet/LICENSE.md +0 -18
- package/pitch-deck-groove/node_modules/are-we-there-yet/README.md +0 -208
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/pitch-deck-groove/node_modules/are-we-there-yet/package.json +0 -53
- package/pitch-deck-groove/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/pitch-deck-groove/node_modules/balanced-match/LICENSE.md +0 -21
- package/pitch-deck-groove/node_modules/balanced-match/README.md +0 -97
- package/pitch-deck-groove/node_modules/balanced-match/index.js +0 -62
- package/pitch-deck-groove/node_modules/balanced-match/package.json +0 -48
- package/pitch-deck-groove/node_modules/brace-expansion/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/brace-expansion/README.md +0 -129
- package/pitch-deck-groove/node_modules/brace-expansion/index.js +0 -203
- package/pitch-deck-groove/node_modules/brace-expansion/package.json +0 -50
- package/pitch-deck-groove/node_modules/canvas/CHANGELOG.md +0 -1052
- package/pitch-deck-groove/node_modules/canvas/Readme.md +0 -600
- package/pitch-deck-groove/node_modules/canvas/binding.gyp +0 -230
- package/pitch-deck-groove/node_modules/canvas/browser.js +0 -35
- package/pitch-deck-groove/node_modules/canvas/build/Makefile +0 -352
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/canvas-postbuild.node.d +0 -1
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/canvas.node.d +0 -1
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Backends.o.d +0 -490
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Canvas.o.d +0 -503
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d +0 -474
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d +0 -485
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d +0 -496
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Image.o.d +0 -484
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/ImageData.o.d +0 -152
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d +0 -162
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d +0 -164
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d +0 -488
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d +0 -488
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d +0 -5
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/closure.o.d +0 -483
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/color.o.d +0 -4
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/init.o.d +0 -520
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/register_font.o.d +0 -357
- package/pitch-deck-groove/node_modules/canvas/build/Release/canvas-postbuild.node +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/canvas.node +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/Backends.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/Canvas.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasGradient.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasPattern.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasRenderingContext2d.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/Image.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/ImageData.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/Backend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/ImageBackend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/PdfBackend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/SvgBackend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/bmp/BMPParser.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/closure.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/color.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/init.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/register_font.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/binding.Makefile +0 -6
- package/pitch-deck-groove/node_modules/canvas/build/canvas-postbuild.target.mk +0 -51
- package/pitch-deck-groove/node_modules/canvas/build/canvas.target.mk +0 -272
- package/pitch-deck-groove/node_modules/canvas/build/gyp-mac-tool +0 -772
- package/pitch-deck-groove/node_modules/canvas/changes +0 -19
- package/pitch-deck-groove/node_modules/canvas/index.js +0 -94
- package/pitch-deck-groove/node_modules/canvas/lib/DOMMatrix.js +0 -620
- package/pitch-deck-groove/node_modules/canvas/lib/bindings.js +0 -13
- package/pitch-deck-groove/node_modules/canvas/lib/canvas.js +0 -113
- package/pitch-deck-groove/node_modules/canvas/lib/context2d.js +0 -14
- package/pitch-deck-groove/node_modules/canvas/lib/image.js +0 -96
- package/pitch-deck-groove/node_modules/canvas/lib/jpegstream.js +0 -41
- package/pitch-deck-groove/node_modules/canvas/lib/parse-font.js +0 -101
- package/pitch-deck-groove/node_modules/canvas/lib/pattern.js +0 -17
- package/pitch-deck-groove/node_modules/canvas/lib/pdfstream.js +0 -35
- package/pitch-deck-groove/node_modules/canvas/lib/pngstream.js +0 -42
- package/pitch-deck-groove/node_modules/canvas/package.json +0 -72
- package/pitch-deck-groove/node_modules/canvas/src/Backends.cc +0 -18
- package/pitch-deck-groove/node_modules/canvas/src/Backends.h +0 -10
- package/pitch-deck-groove/node_modules/canvas/src/Canvas.cc +0 -965
- package/pitch-deck-groove/node_modules/canvas/src/Canvas.h +0 -96
- package/pitch-deck-groove/node_modules/canvas/src/CanvasError.h +0 -23
- package/pitch-deck-groove/node_modules/canvas/src/CanvasGradient.cc +0 -123
- package/pitch-deck-groove/node_modules/canvas/src/CanvasGradient.h +0 -22
- package/pitch-deck-groove/node_modules/canvas/src/CanvasPattern.cc +0 -136
- package/pitch-deck-groove/node_modules/canvas/src/CanvasPattern.h +0 -37
- package/pitch-deck-groove/node_modules/canvas/src/CanvasRenderingContext2d.cc +0 -3360
- package/pitch-deck-groove/node_modules/canvas/src/CanvasRenderingContext2d.h +0 -225
- package/pitch-deck-groove/node_modules/canvas/src/Image.cc +0 -1434
- package/pitch-deck-groove/node_modules/canvas/src/Image.h +0 -127
- package/pitch-deck-groove/node_modules/canvas/src/ImageData.cc +0 -146
- package/pitch-deck-groove/node_modules/canvas/src/ImageData.h +0 -27
- package/pitch-deck-groove/node_modules/canvas/src/InstanceData.h +0 -8
- package/pitch-deck-groove/node_modules/canvas/src/JPEGStream.h +0 -167
- package/pitch-deck-groove/node_modules/canvas/src/PNG.h +0 -292
- package/pitch-deck-groove/node_modules/canvas/src/Point.h +0 -11
- package/pitch-deck-groove/node_modules/canvas/src/Util.h +0 -9
- package/pitch-deck-groove/node_modules/canvas/src/backend/Backend.cc +0 -112
- package/pitch-deck-groove/node_modules/canvas/src/backend/Backend.h +0 -69
- package/pitch-deck-groove/node_modules/canvas/src/backend/ImageBackend.cc +0 -74
- package/pitch-deck-groove/node_modules/canvas/src/backend/ImageBackend.h +0 -26
- package/pitch-deck-groove/node_modules/canvas/src/backend/PdfBackend.cc +0 -53
- package/pitch-deck-groove/node_modules/canvas/src/backend/PdfBackend.h +0 -24
- package/pitch-deck-groove/node_modules/canvas/src/backend/SvgBackend.cc +0 -61
- package/pitch-deck-groove/node_modules/canvas/src/backend/SvgBackend.h +0 -24
- package/pitch-deck-groove/node_modules/canvas/src/bmp/BMPParser.cc +0 -457
- package/pitch-deck-groove/node_modules/canvas/src/bmp/BMPParser.h +0 -60
- package/pitch-deck-groove/node_modules/canvas/src/bmp/LICENSE.md +0 -24
- package/pitch-deck-groove/node_modules/canvas/src/closure.cc +0 -26
- package/pitch-deck-groove/node_modules/canvas/src/closure.h +0 -81
- package/pitch-deck-groove/node_modules/canvas/src/color.cc +0 -779
- package/pitch-deck-groove/node_modules/canvas/src/color.h +0 -30
- package/pitch-deck-groove/node_modules/canvas/src/dll_visibility.h +0 -20
- package/pitch-deck-groove/node_modules/canvas/src/init.cc +0 -94
- package/pitch-deck-groove/node_modules/canvas/src/register_font.cc +0 -408
- package/pitch-deck-groove/node_modules/canvas/src/register_font.h +0 -7
- package/pitch-deck-groove/node_modules/canvas/types/Readme.md +0 -3
- package/pitch-deck-groove/node_modules/canvas/types/index.d.ts +0 -484
- package/pitch-deck-groove/node_modules/canvas/util/has_lib.js +0 -119
- package/pitch-deck-groove/node_modules/canvas/util/win_jpeg_lookup.js +0 -21
- package/pitch-deck-groove/node_modules/chownr/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/chownr/README.md +0 -3
- package/pitch-deck-groove/node_modules/chownr/chownr.js +0 -167
- package/pitch-deck-groove/node_modules/chownr/package.json +0 -32
- package/pitch-deck-groove/node_modules/color-support/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/color-support/README.md +0 -129
- package/pitch-deck-groove/node_modules/color-support/bin.js +0 -3
- package/pitch-deck-groove/node_modules/color-support/browser.js +0 -14
- package/pitch-deck-groove/node_modules/color-support/index.js +0 -134
- package/pitch-deck-groove/node_modules/color-support/package.json +0 -36
- package/pitch-deck-groove/node_modules/concat-map/.travis.yml +0 -4
- package/pitch-deck-groove/node_modules/concat-map/LICENSE +0 -18
- package/pitch-deck-groove/node_modules/concat-map/README.markdown +0 -62
- package/pitch-deck-groove/node_modules/concat-map/example/map.js +0 -6
- package/pitch-deck-groove/node_modules/concat-map/index.js +0 -13
- package/pitch-deck-groove/node_modules/concat-map/package.json +0 -43
- package/pitch-deck-groove/node_modules/concat-map/test/map.js +0 -39
- package/pitch-deck-groove/node_modules/console-control-strings/LICENSE +0 -13
- package/pitch-deck-groove/node_modules/console-control-strings/README.md +0 -145
- package/pitch-deck-groove/node_modules/console-control-strings/README.md~ +0 -140
- package/pitch-deck-groove/node_modules/console-control-strings/index.js +0 -125
- package/pitch-deck-groove/node_modules/console-control-strings/package.json +0 -27
- package/pitch-deck-groove/node_modules/core-util-is/LICENSE +0 -19
- package/pitch-deck-groove/node_modules/core-util-is/README.md +0 -3
- package/pitch-deck-groove/node_modules/core-util-is/lib/util.js +0 -107
- package/pitch-deck-groove/node_modules/core-util-is/package.json +0 -38
- package/pitch-deck-groove/node_modules/debug/LICENSE +0 -20
- package/pitch-deck-groove/node_modules/debug/README.md +0 -481
- package/pitch-deck-groove/node_modules/debug/package.json +0 -64
- package/pitch-deck-groove/node_modules/debug/src/browser.js +0 -272
- package/pitch-deck-groove/node_modules/debug/src/common.js +0 -292
- package/pitch-deck-groove/node_modules/debug/src/index.js +0 -10
- package/pitch-deck-groove/node_modules/debug/src/node.js +0 -263
- package/pitch-deck-groove/node_modules/decompress-response/index.d.ts +0 -29
- package/pitch-deck-groove/node_modules/decompress-response/index.js +0 -40
- package/pitch-deck-groove/node_modules/decompress-response/license +0 -9
- package/pitch-deck-groove/node_modules/decompress-response/package.json +0 -50
- package/pitch-deck-groove/node_modules/decompress-response/readme.md +0 -52
- package/pitch-deck-groove/node_modules/delegates/History.md +0 -22
- package/pitch-deck-groove/node_modules/delegates/License +0 -20
- package/pitch-deck-groove/node_modules/delegates/Makefile +0 -8
- package/pitch-deck-groove/node_modules/delegates/Readme.md +0 -94
- package/pitch-deck-groove/node_modules/delegates/index.js +0 -121
- package/pitch-deck-groove/node_modules/delegates/package.json +0 -13
- package/pitch-deck-groove/node_modules/delegates/test/index.js +0 -94
- package/pitch-deck-groove/node_modules/detect-libc/LICENSE +0 -201
- package/pitch-deck-groove/node_modules/detect-libc/README.md +0 -163
- package/pitch-deck-groove/node_modules/detect-libc/index.d.ts +0 -14
- package/pitch-deck-groove/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/pitch-deck-groove/node_modules/detect-libc/lib/elf.js +0 -39
- package/pitch-deck-groove/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/pitch-deck-groove/node_modules/detect-libc/lib/process.js +0 -24
- package/pitch-deck-groove/node_modules/detect-libc/package.json +0 -44
- package/pitch-deck-groove/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/pitch-deck-groove/node_modules/emoji-regex/README.md +0 -73
- package/pitch-deck-groove/node_modules/emoji-regex/es2015/index.js +0 -6
- package/pitch-deck-groove/node_modules/emoji-regex/es2015/text.js +0 -6
- package/pitch-deck-groove/node_modules/emoji-regex/index.d.ts +0 -23
- package/pitch-deck-groove/node_modules/emoji-regex/index.js +0 -6
- package/pitch-deck-groove/node_modules/emoji-regex/package.json +0 -50
- package/pitch-deck-groove/node_modules/emoji-regex/text.js +0 -6
- package/pitch-deck-groove/node_modules/fs-minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/fs-minipass/README.md +0 -70
- package/pitch-deck-groove/node_modules/fs-minipass/index.js +0 -422
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/README.md +0 -728
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/index.d.ts +0 -155
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/index.js +0 -649
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/package.json +0 -56
- package/pitch-deck-groove/node_modules/fs-minipass/package.json +0 -39
- package/pitch-deck-groove/node_modules/fs.realpath/LICENSE +0 -43
- package/pitch-deck-groove/node_modules/fs.realpath/README.md +0 -33
- package/pitch-deck-groove/node_modules/fs.realpath/index.js +0 -66
- package/pitch-deck-groove/node_modules/fs.realpath/old.js +0 -303
- package/pitch-deck-groove/node_modules/fs.realpath/package.json +0 -26
- package/pitch-deck-groove/node_modules/gauge/CHANGELOG.md +0 -163
- package/pitch-deck-groove/node_modules/gauge/LICENSE +0 -13
- package/pitch-deck-groove/node_modules/gauge/README.md +0 -402
- package/pitch-deck-groove/node_modules/gauge/base-theme.js +0 -14
- package/pitch-deck-groove/node_modules/gauge/error.js +0 -24
- package/pitch-deck-groove/node_modules/gauge/has-color.js +0 -4
- package/pitch-deck-groove/node_modules/gauge/index.js +0 -233
- package/pitch-deck-groove/node_modules/gauge/package.json +0 -66
- package/pitch-deck-groove/node_modules/gauge/plumbing.js +0 -48
- package/pitch-deck-groove/node_modules/gauge/process.js +0 -3
- package/pitch-deck-groove/node_modules/gauge/progress-bar.js +0 -35
- package/pitch-deck-groove/node_modules/gauge/render-template.js +0 -178
- package/pitch-deck-groove/node_modules/gauge/set-immediate.js +0 -7
- package/pitch-deck-groove/node_modules/gauge/set-interval.js +0 -3
- package/pitch-deck-groove/node_modules/gauge/spin.js +0 -5
- package/pitch-deck-groove/node_modules/gauge/template-item.js +0 -72
- package/pitch-deck-groove/node_modules/gauge/theme-set.js +0 -114
- package/pitch-deck-groove/node_modules/gauge/themes.js +0 -56
- package/pitch-deck-groove/node_modules/gauge/wide-truncate.js +0 -25
- package/pitch-deck-groove/node_modules/glob/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/glob/README.md +0 -378
- package/pitch-deck-groove/node_modules/glob/common.js +0 -238
- package/pitch-deck-groove/node_modules/glob/glob.js +0 -790
- package/pitch-deck-groove/node_modules/glob/package.json +0 -55
- package/pitch-deck-groove/node_modules/glob/sync.js +0 -486
- package/pitch-deck-groove/node_modules/has-unicode/LICENSE +0 -14
- package/pitch-deck-groove/node_modules/has-unicode/README.md +0 -43
- package/pitch-deck-groove/node_modules/has-unicode/index.js +0 -16
- package/pitch-deck-groove/node_modules/has-unicode/package.json +0 -30
- package/pitch-deck-groove/node_modules/https/package.json +0 -15
- package/pitch-deck-groove/node_modules/https-proxy-agent/README.md +0 -137
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/index.js +0 -14
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/pitch-deck-groove/node_modules/https-proxy-agent/package.json +0 -56
- package/pitch-deck-groove/node_modules/image-size/LICENSE +0 -9
- package/pitch-deck-groove/node_modules/image-size/Readme.md +0 -184
- package/pitch-deck-groove/node_modules/image-size/bin/image-size.js +0 -53
- package/pitch-deck-groove/node_modules/image-size/dist/detector.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/detector.js +0 -30
- package/pitch-deck-groove/node_modules/image-size/dist/index.d.ts +0 -10
- package/pitch-deck-groove/node_modules/image-size/dist/index.js +0 -129
- package/pitch-deck-groove/node_modules/image-size/dist/types/bmp.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/bmp.js +0 -11
- package/pitch-deck-groove/node_modules/image-size/dist/types/cur.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/cur.js +0 -17
- package/pitch-deck-groove/node_modules/image-size/dist/types/dds.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/dds.js +0 -11
- package/pitch-deck-groove/node_modules/image-size/dist/types/gif.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/gif.js +0 -12
- package/pitch-deck-groove/node_modules/image-size/dist/types/heif.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/heif.js +0 -40
- package/pitch-deck-groove/node_modules/image-size/dist/types/icns.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/icns.js +0 -101
- package/pitch-deck-groove/node_modules/image-size/dist/types/ico.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/ico.js +0 -68
- package/pitch-deck-groove/node_modules/image-size/dist/types/index.d.ts +0 -23
- package/pitch-deck-groove/node_modules/image-size/dist/types/index.js +0 -46
- package/pitch-deck-groove/node_modules/image-size/dist/types/interface.d.ts +0 -13
- package/pitch-deck-groove/node_modules/image-size/dist/types/interface.js +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/j2c.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/j2c.js +0 -12
- package/pitch-deck-groove/node_modules/image-size/dist/types/jp2.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jp2.js +0 -27
- package/pitch-deck-groove/node_modules/image-size/dist/types/jpg.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jpg.js +0 -123
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl-stream.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl-stream.js +0 -45
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl.js +0 -59
- package/pitch-deck-groove/node_modules/image-size/dist/types/ktx.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/ktx.js +0 -19
- package/pitch-deck-groove/node_modules/image-size/dist/types/png.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/png.js +0 -35
- package/pitch-deck-groove/node_modules/image-size/dist/types/pnm.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/pnm.js +0 -72
- package/pitch-deck-groove/node_modules/image-size/dist/types/psd.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/psd.js +0 -11
- package/pitch-deck-groove/node_modules/image-size/dist/types/svg.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/svg.js +0 -90
- package/pitch-deck-groove/node_modules/image-size/dist/types/tga.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/tga.js +0 -15
- package/pitch-deck-groove/node_modules/image-size/dist/types/tiff.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/tiff.js +0 -95
- package/pitch-deck-groove/node_modules/image-size/dist/types/utils.d.ts +0 -15
- package/pitch-deck-groove/node_modules/image-size/dist/types/utils.js +0 -75
- package/pitch-deck-groove/node_modules/image-size/dist/types/webp.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/webp.js +0 -60
- package/pitch-deck-groove/node_modules/image-size/dist/utils/bit-reader.d.ts +0 -10
- package/pitch-deck-groove/node_modules/image-size/dist/utils/bit-reader.js +0 -44
- package/pitch-deck-groove/node_modules/image-size/package.json +0 -81
- package/pitch-deck-groove/node_modules/immediate/LICENSE.txt +0 -20
- package/pitch-deck-groove/node_modules/immediate/README.md +0 -93
- package/pitch-deck-groove/node_modules/immediate/dist/immediate.js +0 -75
- package/pitch-deck-groove/node_modules/immediate/dist/immediate.min.js +0 -1
- package/pitch-deck-groove/node_modules/immediate/lib/browser.js +0 -69
- package/pitch-deck-groove/node_modules/immediate/lib/index.js +0 -73
- package/pitch-deck-groove/node_modules/immediate/package.json +0 -42
- package/pitch-deck-groove/node_modules/inflight/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/inflight/README.md +0 -37
- package/pitch-deck-groove/node_modules/inflight/inflight.js +0 -54
- package/pitch-deck-groove/node_modules/inflight/package.json +0 -29
- package/pitch-deck-groove/node_modules/inherits/LICENSE +0 -16
- package/pitch-deck-groove/node_modules/inherits/README.md +0 -42
- package/pitch-deck-groove/node_modules/inherits/inherits.js +0 -9
- package/pitch-deck-groove/node_modules/inherits/inherits_browser.js +0 -27
- package/pitch-deck-groove/node_modules/inherits/package.json +0 -29
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/license +0 -9
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/pitch-deck-groove/node_modules/isarray/.travis.yml +0 -4
- package/pitch-deck-groove/node_modules/isarray/Makefile +0 -6
- package/pitch-deck-groove/node_modules/isarray/README.md +0 -60
- package/pitch-deck-groove/node_modules/isarray/component.json +0 -19
- package/pitch-deck-groove/node_modules/isarray/index.js +0 -5
- package/pitch-deck-groove/node_modules/isarray/package.json +0 -45
- package/pitch-deck-groove/node_modules/isarray/test.js +0 -20
- package/pitch-deck-groove/node_modules/jszip/.codeclimate.yml +0 -16
- package/pitch-deck-groove/node_modules/jszip/.editorconfig +0 -8
- package/pitch-deck-groove/node_modules/jszip/.eslintrc.js +0 -43
- package/pitch-deck-groove/node_modules/jszip/.github/workflows/pr.yaml +0 -58
- package/pitch-deck-groove/node_modules/jszip/.jekyll-metadata +0 -0
- package/pitch-deck-groove/node_modules/jszip/.travis.yml +0 -17
- package/pitch-deck-groove/node_modules/jszip/CHANGES.md +0 -204
- package/pitch-deck-groove/node_modules/jszip/LICENSE.markdown +0 -651
- package/pitch-deck-groove/node_modules/jszip/README.markdown +0 -33
- package/pitch-deck-groove/node_modules/jszip/deps.js +0 -37
- package/pitch-deck-groove/node_modules/jszip/dist/jszip.js +0 -11577
- package/pitch-deck-groove/node_modules/jszip/dist/jszip.min.js +0 -13
- package/pitch-deck-groove/node_modules/jszip/graph.svg +0 -601
- package/pitch-deck-groove/node_modules/jszip/index.d.ts +0 -330
- package/pitch-deck-groove/node_modules/jszip/lib/base64.js +0 -106
- package/pitch-deck-groove/node_modules/jszip/lib/compressedObject.js +0 -74
- package/pitch-deck-groove/node_modules/jszip/lib/compressions.js +0 -14
- package/pitch-deck-groove/node_modules/jszip/lib/crc32.js +0 -77
- package/pitch-deck-groove/node_modules/jszip/lib/defaults.js +0 -11
- package/pitch-deck-groove/node_modules/jszip/lib/external.js +0 -18
- package/pitch-deck-groove/node_modules/jszip/lib/flate.js +0 -85
- package/pitch-deck-groove/node_modules/jszip/lib/generate/ZipFileWorker.js +0 -539
- package/pitch-deck-groove/node_modules/jszip/lib/generate/index.js +0 -57
- package/pitch-deck-groove/node_modules/jszip/lib/index.js +0 -55
- package/pitch-deck-groove/node_modules/jszip/lib/license_header.js +0 -11
- package/pitch-deck-groove/node_modules/jszip/lib/load.js +0 -88
- package/pitch-deck-groove/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/pitch-deck-groove/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -42
- package/pitch-deck-groove/node_modules/jszip/lib/nodejsUtils.js +0 -57
- package/pitch-deck-groove/node_modules/jszip/lib/object.js +0 -384
- package/pitch-deck-groove/node_modules/jszip/lib/readable-stream-browser.js +0 -10
- package/pitch-deck-groove/node_modules/jszip/lib/reader/ArrayReader.js +0 -57
- package/pitch-deck-groove/node_modules/jszip/lib/reader/DataReader.js +0 -116
- package/pitch-deck-groove/node_modules/jszip/lib/reader/NodeBufferReader.js +0 -19
- package/pitch-deck-groove/node_modules/jszip/lib/reader/StringReader.js +0 -38
- package/pitch-deck-groove/node_modules/jszip/lib/reader/Uint8ArrayReader.js +0 -22
- package/pitch-deck-groove/node_modules/jszip/lib/reader/readerFor.js +0 -28
- package/pitch-deck-groove/node_modules/jszip/lib/signature.js +0 -7
- package/pitch-deck-groove/node_modules/jszip/lib/stream/ConvertWorker.js +0 -26
- package/pitch-deck-groove/node_modules/jszip/lib/stream/Crc32Probe.js +0 -24
- package/pitch-deck-groove/node_modules/jszip/lib/stream/DataLengthProbe.js +0 -29
- package/pitch-deck-groove/node_modules/jszip/lib/stream/DataWorker.js +0 -116
- package/pitch-deck-groove/node_modules/jszip/lib/stream/GenericWorker.js +0 -263
- package/pitch-deck-groove/node_modules/jszip/lib/stream/StreamHelper.js +0 -214
- package/pitch-deck-groove/node_modules/jszip/lib/support.js +0 -38
- package/pitch-deck-groove/node_modules/jszip/lib/utf8.js +0 -275
- package/pitch-deck-groove/node_modules/jszip/lib/utils.js +0 -501
- package/pitch-deck-groove/node_modules/jszip/lib/zipEntries.js +0 -261
- package/pitch-deck-groove/node_modules/jszip/lib/zipEntry.js +0 -293
- package/pitch-deck-groove/node_modules/jszip/lib/zipObject.js +0 -133
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/.travis.yml +0 -34
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/LICENSE +0 -47
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/README.md +0 -58
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/duplex-browser.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/duplex.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/package.json +0 -52
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/passthrough.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/readable-browser.js +0 -7
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/readable.js +0 -19
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/transform.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/writable-browser.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/writable.js +0 -8
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/README.md +0 -584
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/index.d.ts +0 -187
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/index.js +0 -62
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/package.json +0 -37
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/.travis.yml +0 -50
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/LICENSE +0 -48
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/README.md +0 -47
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/package.json +0 -31
- package/pitch-deck-groove/node_modules/jszip/package.json +0 -67
- package/pitch-deck-groove/node_modules/jszip/sponsors.md +0 -21
- package/pitch-deck-groove/node_modules/jszip/tsconfig.json +0 -101
- package/pitch-deck-groove/node_modules/jszip/vendor/FileSaver.js +0 -247
- package/pitch-deck-groove/node_modules/lie/README.md +0 -62
- package/pitch-deck-groove/node_modules/lie/dist/lie.js +0 -350
- package/pitch-deck-groove/node_modules/lie/dist/lie.min.js +0 -1
- package/pitch-deck-groove/node_modules/lie/dist/lie.polyfill.js +0 -358
- package/pitch-deck-groove/node_modules/lie/dist/lie.polyfill.min.js +0 -1
- package/pitch-deck-groove/node_modules/lie/lib/browser.js +0 -273
- package/pitch-deck-groove/node_modules/lie/lib/index.js +0 -298
- package/pitch-deck-groove/node_modules/lie/license.md +0 -7
- package/pitch-deck-groove/node_modules/lie/lie.d.ts +0 -244
- package/pitch-deck-groove/node_modules/lie/package.json +0 -69
- package/pitch-deck-groove/node_modules/lie/polyfill.js +0 -4
- package/pitch-deck-groove/node_modules/make-dir/index.d.ts +0 -66
- package/pitch-deck-groove/node_modules/make-dir/index.js +0 -156
- package/pitch-deck-groove/node_modules/make-dir/license +0 -9
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/README.md +0 -443
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/bin/semver.js +0 -174
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/package.json +0 -38
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/range.bnf +0 -16
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/semver.js +0 -1643
- package/pitch-deck-groove/node_modules/make-dir/package.json +0 -59
- package/pitch-deck-groove/node_modules/make-dir/readme.md +0 -125
- package/pitch-deck-groove/node_modules/mimic-response/index.d.ts +0 -17
- package/pitch-deck-groove/node_modules/mimic-response/index.js +0 -38
- package/pitch-deck-groove/node_modules/mimic-response/license +0 -9
- package/pitch-deck-groove/node_modules/mimic-response/package.json +0 -42
- package/pitch-deck-groove/node_modules/mimic-response/readme.md +0 -57
- package/pitch-deck-groove/node_modules/minimatch/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/minimatch/README.md +0 -267
- package/pitch-deck-groove/node_modules/minimatch/minimatch.js +0 -1005
- package/pitch-deck-groove/node_modules/minimatch/package.json +0 -33
- package/pitch-deck-groove/node_modules/minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/minipass/README.md +0 -769
- package/pitch-deck-groove/node_modules/minipass/index.d.ts +0 -152
- package/pitch-deck-groove/node_modules/minipass/index.js +0 -702
- package/pitch-deck-groove/node_modules/minipass/index.mjs +0 -702
- package/pitch-deck-groove/node_modules/minipass/package.json +0 -76
- package/pitch-deck-groove/node_modules/minizlib/LICENSE +0 -26
- package/pitch-deck-groove/node_modules/minizlib/README.md +0 -60
- package/pitch-deck-groove/node_modules/minizlib/constants.js +0 -115
- package/pitch-deck-groove/node_modules/minizlib/index.js +0 -348
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/README.md +0 -728
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/index.d.ts +0 -155
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/index.js +0 -649
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/package.json +0 -56
- package/pitch-deck-groove/node_modules/minizlib/package.json +0 -42
- package/pitch-deck-groove/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/pitch-deck-groove/node_modules/mkdirp/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/mkdirp/bin/cmd.js +0 -68
- package/pitch-deck-groove/node_modules/mkdirp/index.js +0 -31
- package/pitch-deck-groove/node_modules/mkdirp/lib/find-made.js +0 -29
- package/pitch-deck-groove/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/pitch-deck-groove/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/pitch-deck-groove/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/pitch-deck-groove/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/pitch-deck-groove/node_modules/mkdirp/lib/use-native.js +0 -10
- package/pitch-deck-groove/node_modules/mkdirp/package.json +0 -44
- package/pitch-deck-groove/node_modules/mkdirp/readme.markdown +0 -266
- package/pitch-deck-groove/node_modules/ms/index.js +0 -162
- package/pitch-deck-groove/node_modules/ms/license.md +0 -21
- package/pitch-deck-groove/node_modules/ms/package.json +0 -38
- package/pitch-deck-groove/node_modules/ms/readme.md +0 -59
- package/pitch-deck-groove/node_modules/nan/.github/workflows/ci.yml +0 -52
- package/pitch-deck-groove/node_modules/nan/.pre-commit-config.yaml +0 -8
- package/pitch-deck-groove/node_modules/nan/CHANGELOG.md +0 -599
- package/pitch-deck-groove/node_modules/nan/CMakeLists.txt +0 -138
- package/pitch-deck-groove/node_modules/nan/LICENSE.md +0 -9
- package/pitch-deck-groove/node_modules/nan/README.md +0 -456
- package/pitch-deck-groove/node_modules/nan/doc/asyncworker.md +0 -146
- package/pitch-deck-groove/node_modules/nan/doc/buffers.md +0 -54
- package/pitch-deck-groove/node_modules/nan/doc/callback.md +0 -76
- package/pitch-deck-groove/node_modules/nan/doc/converters.md +0 -41
- package/pitch-deck-groove/node_modules/nan/doc/errors.md +0 -226
- package/pitch-deck-groove/node_modules/nan/doc/json.md +0 -62
- package/pitch-deck-groove/node_modules/nan/doc/maybe_types.md +0 -583
- package/pitch-deck-groove/node_modules/nan/doc/methods.md +0 -689
- package/pitch-deck-groove/node_modules/nan/doc/new.md +0 -147
- package/pitch-deck-groove/node_modules/nan/doc/node_misc.md +0 -123
- package/pitch-deck-groove/node_modules/nan/doc/object_wrappers.md +0 -263
- package/pitch-deck-groove/node_modules/nan/doc/persistent.md +0 -296
- package/pitch-deck-groove/node_modules/nan/doc/scopes.md +0 -73
- package/pitch-deck-groove/node_modules/nan/doc/script.md +0 -58
- package/pitch-deck-groove/node_modules/nan/doc/string_bytes.md +0 -81
- package/pitch-deck-groove/node_modules/nan/doc/v8_internals.md +0 -199
- package/pitch-deck-groove/node_modules/nan/doc/v8_misc.md +0 -85
- package/pitch-deck-groove/node_modules/nan/include_dirs.js +0 -1
- package/pitch-deck-groove/node_modules/nan/nan.h +0 -3202
- package/pitch-deck-groove/node_modules/nan/nan_callbacks.h +0 -141
- package/pitch-deck-groove/node_modules/nan/nan_callbacks_12_inl.h +0 -690
- package/pitch-deck-groove/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -524
- package/pitch-deck-groove/node_modules/nan/nan_converters.h +0 -72
- package/pitch-deck-groove/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/pitch-deck-groove/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/pitch-deck-groove/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/pitch-deck-groove/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/pitch-deck-groove/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/pitch-deck-groove/node_modules/nan/nan_json.h +0 -166
- package/pitch-deck-groove/node_modules/nan/nan_maybe_43_inl.h +0 -360
- package/pitch-deck-groove/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/pitch-deck-groove/node_modules/nan/nan_new.h +0 -340
- package/pitch-deck-groove/node_modules/nan/nan_object_wrap.h +0 -156
- package/pitch-deck-groove/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/pitch-deck-groove/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/pitch-deck-groove/node_modules/nan/nan_private.h +0 -73
- package/pitch-deck-groove/node_modules/nan/nan_scriptorigin.h +0 -97
- package/pitch-deck-groove/node_modules/nan/nan_string_bytes.h +0 -305
- package/pitch-deck-groove/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/pitch-deck-groove/node_modules/nan/nan_weak.h +0 -453
- package/pitch-deck-groove/node_modules/nan/package.json +0 -38
- package/pitch-deck-groove/node_modules/nan/tools/1to2.js +0 -412
- package/pitch-deck-groove/node_modules/nan/tools/README.md +0 -14
- package/pitch-deck-groove/node_modules/nan/tools/package.json +0 -19
- package/pitch-deck-groove/node_modules/node-fetch/LICENSE.md +0 -22
- package/pitch-deck-groove/node_modules/node-fetch/README.md +0 -634
- package/pitch-deck-groove/node_modules/node-fetch/browser.js +0 -25
- package/pitch-deck-groove/node_modules/node-fetch/lib/index.es.js +0 -1777
- package/pitch-deck-groove/node_modules/node-fetch/lib/index.js +0 -1787
- package/pitch-deck-groove/node_modules/node-fetch/lib/index.mjs +0 -1775
- package/pitch-deck-groove/node_modules/node-fetch/package.json +0 -89
- package/pitch-deck-groove/node_modules/nopt/CHANGELOG.md +0 -58
- package/pitch-deck-groove/node_modules/nopt/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/nopt/README.md +0 -213
- package/pitch-deck-groove/node_modules/nopt/bin/nopt.js +0 -54
- package/pitch-deck-groove/node_modules/nopt/lib/nopt.js +0 -441
- package/pitch-deck-groove/node_modules/nopt/package.json +0 -34
- package/pitch-deck-groove/node_modules/npmlog/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/npmlog/README.md +0 -216
- package/pitch-deck-groove/node_modules/npmlog/log.js +0 -403
- package/pitch-deck-groove/node_modules/npmlog/package.json +0 -33
- package/pitch-deck-groove/node_modules/object-assign/index.js +0 -90
- package/pitch-deck-groove/node_modules/object-assign/license +0 -21
- package/pitch-deck-groove/node_modules/object-assign/package.json +0 -42
- package/pitch-deck-groove/node_modules/object-assign/readme.md +0 -61
- package/pitch-deck-groove/node_modules/once/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/once/README.md +0 -79
- package/pitch-deck-groove/node_modules/once/once.js +0 -42
- package/pitch-deck-groove/node_modules/once/package.json +0 -33
- package/pitch-deck-groove/node_modules/pako/CHANGELOG.md +0 -164
- package/pitch-deck-groove/node_modules/pako/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/pako/README.md +0 -191
- package/pitch-deck-groove/node_modules/pako/dist/pako.js +0 -6818
- package/pitch-deck-groove/node_modules/pako/dist/pako.min.js +0 -1
- package/pitch-deck-groove/node_modules/pako/dist/pako_deflate.js +0 -3997
- package/pitch-deck-groove/node_modules/pako/dist/pako_deflate.min.js +0 -1
- package/pitch-deck-groove/node_modules/pako/dist/pako_inflate.js +0 -3300
- package/pitch-deck-groove/node_modules/pako/dist/pako_inflate.min.js +0 -1
- package/pitch-deck-groove/node_modules/pako/index.js +0 -14
- package/pitch-deck-groove/node_modules/pako/lib/deflate.js +0 -400
- package/pitch-deck-groove/node_modules/pako/lib/inflate.js +0 -423
- package/pitch-deck-groove/node_modules/pako/lib/utils/common.js +0 -105
- package/pitch-deck-groove/node_modules/pako/lib/utils/strings.js +0 -187
- package/pitch-deck-groove/node_modules/pako/lib/zlib/README +0 -59
- package/pitch-deck-groove/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/pitch-deck-groove/node_modules/pako/lib/zlib/constants.js +0 -68
- package/pitch-deck-groove/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/pitch-deck-groove/node_modules/pako/lib/zlib/deflate.js +0 -1874
- package/pitch-deck-groove/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/pitch-deck-groove/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/pitch-deck-groove/node_modules/pako/lib/zlib/inflate.js +0 -1556
- package/pitch-deck-groove/node_modules/pako/lib/zlib/inftrees.js +0 -343
- package/pitch-deck-groove/node_modules/pako/lib/zlib/messages.js +0 -32
- package/pitch-deck-groove/node_modules/pako/lib/zlib/trees.js +0 -1222
- package/pitch-deck-groove/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/pitch-deck-groove/node_modules/pako/package.json +0 -44
- package/pitch-deck-groove/node_modules/path-is-absolute/index.js +0 -20
- package/pitch-deck-groove/node_modules/path-is-absolute/license +0 -21
- package/pitch-deck-groove/node_modules/path-is-absolute/package.json +0 -43
- package/pitch-deck-groove/node_modules/path-is-absolute/readme.md +0 -59
- package/pitch-deck-groove/node_modules/pptxgenjs/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/pptxgenjs/README.md +0 -284
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.bundle.js +0 -3
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.bundle.js.map +0 -1
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.cjs.js +0 -7445
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.es.js +0 -7439
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.min.js +0 -3
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.min.js.map +0 -1
- package/pitch-deck-groove/node_modules/pptxgenjs/package.json +0 -89
- package/pitch-deck-groove/node_modules/pptxgenjs/types/index.d.ts +0 -2670
- package/pitch-deck-groove/node_modules/process-nextick-args/index.js +0 -45
- package/pitch-deck-groove/node_modules/process-nextick-args/license.md +0 -19
- package/pitch-deck-groove/node_modules/process-nextick-args/package.json +0 -25
- package/pitch-deck-groove/node_modules/process-nextick-args/readme.md +0 -18
- package/pitch-deck-groove/node_modules/queue/LICENSE +0 -8
- package/pitch-deck-groove/node_modules/queue/index.d.ts +0 -173
- package/pitch-deck-groove/node_modules/queue/index.js +0 -195
- package/pitch-deck-groove/node_modules/queue/package.json +0 -43
- package/pitch-deck-groove/node_modules/queue/readme.md +0 -221
- package/pitch-deck-groove/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/pitch-deck-groove/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/pitch-deck-groove/node_modules/readable-stream/LICENSE +0 -47
- package/pitch-deck-groove/node_modules/readable-stream/README.md +0 -106
- package/pitch-deck-groove/node_modules/readable-stream/errors-browser.js +0 -127
- package/pitch-deck-groove/node_modules/readable-stream/errors.js +0 -116
- package/pitch-deck-groove/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/pitch-deck-groove/node_modules/readable-stream/package.json +0 -68
- package/pitch-deck-groove/node_modules/readable-stream/readable-browser.js +0 -9
- package/pitch-deck-groove/node_modules/readable-stream/readable.js +0 -16
- package/pitch-deck-groove/node_modules/rimraf/CHANGELOG.md +0 -65
- package/pitch-deck-groove/node_modules/rimraf/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/rimraf/README.md +0 -101
- package/pitch-deck-groove/node_modules/rimraf/bin.js +0 -68
- package/pitch-deck-groove/node_modules/rimraf/package.json +0 -32
- package/pitch-deck-groove/node_modules/rimraf/rimraf.js +0 -360
- package/pitch-deck-groove/node_modules/safe-buffer/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/safe-buffer/README.md +0 -584
- package/pitch-deck-groove/node_modules/safe-buffer/index.d.ts +0 -187
- package/pitch-deck-groove/node_modules/safe-buffer/index.js +0 -65
- package/pitch-deck-groove/node_modules/safe-buffer/package.json +0 -51
- package/pitch-deck-groove/node_modules/semver/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/semver/README.md +0 -665
- package/pitch-deck-groove/node_modules/semver/bin/semver.js +0 -191
- package/pitch-deck-groove/node_modules/semver/classes/comparator.js +0 -143
- package/pitch-deck-groove/node_modules/semver/classes/index.js +0 -7
- package/pitch-deck-groove/node_modules/semver/classes/range.js +0 -557
- package/pitch-deck-groove/node_modules/semver/classes/semver.js +0 -333
- package/pitch-deck-groove/node_modules/semver/functions/clean.js +0 -8
- package/pitch-deck-groove/node_modules/semver/functions/cmp.js +0 -54
- package/pitch-deck-groove/node_modules/semver/functions/coerce.js +0 -62
- package/pitch-deck-groove/node_modules/semver/functions/compare-build.js +0 -9
- package/pitch-deck-groove/node_modules/semver/functions/compare-loose.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/compare.js +0 -7
- package/pitch-deck-groove/node_modules/semver/functions/diff.js +0 -60
- package/pitch-deck-groove/node_modules/semver/functions/eq.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/gt.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/gte.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/inc.js +0 -21
- package/pitch-deck-groove/node_modules/semver/functions/lt.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/lte.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/major.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/minor.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/neq.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/parse.js +0 -18
- package/pitch-deck-groove/node_modules/semver/functions/patch.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/prerelease.js +0 -8
- package/pitch-deck-groove/node_modules/semver/functions/rcompare.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/rsort.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/satisfies.js +0 -12
- package/pitch-deck-groove/node_modules/semver/functions/sort.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/valid.js +0 -8
- package/pitch-deck-groove/node_modules/semver/index.js +0 -91
- package/pitch-deck-groove/node_modules/semver/internal/constants.js +0 -37
- package/pitch-deck-groove/node_modules/semver/internal/debug.js +0 -11
- package/pitch-deck-groove/node_modules/semver/internal/identifiers.js +0 -29
- package/pitch-deck-groove/node_modules/semver/internal/lrucache.js +0 -42
- package/pitch-deck-groove/node_modules/semver/internal/parse-options.js +0 -17
- package/pitch-deck-groove/node_modules/semver/internal/re.js +0 -223
- package/pitch-deck-groove/node_modules/semver/package.json +0 -78
- package/pitch-deck-groove/node_modules/semver/preload.js +0 -4
- package/pitch-deck-groove/node_modules/semver/range.bnf +0 -16
- package/pitch-deck-groove/node_modules/semver/ranges/gtr.js +0 -6
- package/pitch-deck-groove/node_modules/semver/ranges/intersects.js +0 -9
- package/pitch-deck-groove/node_modules/semver/ranges/ltr.js +0 -6
- package/pitch-deck-groove/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/pitch-deck-groove/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/pitch-deck-groove/node_modules/semver/ranges/min-version.js +0 -63
- package/pitch-deck-groove/node_modules/semver/ranges/outside.js +0 -82
- package/pitch-deck-groove/node_modules/semver/ranges/simplify.js +0 -49
- package/pitch-deck-groove/node_modules/semver/ranges/subset.js +0 -249
- package/pitch-deck-groove/node_modules/semver/ranges/to-comparators.js +0 -10
- package/pitch-deck-groove/node_modules/semver/ranges/valid.js +0 -13
- package/pitch-deck-groove/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/pitch-deck-groove/node_modules/set-blocking/LICENSE.txt +0 -14
- package/pitch-deck-groove/node_modules/set-blocking/README.md +0 -31
- package/pitch-deck-groove/node_modules/set-blocking/index.js +0 -7
- package/pitch-deck-groove/node_modules/set-blocking/package.json +0 -42
- package/pitch-deck-groove/node_modules/setimmediate/LICENSE.txt +0 -20
- package/pitch-deck-groove/node_modules/setimmediate/package.json +0 -30
- package/pitch-deck-groove/node_modules/setimmediate/setImmediate.js +0 -186
- package/pitch-deck-groove/node_modules/signal-exit/LICENSE.txt +0 -16
- package/pitch-deck-groove/node_modules/signal-exit/README.md +0 -39
- package/pitch-deck-groove/node_modules/signal-exit/index.js +0 -202
- package/pitch-deck-groove/node_modules/signal-exit/package.json +0 -38
- package/pitch-deck-groove/node_modules/signal-exit/signals.js +0 -53
- package/pitch-deck-groove/node_modules/simple-concat/.travis.yml +0 -3
- package/pitch-deck-groove/node_modules/simple-concat/LICENSE +0 -20
- package/pitch-deck-groove/node_modules/simple-concat/README.md +0 -44
- package/pitch-deck-groove/node_modules/simple-concat/index.js +0 -15
- package/pitch-deck-groove/node_modules/simple-concat/package.json +0 -47
- package/pitch-deck-groove/node_modules/simple-concat/test/basic.js +0 -41
- package/pitch-deck-groove/node_modules/simple-get/LICENSE +0 -20
- package/pitch-deck-groove/node_modules/simple-get/README.md +0 -319
- package/pitch-deck-groove/node_modules/simple-get/index.js +0 -107
- package/pitch-deck-groove/node_modules/simple-get/package.json +0 -53
- package/pitch-deck-groove/node_modules/string-width/index.d.ts +0 -29
- package/pitch-deck-groove/node_modules/string-width/index.js +0 -47
- package/pitch-deck-groove/node_modules/string-width/license +0 -9
- package/pitch-deck-groove/node_modules/string-width/package.json +0 -56
- package/pitch-deck-groove/node_modules/string-width/readme.md +0 -50
- package/pitch-deck-groove/node_modules/string_decoder/LICENSE +0 -48
- package/pitch-deck-groove/node_modules/string_decoder/README.md +0 -47
- package/pitch-deck-groove/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/pitch-deck-groove/node_modules/string_decoder/package.json +0 -34
- package/pitch-deck-groove/node_modules/strip-ansi/index.d.ts +0 -17
- package/pitch-deck-groove/node_modules/strip-ansi/index.js +0 -4
- package/pitch-deck-groove/node_modules/strip-ansi/license +0 -9
- package/pitch-deck-groove/node_modules/strip-ansi/package.json +0 -54
- package/pitch-deck-groove/node_modules/strip-ansi/readme.md +0 -46
- package/pitch-deck-groove/node_modules/tar/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/tar/README.md +0 -1080
- package/pitch-deck-groove/node_modules/tar/index.js +0 -18
- package/pitch-deck-groove/node_modules/tar/lib/create.js +0 -111
- package/pitch-deck-groove/node_modules/tar/lib/extract.js +0 -113
- package/pitch-deck-groove/node_modules/tar/lib/get-write-flag.js +0 -20
- package/pitch-deck-groove/node_modules/tar/lib/header.js +0 -304
- package/pitch-deck-groove/node_modules/tar/lib/high-level-opt.js +0 -29
- package/pitch-deck-groove/node_modules/tar/lib/large-numbers.js +0 -104
- package/pitch-deck-groove/node_modules/tar/lib/list.js +0 -139
- package/pitch-deck-groove/node_modules/tar/lib/mkdir.js +0 -229
- package/pitch-deck-groove/node_modules/tar/lib/mode-fix.js +0 -27
- package/pitch-deck-groove/node_modules/tar/lib/normalize-unicode.js +0 -12
- package/pitch-deck-groove/node_modules/tar/lib/normalize-windows-path.js +0 -8
- package/pitch-deck-groove/node_modules/tar/lib/pack.js +0 -432
- package/pitch-deck-groove/node_modules/tar/lib/parse.js +0 -552
- package/pitch-deck-groove/node_modules/tar/lib/path-reservations.js +0 -156
- package/pitch-deck-groove/node_modules/tar/lib/pax.js +0 -150
- package/pitch-deck-groove/node_modules/tar/lib/read-entry.js +0 -107
- package/pitch-deck-groove/node_modules/tar/lib/replace.js +0 -246
- package/pitch-deck-groove/node_modules/tar/lib/strip-absolute-path.js +0 -24
- package/pitch-deck-groove/node_modules/tar/lib/strip-trailing-slashes.js +0 -13
- package/pitch-deck-groove/node_modules/tar/lib/types.js +0 -44
- package/pitch-deck-groove/node_modules/tar/lib/unpack.js +0 -923
- package/pitch-deck-groove/node_modules/tar/lib/update.js +0 -40
- package/pitch-deck-groove/node_modules/tar/lib/warn-mixin.js +0 -24
- package/pitch-deck-groove/node_modules/tar/lib/winchars.js +0 -23
- package/pitch-deck-groove/node_modules/tar/lib/write-entry.js +0 -546
- package/pitch-deck-groove/node_modules/tar/package.json +0 -70
- package/pitch-deck-groove/node_modules/tr46/index.js +0 -193
- package/pitch-deck-groove/node_modules/tr46/lib/.gitkeep +0 -0
- package/pitch-deck-groove/node_modules/tr46/lib/mappingTable.json +0 -1
- package/pitch-deck-groove/node_modules/tr46/package.json +0 -31
- package/pitch-deck-groove/node_modules/undici-types/README.md +0 -6
- package/pitch-deck-groove/node_modules/undici-types/agent.d.ts +0 -31
- package/pitch-deck-groove/node_modules/undici-types/api.d.ts +0 -43
- package/pitch-deck-groove/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/pitch-deck-groove/node_modules/undici-types/cache.d.ts +0 -36
- package/pitch-deck-groove/node_modules/undici-types/client.d.ts +0 -97
- package/pitch-deck-groove/node_modules/undici-types/connector.d.ts +0 -34
- package/pitch-deck-groove/node_modules/undici-types/content-type.d.ts +0 -21
- package/pitch-deck-groove/node_modules/undici-types/cookies.d.ts +0 -28
- package/pitch-deck-groove/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/pitch-deck-groove/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/pitch-deck-groove/node_modules/undici-types/errors.d.ts +0 -128
- package/pitch-deck-groove/node_modules/undici-types/fetch.d.ts +0 -209
- package/pitch-deck-groove/node_modules/undici-types/file.d.ts +0 -39
- package/pitch-deck-groove/node_modules/undici-types/filereader.d.ts +0 -54
- package/pitch-deck-groove/node_modules/undici-types/formdata.d.ts +0 -108
- package/pitch-deck-groove/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/pitch-deck-groove/node_modules/undici-types/global-origin.d.ts +0 -7
- package/pitch-deck-groove/node_modules/undici-types/handlers.d.ts +0 -9
- package/pitch-deck-groove/node_modules/undici-types/header.d.ts +0 -4
- package/pitch-deck-groove/node_modules/undici-types/index.d.ts +0 -63
- package/pitch-deck-groove/node_modules/undici-types/interceptors.d.ts +0 -5
- package/pitch-deck-groove/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/pitch-deck-groove/node_modules/undici-types/mock-client.d.ts +0 -25
- package/pitch-deck-groove/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/pitch-deck-groove/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/pitch-deck-groove/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/pitch-deck-groove/node_modules/undici-types/package.json +0 -55
- package/pitch-deck-groove/node_modules/undici-types/patch.d.ts +0 -71
- package/pitch-deck-groove/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/pitch-deck-groove/node_modules/undici-types/pool.d.ts +0 -28
- package/pitch-deck-groove/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/pitch-deck-groove/node_modules/undici-types/readable.d.ts +0 -61
- package/pitch-deck-groove/node_modules/undici-types/webidl.d.ts +0 -220
- package/pitch-deck-groove/node_modules/undici-types/websocket.d.ts +0 -131
- package/pitch-deck-groove/node_modules/util-deprecate/History.md +0 -16
- package/pitch-deck-groove/node_modules/util-deprecate/LICENSE +0 -24
- package/pitch-deck-groove/node_modules/util-deprecate/README.md +0 -53
- package/pitch-deck-groove/node_modules/util-deprecate/browser.js +0 -67
- package/pitch-deck-groove/node_modules/util-deprecate/node.js +0 -6
- package/pitch-deck-groove/node_modules/util-deprecate/package.json +0 -27
- package/pitch-deck-groove/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/pitch-deck-groove/node_modules/webidl-conversions/README.md +0 -53
- package/pitch-deck-groove/node_modules/webidl-conversions/lib/index.js +0 -189
- package/pitch-deck-groove/node_modules/webidl-conversions/package.json +0 -23
- package/pitch-deck-groove/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/pitch-deck-groove/node_modules/whatwg-url/README.md +0 -67
- package/pitch-deck-groove/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/pitch-deck-groove/node_modules/whatwg-url/lib/URL.js +0 -196
- package/pitch-deck-groove/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/pitch-deck-groove/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/pitch-deck-groove/node_modules/whatwg-url/lib/utils.js +0 -20
- package/pitch-deck-groove/node_modules/whatwg-url/package.json +0 -32
- package/pitch-deck-groove/node_modules/wide-align/LICENSE +0 -14
- package/pitch-deck-groove/node_modules/wide-align/README.md +0 -47
- package/pitch-deck-groove/node_modules/wide-align/align.js +0 -65
- package/pitch-deck-groove/node_modules/wide-align/package.json +0 -33
- package/pitch-deck-groove/node_modules/wrappy/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/wrappy/README.md +0 -36
- package/pitch-deck-groove/node_modules/wrappy/package.json +0 -29
- package/pitch-deck-groove/node_modules/wrappy/wrappy.js +0 -33
- package/pitch-deck-groove/node_modules/yallist/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/yallist/README.md +0 -204
- package/pitch-deck-groove/node_modules/yallist/iterator.js +0 -8
- package/pitch-deck-groove/node_modules/yallist/package.json +0 -29
- package/pitch-deck-groove/node_modules/yallist/yallist.js +0 -426
- package/pitch-deck-groove/package-lock.json +0 -763
- package/pitch-deck-groove/package.json +0 -13
- package/pitch-deck-groove/slides.json +0 -239
|
@@ -0,0 +1,1776 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DefaultBufferLength,
|
|
3
|
+
IterMode,
|
|
4
|
+
NodeProp,
|
|
5
|
+
NodeSet,
|
|
6
|
+
NodeType,
|
|
7
|
+
Parser,
|
|
8
|
+
Tree
|
|
9
|
+
} from "./chunk-3EE34IFC.js";
|
|
10
|
+
|
|
11
|
+
// ../../node_modules/@lezer/lr/dist/index.js
|
|
12
|
+
var Stack = class _Stack {
|
|
13
|
+
/**
|
|
14
|
+
@internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(p, stack, state, reducePos, pos, score, buffer, bufferBase, curContext, lookAhead = 0, parent) {
|
|
17
|
+
this.p = p;
|
|
18
|
+
this.stack = stack;
|
|
19
|
+
this.state = state;
|
|
20
|
+
this.reducePos = reducePos;
|
|
21
|
+
this.pos = pos;
|
|
22
|
+
this.score = score;
|
|
23
|
+
this.buffer = buffer;
|
|
24
|
+
this.bufferBase = bufferBase;
|
|
25
|
+
this.curContext = curContext;
|
|
26
|
+
this.lookAhead = lookAhead;
|
|
27
|
+
this.parent = parent;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
@internal
|
|
31
|
+
*/
|
|
32
|
+
toString() {
|
|
33
|
+
return `[${this.stack.filter((_, i) => i % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
|
|
34
|
+
}
|
|
35
|
+
// Start an empty stack
|
|
36
|
+
/**
|
|
37
|
+
@internal
|
|
38
|
+
*/
|
|
39
|
+
static start(p, state, pos = 0) {
|
|
40
|
+
let cx = p.parser.context;
|
|
41
|
+
return new _Stack(p, [], state, pos, pos, 0, [], 0, cx ? new StackContext(cx, cx.start) : null, 0, null);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
The stack's current [context](#lr.ContextTracker) value, if
|
|
45
|
+
any. Its type will depend on the context tracker's type
|
|
46
|
+
parameter, or it will be `null` if there is no context
|
|
47
|
+
tracker.
|
|
48
|
+
*/
|
|
49
|
+
get context() {
|
|
50
|
+
return this.curContext ? this.curContext.context : null;
|
|
51
|
+
}
|
|
52
|
+
// Push a state onto the stack, tracking its start position as well
|
|
53
|
+
// as the buffer base at that point.
|
|
54
|
+
/**
|
|
55
|
+
@internal
|
|
56
|
+
*/
|
|
57
|
+
pushState(state, start) {
|
|
58
|
+
this.stack.push(this.state, start, this.bufferBase + this.buffer.length);
|
|
59
|
+
this.state = state;
|
|
60
|
+
}
|
|
61
|
+
// Apply a reduce action
|
|
62
|
+
/**
|
|
63
|
+
@internal
|
|
64
|
+
*/
|
|
65
|
+
reduce(action) {
|
|
66
|
+
var _a;
|
|
67
|
+
let depth = action >> 19, type = action & 65535;
|
|
68
|
+
let { parser } = this.p;
|
|
69
|
+
let lookaheadRecord = this.reducePos < this.pos - 25 && this.setLookAhead(this.pos);
|
|
70
|
+
let dPrec = parser.dynamicPrecedence(type);
|
|
71
|
+
if (dPrec)
|
|
72
|
+
this.score += dPrec;
|
|
73
|
+
if (depth == 0) {
|
|
74
|
+
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
75
|
+
if (type < parser.minRepeatTerm)
|
|
76
|
+
this.storeNode(type, this.reducePos, this.reducePos, lookaheadRecord ? 8 : 4, true);
|
|
77
|
+
this.reduceContext(type, this.reducePos);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let base = this.stack.length - (depth - 1) * 3 - (action & 262144 ? 6 : 0);
|
|
81
|
+
let start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
|
|
82
|
+
if (size >= 2e3 && !((_a = this.p.parser.nodeSet.types[type]) === null || _a === void 0 ? void 0 : _a.isAnonymous)) {
|
|
83
|
+
if (start == this.p.lastBigReductionStart) {
|
|
84
|
+
this.p.bigReductionCount++;
|
|
85
|
+
this.p.lastBigReductionSize = size;
|
|
86
|
+
} else if (this.p.lastBigReductionSize < size) {
|
|
87
|
+
this.p.bigReductionCount = 1;
|
|
88
|
+
this.p.lastBigReductionStart = start;
|
|
89
|
+
this.p.lastBigReductionSize = size;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let bufferBase = base ? this.stack[base - 1] : 0, count = this.bufferBase + this.buffer.length - bufferBase;
|
|
93
|
+
if (type < parser.minRepeatTerm || action & 131072) {
|
|
94
|
+
let pos = parser.stateFlag(
|
|
95
|
+
this.state,
|
|
96
|
+
1
|
|
97
|
+
/* StateFlag.Skipped */
|
|
98
|
+
) ? this.pos : this.reducePos;
|
|
99
|
+
this.storeNode(type, start, pos, count + 4, true);
|
|
100
|
+
}
|
|
101
|
+
if (action & 262144) {
|
|
102
|
+
this.state = this.stack[base];
|
|
103
|
+
} else {
|
|
104
|
+
let baseStateID = this.stack[base - 3];
|
|
105
|
+
this.state = parser.getGoto(baseStateID, type, true);
|
|
106
|
+
}
|
|
107
|
+
while (this.stack.length > base)
|
|
108
|
+
this.stack.pop();
|
|
109
|
+
this.reduceContext(type, start);
|
|
110
|
+
}
|
|
111
|
+
// Shift a value into the buffer
|
|
112
|
+
/**
|
|
113
|
+
@internal
|
|
114
|
+
*/
|
|
115
|
+
storeNode(term, start, end, size = 4, mustSink = false) {
|
|
116
|
+
if (term == 0 && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
117
|
+
let cur = this, top = this.buffer.length;
|
|
118
|
+
if (top == 0 && cur.parent) {
|
|
119
|
+
top = cur.bufferBase - cur.parent.bufferBase;
|
|
120
|
+
cur = cur.parent;
|
|
121
|
+
}
|
|
122
|
+
if (top > 0 && cur.buffer[top - 4] == 0 && cur.buffer[top - 1] > -1) {
|
|
123
|
+
if (start == end)
|
|
124
|
+
return;
|
|
125
|
+
if (cur.buffer[top - 2] >= start) {
|
|
126
|
+
cur.buffer[top - 2] = end;
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (!mustSink || this.pos == end) {
|
|
132
|
+
this.buffer.push(term, start, end, size);
|
|
133
|
+
} else {
|
|
134
|
+
let index = this.buffer.length;
|
|
135
|
+
if (index > 0 && (this.buffer[index - 4] != 0 || this.buffer[index - 1] < 0)) {
|
|
136
|
+
let mustMove = false;
|
|
137
|
+
for (let scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4) {
|
|
138
|
+
if (this.buffer[scan - 1] >= 0) {
|
|
139
|
+
mustMove = true;
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (mustMove)
|
|
144
|
+
while (index > 0 && this.buffer[index - 2] > end) {
|
|
145
|
+
this.buffer[index] = this.buffer[index - 4];
|
|
146
|
+
this.buffer[index + 1] = this.buffer[index - 3];
|
|
147
|
+
this.buffer[index + 2] = this.buffer[index - 2];
|
|
148
|
+
this.buffer[index + 3] = this.buffer[index - 1];
|
|
149
|
+
index -= 4;
|
|
150
|
+
if (size > 4)
|
|
151
|
+
size -= 4;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
this.buffer[index] = term;
|
|
155
|
+
this.buffer[index + 1] = start;
|
|
156
|
+
this.buffer[index + 2] = end;
|
|
157
|
+
this.buffer[index + 3] = size;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// Apply a shift action
|
|
161
|
+
/**
|
|
162
|
+
@internal
|
|
163
|
+
*/
|
|
164
|
+
shift(action, type, start, end) {
|
|
165
|
+
if (action & 131072) {
|
|
166
|
+
this.pushState(action & 65535, this.pos);
|
|
167
|
+
} else if ((action & 262144) == 0) {
|
|
168
|
+
let nextState = action, { parser } = this.p;
|
|
169
|
+
this.pos = end;
|
|
170
|
+
let skipped = parser.stateFlag(
|
|
171
|
+
nextState,
|
|
172
|
+
1
|
|
173
|
+
/* StateFlag.Skipped */
|
|
174
|
+
);
|
|
175
|
+
if (!skipped && (end > start || type <= parser.maxNode))
|
|
176
|
+
this.reducePos = end;
|
|
177
|
+
this.pushState(nextState, skipped ? start : Math.min(start, this.reducePos));
|
|
178
|
+
this.shiftContext(type, start);
|
|
179
|
+
if (type <= parser.maxNode)
|
|
180
|
+
this.buffer.push(type, start, end, 4);
|
|
181
|
+
} else {
|
|
182
|
+
this.pos = end;
|
|
183
|
+
this.shiftContext(type, start);
|
|
184
|
+
if (type <= this.p.parser.maxNode)
|
|
185
|
+
this.buffer.push(type, start, end, 4);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// Apply an action
|
|
189
|
+
/**
|
|
190
|
+
@internal
|
|
191
|
+
*/
|
|
192
|
+
apply(action, next, nextStart, nextEnd) {
|
|
193
|
+
if (action & 65536)
|
|
194
|
+
this.reduce(action);
|
|
195
|
+
else
|
|
196
|
+
this.shift(action, next, nextStart, nextEnd);
|
|
197
|
+
}
|
|
198
|
+
// Add a prebuilt (reused) node into the buffer.
|
|
199
|
+
/**
|
|
200
|
+
@internal
|
|
201
|
+
*/
|
|
202
|
+
useNode(value, next) {
|
|
203
|
+
let index = this.p.reused.length - 1;
|
|
204
|
+
if (index < 0 || this.p.reused[index] != value) {
|
|
205
|
+
this.p.reused.push(value);
|
|
206
|
+
index++;
|
|
207
|
+
}
|
|
208
|
+
let start = this.pos;
|
|
209
|
+
this.reducePos = this.pos = start + value.length;
|
|
210
|
+
this.pushState(next, start);
|
|
211
|
+
this.buffer.push(
|
|
212
|
+
index,
|
|
213
|
+
start,
|
|
214
|
+
this.reducePos,
|
|
215
|
+
-1
|
|
216
|
+
/* size == -1 means this is a reused value */
|
|
217
|
+
);
|
|
218
|
+
if (this.curContext)
|
|
219
|
+
this.updateContext(this.curContext.tracker.reuse(this.curContext.context, value, this, this.p.stream.reset(this.pos - value.length)));
|
|
220
|
+
}
|
|
221
|
+
// Split the stack. Due to the buffer sharing and the fact
|
|
222
|
+
// that `this.stack` tends to stay quite shallow, this isn't very
|
|
223
|
+
// expensive.
|
|
224
|
+
/**
|
|
225
|
+
@internal
|
|
226
|
+
*/
|
|
227
|
+
split() {
|
|
228
|
+
let parent = this;
|
|
229
|
+
let off = parent.buffer.length;
|
|
230
|
+
while (off > 0 && parent.buffer[off - 2] > parent.reducePos)
|
|
231
|
+
off -= 4;
|
|
232
|
+
let buffer = parent.buffer.slice(off), base = parent.bufferBase + off;
|
|
233
|
+
while (parent && base == parent.bufferBase)
|
|
234
|
+
parent = parent.parent;
|
|
235
|
+
return new _Stack(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, buffer, base, this.curContext, this.lookAhead, parent);
|
|
236
|
+
}
|
|
237
|
+
// Try to recover from an error by 'deleting' (ignoring) one token.
|
|
238
|
+
/**
|
|
239
|
+
@internal
|
|
240
|
+
*/
|
|
241
|
+
recoverByDelete(next, nextEnd) {
|
|
242
|
+
let isNode = next <= this.p.parser.maxNode;
|
|
243
|
+
if (isNode)
|
|
244
|
+
this.storeNode(next, this.pos, nextEnd, 4);
|
|
245
|
+
this.storeNode(0, this.pos, nextEnd, isNode ? 8 : 4);
|
|
246
|
+
this.pos = this.reducePos = nextEnd;
|
|
247
|
+
this.score -= 190;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
Check if the given term would be able to be shifted (optionally
|
|
251
|
+
after some reductions) on this stack. This can be useful for
|
|
252
|
+
external tokenizers that want to make sure they only provide a
|
|
253
|
+
given token when it applies.
|
|
254
|
+
*/
|
|
255
|
+
canShift(term) {
|
|
256
|
+
for (let sim = new SimulatedStack(this); ; ) {
|
|
257
|
+
let action = this.p.parser.stateSlot(
|
|
258
|
+
sim.state,
|
|
259
|
+
4
|
|
260
|
+
/* ParseState.DefaultReduce */
|
|
261
|
+
) || this.p.parser.hasAction(sim.state, term);
|
|
262
|
+
if (action == 0)
|
|
263
|
+
return false;
|
|
264
|
+
if ((action & 65536) == 0)
|
|
265
|
+
return true;
|
|
266
|
+
sim.reduce(action);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
// Apply up to Recover.MaxNext recovery actions that conceptually
|
|
270
|
+
// inserts some missing token or rule.
|
|
271
|
+
/**
|
|
272
|
+
@internal
|
|
273
|
+
*/
|
|
274
|
+
recoverByInsert(next) {
|
|
275
|
+
if (this.stack.length >= 300)
|
|
276
|
+
return [];
|
|
277
|
+
let nextStates = this.p.parser.nextStates(this.state);
|
|
278
|
+
if (nextStates.length > 4 << 1 || this.stack.length >= 120) {
|
|
279
|
+
let best = [];
|
|
280
|
+
for (let i = 0, s; i < nextStates.length; i += 2) {
|
|
281
|
+
if ((s = nextStates[i + 1]) != this.state && this.p.parser.hasAction(s, next))
|
|
282
|
+
best.push(nextStates[i], s);
|
|
283
|
+
}
|
|
284
|
+
if (this.stack.length < 120)
|
|
285
|
+
for (let i = 0; best.length < 4 << 1 && i < nextStates.length; i += 2) {
|
|
286
|
+
let s = nextStates[i + 1];
|
|
287
|
+
if (!best.some((v, i2) => i2 & 1 && v == s))
|
|
288
|
+
best.push(nextStates[i], s);
|
|
289
|
+
}
|
|
290
|
+
nextStates = best;
|
|
291
|
+
}
|
|
292
|
+
let result = [];
|
|
293
|
+
for (let i = 0; i < nextStates.length && result.length < 4; i += 2) {
|
|
294
|
+
let s = nextStates[i + 1];
|
|
295
|
+
if (s == this.state)
|
|
296
|
+
continue;
|
|
297
|
+
let stack = this.split();
|
|
298
|
+
stack.pushState(s, this.pos);
|
|
299
|
+
stack.storeNode(0, stack.pos, stack.pos, 4, true);
|
|
300
|
+
stack.shiftContext(nextStates[i], this.pos);
|
|
301
|
+
stack.reducePos = this.pos;
|
|
302
|
+
stack.score -= 200;
|
|
303
|
+
result.push(stack);
|
|
304
|
+
}
|
|
305
|
+
return result;
|
|
306
|
+
}
|
|
307
|
+
// Force a reduce, if possible. Return false if that can't
|
|
308
|
+
// be done.
|
|
309
|
+
/**
|
|
310
|
+
@internal
|
|
311
|
+
*/
|
|
312
|
+
forceReduce() {
|
|
313
|
+
let { parser } = this.p;
|
|
314
|
+
let reduce = parser.stateSlot(
|
|
315
|
+
this.state,
|
|
316
|
+
5
|
|
317
|
+
/* ParseState.ForcedReduce */
|
|
318
|
+
);
|
|
319
|
+
if ((reduce & 65536) == 0)
|
|
320
|
+
return false;
|
|
321
|
+
if (!parser.validAction(this.state, reduce)) {
|
|
322
|
+
let depth = reduce >> 19, term = reduce & 65535;
|
|
323
|
+
let target = this.stack.length - depth * 3;
|
|
324
|
+
if (target < 0 || parser.getGoto(this.stack[target], term, false) < 0) {
|
|
325
|
+
let backup = this.findForcedReduction();
|
|
326
|
+
if (backup == null)
|
|
327
|
+
return false;
|
|
328
|
+
reduce = backup;
|
|
329
|
+
}
|
|
330
|
+
this.storeNode(0, this.pos, this.pos, 4, true);
|
|
331
|
+
this.score -= 100;
|
|
332
|
+
}
|
|
333
|
+
this.reducePos = this.pos;
|
|
334
|
+
this.reduce(reduce);
|
|
335
|
+
return true;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
Try to scan through the automaton to find some kind of reduction
|
|
339
|
+
that can be applied. Used when the regular ForcedReduce field
|
|
340
|
+
isn't a valid action. @internal
|
|
341
|
+
*/
|
|
342
|
+
findForcedReduction() {
|
|
343
|
+
let { parser } = this.p, seen = [];
|
|
344
|
+
let explore = (state, depth) => {
|
|
345
|
+
if (seen.includes(state))
|
|
346
|
+
return;
|
|
347
|
+
seen.push(state);
|
|
348
|
+
return parser.allActions(state, (action) => {
|
|
349
|
+
if (action & (262144 | 131072)) ;
|
|
350
|
+
else if (action & 65536) {
|
|
351
|
+
let rDepth = (action >> 19) - depth;
|
|
352
|
+
if (rDepth > 1) {
|
|
353
|
+
let term = action & 65535, target = this.stack.length - rDepth * 3;
|
|
354
|
+
if (target >= 0 && parser.getGoto(this.stack[target], term, false) >= 0)
|
|
355
|
+
return rDepth << 19 | 65536 | term;
|
|
356
|
+
}
|
|
357
|
+
} else {
|
|
358
|
+
let found = explore(action, depth + 1);
|
|
359
|
+
if (found != null)
|
|
360
|
+
return found;
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
return explore(this.state, 0);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
@internal
|
|
368
|
+
*/
|
|
369
|
+
forceAll() {
|
|
370
|
+
while (!this.p.parser.stateFlag(
|
|
371
|
+
this.state,
|
|
372
|
+
2
|
|
373
|
+
/* StateFlag.Accepting */
|
|
374
|
+
)) {
|
|
375
|
+
if (!this.forceReduce()) {
|
|
376
|
+
this.storeNode(0, this.pos, this.pos, 4, true);
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return this;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
Check whether this state has no further actions (assumed to be a direct descendant of the
|
|
384
|
+
top state, since any other states must be able to continue
|
|
385
|
+
somehow). @internal
|
|
386
|
+
*/
|
|
387
|
+
get deadEnd() {
|
|
388
|
+
if (this.stack.length != 3)
|
|
389
|
+
return false;
|
|
390
|
+
let { parser } = this.p;
|
|
391
|
+
return parser.data[parser.stateSlot(
|
|
392
|
+
this.state,
|
|
393
|
+
1
|
|
394
|
+
/* ParseState.Actions */
|
|
395
|
+
)] == 65535 && !parser.stateSlot(
|
|
396
|
+
this.state,
|
|
397
|
+
4
|
|
398
|
+
/* ParseState.DefaultReduce */
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
Restart the stack (put it back in its start state). Only safe
|
|
403
|
+
when this.stack.length == 3 (state is directly below the top
|
|
404
|
+
state). @internal
|
|
405
|
+
*/
|
|
406
|
+
restart() {
|
|
407
|
+
this.storeNode(0, this.pos, this.pos, 4, true);
|
|
408
|
+
this.state = this.stack[0];
|
|
409
|
+
this.stack.length = 0;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
@internal
|
|
413
|
+
*/
|
|
414
|
+
sameState(other) {
|
|
415
|
+
if (this.state != other.state || this.stack.length != other.stack.length)
|
|
416
|
+
return false;
|
|
417
|
+
for (let i = 0; i < this.stack.length; i += 3)
|
|
418
|
+
if (this.stack[i] != other.stack[i])
|
|
419
|
+
return false;
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
Get the parser used by this stack.
|
|
424
|
+
*/
|
|
425
|
+
get parser() {
|
|
426
|
+
return this.p.parser;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
Test whether a given dialect (by numeric ID, as exported from
|
|
430
|
+
the terms file) is enabled.
|
|
431
|
+
*/
|
|
432
|
+
dialectEnabled(dialectID) {
|
|
433
|
+
return this.p.parser.dialect.flags[dialectID];
|
|
434
|
+
}
|
|
435
|
+
shiftContext(term, start) {
|
|
436
|
+
if (this.curContext)
|
|
437
|
+
this.updateContext(this.curContext.tracker.shift(this.curContext.context, term, this, this.p.stream.reset(start)));
|
|
438
|
+
}
|
|
439
|
+
reduceContext(term, start) {
|
|
440
|
+
if (this.curContext)
|
|
441
|
+
this.updateContext(this.curContext.tracker.reduce(this.curContext.context, term, this, this.p.stream.reset(start)));
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
@internal
|
|
445
|
+
*/
|
|
446
|
+
emitContext() {
|
|
447
|
+
let last = this.buffer.length - 1;
|
|
448
|
+
if (last < 0 || this.buffer[last] != -3)
|
|
449
|
+
this.buffer.push(this.curContext.hash, this.pos, this.pos, -3);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
@internal
|
|
453
|
+
*/
|
|
454
|
+
emitLookAhead() {
|
|
455
|
+
let last = this.buffer.length - 1;
|
|
456
|
+
if (last < 0 || this.buffer[last] != -4)
|
|
457
|
+
this.buffer.push(this.lookAhead, this.pos, this.pos, -4);
|
|
458
|
+
}
|
|
459
|
+
updateContext(context) {
|
|
460
|
+
if (context != this.curContext.context) {
|
|
461
|
+
let newCx = new StackContext(this.curContext.tracker, context);
|
|
462
|
+
if (newCx.hash != this.curContext.hash)
|
|
463
|
+
this.emitContext();
|
|
464
|
+
this.curContext = newCx;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
@internal
|
|
469
|
+
*/
|
|
470
|
+
setLookAhead(lookAhead) {
|
|
471
|
+
if (lookAhead <= this.lookAhead)
|
|
472
|
+
return false;
|
|
473
|
+
this.emitLookAhead();
|
|
474
|
+
this.lookAhead = lookAhead;
|
|
475
|
+
return true;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
@internal
|
|
479
|
+
*/
|
|
480
|
+
close() {
|
|
481
|
+
if (this.curContext && this.curContext.tracker.strict)
|
|
482
|
+
this.emitContext();
|
|
483
|
+
if (this.lookAhead > 0)
|
|
484
|
+
this.emitLookAhead();
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
var StackContext = class {
|
|
488
|
+
constructor(tracker, context) {
|
|
489
|
+
this.tracker = tracker;
|
|
490
|
+
this.context = context;
|
|
491
|
+
this.hash = tracker.strict ? tracker.hash(context) : 0;
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
var SimulatedStack = class {
|
|
495
|
+
constructor(start) {
|
|
496
|
+
this.start = start;
|
|
497
|
+
this.state = start.state;
|
|
498
|
+
this.stack = start.stack;
|
|
499
|
+
this.base = this.stack.length;
|
|
500
|
+
}
|
|
501
|
+
reduce(action) {
|
|
502
|
+
let term = action & 65535, depth = action >> 19;
|
|
503
|
+
if (depth == 0) {
|
|
504
|
+
if (this.stack == this.start.stack)
|
|
505
|
+
this.stack = this.stack.slice();
|
|
506
|
+
this.stack.push(this.state, 0, 0);
|
|
507
|
+
this.base += 3;
|
|
508
|
+
} else {
|
|
509
|
+
this.base -= (depth - 1) * 3;
|
|
510
|
+
}
|
|
511
|
+
let goto = this.start.p.parser.getGoto(this.stack[this.base - 3], term, true);
|
|
512
|
+
this.state = goto;
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
var StackBufferCursor = class _StackBufferCursor {
|
|
516
|
+
constructor(stack, pos, index) {
|
|
517
|
+
this.stack = stack;
|
|
518
|
+
this.pos = pos;
|
|
519
|
+
this.index = index;
|
|
520
|
+
this.buffer = stack.buffer;
|
|
521
|
+
if (this.index == 0)
|
|
522
|
+
this.maybeNext();
|
|
523
|
+
}
|
|
524
|
+
static create(stack, pos = stack.bufferBase + stack.buffer.length) {
|
|
525
|
+
return new _StackBufferCursor(stack, pos, pos - stack.bufferBase);
|
|
526
|
+
}
|
|
527
|
+
maybeNext() {
|
|
528
|
+
let next = this.stack.parent;
|
|
529
|
+
if (next != null) {
|
|
530
|
+
this.index = this.stack.bufferBase - next.bufferBase;
|
|
531
|
+
this.stack = next;
|
|
532
|
+
this.buffer = next.buffer;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
get id() {
|
|
536
|
+
return this.buffer[this.index - 4];
|
|
537
|
+
}
|
|
538
|
+
get start() {
|
|
539
|
+
return this.buffer[this.index - 3];
|
|
540
|
+
}
|
|
541
|
+
get end() {
|
|
542
|
+
return this.buffer[this.index - 2];
|
|
543
|
+
}
|
|
544
|
+
get size() {
|
|
545
|
+
return this.buffer[this.index - 1];
|
|
546
|
+
}
|
|
547
|
+
next() {
|
|
548
|
+
this.index -= 4;
|
|
549
|
+
this.pos -= 4;
|
|
550
|
+
if (this.index == 0)
|
|
551
|
+
this.maybeNext();
|
|
552
|
+
}
|
|
553
|
+
fork() {
|
|
554
|
+
return new _StackBufferCursor(this.stack, this.pos, this.index);
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
function decodeArray(input, Type = Uint16Array) {
|
|
558
|
+
if (typeof input != "string")
|
|
559
|
+
return input;
|
|
560
|
+
let array = null;
|
|
561
|
+
for (let pos = 0, out = 0; pos < input.length; ) {
|
|
562
|
+
let value = 0;
|
|
563
|
+
for (; ; ) {
|
|
564
|
+
let next = input.charCodeAt(pos++), stop = false;
|
|
565
|
+
if (next == 126) {
|
|
566
|
+
value = 65535;
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
if (next >= 92)
|
|
570
|
+
next--;
|
|
571
|
+
if (next >= 34)
|
|
572
|
+
next--;
|
|
573
|
+
let digit = next - 32;
|
|
574
|
+
if (digit >= 46) {
|
|
575
|
+
digit -= 46;
|
|
576
|
+
stop = true;
|
|
577
|
+
}
|
|
578
|
+
value += digit;
|
|
579
|
+
if (stop)
|
|
580
|
+
break;
|
|
581
|
+
value *= 46;
|
|
582
|
+
}
|
|
583
|
+
if (array)
|
|
584
|
+
array[out++] = value;
|
|
585
|
+
else
|
|
586
|
+
array = new Type(value);
|
|
587
|
+
}
|
|
588
|
+
return array;
|
|
589
|
+
}
|
|
590
|
+
var CachedToken = class {
|
|
591
|
+
constructor() {
|
|
592
|
+
this.start = -1;
|
|
593
|
+
this.value = -1;
|
|
594
|
+
this.end = -1;
|
|
595
|
+
this.extended = -1;
|
|
596
|
+
this.lookAhead = 0;
|
|
597
|
+
this.mask = 0;
|
|
598
|
+
this.context = 0;
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
var nullToken = new CachedToken();
|
|
602
|
+
var InputStream = class {
|
|
603
|
+
/**
|
|
604
|
+
@internal
|
|
605
|
+
*/
|
|
606
|
+
constructor(input, ranges) {
|
|
607
|
+
this.input = input;
|
|
608
|
+
this.ranges = ranges;
|
|
609
|
+
this.chunk = "";
|
|
610
|
+
this.chunkOff = 0;
|
|
611
|
+
this.chunk2 = "";
|
|
612
|
+
this.chunk2Pos = 0;
|
|
613
|
+
this.next = -1;
|
|
614
|
+
this.token = nullToken;
|
|
615
|
+
this.rangeIndex = 0;
|
|
616
|
+
this.pos = this.chunkPos = ranges[0].from;
|
|
617
|
+
this.range = ranges[0];
|
|
618
|
+
this.end = ranges[ranges.length - 1].to;
|
|
619
|
+
this.readNext();
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
@internal
|
|
623
|
+
*/
|
|
624
|
+
resolveOffset(offset, assoc) {
|
|
625
|
+
let range = this.range, index = this.rangeIndex;
|
|
626
|
+
let pos = this.pos + offset;
|
|
627
|
+
while (pos < range.from) {
|
|
628
|
+
if (!index)
|
|
629
|
+
return null;
|
|
630
|
+
let next = this.ranges[--index];
|
|
631
|
+
pos -= range.from - next.to;
|
|
632
|
+
range = next;
|
|
633
|
+
}
|
|
634
|
+
while (assoc < 0 ? pos > range.to : pos >= range.to) {
|
|
635
|
+
if (index == this.ranges.length - 1)
|
|
636
|
+
return null;
|
|
637
|
+
let next = this.ranges[++index];
|
|
638
|
+
pos += next.from - range.to;
|
|
639
|
+
range = next;
|
|
640
|
+
}
|
|
641
|
+
return pos;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
@internal
|
|
645
|
+
*/
|
|
646
|
+
clipPos(pos) {
|
|
647
|
+
if (pos >= this.range.from && pos < this.range.to)
|
|
648
|
+
return pos;
|
|
649
|
+
for (let range of this.ranges)
|
|
650
|
+
if (range.to > pos)
|
|
651
|
+
return Math.max(pos, range.from);
|
|
652
|
+
return this.end;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
Look at a code unit near the stream position. `.peek(0)` equals
|
|
656
|
+
`.next`, `.peek(-1)` gives you the previous character, and so
|
|
657
|
+
on.
|
|
658
|
+
|
|
659
|
+
Note that looking around during tokenizing creates dependencies
|
|
660
|
+
on potentially far-away content, which may reduce the
|
|
661
|
+
effectiveness incremental parsing—when looking forward—or even
|
|
662
|
+
cause invalid reparses when looking backward more than 25 code
|
|
663
|
+
units, since the library does not track lookbehind.
|
|
664
|
+
*/
|
|
665
|
+
peek(offset) {
|
|
666
|
+
let idx = this.chunkOff + offset, pos, result;
|
|
667
|
+
if (idx >= 0 && idx < this.chunk.length) {
|
|
668
|
+
pos = this.pos + offset;
|
|
669
|
+
result = this.chunk.charCodeAt(idx);
|
|
670
|
+
} else {
|
|
671
|
+
let resolved = this.resolveOffset(offset, 1);
|
|
672
|
+
if (resolved == null)
|
|
673
|
+
return -1;
|
|
674
|
+
pos = resolved;
|
|
675
|
+
if (pos >= this.chunk2Pos && pos < this.chunk2Pos + this.chunk2.length) {
|
|
676
|
+
result = this.chunk2.charCodeAt(pos - this.chunk2Pos);
|
|
677
|
+
} else {
|
|
678
|
+
let i = this.rangeIndex, range = this.range;
|
|
679
|
+
while (range.to <= pos)
|
|
680
|
+
range = this.ranges[++i];
|
|
681
|
+
this.chunk2 = this.input.chunk(this.chunk2Pos = pos);
|
|
682
|
+
if (pos + this.chunk2.length > range.to)
|
|
683
|
+
this.chunk2 = this.chunk2.slice(0, range.to - pos);
|
|
684
|
+
result = this.chunk2.charCodeAt(0);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
if (pos >= this.token.lookAhead)
|
|
688
|
+
this.token.lookAhead = pos + 1;
|
|
689
|
+
return result;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
Accept a token. By default, the end of the token is set to the
|
|
693
|
+
current stream position, but you can pass an offset (relative to
|
|
694
|
+
the stream position) to change that.
|
|
695
|
+
*/
|
|
696
|
+
acceptToken(token, endOffset = 0) {
|
|
697
|
+
let end = endOffset ? this.resolveOffset(endOffset, -1) : this.pos;
|
|
698
|
+
if (end == null || end < this.token.start)
|
|
699
|
+
throw new RangeError("Token end out of bounds");
|
|
700
|
+
this.token.value = token;
|
|
701
|
+
this.token.end = end;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
Accept a token ending at a specific given position.
|
|
705
|
+
*/
|
|
706
|
+
acceptTokenTo(token, endPos) {
|
|
707
|
+
this.token.value = token;
|
|
708
|
+
this.token.end = endPos;
|
|
709
|
+
}
|
|
710
|
+
getChunk() {
|
|
711
|
+
if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {
|
|
712
|
+
let { chunk, chunkPos } = this;
|
|
713
|
+
this.chunk = this.chunk2;
|
|
714
|
+
this.chunkPos = this.chunk2Pos;
|
|
715
|
+
this.chunk2 = chunk;
|
|
716
|
+
this.chunk2Pos = chunkPos;
|
|
717
|
+
this.chunkOff = this.pos - this.chunkPos;
|
|
718
|
+
} else {
|
|
719
|
+
this.chunk2 = this.chunk;
|
|
720
|
+
this.chunk2Pos = this.chunkPos;
|
|
721
|
+
let nextChunk = this.input.chunk(this.pos);
|
|
722
|
+
let end = this.pos + nextChunk.length;
|
|
723
|
+
this.chunk = end > this.range.to ? nextChunk.slice(0, this.range.to - this.pos) : nextChunk;
|
|
724
|
+
this.chunkPos = this.pos;
|
|
725
|
+
this.chunkOff = 0;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
readNext() {
|
|
729
|
+
if (this.chunkOff >= this.chunk.length) {
|
|
730
|
+
this.getChunk();
|
|
731
|
+
if (this.chunkOff == this.chunk.length)
|
|
732
|
+
return this.next = -1;
|
|
733
|
+
}
|
|
734
|
+
return this.next = this.chunk.charCodeAt(this.chunkOff);
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
Move the stream forward N (defaults to 1) code units. Returns
|
|
738
|
+
the new value of [`next`](#lr.InputStream.next).
|
|
739
|
+
*/
|
|
740
|
+
advance(n = 1) {
|
|
741
|
+
this.chunkOff += n;
|
|
742
|
+
while (this.pos + n >= this.range.to) {
|
|
743
|
+
if (this.rangeIndex == this.ranges.length - 1)
|
|
744
|
+
return this.setDone();
|
|
745
|
+
n -= this.range.to - this.pos;
|
|
746
|
+
this.range = this.ranges[++this.rangeIndex];
|
|
747
|
+
this.pos = this.range.from;
|
|
748
|
+
}
|
|
749
|
+
this.pos += n;
|
|
750
|
+
if (this.pos >= this.token.lookAhead)
|
|
751
|
+
this.token.lookAhead = this.pos + 1;
|
|
752
|
+
return this.readNext();
|
|
753
|
+
}
|
|
754
|
+
setDone() {
|
|
755
|
+
this.pos = this.chunkPos = this.end;
|
|
756
|
+
this.range = this.ranges[this.rangeIndex = this.ranges.length - 1];
|
|
757
|
+
this.chunk = "";
|
|
758
|
+
return this.next = -1;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
@internal
|
|
762
|
+
*/
|
|
763
|
+
reset(pos, token) {
|
|
764
|
+
if (token) {
|
|
765
|
+
this.token = token;
|
|
766
|
+
token.start = pos;
|
|
767
|
+
token.lookAhead = pos + 1;
|
|
768
|
+
token.value = token.extended = -1;
|
|
769
|
+
} else {
|
|
770
|
+
this.token = nullToken;
|
|
771
|
+
}
|
|
772
|
+
if (this.pos != pos) {
|
|
773
|
+
this.pos = pos;
|
|
774
|
+
if (pos == this.end) {
|
|
775
|
+
this.setDone();
|
|
776
|
+
return this;
|
|
777
|
+
}
|
|
778
|
+
while (pos < this.range.from)
|
|
779
|
+
this.range = this.ranges[--this.rangeIndex];
|
|
780
|
+
while (pos >= this.range.to)
|
|
781
|
+
this.range = this.ranges[++this.rangeIndex];
|
|
782
|
+
if (pos >= this.chunkPos && pos < this.chunkPos + this.chunk.length) {
|
|
783
|
+
this.chunkOff = pos - this.chunkPos;
|
|
784
|
+
} else {
|
|
785
|
+
this.chunk = "";
|
|
786
|
+
this.chunkOff = 0;
|
|
787
|
+
}
|
|
788
|
+
this.readNext();
|
|
789
|
+
}
|
|
790
|
+
return this;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
@internal
|
|
794
|
+
*/
|
|
795
|
+
read(from, to) {
|
|
796
|
+
if (from >= this.chunkPos && to <= this.chunkPos + this.chunk.length)
|
|
797
|
+
return this.chunk.slice(from - this.chunkPos, to - this.chunkPos);
|
|
798
|
+
if (from >= this.chunk2Pos && to <= this.chunk2Pos + this.chunk2.length)
|
|
799
|
+
return this.chunk2.slice(from - this.chunk2Pos, to - this.chunk2Pos);
|
|
800
|
+
if (from >= this.range.from && to <= this.range.to)
|
|
801
|
+
return this.input.read(from, to);
|
|
802
|
+
let result = "";
|
|
803
|
+
for (let r of this.ranges) {
|
|
804
|
+
if (r.from >= to)
|
|
805
|
+
break;
|
|
806
|
+
if (r.to > from)
|
|
807
|
+
result += this.input.read(Math.max(r.from, from), Math.min(r.to, to));
|
|
808
|
+
}
|
|
809
|
+
return result;
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
var TokenGroup = class {
|
|
813
|
+
constructor(data, id2) {
|
|
814
|
+
this.data = data;
|
|
815
|
+
this.id = id2;
|
|
816
|
+
}
|
|
817
|
+
token(input, stack) {
|
|
818
|
+
let { parser } = stack.p;
|
|
819
|
+
readToken(this.data, input, stack, this.id, parser.data, parser.tokenPrecTable);
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
TokenGroup.prototype.contextual = TokenGroup.prototype.fallback = TokenGroup.prototype.extend = false;
|
|
823
|
+
var LocalTokenGroup = class {
|
|
824
|
+
constructor(data, precTable, elseToken) {
|
|
825
|
+
this.precTable = precTable;
|
|
826
|
+
this.elseToken = elseToken;
|
|
827
|
+
this.data = typeof data == "string" ? decodeArray(data) : data;
|
|
828
|
+
}
|
|
829
|
+
token(input, stack) {
|
|
830
|
+
let start = input.pos, skipped = 0;
|
|
831
|
+
for (; ; ) {
|
|
832
|
+
let atEof = input.next < 0, nextPos = input.resolveOffset(1, 1);
|
|
833
|
+
readToken(this.data, input, stack, 0, this.data, this.precTable);
|
|
834
|
+
if (input.token.value > -1)
|
|
835
|
+
break;
|
|
836
|
+
if (this.elseToken == null)
|
|
837
|
+
return;
|
|
838
|
+
if (!atEof)
|
|
839
|
+
skipped++;
|
|
840
|
+
if (nextPos == null)
|
|
841
|
+
break;
|
|
842
|
+
input.reset(nextPos, input.token);
|
|
843
|
+
}
|
|
844
|
+
if (skipped) {
|
|
845
|
+
input.reset(start, input.token);
|
|
846
|
+
input.acceptToken(this.elseToken, skipped);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
LocalTokenGroup.prototype.contextual = TokenGroup.prototype.fallback = TokenGroup.prototype.extend = false;
|
|
851
|
+
var ExternalTokenizer = class {
|
|
852
|
+
/**
|
|
853
|
+
Create a tokenizer. The first argument is the function that,
|
|
854
|
+
given an input stream, scans for the types of tokens it
|
|
855
|
+
recognizes at the stream's position, and calls
|
|
856
|
+
[`acceptToken`](#lr.InputStream.acceptToken) when it finds
|
|
857
|
+
one.
|
|
858
|
+
*/
|
|
859
|
+
constructor(token, options = {}) {
|
|
860
|
+
this.token = token;
|
|
861
|
+
this.contextual = !!options.contextual;
|
|
862
|
+
this.fallback = !!options.fallback;
|
|
863
|
+
this.extend = !!options.extend;
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
function readToken(data, input, stack, group, precTable, precOffset) {
|
|
867
|
+
let state = 0, groupMask = 1 << group, { dialect } = stack.p.parser;
|
|
868
|
+
scan: for (; ; ) {
|
|
869
|
+
if ((groupMask & data[state]) == 0)
|
|
870
|
+
break;
|
|
871
|
+
let accEnd = data[state + 1];
|
|
872
|
+
for (let i = state + 3; i < accEnd; i += 2)
|
|
873
|
+
if ((data[i + 1] & groupMask) > 0) {
|
|
874
|
+
let term = data[i];
|
|
875
|
+
if (dialect.allows(term) && (input.token.value == -1 || input.token.value == term || overrides(term, input.token.value, precTable, precOffset))) {
|
|
876
|
+
input.acceptToken(term);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
let next = input.next, low = 0, high = data[state + 2];
|
|
881
|
+
if (input.next < 0 && high > low && data[accEnd + high * 3 - 3] == 65535) {
|
|
882
|
+
state = data[accEnd + high * 3 - 1];
|
|
883
|
+
continue scan;
|
|
884
|
+
}
|
|
885
|
+
for (; low < high; ) {
|
|
886
|
+
let mid = low + high >> 1;
|
|
887
|
+
let index = accEnd + mid + (mid << 1);
|
|
888
|
+
let from = data[index], to = data[index + 1] || 65536;
|
|
889
|
+
if (next < from)
|
|
890
|
+
high = mid;
|
|
891
|
+
else if (next >= to)
|
|
892
|
+
low = mid + 1;
|
|
893
|
+
else {
|
|
894
|
+
state = data[index + 2];
|
|
895
|
+
input.advance();
|
|
896
|
+
continue scan;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
break;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
function findOffset(data, start, term) {
|
|
903
|
+
for (let i = start, next; (next = data[i]) != 65535; i++)
|
|
904
|
+
if (next == term)
|
|
905
|
+
return i - start;
|
|
906
|
+
return -1;
|
|
907
|
+
}
|
|
908
|
+
function overrides(token, prev, tableData, tableOffset) {
|
|
909
|
+
let iPrev = findOffset(tableData, tableOffset, prev);
|
|
910
|
+
return iPrev < 0 || findOffset(tableData, tableOffset, token) < iPrev;
|
|
911
|
+
}
|
|
912
|
+
var verbose = typeof process != "undefined" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
913
|
+
var stackIDs = null;
|
|
914
|
+
function cutAt(tree, pos, side) {
|
|
915
|
+
let cursor = tree.cursor(IterMode.IncludeAnonymous);
|
|
916
|
+
cursor.moveTo(pos);
|
|
917
|
+
for (; ; ) {
|
|
918
|
+
if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos)))
|
|
919
|
+
for (; ; ) {
|
|
920
|
+
if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError)
|
|
921
|
+
return side < 0 ? Math.max(0, Math.min(
|
|
922
|
+
cursor.to - 1,
|
|
923
|
+
pos - 25
|
|
924
|
+
/* Lookahead.Margin */
|
|
925
|
+
)) : Math.min(tree.length, Math.max(
|
|
926
|
+
cursor.from + 1,
|
|
927
|
+
pos + 25
|
|
928
|
+
/* Lookahead.Margin */
|
|
929
|
+
));
|
|
930
|
+
if (side < 0 ? cursor.prevSibling() : cursor.nextSibling())
|
|
931
|
+
break;
|
|
932
|
+
if (!cursor.parent())
|
|
933
|
+
return side < 0 ? 0 : tree.length;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
var FragmentCursor = class {
|
|
938
|
+
constructor(fragments, nodeSet) {
|
|
939
|
+
this.fragments = fragments;
|
|
940
|
+
this.nodeSet = nodeSet;
|
|
941
|
+
this.i = 0;
|
|
942
|
+
this.fragment = null;
|
|
943
|
+
this.safeFrom = -1;
|
|
944
|
+
this.safeTo = -1;
|
|
945
|
+
this.trees = [];
|
|
946
|
+
this.start = [];
|
|
947
|
+
this.index = [];
|
|
948
|
+
this.nextFragment();
|
|
949
|
+
}
|
|
950
|
+
nextFragment() {
|
|
951
|
+
let fr = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++];
|
|
952
|
+
if (fr) {
|
|
953
|
+
this.safeFrom = fr.openStart ? cutAt(fr.tree, fr.from + fr.offset, 1) - fr.offset : fr.from;
|
|
954
|
+
this.safeTo = fr.openEnd ? cutAt(fr.tree, fr.to + fr.offset, -1) - fr.offset : fr.to;
|
|
955
|
+
while (this.trees.length) {
|
|
956
|
+
this.trees.pop();
|
|
957
|
+
this.start.pop();
|
|
958
|
+
this.index.pop();
|
|
959
|
+
}
|
|
960
|
+
this.trees.push(fr.tree);
|
|
961
|
+
this.start.push(-fr.offset);
|
|
962
|
+
this.index.push(0);
|
|
963
|
+
this.nextStart = this.safeFrom;
|
|
964
|
+
} else {
|
|
965
|
+
this.nextStart = 1e9;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
// `pos` must be >= any previously given `pos` for this cursor
|
|
969
|
+
nodeAt(pos) {
|
|
970
|
+
if (pos < this.nextStart)
|
|
971
|
+
return null;
|
|
972
|
+
while (this.fragment && this.safeTo <= pos)
|
|
973
|
+
this.nextFragment();
|
|
974
|
+
if (!this.fragment)
|
|
975
|
+
return null;
|
|
976
|
+
for (; ; ) {
|
|
977
|
+
let last = this.trees.length - 1;
|
|
978
|
+
if (last < 0) {
|
|
979
|
+
this.nextFragment();
|
|
980
|
+
return null;
|
|
981
|
+
}
|
|
982
|
+
let top = this.trees[last], index = this.index[last];
|
|
983
|
+
if (index == top.children.length) {
|
|
984
|
+
this.trees.pop();
|
|
985
|
+
this.start.pop();
|
|
986
|
+
this.index.pop();
|
|
987
|
+
continue;
|
|
988
|
+
}
|
|
989
|
+
let next = top.children[index];
|
|
990
|
+
let start = this.start[last] + top.positions[index];
|
|
991
|
+
if (start > pos) {
|
|
992
|
+
this.nextStart = start;
|
|
993
|
+
return null;
|
|
994
|
+
}
|
|
995
|
+
if (next instanceof Tree) {
|
|
996
|
+
if (start == pos) {
|
|
997
|
+
if (start < this.safeFrom)
|
|
998
|
+
return null;
|
|
999
|
+
let end = start + next.length;
|
|
1000
|
+
if (end <= this.safeTo) {
|
|
1001
|
+
let lookAhead = next.prop(NodeProp.lookAhead);
|
|
1002
|
+
if (!lookAhead || end + lookAhead < this.fragment.to)
|
|
1003
|
+
return next;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
this.index[last]++;
|
|
1007
|
+
if (start + next.length >= Math.max(this.safeFrom, pos)) {
|
|
1008
|
+
this.trees.push(next);
|
|
1009
|
+
this.start.push(start);
|
|
1010
|
+
this.index.push(0);
|
|
1011
|
+
}
|
|
1012
|
+
} else {
|
|
1013
|
+
this.index[last]++;
|
|
1014
|
+
this.nextStart = start + next.length;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
var TokenCache = class {
|
|
1020
|
+
constructor(parser, stream) {
|
|
1021
|
+
this.stream = stream;
|
|
1022
|
+
this.tokens = [];
|
|
1023
|
+
this.mainToken = null;
|
|
1024
|
+
this.actions = [];
|
|
1025
|
+
this.tokens = parser.tokenizers.map((_) => new CachedToken());
|
|
1026
|
+
}
|
|
1027
|
+
getActions(stack) {
|
|
1028
|
+
let actionIndex = 0;
|
|
1029
|
+
let main = null;
|
|
1030
|
+
let { parser } = stack.p, { tokenizers } = parser;
|
|
1031
|
+
let mask = parser.stateSlot(
|
|
1032
|
+
stack.state,
|
|
1033
|
+
3
|
|
1034
|
+
/* ParseState.TokenizerMask */
|
|
1035
|
+
);
|
|
1036
|
+
let context = stack.curContext ? stack.curContext.hash : 0;
|
|
1037
|
+
let lookAhead = 0;
|
|
1038
|
+
for (let i = 0; i < tokenizers.length; i++) {
|
|
1039
|
+
if ((1 << i & mask) == 0)
|
|
1040
|
+
continue;
|
|
1041
|
+
let tokenizer = tokenizers[i], token = this.tokens[i];
|
|
1042
|
+
if (main && !tokenizer.fallback)
|
|
1043
|
+
continue;
|
|
1044
|
+
if (tokenizer.contextual || token.start != stack.pos || token.mask != mask || token.context != context) {
|
|
1045
|
+
this.updateCachedToken(token, tokenizer, stack);
|
|
1046
|
+
token.mask = mask;
|
|
1047
|
+
token.context = context;
|
|
1048
|
+
}
|
|
1049
|
+
if (token.lookAhead > token.end + 25)
|
|
1050
|
+
lookAhead = Math.max(token.lookAhead, lookAhead);
|
|
1051
|
+
if (token.value != 0) {
|
|
1052
|
+
let startIndex = actionIndex;
|
|
1053
|
+
if (token.extended > -1)
|
|
1054
|
+
actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
|
|
1055
|
+
actionIndex = this.addActions(stack, token.value, token.end, actionIndex);
|
|
1056
|
+
if (!tokenizer.extend) {
|
|
1057
|
+
main = token;
|
|
1058
|
+
if (actionIndex > startIndex)
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
while (this.actions.length > actionIndex)
|
|
1064
|
+
this.actions.pop();
|
|
1065
|
+
if (lookAhead)
|
|
1066
|
+
stack.setLookAhead(lookAhead);
|
|
1067
|
+
if (!main && stack.pos == this.stream.end) {
|
|
1068
|
+
main = new CachedToken();
|
|
1069
|
+
main.value = stack.p.parser.eofTerm;
|
|
1070
|
+
main.start = main.end = stack.pos;
|
|
1071
|
+
actionIndex = this.addActions(stack, main.value, main.end, actionIndex);
|
|
1072
|
+
}
|
|
1073
|
+
this.mainToken = main;
|
|
1074
|
+
return this.actions;
|
|
1075
|
+
}
|
|
1076
|
+
getMainToken(stack) {
|
|
1077
|
+
if (this.mainToken)
|
|
1078
|
+
return this.mainToken;
|
|
1079
|
+
let main = new CachedToken(), { pos, p } = stack;
|
|
1080
|
+
main.start = pos;
|
|
1081
|
+
main.end = Math.min(pos + 1, p.stream.end);
|
|
1082
|
+
main.value = pos == p.stream.end ? p.parser.eofTerm : 0;
|
|
1083
|
+
return main;
|
|
1084
|
+
}
|
|
1085
|
+
updateCachedToken(token, tokenizer, stack) {
|
|
1086
|
+
let start = this.stream.clipPos(stack.pos);
|
|
1087
|
+
tokenizer.token(this.stream.reset(start, token), stack);
|
|
1088
|
+
if (token.value > -1) {
|
|
1089
|
+
let { parser } = stack.p;
|
|
1090
|
+
for (let i = 0; i < parser.specialized.length; i++)
|
|
1091
|
+
if (parser.specialized[i] == token.value) {
|
|
1092
|
+
let result = parser.specializers[i](this.stream.read(token.start, token.end), stack);
|
|
1093
|
+
if (result >= 0 && stack.p.parser.dialect.allows(result >> 1)) {
|
|
1094
|
+
if ((result & 1) == 0)
|
|
1095
|
+
token.value = result >> 1;
|
|
1096
|
+
else
|
|
1097
|
+
token.extended = result >> 1;
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
} else {
|
|
1102
|
+
token.value = 0;
|
|
1103
|
+
token.end = this.stream.clipPos(start + 1);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
putAction(action, token, end, index) {
|
|
1107
|
+
for (let i = 0; i < index; i += 3)
|
|
1108
|
+
if (this.actions[i] == action)
|
|
1109
|
+
return index;
|
|
1110
|
+
this.actions[index++] = action;
|
|
1111
|
+
this.actions[index++] = token;
|
|
1112
|
+
this.actions[index++] = end;
|
|
1113
|
+
return index;
|
|
1114
|
+
}
|
|
1115
|
+
addActions(stack, token, end, index) {
|
|
1116
|
+
let { state } = stack, { parser } = stack.p, { data } = parser;
|
|
1117
|
+
for (let set = 0; set < 2; set++) {
|
|
1118
|
+
for (let i = parser.stateSlot(
|
|
1119
|
+
state,
|
|
1120
|
+
set ? 2 : 1
|
|
1121
|
+
/* ParseState.Actions */
|
|
1122
|
+
); ; i += 3) {
|
|
1123
|
+
if (data[i] == 65535) {
|
|
1124
|
+
if (data[i + 1] == 1) {
|
|
1125
|
+
i = pair(data, i + 2);
|
|
1126
|
+
} else {
|
|
1127
|
+
if (index == 0 && data[i + 1] == 2)
|
|
1128
|
+
index = this.putAction(pair(data, i + 2), token, end, index);
|
|
1129
|
+
break;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
if (data[i] == token)
|
|
1133
|
+
index = this.putAction(pair(data, i + 1), token, end, index);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
return index;
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
var Parse = class {
|
|
1140
|
+
constructor(parser, input, fragments, ranges) {
|
|
1141
|
+
this.parser = parser;
|
|
1142
|
+
this.input = input;
|
|
1143
|
+
this.ranges = ranges;
|
|
1144
|
+
this.recovering = 0;
|
|
1145
|
+
this.nextStackID = 9812;
|
|
1146
|
+
this.minStackPos = 0;
|
|
1147
|
+
this.reused = [];
|
|
1148
|
+
this.stoppedAt = null;
|
|
1149
|
+
this.lastBigReductionStart = -1;
|
|
1150
|
+
this.lastBigReductionSize = 0;
|
|
1151
|
+
this.bigReductionCount = 0;
|
|
1152
|
+
this.stream = new InputStream(input, ranges);
|
|
1153
|
+
this.tokens = new TokenCache(parser, this.stream);
|
|
1154
|
+
this.topTerm = parser.top[1];
|
|
1155
|
+
let { from } = ranges[0];
|
|
1156
|
+
this.stacks = [Stack.start(this, parser.top[0], from)];
|
|
1157
|
+
this.fragments = fragments.length && this.stream.end - from > parser.bufferLength * 4 ? new FragmentCursor(fragments, parser.nodeSet) : null;
|
|
1158
|
+
}
|
|
1159
|
+
get parsedPos() {
|
|
1160
|
+
return this.minStackPos;
|
|
1161
|
+
}
|
|
1162
|
+
// Move the parser forward. This will process all parse stacks at
|
|
1163
|
+
// `this.pos` and try to advance them to a further position. If no
|
|
1164
|
+
// stack for such a position is found, it'll start error-recovery.
|
|
1165
|
+
//
|
|
1166
|
+
// When the parse is finished, this will return a syntax tree. When
|
|
1167
|
+
// not, it returns `null`.
|
|
1168
|
+
advance() {
|
|
1169
|
+
let stacks = this.stacks, pos = this.minStackPos;
|
|
1170
|
+
let newStacks = this.stacks = [];
|
|
1171
|
+
let stopped, stoppedTokens;
|
|
1172
|
+
if (this.bigReductionCount > 300 && stacks.length == 1) {
|
|
1173
|
+
let [s] = stacks;
|
|
1174
|
+
while (s.forceReduce() && s.stack.length && s.stack[s.stack.length - 2] >= this.lastBigReductionStart) {
|
|
1175
|
+
}
|
|
1176
|
+
this.bigReductionCount = this.lastBigReductionSize = 0;
|
|
1177
|
+
}
|
|
1178
|
+
for (let i = 0; i < stacks.length; i++) {
|
|
1179
|
+
let stack = stacks[i];
|
|
1180
|
+
for (; ; ) {
|
|
1181
|
+
this.tokens.mainToken = null;
|
|
1182
|
+
if (stack.pos > pos) {
|
|
1183
|
+
newStacks.push(stack);
|
|
1184
|
+
} else if (this.advanceStack(stack, newStacks, stacks)) {
|
|
1185
|
+
continue;
|
|
1186
|
+
} else {
|
|
1187
|
+
if (!stopped) {
|
|
1188
|
+
stopped = [];
|
|
1189
|
+
stoppedTokens = [];
|
|
1190
|
+
}
|
|
1191
|
+
stopped.push(stack);
|
|
1192
|
+
let tok = this.tokens.getMainToken(stack);
|
|
1193
|
+
stoppedTokens.push(tok.value, tok.end);
|
|
1194
|
+
}
|
|
1195
|
+
break;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
if (!newStacks.length) {
|
|
1199
|
+
let finished = stopped && findFinished(stopped);
|
|
1200
|
+
if (finished) {
|
|
1201
|
+
if (verbose)
|
|
1202
|
+
console.log("Finish with " + this.stackID(finished));
|
|
1203
|
+
return this.stackToTree(finished);
|
|
1204
|
+
}
|
|
1205
|
+
if (this.parser.strict) {
|
|
1206
|
+
if (verbose && stopped)
|
|
1207
|
+
console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none"));
|
|
1208
|
+
throw new SyntaxError("No parse at " + pos);
|
|
1209
|
+
}
|
|
1210
|
+
if (!this.recovering)
|
|
1211
|
+
this.recovering = 5;
|
|
1212
|
+
}
|
|
1213
|
+
if (this.recovering && stopped) {
|
|
1214
|
+
let finished = this.stoppedAt != null && stopped[0].pos > this.stoppedAt ? stopped[0] : this.runRecovery(stopped, stoppedTokens, newStacks);
|
|
1215
|
+
if (finished) {
|
|
1216
|
+
if (verbose)
|
|
1217
|
+
console.log("Force-finish " + this.stackID(finished));
|
|
1218
|
+
return this.stackToTree(finished.forceAll());
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
if (this.recovering) {
|
|
1222
|
+
let maxRemaining = this.recovering == 1 ? 1 : this.recovering * 3;
|
|
1223
|
+
if (newStacks.length > maxRemaining) {
|
|
1224
|
+
newStacks.sort((a, b) => b.score - a.score);
|
|
1225
|
+
while (newStacks.length > maxRemaining)
|
|
1226
|
+
newStacks.pop();
|
|
1227
|
+
}
|
|
1228
|
+
if (newStacks.some((s) => s.reducePos > pos))
|
|
1229
|
+
this.recovering--;
|
|
1230
|
+
} else if (newStacks.length > 1) {
|
|
1231
|
+
outer: for (let i = 0; i < newStacks.length - 1; i++) {
|
|
1232
|
+
let stack = newStacks[i];
|
|
1233
|
+
for (let j = i + 1; j < newStacks.length; j++) {
|
|
1234
|
+
let other = newStacks[j];
|
|
1235
|
+
if (stack.sameState(other) || stack.buffer.length > 500 && other.buffer.length > 500) {
|
|
1236
|
+
if ((stack.score - other.score || stack.buffer.length - other.buffer.length) > 0) {
|
|
1237
|
+
newStacks.splice(j--, 1);
|
|
1238
|
+
} else {
|
|
1239
|
+
newStacks.splice(i--, 1);
|
|
1240
|
+
continue outer;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
if (newStacks.length > 12) {
|
|
1246
|
+
newStacks.sort((a, b) => b.score - a.score);
|
|
1247
|
+
newStacks.splice(
|
|
1248
|
+
12,
|
|
1249
|
+
newStacks.length - 12
|
|
1250
|
+
/* Rec.MaxStackCount */
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
this.minStackPos = newStacks[0].pos;
|
|
1255
|
+
for (let i = 1; i < newStacks.length; i++)
|
|
1256
|
+
if (newStacks[i].pos < this.minStackPos)
|
|
1257
|
+
this.minStackPos = newStacks[i].pos;
|
|
1258
|
+
return null;
|
|
1259
|
+
}
|
|
1260
|
+
stopAt(pos) {
|
|
1261
|
+
if (this.stoppedAt != null && this.stoppedAt < pos)
|
|
1262
|
+
throw new RangeError("Can't move stoppedAt forward");
|
|
1263
|
+
this.stoppedAt = pos;
|
|
1264
|
+
}
|
|
1265
|
+
// Returns an updated version of the given stack, or null if the
|
|
1266
|
+
// stack can't advance normally. When `split` and `stacks` are
|
|
1267
|
+
// given, stacks split off by ambiguous operations will be pushed to
|
|
1268
|
+
// `split`, or added to `stacks` if they move `pos` forward.
|
|
1269
|
+
advanceStack(stack, stacks, split) {
|
|
1270
|
+
let start = stack.pos, { parser } = this;
|
|
1271
|
+
let base = verbose ? this.stackID(stack) + " -> " : "";
|
|
1272
|
+
if (this.stoppedAt != null && start > this.stoppedAt)
|
|
1273
|
+
return stack.forceReduce() ? stack : null;
|
|
1274
|
+
if (this.fragments) {
|
|
1275
|
+
let strictCx = stack.curContext && stack.curContext.tracker.strict, cxHash = strictCx ? stack.curContext.hash : 0;
|
|
1276
|
+
for (let cached = this.fragments.nodeAt(start); cached; ) {
|
|
1277
|
+
let match = this.parser.nodeSet.types[cached.type.id] == cached.type ? parser.getGoto(stack.state, cached.type.id) : -1;
|
|
1278
|
+
if (match > -1 && cached.length && (!strictCx || (cached.prop(NodeProp.contextHash) || 0) == cxHash)) {
|
|
1279
|
+
stack.useNode(cached, match);
|
|
1280
|
+
if (verbose)
|
|
1281
|
+
console.log(base + this.stackID(stack) + ` (via reuse of ${parser.getName(cached.type.id)})`);
|
|
1282
|
+
return true;
|
|
1283
|
+
}
|
|
1284
|
+
if (!(cached instanceof Tree) || cached.children.length == 0 || cached.positions[0] > 0)
|
|
1285
|
+
break;
|
|
1286
|
+
let inner = cached.children[0];
|
|
1287
|
+
if (inner instanceof Tree && cached.positions[0] == 0)
|
|
1288
|
+
cached = inner;
|
|
1289
|
+
else
|
|
1290
|
+
break;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
let defaultReduce = parser.stateSlot(
|
|
1294
|
+
stack.state,
|
|
1295
|
+
4
|
|
1296
|
+
/* ParseState.DefaultReduce */
|
|
1297
|
+
);
|
|
1298
|
+
if (defaultReduce > 0) {
|
|
1299
|
+
stack.reduce(defaultReduce);
|
|
1300
|
+
if (verbose)
|
|
1301
|
+
console.log(base + this.stackID(stack) + ` (via always-reduce ${parser.getName(
|
|
1302
|
+
defaultReduce & 65535
|
|
1303
|
+
/* Action.ValueMask */
|
|
1304
|
+
)})`);
|
|
1305
|
+
return true;
|
|
1306
|
+
}
|
|
1307
|
+
if (stack.stack.length >= 8400) {
|
|
1308
|
+
while (stack.stack.length > 6e3 && stack.forceReduce()) {
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
let actions = this.tokens.getActions(stack);
|
|
1312
|
+
for (let i = 0; i < actions.length; ) {
|
|
1313
|
+
let action = actions[i++], term = actions[i++], end = actions[i++];
|
|
1314
|
+
let last = i == actions.length || !split;
|
|
1315
|
+
let localStack = last ? stack : stack.split();
|
|
1316
|
+
let main = this.tokens.mainToken;
|
|
1317
|
+
localStack.apply(action, term, main ? main.start : localStack.pos, end);
|
|
1318
|
+
if (verbose)
|
|
1319
|
+
console.log(base + this.stackID(localStack) + ` (via ${(action & 65536) == 0 ? "shift" : `reduce of ${parser.getName(
|
|
1320
|
+
action & 65535
|
|
1321
|
+
/* Action.ValueMask */
|
|
1322
|
+
)}`} for ${parser.getName(term)} @ ${start}${localStack == stack ? "" : ", split"})`);
|
|
1323
|
+
if (last)
|
|
1324
|
+
return true;
|
|
1325
|
+
else if (localStack.pos > start)
|
|
1326
|
+
stacks.push(localStack);
|
|
1327
|
+
else
|
|
1328
|
+
split.push(localStack);
|
|
1329
|
+
}
|
|
1330
|
+
return false;
|
|
1331
|
+
}
|
|
1332
|
+
// Advance a given stack forward as far as it will go. Returns the
|
|
1333
|
+
// (possibly updated) stack if it got stuck, or null if it moved
|
|
1334
|
+
// forward and was given to `pushStackDedup`.
|
|
1335
|
+
advanceFully(stack, newStacks) {
|
|
1336
|
+
let pos = stack.pos;
|
|
1337
|
+
for (; ; ) {
|
|
1338
|
+
if (!this.advanceStack(stack, null, null))
|
|
1339
|
+
return false;
|
|
1340
|
+
if (stack.pos > pos) {
|
|
1341
|
+
pushStackDedup(stack, newStacks);
|
|
1342
|
+
return true;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
runRecovery(stacks, tokens, newStacks) {
|
|
1347
|
+
let finished = null, restarted = false;
|
|
1348
|
+
for (let i = 0; i < stacks.length; i++) {
|
|
1349
|
+
let stack = stacks[i], token = tokens[i << 1], tokenEnd = tokens[(i << 1) + 1];
|
|
1350
|
+
let base = verbose ? this.stackID(stack) + " -> " : "";
|
|
1351
|
+
if (stack.deadEnd) {
|
|
1352
|
+
if (restarted)
|
|
1353
|
+
continue;
|
|
1354
|
+
restarted = true;
|
|
1355
|
+
stack.restart();
|
|
1356
|
+
if (verbose)
|
|
1357
|
+
console.log(base + this.stackID(stack) + " (restarted)");
|
|
1358
|
+
let done = this.advanceFully(stack, newStacks);
|
|
1359
|
+
if (done)
|
|
1360
|
+
continue;
|
|
1361
|
+
}
|
|
1362
|
+
let force = stack.split(), forceBase = base;
|
|
1363
|
+
for (let j = 0; j < 10 && force.forceReduce(); j++) {
|
|
1364
|
+
if (verbose)
|
|
1365
|
+
console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
1366
|
+
let done = this.advanceFully(force, newStacks);
|
|
1367
|
+
if (done)
|
|
1368
|
+
break;
|
|
1369
|
+
if (verbose)
|
|
1370
|
+
forceBase = this.stackID(force) + " -> ";
|
|
1371
|
+
}
|
|
1372
|
+
for (let insert of stack.recoverByInsert(token)) {
|
|
1373
|
+
if (verbose)
|
|
1374
|
+
console.log(base + this.stackID(insert) + " (via recover-insert)");
|
|
1375
|
+
this.advanceFully(insert, newStacks);
|
|
1376
|
+
}
|
|
1377
|
+
if (this.stream.end > stack.pos) {
|
|
1378
|
+
if (tokenEnd == stack.pos) {
|
|
1379
|
+
tokenEnd++;
|
|
1380
|
+
token = 0;
|
|
1381
|
+
}
|
|
1382
|
+
stack.recoverByDelete(token, tokenEnd);
|
|
1383
|
+
if (verbose)
|
|
1384
|
+
console.log(base + this.stackID(stack) + ` (via recover-delete ${this.parser.getName(token)})`);
|
|
1385
|
+
pushStackDedup(stack, newStacks);
|
|
1386
|
+
} else if (!finished || finished.score < force.score) {
|
|
1387
|
+
finished = force;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
return finished;
|
|
1391
|
+
}
|
|
1392
|
+
// Convert the stack's buffer to a syntax tree.
|
|
1393
|
+
stackToTree(stack) {
|
|
1394
|
+
stack.close();
|
|
1395
|
+
return Tree.build({
|
|
1396
|
+
buffer: StackBufferCursor.create(stack),
|
|
1397
|
+
nodeSet: this.parser.nodeSet,
|
|
1398
|
+
topID: this.topTerm,
|
|
1399
|
+
maxBufferLength: this.parser.bufferLength,
|
|
1400
|
+
reused: this.reused,
|
|
1401
|
+
start: this.ranges[0].from,
|
|
1402
|
+
length: stack.pos - this.ranges[0].from,
|
|
1403
|
+
minRepeatType: this.parser.minRepeatTerm
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
stackID(stack) {
|
|
1407
|
+
let id2 = (stackIDs || (stackIDs = /* @__PURE__ */ new WeakMap())).get(stack);
|
|
1408
|
+
if (!id2)
|
|
1409
|
+
stackIDs.set(stack, id2 = String.fromCodePoint(this.nextStackID++));
|
|
1410
|
+
return id2 + stack;
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
function pushStackDedup(stack, newStacks) {
|
|
1414
|
+
for (let i = 0; i < newStacks.length; i++) {
|
|
1415
|
+
let other = newStacks[i];
|
|
1416
|
+
if (other.pos == stack.pos && other.sameState(stack)) {
|
|
1417
|
+
if (newStacks[i].score < stack.score)
|
|
1418
|
+
newStacks[i] = stack;
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
newStacks.push(stack);
|
|
1423
|
+
}
|
|
1424
|
+
var Dialect = class {
|
|
1425
|
+
constructor(source, flags, disabled) {
|
|
1426
|
+
this.source = source;
|
|
1427
|
+
this.flags = flags;
|
|
1428
|
+
this.disabled = disabled;
|
|
1429
|
+
}
|
|
1430
|
+
allows(term) {
|
|
1431
|
+
return !this.disabled || this.disabled[term] == 0;
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
var id = (x) => x;
|
|
1435
|
+
var ContextTracker = class {
|
|
1436
|
+
/**
|
|
1437
|
+
Define a context tracker.
|
|
1438
|
+
*/
|
|
1439
|
+
constructor(spec) {
|
|
1440
|
+
this.start = spec.start;
|
|
1441
|
+
this.shift = spec.shift || id;
|
|
1442
|
+
this.reduce = spec.reduce || id;
|
|
1443
|
+
this.reuse = spec.reuse || id;
|
|
1444
|
+
this.hash = spec.hash || (() => 0);
|
|
1445
|
+
this.strict = spec.strict !== false;
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
var LRParser = class _LRParser extends Parser {
|
|
1449
|
+
/**
|
|
1450
|
+
@internal
|
|
1451
|
+
*/
|
|
1452
|
+
constructor(spec) {
|
|
1453
|
+
super();
|
|
1454
|
+
this.wrappers = [];
|
|
1455
|
+
if (spec.version != 14)
|
|
1456
|
+
throw new RangeError(`Parser version (${spec.version}) doesn't match runtime version (${14})`);
|
|
1457
|
+
let nodeNames = spec.nodeNames.split(" ");
|
|
1458
|
+
this.minRepeatTerm = nodeNames.length;
|
|
1459
|
+
for (let i = 0; i < spec.repeatNodeCount; i++)
|
|
1460
|
+
nodeNames.push("");
|
|
1461
|
+
let topTerms = Object.keys(spec.topRules).map((r) => spec.topRules[r][1]);
|
|
1462
|
+
let nodeProps = [];
|
|
1463
|
+
for (let i = 0; i < nodeNames.length; i++)
|
|
1464
|
+
nodeProps.push([]);
|
|
1465
|
+
function setProp(nodeID, prop, value) {
|
|
1466
|
+
nodeProps[nodeID].push([prop, prop.deserialize(String(value))]);
|
|
1467
|
+
}
|
|
1468
|
+
if (spec.nodeProps)
|
|
1469
|
+
for (let propSpec of spec.nodeProps) {
|
|
1470
|
+
let prop = propSpec[0];
|
|
1471
|
+
if (typeof prop == "string")
|
|
1472
|
+
prop = NodeProp[prop];
|
|
1473
|
+
for (let i = 1; i < propSpec.length; ) {
|
|
1474
|
+
let next = propSpec[i++];
|
|
1475
|
+
if (next >= 0) {
|
|
1476
|
+
setProp(next, prop, propSpec[i++]);
|
|
1477
|
+
} else {
|
|
1478
|
+
let value = propSpec[i + -next];
|
|
1479
|
+
for (let j = -next; j > 0; j--)
|
|
1480
|
+
setProp(propSpec[i++], prop, value);
|
|
1481
|
+
i++;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
this.nodeSet = new NodeSet(nodeNames.map((name, i) => NodeType.define({
|
|
1486
|
+
name: i >= this.minRepeatTerm ? void 0 : name,
|
|
1487
|
+
id: i,
|
|
1488
|
+
props: nodeProps[i],
|
|
1489
|
+
top: topTerms.indexOf(i) > -1,
|
|
1490
|
+
error: i == 0,
|
|
1491
|
+
skipped: spec.skippedNodes && spec.skippedNodes.indexOf(i) > -1
|
|
1492
|
+
})));
|
|
1493
|
+
if (spec.propSources)
|
|
1494
|
+
this.nodeSet = this.nodeSet.extend(...spec.propSources);
|
|
1495
|
+
this.strict = false;
|
|
1496
|
+
this.bufferLength = DefaultBufferLength;
|
|
1497
|
+
let tokenArray = decodeArray(spec.tokenData);
|
|
1498
|
+
this.context = spec.context;
|
|
1499
|
+
this.specializerSpecs = spec.specialized || [];
|
|
1500
|
+
this.specialized = new Uint16Array(this.specializerSpecs.length);
|
|
1501
|
+
for (let i = 0; i < this.specializerSpecs.length; i++)
|
|
1502
|
+
this.specialized[i] = this.specializerSpecs[i].term;
|
|
1503
|
+
this.specializers = this.specializerSpecs.map(getSpecializer);
|
|
1504
|
+
this.states = decodeArray(spec.states, Uint32Array);
|
|
1505
|
+
this.data = decodeArray(spec.stateData);
|
|
1506
|
+
this.goto = decodeArray(spec.goto);
|
|
1507
|
+
this.maxTerm = spec.maxTerm;
|
|
1508
|
+
this.tokenizers = spec.tokenizers.map((value) => typeof value == "number" ? new TokenGroup(tokenArray, value) : value);
|
|
1509
|
+
this.topRules = spec.topRules;
|
|
1510
|
+
this.dialects = spec.dialects || {};
|
|
1511
|
+
this.dynamicPrecedences = spec.dynamicPrecedences || null;
|
|
1512
|
+
this.tokenPrecTable = spec.tokenPrec;
|
|
1513
|
+
this.termNames = spec.termNames || null;
|
|
1514
|
+
this.maxNode = this.nodeSet.types.length - 1;
|
|
1515
|
+
this.dialect = this.parseDialect();
|
|
1516
|
+
this.top = this.topRules[Object.keys(this.topRules)[0]];
|
|
1517
|
+
}
|
|
1518
|
+
createParse(input, fragments, ranges) {
|
|
1519
|
+
let parse = new Parse(this, input, fragments, ranges);
|
|
1520
|
+
for (let w of this.wrappers)
|
|
1521
|
+
parse = w(parse, input, fragments, ranges);
|
|
1522
|
+
return parse;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
Get a goto table entry @internal
|
|
1526
|
+
*/
|
|
1527
|
+
getGoto(state, term, loose = false) {
|
|
1528
|
+
let table = this.goto;
|
|
1529
|
+
if (term >= table[0])
|
|
1530
|
+
return -1;
|
|
1531
|
+
for (let pos = table[term + 1]; ; ) {
|
|
1532
|
+
let groupTag = table[pos++], last = groupTag & 1;
|
|
1533
|
+
let target = table[pos++];
|
|
1534
|
+
if (last && loose)
|
|
1535
|
+
return target;
|
|
1536
|
+
for (let end = pos + (groupTag >> 1); pos < end; pos++)
|
|
1537
|
+
if (table[pos] == state)
|
|
1538
|
+
return target;
|
|
1539
|
+
if (last)
|
|
1540
|
+
return -1;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
Check if this state has an action for a given terminal @internal
|
|
1545
|
+
*/
|
|
1546
|
+
hasAction(state, terminal) {
|
|
1547
|
+
let data = this.data;
|
|
1548
|
+
for (let set = 0; set < 2; set++) {
|
|
1549
|
+
for (let i = this.stateSlot(
|
|
1550
|
+
state,
|
|
1551
|
+
set ? 2 : 1
|
|
1552
|
+
/* ParseState.Actions */
|
|
1553
|
+
), next; ; i += 3) {
|
|
1554
|
+
if ((next = data[i]) == 65535) {
|
|
1555
|
+
if (data[i + 1] == 1)
|
|
1556
|
+
next = data[i = pair(data, i + 2)];
|
|
1557
|
+
else if (data[i + 1] == 2)
|
|
1558
|
+
return pair(data, i + 2);
|
|
1559
|
+
else
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
if (next == terminal || next == 0)
|
|
1563
|
+
return pair(data, i + 1);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
return 0;
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
@internal
|
|
1570
|
+
*/
|
|
1571
|
+
stateSlot(state, slot) {
|
|
1572
|
+
return this.states[state * 6 + slot];
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
@internal
|
|
1576
|
+
*/
|
|
1577
|
+
stateFlag(state, flag) {
|
|
1578
|
+
return (this.stateSlot(
|
|
1579
|
+
state,
|
|
1580
|
+
0
|
|
1581
|
+
/* ParseState.Flags */
|
|
1582
|
+
) & flag) > 0;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
@internal
|
|
1586
|
+
*/
|
|
1587
|
+
validAction(state, action) {
|
|
1588
|
+
return !!this.allActions(state, (a) => a == action ? true : null);
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
@internal
|
|
1592
|
+
*/
|
|
1593
|
+
allActions(state, action) {
|
|
1594
|
+
let deflt = this.stateSlot(
|
|
1595
|
+
state,
|
|
1596
|
+
4
|
|
1597
|
+
/* ParseState.DefaultReduce */
|
|
1598
|
+
);
|
|
1599
|
+
let result = deflt ? action(deflt) : void 0;
|
|
1600
|
+
for (let i = this.stateSlot(
|
|
1601
|
+
state,
|
|
1602
|
+
1
|
|
1603
|
+
/* ParseState.Actions */
|
|
1604
|
+
); result == null; i += 3) {
|
|
1605
|
+
if (this.data[i] == 65535) {
|
|
1606
|
+
if (this.data[i + 1] == 1)
|
|
1607
|
+
i = pair(this.data, i + 2);
|
|
1608
|
+
else
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
result = action(pair(this.data, i + 1));
|
|
1612
|
+
}
|
|
1613
|
+
return result;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
Get the states that can follow this one through shift actions or
|
|
1617
|
+
goto jumps. @internal
|
|
1618
|
+
*/
|
|
1619
|
+
nextStates(state) {
|
|
1620
|
+
let result = [];
|
|
1621
|
+
for (let i = this.stateSlot(
|
|
1622
|
+
state,
|
|
1623
|
+
1
|
|
1624
|
+
/* ParseState.Actions */
|
|
1625
|
+
); ; i += 3) {
|
|
1626
|
+
if (this.data[i] == 65535) {
|
|
1627
|
+
if (this.data[i + 1] == 1)
|
|
1628
|
+
i = pair(this.data, i + 2);
|
|
1629
|
+
else
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
if ((this.data[i + 2] & 65536 >> 16) == 0) {
|
|
1633
|
+
let value = this.data[i + 1];
|
|
1634
|
+
if (!result.some((v, i2) => i2 & 1 && v == value))
|
|
1635
|
+
result.push(this.data[i], value);
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
return result;
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
Configure the parser. Returns a new parser instance that has the
|
|
1642
|
+
given settings modified. Settings not provided in `config` are
|
|
1643
|
+
kept from the original parser.
|
|
1644
|
+
*/
|
|
1645
|
+
configure(config) {
|
|
1646
|
+
let copy = Object.assign(Object.create(_LRParser.prototype), this);
|
|
1647
|
+
if (config.props)
|
|
1648
|
+
copy.nodeSet = this.nodeSet.extend(...config.props);
|
|
1649
|
+
if (config.top) {
|
|
1650
|
+
let info = this.topRules[config.top];
|
|
1651
|
+
if (!info)
|
|
1652
|
+
throw new RangeError(`Invalid top rule name ${config.top}`);
|
|
1653
|
+
copy.top = info;
|
|
1654
|
+
}
|
|
1655
|
+
if (config.tokenizers)
|
|
1656
|
+
copy.tokenizers = this.tokenizers.map((t) => {
|
|
1657
|
+
let found = config.tokenizers.find((r) => r.from == t);
|
|
1658
|
+
return found ? found.to : t;
|
|
1659
|
+
});
|
|
1660
|
+
if (config.specializers) {
|
|
1661
|
+
copy.specializers = this.specializers.slice();
|
|
1662
|
+
copy.specializerSpecs = this.specializerSpecs.map((s, i) => {
|
|
1663
|
+
let found = config.specializers.find((r) => r.from == s.external);
|
|
1664
|
+
if (!found)
|
|
1665
|
+
return s;
|
|
1666
|
+
let spec = Object.assign(Object.assign({}, s), { external: found.to });
|
|
1667
|
+
copy.specializers[i] = getSpecializer(spec);
|
|
1668
|
+
return spec;
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
if (config.contextTracker)
|
|
1672
|
+
copy.context = config.contextTracker;
|
|
1673
|
+
if (config.dialect)
|
|
1674
|
+
copy.dialect = this.parseDialect(config.dialect);
|
|
1675
|
+
if (config.strict != null)
|
|
1676
|
+
copy.strict = config.strict;
|
|
1677
|
+
if (config.wrap)
|
|
1678
|
+
copy.wrappers = copy.wrappers.concat(config.wrap);
|
|
1679
|
+
if (config.bufferLength != null)
|
|
1680
|
+
copy.bufferLength = config.bufferLength;
|
|
1681
|
+
return copy;
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
Tells you whether any [parse wrappers](#lr.ParserConfig.wrap)
|
|
1685
|
+
are registered for this parser.
|
|
1686
|
+
*/
|
|
1687
|
+
hasWrappers() {
|
|
1688
|
+
return this.wrappers.length > 0;
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
Returns the name associated with a given term. This will only
|
|
1692
|
+
work for all terms when the parser was generated with the
|
|
1693
|
+
`--names` option. By default, only the names of tagged terms are
|
|
1694
|
+
stored.
|
|
1695
|
+
*/
|
|
1696
|
+
getName(term) {
|
|
1697
|
+
return this.termNames ? this.termNames[term] : String(term <= this.maxNode && this.nodeSet.types[term].name || term);
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
The eof term id is always allocated directly after the node
|
|
1701
|
+
types. @internal
|
|
1702
|
+
*/
|
|
1703
|
+
get eofTerm() {
|
|
1704
|
+
return this.maxNode + 1;
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
The type of top node produced by the parser.
|
|
1708
|
+
*/
|
|
1709
|
+
get topNode() {
|
|
1710
|
+
return this.nodeSet.types[this.top[1]];
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
@internal
|
|
1714
|
+
*/
|
|
1715
|
+
dynamicPrecedence(term) {
|
|
1716
|
+
let prec = this.dynamicPrecedences;
|
|
1717
|
+
return prec == null ? 0 : prec[term] || 0;
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
@internal
|
|
1721
|
+
*/
|
|
1722
|
+
parseDialect(dialect) {
|
|
1723
|
+
let values = Object.keys(this.dialects), flags = values.map(() => false);
|
|
1724
|
+
if (dialect)
|
|
1725
|
+
for (let part of dialect.split(" ")) {
|
|
1726
|
+
let id2 = values.indexOf(part);
|
|
1727
|
+
if (id2 >= 0)
|
|
1728
|
+
flags[id2] = true;
|
|
1729
|
+
}
|
|
1730
|
+
let disabled = null;
|
|
1731
|
+
for (let i = 0; i < values.length; i++)
|
|
1732
|
+
if (!flags[i]) {
|
|
1733
|
+
for (let j = this.dialects[values[i]], id2; (id2 = this.data[j++]) != 65535; )
|
|
1734
|
+
(disabled || (disabled = new Uint8Array(this.maxTerm + 1)))[id2] = 1;
|
|
1735
|
+
}
|
|
1736
|
+
return new Dialect(dialect, flags, disabled);
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
Used by the output of the parser generator. Not available to
|
|
1740
|
+
user code. @hide
|
|
1741
|
+
*/
|
|
1742
|
+
static deserialize(spec) {
|
|
1743
|
+
return new _LRParser(spec);
|
|
1744
|
+
}
|
|
1745
|
+
};
|
|
1746
|
+
function pair(data, off) {
|
|
1747
|
+
return data[off] | data[off + 1] << 16;
|
|
1748
|
+
}
|
|
1749
|
+
function findFinished(stacks) {
|
|
1750
|
+
let best = null;
|
|
1751
|
+
for (let stack of stacks) {
|
|
1752
|
+
let stopped = stack.p.stoppedAt;
|
|
1753
|
+
if ((stack.pos == stack.p.stream.end || stopped != null && stack.pos > stopped) && stack.p.parser.stateFlag(
|
|
1754
|
+
stack.state,
|
|
1755
|
+
2
|
|
1756
|
+
/* StateFlag.Accepting */
|
|
1757
|
+
) && (!best || best.score < stack.score))
|
|
1758
|
+
best = stack;
|
|
1759
|
+
}
|
|
1760
|
+
return best;
|
|
1761
|
+
}
|
|
1762
|
+
function getSpecializer(spec) {
|
|
1763
|
+
if (spec.external) {
|
|
1764
|
+
let mask = spec.extend ? 1 : 0;
|
|
1765
|
+
return (value, stack) => spec.external(value, stack) << 1 | mask;
|
|
1766
|
+
}
|
|
1767
|
+
return spec.get;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
export {
|
|
1771
|
+
LocalTokenGroup,
|
|
1772
|
+
ExternalTokenizer,
|
|
1773
|
+
ContextTracker,
|
|
1774
|
+
LRParser
|
|
1775
|
+
};
|
|
1776
|
+
//# sourceMappingURL=chunk-44CLUOQE.js.map
|