@tomorrowos/sdk 0.3.0 → 0.3.1
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/dist/tomorrowos.js +1 -1
- package/package.json +1 -1
- package/templates/cms-starter/node_modules/.bin/esbuild +16 -0
- package/templates/cms-starter/node_modules/.bin/esbuild.cmd +17 -0
- package/templates/cms-starter/node_modules/.bin/esbuild.ps1 +28 -0
- package/templates/cms-starter/node_modules/.bin/tomorrowos +16 -0
- package/templates/cms-starter/node_modules/.bin/tomorrowos.cmd +17 -0
- package/templates/cms-starter/node_modules/.bin/tomorrowos.ps1 +28 -0
- package/templates/cms-starter/node_modules/.bin/tsc +16 -0
- package/templates/cms-starter/node_modules/.bin/tsc.cmd +17 -0
- package/templates/cms-starter/node_modules/.bin/tsc.ps1 +28 -0
- package/templates/cms-starter/node_modules/.bin/tsserver +16 -0
- package/templates/cms-starter/node_modules/.bin/tsserver.cmd +17 -0
- package/templates/cms-starter/node_modules/.bin/tsserver.ps1 +28 -0
- package/templates/cms-starter/node_modules/.bin/tsx +16 -0
- package/templates/cms-starter/node_modules/.bin/tsx.cmd +17 -0
- package/templates/cms-starter/node_modules/.bin/tsx.ps1 +28 -0
- package/templates/cms-starter/node_modules/.package-lock.json +140 -0
- package/templates/cms-starter/node_modules/@esbuild/win32-x64/README.md +3 -0
- package/templates/cms-starter/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
- package/templates/cms-starter/node_modules/@esbuild/win32-x64/package.json +20 -0
- package/templates/cms-starter/node_modules/@types/node/LICENSE +21 -0
- package/templates/cms-starter/node_modules/@types/node/README.md +15 -0
- package/templates/cms-starter/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/templates/cms-starter/node_modules/@types/node/assert.d.ts +1062 -0
- package/templates/cms-starter/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/templates/cms-starter/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/templates/cms-starter/node_modules/@types/node/buffer.d.ts +1936 -0
- package/templates/cms-starter/node_modules/@types/node/child_process.d.ts +1475 -0
- package/templates/cms-starter/node_modules/@types/node/cluster.d.ts +577 -0
- package/templates/cms-starter/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/templates/cms-starter/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/templates/cms-starter/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/templates/cms-starter/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/templates/cms-starter/node_modules/@types/node/console.d.ts +452 -0
- package/templates/cms-starter/node_modules/@types/node/constants.d.ts +21 -0
- package/templates/cms-starter/node_modules/@types/node/crypto.d.ts +4590 -0
- package/templates/cms-starter/node_modules/@types/node/dgram.d.ts +597 -0
- package/templates/cms-starter/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/templates/cms-starter/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/templates/cms-starter/node_modules/@types/node/dns.d.ts +871 -0
- package/templates/cms-starter/node_modules/@types/node/domain.d.ts +170 -0
- package/templates/cms-starter/node_modules/@types/node/events.d.ts +977 -0
- package/templates/cms-starter/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/templates/cms-starter/node_modules/@types/node/fs.d.ts +4375 -0
- package/templates/cms-starter/node_modules/@types/node/globals.d.ts +172 -0
- package/templates/cms-starter/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/templates/cms-starter/node_modules/@types/node/http.d.ts +2049 -0
- package/templates/cms-starter/node_modules/@types/node/http2.d.ts +2708 -0
- package/templates/cms-starter/node_modules/@types/node/https.d.ts +578 -0
- package/templates/cms-starter/node_modules/@types/node/index.d.ts +93 -0
- package/templates/cms-starter/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/templates/cms-starter/node_modules/@types/node/module.d.ts +539 -0
- package/templates/cms-starter/node_modules/@types/node/net.d.ts +1031 -0
- package/templates/cms-starter/node_modules/@types/node/os.d.ts +506 -0
- package/templates/cms-starter/node_modules/@types/node/package.json +140 -0
- package/templates/cms-starter/node_modules/@types/node/path.d.ts +200 -0
- package/templates/cms-starter/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/templates/cms-starter/node_modules/@types/node/process.d.ts +1961 -0
- package/templates/cms-starter/node_modules/@types/node/punycode.d.ts +117 -0
- package/templates/cms-starter/node_modules/@types/node/querystring.d.ts +152 -0
- package/templates/cms-starter/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/templates/cms-starter/node_modules/@types/node/readline.d.ts +589 -0
- package/templates/cms-starter/node_modules/@types/node/repl.d.ts +430 -0
- package/templates/cms-starter/node_modules/@types/node/sea.d.ts +153 -0
- package/templates/cms-starter/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/templates/cms-starter/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/templates/cms-starter/node_modules/@types/node/stream/web.d.ts +533 -0
- package/templates/cms-starter/node_modules/@types/node/stream.d.ts +1698 -0
- package/templates/cms-starter/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/templates/cms-starter/node_modules/@types/node/test.d.ts +1787 -0
- package/templates/cms-starter/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/templates/cms-starter/node_modules/@types/node/timers.d.ts +286 -0
- package/templates/cms-starter/node_modules/@types/node/tls.d.ts +1259 -0
- package/templates/cms-starter/node_modules/@types/node/trace_events.d.ts +197 -0
- package/templates/cms-starter/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/templates/cms-starter/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/templates/cms-starter/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/templates/cms-starter/node_modules/@types/node/tty.d.ts +208 -0
- package/templates/cms-starter/node_modules/@types/node/url.d.ts +964 -0
- package/templates/cms-starter/node_modules/@types/node/util.d.ts +2331 -0
- package/templates/cms-starter/node_modules/@types/node/v8.d.ts +809 -0
- package/templates/cms-starter/node_modules/@types/node/vm.d.ts +1001 -0
- package/templates/cms-starter/node_modules/@types/node/wasi.d.ts +181 -0
- package/templates/cms-starter/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/templates/cms-starter/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/templates/cms-starter/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/templates/cms-starter/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/templates/cms-starter/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/templates/cms-starter/node_modules/@types/node/zlib.d.ts +598 -0
- package/templates/cms-starter/node_modules/esbuild/LICENSE.md +21 -0
- package/templates/cms-starter/node_modules/esbuild/README.md +3 -0
- package/templates/cms-starter/node_modules/esbuild/bin/esbuild +223 -0
- package/templates/cms-starter/node_modules/esbuild/install.js +300 -0
- package/templates/cms-starter/node_modules/esbuild/lib/main.d.ts +716 -0
- package/templates/cms-starter/node_modules/esbuild/lib/main.js +2532 -0
- package/templates/cms-starter/node_modules/esbuild/package.json +74 -0
- package/templates/cms-starter/node_modules/tsx/LICENSE +21 -0
- package/templates/cms-starter/node_modules/tsx/README.md +32 -0
- package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
- package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
- package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/cjs/index.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/cli.cjs +54 -0
- package/templates/cms-starter/node_modules/tsx/dist/cli.mjs +55 -0
- package/templates/cms-starter/node_modules/tsx/dist/client-D3mGB526.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.d.cts +35 -0
- package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.d.mts +35 -0
- package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/esm/index.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/esm/index.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/get-pipe-path-D4YM6rQt.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/index-BWFBUo6r.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/index-D9F1FXzN.cjs +14 -0
- package/templates/cms-starter/node_modules/tsx/dist/index-XurvG3JN.mjs +14 -0
- package/templates/cms-starter/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/templates/cms-starter/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +3 -0
- package/templates/cms-starter/node_modules/tsx/dist/loader.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/loader.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/node-features-CQLdkVE6.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/package-CGdS2_oX.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/package-DyJMwVU5.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/patch-repl.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/preflight.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/preflight.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/register-BOkp8V6j.cjs +10 -0
- package/templates/cms-starter/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
- package/templates/cms-starter/node_modules/tsx/dist/register-CHVGxKtC.cjs +2 -0
- package/templates/cms-starter/node_modules/tsx/dist/register-D_B8UL5H.mjs +2 -0
- package/templates/cms-starter/node_modules/tsx/dist/repl.cjs +3 -0
- package/templates/cms-starter/node_modules/tsx/dist/repl.mjs +3 -0
- package/templates/cms-starter/node_modules/tsx/dist/require-CjvaJWEr.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/require-DzmC1hVr.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
- package/templates/cms-starter/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/templates/cms-starter/node_modules/tsx/package.json +67 -0
- package/templates/cms-starter/node_modules/typescript/LICENSE.txt +55 -0
- package/templates/cms-starter/node_modules/typescript/README.md +50 -0
- package/templates/cms-starter/node_modules/typescript/SECURITY.md +41 -0
- package/templates/cms-starter/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/templates/cms-starter/node_modules/typescript/bin/tsc +2 -0
- package/templates/cms-starter/node_modules/typescript/bin/tsserver +2 -0
- package/templates/cms-starter/node_modules/typescript/lib/_tsc.js +133818 -0
- package/templates/cms-starter/node_modules/typescript/lib/_tsserver.js +659 -0
- package/templates/cms-starter/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/templates/cms-starter/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.d.ts +22 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/templates/cms-starter/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/tsc.js +8 -0
- package/templates/cms-starter/node_modules/typescript/lib/tsserver.js +8 -0
- package/templates/cms-starter/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/templates/cms-starter/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/templates/cms-starter/node_modules/typescript/lib/typesMap.json +497 -0
- package/templates/cms-starter/node_modules/typescript/lib/typescript.d.ts +11437 -0
- package/templates/cms-starter/node_modules/typescript/lib/typescript.js +200276 -0
- package/templates/cms-starter/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/templates/cms-starter/node_modules/typescript/lib/watchGuard.js +53 -0
- package/templates/cms-starter/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- package/templates/cms-starter/node_modules/typescript/package.json +120 -0
- package/templates/cms-starter/node_modules/undici-types/LICENSE +21 -0
- package/templates/cms-starter/node_modules/undici-types/README.md +6 -0
- package/templates/cms-starter/node_modules/undici-types/agent.d.ts +31 -0
- package/templates/cms-starter/node_modules/undici-types/api.d.ts +43 -0
- package/templates/cms-starter/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/templates/cms-starter/node_modules/undici-types/cache.d.ts +36 -0
- package/templates/cms-starter/node_modules/undici-types/client.d.ts +108 -0
- package/templates/cms-starter/node_modules/undici-types/connector.d.ts +34 -0
- package/templates/cms-starter/node_modules/undici-types/content-type.d.ts +21 -0
- package/templates/cms-starter/node_modules/undici-types/cookies.d.ts +28 -0
- package/templates/cms-starter/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/templates/cms-starter/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/templates/cms-starter/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/templates/cms-starter/node_modules/undici-types/errors.d.ts +149 -0
- package/templates/cms-starter/node_modules/undici-types/eventsource.d.ts +61 -0
- package/templates/cms-starter/node_modules/undici-types/fetch.d.ts +209 -0
- package/templates/cms-starter/node_modules/undici-types/file.d.ts +39 -0
- package/templates/cms-starter/node_modules/undici-types/filereader.d.ts +54 -0
- package/templates/cms-starter/node_modules/undici-types/formdata.d.ts +108 -0
- package/templates/cms-starter/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/templates/cms-starter/node_modules/undici-types/global-origin.d.ts +7 -0
- package/templates/cms-starter/node_modules/undici-types/handlers.d.ts +15 -0
- package/templates/cms-starter/node_modules/undici-types/header.d.ts +4 -0
- package/templates/cms-starter/node_modules/undici-types/index.d.ts +71 -0
- package/templates/cms-starter/node_modules/undici-types/interceptors.d.ts +17 -0
- package/templates/cms-starter/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/templates/cms-starter/node_modules/undici-types/mock-client.d.ts +25 -0
- package/templates/cms-starter/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/templates/cms-starter/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/templates/cms-starter/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/templates/cms-starter/node_modules/undici-types/package.json +55 -0
- package/templates/cms-starter/node_modules/undici-types/patch.d.ts +33 -0
- package/templates/cms-starter/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/templates/cms-starter/node_modules/undici-types/pool.d.ts +39 -0
- package/templates/cms-starter/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/templates/cms-starter/node_modules/undici-types/readable.d.ts +65 -0
- package/templates/cms-starter/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/templates/cms-starter/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/templates/cms-starter/node_modules/undici-types/util.d.ts +18 -0
- package/templates/cms-starter/node_modules/undici-types/webidl.d.ts +228 -0
- package/templates/cms-starter/node_modules/undici-types/websocket.d.ts +150 -0
- package/templates/cms-starter/package-lock.json +592 -0
- package/templates/cms-starter/package.json +2 -2
- package/templates/cms-starter/public/methods.js +73 -18
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var yt=Object.defineProperty;var u=(e,t)=>yt(e,"name",{value:t,configurable:!0});import{r as bt}from"./get-pipe-path-_tAJyU_v.mjs";import $ from"node:module";import h from"node:path";import{fileURLToPath as q,pathToFileURL as xt}from"node:url";import R,{writeSync as wt}from"node:fs";import vt from"fs";import Et from"os";import Ct from"path";import{i as jt,b as Tt,a as St}from"./index-XurvG3JN.mjs";import{p as Ae}from"./client-D_mPDF5S.mjs";import{inspect as Ot}from"node:util";import{b as At,a as $t,c as Pt,d as Dt,o as $e}from"./index-gbaejti9.mjs";import{i as _t,r as Lt}from"./node-features-B9BBLzwu.mjs";const Pe=u(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),De=u(e=>{const t=Pe(e);return t&&($._cache[t]=$._cache[e],delete $._cache[e],e=t),e},"interopCjsExports"),_e=u(e=>e!==null&&typeof e=="object","A"),W=u((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Le="ERR_INVALID_PACKAGE_CONFIG",ue="ERR_INVALID_PACKAGE_TARGET",Ut="ERR_PACKAGE_PATH_NOT_EXPORTED",Ft=/^\d+$/,Rt=/^(\.{1,2}|node_modules)$/i,It=/\/|\\/;var Ue=(e=>(e.Export="exports",e.Import="imports",e))(Ue||{});const fe=u((e,t,r,n,s)=>{if(t==null)return[];if(typeof t=="string"){const[o,...a]=t.split(It);if(o===".."||a.some(i=>Rt.test(i)))throw W(ue,`Invalid "${e}" target "${t}" defined in the package config`);return[s?t.replace(/\*/g,s):t]}if(Array.isArray(t))return t.flatMap(o=>fe(e,o,r,n,s));if(_e(t)){for(const o of Object.keys(t)){if(Ft.test(o))throw W(Le,"Cannot contain numeric property keys");if(o==="default"||n.includes(o))return fe(e,t[o],r,n,s)}return[]}throw W(ue,`Invalid "${e}" target "${t}"`)},"f"),G="*",Nt=u((e,t)=>{const r=e.indexOf(G),n=t.indexOf(G);return r===n?t.length>e.length:n>r},"m");function Bt(e,t){if(!t.includes(G)&&e.hasOwnProperty(t))return[t];let r,n;for(const s of Object.keys(e))if(s.includes(G)){const[o,a,i]=s.split(G);if(i===void 0&&t.startsWith(o)&&t.endsWith(a)){const d=t.slice(o.length,-a.length||void 0);d&&(!r||Nt(r,s))&&(r=s,n=d)}}return[r,n]}u(Bt,"d");const Wt=u(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw W(Le,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Mt=/^\w+:/,Jt=u((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||_e(e)&&Wt(e))&&(e={".":e});const[n,s]=Bt(e,t),o=fe(Ue.Export,e[n],t,r,s);if(o.length===0)throw W(Ut,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of o)if(!a.startsWith("./")&&!Mt.test(a))throw W(ue,`Invalid "exports" target "${a}" defined in the package config`);return o},"v");var Vt=Object.defineProperty,c=u((e,t)=>Vt(e,"name",{value:t,configurable:!0}),"i");function A(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}u(A,"x"),c(A,"slash");const Gt=c((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=R.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),D=c((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=R.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),Q=c((e,t,r)=>{for(;;){const n=h.posix.join(e,t);if(D(r,n))return n;const s=h.dirname(e);if(s===e)return;e=s}},"findUp");function Fe(e,t=!1){const r=e.length;let n=0,s="",o=0,a=16,i=0,d=0,p=0,k=0,m=0;function v(l,C){let S=0,x=0;for(;S<l;){let y=e.charCodeAt(n);if(y>=48&&y<=57)x=x*16+y-48;else if(y>=65&&y<=70)x=x*16+y-65+10;else if(y>=97&&y<=102)x=x*16+y-97+10;else break;n++,S++}return S<l&&(x=-1),x}u(v,"A"),c(v,"scanHexDigits");function w(l){n=l,s="",o=0,a=16,m=0}u(w,"O"),c(w,"setPosition");function b(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&I(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&I(e.charCodeAt(n)))for(n++;n<e.length&&I(e.charCodeAt(n));)n++;else return m=3,e.substring(l,n);let C=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&I(e.charCodeAt(n))){for(n++;n<e.length&&I(e.charCodeAt(n));)n++;C=n}else m=3;return e.substring(l,C)}u(b,"h"),c(b,"scanNumber");function E(){let l="",C=n;for(;;){if(n>=r){l+=e.substring(C,n),m=2;break}const S=e.charCodeAt(n);if(S===34){l+=e.substring(C,n),n++;break}if(S===92){if(l+=e.substring(C,n),n++,n>=r){m=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
2
|
+
`;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const x=v(4);x>=0?l+=String.fromCharCode(x):m=4;break;default:m=5}C=n;continue}if(S>=0&&S<=31)if(M(S)){l+=e.substring(C,n),m=2;break}else m=6;n++}return l}u(E,"D"),c(E,"scanString");function f(){if(s="",m=0,o=n,d=i,k=p,n>=r)return o=r,a=17;let l=e.charCodeAt(n);if(ee(l)){do n++,s+=String.fromCharCode(l),l=e.charCodeAt(n);while(ee(l));return a=15}if(M(l))return n++,s+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,s+=`
|
|
3
|
+
`),i++,p=n,a=14;switch(l){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,s=E(),a=10;case 47:const C=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!M(e.charCodeAt(n));)n++;return s=e.substring(C,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;const S=r-1;let x=!1;for(;n<S;){const y=e.charCodeAt(n);if(y===42&&e.charCodeAt(n+1)===47){n+=2,x=!0;break}n++,M(y)&&(y===13&&e.charCodeAt(n)===10&&n++,i++,p=n)}return x||(n++,m=1),s=e.substring(C,n),a=13}return s+=String.fromCharCode(l),n++,a=16;case 45:if(s+=String.fromCharCode(l),n++,n===r||!I(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=b(),a=11;default:for(;n<r&&g(l);)n++,l=e.charCodeAt(n);if(o!==n){switch(s=e.substring(o,n),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(l),n++,a=16}}u(f,"c"),c(f,"scanNext");function g(l){if(ee(l)||M(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}u(g,"p"),c(g,"isUnknownContentCharacter");function T(){let l;do l=f();while(l>=12&&l<=15);return l}return u(T,"b"),c(T,"scanNextNonTrivia"),{setPosition:w,getPosition:c(()=>n,"getPosition"),scan:t?T:f,getToken:c(()=>a,"getToken"),getTokenValue:c(()=>s,"getTokenValue"),getTokenOffset:c(()=>o,"getTokenOffset"),getTokenLength:c(()=>n-o,"getTokenLength"),getTokenStartLine:c(()=>d,"getTokenStartLine"),getTokenStartCharacter:c(()=>o-k,"getTokenStartCharacter"),getTokenError:c(()=>m,"getTokenError")}}u(Fe,"Ne"),c(Fe,"createScanner");function ee(e){return e===32||e===9}u(ee,"X"),c(ee,"isWhiteSpace");function M(e){return e===10||e===13}u(M,"P"),c(M,"isLineBreak");function I(e){return e>=48&&e<=57}u(I,"S"),c(I,"isDigit");var Re;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Re||(Re={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const J=200;new Array(J).fill(0).map((e,t)=>`
|
|
4
|
+
`+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>`\r
|
|
5
|
+
`+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>`
|
|
6
|
+
`+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>`\r
|
|
7
|
+
`+" ".repeat(t));var te;(function(e){e.DEFAULT={allowTrailingComma:!1}})(te||(te={}));function Ie(e,t=[],r=te.DEFAULT){let n=null,s=[];const o=[];function a(i){Array.isArray(s)?s.push(i):n!==null&&(s[n]=i)}return u(a,"l"),c(a,"onValue"),Ne(e,{onObjectBegin:c(()=>{const i={};a(i),o.push(s),s=i,n=null},"onObjectBegin"),onObjectProperty:c(i=>{n=i},"onObjectProperty"),onObjectEnd:c(()=>{s=o.pop()},"onObjectEnd"),onArrayBegin:c(()=>{const i=[];a(i),o.push(s),s=i,n=null},"onArrayBegin"),onArrayEnd:c(()=>{s=o.pop()},"onArrayEnd"),onLiteralValue:a,onError:c((i,d,p)=>{t.push({error:i,offset:d,length:p})},"onError")},r),s[0]}u(Ie,"Re"),c(Ie,"parse$1");function Ne(e,t,r=te.DEFAULT){const n=Fe(e,!1),s=[];let o=0;function a(j){return j?()=>o===0&&j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}u(a,"l"),c(a,"toNoArgVisit");function i(j){return j?O=>o===0&&j(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}u(i,"g"),c(i,"toOneArgVisit");function d(j){return j?O=>o===0&&j(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>s.slice()):()=>!0}u(d,"m"),c(d,"toOneArgVisitWithPath");function p(j){return j?()=>{o>0?o++:j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>s.slice())===!1&&(o=1)}:()=>!0}u(p,"k"),c(p,"toBeginVisit");function k(j){return j?()=>{o>0&&o--,o===0&&j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}u(k,"w"),c(k,"toEndVisit");const m=p(t.onObjectBegin),v=d(t.onObjectProperty),w=k(t.onObjectEnd),b=p(t.onArrayBegin),E=k(t.onArrayEnd),f=d(t.onLiteralValue),g=i(t.onSeparator),T=a(t.onComment),l=i(t.onError),C=r&&r.disallowComments,S=r&&r.allowTrailingComma;function x(){for(;;){const j=n.scan();switch(n.getTokenError()){case 4:y(14);break;case 5:y(15);break;case 3:y(13);break;case 1:C||y(11);break;case 2:y(12);break;case 6:y(16);break}switch(j){case 12:case 13:C?y(10):T();break;case 16:y(1);break;case 15:case 14:break;default:return j}}}u(x,"v"),c(x,"scanNext");function y(j,O=[],Oe=[]){if(l(j),O.length+Oe.length>0){let Z=n.getToken();for(;Z!==17;){if(O.indexOf(Z)!==-1){x();break}else if(Oe.indexOf(Z)!==-1)break;Z=x()}}}u(y,"d"),c(y,"handleError");function _(j){const O=n.getTokenValue();return j?f(O):(v(O),s.push(O)),x(),!0}u(_,"L"),c(_,"parseString");function L(){switch(n.getToken()){case 11:const j=n.getTokenValue();let O=Number(j);isNaN(O)&&(y(2),O=0),f(O);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return x(),!0}u(L,"B"),c(L,"parseLiteral");function P(){return n.getToken()!==10?(y(3,[],[2,5]),!1):(_(!1),n.getToken()===6?(g(":"),x(),Y()||y(4,[],[2,5])):y(5,[],[2,5]),s.pop(),!0)}u(P,"$"),c(P,"parseProperty");function B(){m(),x();let j=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(j||y(4,[],[]),g(","),x(),n.getToken()===2&&S)break}else j&&y(6,[],[]);P()||y(4,[],[2,5]),j=!0}return w(),n.getToken()!==2?y(7,[2],[]):x(),!0}u(B,"N"),c(B,"parseObject");function Se(){b(),x();let j=!0,O=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(O||y(4,[],[]),g(","),x(),n.getToken()===4&&S)break}else O&&y(6,[],[]);j?(s.push(0),j=!1):s[s.length-1]++,Y()||y(4,[],[4,5]),O=!0}return E(),j||s.pop(),n.getToken()!==4?y(8,[4],[]):x(),!0}u(Se,"$e"),c(Se,"parseArray");function Y(){switch(n.getToken()){case 3:return Se();case 1:return B();case 10:return _(!0);default:return L()}}return u(Y,"H"),c(Y,"parseValue"),x(),n.getToken()===17?r.allowEmptyContent?!0:(y(4,[],[]),!1):Y()?(n.getToken()!==17&&y(9,[],[]),!0):(y(4,[],[]),!1)}u(Ne,"Pe"),c(Ne,"visit");var Be;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Be||(Be={}));var We;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(We||(We={}));const Qt=Ie;var Me;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Me||(Me={}));const de=c((e,t)=>Qt(Gt(t,e)),"readJsonc"),Je=c(()=>{const{findPnpApi:e}=$;return e&&e(process.cwd())},"getPnpApi"),Kt="detectTypeScriptVersion:",zt=c((e,t)=>{const r=`${Kt}${e}`,n=t?.get(r);if(n!==void 0)return n??void 0;let s;const o=Je();if(o)try{s=o.resolveRequest("typescript/package.json",e)??void 0}catch{}s??=Q(h.resolve(e),h.join("node_modules","typescript","package.json"),t);let a;if(s)try{const i=de(s,t);typeof i?.version=="string"&&(a=i.version)}catch{}return t?.set(r,a??null),a},"detectTypeScriptVersion"),N="package.json",ne="tsconfig.json",Ht=c((e,t,r)=>{const n=$.createRequire(h.join(r,"tsconfig.json"));if(e!==t)try{return n.resolve(e)}catch{}try{return n.resolve(t)}catch{}try{return n.resolve(`${t}/${N}`)}catch{}},"resolvePackageEntryWithNode"),me=c((e,t,r,n)=>{const s=`resolveFromPackageJsonPath:${e}:${t}:${r}`;if(n?.has(s))return n.get(s)||!1;const o=de(e,n);if(!o)return;let a=t||ne;if(!r&&o.exports)try{const[i]=Jt(o.exports,t,["require","types"]);a=i}catch{return n?.set(s,""),!1}else!t&&o.tsconfig&&(a=o.tsconfig);return a=h.join(e,"..",a),n?.set(s,a),a},"resolveFromPackageJsonPath"),Xt=c((e,t,r)=>{const n=`resolveExtendsPath:${e}:${t}`;if(r?.has(n))return r.get(n)||void 0;const s=Yt(e,t,r);return r?.set(n,s||""),s},"resolveExtendsPath"),Yt=c((e,t,r)=>{let n=e;if(e===".."&&(n=h.join(n,ne)),e[0]==="."&&(n=h.resolve(t,n)),h.isAbsolute(n)){const f=D(r,n);if(f){if(f.isFile())return n}else if(!n.endsWith(".json")){const g=`${n}.json`;if(D(r,g))return g}return}const[s,...o]=e.split("/"),a=s[0]==="@"?`${s}/${o.shift()}`:s,i=o.join("/"),d=Je();if(d){const{resolveRequest:f}=d;try{if(a===e){const g=f(h.join(a,N),t);if(g){const T=me(g,i,!1,r);if(T&&D(r,T))return T}}else{let g;try{g=f(e,t,{extensions:[".json"]})}catch{g=f(h.join(e,ne),t)}if(g)return g}}catch{}}const p=Ht(e,a,t);let k;if(p){if(h.basename(p)!==N&&p.endsWith(".json"))return p;k=h.basename(p)===N?p:Q(h.dirname(p),N,r)}const m=k&&h.dirname(k)||Q(h.resolve(t),h.join("node_modules",a),r);if(!m||!D(r,m)?.isDirectory())return;const v=h.join(m,N);if(D(r,v)){const f=me(v,i,!1,r);if(f===!1)return;if(f&&D(r,f)?.isFile())return f}const w=h.join(m,i),b=w.endsWith(".json");if(!b){const f=`${w}.json`;if(D(r,f))return f}const E=D(r,w);if(E){if(E.isDirectory()){const f=h.join(w,N);if(D(r,f)){const T=me(f,"",!0,r);if(T&&D(r,T))return T}const g=h.join(w,ne);if(D(r,g))return g}else if(b)return w}},"resolveExtendsPathUncached"),he=Symbol("implicitBaseUrl"),U="${configDir}",ge=/^\.{1,2}(\/.*)?$/,re=c(e=>{const t=A(e);return ge.test(t)?t:`./${t}`},"normalizeRelativePath"),Zt=c(e=>{const t={...e};if(t.strict){const r=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const n of r)t[n]===void 0&&(t[n]=!0)}if(t.composite&&(t.declaration??=!0,t.incremental??=!0),t.target){let r=t.target.toLowerCase();r==="es2015"&&(r="es6"),t.target=r,r==="esnext"&&(t.module??="es6",t.useDefineForClassFields??=!0),(r==="es6"||r==="es2016"||r==="es2017"||r==="es2018"||r==="es2019"||r==="es2020"||r==="es2021"||r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.module??="es6"),(r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.useDefineForClassFields??=!0)}if(t.module){let r=t.module.toLowerCase();if(r==="es2015"&&(r="es6"),t.module=r,(r==="es6"||r==="es2020"||r==="es2022"||r==="esnext"||r==="none"||r==="system"||r==="umd"||r==="amd")&&(t.moduleResolution??="classic"),r==="system"&&(t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext"||r==="preserve")&&(t.esModuleInterop??=!0,t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext")&&(t.moduleDetection??="force"),(r==="node16"||r==="node18")&&(t.target??="es2022",t.moduleResolution??="node16"),r==="node20"&&(t.target??="es2023",t.moduleResolution??="node16",t.resolveJsonModule??=!0),r==="nodenext"&&(t.target??="esnext",t.moduleResolution??="nodenext",t.resolveJsonModule??=!0),r==="node16"||r==="node18"||r==="node20"||r==="nodenext"){const n=t.target;(n==="es3"||n==="es2022"||n==="es2023"||n==="es2024"||n==="esnext")&&(t.useDefineForClassFields??=!0)}r==="preserve"&&(t.moduleResolution??="bundler")}if(t.moduleResolution){let r=t.moduleResolution.toLowerCase();r==="node"&&(r="node10"),t.moduleResolution=r,(r==="node16"||r==="nodenext"||r==="bundler")&&(t.resolvePackageJsonExports??=!0,t.resolvePackageJsonImports??=!0),r==="bundler"&&(t.allowSyntheticDefaultImports??=!0,t.resolveJsonModule??=!0)}for(const r of["jsx","moduleDetection","importsNotUsedAsValues","newLine"])t[r]&&(t[r]=t[r].toLowerCase());return t.esModuleInterop&&(t.allowSyntheticDefaultImports??=!0),t.verbatimModuleSyntax&&(t.isolatedModules??=!0,t.preserveConstEnums??=!0),t.isolatedModules&&(t.preserveConstEnums??=!0),t.rewriteRelativeImportExtensions&&(t.allowImportingTsExtensions??=!0),t.lib&&(t.lib=t.lib.map(r=>r.toLowerCase())),t.checkJs&&(t.allowJs??=!0),t},"normalizeCompilerOptions"),qt=c((e,t)=>{!t.has("target")&&!en(e.module)&&(e.target="es3")},"applyV4Defaults"),en=c(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget$1"),tn=c((e,t)=>{!t.has("target")&&!nn(e.module)&&(e.target="es5")},"applyV5Defaults"),nn=c(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget"),rn=c((e,t)=>{t.has("strict")||(e.strict=!0),t.has("target")||(e.target="es2025"),t.has("module")||(e.module="es2022"),t.has("moduleResolution")||(e.moduleResolution="bundler"),t.has("rootDir")||(e.rootDir="."),t.has("types")||(e.types=[]),t.has("noUncheckedSideEffectImports")||(e.noUncheckedSideEffectImports=!0),t.has("libReplacement")||(e.libReplacement=!1)},"applyV6Defaults"),sn=[[4,qt],[5,tn],[6,rn]],on=c(e=>{const t=/^v?(\d+)/.exec(e);return t?Number(t[1]):void 0},"parseMajor"),an=c((e,t)=>{const r=on(t);if(r===void 0)return;const n=new Set(Object.keys(e));for(const[s,o]of sn)s<=r&&o(e,n)},"applyVersionDefaults"),ke=c((e,t)=>re(h.relative(e,t)),"pathRelative"),Ve=["files","include","exclude"],Ge=c((e,t,r)=>{const n=h.join(t,r),s=h.relative(e,n);return A(s)||"./"},"resolveAndRelativize"),cn=c((e,t,r)=>{const n=h.relative(e,t);if(!n)return r;const s=r.startsWith("./")?r.slice(2):r;return A(`${n}/${s}`)},"prefixPattern"),Qe=["outDir","declarationDir"],se=c((e,t)=>{if(e.startsWith(U))return A(h.join(t,e.slice(U.length)))},"interpolateConfigDir"),ln=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],pn=c((e,t={})=>{if(e.length===0)throw new Error("Chain must not be empty");const{typescriptVersion:r}=t,n=new Map(e.map(m=>[m.path,m])),s=new Map,o=c(m=>{const v=s.get(m);if(v)return v;const w=n.get(m);if(!w)throw new Error(`Config not found in chain: ${m}`);const b=w.config,E=h.dirname(m);let f={...b,...b.compilerOptions&&{compilerOptions:{...b.compilerOptions}},...b.watchOptions&&{watchOptions:{...b.watchOptions}}};if(delete f.extends,f.compilerOptions?.paths&&!f.compilerOptions.baseUrl&&(f.compilerOptions[he]=E),b.extends){const g=Array.isArray(b.extends)?b.extends:[b.extends];for(const T of g.toReversed()){const l=o(T),C=h.dirname(T),{references:S,...x}=l;if(x.compilerOptions){const _={...x.compilerOptions};for(const L of["baseUrl","outDir","declarationDir","rootDir"]){const P=_[L];P&&!P.startsWith(U)&&(_[L]=Ge(E,C,P))}for(const L of["rootDirs","typeRoots"]){const P=_[L];P&&(_[L]=P.map(B=>B.startsWith(U)?B:Ge(E,C,B)))}x.compilerOptions=_}for(const _ of Ve){const L=x[_];L&&(x[_]=L.map(P=>P.startsWith(U)?P:cn(E,C,P)))}const y={...x,...f,compilerOptions:{...x.compilerOptions,...f.compilerOptions}};x.watchOptions&&(y.watchOptions={...x.watchOptions,...f.watchOptions}),f=y}}if(f.compilerOptions){const{compilerOptions:g}=f,T=["baseUrl","rootDir"];for(const l of T){const C=g[l];if(C&&!C.startsWith(U)){const S=h.resolve(E,C),x=ke(E,S);g[l]=x}}for(const l of Qe){let C=g[l];C&&(Array.isArray(f.exclude)||(f.exclude=Qe.map(S=>g[S]).filter(Boolean)),C.startsWith(U)||(C=re(C)),g[l]=C)}}else f.compilerOptions={};if(f.include&&(f.include=f.include.map(A)),f.files&&(f.files=f.files.map(g=>g.startsWith(U)?g:re(g))),f.watchOptions){const{watchOptions:g}=f;for(const T of["excludeDirectories","excludeFiles"])g[T]&&(g[T]=g[T].map(l=>A(h.resolve(E,l))));for(const T of["watchFile","watchDirectory","fallbackPolling"])if(g[T]){const l=g;l[T]=g[T].toLowerCase()}}return s.set(m,f),f},"resolveEntry"),a=e[0],i=o(a.path),d=h.dirname(a.path),p={...i,compilerOptions:i.compilerOptions?{...i.compilerOptions}:{}},{compilerOptions:k}=p;if(k){for(const m of ln){const v=k[m];if(v){const w=se(v,d);k[m]=w?ke(d,w):v}}for(const m of["rootDirs","typeRoots"]){const v=k[m];v&&(k[m]=v.map(w=>{const b=se(w,d);return b?ke(d,b):re(w)}))}if(k.paths){const m={};for(const[v,w]of Object.entries(k.paths))m[v]=w.map(b=>se(b,d)??b);k.paths=m}r&&an(k,r),p.compilerOptions=Zt(k)}for(const m of Ve){const v=p[m];v&&(p[m]=v.map(w=>se(w,d)??w))}return{path:a.path,config:p,sources:e.map(m=>m.path)}},"resolveExtendsChain"),un=c((e,t={})=>{const{cache:r=new Map}=t,n=h.resolve(e),s=[],o=new Set,a=c((i,d)=>{const p=A(i);if(o.has(p))return;o.add(p);let k;try{k=de(i,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${i}`)}if(typeof k!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${i}`);const m=h.dirname(i);if(k.extends){const v=Array.isArray(k.extends),w=(v?k.extends:[k.extends]).map(E=>{const f=Xt(E,m,r);if(!f)throw new Error(`File '${E}' not found.`);const g=A(f);if(d.has(g)||g===p)throw new Error(`Circularity detected while resolving configuration: ${g}`);return g});k.extends=v?w:w[0],s.push({path:p,config:k});const b=new Set(d);b.add(p);for(const E of[...w].reverse())a(E,b)}else s.push({path:p,config:k})},"collect");return a(n,new Set),s},"getExtendsChain"),ye=c((e,t={})=>{const{cache:r=new Map,typescriptVersion:n="auto"}=t,s=un(e,{cache:r});let o;return n==="auto"?o=zt(h.dirname(s[0].path),r):n!==!1&&(o=n),pn(s,{typescriptVersion:o})},"readTsconfig");var fn=Object.defineProperty,oe=c((e,t)=>fn(e,"name",{value:t,configurable:!0}),"s");const Ke=oe(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],s=n.toUpperCase();t+=n===s?n.toLowerCase():s}return t},"invertCase"),be=new Map,ze=oe((e,t)=>{const r=Ct.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(Ke(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),dn=oe((e,t,r)=>{try{return ze(e,r)}catch(n){if(t===void 0)return ze(Et.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback"),mn=oe((e,t=vt,r=!0)=>{const n=e??process.cwd();if(r&&be.has(n))return be.get(n);let s;const o=Ke(n);return o!==n&&t.existsSync(n)?s=!t.existsSync(o):s=dn(n,e,t),r&&be.set(n,s),s},"isFsCaseSensitive"),{join:He}=h.posix,xe={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},hn=c(e=>{const t=[...xe.ts],r=[...xe.cts],n=[...xe.mts];return e?.allowJs&&(t.push(".js",".jsx"),r.push(".cjs"),n.push(".mjs")),[...t,...r,...n]},"getSupportedExtensions"),gn=c(e=>{const t=[];if(!e)return t;const{outDir:r,declarationDir:n}=e;return r&&t.push(r),n&&t.push(n),t},"getDefaultExcludeSpec"),Xe=c(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),kn=["node_modules","bower_components","jspm_packages"],we=`(?!(${kn.join("|")})(/|$))`,yn=/(?:^|\/)[^.*?]+$/,Ye="**/*",ae="[^/]",ve="[^./]",Ze=process.platform==="win32",bn=c(({config:e,path:t},r)=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or readTsconfig to resolve it.");if(!h.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Ze&&(t=A(t));const n=h.dirname(t),{files:s,include:o,exclude:a,compilerOptions:i}=e,d=c(E=>h.isAbsolute(E)?E:He(n,E),"resolvePattern"),p=s?new Set(s.map(d)):void 0,k=hn(i),m=r?"":"i",v=(a||gn(i)).map(E=>{const f=d(E),g=Xe(f).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${ae}*`).replaceAll(String.raw`\?`,ae);return new RegExp(`^${g}($|/)`,m)}),w=s||o?o:[Ye],b=w?w.map(E=>{let f=d(E);yn.test(f)&&(f=He(f,Ye));const g=Xe(f).replaceAll(String.raw`/\*\*`,`(/${we}${ve}${ae}*)*?`).replaceAll(/(\/)?\\\*/g,(T,l)=>{const C=String.raw`(${ve}|(\.(?!min\.js$))?)*`;return l?`/${we}${ve}${C}`:C}).replaceAll(/(\/)?\\\?/g,(T,l)=>{const C=ae;return l?`/${we}${C}`:C});return new RegExp(`^${g}$`,m)}):void 0;return{filesSet:p,extensions:k,excludePatterns:v,includePatterns:b}},"compilePatterns"),qe=new WeakMap,Ee=c((e,t)=>{if(!h.isAbsolute(t))return!1;Ze&&(t=A(t));let r=qe.get(e);r||(r=bn(e,mn()),qe.set(e,r));const{filesSet:n,extensions:s,excludePatterns:o,includePatterns:a}=r;return n?.has(t)?!0:!s.some(i=>t.endsWith(i))||o.some(i=>i.test(t))?!1:!!(a&&a.some(i=>i.test(t)))},"isFileIncluded"),et=c((e,t,r,n)=>{const s=h.resolve(e);let o=A(e);for(;;){const a=Q(o,t,r);if(!a)return;const i=h.resolve(a),d=ye(i,{cache:r,typescriptVersion:n});if(Ee(d,s))return d;const p=h.dirname(a),k=h.dirname(p);if(k===p)return;o=k}},"findConfigApplicable"),xn=c((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:s=!1}=t;if(!s){const o=h.resolve(e);return h.basename(o)===r&&D(n,o)?.isFile()?A(o):Q(A(e),r,n)}return et(e,r,n,!1)?.path},"findTsconfig"),wn=c((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:s=!1,typescriptVersion:o="auto"}=t;if(!s){const a=xn(e,{configName:r,cache:n});return a?ye(a,{cache:n,typescriptVersion:o}):void 0}return et(e,r,n,o)},"getTsconfig"),vn=/\*/g,tt=c((e,t)=>{const r=e.match(vn);if(r&&r.length>1)throw new Error(t)},"assertStarCount"),En=c(e=>{if(e.includes("*")){const[t,r]=e.split("*");return{prefix:t,suffix:r}}return e},"parsePattern"),Cn=c(({prefix:e,suffix:t},r)=>r.startsWith(e)&&r.endsWith(t),"isPatternMatch"),jn=c((e,t,r)=>Object.entries(e).map(([n,s])=>(tt(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:En(n),substitutions:s.map(o=>{if(tt(o,`Substitution '${o}' in pattern '${n}' can have at most one '*' character.`),!t&&!ge.test(o)&&!h.isAbsolute(o))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return h.resolve(r,o)})})),"parsePaths"),Tn=c(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:r,paths:n}=t;if(!r&&!n)return null;const s=he in t&&t[he],o=h.resolve(h.dirname(e.path),r||s||"."),a=n?jn(n,r,o):[],i=new Map,d=[];for(const p of a)typeof p.pattern=="string"?i.set(p.pattern,p.substitutions):d.push(p);return{exactEntries:i,patternEntries:d,resolvedBaseUrl:o,baseUrl:r}},"compilePaths"),nt=new WeakMap,rt=c((e,t)=>{let r=nt.get(e);if(r===void 0&&(r=Tn(e),nt.set(e,r)),!r)return[];if(ge.test(t))return[];const{exactEntries:n,patternEntries:s,resolvedBaseUrl:o,baseUrl:a}=r,i=n.get(t);if(i)return i.map(A);let d,p=-1;for(const m of s)Cn(m.pattern,t)&&m.pattern.prefix.length>p&&(p=m.pattern.prefix.length,d=m);if(!d)return a?[A(h.join(o,t))]:[];const k=t.slice(d.pattern.prefix.length,t.length-d.pattern.suffix.length);return d.substitutions.map(m=>A(m.replace("*",k)))},"resolvePathAlias"),st=u(e=>{if(e)return ye(e);try{return wn()??void 0}catch{}},"loadTsconfig"),Sn=`
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,`,ot=u(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),Ce=u(({code:e,map:t})=>e+Sn+Buffer.from(JSON.stringify(t),"utf8").toString("base64"),"inlineSourceMap"),K=Symbol.for("tsx:global-cjs-loader-count"),z=globalThis,On=u(()=>(z[K]??0)>0,"isGlobalCjsLoaderActive"),An=u(()=>(z[K]=(z[K]??0)+1,()=>{z[K]=Math.max((z[K]??1)-1,0)}),"activateGlobalCjsLoader"),at=u(e=>e[0]==="."&&(e[1]==="/"||e[1]==="."||e[2]==="/"),"isRelativePath"),H=u(e=>at(e)||h.isAbsolute(e),"isFilePath"),ie="file://",$n=[".ts",".tsx",".jsx",".mts",".cts"],it=/\.([cm]?ts|[tj]sx)($|\?)/,Pn=/\.(?:ts|tsx|jsx)($|\?)/,Dn=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,_n=/\.json($|\?)/,ce=/\/(?:$|\?)/,Ln=/^(?:@[^/]+\/)?[^/\\]+$/,ct=`${h.sep}node_modules${h.sep}`,le=Number(process.env.TSX_DEBUG);le&&($e.enabled=!0,$e.supportLevel=3);const lt=u(e=>(t,...r)=>{if(!le||t>le)return;const n=`${Dt(` tsx P${process.pid} `)} ${e}`,s=r.map(o=>typeof o=="string"?o:Ot(o,{colors:!0})).join(" ");wt(1,`${n} ${s}
|
|
9
|
+
`)},"createLog"),V=lt(At($t(" CJS "))),Un=lt(Pt(" ESM ")),F=new Map,Fn=u(async e=>{if(F.has(e))return F.get(e);if(!await R.promises.access(e).then(()=>!0,()=>!1)){F.set(e,void 0);return}const r=await R.promises.readFile(e,"utf8");try{const n=JSON.parse(r);return F.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),Rn=u(e=>{if(F.has(e))return F.get(e);if(!R.existsSync(e)){F.set(e,void 0);return}const t=R.readFileSync(e,"utf8");try{const r=JSON.parse(t);return F.set(e,r),r}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),In=u(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=q(t),n=await Fn(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJson"),pt=u(e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=q(t),n=Rn(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJsonSync"),Nn=u(async e=>(await In(e))?.type??"commonjs","getPackageType"),Bn=u(e=>pt(e)?.type??"commonjs","getPackageTypeSync"),Wn=u(e=>pt(e)?.type,"getNearestPackageTypeSync"),ut=[".js",".json"],ft=[".ts",".tsx",".jsx"],Mn=[...ft,...ut],Jn=[...ut,...ft],X=Object.create(null);X[".js"]=[".ts",".tsx",".js",".jsx"],X[".jsx"]=[".tsx",".ts",".jsx",".js"],X[".cjs"]=[".cts"],X[".mjs"]=[".mts"];const dt=u(e=>{const t=e.split("?"),r=t[1]?`?${t[1]}`:"",[n]=t,s=h.extname(n),o=[],a=X[s];if(a){const d=n.slice(0,-s.length);o.push(...a.map(p=>d+p+r))}const i=!(e.startsWith(ie)||H(n))||n.includes(ct)||n.includes("/node_modules/")?Jn:Mn;return o.push(...i.map(d=>n+d+r)),o},"mapTsExtensions"),je=u(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),Vn=[".cts",".mts",".ts",".tsx",".jsx"],Gn=[".js",".cjs",".mjs"],mt=[".ts",".tsx",".jsx"],ht="module.exports",Qn=u(e=>{const t=h.extname(e);return t===".mjs"||t===".mts"||(t===".js"||t===".ts")&&Wn(xt(e).toString())!=="commonjs"},"isRequireEsmCandidate"),Te=u((e,t,r,n)=>{const s=Object.getOwnPropertyDescriptor(e,t);s?.set?e[t]=r:(!s||s.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),Kn=u((e,t,r,n)=>{const s=t[".js"],o=_t(Lt),a=u((i,d)=>{if(e.enabled===!1)return s(i,d);const[p,k]=d.split("?");if((new URLSearchParams(k).get("namespace")??void 0)!==n)return s(i,d);V(2,"load",{filePath:d}),i.id.startsWith("data:text/javascript,")&&(i.path=h.dirname(p)),Ae?.send&&Ae.send({type:"dependency",path:p});const v=Vn.some(l=>p.endsWith(l)),w=Gn.some(l=>p.endsWith(l));if(!v&&!w)return s(i,p);let b=R.readFileSync(p,"utf8");const E=w&&!p.endsWith(".cjs")&&!p.endsWith(".cts")&&jt(b),f=(v||E)&&r&&Ee(r,p)?r.config:void 0;if(p.endsWith(".cjs")){const l=Tt(d,b);l&&(b=ot()?Ce(l):l.code)}else if(v||E){const l=St(b,d,{tsconfigRaw:f});b=ot()?Ce(l):l.code}V(1,"loaded",{filePath:p}),i._compile(b,p),k&&$._cache[p]===i&&($._cache[d]=i,delete $._cache[p]);const{exports:g}=i;(o&&g&&(typeof g=="object"||typeof g=="function")?Object.getOwnPropertyDescriptor(g,ht):void 0)?.get&&Qn(p)&&(i.exports=g[ht])},"transformer");Te(t,".js",a);for(const i of mt)Te(t,i,a,{enumerable:!n,writable:!0,configurable:!0});return Te(t,".mjs",a,{writable:!0,configurable:!0}),()=>{t[".js"]===a&&(t[".js"]=s);for(const i of[...mt,".mjs"])t[i]===a&&delete t[i]}},"createExtensions"),zn=u(e=>t=>{if((t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),ce.test(t)){let r=h.join(t,"index");t.startsWith("./")&&(r=`./${r}`);try{return e(r)}catch{}}try{return e(t)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return e(`${t}${h.sep}index`)}catch{}throw n}},"createImplicitResolver"),pe=u((e,t,r,n)=>{if(V(3,"resolveTsFilename",{request:t,isDirectory:ce.test(t),isTsParent:r,allowJs:n}),ce.test(t)||!r&&!n)return;const s=dt(t);if(s)for(const o of s)try{return e(o)}catch(a){const{code:i}=a;if(i!=="MODULE_NOT_FOUND"&&i!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}},"resolveTsFilename"),Hn=u((e,t,r)=>n=>{if(V(3,"resolveTsFilename",{request:n,isTsParent:t,isFilePath:H(n)}),H(n)){const s=pe(e,n,t,r);if(s)return s}try{return e(n)}catch(s){const o=s;if(o.code==="MODULE_NOT_FOUND"){if(o.path){const i=o.message.match(/^Cannot find module '([^']+)'$/);if(i){const p=i[1],k=pe(e,p,t,r);if(k)return k}const d=o.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(d){const p=d[1],k=pe(e,p,t,r);if(k)return k}}const a=pe(e,n,t,r);if(a)return a}throw o}},"createTsExtensionResolver"),gt="at cjsPreparseModuleExports (node:internal",Xn=u(e=>{const t=e.stack.split(`
|
|
10
|
+
`).slice(1);return t[1].includes(gt)||t[2].includes(gt)},"isFromCjsLexer"),Yn=u((e,t)=>{const r=e.split("?"),n=new URLSearchParams(r[1]);if(t?.filename){const s=Pe(t.filename);let o;if(s){const d=s.split("?"),p=d[0];o=d[1];const m=new URLSearchParams(o).get("namespace");t.filename=p,t.path=h.dirname(p),t.paths=$._nodeModulePaths(t.path),m||($._cache[p]=t)}o||(o=t.filename.split("?")[1]);const i=new URLSearchParams(o).get("namespace");i&&n.append("namespace",i)}return[r[0],n,(s,o)=>(h.isAbsolute(s)&&!s.endsWith(".json")&&!s.endsWith(".node")&&!(o===0&&Xn(new Error))&&(s+=je(n)),s)]},"preserveQuery"),Zn=u((e,t,r,n)=>{if(e.startsWith(ie)&&(e=q(e)),n&&!H(e)&&!t?.filename?.includes(ct)){const s=rt(n,e);for(const o of s)try{return r(o)}catch{}}return r(e)},"resolveTsPaths"),qn=u((e,t,r,n)=>(s,o,...a)=>{if(e.enabled===!1)return t(s,o,...a);s=De(s);const[i,d,p]=Yn(s,o);if((d.get("namespace")??void 0)!==n)return t(s,o,...a);V(2,"resolve",{request:s,parent:o?.filename??o,restOfArgs:a});let k=u(v=>t(v,o,...a),"nextResolveSimple");k=Hn(k,!!(n||o?.filename&&it.test(o.filename)),r?.config.compilerOptions?.allowJs??!1),k=zn(k);const m=p(Zn(i,o,k,r),a.length);return V(1,"resolved",{request:s,parent:o?.filename??o,resolved:m}),m},"createResolveFilename"),kt=u((e,t)=>{if(!t)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return e.startsWith(".")?((typeof t=="string"&&t.startsWith(ie)||t instanceof URL)&&(t=q(t)),h.resolve(h.dirname(t),e)):e},"resolveContext"),er=u(e=>{const{sourceMapsEnabled:t}=process,r={enabled:!0},n=st(process.env.TSX_TSCONFIG_PATH);process.setSourceMapsEnabled(!0);const s=$._resolveFilename,o=qn(r,s,n,e?.namespace);$._resolveFilename=o;const a=Kn(r,$._extensions,n,e?.namespace),i=e?.namespace?void 0:An(),d=u(()=>{t===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,$._resolveFilename===o&&($._resolveFilename=s),a(),i?.()},"unregister");if(e?.namespace){const p=u((m,v)=>{const w=kt(m,v),[b,E]=w.split("?"),f=new URLSearchParams(E);return e.namespace&&!b.startsWith("node:")&&f.set("namespace",e.namespace),bt(b+je(f))},"scopedRequire");d.require=p;const k=u((m,v,w)=>{const b=kt(m,v),[E,f]=b.split("?"),g=new URLSearchParams(f);return e.namespace&&!E.startsWith("node:")&&g.set("namespace",e.namespace),o(E+je(g),module,!1,w)},"scopedResolve");d.resolve=k,d.unregister=d}return d},"register");export{Bn as a,Un as b,Dn as c,le as d,Pn as e,Ce as f,Nn as g,it as h,Ln as i,On as j,Ee as k,st as l,ie as m,_n as n,H as o,ce as p,dt as q,er as r,at as s,$n as t,De as u,rt as w};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var fe=Object.defineProperty;var l=(e,r)=>fe(e,"name",{value:r,configurable:!0});var T=require("node:module"),pe=require("node:worker_threads"),y=require("./node-features-CQLdkVE6.cjs"),n=require("./register-BOkp8V6j.cjs"),g=require("node:url"),ge=require("node:fs"),he=require("node:fs/promises"),h=require("./index-D9F1FXzN.cjs"),z=require("./client-D3mGB526.cjs"),S=require("node:path"),L=typeof document<"u"?document.currentScript:null;const F={active:!0,parsedTsconfig:void 0},X=l(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=n.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),ye=l(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(F,X(e)),e.port&&e.port.on("message",r=>{r==="deactivate"&&(F.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),Pe=l(()=>(F.parsedTsconfig=n.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),Re=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||n.tsExtensions.includes(t))return n.getPackageType(e)},"getFormatFromFileUrl"),Ue=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||n.tsExtensions.includes(t))return n.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),U="tsx-namespace=",$="tsx-commonjs-export-preparse",V=`${$}=1`,j="tsx-commonjs-virtual-query",I=new Map,B=l((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),W=l((e,r)=>{const t=B(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),Se=l(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Ee=l(e=>{const r=Se(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const o=s.trim().split(/\s+as\s+/)[0];return!!(o&&o!=="default")})?"named":void 0},"getCommonJsImportBinding"),ve=l((e,r,t)=>{const s=I.get(e);if(!s)return!1;try{const[o]=h.parseEsm(s);return o.some(i=>{if(i.d!==-1||i.n!==r)return!1;const m=Ee(s.slice(i.ss,i.s));return m==="named"||t&&m==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),E=l(e=>{const r=e.indexOf(U);if(r===-1)return;const t=e[r-1];if(t!=="?"&&t!=="&")return;const s=r+U.length,o=e.indexOf("&",s);return o===-1?e.slice(s):e.slice(s,o)},"getNamespace"),K=y.isFeatureSupported(y.importAttributes)?"importAttributes":"importAssertions",Y=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),Z=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Te=y.isFeatureSupported(y.esmLoadReadFile),Le=[`${j}=`],J=[`${$}=`,`${j}=`],v=l((e,r)=>r.parsedTsconfig&&n.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),we=l(e=>{if(!e.searchParams.has(j))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",g.fileURLToPath(s)},"getFilePathFromVirtualQuery"),x=l(e=>{const r=e.startsWith(n.fileUrlPrefix)?new URL(e):void 0,t=r?g.fileURLToPath(r):e,s=r&&we(r),o=s||t,i=r&&s?g.pathToFileURL(o).toString()+W(r.search,Le):e;return{fileUrl:r,filePath:o,loadUrl:i}},"getFileLoadContext"),k=l((e,r)=>{if(!r?.search)return e;const t=W(r.search,J);return t?g.pathToFileURL(e).toString()+t:e},"getTransformPath"),ee=l((e,r,t)=>{const s=[...r?B(r.search,[U,...J]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),Fe=new TextDecoder,te=l(e=>typeof e=="string"?e:Fe.decode(e),"decodeSource"),je=l((e,r)=>{const t=new URL(r),s=r.startsWith(n.fileUrlPrefix)?x(r).filePath:void 0;t.searchParams.delete("tsx-namespace"),t.searchParams.delete($),t.searchParams.delete(j),s&&(t.pathname=new URL(g.pathToFileURL(s)).pathname);const o=t.toString();return e.port&&e.port.postMessage({type:"load",url:o}),e.onImport?.(o),o},"notifyLoad"),re=l((e,r)=>{if(!e.active)return!1;const t=E(r);if(e.namespace&&e.namespace!==t)return!1;const s=je(e,r);return z.parent.send&&z.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),se=l((e,r)=>{if(!n.isJsonPattern.test(e))return r;const t=r[K];return t?.type?r:{...r,[K]:{...t,type:"json"}}},"prepareJsonAttributes"),Q=l(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),Ie=l(e=>{const r=l(async(t,s,o)=>{if(!re(e,t))return o(t,s);const i=E(t),{fileUrl:m,filePath:c,loadUrl:a}=x(t),u=se(a,s),d=await o(a,u);n.logEsm(3,"loaded by next loader",{url:t,loadUrl:a,loaded:d});const P=m?.searchParams.has($)===!0,R=d.format,w=m?new URL(g.pathToFileURL(c)):void 0;if(w&&m&&(w.search=W(m.search,J)),Y(R)&&m&&d.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const f=await he.readFile(g.pathToFileURL(c),"utf8"),b=h.isESM(f);if(R==="commonjs-typescript"||!c.endsWith(".js")||b){if(!Te){if(P&&b&&n.implicitTsExtensionsPattern.test(c)){const C=await h.transform(f,c,{define:{"import.meta.url":JSON.stringify(w.toString())},tsconfigRaw:v(c,e)});return I.set(t,C.code),{format:"module",source:n.inlineSourceMap(C)}}return d}if(!i&&!P&&!c.endsWith(".cts"))return d;const G=!!(i||P||W(m.search,J)),D=h.transformSync(f,k(c,m),{cjsBanner:G?`require = require("node:module").createRequire(${JSON.stringify(g.pathToFileURL(c).toString())});`:void 0,tsconfigRaw:v(c,e)});if(d.format="commonjs",d.source=n.inlineSourceMap(D),G){const C=ee(c,m,i);d.responseURL=`data:text/javascript,${encodeURIComponent(D.code)}?filePath=${encodeURIComponent(C)}`}return n.logEsm(3,"returning CJS export annotation",d),d}}if(!d.source)return d;const p=te(d.source),_=R==="json"&&!Q(s);if(R==="commonjs-typescript"){const f=h.transformSync(p,c,{tsconfigRaw:v(c,e)});return{...d,format:"commonjs",source:n.inlineSourceMap(f)}}if(_||Z(R)||n.tsExtensionsPattern.test(t)){const f=await h.transform(p,c,{tsconfigRaw:v(c,e)});return I.set(t,f.code),{format:"module",source:n.inlineSourceMap(f)}}if(d.format==="module"){const f=h.transformDynamicImport(c,p);f?(d.source=n.inlineSourceMap(f),I.set(t,f.code)):I.set(t,p)}return d},"load2");return n.debugEnabled?async(t,s,o)=>{n.logEsm(2,"load",{url:t,context:s});const i=await r(t,s,o);return n.logEsm(1,"loaded",{url:t,result:i}),i}:r},"createLoad"),_e=l(e=>{const r=l((t,s,o)=>{if(Q(s)&&n.isGlobalCjsLoaderActive()||!re(e,t))return o(t,s);const i=E(t),{fileUrl:m,filePath:c,loadUrl:a}=x(t),u=se(a,s),d=o(a,u);n.logEsm(3,"loaded by next loader",{url:t,loadUrl:a,loaded:d});const P=d.format;if(Y(P)&&y.isFeatureSupported(y.esmLoadReadFile)&&d.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const p=ge.readFileSync(g.pathToFileURL(c),"utf8");if(P==="commonjs-typescript"||!c.endsWith(".js")||h.isESM(p)){const _=h.transformSync(p,k(c,m),{tsconfigRaw:v(c,e)}),f=!i&&n.isGlobalCjsLoaderActive(),b=ee(c,m,i);return d.format="commonjs",d.shouldBeReloadedByCJSLoader=f,d.source=n.inlineSourceMap(_),f||(d.responseURL=`data:text/javascript,${encodeURIComponent(_.code)}?filePath=${encodeURIComponent(b)}`),n.logEsm(3,"returning CJS export annotation",d),d}}if(!d.source)return d;const R=te(d.source),w=P==="json"&&!Q(s);if(P==="commonjs-typescript"){const p=h.transformSync(R,c,{tsconfigRaw:v(c,e)});return{...d,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:n.inlineSourceMap(p)}}if(w||Z(P)||n.tsExtensionsPattern.test(t)){const p=h.transformEsmSync(R,c,{tsconfigRaw:v(c,e)});return{format:"module",source:n.inlineSourceMap(p)}}if(d.format==="module"){const p=h.transformDynamicImport(c,R);p&&(d.source=n.inlineSourceMap(p))}return d},"load2");return n.debugEnabled?(t,s,o)=>{n.logEsm(2,"loadSync",{url:t,context:s});const i=r(t,s,o);return n.logEsm(1,"loadedSync",{url:t,result:i}),i}:r},"createLoadSync"),be=Ie(F),Ce=y.isFeatureSupported(y.esmLoadReadFile),$e=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,oe=l(e=>!n.isFilePath(e)&&!$e.test(e),"isTsconfigPathAliasSpecifier"),M=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!S.isAbsolute(s))return;const o=g.pathToFileURL(s);if(o.pathname.endsWith("/")&&(o.pathname+="package.json"),o.pathname.endsWith("/package.json")){const i=h.readJsonFile(o);if(i?.main)return new URL(i.main,o).toString()}else return o.toString()}},"getMissingPathFromNotFound"),O=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),N=l(async(e,r,t,s)=>{const o=n.mapTsExtensions(e);if(n.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:o}),!o)return;let i;for(const m of o)try{return await t(m,r)}catch(c){const{code:a}=c;if(!O(a)&&a!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;i=c}if(s)throw i},"resolveExtensions"),q=l((e,r,t,s)=>{const o=n.mapTsExtensions(e);if(n.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:o}),!o)return;let i;for(const m of o)try{return t(m,r)}catch(c){const{code:a}=c;if(!O(a)&&a!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;i=c}if(s)throw i},"resolveExtensionsSync"),We=l(async(e,r,t,s)=>{const o=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(n.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(n.fileUrlPrefix),isRelativePath:n.isRelativePath(e),tsExtensionsPattern:n.tsExtensionsPattern.test(r.parentURL),allowJs:o}),(e.startsWith(n.fileUrlPrefix)||n.isRelativePath(e))&&(n.tsExtensionsPattern.test(r.parentURL)||o)){const i=await N(e,r,t);if(n.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return await t(e,r)}catch(i){if(n.logEsm(3,"resolveBase error",{specifier:e,context:r,error:i}),i instanceof Error){const m=i;if(O(m.code)){const c=M(m);if(c){const a=await N(c,r,t);if(a)return a}}}throw i}},"resolveBase"),Je=l((e,r,t,s)=>{const o=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(n.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(n.fileUrlPrefix),isRelativePath:n.isRelativePath(e),tsExtensionsPattern:n.tsExtensionsPattern.test(r.parentURL),allowJs:o}),(e.startsWith(n.fileUrlPrefix)||n.isRelativePath(e))&&(n.tsExtensionsPattern.test(r.parentURL)||o)){const i=q(e,r,t);if(n.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return t(e,r)}catch(i){if(n.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:i}),i instanceof Error){const m=i;if(O(m.code)){const c=M(m);if(c){const a=q(c,r,t);if(a)return a}}}throw i}},"resolveBaseSync"),ne=l(async(e,r,t,s)=>{if(n.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:n.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),n.isDirectoryPattern.test(e)){const o=new URL(e,r.parentURL);return o.pathname=S.join(o.pathname,"index"),await N(o.toString(),r,t,!0)}try{return await We(e,r,t,s)}catch(o){if(o instanceof Error){n.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:o});const i=o;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const m=M(i);if(m)try{return await N(`${m}/index`,r,t,!0)}catch(c){const a=c,{message:u}=a;throw a.message=a.message.replace(`${"/index".replace("/",S.sep)}'`,"'"),a.stack=a.stack.replace(u,a.message),a}}}throw o}},"resolveDirectory"),ae=l((e,r,t,s)=>{if(n.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:n.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),n.isDirectoryPattern.test(e)){const o=new URL(e,r.parentURL);return o.pathname=S.join(o.pathname,"index"),q(o.toString(),r,t,!0)}try{return Je(e,r,t,s)}catch(o){if(o instanceof Error){n.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:o});const i=o;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const m=M(i);if(m)try{return q(`${m}/index`,r,t,!0)}catch(c){const a=c,{message:u}=a;throw a.message=a.message.replace(`${"/index".replace("/",S.sep)}'`,"'"),a.stack=a.stack.replace(u,a.message),a}}}throw o}},"resolveDirectorySync"),Me=l(async(e,r,t,s)=>{const o=oe(e);if(n.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:o,tsconfig:s.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),o&&s.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const i=n.wt(s.parsedTsconfig,e);n.logEsm(3,"resolveTsPaths",{possiblePaths:i});for(const m of i)try{return await ne(g.pathToFileURL(m).toString(),r,t,s)}catch{}}return ne(e,r,t,s)},"resolveTsPaths"),Oe=l((e,r,t,s)=>{const o=oe(e);if(n.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:o,tsconfig:s.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),o&&s.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const i=n.wt(s.parsedTsconfig,e);n.logEsm(3,"resolveTsPathsSync",{possiblePaths:i});for(const m of i)try{return ae(g.pathToFileURL(m).toString(),r,t,s)}catch{}}return ae(e,r,t,s)},"resolveTsPathsSync"),A="tsx://",Ne=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),H=l((e,r)=>`${e}${e.includes("?")?"&":"?"}${r}`,"addQuery"),ie=l((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(n.fileUrlPrefix)||!n.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),o=[B(s.search,[U]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return o?(s.pathname+=`%3F${o}`,s.searchParams.set(j,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),qe=l(e=>{const r=l(async(t,s,o)=>{if(!e.active||t.startsWith("node:"))return o(t,s);let i=E(t)??(s.parentURL&&E(s.parentURL));if(e.namespace){let d;if(t.startsWith(A)){try{d=JSON.parse(t.slice(A.length))}catch{}d?.namespace&&(i=d.namespace)}if(e.namespace!==i)return o(t,s);d&&(t=d.specifier,s.parentURL=d.parentURL)}const[m,c]=t.split("?"),a=await Me(m,s,o,e);if(n.logEsm(2,"nextResolve",{resolved:a}),a.format==="builtin")return a;(!a.format||a.format==="commonjs-typescript"||a.format==="module-typescript")&&a.url.startsWith(n.fileUrlPrefix)&&(a.format=await Re(a.url),n.logEsm(2,"getFormatFromFileUrl",{resolved:a,format:a.format})),c&&(a.url+=`?${c}`);const u=s.parentURL&&a.format==="commonjs"&&n.implicitTsExtensionsPattern.test(a.url)&&(s.parentURL.includes(V)||ve(s.parentURL,t,Ce));return i&&!a.url.includes(U)&&(a.url=H(a.url,`${U}${i}`)),u&&(a.url=H(a.url,V)),(i||u)&&(a.url=ie(a.url,a.format,i)),a},"resolve2");return n.debugEnabled?async(t,s,o)=>{n.logEsm(2,"resolve",{specifier:t,context:s});const i=await r(t,s,o);return n.logEsm(1,"resolved",{specifier:t,context:s,result:i}),i}:r},"createResolve"),Ae=l(e=>{const r=l((t,s,o)=>{if(!e.active||t.startsWith("node:")||Ne(s)&&n.isGlobalCjsLoaderActive())return o(t,s);let i=E(t)??(s.parentURL&&E(s.parentURL));if(e.namespace){let u;if(t.startsWith(A)){try{u=JSON.parse(t.slice(A.length))}catch{}u?.namespace&&(i=u.namespace)}if(e.namespace!==i)return o(t,s);u&&(t=u.specifier,s.parentURL=u.parentURL)}const[m,c]=t.split("?"),a=Oe(m,s,o,e);return n.logEsm(2,"nextResolve",{resolved:a}),a.format==="builtin"||((!a.format||a.format==="commonjs-typescript"||a.format==="module-typescript")&&a.url.startsWith(n.fileUrlPrefix)&&(a.format=Ue(a.url),n.logEsm(2,"getFormatFromFileUrlSync",{resolved:a,format:a.format})),c&&(a.url+=`?${c}`),i&&!a.url.includes(U)&&(a.url=H(a.url,`${U}${i}`)),a.url=ie(a.url,a.format,i)),a},"resolve2");return n.debugEnabled?(t,s,o)=>{n.logEsm(2,"resolveSync",{specifier:t,context:s});const i=r(t,s,o);return n.logEsm(1,"resolvedSync",{specifier:t,context:s,result:i}),i}:r},"createResolveSync"),Be=qe(F),ce=l(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(n.fileUrlPrefix)?t:g.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let le=!1;const xe=l(e=>{const r=[];for(let t=0;t<e.length;t+=1){const s=e[t];if(s==="--import"){const o=e[t+1];o&&r.push(o),t+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),Qe=l(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),me=[new URL("loader.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("register-CHVGxKtC.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("register-CHVGxKtC.cjs",document.baseURI).href).toString()],He=new Set(["tsx","tsx/esm",...me,...me.map(e=>decodeURI(new URL(e).pathname))]),Ge=l(e=>He.has(e),"isTsxImport"),de=l(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),De=l(()=>{const e=xe(process.execArgv),r=e.findIndex(Ge);return r>0&&e.slice(0,r).some(de)},"hasCliTypeScriptPreload"),ze=Qe().some(de)||De(),ue=typeof T.registerHooks=="function"&&y.isFeatureSupported(y.moduleRegisterHooksCjsReload)&&!ze,Xe=l(e=>{if(!T.register&&!ue)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!le){const{_resolveFilename:c}=T;T._resolveFilename=(a,...u)=>c(n.interopCjsExports(a),...u),le=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),ue){const c=X({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),a=T.registerHooks({load:_e(c),resolve:Ae(c)}),u=l(async()=>{c.active=!1,a.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(u.import=ce(e.namespace),u.unregister=u),u}const{port1:t,port2:s}=new pe.MessageChannel;T.register(`./esm/index.mjs?${Date.now()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("register-CHVGxKtC.cjs",document.baseURI).href,data:{port:s,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[s]});const o=e?.onImport,i=o&&(c=>{c.type==="load"&&o(c.url)});i&&(t.on("message",i),t.unref());const m=l(()=>(r===!1&&process.setSourceMapsEnabled(!1),i&&t.off("message",i),t.postMessage("deactivate"),new Promise(c=>{const a=l(u=>{u.type==="deactivated"&&(c(),t.off("message",a))},"onDeactivated");t.on("message",a)})),"unregister");return e?.namespace&&(m.import=ce(e.namespace),m.unregister=m),m},"register");exports.globalPreload=Pe,exports.initialize=ye,exports.load=be,exports.register=Xe,exports.resolve=Be;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Fe=Object.defineProperty;var i=(e,s)=>Fe(e,"name",{value:s,configurable:!0});import T from"node:module";import{MessageChannel as Ce}from"node:worker_threads";import{i as j,b as _e,e as z,m as $e}from"./node-features-B9BBLzwu.mjs";import{l as te,t as se,g as We,a as Je,d as J,b as d,e as V,f as S,h as L,j as K,k as be,m as g,n as Oe,w as re,o as Ne,p as b,q as oe,s as O,u as Ae}from"./register-BnTWPeIB.mjs";import{pathToFileURL as h,fileURLToPath as ne}from"node:url";import{readFileSync as Me}from"node:fs";import{readFile as Be}from"node:fs/promises";import{p as qe,i as ae,t as ce,a as N,b as ie,c as Qe,r as He}from"./index-XurvG3JN.mjs";import{p as me}from"./client-D_mPDF5S.mjs";import U from"node:path";const I={active:!0,parsedTsconfig:void 0},le=i(e=>{const s={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(s.parsedTsconfig=te(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),s},"createData"),Ge=i(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(I,le(e)),e.port&&e.port.on("message",s=>{s==="deactivate"&&(I.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),Xe=i(()=>(I.parsedTsconfig=te(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),ze=i(e=>{const{pathname:s}=new URL(e),t=U.extname(s);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||se.includes(t))return We(e)},"getFormatFromFileUrl"),Ve=i(e=>{const{pathname:s}=new URL(e),t=U.extname(s);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||se.includes(t))return Je(e)},"getFormatFromFileUrlSync"),R="tsx-namespace=",A="tsx-commonjs-export-preparse",de=`${A}=1`,F="tsx-commonjs-virtual-query",C=new Map,D=i((e,s)=>e.slice(1).split("&").filter(t=>t&&s.every(r=>!t.startsWith(r))).join("&"),"getQueryWithoutParameters"),M=i((e,s)=>{const t=D(e,s);return t?`?${t}`:""},"getSearchWithoutParameters"),Ke=i(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),De=i(e=>{const s=Ke(e);if(/^\s*export\s*\*/.test(s))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(s))return"namespace";const t=s.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(r=>{const o=r.trim().split(/\s+as\s+/)[0];return!!(o&&o!=="default")})?"named":void 0},"getCommonJsImportBinding"),Ye=i((e,s,t)=>{const r=C.get(e);if(!r)return!1;try{const[o]=qe(r);return o.some(a=>{if(a.d!==-1||a.n!==s)return!1;const m=De(r.slice(a.ss,a.s));return m==="named"||t&&m==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),v=i(e=>{const s=e.indexOf(R);if(s===-1)return;const t=e[s-1];if(t!=="?"&&t!=="&")return;const r=s+R.length,o=e.indexOf("&",r);return o===-1?e.slice(r):e.slice(r,o)},"getNamespace"),ue=j(_e)?"importAttributes":"importAssertions",fe=i(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),pe=i(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Ze=j(z),xe=[`${F}=`],B=[`${A}=`,`${F}=`],w=i((e,s)=>s.parsedTsconfig&&be(s.parsedTsconfig,e)?s.parsedTsconfig.config:void 0,"getTsconfigRaw"),ke=i(e=>{if(!e.searchParams.has(F))return;const{pathname:s}=e,t=s.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const r=new URL(e);return r.pathname=s.slice(0,t),r.search="",ne(r)},"getFilePathFromVirtualQuery"),Y=i(e=>{const s=e.startsWith(g)?new URL(e):void 0,t=s?ne(s):e,r=s&&ke(s),o=r||t,a=s&&r?h(o).toString()+M(s.search,xe):e;return{fileUrl:s,filePath:o,loadUrl:a}},"getFileLoadContext"),he=i((e,s)=>{if(!s?.search)return e;const t=M(s.search,B);return t?h(e).toString()+t:e},"getTransformPath"),ge=i((e,s,t)=>{const r=[...s?D(s.search,[R,...B]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return r?`${e}?${r}`:e},"getFilePathWithQuery"),et=new TextDecoder,ye=i(e=>typeof e=="string"?e:et.decode(e),"decodeSource"),tt=i((e,s)=>{const t=new URL(s),r=s.startsWith(g)?Y(s).filePath:void 0;t.searchParams.delete("tsx-namespace"),t.searchParams.delete(A),t.searchParams.delete(F),r&&(t.pathname=new URL(h(r)).pathname);const o=t.toString();return e.port&&e.port.postMessage({type:"load",url:o}),e.onImport?.(o),o},"notifyLoad"),Pe=i((e,s)=>{if(!e.active)return!1;const t=v(s);if(e.namespace&&e.namespace!==t)return!1;const r=tt(e,s);return me.send&&me.send({type:"dependency",path:r}),!0},"prepareLoad"),Se=i((e,s)=>{if(!Oe.test(e))return s;const t=s[ue];return t?.type?s:{...s,[ue]:{...t,type:"json"}}},"prepareJsonAttributes"),Z=i(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),st=i(e=>{const s=i(async(t,r,o)=>{if(!Pe(e,t))return o(t,r);const a=v(t),{fileUrl:m,filePath:c,loadUrl:n}=Y(t),u=Se(n,r),l=await o(n,u);d(3,"loaded by next loader",{url:t,loadUrl:n,loaded:l});const y=m?.searchParams.has(A)===!0,P=l.format,E=m?new URL(h(c)):void 0;if(E&&m&&(E.search=M(m.search,B)),fe(P)&&m&&l.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const f=await Be(h(c),"utf8"),$=ae(f);if(P==="commonjs-typescript"||!c.endsWith(".js")||$){if(!Ze){if(y&&$&&V.test(c)){const W=await ce(f,c,{define:{"import.meta.url":JSON.stringify(E.toString())},tsconfigRaw:w(c,e)});return C.set(t,W.code),{format:"module",source:S(W)}}return l}if(!a&&!y&&!c.endsWith(".cts"))return l;const k=!!(a||y||M(m.search,B)),ee=N(f,he(c,m),{cjsBanner:k?`require = require("node:module").createRequire(${JSON.stringify(h(c).toString())});`:void 0,tsconfigRaw:w(c,e)});if(l.format="commonjs",l.source=S(ee),k){const W=ge(c,m,a);l.responseURL=`data:text/javascript,${encodeURIComponent(ee.code)}?filePath=${encodeURIComponent(W)}`}return d(3,"returning CJS export annotation",l),l}}if(!l.source)return l;const p=ye(l.source),_=P==="json"&&!Z(r);if(P==="commonjs-typescript"){const f=N(p,c,{tsconfigRaw:w(c,e)});return{...l,format:"commonjs",source:S(f)}}if(_||pe(P)||L.test(t)){const f=await ce(p,c,{tsconfigRaw:w(c,e)});return C.set(t,f.code),{format:"module",source:S(f)}}if(l.format==="module"){const f=ie(c,p);f?(l.source=S(f),C.set(t,f.code)):C.set(t,p)}return l},"load2");return J?async(t,r,o)=>{d(2,"load",{url:t,context:r});const a=await s(t,r,o);return d(1,"loaded",{url:t,result:a}),a}:s},"createLoad"),rt=i(e=>{const s=i((t,r,o)=>{if(Z(r)&&K()||!Pe(e,t))return o(t,r);const a=v(t),{fileUrl:m,filePath:c,loadUrl:n}=Y(t),u=Se(n,r),l=o(n,u);d(3,"loaded by next loader",{url:t,loadUrl:n,loaded:l});const y=l.format;if(fe(y)&&j(z)&&l.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const p=Me(h(c),"utf8");if(y==="commonjs-typescript"||!c.endsWith(".js")||ae(p)){const _=N(p,he(c,m),{tsconfigRaw:w(c,e)}),f=!a&&K(),$=ge(c,m,a);return l.format="commonjs",l.shouldBeReloadedByCJSLoader=f,l.source=S(_),f||(l.responseURL=`data:text/javascript,${encodeURIComponent(_.code)}?filePath=${encodeURIComponent($)}`),d(3,"returning CJS export annotation",l),l}}if(!l.source)return l;const P=ye(l.source),E=y==="json"&&!Z(r);if(y==="commonjs-typescript"){const p=N(P,c,{tsconfigRaw:w(c,e)});return{...l,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:S(p)}}if(E||pe(y)||L.test(t)){const p=Qe(P,c,{tsconfigRaw:w(c,e)});return{format:"module",source:S(p)}}if(l.format==="module"){const p=ie(c,P);p&&(l.source=S(p))}return l},"load2");return J?(t,r,o)=>{d(2,"loadSync",{url:t,context:r});const a=s(t,r,o);return d(1,"loadedSync",{url:t,result:a}),a}:s},"createLoadSync"),ot=st(I),nt=j(z),at=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,Re=i(e=>!Ne(e)&&!at.test(e),"isTsconfigPathAliasSpecifier"),q=i(e=>{if(e.url)return e.url;const s=e.message.match(/^Cannot find module '([^']+)'/);if(s){const[,r]=s;return r}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,r]=t;if(!U.isAbsolute(r))return;const o=h(r);if(o.pathname.endsWith("/")&&(o.pathname+="package.json"),o.pathname.endsWith("/package.json")){const a=He(o);if(a?.main)return new URL(a.main,o).toString()}else return o.toString()}},"getMissingPathFromNotFound"),Q=i(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),H=i(async(e,s,t,r)=>{const o=oe(e);if(d(3,"resolveExtensions",{url:e,context:s,throwError:r,tryPaths:o}),!o)return;let a;for(const m of o)try{return await t(m,s)}catch(c){const{code:n}=c;if(!Q(n)&&n!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(r)throw a},"resolveExtensions"),G=i((e,s,t,r)=>{const o=oe(e);if(d(3,"resolveExtensionsSync",{url:e,context:s,throwError:r,tryPaths:o}),!o)return;let a;for(const m of o)try{return t(m,s)}catch(c){const{code:n}=c;if(!Q(n)&&n!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(r)throw a},"resolveExtensionsSync"),ct=i(async(e,s,t,r)=>{const o=r.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(d(3,"resolveBase",{specifier:e,context:s,specifierStartsWithFileUrl:e.startsWith(g),isRelativePath:O(e),tsExtensionsPattern:L.test(s.parentURL),allowJs:o}),(e.startsWith(g)||O(e))&&(L.test(s.parentURL)||o)){const a=await H(e,s,t);if(d(3,"resolveBase resolved",{specifier:e,context:s,resolved:a}),a)return a}try{return await t(e,s)}catch(a){if(d(3,"resolveBase error",{specifier:e,context:s,error:a}),a instanceof Error){const m=a;if(Q(m.code)){const c=q(m);if(c){const n=await H(c,s,t);if(n)return n}}}throw a}},"resolveBase"),it=i((e,s,t,r)=>{const o=r.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(d(3,"resolveBaseSync",{specifier:e,context:s,specifierStartsWithFileUrl:e.startsWith(g),isRelativePath:O(e),tsExtensionsPattern:L.test(s.parentURL),allowJs:o}),(e.startsWith(g)||O(e))&&(L.test(s.parentURL)||o)){const a=G(e,s,t);if(d(3,"resolveBaseSync resolved",{specifier:e,context:s,resolved:a}),a)return a}try{return t(e,s)}catch(a){if(d(3,"resolveBaseSync error",{specifier:e,context:s,error:a}),a instanceof Error){const m=a;if(Q(m.code)){const c=q(m);if(c){const n=G(c,s,t);if(n)return n}}}throw a}},"resolveBaseSync"),Ue=i(async(e,s,t,r)=>{if(d(3,"resolveDirectory",{specifier:e,context:s,isDirectory:b.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),b.test(e)){const o=new URL(e,s.parentURL);return o.pathname=U.join(o.pathname,"index"),await H(o.toString(),s,t,!0)}try{return await ct(e,s,t,r)}catch(o){if(o instanceof Error){d(3,"resolveDirectory error",{specifier:e,context:s,error:o});const a=o;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const m=q(a);if(m)try{return await H(`${m}/index`,s,t,!0)}catch(c){const n=c,{message:u}=n;throw n.message=n.message.replace(`${"/index".replace("/",U.sep)}'`,"'"),n.stack=n.stack.replace(u,n.message),n}}}throw o}},"resolveDirectory"),ve=i((e,s,t,r)=>{if(d(3,"resolveDirectorySync",{specifier:e,context:s,isDirectory:b.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),b.test(e)){const o=new URL(e,s.parentURL);return o.pathname=U.join(o.pathname,"index"),G(o.toString(),s,t,!0)}try{return it(e,s,t,r)}catch(o){if(o instanceof Error){d(3,"resolveDirectorySync error",{specifier:e,context:s,error:o});const a=o;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const m=q(a);if(m)try{return G(`${m}/index`,s,t,!0)}catch(c){const n=c,{message:u}=n;throw n.message=n.message.replace(`${"/index".replace("/",U.sep)}'`,"'"),n.stack=n.stack.replace(u,n.message),n}}}throw o}},"resolveDirectorySync"),mt=i(async(e,s,t,r)=>{const o=Re(e);if(d(3,"resolveTsPaths",{specifier:e,context:s,tsconfigPathAliasSpecifier:o,tsconfig:r.parsedTsconfig,fromNodeModules:s.parentURL?.includes("/node_modules/")}),o&&r.parsedTsconfig&&!s.parentURL?.includes("/node_modules/")){const a=re(r.parsedTsconfig,e);d(3,"resolveTsPaths",{possiblePaths:a});for(const m of a)try{return await Ue(h(m).toString(),s,t,r)}catch{}}return Ue(e,s,t,r)},"resolveTsPaths"),lt=i((e,s,t,r)=>{const o=Re(e);if(d(3,"resolveTsPathsSync",{specifier:e,context:s,tsconfigPathAliasSpecifier:o,tsconfig:r.parsedTsconfig,fromNodeModules:s.parentURL?.includes("/node_modules/")}),o&&r.parsedTsconfig&&!s.parentURL?.includes("/node_modules/")){const a=re(r.parsedTsconfig,e);d(3,"resolveTsPathsSync",{possiblePaths:a});for(const m of a)try{return ve(h(m).toString(),s,t,r)}catch{}}return ve(e,s,t,r)},"resolveTsPathsSync"),X="tsx://",dt=i(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),x=i((e,s)=>`${e}${e.includes("?")?"&":"?"}${s}`,"addQuery"),we=i((e,s,t)=>{if(s!=="commonjs"||!e.startsWith(g)||!V.test(e))return e;const r=new URL(e),o=[D(r.search,[R]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return o?(r.pathname+=`%3F${o}`,r.searchParams.set(F,"1"),r.toString()):e},"preserveCommonJsQueryIdentity"),ut=i(e=>{const s=i(async(t,r,o)=>{if(!e.active||t.startsWith("node:"))return o(t,r);let a=v(t)??(r.parentURL&&v(r.parentURL));if(e.namespace){let l;if(t.startsWith(X)){try{l=JSON.parse(t.slice(X.length))}catch{}l?.namespace&&(a=l.namespace)}if(e.namespace!==a)return o(t,r);l&&(t=l.specifier,r.parentURL=l.parentURL)}const[m,c]=t.split("?"),n=await mt(m,r,o,e);if(d(2,"nextResolve",{resolved:n}),n.format==="builtin")return n;(!n.format||n.format==="commonjs-typescript"||n.format==="module-typescript")&&n.url.startsWith(g)&&(n.format=await ze(n.url),d(2,"getFormatFromFileUrl",{resolved:n,format:n.format})),c&&(n.url+=`?${c}`);const u=r.parentURL&&n.format==="commonjs"&&V.test(n.url)&&(r.parentURL.includes(de)||Ye(r.parentURL,t,nt));return a&&!n.url.includes(R)&&(n.url=x(n.url,`${R}${a}`)),u&&(n.url=x(n.url,de)),(a||u)&&(n.url=we(n.url,n.format,a)),n},"resolve2");return J?async(t,r,o)=>{d(2,"resolve",{specifier:t,context:r});const a=await s(t,r,o);return d(1,"resolved",{specifier:t,context:r,result:a}),a}:s},"createResolve"),ft=i(e=>{const s=i((t,r,o)=>{if(!e.active||t.startsWith("node:")||dt(r)&&K())return o(t,r);let a=v(t)??(r.parentURL&&v(r.parentURL));if(e.namespace){let u;if(t.startsWith(X)){try{u=JSON.parse(t.slice(X.length))}catch{}u?.namespace&&(a=u.namespace)}if(e.namespace!==a)return o(t,r);u&&(t=u.specifier,r.parentURL=u.parentURL)}const[m,c]=t.split("?"),n=lt(m,r,o,e);return d(2,"nextResolve",{resolved:n}),n.format==="builtin"||((!n.format||n.format==="commonjs-typescript"||n.format==="module-typescript")&&n.url.startsWith(g)&&(n.format=Ve(n.url),d(2,"getFormatFromFileUrlSync",{resolved:n,format:n.format})),c&&(n.url+=`?${c}`),a&&!n.url.includes(R)&&(n.url=x(n.url,`${R}${a}`)),n.url=we(n.url,n.format,a)),n},"resolve2");return J?(t,r,o)=>{d(2,"resolveSync",{specifier:t,context:r});const a=s(t,r,o);return d(1,"resolvedSync",{specifier:t,context:r,result:a}),a}:s},"createResolveSync"),pt=ut(I),Te=i(e=>(s,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const r=t.startsWith(g)?t:h(t).toString();return import(`tsx://${JSON.stringify({specifier:s,parentURL:r,namespace:e})}`)},"createScopedImport");let Le=!1;const ht=i(e=>{const s=[];for(let t=0;t<e.length;t+=1){const r=e[t];if(r==="--import"){const o=e[t+1];o&&s.push(o),t+=1}else r.startsWith("--import=")&&s.push(r.slice(9))}return s},"collectImportSpecifiers"),gt=i(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),Ee=[new URL("loader.mjs",import.meta.url).toString(),new URL("esm/index.mjs",import.meta.url).toString()],yt=new Set(["tsx","tsx/esm",...Ee,...Ee.map(e=>decodeURI(new URL(e).pathname))]),Pt=i(e=>yt.has(e),"isTsxImport"),je=i(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),St=i(()=>{const e=ht(process.execArgv),s=e.findIndex(Pt);return s>0&&e.slice(0,s).some(je)},"hasCliTypeScriptPreload"),Rt=gt().some(je)||St(),Ie=typeof T.registerHooks=="function"&&j($e)&&!Rt,Ut=i(e=>{if(!T.register&&!Ie)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Le){const{_resolveFilename:c}=T;T._resolveFilename=(n,...u)=>c(Ae(n),...u),Le=!0}const{sourceMapsEnabled:s}=process;if(process.setSourceMapsEnabled(!0),Ie){const c=le({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),n=T.registerHooks({load:rt(c),resolve:ft(c)}),u=i(async()=>{c.active=!1,n.deregister(),s===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(u.import=Te(e.namespace),u.unregister=u),u}const{port1:t,port2:r}=new Ce;T.register(`./esm/index.mjs?${Date.now()}`,{parentURL:import.meta.url,data:{port:r,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[r]});const o=e?.onImport,a=o&&(c=>{c.type==="load"&&o(c.url)});a&&(t.on("message",a),t.unref());const m=i(()=>(s===!1&&process.setSourceMapsEnabled(!1),a&&t.off("message",a),t.postMessage("deactivate"),new Promise(c=>{const n=i(u=>{u.type==="deactivated"&&(c(),t.off("message",n))},"onDeactivated");t.on("message",n)})),"unregister");return e?.namespace&&(m.import=Te(e.namespace),m.unregister=m),m},"register");export{Ut as a,Xe as g,Ge as i,ot as l,pt as r};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-CGdS2_oX.cjs"),q=require("./index-D9F1FXzN.cjs");require("node:path"),require("node:url"),require("esbuild"),require("node:crypto"),require("./node-features-CQLdkVE6.cjs"),require("node:fs"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${l.version} (Node.js ${process.version}).
|
|
2
|
+
Type ".help" for more information.`);const i=c.start(),{eval:p}=i,v=s(async function(e,r,o,t){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
|
+
`}));return p.call(this,a.code,r,o,t)},"preEval");i.eval=v;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-DyJMwVU5.mjs";import{t as c}from"./index-XurvG3JN.mjs";import"node:path";import"node:url";import"esbuild";import"node:crypto";import"./node-features-B9BBLzwu.mjs";import"node:fs";import"node:os";import"./temporary-directory-BDDVQOvU.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
|
2
|
+
Type ".help" for more information.`);const s=a.start(),{eval:f}=s,v=t(async function(o,r,e,i){const m=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
|
+
`}));return f.call(this,m.code,r,e,i)},"preEval");s.eval=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-BOkp8V6j.cjs");let e;const i=a((r,t)=>(e||(e=n.register({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),o=a((r,t,u)=>(e||(e=n.register({namespace:Date.now().toString()})),e.resolve(r,t,u)),"resolve");o.paths=s.require.resolve.paths,i.resolve=o,i.main=s.require.main,i.extensions=s.require.extensions,i.cache=s.require.cache,exports.tsxRequire=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-BnTWPeIB.mjs";let e;const s=a((r,t)=>(e||(e=n({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),i=a((r,t,c)=>(e||(e=n({namespace:Date.now().toString()})),e.resolve(r,t,c)),"resolve");i.paths=o.resolve.paths,s.resolve=i,s.main=o.main,s.extensions=o.extensions,s.cache=o.cache;export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=new Set(["Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time","Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js."]),{emit:n}=process;process.emit=function(e,t){if(!(e==="warning"&&a.has(t.message)))return Reflect.apply(n,this,arguments)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=new Set(["Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time","Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js."]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=require("node:path"),r=require("node:os");const{geteuid:e}=process,t=e?e():r.userInfo().username,i=s.join(r.tmpdir(),`tsx-${t}`);exports.tmpdir=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import s from"node:path";import o from"node:os";const{geteuid:r}=process,t=r?r():o.userInfo().username,e=s.join(o.tmpdir(),`tsx-${t}`);export{e as t};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tsx",
|
|
3
|
+
"version": "4.22.3",
|
|
4
|
+
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"runtime",
|
|
8
|
+
"node",
|
|
9
|
+
"cjs",
|
|
10
|
+
"commonjs",
|
|
11
|
+
"esm",
|
|
12
|
+
"typescript",
|
|
13
|
+
"typescript runner"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": "privatenumber/tsx",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Hiroki Osame",
|
|
19
|
+
"email": "hiroki.osame@gmail.com"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"bin": "./dist/cli.mjs",
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
".": "./dist/loader.mjs",
|
|
29
|
+
"./patch-repl": "./dist/patch-repl.cjs",
|
|
30
|
+
"./cjs": "./dist/cjs/index.cjs",
|
|
31
|
+
"./cjs/api": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/cjs/api/index.d.mts",
|
|
34
|
+
"default": "./dist/cjs/api/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/cjs/api/index.d.cts",
|
|
38
|
+
"default": "./dist/cjs/api/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./esm": "./dist/esm/index.mjs",
|
|
42
|
+
"./esm/api": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/esm/api/index.d.mts",
|
|
45
|
+
"default": "./dist/esm/api/index.mjs"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/esm/api/index.d.cts",
|
|
49
|
+
"default": "./dist/esm/api/index.cjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"./cli": "./dist/cli.mjs",
|
|
53
|
+
"./suppress-warnings": "./dist/suppress-warnings.cjs",
|
|
54
|
+
"./preflight": "./dist/preflight.cjs",
|
|
55
|
+
"./repl": "./dist/repl.mjs"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://tsx.hirok.io",
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=18.0.0"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"esbuild": "~0.28.0"
|
|
63
|
+
},
|
|
64
|
+
"optionalDependencies": {
|
|
65
|
+
"fsevents": "~2.3.3"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
16
|
+
|
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
18
|
+
|
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
20
|
+
|
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
22
|
+
|
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
24
|
+
|
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
26
|
+
|
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
28
|
+
|
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
30
|
+
|
|
31
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
32
|
+
|
|
33
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
34
|
+
|
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
36
|
+
|
|
37
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
38
|
+
|
|
39
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
40
|
+
|
|
41
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
42
|
+
|
|
43
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
46
|
+
|
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
48
|
+
|
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
50
|
+
|
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
52
|
+
|
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
54
|
+
|
|
55
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# TypeScript
|
|
3
|
+
|
|
4
|
+
[](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/typescript)
|
|
6
|
+
[](https://www.npmjs.com/package/typescript)
|
|
7
|
+
[](https://securityscorecards.dev/viewer/?uri=github.com/microsoft/TypeScript)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript).
|
|
11
|
+
|
|
12
|
+
Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/community/).
|
|
13
|
+
|
|
14
|
+
## Installing
|
|
15
|
+
|
|
16
|
+
For the latest stable version:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install -D typescript
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
For our nightly builds:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install -D typescript@next
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Contribute
|
|
29
|
+
|
|
30
|
+
There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript.
|
|
31
|
+
* [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
|
|
32
|
+
* Review the [source code changes](https://github.com/microsoft/TypeScript/pulls).
|
|
33
|
+
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
|
|
34
|
+
* Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
|
|
35
|
+
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
|
|
36
|
+
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md).
|
|
37
|
+
|
|
38
|
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
|
|
39
|
+
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
|
|
40
|
+
with any additional questions or comments.
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
* [TypeScript in 5 minutes](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)
|
|
45
|
+
* [Programming handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
|
|
46
|
+
* [Homepage](https://www.typescriptlang.org/)
|
|
47
|
+
|
|
48
|
+
## Roadmap
|
|
49
|
+
|
|
50
|
+
For details on our planned features and future direction, please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->
|
|
2
|
+
|
|
3
|
+
## Security
|
|
4
|
+
|
|
5
|
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
|
|
6
|
+
|
|
7
|
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
|
|
8
|
+
|
|
9
|
+
## Reporting Security Issues
|
|
10
|
+
|
|
11
|
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
|
12
|
+
|
|
13
|
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
|
|
14
|
+
|
|
15
|
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
|
|
16
|
+
|
|
17
|
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
|
|
18
|
+
|
|
19
|
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
20
|
+
|
|
21
|
+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
|
22
|
+
* Full paths of source file(s) related to the manifestation of the issue
|
|
23
|
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
|
24
|
+
* Any special configuration required to reproduce the issue
|
|
25
|
+
* Step-by-step instructions to reproduce the issue
|
|
26
|
+
* Proof-of-concept or exploit code (if possible)
|
|
27
|
+
* Impact of the issue, including how an attacker might exploit the issue
|
|
28
|
+
|
|
29
|
+
This information will help us triage your report more quickly.
|
|
30
|
+
|
|
31
|
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
|
|
32
|
+
|
|
33
|
+
## Preferred Languages
|
|
34
|
+
|
|
35
|
+
We prefer all communications to be in English.
|
|
36
|
+
|
|
37
|
+
## Policy
|
|
38
|
+
|
|
39
|
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
|
|
40
|
+
|
|
41
|
+
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|