@slicemachine/manager 0.1.1-dev-plugins.13 → 0.1.1-dev-plugins-validation.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/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs +68 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js +68 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs +43 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js +43 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs +804 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js +804 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs +354 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js +354 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs +14 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js +14 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs +65 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js +65 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.js.map +1 -0
- package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.js.map +1 -0
- package/dist/_node_modules/common-tags/es/commaLists/commaLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/commaLists/commaLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.js.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.js.map +1 -0
- package/dist/_node_modules/common-tags/es/html/html.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/html/html.js.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLine/oneLine.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLine/oneLine.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.js.map +1 -0
- package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.js.map +1 -0
- package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs +8 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js +9 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.js.map +1 -0
- package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.js.map +1 -0
- package/dist/_node_modules/cross-spawn/index.cjs +27 -0
- package/dist/_node_modules/cross-spawn/index.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/index.js +28 -0
- package/dist/_node_modules/cross-spawn/index.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs +46 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.js +47 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/parse.cjs +63 -0
- package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/parse.js +64 -0
- package/dist/_node_modules/cross-spawn/lib/parse.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.cjs +22 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.js +23 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs +20 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js +21 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs +42 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js +43 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +41 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +1 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.js +41 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
- package/dist/_node_modules/execa/index.cjs +148 -0
- package/dist/_node_modules/execa/index.cjs.map +1 -0
- package/dist/_node_modules/execa/index.js +148 -0
- package/dist/_node_modules/execa/index.js.map +1 -0
- package/dist/_node_modules/execa/lib/command.cjs +37 -0
- package/dist/_node_modules/execa/lib/command.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/command.js +37 -0
- package/dist/_node_modules/execa/lib/command.js.map +1 -0
- package/dist/_node_modules/execa/lib/error.cjs +73 -0
- package/dist/_node_modules/execa/lib/error.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/error.js +73 -0
- package/dist/_node_modules/execa/lib/error.js.map +1 -0
- package/dist/_node_modules/execa/lib/kill.cjs +81 -0
- package/dist/_node_modules/execa/lib/kill.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/kill.js +81 -0
- package/dist/_node_modules/execa/lib/kill.js.map +1 -0
- package/dist/_node_modules/execa/lib/pipe.cjs +37 -0
- package/dist/_node_modules/execa/lib/pipe.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/pipe.js +37 -0
- package/dist/_node_modules/execa/lib/pipe.js.map +1 -0
- package/dist/_node_modules/execa/lib/promise.cjs +30 -0
- package/dist/_node_modules/execa/lib/promise.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/promise.js +30 -0
- package/dist/_node_modules/execa/lib/promise.js.map +1 -0
- package/dist/_node_modules/execa/lib/stdio.cjs +26 -0
- package/dist/_node_modules/execa/lib/stdio.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/stdio.js +26 -0
- package/dist/_node_modules/execa/lib/stdio.js.map +1 -0
- package/dist/_node_modules/execa/lib/stream.cjs +82 -0
- package/dist/_node_modules/execa/lib/stream.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/stream.js +82 -0
- package/dist/_node_modules/execa/lib/stream.js.map +1 -0
- package/dist/_node_modules/execa/lib/verbose.cjs +20 -0
- package/dist/_node_modules/execa/lib/verbose.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/verbose.js +20 -0
- package/dist/_node_modules/execa/lib/verbose.js.map +1 -0
- package/dist/_node_modules/fetch-blob/file.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/file.js.map +1 -0
- package/dist/_node_modules/fetch-blob/index.cjs +223 -0
- package/dist/_node_modules/fetch-blob/index.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/index.js +223 -0
- package/dist/_node_modules/fetch-blob/index.js.map +1 -0
- package/dist/_node_modules/fetch-blob/streams.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/streams.js.map +1 -0
- package/dist/_node_modules/file-type/core.cjs +1180 -0
- package/dist/_node_modules/file-type/core.cjs.map +1 -0
- package/dist/_node_modules/file-type/core.js +1180 -0
- package/dist/_node_modules/file-type/core.js.map +1 -0
- package/dist/_node_modules/file-type/util.cjs.map +1 -0
- package/dist/_node_modules/file-type/util.js.map +1 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +1 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/Either.cjs +18 -0
- package/dist/_node_modules/fp-ts/es6/Either.cjs.map +1 -0
- package/dist/_node_modules/fp-ts/es6/Either.js +18 -0
- package/dist/_node_modules/fp-ts/es6/Either.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/function.cjs.map +1 -0
- package/dist/_node_modules/fp-ts/es6/function.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/internal.cjs.map +1 -0
- package/dist/_node_modules/fp-ts/es6/internal.js.map +1 -0
- package/dist/_node_modules/get-port/index.cjs.map +1 -0
- package/dist/_node_modules/get-port/index.js.map +1 -0
- package/dist/_node_modules/get-stream/buffer-stream.cjs +42 -0
- package/dist/_node_modules/get-stream/buffer-stream.cjs.map +1 -0
- package/dist/_node_modules/get-stream/buffer-stream.js +43 -0
- package/dist/_node_modules/get-stream/buffer-stream.js.map +1 -0
- package/dist/_node_modules/get-stream/index.cjs +56 -0
- package/dist/_node_modules/get-stream/index.cjs.map +1 -0
- package/dist/_node_modules/get-stream/index.js +57 -0
- package/dist/_node_modules/get-stream/index.js.map +1 -0
- package/dist/_node_modules/human-signals/build/src/core.cjs +275 -0
- package/dist/_node_modules/human-signals/build/src/core.cjs.map +1 -0
- package/dist/_node_modules/human-signals/build/src/core.js +275 -0
- package/dist/_node_modules/human-signals/build/src/core.js.map +1 -0
- package/dist/_node_modules/human-signals/build/src/main.cjs +58 -0
- package/dist/_node_modules/human-signals/build/src/main.cjs.map +1 -0
- package/dist/_node_modules/human-signals/build/src/main.js +58 -0
- package/dist/_node_modules/human-signals/build/src/main.js.map +1 -0
- package/dist/_node_modules/human-signals/build/src/realtime.cjs +20 -0
- package/dist/_node_modules/human-signals/build/src/realtime.cjs.map +1 -0
- package/dist/_node_modules/human-signals/build/src/realtime.js +20 -0
- package/dist/_node_modules/human-signals/build/src/realtime.js.map +1 -0
- package/dist/_node_modules/human-signals/build/src/signals.cjs +27 -0
- package/dist/_node_modules/human-signals/build/src/signals.cjs.map +1 -0
- package/dist/_node_modules/human-signals/build/src/signals.js +27 -0
- package/dist/_node_modules/human-signals/build/src/signals.js.map +1 -0
- package/dist/_node_modules/is-stream/index.cjs +11 -0
- package/dist/_node_modules/is-stream/index.cjs.map +1 -0
- package/dist/_node_modules/is-stream/index.js +11 -0
- package/dist/_node_modules/is-stream/index.js.map +1 -0
- package/dist/_node_modules/isexe/index.cjs +55 -0
- package/dist/_node_modules/isexe/index.cjs.map +1 -0
- package/dist/_node_modules/isexe/index.js +56 -0
- package/dist/_node_modules/isexe/index.js.map +1 -0
- package/dist/_node_modules/isexe/mode.cjs +40 -0
- package/dist/_node_modules/isexe/mode.cjs.map +1 -0
- package/dist/_node_modules/isexe/mode.js +40 -0
- package/dist/_node_modules/isexe/mode.js.map +1 -0
- package/dist/_node_modules/isexe/windows.cjs +47 -0
- package/dist/_node_modules/isexe/windows.cjs.map +1 -0
- package/dist/_node_modules/isexe/windows.js +47 -0
- package/dist/_node_modules/isexe/windows.js.map +1 -0
- package/dist/_node_modules/merge-stream/index.cjs +37 -0
- package/dist/_node_modules/merge-stream/index.cjs.map +1 -0
- package/dist/_node_modules/merge-stream/index.js +38 -0
- package/dist/_node_modules/merge-stream/index.js.map +1 -0
- package/dist/_node_modules/mimic-fn/index.cjs +46 -0
- package/dist/_node_modules/mimic-fn/index.cjs.map +1 -0
- package/dist/_node_modules/mimic-fn/index.js +47 -0
- package/dist/_node_modules/mimic-fn/index.js.map +1 -0
- package/dist/_node_modules/node-domexception/index.cjs.map +1 -0
- package/dist/_node_modules/node-domexception/index.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/body.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/body.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/base.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/headers.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/headers.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/index.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/index.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/request.cjs +206 -0
- package/dist/_node_modules/node-fetch/src/request.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/request.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/response.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/response.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +1 -0
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.cjs +13 -0
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.js +14 -0
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/npm-run-path/index.cjs +34 -0
- package/dist/_node_modules/npm-run-path/index.cjs.map +1 -0
- package/dist/_node_modules/npm-run-path/index.js +34 -0
- package/dist/_node_modules/npm-run-path/index.js.map +1 -0
- package/dist/_node_modules/onetime/index.cjs +32 -0
- package/dist/_node_modules/onetime/index.cjs.map +1 -0
- package/dist/_node_modules/onetime/index.js +33 -0
- package/dist/_node_modules/onetime/index.js.map +1 -0
- package/dist/_node_modules/p-limit/index.cjs.map +1 -0
- package/dist/_node_modules/p-limit/index.js.map +1 -0
- package/dist/_node_modules/path-key/index.cjs +14 -0
- package/dist/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/path-key/index.js +15 -0
- package/dist/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/peek-readable/lib/EndOfFileStream.cjs.map +1 -0
- package/dist/_node_modules/peek-readable/lib/EndOfFileStream.js.map +1 -0
- package/dist/_node_modules/r19/dist/R19Error.cjs +25 -0
- package/dist/_node_modules/r19/dist/R19Error.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/R19Error.js +25 -0
- package/dist/_node_modules/r19/dist/R19Error.js.map +1 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.cjs +90 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.js +90 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.js.map +1 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.cjs +36 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.js +36 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.js.map +1 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.cjs +121 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.js +121 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isErrorLike.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isErrorLike.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.cjs +11 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.js +11 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.cjs +8 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.js +8 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/replaceLeaves.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/replaceLeaves.js.map +1 -0
- package/dist/_node_modules/r19/dist/proceduresFromInstance.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/proceduresFromInstance.js.map +1 -0
- package/dist/_node_modules/shebang-command/index.cjs +17 -0
- package/dist/_node_modules/shebang-command/index.cjs.map +1 -0
- package/dist/_node_modules/shebang-command/index.js +18 -0
- package/dist/_node_modules/shebang-command/index.js.map +1 -0
- package/dist/_node_modules/shebang-regex/index.cjs +4 -0
- package/dist/_node_modules/shebang-regex/index.cjs.map +1 -0
- package/dist/_node_modules/shebang-regex/index.js +5 -0
- package/dist/_node_modules/shebang-regex/index.js.map +1 -0
- package/dist/_node_modules/signal-exit/index.cjs +148 -0
- package/dist/_node_modules/signal-exit/index.cjs.map +1 -0
- package/dist/_node_modules/signal-exit/index.js +149 -0
- package/dist/_node_modules/signal-exit/index.js.map +1 -0
- package/dist/_node_modules/signal-exit/signals.cjs +45 -0
- package/dist/_node_modules/signal-exit/signals.cjs.map +1 -0
- package/dist/_node_modules/signal-exit/signals.js +45 -0
- package/dist/_node_modules/signal-exit/signals.js.map +1 -0
- package/dist/_node_modules/strip-final-newline/index.cjs +14 -0
- package/dist/_node_modules/strip-final-newline/index.cjs.map +1 -0
- package/dist/_node_modules/strip-final-newline/index.js +15 -0
- package/dist/_node_modules/strip-final-newline/index.js.map +1 -0
- package/dist/_node_modules/strtok3/lib/AbstractTokenizer.cjs.map +1 -0
- package/dist/_node_modules/strtok3/lib/AbstractTokenizer.js.map +1 -0
- package/dist/_node_modules/strtok3/lib/BufferTokenizer.cjs.map +1 -0
- package/dist/_node_modules/strtok3/lib/BufferTokenizer.js.map +1 -0
- package/dist/_node_modules/strtok3/lib/core.cjs.map +1 -0
- package/dist/_node_modules/strtok3/lib/core.js.map +1 -0
- package/dist/_node_modules/token-types/lib/index.cjs.map +1 -0
- package/dist/_node_modules/token-types/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-is/lib/index.cjs +76 -0
- package/dist/_node_modules/unist-util-is/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-is/lib/index.js +76 -0
- package/dist/_node_modules/unist-util-is/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-visit/lib/index.cjs +39 -0
- package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit/lib/index.js +40 -0
- package/dist/_node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.js.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +86 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js +86 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +1 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
- package/dist/_node_modules/which/which.cjs +95 -0
- package/dist/_node_modules/which/which.cjs.map +1 -0
- package/dist/_node_modules/which/which.js +96 -0
- package/dist/_node_modules/which/which.js.map +1 -0
- package/dist/_node_modules/yocto-queue/index.cjs.map +1 -0
- package/dist/_node_modules/yocto-queue/index.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +0 -30
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +1 -31
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/escape.cjs +5 -0
- package/dist/_virtual/escape.cjs.map +1 -0
- package/dist/_virtual/escape.js +5 -0
- package/dist/_virtual/escape.js.map +1 -0
- package/dist/_virtual/index.cjs +11 -4
- package/dist/_virtual/index.cjs.map +1 -1
- package/dist/_virtual/index.js +11 -4
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index2.cjs +11 -4
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +11 -4
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +2 -2
- package/dist/_virtual/index3.js +6 -6
- package/dist/_virtual/index4.cjs +10 -2
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +11 -2
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/signals.cjs +13 -0
- package/dist/_virtual/signals.cjs.map +1 -0
- package/dist/_virtual/signals.js +14 -0
- package/dist/_virtual/signals.js.map +1 -0
- package/dist/auth/PrismicAuthManager.cjs +2 -2
- package/dist/auth/PrismicAuthManager.js +2 -2
- package/dist/constants/API_TOKENS.cjs +5 -4
- package/dist/constants/API_TOKENS.cjs.map +1 -1
- package/dist/constants/API_TOKENS.js +5 -4
- package/dist/constants/API_TOKENS.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/bufferCodec.d.ts +1 -0
- package/dist/lib/checkIsURLAccessible.cjs +1 -1
- package/dist/lib/checkIsURLAccessible.js +1 -1
- package/dist/lib/decode.cjs +2 -2
- package/dist/lib/decode.js +2 -2
- package/dist/lib/decodeSliceMachineConfig.cjs.map +1 -1
- package/dist/lib/decodeSliceMachineConfig.js.map +1 -1
- package/dist/lib/fetchGitHubReleaseBodyForRelease.cjs +2 -2
- package/dist/lib/fetchGitHubReleaseBodyForRelease.js +2 -2
- package/dist/lib/fetchNPMPackageVersions.cjs +1 -1
- package/dist/lib/fetchNPMPackageVersions.js +1 -1
- package/dist/lib/format.cjs +15 -15
- package/dist/lib/format.js +15 -15
- package/dist/lib/installDependencies.cjs +33 -0
- package/dist/lib/installDependencies.cjs.map +1 -0
- package/dist/lib/installDependencies.d.ts +13 -0
- package/dist/lib/installDependencies.js +33 -0
- package/dist/lib/installDependencies.js.map +1 -0
- package/dist/lib/locateFileUpward.cjs +1 -1
- package/dist/lib/locateFileUpward.cjs.map +1 -1
- package/dist/lib/locateFileUpward.js +1 -1
- package/dist/lib/locateFileUpward.js.map +1 -1
- package/dist/lib/markdownToHTML.cjs +3 -2
- package/dist/lib/markdownToHTML.cjs.map +1 -1
- package/dist/lib/markdownToHTML.js +3 -2
- package/dist/lib/markdownToHTML.js.map +1 -1
- package/dist/managers/SliceMachineManager.cjs +4 -7
- package/dist/managers/SliceMachineManager.cjs.map +1 -1
- package/dist/managers/SliceMachineManager.d.ts +0 -1
- package/dist/managers/SliceMachineManager.js +4 -7
- package/dist/managers/SliceMachineManager.js.map +1 -1
- package/dist/managers/createSliceMachineManagerClient.cjs +1 -1
- package/dist/managers/createSliceMachineManagerClient.js +1 -1
- package/dist/managers/createSliceMachineManagerMiddleware.cjs +4 -3
- package/dist/managers/createSliceMachineManagerMiddleware.cjs.map +1 -1
- package/dist/managers/createSliceMachineManagerMiddleware.d.ts +3 -2
- package/dist/managers/createSliceMachineManagerMiddleware.js +4 -3
- package/dist/managers/createSliceMachineManagerMiddleware.js.map +1 -1
- package/dist/managers/customTypes/CustomTypesManager.cjs +1 -1
- package/dist/managers/customTypes/CustomTypesManager.js +1 -1
- package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs +131 -1
- package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs.map +1 -1
- package/dist/managers/prismicRepository/PrismicRepositoryManager.d.ts +3 -1
- package/dist/managers/prismicRepository/PrismicRepositoryManager.js +132 -2
- package/dist/managers/prismicRepository/PrismicRepositoryManager.js.map +1 -1
- package/dist/managers/prismicRepository/types.cjs +24 -0
- package/dist/managers/prismicRepository/types.cjs.map +1 -1
- package/dist/managers/prismicRepository/types.d.ts +87 -2
- package/dist/managers/prismicRepository/types.js +27 -1
- package/dist/managers/prismicRepository/types.js.map +1 -1
- package/dist/managers/project/ProjectManager.cjs +64 -1
- package/dist/managers/project/ProjectManager.cjs.map +1 -1
- package/dist/managers/project/ProjectManager.d.ts +20 -1
- package/dist/managers/project/ProjectManager.js +64 -1
- package/dist/managers/project/ProjectManager.js.map +1 -1
- package/dist/managers/screenshots/ScreenshotsManager.cjs +5 -5
- package/dist/managers/screenshots/ScreenshotsManager.js +5 -5
- package/dist/managers/simulator/SimulatorManager.cjs +1 -1
- package/dist/managers/simulator/SimulatorManager.js +1 -1
- package/dist/managers/slices/SlicesManager.cjs +1 -1
- package/dist/managers/slices/SlicesManager.cjs.map +1 -1
- package/dist/managers/slices/SlicesManager.d.ts +1 -1
- package/dist/managers/slices/SlicesManager.js +1 -1
- package/dist/managers/slices/SlicesManager.js.map +1 -1
- package/dist/managers/telemetry/TelemetryManager.cjs +10 -9
- package/dist/managers/telemetry/TelemetryManager.cjs.map +1 -1
- package/dist/managers/telemetry/TelemetryManager.d.ts +1 -1
- package/dist/managers/telemetry/TelemetryManager.js +10 -9
- package/dist/managers/telemetry/TelemetryManager.js.map +1 -1
- package/dist/managers/telemetry/types.cjs +48 -2
- package/dist/managers/telemetry/types.cjs.map +1 -1
- package/dist/managers/telemetry/types.d.ts +143 -3
- package/dist/managers/telemetry/types.js +48 -2
- package/dist/managers/telemetry/types.js.map +1 -1
- package/dist/managers/versions/VersionsManager.cjs.map +1 -1
- package/dist/managers/versions/VersionsManager.js.map +1 -1
- package/dist/managers/versions/types.d.ts +1 -1
- package/dist/test/createSliceMachineManagerMSWHandler.cjs +3 -3
- package/dist/test/createSliceMachineManagerMSWHandler.cjs.map +1 -1
- package/dist/test/createSliceMachineManagerMSWHandler.js +3 -3
- package/dist/test/createSliceMachineManagerMSWHandler.js.map +1 -1
- package/dist/types.d.ts +3 -2
- package/package.json +37 -28
- package/src/constants/API_TOKENS.ts +5 -4
- package/src/index.ts +1 -1
- package/src/lib/decodeSliceMachineConfig.ts +1 -5
- package/src/lib/installDependencies.ts +59 -0
- package/src/lib/locateFileUpward.ts +1 -1
- package/src/lib/markdownToHTML.ts +4 -1
- package/src/managers/SliceMachineManager.ts +4 -7
- package/src/managers/createSliceMachineManagerMiddleware.ts +4 -1
- package/src/managers/prismicRepository/PrismicRepositoryManager.ts +179 -0
- package/src/managers/prismicRepository/types.ts +102 -2
- package/src/managers/project/ProjectManager.ts +118 -2
- package/src/managers/slices/SlicesManager.ts +1 -1
- package/src/managers/telemetry/TelemetryManager.ts +26 -18
- package/src/managers/telemetry/types.ts +225 -3
- package/src/managers/versions/VersionsManager.ts +1 -1
- package/src/managers/versions/types.ts +1 -1
- package/src/types.ts +4 -2
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs +0 -65
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js +0 -65
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs +0 -40
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js +0 -40
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs +0 -801
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js +0 -801
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs +0 -351
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js +0 -351
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs +0 -11
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js +0 -11
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs +0 -62
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js +0 -62
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/decode.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/decode.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/encode.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/encode.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs.map +0 -1
- package/dist/__node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.js.map +0 -1
- package/dist/__node_modules/@mswjs/cookies/lib/index.cjs +0 -26
- package/dist/__node_modules/@mswjs/cookies/lib/index.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/cookies/lib/index.js +0 -25
- package/dist/__node_modules/@mswjs/cookies/lib/index.js.map +0 -1
- package/dist/__node_modules/@mswjs/cookies/lib/store.cjs +0 -175
- package/dist/__node_modules/@mswjs/cookies/lib/store.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/cookies/lib/store.js +0 -174
- package/dist/__node_modules/@mswjs/cookies/lib/store.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/BatchInterceptor.cjs +0 -92
- package/dist/__node_modules/@mswjs/interceptors/lib/BatchInterceptor.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/BatchInterceptor.js +0 -93
- package/dist/__node_modules/@mswjs/interceptors/lib/BatchInterceptor.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/InteractiveIsomorphicRequest.cjs +0 -52
- package/dist/__node_modules/@mswjs/interceptors/lib/InteractiveIsomorphicRequest.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/InteractiveIsomorphicRequest.js +0 -53
- package/dist/__node_modules/@mswjs/interceptors/lib/InteractiveIsomorphicRequest.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/Interceptor.cjs +0 -176
- package/dist/__node_modules/@mswjs/interceptors/lib/Interceptor.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/Interceptor.js +0 -175
- package/dist/__node_modules/@mswjs/interceptors/lib/Interceptor.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/IsomorphicRequest.cjs +0 -186
- package/dist/__node_modules/@mswjs/interceptors/lib/IsomorphicRequest.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/IsomorphicRequest.js +0 -187
- package/dist/__node_modules/@mswjs/interceptors/lib/IsomorphicRequest.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/glossary.cjs +0 -7
- package/dist/__node_modules/@mswjs/interceptors/lib/glossary.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/glossary.js +0 -8
- package/dist/__node_modules/@mswjs/interceptors/lib/glossary.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/index.cjs +0 -54
- package/dist/__node_modules/@mswjs/interceptors/lib/index.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/index.js +0 -53
- package/dist/__node_modules/@mswjs/interceptors/lib/index.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/XMLHttpRequestOverride.cjs +0 -554
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/XMLHttpRequestOverride.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/XMLHttpRequestOverride.js +0 -554
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/XMLHttpRequestOverride.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/index.cjs +0 -83
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/index.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/index.js +0 -83
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/index.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/EventPolyfill.cjs +0 -57
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/EventPolyfill.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/EventPolyfill.js +0 -57
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/EventPolyfill.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.cjs +0 -51
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.js +0 -51
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/bufferFrom.cjs +0 -26
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/bufferFrom.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/bufferFrom.js +0 -26
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/bufferFrom.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/createEvent.cjs +0 -41
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/createEvent.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/createEvent.js +0 -41
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/XMLHttpRequest/utils/createEvent.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.cjs +0 -319
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.js +0 -319
- package/dist/__node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/AsyncEventEmitter.cjs +0 -327
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/AsyncEventEmitter.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/AsyncEventEmitter.js +0 -326
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/AsyncEventEmitter.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/bufferUtils.cjs +0 -24
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/bufferUtils.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/bufferUtils.js +0 -25
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/bufferUtils.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/createLazyCallback.cjs +0 -148
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/createLazyCallback.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/createLazyCallback.js +0 -149
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/createLazyCallback.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/getCleanUrl.cjs +0 -13
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/getCleanUrl.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/getCleanUrl.js +0 -14
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/getCleanUrl.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/nextTick.cjs +0 -18
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/nextTick.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/nextTick.js +0 -19
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/nextTick.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/parseJson.cjs +0 -23
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/parseJson.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/parseJson.js +0 -23
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/parseJson.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/toIsoResponse.cjs +0 -26
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/toIsoResponse.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/toIsoResponse.js +0 -26
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/toIsoResponse.js.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/uuid.cjs +0 -14
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/uuid.cjs.map +0 -1
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/uuid.js +0 -15
- package/dist/__node_modules/@mswjs/interceptors/lib/utils/uuid.js.map +0 -1
- package/dist/__node_modules/@open-draft/until/lib/index.cjs +0 -9
- package/dist/__node_modules/@open-draft/until/lib/index.cjs.map +0 -1
- package/dist/__node_modules/@open-draft/until/lib/index.js +0 -10
- package/dist/__node_modules/@open-draft/until/lib/index.js.map +0 -1
- package/dist/__node_modules/@open-draft/until/lib/until.cjs +0 -15
- package/dist/__node_modules/@open-draft/until/lib/until.cjs.map +0 -1
- package/dist/__node_modules/@open-draft/until/lib/until.js +0 -16
- package/dist/__node_modules/@open-draft/until/lib/until.js.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/conventions.cjs +0 -144
- package/dist/__node_modules/@xmldom/xmldom/lib/conventions.cjs.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/conventions.js +0 -144
- package/dist/__node_modules/@xmldom/xmldom/lib/conventions.js.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/dom-parser.cjs +0 -226
- package/dist/__node_modules/@xmldom/xmldom/lib/dom-parser.cjs.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/dom-parser.js +0 -226
- package/dist/__node_modules/@xmldom/xmldom/lib/dom-parser.js.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/dom.cjs +0 -1396
- package/dist/__node_modules/@xmldom/xmldom/lib/dom.cjs.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/dom.js +0 -1396
- package/dist/__node_modules/@xmldom/xmldom/lib/dom.js.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/entities.cjs +0 -261
- package/dist/__node_modules/@xmldom/xmldom/lib/entities.cjs.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/entities.js +0 -261
- package/dist/__node_modules/@xmldom/xmldom/lib/entities.js.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/index.cjs +0 -18
- package/dist/__node_modules/@xmldom/xmldom/lib/index.cjs.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/index.js +0 -18
- package/dist/__node_modules/@xmldom/xmldom/lib/index.js.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/sax.cjs +0 -588
- package/dist/__node_modules/@xmldom/xmldom/lib/sax.cjs.map +0 -1
- package/dist/__node_modules/@xmldom/xmldom/lib/sax.js +0 -588
- package/dist/__node_modules/@xmldom/xmldom/lib/sax.js.map +0 -1
- package/dist/__node_modules/common-tags/es/TemplateTag/TemplateTag.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/TemplateTag/TemplateTag.js.map +0 -1
- package/dist/__node_modules/common-tags/es/commaLists/commaLists.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/commaLists/commaLists.js.map +0 -1
- package/dist/__node_modules/common-tags/es/commaListsAnd/commaListsAnd.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/commaListsAnd/commaListsAnd.js.map +0 -1
- package/dist/__node_modules/common-tags/es/commaListsOr/commaListsOr.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/commaListsOr/commaListsOr.js.map +0 -1
- package/dist/__node_modules/common-tags/es/html/html.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/html/html.js.map +0 -1
- package/dist/__node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js.map +0 -1
- package/dist/__node_modules/common-tags/es/inlineLists/inlineLists.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/inlineLists/inlineLists.js.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLine/oneLine.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLine/oneLine.js.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.js.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.js.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineTrim/oneLineTrim.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/oneLineTrim/oneLineTrim.js.map +0 -1
- package/dist/__node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js.map +0 -1
- package/dist/__node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.js.map +0 -1
- package/dist/__node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js.map +0 -1
- package/dist/__node_modules/common-tags/es/safeHtml/safeHtml.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/safeHtml/safeHtml.js.map +0 -1
- package/dist/__node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.js.map +0 -1
- package/dist/__node_modules/common-tags/es/stripIndent/stripIndent.cjs +0 -7
- package/dist/__node_modules/common-tags/es/stripIndent/stripIndent.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/stripIndent/stripIndent.js +0 -8
- package/dist/__node_modules/common-tags/es/stripIndent/stripIndent.js.map +0 -1
- package/dist/__node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.js.map +0 -1
- package/dist/__node_modules/common-tags/es/stripIndents/stripIndents.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/stripIndents/stripIndents.js.map +0 -1
- package/dist/__node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.cjs.map +0 -1
- package/dist/__node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.js.map +0 -1
- package/dist/__node_modules/data-uri-to-buffer/dist/index.cjs +0 -41
- package/dist/__node_modules/data-uri-to-buffer/dist/index.cjs.map +0 -1
- package/dist/__node_modules/data-uri-to-buffer/dist/index.js +0 -41
- package/dist/__node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
- package/dist/__node_modules/debug/__node_modules/ms/index.cjs +0 -122
- package/dist/__node_modules/debug/__node_modules/ms/index.cjs.map +0 -1
- package/dist/__node_modules/debug/__node_modules/ms/index.js +0 -122
- package/dist/__node_modules/debug/__node_modules/ms/index.js.map +0 -1
- package/dist/__node_modules/debug/src/browser.cjs +0 -165
- package/dist/__node_modules/debug/src/browser.cjs.map +0 -1
- package/dist/__node_modules/debug/src/browser.js +0 -164
- package/dist/__node_modules/debug/src/browser.js.map +0 -1
- package/dist/__node_modules/debug/src/common.cjs +0 -161
- package/dist/__node_modules/debug/src/common.cjs.map +0 -1
- package/dist/__node_modules/debug/src/common.js +0 -162
- package/dist/__node_modules/debug/src/common.js.map +0 -1
- package/dist/__node_modules/fetch-blob/file.cjs.map +0 -1
- package/dist/__node_modules/fetch-blob/file.js.map +0 -1
- package/dist/__node_modules/fetch-blob/index.cjs +0 -217
- package/dist/__node_modules/fetch-blob/index.cjs.map +0 -1
- package/dist/__node_modules/fetch-blob/index.js +0 -217
- package/dist/__node_modules/fetch-blob/index.js.map +0 -1
- package/dist/__node_modules/fetch-blob/streams.cjs.map +0 -1
- package/dist/__node_modules/fetch-blob/streams.js.map +0 -1
- package/dist/__node_modules/file-type/core.cjs +0 -1147
- package/dist/__node_modules/file-type/core.cjs.map +0 -1
- package/dist/__node_modules/file-type/core.js +0 -1147
- package/dist/__node_modules/file-type/core.js.map +0 -1
- package/dist/__node_modules/file-type/util.cjs.map +0 -1
- package/dist/__node_modules/file-type/util.js.map +0 -1
- package/dist/__node_modules/formdata-polyfill/esm.min.cjs.map +0 -1
- package/dist/__node_modules/formdata-polyfill/esm.min.js.map +0 -1
- package/dist/__node_modules/fp-ts/es6/Either.cjs +0 -14
- package/dist/__node_modules/fp-ts/es6/Either.cjs.map +0 -1
- package/dist/__node_modules/fp-ts/es6/Either.js +0 -14
- package/dist/__node_modules/fp-ts/es6/Either.js.map +0 -1
- package/dist/__node_modules/fp-ts/es6/function.cjs.map +0 -1
- package/dist/__node_modules/fp-ts/es6/function.js.map +0 -1
- package/dist/__node_modules/fp-ts/es6/internal.cjs.map +0 -1
- package/dist/__node_modules/fp-ts/es6/internal.js.map +0 -1
- package/dist/__node_modules/get-port/index.cjs.map +0 -1
- package/dist/__node_modules/get-port/index.js.map +0 -1
- package/dist/__node_modules/graphql/error/GraphQLError.cjs +0 -162
- package/dist/__node_modules/graphql/error/GraphQLError.cjs.map +0 -1
- package/dist/__node_modules/graphql/error/GraphQLError.js +0 -162
- package/dist/__node_modules/graphql/error/GraphQLError.js.map +0 -1
- package/dist/__node_modules/graphql/error/locatedError.cjs +0 -23
- package/dist/__node_modules/graphql/error/locatedError.cjs.map +0 -1
- package/dist/__node_modules/graphql/error/locatedError.js +0 -23
- package/dist/__node_modules/graphql/error/locatedError.js.map +0 -1
- package/dist/__node_modules/graphql/error/syntaxError.cjs +0 -11
- package/dist/__node_modules/graphql/error/syntaxError.cjs.map +0 -1
- package/dist/__node_modules/graphql/error/syntaxError.js +0 -11
- package/dist/__node_modules/graphql/error/syntaxError.js.map +0 -1
- package/dist/__node_modules/graphql/execution/collectFields.cjs +0 -128
- package/dist/__node_modules/graphql/execution/collectFields.cjs.map +0 -1
- package/dist/__node_modules/graphql/execution/collectFields.js +0 -128
- package/dist/__node_modules/graphql/execution/collectFields.js.map +0 -1
- package/dist/__node_modules/graphql/execution/execute.cjs +0 -600
- package/dist/__node_modules/graphql/execution/execute.cjs.map +0 -1
- package/dist/__node_modules/graphql/execution/execute.js +0 -600
- package/dist/__node_modules/graphql/execution/execute.js.map +0 -1
- package/dist/__node_modules/graphql/execution/mapAsyncIterator.cjs +0 -46
- package/dist/__node_modules/graphql/execution/mapAsyncIterator.cjs.map +0 -1
- package/dist/__node_modules/graphql/execution/mapAsyncIterator.js +0 -46
- package/dist/__node_modules/graphql/execution/mapAsyncIterator.js.map +0 -1
- package/dist/__node_modules/graphql/execution/subscribe.cjs +0 -121
- package/dist/__node_modules/graphql/execution/subscribe.cjs.map +0 -1
- package/dist/__node_modules/graphql/execution/subscribe.js +0 -121
- package/dist/__node_modules/graphql/execution/subscribe.js.map +0 -1
- package/dist/__node_modules/graphql/execution/values.cjs +0 -184
- package/dist/__node_modules/graphql/execution/values.cjs.map +0 -1
- package/dist/__node_modules/graphql/execution/values.js +0 -184
- package/dist/__node_modules/graphql/execution/values.js.map +0 -1
- package/dist/__node_modules/graphql/graphql.cjs +0 -67
- package/dist/__node_modules/graphql/graphql.cjs.map +0 -1
- package/dist/__node_modules/graphql/graphql.js +0 -67
- package/dist/__node_modules/graphql/graphql.js.map +0 -1
- package/dist/__node_modules/graphql/index.cjs +0 -320
- package/dist/__node_modules/graphql/index.cjs.map +0 -1
- package/dist/__node_modules/graphql/index.js +0 -299
- package/dist/__node_modules/graphql/index.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/Path.cjs +0 -21
- package/dist/__node_modules/graphql/jsutils/Path.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/Path.js +0 -21
- package/dist/__node_modules/graphql/jsutils/Path.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/devAssert.cjs +0 -10
- package/dist/__node_modules/graphql/jsutils/devAssert.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/devAssert.js +0 -10
- package/dist/__node_modules/graphql/jsutils/devAssert.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/didYouMean.cjs +0 -24
- package/dist/__node_modules/graphql/jsutils/didYouMean.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/didYouMean.js +0 -24
- package/dist/__node_modules/graphql/jsutils/didYouMean.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/groupBy.cjs +0 -17
- package/dist/__node_modules/graphql/jsutils/groupBy.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/groupBy.js +0 -17
- package/dist/__node_modules/graphql/jsutils/groupBy.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/identityFunc.cjs +0 -7
- package/dist/__node_modules/graphql/jsutils/identityFunc.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/identityFunc.js +0 -7
- package/dist/__node_modules/graphql/jsutils/identityFunc.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/inspect.cjs +0 -85
- package/dist/__node_modules/graphql/jsutils/inspect.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/inspect.js +0 -85
- package/dist/__node_modules/graphql/jsutils/inspect.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/instanceOf.cjs +0 -41
- package/dist/__node_modules/graphql/jsutils/instanceOf.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/instanceOf.js +0 -41
- package/dist/__node_modules/graphql/jsutils/instanceOf.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/invariant.cjs +0 -12
- package/dist/__node_modules/graphql/jsutils/invariant.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/invariant.js +0 -12
- package/dist/__node_modules/graphql/jsutils/invariant.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isAsyncIterable.cjs +0 -7
- package/dist/__node_modules/graphql/jsutils/isAsyncIterable.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isAsyncIterable.js +0 -7
- package/dist/__node_modules/graphql/jsutils/isAsyncIterable.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isIterableObject.cjs +0 -7
- package/dist/__node_modules/graphql/jsutils/isIterableObject.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isIterableObject.js +0 -7
- package/dist/__node_modules/graphql/jsutils/isIterableObject.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isObjectLike.cjs +0 -7
- package/dist/__node_modules/graphql/jsutils/isObjectLike.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isObjectLike.js +0 -7
- package/dist/__node_modules/graphql/jsutils/isObjectLike.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isPromise.cjs +0 -7
- package/dist/__node_modules/graphql/jsutils/isPromise.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/isPromise.js +0 -7
- package/dist/__node_modules/graphql/jsutils/isPromise.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/keyMap.cjs +0 -11
- package/dist/__node_modules/graphql/jsutils/keyMap.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/keyMap.js +0 -11
- package/dist/__node_modules/graphql/jsutils/keyMap.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/keyValMap.cjs +0 -11
- package/dist/__node_modules/graphql/jsutils/keyValMap.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/keyValMap.js +0 -11
- package/dist/__node_modules/graphql/jsutils/keyValMap.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/mapValue.cjs +0 -11
- package/dist/__node_modules/graphql/jsutils/mapValue.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/mapValue.js +0 -11
- package/dist/__node_modules/graphql/jsutils/mapValue.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/memoize3.cjs +0 -28
- package/dist/__node_modules/graphql/jsutils/memoize3.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/memoize3.js +0 -28
- package/dist/__node_modules/graphql/jsutils/memoize3.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/naturalCompare.cjs +0 -47
- package/dist/__node_modules/graphql/jsutils/naturalCompare.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/naturalCompare.js +0 -47
- package/dist/__node_modules/graphql/jsutils/naturalCompare.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/printPathArray.cjs +0 -9
- package/dist/__node_modules/graphql/jsutils/printPathArray.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/printPathArray.js +0 -9
- package/dist/__node_modules/graphql/jsutils/printPathArray.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/promiseForObject.cjs +0 -13
- package/dist/__node_modules/graphql/jsutils/promiseForObject.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/promiseForObject.js +0 -13
- package/dist/__node_modules/graphql/jsutils/promiseForObject.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/promiseReduce.cjs +0 -12
- package/dist/__node_modules/graphql/jsutils/promiseReduce.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/promiseReduce.js +0 -12
- package/dist/__node_modules/graphql/jsutils/promiseReduce.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/suggestionList.cjs +0 -94
- package/dist/__node_modules/graphql/jsutils/suggestionList.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/suggestionList.js +0 -94
- package/dist/__node_modules/graphql/jsutils/suggestionList.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/toError.cjs +0 -15
- package/dist/__node_modules/graphql/jsutils/toError.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/toError.js +0 -15
- package/dist/__node_modules/graphql/jsutils/toError.js.map +0 -1
- package/dist/__node_modules/graphql/jsutils/toObjMap.cjs +0 -17
- package/dist/__node_modules/graphql/jsutils/toObjMap.cjs.map +0 -1
- package/dist/__node_modules/graphql/jsutils/toObjMap.js +0 -17
- package/dist/__node_modules/graphql/jsutils/toObjMap.js.map +0 -1
- package/dist/__node_modules/graphql/language/ast.cjs +0 -175
- package/dist/__node_modules/graphql/language/ast.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/ast.js +0 -176
- package/dist/__node_modules/graphql/language/ast.js.map +0 -1
- package/dist/__node_modules/graphql/language/blockString.cjs +0 -109
- package/dist/__node_modules/graphql/language/blockString.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/blockString.js +0 -109
- package/dist/__node_modules/graphql/language/blockString.js.map +0 -1
- package/dist/__node_modules/graphql/language/characterClasses.cjs +0 -23
- package/dist/__node_modules/graphql/language/characterClasses.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/characterClasses.js +0 -23
- package/dist/__node_modules/graphql/language/characterClasses.js.map +0 -1
- package/dist/__node_modules/graphql/language/directiveLocation.cjs +0 -25
- package/dist/__node_modules/graphql/language/directiveLocation.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/directiveLocation.js +0 -26
- package/dist/__node_modules/graphql/language/directiveLocation.js.map +0 -1
- package/dist/__node_modules/graphql/language/kinds.cjs +0 -49
- package/dist/__node_modules/graphql/language/kinds.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/kinds.js +0 -50
- package/dist/__node_modules/graphql/language/kinds.js.map +0 -1
- package/dist/__node_modules/graphql/language/lexer.cjs +0 -509
- package/dist/__node_modules/graphql/language/lexer.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/lexer.js +0 -509
- package/dist/__node_modules/graphql/language/lexer.js.map +0 -1
- package/dist/__node_modules/graphql/language/location.cjs +0 -22
- package/dist/__node_modules/graphql/language/location.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/location.js +0 -22
- package/dist/__node_modules/graphql/language/location.js.map +0 -1
- package/dist/__node_modules/graphql/language/parser.cjs +0 -1283
- package/dist/__node_modules/graphql/language/parser.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/parser.js +0 -1283
- package/dist/__node_modules/graphql/language/parser.js.map +0 -1
- package/dist/__node_modules/graphql/language/predicates.cjs +0 -44
- package/dist/__node_modules/graphql/language/predicates.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/predicates.js +0 -44
- package/dist/__node_modules/graphql/language/predicates.js.map +0 -1
- package/dist/__node_modules/graphql/language/printLocation.cjs +0 -51
- package/dist/__node_modules/graphql/language/printLocation.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/printLocation.js +0 -51
- package/dist/__node_modules/graphql/language/printLocation.js.map +0 -1
- package/dist/__node_modules/graphql/language/printString.cjs +0 -178
- package/dist/__node_modules/graphql/language/printString.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/printString.js +0 -178
- package/dist/__node_modules/graphql/language/printString.js.map +0 -1
- package/dist/__node_modules/graphql/language/printer.cjs +0 -245
- package/dist/__node_modules/graphql/language/printer.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/printer.js +0 -245
- package/dist/__node_modules/graphql/language/printer.js.map +0 -1
- package/dist/__node_modules/graphql/language/source.cjs +0 -33
- package/dist/__node_modules/graphql/language/source.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/source.js +0 -33
- package/dist/__node_modules/graphql/language/source.js.map +0 -1
- package/dist/__node_modules/graphql/language/tokenKind.cjs +0 -28
- package/dist/__node_modules/graphql/language/tokenKind.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/tokenKind.js +0 -29
- package/dist/__node_modules/graphql/language/tokenKind.js.map +0 -1
- package/dist/__node_modules/graphql/language/visitor.cjs +0 -200
- package/dist/__node_modules/graphql/language/visitor.cjs.map +0 -1
- package/dist/__node_modules/graphql/language/visitor.js +0 -200
- package/dist/__node_modules/graphql/language/visitor.js.map +0 -1
- package/dist/__node_modules/graphql/type/assertName.cjs +0 -34
- package/dist/__node_modules/graphql/type/assertName.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/assertName.js +0 -34
- package/dist/__node_modules/graphql/type/assertName.js.map +0 -1
- package/dist/__node_modules/graphql/type/definition.cjs +0 -762
- package/dist/__node_modules/graphql/type/definition.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/definition.js +0 -762
- package/dist/__node_modules/graphql/type/definition.js.map +0 -1
- package/dist/__node_modules/graphql/type/directives.cjs +0 -139
- package/dist/__node_modules/graphql/type/directives.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/directives.js +0 -139
- package/dist/__node_modules/graphql/type/directives.js.map +0 -1
- package/dist/__node_modules/graphql/type/introspection.cjs +0 -495
- package/dist/__node_modules/graphql/type/introspection.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/introspection.js +0 -496
- package/dist/__node_modules/graphql/type/introspection.js.map +0 -1
- package/dist/__node_modules/graphql/type/scalars.cjs +0 -248
- package/dist/__node_modules/graphql/type/scalars.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/scalars.js +0 -248
- package/dist/__node_modules/graphql/type/scalars.js.map +0 -1
- package/dist/__node_modules/graphql/type/schema.cjs +0 -223
- package/dist/__node_modules/graphql/type/schema.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/schema.js +0 -223
- package/dist/__node_modules/graphql/type/schema.js.map +0 -1
- package/dist/__node_modules/graphql/type/validate.cjs +0 -428
- package/dist/__node_modules/graphql/type/validate.cjs.map +0 -1
- package/dist/__node_modules/graphql/type/validate.js +0 -428
- package/dist/__node_modules/graphql/type/validate.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/TypeInfo.cjs +0 -257
- package/dist/__node_modules/graphql/utilities/TypeInfo.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/TypeInfo.js +0 -257
- package/dist/__node_modules/graphql/utilities/TypeInfo.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/assertValidName.cjs +0 -28
- package/dist/__node_modules/graphql/utilities/assertValidName.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/assertValidName.js +0 -28
- package/dist/__node_modules/graphql/utilities/assertValidName.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/astFromValue.cjs +0 -111
- package/dist/__node_modules/graphql/utilities/astFromValue.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/astFromValue.js +0 -111
- package/dist/__node_modules/graphql/utilities/astFromValue.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/buildASTSchema.cjs +0 -62
- package/dist/__node_modules/graphql/utilities/buildASTSchema.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/buildASTSchema.js +0 -62
- package/dist/__node_modules/graphql/utilities/buildASTSchema.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/buildClientSchema.cjs +0 -264
- package/dist/__node_modules/graphql/utilities/buildClientSchema.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/buildClientSchema.js +0 -264
- package/dist/__node_modules/graphql/utilities/buildClientSchema.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/coerceInputValue.cjs +0 -133
- package/dist/__node_modules/graphql/utilities/coerceInputValue.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/coerceInputValue.js +0 -133
- package/dist/__node_modules/graphql/utilities/coerceInputValue.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/concatAST.cjs +0 -15
- package/dist/__node_modules/graphql/utilities/concatAST.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/concatAST.js +0 -15
- package/dist/__node_modules/graphql/utilities/concatAST.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/extendSchema.cjs +0 -448
- package/dist/__node_modules/graphql/utilities/extendSchema.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/extendSchema.js +0 -448
- package/dist/__node_modules/graphql/utilities/extendSchema.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/findBreakingChanges.cjs +0 -384
- package/dist/__node_modules/graphql/utilities/findBreakingChanges.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/findBreakingChanges.js +0 -386
- package/dist/__node_modules/graphql/utilities/findBreakingChanges.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/getIntrospectionQuery.cjs +0 -119
- package/dist/__node_modules/graphql/utilities/getIntrospectionQuery.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/getIntrospectionQuery.js +0 -119
- package/dist/__node_modules/graphql/utilities/getIntrospectionQuery.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/getOperationAST.cjs +0 -22
- package/dist/__node_modules/graphql/utilities/getOperationAST.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/getOperationAST.js +0 -22
- package/dist/__node_modules/graphql/utilities/getOperationAST.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/getOperationRootType.cjs +0 -43
- package/dist/__node_modules/graphql/utilities/getOperationRootType.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/getOperationRootType.js +0 -43
- package/dist/__node_modules/graphql/utilities/getOperationRootType.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/introspectionFromSchema.cjs +0 -24
- package/dist/__node_modules/graphql/utilities/introspectionFromSchema.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/introspectionFromSchema.js +0 -24
- package/dist/__node_modules/graphql/utilities/introspectionFromSchema.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/lexicographicSortSchema.cjs +0 -129
- package/dist/__node_modules/graphql/utilities/lexicographicSortSchema.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/lexicographicSortSchema.js +0 -129
- package/dist/__node_modules/graphql/utilities/lexicographicSortSchema.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/printSchema.cjs +0 -192
- package/dist/__node_modules/graphql/utilities/printSchema.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/printSchema.js +0 -192
- package/dist/__node_modules/graphql/utilities/printSchema.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/separateOperations.cjs +0 -57
- package/dist/__node_modules/graphql/utilities/separateOperations.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/separateOperations.js +0 -57
- package/dist/__node_modules/graphql/utilities/separateOperations.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/sortValueNode.cjs +0 -30
- package/dist/__node_modules/graphql/utilities/sortValueNode.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/sortValueNode.js +0 -30
- package/dist/__node_modules/graphql/utilities/sortValueNode.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/stripIgnoredCharacters.cjs +0 -35
- package/dist/__node_modules/graphql/utilities/stripIgnoredCharacters.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/stripIgnoredCharacters.js +0 -35
- package/dist/__node_modules/graphql/utilities/stripIgnoredCharacters.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/typeComparators.cjs +0 -58
- package/dist/__node_modules/graphql/utilities/typeComparators.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/typeComparators.js +0 -58
- package/dist/__node_modules/graphql/utilities/typeComparators.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/typeFromAST.cjs +0 -20
- package/dist/__node_modules/graphql/utilities/typeFromAST.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/typeFromAST.js +0 -20
- package/dist/__node_modules/graphql/utilities/typeFromAST.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/valueFromAST.cjs +0 -100
- package/dist/__node_modules/graphql/utilities/valueFromAST.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/valueFromAST.js +0 -100
- package/dist/__node_modules/graphql/utilities/valueFromAST.js.map +0 -1
- package/dist/__node_modules/graphql/utilities/valueFromASTUntyped.cjs +0 -32
- package/dist/__node_modules/graphql/utilities/valueFromASTUntyped.cjs.map +0 -1
- package/dist/__node_modules/graphql/utilities/valueFromASTUntyped.js +0 -32
- package/dist/__node_modules/graphql/utilities/valueFromASTUntyped.js.map +0 -1
- package/dist/__node_modules/graphql/validation/ValidationContext.cjs +0 -170
- package/dist/__node_modules/graphql/validation/ValidationContext.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/ValidationContext.js +0 -170
- package/dist/__node_modules/graphql/validation/ValidationContext.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ExecutableDefinitionsRule.cjs +0 -24
- package/dist/__node_modules/graphql/validation/rules/ExecutableDefinitionsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +0 -24
- package/dist/__node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.cjs +0 -80
- package/dist/__node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +0 -80
- package/dist/__node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.cjs +0 -43
- package/dist/__node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +0 -43
- package/dist/__node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownArgumentNamesRule.cjs +0 -73
- package/dist/__node_modules/graphql/validation/rules/KnownArgumentNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +0 -73
- package/dist/__node_modules/graphql/validation/rules/KnownArgumentNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownDirectivesRule.cjs +0 -110
- package/dist/__node_modules/graphql/validation/rules/KnownDirectivesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownDirectivesRule.js +0 -110
- package/dist/__node_modules/graphql/validation/rules/KnownDirectivesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownFragmentNamesRule.cjs +0 -20
- package/dist/__node_modules/graphql/validation/rules/KnownFragmentNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +0 -20
- package/dist/__node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownTypeNamesRule.cjs +0 -55
- package/dist/__node_modules/graphql/validation/rules/KnownTypeNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/KnownTypeNamesRule.js +0 -55
- package/dist/__node_modules/graphql/validation/rules/KnownTypeNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/LoneAnonymousOperationRule.cjs +0 -28
- package/dist/__node_modules/graphql/validation/rules/LoneAnonymousOperationRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +0 -28
- package/dist/__node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.cjs +0 -34
- package/dist/__node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +0 -34
- package/dist/__node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoFragmentCyclesRule.cjs +0 -53
- package/dist/__node_modules/graphql/validation/rules/NoFragmentCyclesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +0 -53
- package/dist/__node_modules/graphql/validation/rules/NoFragmentCyclesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoUndefinedVariablesRule.cjs +0 -34
- package/dist/__node_modules/graphql/validation/rules/NoUndefinedVariablesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +0 -34
- package/dist/__node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoUnusedFragmentsRule.cjs +0 -41
- package/dist/__node_modules/graphql/validation/rules/NoUnusedFragmentsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +0 -41
- package/dist/__node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoUnusedVariablesRule.cjs +0 -38
- package/dist/__node_modules/graphql/validation/rules/NoUnusedVariablesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +0 -38
- package/dist/__node_modules/graphql/validation/rules/NoUnusedVariablesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.cjs +0 -477
- package/dist/__node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +0 -477
- package/dist/__node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.cjs +0 -55
- package/dist/__node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +0 -55
- package/dist/__node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.cjs +0 -111
- package/dist/__node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +0 -111
- package/dist/__node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.cjs +0 -97
- package/dist/__node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +0 -97
- package/dist/__node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ScalarLeafsRule.cjs +0 -42
- package/dist/__node_modules/graphql/validation/rules/ScalarLeafsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ScalarLeafsRule.js +0 -42
- package/dist/__node_modules/graphql/validation/rules/ScalarLeafsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.cjs +0 -62
- package/dist/__node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +0 -62
- package/dist/__node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.cjs +0 -47
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +0 -47
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentNamesRule.cjs +0 -29
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +0 -29
- package/dist/__node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.cjs +0 -38
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +0 -38
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.cjs +0 -63
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +0 -63
- package/dist/__node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.cjs +0 -50
- package/dist/__node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +0 -50
- package/dist/__node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.cjs +0 -59
- package/dist/__node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +0 -59
- package/dist/__node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueFragmentNamesRule.cjs +0 -27
- package/dist/__node_modules/graphql/validation/rules/UniqueFragmentNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +0 -27
- package/dist/__node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.cjs +0 -38
- package/dist/__node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +0 -38
- package/dist/__node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationNamesRule.cjs +0 -32
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +0 -32
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationTypesRule.cjs +0 -48
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationTypesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +0 -48
- package/dist/__node_modules/graphql/validation/rules/UniqueOperationTypesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueTypeNamesRule.cjs +0 -41
- package/dist/__node_modules/graphql/validation/rules/UniqueTypeNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +0 -41
- package/dist/__node_modules/graphql/validation/rules/UniqueTypeNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueVariableNamesRule.cjs +0 -30
- package/dist/__node_modules/graphql/validation/rules/UniqueVariableNamesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +0 -30
- package/dist/__node_modules/graphql/validation/rules/UniqueVariableNamesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.cjs +0 -132
- package/dist/__node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +0 -132
- package/dist/__node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/VariablesAreInputTypesRule.cjs +0 -27
- package/dist/__node_modules/graphql/validation/rules/VariablesAreInputTypesRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +0 -27
- package/dist/__node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.cjs +0 -64
- package/dist/__node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +0 -64
- package/dist/__node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.cjs +0 -89
- package/dist/__node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +0 -89
- package/dist/__node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.cjs +0 -24
- package/dist/__node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +0 -24
- package/dist/__node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js.map +0 -1
- package/dist/__node_modules/graphql/validation/specifiedRules.cjs +0 -84
- package/dist/__node_modules/graphql/validation/specifiedRules.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/specifiedRules.js +0 -84
- package/dist/__node_modules/graphql/validation/specifiedRules.js.map +0 -1
- package/dist/__node_modules/graphql/validation/validate.cjs +0 -72
- package/dist/__node_modules/graphql/validation/validate.cjs.map +0 -1
- package/dist/__node_modules/graphql/validation/validate.js +0 -72
- package/dist/__node_modules/graphql/validation/validate.js.map +0 -1
- package/dist/__node_modules/graphql/version.cjs +0 -12
- package/dist/__node_modules/graphql/version.cjs.map +0 -1
- package/dist/__node_modules/graphql/version.js +0 -12
- package/dist/__node_modules/graphql/version.js.map +0 -1
- package/dist/__node_modules/headers-polyfill/lib/index.cjs +0 -214
- package/dist/__node_modules/headers-polyfill/lib/index.cjs.map +0 -1
- package/dist/__node_modules/headers-polyfill/lib/index.js +0 -215
- package/dist/__node_modules/headers-polyfill/lib/index.js.map +0 -1
- package/dist/__node_modules/is-node-process/lib/index.cjs +0 -18
- package/dist/__node_modules/is-node-process/lib/index.cjs.map +0 -1
- package/dist/__node_modules/is-node-process/lib/index.js +0 -17
- package/dist/__node_modules/is-node-process/lib/index.js.map +0 -1
- package/dist/__node_modules/js-levenshtein/index.cjs +0 -91
- package/dist/__node_modules/js-levenshtein/index.cjs.map +0 -1
- package/dist/__node_modules/js-levenshtein/index.js +0 -91
- package/dist/__node_modules/js-levenshtein/index.js.map +0 -1
- package/dist/__node_modules/msw/__node_modules/node-fetch/browser.cjs +0 -34
- package/dist/__node_modules/msw/__node_modules/node-fetch/browser.cjs.map +0 -1
- package/dist/__node_modules/msw/__node_modules/node-fetch/browser.js +0 -34
- package/dist/__node_modules/msw/__node_modules/node-fetch/browser.js.map +0 -1
- package/dist/__node_modules/msw/__node_modules/path-to-regexp/dist.es2015/index.cjs +0 -363
- package/dist/__node_modules/msw/__node_modules/path-to-regexp/dist.es2015/index.cjs.map +0 -1
- package/dist/__node_modules/msw/__node_modules/path-to-regexp/dist.es2015/index.js +0 -363
- package/dist/__node_modules/msw/__node_modules/path-to-regexp/dist.es2015/index.js.map +0 -1
- package/dist/__node_modules/msw/lib/index.cjs +0 -1937
- package/dist/__node_modules/msw/lib/index.cjs.map +0 -1
- package/dist/__node_modules/msw/lib/index.js +0 -1938
- package/dist/__node_modules/msw/lib/index.js.map +0 -1
- package/dist/__node_modules/node-domexception/index.cjs.map +0 -1
- package/dist/__node_modules/node-domexception/index.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/body.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/body.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/errors/abort-error.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/errors/abort-error.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/errors/base.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/errors/base.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/errors/fetch-error.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/errors/fetch-error.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/headers.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/headers.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/index.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/index.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/request.cjs +0 -206
- package/dist/__node_modules/node-fetch/src/request.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/request.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/response.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/response.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/get-search.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/get-search.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/is-redirect.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/is-redirect.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/is.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/is.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/multipart-parser.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/multipart-parser.js.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/referrer.cjs.map +0 -1
- package/dist/__node_modules/node-fetch/src/utils/referrer.js.map +0 -1
- package/dist/__node_modules/outvariant/lib/format.cjs +0 -53
- package/dist/__node_modules/outvariant/lib/format.cjs.map +0 -1
- package/dist/__node_modules/outvariant/lib/format.js +0 -54
- package/dist/__node_modules/outvariant/lib/format.js.map +0 -1
- package/dist/__node_modules/outvariant/lib/index.cjs +0 -29
- package/dist/__node_modules/outvariant/lib/index.cjs.map +0 -1
- package/dist/__node_modules/outvariant/lib/index.js +0 -28
- package/dist/__node_modules/outvariant/lib/index.js.map +0 -1
- package/dist/__node_modules/outvariant/lib/invariant.cjs +0 -95
- package/dist/__node_modules/outvariant/lib/invariant.cjs.map +0 -1
- package/dist/__node_modules/outvariant/lib/invariant.js +0 -94
- package/dist/__node_modules/outvariant/lib/invariant.js.map +0 -1
- package/dist/__node_modules/p-limit/index.cjs.map +0 -1
- package/dist/__node_modules/p-limit/index.js.map +0 -1
- package/dist/__node_modules/peek-readable/lib/EndOfFileStream.cjs.map +0 -1
- package/dist/__node_modules/peek-readable/lib/EndOfFileStream.js.map +0 -1
- package/dist/__node_modules/r19/dist/client/createRPCClient.cjs +0 -68
- package/dist/__node_modules/r19/dist/client/createRPCClient.cjs.map +0 -1
- package/dist/__node_modules/r19/dist/client/createRPCClient.js +0 -68
- package/dist/__node_modules/r19/dist/client/createRPCClient.js.map +0 -1
- package/dist/__node_modules/r19/dist/createRPCMiddleware.cjs +0 -35
- package/dist/__node_modules/r19/dist/createRPCMiddleware.cjs.map +0 -1
- package/dist/__node_modules/r19/dist/createRPCMiddleware.js +0 -35
- package/dist/__node_modules/r19/dist/createRPCMiddleware.js.map +0 -1
- package/dist/__node_modules/r19/dist/handleRPCRequest.cjs +0 -111
- package/dist/__node_modules/r19/dist/handleRPCRequest.cjs.map +0 -1
- package/dist/__node_modules/r19/dist/handleRPCRequest.js +0 -111
- package/dist/__node_modules/r19/dist/handleRPCRequest.js.map +0 -1
- package/dist/__node_modules/r19/dist/lib/isErrorLike.cjs.map +0 -1
- package/dist/__node_modules/r19/dist/lib/isErrorLike.js.map +0 -1
- package/dist/__node_modules/r19/dist/lib/replaceLeaves.cjs.map +0 -1
- package/dist/__node_modules/r19/dist/lib/replaceLeaves.js.map +0 -1
- package/dist/__node_modules/r19/dist/proceduresFromInstance.cjs.map +0 -1
- package/dist/__node_modules/r19/dist/proceduresFromInstance.js.map +0 -1
- package/dist/__node_modules/set-cookie-parser/lib/set-cookie.cjs +0 -161
- package/dist/__node_modules/set-cookie-parser/lib/set-cookie.cjs.map +0 -1
- package/dist/__node_modules/set-cookie-parser/lib/set-cookie.js +0 -162
- package/dist/__node_modules/set-cookie-parser/lib/set-cookie.js.map +0 -1
- package/dist/__node_modules/strict-event-emitter/lib/StrictEventEmitter.cjs +0 -98
- package/dist/__node_modules/strict-event-emitter/lib/StrictEventEmitter.cjs.map +0 -1
- package/dist/__node_modules/strict-event-emitter/lib/StrictEventEmitter.js +0 -98
- package/dist/__node_modules/strict-event-emitter/lib/StrictEventEmitter.js.map +0 -1
- package/dist/__node_modules/strict-event-emitter/lib/index.cjs +0 -34
- package/dist/__node_modules/strict-event-emitter/lib/index.cjs.map +0 -1
- package/dist/__node_modules/strict-event-emitter/lib/index.js +0 -34
- package/dist/__node_modules/strict-event-emitter/lib/index.js.map +0 -1
- package/dist/__node_modules/strtok3/lib/AbstractTokenizer.cjs.map +0 -1
- package/dist/__node_modules/strtok3/lib/AbstractTokenizer.js.map +0 -1
- package/dist/__node_modules/strtok3/lib/BufferTokenizer.cjs.map +0 -1
- package/dist/__node_modules/strtok3/lib/BufferTokenizer.js.map +0 -1
- package/dist/__node_modules/strtok3/lib/core.cjs.map +0 -1
- package/dist/__node_modules/strtok3/lib/core.js.map +0 -1
- package/dist/__node_modules/token-types/lib/index.cjs.map +0 -1
- package/dist/__node_modules/token-types/lib/index.js.map +0 -1
- package/dist/__node_modules/unist-util-is/index.cjs +0 -73
- package/dist/__node_modules/unist-util-is/index.cjs.map +0 -1
- package/dist/__node_modules/unist-util-is/index.js +0 -73
- package/dist/__node_modules/unist-util-is/index.js.map +0 -1
- package/dist/__node_modules/unist-util-visit/index.cjs +0 -32
- package/dist/__node_modules/unist-util-visit/index.cjs.map +0 -1
- package/dist/__node_modules/unist-util-visit/index.js +0 -33
- package/dist/__node_modules/unist-util-visit/index.js.map +0 -1
- package/dist/__node_modules/unist-util-visit-parents/color.browser.cjs.map +0 -1
- package/dist/__node_modules/unist-util-visit-parents/color.browser.js.map +0 -1
- package/dist/__node_modules/unist-util-visit-parents/index.cjs +0 -74
- package/dist/__node_modules/unist-util-visit-parents/index.cjs.map +0 -1
- package/dist/__node_modules/unist-util-visit-parents/index.js +0 -74
- package/dist/__node_modules/unist-util-visit-parents/index.js.map +0 -1
- package/dist/__node_modules/web-encoding/src/lib.cjs +0 -7
- package/dist/__node_modules/web-encoding/src/lib.cjs.map +0 -1
- package/dist/__node_modules/web-encoding/src/lib.js +0 -8
- package/dist/__node_modules/web-encoding/src/lib.js.map +0 -1
- package/dist/__node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +0 -1
- package/dist/__node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +0 -1
- package/dist/__node_modules/yocto-queue/index.cjs.map +0 -1
- package/dist/__node_modules/yocto-queue/index.js.map +0 -1
- package/dist/_virtual/AsyncEventEmitter.cjs +0 -5
- package/dist/_virtual/AsyncEventEmitter.cjs.map +0 -1
- package/dist/_virtual/AsyncEventEmitter.js +0 -5
- package/dist/_virtual/AsyncEventEmitter.js.map +0 -1
- package/dist/_virtual/BatchInterceptor.cjs +0 -5
- package/dist/_virtual/BatchInterceptor.cjs.map +0 -1
- package/dist/_virtual/BatchInterceptor.js +0 -5
- package/dist/_virtual/BatchInterceptor.js.map +0 -1
- package/dist/_virtual/EventPolyfill.cjs +0 -5
- package/dist/_virtual/EventPolyfill.cjs.map +0 -1
- package/dist/_virtual/EventPolyfill.js +0 -5
- package/dist/_virtual/EventPolyfill.js.map +0 -1
- package/dist/_virtual/InteractiveIsomorphicRequest.cjs +0 -5
- package/dist/_virtual/InteractiveIsomorphicRequest.cjs.map +0 -1
- package/dist/_virtual/InteractiveIsomorphicRequest.js +0 -5
- package/dist/_virtual/InteractiveIsomorphicRequest.js.map +0 -1
- package/dist/_virtual/Interceptor.cjs +0 -5
- package/dist/_virtual/Interceptor.cjs.map +0 -1
- package/dist/_virtual/Interceptor.js +0 -5
- package/dist/_virtual/Interceptor.js.map +0 -1
- package/dist/_virtual/IsomorphicRequest.cjs +0 -5
- package/dist/_virtual/IsomorphicRequest.cjs.map +0 -1
- package/dist/_virtual/IsomorphicRequest.js +0 -5
- package/dist/_virtual/IsomorphicRequest.js.map +0 -1
- package/dist/_virtual/ProgressEventPolyfill.cjs +0 -5
- package/dist/_virtual/ProgressEventPolyfill.cjs.map +0 -1
- package/dist/_virtual/ProgressEventPolyfill.js +0 -5
- package/dist/_virtual/ProgressEventPolyfill.js.map +0 -1
- package/dist/_virtual/StrictEventEmitter.cjs +0 -5
- package/dist/_virtual/StrictEventEmitter.cjs.map +0 -1
- package/dist/_virtual/StrictEventEmitter.js +0 -5
- package/dist/_virtual/StrictEventEmitter.js.map +0 -1
- package/dist/_virtual/XMLHttpRequestOverride.cjs +0 -5
- package/dist/_virtual/XMLHttpRequestOverride.cjs.map +0 -1
- package/dist/_virtual/XMLHttpRequestOverride.js +0 -5
- package/dist/_virtual/XMLHttpRequestOverride.js.map +0 -1
- package/dist/_virtual/browser.cjs +0 -13
- package/dist/_virtual/browser.cjs.map +0 -1
- package/dist/_virtual/browser.js +0 -14
- package/dist/_virtual/browser.js.map +0 -1
- package/dist/_virtual/browser2.cjs +0 -13
- package/dist/_virtual/browser2.cjs.map +0 -1
- package/dist/_virtual/browser2.js +0 -14
- package/dist/_virtual/browser2.js.map +0 -1
- package/dist/_virtual/bufferFrom.cjs +0 -5
- package/dist/_virtual/bufferFrom.cjs.map +0 -1
- package/dist/_virtual/bufferFrom.js +0 -5
- package/dist/_virtual/bufferFrom.js.map +0 -1
- package/dist/_virtual/bufferUtils.cjs +0 -5
- package/dist/_virtual/bufferUtils.cjs.map +0 -1
- package/dist/_virtual/bufferUtils.js +0 -5
- package/dist/_virtual/bufferUtils.js.map +0 -1
- package/dist/_virtual/conventions.cjs +0 -5
- package/dist/_virtual/conventions.cjs.map +0 -1
- package/dist/_virtual/conventions.js +0 -5
- package/dist/_virtual/conventions.js.map +0 -1
- package/dist/_virtual/createEvent.cjs +0 -5
- package/dist/_virtual/createEvent.cjs.map +0 -1
- package/dist/_virtual/createEvent.js +0 -5
- package/dist/_virtual/createEvent.js.map +0 -1
- package/dist/_virtual/createLazyCallback.cjs +0 -5
- package/dist/_virtual/createLazyCallback.cjs.map +0 -1
- package/dist/_virtual/createLazyCallback.js +0 -5
- package/dist/_virtual/createLazyCallback.js.map +0 -1
- package/dist/_virtual/dom-parser.cjs +0 -5
- package/dist/_virtual/dom-parser.cjs.map +0 -1
- package/dist/_virtual/dom-parser.js +0 -5
- package/dist/_virtual/dom-parser.js.map +0 -1
- package/dist/_virtual/dom.cjs +0 -5
- package/dist/_virtual/dom.cjs.map +0 -1
- package/dist/_virtual/dom.js +0 -5
- package/dist/_virtual/dom.js.map +0 -1
- package/dist/_virtual/entities.cjs +0 -5
- package/dist/_virtual/entities.cjs.map +0 -1
- package/dist/_virtual/entities.js +0 -5
- package/dist/_virtual/entities.js.map +0 -1
- package/dist/_virtual/format.cjs +0 -5
- package/dist/_virtual/format.cjs.map +0 -1
- package/dist/_virtual/format.js +0 -5
- package/dist/_virtual/format.js.map +0 -1
- package/dist/_virtual/getCleanUrl.cjs +0 -5
- package/dist/_virtual/getCleanUrl.cjs.map +0 -1
- package/dist/_virtual/getCleanUrl.js +0 -5
- package/dist/_virtual/getCleanUrl.js.map +0 -1
- package/dist/_virtual/glossary.cjs +0 -5
- package/dist/_virtual/glossary.cjs.map +0 -1
- package/dist/_virtual/glossary.js +0 -5
- package/dist/_virtual/glossary.js.map +0 -1
- package/dist/_virtual/index10.cjs +0 -5
- package/dist/_virtual/index10.cjs.map +0 -1
- package/dist/_virtual/index10.js +0 -5
- package/dist/_virtual/index10.js.map +0 -1
- package/dist/_virtual/index11.cjs +0 -5
- package/dist/_virtual/index11.cjs.map +0 -1
- package/dist/_virtual/index11.js +0 -5
- package/dist/_virtual/index11.js.map +0 -1
- package/dist/_virtual/index5.cjs +0 -5
- package/dist/_virtual/index5.cjs.map +0 -1
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/_virtual/index6.cjs +0 -5
- package/dist/_virtual/index6.cjs.map +0 -1
- package/dist/_virtual/index6.js +0 -5
- package/dist/_virtual/index6.js.map +0 -1
- package/dist/_virtual/index7.cjs +0 -5
- package/dist/_virtual/index7.cjs.map +0 -1
- package/dist/_virtual/index7.js +0 -5
- package/dist/_virtual/index7.js.map +0 -1
- package/dist/_virtual/index8.cjs +0 -5
- package/dist/_virtual/index8.cjs.map +0 -1
- package/dist/_virtual/index8.js +0 -5
- package/dist/_virtual/index8.js.map +0 -1
- package/dist/_virtual/index9.cjs +0 -5
- package/dist/_virtual/index9.cjs.map +0 -1
- package/dist/_virtual/index9.js +0 -5
- package/dist/_virtual/index9.js.map +0 -1
- package/dist/_virtual/invariant.cjs +0 -5
- package/dist/_virtual/invariant.cjs.map +0 -1
- package/dist/_virtual/invariant.js +0 -5
- package/dist/_virtual/invariant.js.map +0 -1
- package/dist/_virtual/lib.cjs +0 -5
- package/dist/_virtual/lib.cjs.map +0 -1
- package/dist/_virtual/lib.js +0 -5
- package/dist/_virtual/lib.js.map +0 -1
- package/dist/_virtual/nextTick.cjs +0 -5
- package/dist/_virtual/nextTick.cjs.map +0 -1
- package/dist/_virtual/nextTick.js +0 -5
- package/dist/_virtual/nextTick.js.map +0 -1
- package/dist/_virtual/parseJson.cjs +0 -5
- package/dist/_virtual/parseJson.cjs.map +0 -1
- package/dist/_virtual/parseJson.js +0 -5
- package/dist/_virtual/parseJson.js.map +0 -1
- package/dist/_virtual/sax.cjs +0 -5
- package/dist/_virtual/sax.cjs.map +0 -1
- package/dist/_virtual/sax.js +0 -5
- package/dist/_virtual/sax.js.map +0 -1
- package/dist/_virtual/set-cookie.cjs +0 -13
- package/dist/_virtual/set-cookie.cjs.map +0 -1
- package/dist/_virtual/set-cookie.js +0 -14
- package/dist/_virtual/set-cookie.js.map +0 -1
- package/dist/_virtual/store.cjs +0 -5
- package/dist/_virtual/store.cjs.map +0 -1
- package/dist/_virtual/store.js +0 -5
- package/dist/_virtual/store.js.map +0 -1
- package/dist/_virtual/toIsoResponse.cjs +0 -5
- package/dist/_virtual/toIsoResponse.cjs.map +0 -1
- package/dist/_virtual/toIsoResponse.js +0 -5
- package/dist/_virtual/toIsoResponse.js.map +0 -1
- package/dist/_virtual/until.cjs +0 -5
- package/dist/_virtual/until.cjs.map +0 -1
- package/dist/_virtual/until.js +0 -5
- package/dist/_virtual/until.js.map +0 -1
- package/dist/_virtual/uuid.cjs +0 -5
- package/dist/_virtual/uuid.cjs.map +0 -1
- package/dist/_virtual/uuid.js +0 -5
- package/dist/_virtual/uuid.js.map +0 -1
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/decode.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/decode.js +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/encode.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/encode.js +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/timestamp.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/timestamp.js +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/int.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/int.js +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/@msgpack/msgpack/dist.es5_esm/utils/utf8.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/TemplateTag/TemplateTag.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/TemplateTag/TemplateTag.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/commaLists/commaLists.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/commaLists/commaLists.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/commaListsAnd/commaListsAnd.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/commaListsAnd/commaListsAnd.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/commaListsOr/commaListsOr.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/commaListsOr/commaListsOr.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/html/html.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/html/html.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/inlineLists/inlineLists.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/inlineLists/inlineLists.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLine/oneLine.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLine/oneLine.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineCommaLists/oneLineCommaLists.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineInlineLists/oneLineInlineLists.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineTrim/oneLineTrim.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/oneLineTrim/oneLineTrim.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/replaceResultTransformer/replaceResultTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/safeHtml/safeHtml.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/safeHtml/safeHtml.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/splitStringTransformer/splitStringTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/splitStringTransformer/splitStringTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/stripIndentTransformer/stripIndentTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/stripIndents/stripIndents.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/stripIndents/stripIndents.js +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/trimResultTransformer/trimResultTransformer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/common-tags/es/trimResultTransformer/trimResultTransformer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/fetch-blob/file.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/fetch-blob/file.js +0 -0
- /package/dist/{__node_modules → _node_modules}/fetch-blob/streams.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/fetch-blob/streams.js +0 -0
- /package/dist/{__node_modules → _node_modules}/file-type/util.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/file-type/util.js +0 -0
- /package/dist/{__node_modules → _node_modules}/formdata-polyfill/esm.min.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/formdata-polyfill/esm.min.js +0 -0
- /package/dist/{__node_modules → _node_modules}/fp-ts/es6/function.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/fp-ts/es6/function.js +0 -0
- /package/dist/{__node_modules → _node_modules}/fp-ts/es6/internal.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/fp-ts/es6/internal.js +0 -0
- /package/dist/{__node_modules → _node_modules}/get-port/index.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/get-port/index.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-domexception/index.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-domexception/index.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/body.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/body.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/errors/abort-error.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/errors/abort-error.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/errors/base.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/errors/base.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/errors/fetch-error.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/errors/fetch-error.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/headers.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/headers.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/index.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/index.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/request.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/response.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/response.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/get-search.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/get-search.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/is-redirect.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/is-redirect.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/is.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/is.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/multipart-parser.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/multipart-parser.js +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/referrer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/node-fetch/src/utils/referrer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/p-limit/index.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/p-limit/index.js +0 -0
- /package/dist/{__node_modules → _node_modules}/peek-readable/lib/EndOfFileStream.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/peek-readable/lib/EndOfFileStream.js +0 -0
- /package/dist/{__node_modules → _node_modules}/r19/dist/lib/isErrorLike.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/r19/dist/lib/isErrorLike.js +0 -0
- /package/dist/{__node_modules → _node_modules}/r19/dist/lib/replaceLeaves.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/r19/dist/lib/replaceLeaves.js +0 -0
- /package/dist/{__node_modules → _node_modules}/r19/dist/proceduresFromInstance.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/r19/dist/proceduresFromInstance.js +0 -0
- /package/dist/{__node_modules → _node_modules}/strtok3/lib/AbstractTokenizer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/strtok3/lib/AbstractTokenizer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/strtok3/lib/BufferTokenizer.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/strtok3/lib/BufferTokenizer.js +0 -0
- /package/dist/{__node_modules → _node_modules}/strtok3/lib/core.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/strtok3/lib/core.js +0 -0
- /package/dist/{__node_modules → _node_modules}/token-types/lib/index.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/token-types/lib/index.js +0 -0
- /package/dist/{__node_modules/unist-util-visit-parents → _node_modules/unist-util-visit-parents/lib}/color.browser.cjs +0 -0
- /package/dist/{__node_modules/unist-util-visit-parents → _node_modules/unist-util-visit-parents/lib}/color.browser.js +0 -0
- /package/dist/{__node_modules → _node_modules}/web-streams-polyfill/dist/ponyfill.es2018.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/web-streams-polyfill/dist/ponyfill.es2018.js +0 -0
- /package/dist/{__node_modules → _node_modules}/yocto-queue/index.cjs +0 -0
- /package/dist/{__node_modules → _node_modules}/yocto-queue/index.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sources":["../../../../../node_modules/file-type/core.js"],"sourcesContent":["import {Buffer} from 'node:buffer';\nimport * as Token from 'token-types';\nimport * as strtok3 from 'strtok3/core'; // eslint-disable-line n/file-extension-in-import\nimport {\n\tstringToBytes,\n\ttarHeaderChecksumMatches,\n\tuint32SyncSafeToken,\n} from './util.js';\nimport {extensions, mimeTypes} from './supported.js';\n\nconst minimumBytes = 4100; // A fair amount of file-types are detectable within this range.\n\nexport async function fileTypeFromStream(stream) {\n\tconst tokenizer = await strtok3.fromStream(stream);\n\ttry {\n\t\treturn await fileTypeFromTokenizer(tokenizer);\n\t} finally {\n\t\tawait tokenizer.close();\n\t}\n}\n\nexport async function fileTypeFromBuffer(input) {\n\tif (!(input instanceof Uint8Array || input instanceof ArrayBuffer)) {\n\t\tthrow new TypeError(`Expected the \\`input\\` argument to be of type \\`Uint8Array\\` or \\`Buffer\\` or \\`ArrayBuffer\\`, got \\`${typeof input}\\``);\n\t}\n\n\tconst buffer = input instanceof Uint8Array ? input : new Uint8Array(input);\n\n\tif (!(buffer?.length > 1)) {\n\t\treturn;\n\t}\n\n\treturn fileTypeFromTokenizer(strtok3.fromBuffer(buffer));\n}\n\nfunction _check(buffer, headers, options) {\n\toptions = {\n\t\toffset: 0,\n\t\t...options,\n\t};\n\n\tfor (const [index, header] of headers.entries()) {\n\t\t// If a bitmask is set\n\t\tif (options.mask) {\n\t\t\t// If header doesn't equal `buf` with bits masked off\n\t\t\tif (header !== (options.mask[index] & buffer[index + options.offset])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (header !== buffer[index + options.offset]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\nexport async function fileTypeFromTokenizer(tokenizer) {\n\ttry {\n\t\treturn new FileTypeParser().parse(tokenizer);\n\t} catch (error) {\n\t\tif (!(error instanceof strtok3.EndOfStreamError)) {\n\t\t\tthrow error;\n\t\t}\n\t}\n}\n\nclass FileTypeParser {\n\tcheck(header, options) {\n\t\treturn _check(this.buffer, header, options);\n\t}\n\n\tcheckString(header, options) {\n\t\treturn this.check(stringToBytes(header), options);\n\t}\n\n\tasync parse(tokenizer) {\n\t\tthis.buffer = Buffer.alloc(minimumBytes);\n\n\t\t// Keep reading until EOF if the file size is unknown.\n\t\tif (tokenizer.fileInfo.size === undefined) {\n\t\t\ttokenizer.fileInfo.size = Number.MAX_SAFE_INTEGER;\n\t\t}\n\n\t\tthis.tokenizer = tokenizer;\n\n\t\tawait tokenizer.peekBuffer(this.buffer, {length: 12, mayBeLess: true});\n\n\t\t// -- 2-byte signatures --\n\n\t\tif (this.check([0x42, 0x4D])) {\n\t\t\treturn {\n\t\t\t\text: 'bmp',\n\t\t\t\tmime: 'image/bmp',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x0B, 0x77])) {\n\t\t\treturn {\n\t\t\t\text: 'ac3',\n\t\t\t\tmime: 'audio/vnd.dolby.dd-raw',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x78, 0x01])) {\n\t\t\treturn {\n\t\t\t\text: 'dmg',\n\t\t\t\tmime: 'application/x-apple-diskimage',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x4D, 0x5A])) {\n\t\t\treturn {\n\t\t\t\text: 'exe',\n\t\t\t\tmime: 'application/x-msdownload',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x25, 0x21])) {\n\t\t\tawait tokenizer.peekBuffer(this.buffer, {length: 24, mayBeLess: true});\n\n\t\t\tif (\n\t\t\t\tthis.checkString('PS-Adobe-', {offset: 2})\n\t\t\t\t&& this.checkString(' EPSF-', {offset: 14})\n\t\t\t) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'eps',\n\t\t\t\t\tmime: 'application/eps',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\text: 'ps',\n\t\t\t\tmime: 'application/postscript',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.check([0x1F, 0xA0])\n\t\t\t|| this.check([0x1F, 0x9D])\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'Z',\n\t\t\t\tmime: 'application/x-compress',\n\t\t\t};\n\t\t}\n\n\t\t// -- 3-byte signatures --\n\n\t\tif (this.check([0xEF, 0xBB, 0xBF])) { // UTF-8-BOM\n\t\t\t// Strip off UTF-8-BOM\n\t\t\tthis.tokenizer.ignore(3);\n\t\t\treturn this.parse(tokenizer);\n\t\t}\n\n\t\tif (this.check([0x47, 0x49, 0x46])) {\n\t\t\treturn {\n\t\t\t\text: 'gif',\n\t\t\t\tmime: 'image/gif',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xFF, 0xD8, 0xFF])) {\n\t\t\treturn {\n\t\t\t\text: 'jpg',\n\t\t\t\tmime: 'image/jpeg',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x49, 0x49, 0xBC])) {\n\t\t\treturn {\n\t\t\t\text: 'jxr',\n\t\t\t\tmime: 'image/vnd.ms-photo',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x1F, 0x8B, 0x8])) {\n\t\t\treturn {\n\t\t\t\text: 'gz',\n\t\t\t\tmime: 'application/gzip',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x42, 0x5A, 0x68])) {\n\t\t\treturn {\n\t\t\t\text: 'bz2',\n\t\t\t\tmime: 'application/x-bzip2',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('ID3')) {\n\t\t\tawait tokenizer.ignore(6); // Skip ID3 header until the header size\n\t\t\tconst id3HeaderLength = await tokenizer.readToken(uint32SyncSafeToken);\n\t\t\tif (tokenizer.position + id3HeaderLength > tokenizer.fileInfo.size) {\n\t\t\t\t// Guess file type based on ID3 header for backward compatibility\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp3',\n\t\t\t\t\tmime: 'audio/mpeg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tawait tokenizer.ignore(id3HeaderLength);\n\t\t\treturn fileTypeFromTokenizer(tokenizer); // Skip ID3 header, recursion\n\t\t}\n\n\t\t// Musepack, SV7\n\t\tif (this.checkString('MP+')) {\n\t\t\treturn {\n\t\t\t\text: 'mpc',\n\t\t\t\tmime: 'audio/x-musepack',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\t(this.buffer[0] === 0x43 || this.buffer[0] === 0x46)\n\t\t\t&& this.check([0x57, 0x53], {offset: 1})\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'swf',\n\t\t\t\tmime: 'application/x-shockwave-flash',\n\t\t\t};\n\t\t}\n\n\t\t// -- 4-byte signatures --\n\n\t\tif (this.checkString('FLIF')) {\n\t\t\treturn {\n\t\t\t\text: 'flif',\n\t\t\t\tmime: 'image/flif',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('8BPS')) {\n\t\t\treturn {\n\t\t\t\text: 'psd',\n\t\t\t\tmime: 'image/vnd.adobe.photoshop',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('WEBP', {offset: 8})) {\n\t\t\treturn {\n\t\t\t\text: 'webp',\n\t\t\t\tmime: 'image/webp',\n\t\t\t};\n\t\t}\n\n\t\t// Musepack, SV8\n\t\tif (this.checkString('MPCK')) {\n\t\t\treturn {\n\t\t\t\text: 'mpc',\n\t\t\t\tmime: 'audio/x-musepack',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('FORM')) {\n\t\t\treturn {\n\t\t\t\text: 'aif',\n\t\t\t\tmime: 'audio/aiff',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('icns', {offset: 0})) {\n\t\t\treturn {\n\t\t\t\text: 'icns',\n\t\t\t\tmime: 'image/icns',\n\t\t\t};\n\t\t}\n\n\t\t// Zip-based file formats\n\t\t// Need to be before the `zip` check\n\t\tif (this.check([0x50, 0x4B, 0x3, 0x4])) { // Local file header signature\n\t\t\ttry {\n\t\t\t\twhile (tokenizer.position + 30 < tokenizer.fileInfo.size) {\n\t\t\t\t\tawait tokenizer.readBuffer(this.buffer, {length: 30});\n\n\t\t\t\t\t// https://en.wikipedia.org/wiki/Zip_(file_format)#File_headers\n\t\t\t\t\tconst zipHeader = {\n\t\t\t\t\t\tcompressedSize: this.buffer.readUInt32LE(18),\n\t\t\t\t\t\tuncompressedSize: this.buffer.readUInt32LE(22),\n\t\t\t\t\t\tfilenameLength: this.buffer.readUInt16LE(26),\n\t\t\t\t\t\textraFieldLength: this.buffer.readUInt16LE(28),\n\t\t\t\t\t};\n\n\t\t\t\t\tzipHeader.filename = await tokenizer.readToken(new Token.StringType(zipHeader.filenameLength, 'utf-8'));\n\t\t\t\t\tawait tokenizer.ignore(zipHeader.extraFieldLength);\n\n\t\t\t\t\t// Assumes signed `.xpi` from addons.mozilla.org\n\t\t\t\t\tif (zipHeader.filename === 'META-INF/mozilla.rsa') {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'xpi',\n\t\t\t\t\t\t\tmime: 'application/x-xpinstall',\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tif (zipHeader.filename.endsWith('.rels') || zipHeader.filename.endsWith('.xml')) {\n\t\t\t\t\t\tconst type = zipHeader.filename.split('/')[0];\n\t\t\t\t\t\tswitch (type) {\n\t\t\t\t\t\t\tcase '_rels':\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'word':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'docx',\n\t\t\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tcase 'ppt':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'pptx',\n\t\t\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tcase 'xl':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'xlsx',\n\t\t\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (zipHeader.filename.startsWith('xl/')) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'xlsx',\n\t\t\t\t\t\t\tmime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tif (zipHeader.filename.startsWith('3D/') && zipHeader.filename.endsWith('.model')) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: '3mf',\n\t\t\t\t\t\t\tmime: 'model/3mf',\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\t// The docx, xlsx and pptx file types extend the Office Open XML file format:\n\t\t\t\t\t// https://en.wikipedia.org/wiki/Office_Open_XML_file_formats\n\t\t\t\t\t// We look for:\n\t\t\t\t\t// - one entry named '[Content_Types].xml' or '_rels/.rels',\n\t\t\t\t\t// - one entry indicating specific type of file.\n\t\t\t\t\t// MS Office, OpenOffice and LibreOffice may put the parts in different order, so the check should not rely on it.\n\t\t\t\t\tif (zipHeader.filename === 'mimetype' && zipHeader.compressedSize === zipHeader.uncompressedSize) {\n\t\t\t\t\t\tlet mimeType = await tokenizer.readToken(new Token.StringType(zipHeader.compressedSize, 'utf-8'));\n\t\t\t\t\t\tmimeType = mimeType.trim();\n\n\t\t\t\t\t\tswitch (mimeType) {\n\t\t\t\t\t\t\tcase 'application/epub+zip':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'epub',\n\t\t\t\t\t\t\t\t\tmime: 'application/epub+zip',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tcase 'application/vnd.oasis.opendocument.text':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'odt',\n\t\t\t\t\t\t\t\t\tmime: 'application/vnd.oasis.opendocument.text',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tcase 'application/vnd.oasis.opendocument.spreadsheet':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'ods',\n\t\t\t\t\t\t\t\t\tmime: 'application/vnd.oasis.opendocument.spreadsheet',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tcase 'application/vnd.oasis.opendocument.presentation':\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\text: 'odp',\n\t\t\t\t\t\t\t\t\tmime: 'application/vnd.oasis.opendocument.presentation',\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Try to find next header manually when current one is corrupted\n\t\t\t\t\tif (zipHeader.compressedSize === 0) {\n\t\t\t\t\t\tlet nextHeaderIndex = -1;\n\n\t\t\t\t\t\twhile (nextHeaderIndex < 0 && (tokenizer.position < tokenizer.fileInfo.size)) {\n\t\t\t\t\t\t\tawait tokenizer.peekBuffer(this.buffer, {mayBeLess: true});\n\n\t\t\t\t\t\t\tnextHeaderIndex = this.buffer.indexOf('504B0304', 0, 'hex');\n\t\t\t\t\t\t\t// Move position to the next header if found, skip the whole buffer otherwise\n\t\t\t\t\t\t\tawait tokenizer.ignore(nextHeaderIndex >= 0 ? nextHeaderIndex : this.buffer.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tawait tokenizer.ignore(zipHeader.compressedSize);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tif (!(error instanceof strtok3.EndOfStreamError)) {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\text: 'zip',\n\t\t\t\tmime: 'application/zip',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('OggS')) {\n\t\t\t// This is an OGG container\n\t\t\tawait tokenizer.ignore(28);\n\t\t\tconst type = Buffer.alloc(8);\n\t\t\tawait tokenizer.readBuffer(type);\n\n\t\t\t// Needs to be before `ogg` check\n\t\t\tif (_check(type, [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64])) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'opus',\n\t\t\t\t\tmime: 'audio/opus',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// If ' theora' in header.\n\t\t\tif (_check(type, [0x80, 0x74, 0x68, 0x65, 0x6F, 0x72, 0x61])) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'ogv',\n\t\t\t\t\tmime: 'video/ogg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// If '\\x01video' in header.\n\t\t\tif (_check(type, [0x01, 0x76, 0x69, 0x64, 0x65, 0x6F, 0x00])) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'ogm',\n\t\t\t\t\tmime: 'video/ogg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// If ' FLAC' in header https://xiph.org/flac/faq.html\n\t\t\tif (_check(type, [0x7F, 0x46, 0x4C, 0x41, 0x43])) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'oga',\n\t\t\t\t\tmime: 'audio/ogg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// 'Speex ' in header https://en.wikipedia.org/wiki/Speex\n\t\t\tif (_check(type, [0x53, 0x70, 0x65, 0x65, 0x78, 0x20, 0x20])) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'spx',\n\t\t\t\t\tmime: 'audio/ogg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// If '\\x01vorbis' in header\n\t\t\tif (_check(type, [0x01, 0x76, 0x6F, 0x72, 0x62, 0x69, 0x73])) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'ogg',\n\t\t\t\t\tmime: 'audio/ogg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Default OGG container https://www.iana.org/assignments/media-types/application/ogg\n\t\t\treturn {\n\t\t\t\text: 'ogx',\n\t\t\t\tmime: 'application/ogg',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.check([0x50, 0x4B])\n\t\t\t&& (this.buffer[2] === 0x3 || this.buffer[2] === 0x5 || this.buffer[2] === 0x7)\n\t\t\t&& (this.buffer[3] === 0x4 || this.buffer[3] === 0x6 || this.buffer[3] === 0x8)\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'zip',\n\t\t\t\tmime: 'application/zip',\n\t\t\t};\n\t\t}\n\n\t\t//\n\n\t\t// File Type Box (https://en.wikipedia.org/wiki/ISO_base_media_file_format)\n\t\t// It's not required to be first, but it's recommended to be. Almost all ISO base media files start with `ftyp` box.\n\t\t// `ftyp` box must contain a brand major identifier, which must consist of ISO 8859-1 printable characters.\n\t\t// Here we check for 8859-1 printable characters (for simplicity, it's a mask which also catches one non-printable character).\n\t\tif (\n\t\t\tthis.checkString('ftyp', {offset: 4})\n\t\t\t&& (this.buffer[8] & 0x60) !== 0x00 // Brand major, first character ASCII?\n\t\t) {\n\t\t\t// They all can have MIME `video/mp4` except `application/mp4` special-case which is hard to detect.\n\t\t\t// For some cases, we're specific, everything else falls to `video/mp4` with `mp4` extension.\n\t\t\tconst brandMajor = this.buffer.toString('binary', 8, 12).replace('\\0', ' ').trim();\n\t\t\tswitch (brandMajor) {\n\t\t\t\tcase 'avif':\n\t\t\t\tcase 'avis':\n\t\t\t\t\treturn {ext: 'avif', mime: 'image/avif'};\n\t\t\t\tcase 'mif1':\n\t\t\t\t\treturn {ext: 'heic', mime: 'image/heif'};\n\t\t\t\tcase 'msf1':\n\t\t\t\t\treturn {ext: 'heic', mime: 'image/heif-sequence'};\n\t\t\t\tcase 'heic':\n\t\t\t\tcase 'heix':\n\t\t\t\t\treturn {ext: 'heic', mime: 'image/heic'};\n\t\t\t\tcase 'hevc':\n\t\t\t\tcase 'hevx':\n\t\t\t\t\treturn {ext: 'heic', mime: 'image/heic-sequence'};\n\t\t\t\tcase 'qt':\n\t\t\t\t\treturn {ext: 'mov', mime: 'video/quicktime'};\n\t\t\t\tcase 'M4V':\n\t\t\t\tcase 'M4VH':\n\t\t\t\tcase 'M4VP':\n\t\t\t\t\treturn {ext: 'm4v', mime: 'video/x-m4v'};\n\t\t\t\tcase 'M4P':\n\t\t\t\t\treturn {ext: 'm4p', mime: 'video/mp4'};\n\t\t\t\tcase 'M4B':\n\t\t\t\t\treturn {ext: 'm4b', mime: 'audio/mp4'};\n\t\t\t\tcase 'M4A':\n\t\t\t\t\treturn {ext: 'm4a', mime: 'audio/x-m4a'};\n\t\t\t\tcase 'F4V':\n\t\t\t\t\treturn {ext: 'f4v', mime: 'video/mp4'};\n\t\t\t\tcase 'F4P':\n\t\t\t\t\treturn {ext: 'f4p', mime: 'video/mp4'};\n\t\t\t\tcase 'F4A':\n\t\t\t\t\treturn {ext: 'f4a', mime: 'audio/mp4'};\n\t\t\t\tcase 'F4B':\n\t\t\t\t\treturn {ext: 'f4b', mime: 'audio/mp4'};\n\t\t\t\tcase 'crx':\n\t\t\t\t\treturn {ext: 'cr3', mime: 'image/x-canon-cr3'};\n\t\t\t\tdefault:\n\t\t\t\t\tif (brandMajor.startsWith('3g')) {\n\t\t\t\t\t\tif (brandMajor.startsWith('3g2')) {\n\t\t\t\t\t\t\treturn {ext: '3g2', mime: 'video/3gpp2'};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn {ext: '3gp', mime: 'video/3gpp'};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {ext: 'mp4', mime: 'video/mp4'};\n\t\t\t}\n\t\t}\n\n\t\tif (this.checkString('MThd')) {\n\t\t\treturn {\n\t\t\t\text: 'mid',\n\t\t\t\tmime: 'audio/midi',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.checkString('wOFF')\n\t\t\t&& (\n\t\t\t\tthis.check([0x00, 0x01, 0x00, 0x00], {offset: 4})\n\t\t\t\t|| this.checkString('OTTO', {offset: 4})\n\t\t\t)\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'woff',\n\t\t\t\tmime: 'font/woff',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.checkString('wOF2')\n\t\t\t&& (\n\t\t\t\tthis.check([0x00, 0x01, 0x00, 0x00], {offset: 4})\n\t\t\t\t|| this.checkString('OTTO', {offset: 4})\n\t\t\t)\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'woff2',\n\t\t\t\tmime: 'font/woff2',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xD4, 0xC3, 0xB2, 0xA1]) || this.check([0xA1, 0xB2, 0xC3, 0xD4])) {\n\t\t\treturn {\n\t\t\t\text: 'pcap',\n\t\t\t\tmime: 'application/vnd.tcpdump.pcap',\n\t\t\t};\n\t\t}\n\n\t\t// Sony DSD Stream File (DSF)\n\t\tif (this.checkString('DSD ')) {\n\t\t\treturn {\n\t\t\t\text: 'dsf',\n\t\t\t\tmime: 'audio/x-dsf', // Non-standard\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('LZIP')) {\n\t\t\treturn {\n\t\t\t\text: 'lz',\n\t\t\t\tmime: 'application/x-lzip',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('fLaC')) {\n\t\t\treturn {\n\t\t\t\text: 'flac',\n\t\t\t\tmime: 'audio/x-flac',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x42, 0x50, 0x47, 0xFB])) {\n\t\t\treturn {\n\t\t\t\text: 'bpg',\n\t\t\t\tmime: 'image/bpg',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('wvpk')) {\n\t\t\treturn {\n\t\t\t\text: 'wv',\n\t\t\t\tmime: 'audio/wavpack',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('%PDF')) {\n\t\t\tawait tokenizer.ignore(1350);\n\t\t\tconst maxBufferSize = 10 * 1024 * 1024;\n\t\t\tconst buffer = Buffer.alloc(Math.min(maxBufferSize, tokenizer.fileInfo.size));\n\t\t\tawait tokenizer.readBuffer(buffer, {mayBeLess: true});\n\n\t\t\t// Check if this is an Adobe Illustrator file\n\t\t\tif (buffer.includes(Buffer.from('AIPrivateData'))) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'ai',\n\t\t\t\t\tmime: 'application/postscript',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Assume this is just a normal PDF\n\t\t\treturn {\n\t\t\t\text: 'pdf',\n\t\t\t\tmime: 'application/pdf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x00, 0x61, 0x73, 0x6D])) {\n\t\t\treturn {\n\t\t\t\text: 'wasm',\n\t\t\t\tmime: 'application/wasm',\n\t\t\t};\n\t\t}\n\n\t\t// TIFF, little-endian type\n\t\tif (this.check([0x49, 0x49])) {\n\t\t\tconst fileType = await this.readTiffHeader(false);\n\t\t\tif (fileType) {\n\t\t\t\treturn fileType;\n\t\t\t}\n\t\t}\n\n\t\t// TIFF, big-endian type\n\t\tif (this.check([0x4D, 0x4D])) {\n\t\t\tconst fileType = await this.readTiffHeader(true);\n\t\t\tif (fileType) {\n\t\t\t\treturn fileType;\n\t\t\t}\n\t\t}\n\n\t\tif (this.checkString('MAC ')) {\n\t\t\treturn {\n\t\t\t\text: 'ape',\n\t\t\t\tmime: 'audio/ape',\n\t\t\t};\n\t\t}\n\n\t\t// https://github.com/threatstack/libmagic/blob/master/magic/Magdir/matroska\n\t\tif (this.check([0x1A, 0x45, 0xDF, 0xA3])) { // Root element: EBML\n\t\t\tasync function readField() {\n\t\t\t\tconst msb = await tokenizer.peekNumber(Token.UINT8);\n\t\t\t\tlet mask = 0x80;\n\t\t\t\tlet ic = 0; // 0 = A, 1 = B, 2 = C, 3\n\t\t\t\t// = D\n\n\t\t\t\twhile ((msb & mask) === 0 && mask !== 0) {\n\t\t\t\t\t++ic;\n\t\t\t\t\tmask >>= 1;\n\t\t\t\t}\n\n\t\t\t\tconst id = Buffer.alloc(ic + 1);\n\t\t\t\tawait tokenizer.readBuffer(id);\n\t\t\t\treturn id;\n\t\t\t}\n\n\t\t\tasync function readElement() {\n\t\t\t\tconst id = await readField();\n\t\t\t\tconst lengthField = await readField();\n\t\t\t\tlengthField[0] ^= 0x80 >> (lengthField.length - 1);\n\t\t\t\tconst nrLength = Math.min(6, lengthField.length); // JavaScript can max read 6 bytes integer\n\t\t\t\treturn {\n\t\t\t\t\tid: id.readUIntBE(0, id.length),\n\t\t\t\t\tlen: lengthField.readUIntBE(lengthField.length - nrLength, nrLength),\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tasync function readChildren(children) {\n\t\t\t\twhile (children > 0) {\n\t\t\t\t\tconst element = await readElement();\n\t\t\t\t\tif (element.id === 0x42_82) {\n\t\t\t\t\t\tconst rawValue = await tokenizer.readToken(new Token.StringType(element.len, 'utf-8'));\n\t\t\t\t\t\treturn rawValue.replace(/\\00.*$/g, ''); // Return DocType\n\t\t\t\t\t}\n\n\t\t\t\t\tawait tokenizer.ignore(element.len); // ignore payload\n\t\t\t\t\t--children;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst re = await readElement();\n\t\t\tconst docType = await readChildren(re.len);\n\n\t\t\tswitch (docType) {\n\t\t\t\tcase 'webm':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'webm',\n\t\t\t\t\t\tmime: 'video/webm',\n\t\t\t\t\t};\n\n\t\t\t\tcase 'matroska':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'mkv',\n\t\t\t\t\t\tmime: 'video/x-matroska',\n\t\t\t\t\t};\n\n\t\t\t\tdefault:\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// RIFF file format which might be AVI, WAV, QCP, etc\n\t\tif (this.check([0x52, 0x49, 0x46, 0x46])) {\n\t\t\tif (this.check([0x41, 0x56, 0x49], {offset: 8})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'avi',\n\t\t\t\t\tmime: 'video/vnd.avi',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (this.check([0x57, 0x41, 0x56, 0x45], {offset: 8})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'wav',\n\t\t\t\t\tmime: 'audio/vnd.wave',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// QLCM, QCP file\n\t\t\tif (this.check([0x51, 0x4C, 0x43, 0x4D], {offset: 8})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'qcp',\n\t\t\t\t\tmime: 'audio/qcelp',\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif (this.checkString('SQLi')) {\n\t\t\treturn {\n\t\t\t\text: 'sqlite',\n\t\t\t\tmime: 'application/x-sqlite3',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x4E, 0x45, 0x53, 0x1A])) {\n\t\t\treturn {\n\t\t\t\text: 'nes',\n\t\t\t\tmime: 'application/x-nintendo-nes-rom',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('Cr24')) {\n\t\t\treturn {\n\t\t\t\text: 'crx',\n\t\t\t\tmime: 'application/x-google-chrome-extension',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.checkString('MSCF')\n\t\t\t|| this.checkString('ISc(')\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'cab',\n\t\t\t\tmime: 'application/vnd.ms-cab-compressed',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xED, 0xAB, 0xEE, 0xDB])) {\n\t\t\treturn {\n\t\t\t\text: 'rpm',\n\t\t\t\tmime: 'application/x-rpm',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xC5, 0xD0, 0xD3, 0xC6])) {\n\t\t\treturn {\n\t\t\t\text: 'eps',\n\t\t\t\tmime: 'application/eps',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x28, 0xB5, 0x2F, 0xFD])) {\n\t\t\treturn {\n\t\t\t\text: 'zst',\n\t\t\t\tmime: 'application/zstd',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x7F, 0x45, 0x4C, 0x46])) {\n\t\t\treturn {\n\t\t\t\text: 'elf',\n\t\t\t\tmime: 'application/x-elf',\n\t\t\t};\n\t\t}\n\n\t\t// -- 5-byte signatures --\n\n\t\tif (this.check([0x4F, 0x54, 0x54, 0x4F, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'otf',\n\t\t\t\tmime: 'font/otf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('#!AMR')) {\n\t\t\treturn {\n\t\t\t\text: 'amr',\n\t\t\t\tmime: 'audio/amr',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('{\\\\rtf')) {\n\t\t\treturn {\n\t\t\t\text: 'rtf',\n\t\t\t\tmime: 'application/rtf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x46, 0x4C, 0x56, 0x01])) {\n\t\t\treturn {\n\t\t\t\text: 'flv',\n\t\t\t\tmime: 'video/x-flv',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('IMPM')) {\n\t\t\treturn {\n\t\t\t\text: 'it',\n\t\t\t\tmime: 'audio/x-it',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.checkString('-lh0-', {offset: 2})\n\t\t\t|| this.checkString('-lh1-', {offset: 2})\n\t\t\t|| this.checkString('-lh2-', {offset: 2})\n\t\t\t|| this.checkString('-lh3-', {offset: 2})\n\t\t\t|| this.checkString('-lh4-', {offset: 2})\n\t\t\t|| this.checkString('-lh5-', {offset: 2})\n\t\t\t|| this.checkString('-lh6-', {offset: 2})\n\t\t\t|| this.checkString('-lh7-', {offset: 2})\n\t\t\t|| this.checkString('-lzs-', {offset: 2})\n\t\t\t|| this.checkString('-lz4-', {offset: 2})\n\t\t\t|| this.checkString('-lz5-', {offset: 2})\n\t\t\t|| this.checkString('-lhd-', {offset: 2})\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'lzh',\n\t\t\t\tmime: 'application/x-lzh-compressed',\n\t\t\t};\n\t\t}\n\n\t\t// MPEG program stream (PS or MPEG-PS)\n\t\tif (this.check([0x00, 0x00, 0x01, 0xBA])) {\n\t\t\t// MPEG-PS, MPEG-1 Part 1\n\t\t\tif (this.check([0x21], {offset: 4, mask: [0xF1]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mpg', // May also be .ps, .mpeg\n\t\t\t\t\tmime: 'video/MP1S',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// MPEG-PS, MPEG-2 Part 1\n\t\t\tif (this.check([0x44], {offset: 4, mask: [0xC4]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mpg', // May also be .mpg, .m2p, .vob or .sub\n\t\t\t\t\tmime: 'video/MP2P',\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif (this.checkString('ITSF')) {\n\t\t\treturn {\n\t\t\t\text: 'chm',\n\t\t\t\tmime: 'application/vnd.ms-htmlhelp',\n\t\t\t};\n\t\t}\n\n\t\t// -- 6-byte signatures --\n\n\t\tif (this.check([0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'xz',\n\t\t\t\tmime: 'application/x-xz',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('<?xml ')) {\n\t\t\treturn {\n\t\t\t\text: 'xml',\n\t\t\t\tmime: 'application/xml',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])) {\n\t\t\treturn {\n\t\t\t\text: '7z',\n\t\t\t\tmime: 'application/x-7z-compressed',\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.check([0x52, 0x61, 0x72, 0x21, 0x1A, 0x7])\n\t\t\t&& (this.buffer[6] === 0x0 || this.buffer[6] === 0x1)\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'rar',\n\t\t\t\tmime: 'application/x-rar-compressed',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('solid ')) {\n\t\t\treturn {\n\t\t\t\text: 'stl',\n\t\t\t\tmime: 'model/stl',\n\t\t\t};\n\t\t}\n\n\t\t// -- 7-byte signatures --\n\n\t\tif (this.checkString('BLENDER')) {\n\t\t\treturn {\n\t\t\t\text: 'blend',\n\t\t\t\tmime: 'application/x-blender',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('!<arch>')) {\n\t\t\tawait tokenizer.ignore(8);\n\t\t\tconst string = await tokenizer.readToken(new Token.StringType(13, 'ascii'));\n\t\t\tif (string === 'debian-binary') {\n\t\t\t\treturn {\n\t\t\t\t\text: 'deb',\n\t\t\t\t\tmime: 'application/x-deb',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\text: 'ar',\n\t\t\t\tmime: 'application/x-unix-archive',\n\t\t\t};\n\t\t}\n\n\t\t// -- 8-byte signatures --\n\n\t\tif (this.check([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A])) {\n\t\t\t// APNG format (https://wiki.mozilla.org/APNG_Specification)\n\t\t\t// 1. Find the first IDAT (image data) chunk (49 44 41 54)\n\t\t\t// 2. Check if there is an \"acTL\" chunk before the IDAT one (61 63 54 4C)\n\n\t\t\t// Offset calculated as follows:\n\t\t\t// - 8 bytes: PNG signature\n\t\t\t// - 4 (length) + 4 (chunk type) + 13 (chunk data) + 4 (CRC): IHDR chunk\n\n\t\t\tawait tokenizer.ignore(8); // ignore PNG signature\n\n\t\t\tasync function readChunkHeader() {\n\t\t\t\treturn {\n\t\t\t\t\tlength: await tokenizer.readToken(Token.INT32_BE),\n\t\t\t\t\ttype: await tokenizer.readToken(new Token.StringType(4, 'binary')),\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tconst chunk = await readChunkHeader();\n\t\t\t\tif (chunk.length < 0) {\n\t\t\t\t\treturn; // Invalid chunk length\n\t\t\t\t}\n\n\t\t\t\tswitch (chunk.type) {\n\t\t\t\t\tcase 'IDAT':\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'png',\n\t\t\t\t\t\t\tmime: 'image/png',\n\t\t\t\t\t\t};\n\t\t\t\t\tcase 'acTL':\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'apng',\n\t\t\t\t\t\t\tmime: 'image/apng',\n\t\t\t\t\t\t};\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tawait tokenizer.ignore(chunk.length + 4); // Ignore chunk-data + CRC\n\t\t\t\t}\n\t\t\t} while (tokenizer.position + 8 < tokenizer.fileInfo.size);\n\n\t\t\treturn {\n\t\t\t\text: 'png',\n\t\t\t\tmime: 'image/png',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x41, 0x52, 0x52, 0x4F, 0x57, 0x31, 0x00, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'arrow',\n\t\t\t\tmime: 'application/x-apache-arrow',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x67, 0x6C, 0x54, 0x46, 0x02, 0x00, 0x00, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'glb',\n\t\t\t\tmime: 'model/gltf-binary',\n\t\t\t};\n\t\t}\n\n\t\t// `mov` format variants\n\t\tif (\n\t\t\tthis.check([0x66, 0x72, 0x65, 0x65], {offset: 4}) // `free`\n\t\t\t|| this.check([0x6D, 0x64, 0x61, 0x74], {offset: 4}) // `mdat` MJPEG\n\t\t\t|| this.check([0x6D, 0x6F, 0x6F, 0x76], {offset: 4}) // `moov`\n\t\t\t|| this.check([0x77, 0x69, 0x64, 0x65], {offset: 4}) // `wide`\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'mov',\n\t\t\t\tmime: 'video/quicktime',\n\t\t\t};\n\t\t}\n\n\t\t// -- 9-byte signatures --\n\n\t\tif (this.check([0x49, 0x49, 0x52, 0x4F, 0x08, 0x00, 0x00, 0x00, 0x18])) {\n\t\t\treturn {\n\t\t\t\text: 'orf',\n\t\t\t\tmime: 'image/x-olympus-orf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('gimp xcf ')) {\n\t\t\treturn {\n\t\t\t\text: 'xcf',\n\t\t\t\tmime: 'image/x-xcf',\n\t\t\t};\n\t\t}\n\n\t\t// -- 12-byte signatures --\n\n\t\tif (this.check([0x49, 0x49, 0x55, 0x00, 0x18, 0x00, 0x00, 0x00, 0x88, 0xE7, 0x74, 0xD8])) {\n\t\t\treturn {\n\t\t\t\text: 'rw2',\n\t\t\t\tmime: 'image/x-panasonic-rw2',\n\t\t\t};\n\t\t}\n\n\t\t// ASF_Header_Object first 80 bytes\n\t\tif (this.check([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9])) {\n\t\t\tasync function readHeader() {\n\t\t\t\tconst guid = Buffer.alloc(16);\n\t\t\t\tawait tokenizer.readBuffer(guid);\n\t\t\t\treturn {\n\t\t\t\t\tid: guid,\n\t\t\t\t\tsize: Number(await tokenizer.readToken(Token.UINT64_LE)),\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tawait tokenizer.ignore(30);\n\t\t\t// Search for header should be in first 1KB of file.\n\t\t\twhile (tokenizer.position + 24 < tokenizer.fileInfo.size) {\n\t\t\t\tconst header = await readHeader();\n\t\t\t\tlet payload = header.size - 24;\n\t\t\t\tif (_check(header.id, [0x91, 0x07, 0xDC, 0xB7, 0xB7, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65])) {\n\t\t\t\t\t// Sync on Stream-Properties-Object (B7DC0791-A9B7-11CF-8EE6-00C00C205365)\n\t\t\t\t\tconst typeId = Buffer.alloc(16);\n\t\t\t\t\tpayload -= await tokenizer.readBuffer(typeId);\n\n\t\t\t\t\tif (_check(typeId, [0x40, 0x9E, 0x69, 0xF8, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B])) {\n\t\t\t\t\t\t// Found audio:\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'asf',\n\t\t\t\t\t\t\tmime: 'audio/x-ms-asf',\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tif (_check(typeId, [0xC0, 0xEF, 0x19, 0xBC, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B])) {\n\t\t\t\t\t\t// Found video:\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'asf',\n\t\t\t\t\t\t\tmime: 'video/x-ms-asf',\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tawait tokenizer.ignore(payload);\n\t\t\t}\n\n\t\t\t// Default to ASF generic extension\n\t\t\treturn {\n\t\t\t\text: 'asf',\n\t\t\t\tmime: 'application/vnd.ms-asf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])) {\n\t\t\treturn {\n\t\t\t\text: 'ktx',\n\t\t\t\tmime: 'image/ktx',\n\t\t\t};\n\t\t}\n\n\t\tif ((this.check([0x7E, 0x10, 0x04]) || this.check([0x7E, 0x18, 0x04])) && this.check([0x30, 0x4D, 0x49, 0x45], {offset: 4})) {\n\t\t\treturn {\n\t\t\t\text: 'mie',\n\t\t\t\tmime: 'application/x-mie',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x27, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], {offset: 2})) {\n\t\t\treturn {\n\t\t\t\text: 'shp',\n\t\t\t\tmime: 'application/x-esri-shape',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A])) {\n\t\t\t// JPEG-2000 family\n\n\t\t\tawait tokenizer.ignore(20);\n\t\t\tconst type = await tokenizer.readToken(new Token.StringType(4, 'ascii'));\n\t\t\tswitch (type) {\n\t\t\t\tcase 'jp2 ':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'jp2',\n\t\t\t\t\t\tmime: 'image/jp2',\n\t\t\t\t\t};\n\t\t\t\tcase 'jpx ':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'jpx',\n\t\t\t\t\t\tmime: 'image/jpx',\n\t\t\t\t\t};\n\t\t\t\tcase 'jpm ':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'jpm',\n\t\t\t\t\t\tmime: 'image/jpm',\n\t\t\t\t\t};\n\t\t\t\tcase 'mjp2':\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'mj2',\n\t\t\t\t\t\tmime: 'image/mj2',\n\t\t\t\t\t};\n\t\t\t\tdefault:\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tthis.check([0xFF, 0x0A])\n\t\t\t|| this.check([0x00, 0x00, 0x00, 0x0C, 0x4A, 0x58, 0x4C, 0x20, 0x0D, 0x0A, 0x87, 0x0A])\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'jxl',\n\t\t\t\tmime: 'image/jxl',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xFE, 0xFF])) { // UTF-16-BOM-LE\n\t\t\tif (this.check([0, 60, 0, 63, 0, 120, 0, 109, 0, 108], {offset: 2})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'xml',\n\t\t\t\t\tmime: 'application/xml',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn undefined; // Some unknown text based format\n\t\t}\n\n\t\t// -- Unsafe signatures --\n\n\t\tif (\n\t\t\tthis.check([0x0, 0x0, 0x1, 0xBA])\n\t\t\t|| this.check([0x0, 0x0, 0x1, 0xB3])\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'mpg',\n\t\t\t\tmime: 'video/mpeg',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x00, 0x01, 0x00, 0x00, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'ttf',\n\t\t\t\tmime: 'font/ttf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x00, 0x00, 0x01, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'ico',\n\t\t\t\tmime: 'image/x-icon',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x00, 0x00, 0x02, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'cur',\n\t\t\t\tmime: 'image/x-icon',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])) {\n\t\t\t// Detected Microsoft Compound File Binary File (MS-CFB) Format.\n\t\t\treturn {\n\t\t\t\text: 'cfb',\n\t\t\t\tmime: 'application/x-cfb',\n\t\t\t};\n\t\t}\n\n\t\t// Increase sample size from 12 to 256.\n\t\tawait tokenizer.peekBuffer(this.buffer, {length: Math.min(256, tokenizer.fileInfo.size), mayBeLess: true});\n\n\t\t// -- 15-byte signatures --\n\n\t\tif (this.checkString('BEGIN:')) {\n\t\t\tif (this.checkString('VCARD', {offset: 6})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'vcf',\n\t\t\t\t\tmime: 'text/vcard',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (this.checkString('VCALENDAR', {offset: 6})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'ics',\n\t\t\t\t\tmime: 'text/calendar',\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\t// `raf` is here just to keep all the raw image detectors together.\n\t\tif (this.checkString('FUJIFILMCCD-RAW')) {\n\t\t\treturn {\n\t\t\t\text: 'raf',\n\t\t\t\tmime: 'image/x-fujifilm-raf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('Extended Module:')) {\n\t\t\treturn {\n\t\t\t\text: 'xm',\n\t\t\t\tmime: 'audio/x-xm',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('Creative Voice File')) {\n\t\t\treturn {\n\t\t\t\text: 'voc',\n\t\t\t\tmime: 'audio/x-voc',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x04, 0x00, 0x00, 0x00]) && this.buffer.length >= 16) { // Rough & quick check Pickle/ASAR\n\t\t\tconst jsonSize = this.buffer.readUInt32LE(12);\n\t\t\tif (jsonSize > 12 && this.buffer.length >= jsonSize + 16) {\n\t\t\t\ttry {\n\t\t\t\t\tconst header = this.buffer.slice(16, jsonSize + 16).toString();\n\t\t\t\t\tconst json = JSON.parse(header);\n\t\t\t\t\t// Check if Pickle is ASAR\n\t\t\t\t\tif (json.files) { // Final check, assuring Pickle/ASAR format\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\text: 'asar',\n\t\t\t\t\t\t\tmime: 'application/x-asar',\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t} catch {}\n\t\t\t}\n\t\t}\n\n\t\tif (this.check([0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])) {\n\t\t\treturn {\n\t\t\t\text: 'mxf',\n\t\t\t\tmime: 'application/mxf',\n\t\t\t};\n\t\t}\n\n\t\tif (this.checkString('SCRM', {offset: 44})) {\n\t\t\treturn {\n\t\t\t\text: 's3m',\n\t\t\t\tmime: 'audio/x-s3m',\n\t\t\t};\n\t\t}\n\n\t\t// Raw MPEG-2 transport stream (188-byte packets)\n\t\tif (this.check([0x47]) && this.check([0x47], {offset: 188})) {\n\t\t\treturn {\n\t\t\t\text: 'mts',\n\t\t\t\tmime: 'video/mp2t',\n\t\t\t};\n\t\t}\n\n\t\t// Blu-ray Disc Audio-Video (BDAV) MPEG-2 transport stream has 4-byte TP_extra_header before each 188-byte packet\n\t\tif (this.check([0x47], {offset: 4}) && this.check([0x47], {offset: 196})) {\n\t\t\treturn {\n\t\t\t\text: 'mts',\n\t\t\t\tmime: 'video/mp2t',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49], {offset: 60})) {\n\t\t\treturn {\n\t\t\t\text: 'mobi',\n\t\t\t\tmime: 'application/x-mobipocket-ebook',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x44, 0x49, 0x43, 0x4D], {offset: 128})) {\n\t\t\treturn {\n\t\t\t\text: 'dcm',\n\t\t\t\tmime: 'application/dicom',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46])) {\n\t\t\treturn {\n\t\t\t\text: 'lnk',\n\t\t\t\tmime: 'application/x.ms.shortcut', // Invented by us\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x6D, 0x61, 0x72, 0x6B, 0x00, 0x00, 0x00, 0x00])) {\n\t\t\treturn {\n\t\t\t\text: 'alias',\n\t\t\t\tmime: 'application/x.apple.alias', // Invented by us\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.check([0x4C, 0x50], {offset: 34})\n\t\t\t&& (\n\t\t\t\tthis.check([0x00, 0x00, 0x01], {offset: 8})\n\t\t\t\t|| this.check([0x01, 0x00, 0x02], {offset: 8})\n\t\t\t\t|| this.check([0x02, 0x00, 0x02], {offset: 8})\n\t\t\t)\n\t\t) {\n\t\t\treturn {\n\t\t\t\text: 'eot',\n\t\t\t\tmime: 'application/vnd.ms-fontobject',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0x06, 0x06, 0xED, 0xF5, 0xD8, 0x1D, 0x46, 0xE5, 0xBD, 0x31, 0xEF, 0xE7, 0xFE, 0x74, 0xB7, 0x1D])) {\n\t\t\treturn {\n\t\t\t\text: 'indd',\n\t\t\t\tmime: 'application/x-indesign',\n\t\t\t};\n\t\t}\n\n\t\t// Increase sample size from 256 to 512\n\t\tawait tokenizer.peekBuffer(this.buffer, {length: Math.min(512, tokenizer.fileInfo.size), mayBeLess: true});\n\n\t\t// Requires a buffer size of 512 bytes\n\t\tif (tarHeaderChecksumMatches(this.buffer)) {\n\t\t\treturn {\n\t\t\t\text: 'tar',\n\t\t\t\tmime: 'application/x-tar',\n\t\t\t};\n\t\t}\n\n\t\tif (this.check([0xFF, 0xFE])) { // UTF-16-BOM-BE\n\t\t\tif (this.check([60, 0, 63, 0, 120, 0, 109, 0, 108, 0], {offset: 2})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'xml',\n\t\t\t\t\tmime: 'application/xml',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (this.check([0xFF, 0x0E, 0x53, 0x00, 0x6B, 0x00, 0x65, 0x00, 0x74, 0x00, 0x63, 0x00, 0x68, 0x00, 0x55, 0x00, 0x70, 0x00, 0x20, 0x00, 0x4D, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x65, 0x00, 0x6C, 0x00], {offset: 2})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'skp',\n\t\t\t\t\tmime: 'application/vnd.sketchup.skp',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn undefined; // Some text based format\n\t\t}\n\n\t\tif (this.checkString('-----BEGIN PGP MESSAGE-----')) {\n\t\t\treturn {\n\t\t\t\text: 'pgp',\n\t\t\t\tmime: 'application/pgp-encrypted',\n\t\t\t};\n\t\t}\n\n\t\t// Check MPEG 1 or 2 Layer 3 header, or 'layer 0' for ADTS (MPEG sync-word 0xFFE)\n\t\tif (this.buffer.length >= 2 && this.check([0xFF, 0xE0], {offset: 0, mask: [0xFF, 0xE0]})) {\n\t\t\tif (this.check([0x10], {offset: 1, mask: [0x16]})) {\n\t\t\t\t// Check for (ADTS) MPEG-2\n\t\t\t\tif (this.check([0x08], {offset: 1, mask: [0x08]})) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'aac',\n\t\t\t\t\t\tmime: 'audio/aac',\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Must be (ADTS) MPEG-4\n\t\t\t\treturn {\n\t\t\t\t\text: 'aac',\n\t\t\t\t\tmime: 'audio/aac',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// MPEG 1 or 2 Layer 3 header\n\t\t\t// Check for MPEG layer 3\n\t\t\tif (this.check([0x02], {offset: 1, mask: [0x06]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp3',\n\t\t\t\t\tmime: 'audio/mpeg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Check for MPEG layer 2\n\t\t\tif (this.check([0x04], {offset: 1, mask: [0x06]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp2',\n\t\t\t\t\tmime: 'audio/mpeg',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Check for MPEG layer 1\n\t\t\tif (this.check([0x06], {offset: 1, mask: [0x06]})) {\n\t\t\t\treturn {\n\t\t\t\t\text: 'mp1',\n\t\t\t\t\tmime: 'audio/mpeg',\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n\n\tasync readTiffTag(bigEndian) {\n\t\tconst tagId = await this.tokenizer.readToken(bigEndian ? Token.UINT16_BE : Token.UINT16_LE);\n\t\tthis.tokenizer.ignore(10);\n\t\tswitch (tagId) {\n\t\t\tcase 50_341:\n\t\t\t\treturn {\n\t\t\t\t\text: 'arw',\n\t\t\t\t\tmime: 'image/x-sony-arw',\n\t\t\t\t};\n\t\t\tcase 50_706:\n\t\t\t\treturn {\n\t\t\t\t\text: 'dng',\n\t\t\t\t\tmime: 'image/x-adobe-dng',\n\t\t\t\t};\n\t\t\tdefault:\n\t\t}\n\t}\n\n\tasync readTiffIFD(bigEndian) {\n\t\tconst numberOfTags = await this.tokenizer.readToken(bigEndian ? Token.UINT16_BE : Token.UINT16_LE);\n\t\tfor (let n = 0; n < numberOfTags; ++n) {\n\t\t\tconst fileType = await this.readTiffTag(bigEndian);\n\t\t\tif (fileType) {\n\t\t\t\treturn fileType;\n\t\t\t}\n\t\t}\n\t}\n\n\tasync readTiffHeader(bigEndian) {\n\t\tconst version = (bigEndian ? Token.UINT16_BE : Token.UINT16_LE).get(this.buffer, 2);\n\t\tconst ifdOffset = (bigEndian ? Token.UINT32_BE : Token.UINT32_LE).get(this.buffer, 4);\n\n\t\tif (version === 42) {\n\t\t\t// TIFF file header\n\t\t\tif (ifdOffset >= 6) {\n\t\t\t\tif (this.checkString('CR', {offset: 8})) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'cr2',\n\t\t\t\t\t\tmime: 'image/x-canon-cr2',\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (ifdOffset >= 8 && (this.check([0x1C, 0x00, 0xFE, 0x00], {offset: 8}) || this.check([0x1F, 0x00, 0x0B, 0x00], {offset: 8}))) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\text: 'nef',\n\t\t\t\t\t\tmime: 'image/x-nikon-nef',\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tawait this.tokenizer.ignore(ifdOffset);\n\t\t\tconst fileType = await this.readTiffIFD(false);\n\t\t\treturn fileType ? fileType : {\n\t\t\t\text: 'tif',\n\t\t\t\tmime: 'image/tiff',\n\t\t\t};\n\t\t}\n\n\t\tif (version === 43) {\t// Big TIFF file header\n\t\t\treturn {\n\t\t\t\text: 'tif',\n\t\t\t\tmime: 'image/tiff',\n\t\t\t};\n\t\t}\n\t}\n}\n\nexport async function fileTypeStream(readableStream, {sampleSize = minimumBytes} = {}) {\n\tconst {default: stream} = await import('node:stream');\n\n\treturn new Promise((resolve, reject) => {\n\t\treadableStream.on('error', reject);\n\n\t\treadableStream.once('readable', () => {\n\t\t\t(async () => {\n\t\t\t\ttry {\n\t\t\t\t\t// Set up output stream\n\t\t\t\t\tconst pass = new stream.PassThrough();\n\t\t\t\t\tconst outputStream = stream.pipeline ? stream.pipeline(readableStream, pass, () => {}) : readableStream.pipe(pass);\n\n\t\t\t\t\t// Read the input stream and detect the filetype\n\t\t\t\t\tconst chunk = readableStream.read(sampleSize) ?? readableStream.read() ?? Buffer.alloc(0);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst fileType = await fileTypeFromBuffer(chunk);\n\t\t\t\t\t\tpass.fileType = fileType;\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tif (error instanceof strtok3.EndOfStreamError) {\n\t\t\t\t\t\t\tpass.fileType = undefined;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treject(error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(outputStream);\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t})();\n\t\t});\n\t});\n}\n\nexport const supportedExtensions = new Set(extensions);\nexport const supportedMimeTypes = new Set(mimeTypes);\n"],"names":["strtok3.fromBuffer","strtok3.EndOfStreamError","Token.StringType","Token.UINT8","Token.INT32_BE","Token.UINT64_LE","Token.UINT16_BE","Token.UINT16_LE","Token.UINT32_BE","Token.UINT32_LE"],"mappings":";;;;;AAUA,MAAM,eAAe;AAWd,eAAe,mBAAmB,OAAO;AAC/C,MAAI,EAAE,iBAAiB,cAAc,iBAAiB,cAAc;AACnE,UAAM,IAAI,UAAU,wGAAwG,OAAO,SAAS;AAAA,EAC5I;AAED,QAAM,SAAS,iBAAiB,aAAa,QAAQ,IAAI,WAAW,KAAK;AAEzE,MAAI,GAAE,iCAAQ,UAAS,IAAI;AAC1B;AAAA,EACA;AAED,SAAO,sBAAsBA,WAAmB,MAAM,CAAC;AACxD;AAEA,SAAS,OAAO,QAAQ,SAAS,SAAS;AACzC,YAAU;AAAA,IACT,QAAQ;AAAA,IACR,GAAG;AAAA,EACL;AAEC,aAAW,CAAC,OAAO,MAAM,KAAK,QAAQ,QAAO,GAAI;AAEhD,QAAI,QAAQ,MAAM;AAEjB,UAAI,YAAY,QAAQ,KAAK,KAAK,IAAI,OAAO,QAAQ,QAAQ,MAAM,IAAI;AACtE,eAAO;AAAA,MACP;AAAA,IACJ,WAAa,WAAW,OAAO,QAAQ,QAAQ,MAAM,GAAG;AACrD,aAAO;AAAA,IACP;AAAA,EACD;AAED,SAAO;AACR;AAEO,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C,CAAC,GAAG;AACxC,iBAAO;AAAA,YACN,KAAK;AAAA,YACL,MAAM;AAAA,UACZ;AAAA,QACK;AAED,YAAI,aAAa,MAAM,KAAK,MAAM,CAAC,IAAM,GAAM,KAAM,CAAI,GAAG,EAAC,QAAQ,EAAC,CAAC,KAAK,KAAK,MAAM,CAAC,IAAM,GAAM,IAAM,CAAI,GAAG,EAAC,QAAQ,EAAC,CAAC,IAAI;AAC/H,iBAAO;AAAA,YACN,KAAK;AAAA,YACL,MAAM;AAAA,UACZ;AAAA,QACK;AAAA,MACD;AAED,YAAM,KAAK,UAAU,OAAO,SAAS;AACrC,YAAM,WAAW,MAAM,KAAK,YAAY,KAAK;AAC7C,aAAO,WAAW,WAAW;AAAA,QAC5B,KAAK;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACG;AAED,QAAI,YAAY,IAAI;AACnB,aAAO;AAAA,QACN,KAAK;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACG;AAAA,EACD;AACF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.cjs","sources":["../../../../../node_modules/file-type/util.js"],"sourcesContent":["export function stringToBytes(string) {\n\treturn [...string].map(character => character.charCodeAt(0)); // eslint-disable-line unicorn/prefer-code-point\n}\n\n/**\nChecks whether the TAR checksum is valid.\n\n@param {Buffer} buffer - The TAR header `[offset ... offset + 512]`.\n@param {number} offset - TAR header offset.\n@returns {boolean} `true` if the TAR checksum is valid, otherwise `false`.\n*/\nexport function tarHeaderChecksumMatches(buffer, offset = 0) {\n\tconst readSum = Number.parseInt(buffer.toString('utf8', 148, 154).replace(/\\0.*$/, '').trim(), 8); // Read sum in header\n\tif (Number.isNaN(readSum)) {\n\t\treturn false;\n\t}\n\n\tlet sum = 8 * 0x20; // Initialize signed bit sum\n\n\tfor (let index = offset; index < offset + 148; index++) {\n\t\tsum += buffer[index];\n\t}\n\n\tfor (let index = offset + 156; index < offset + 512; index++) {\n\t\tsum += buffer[index];\n\t}\n\n\treturn readSum === sum;\n}\n\n/**\nID3 UINT32 sync-safe tokenizer token.\n28 bits (representing up to 256MB) integer, the msb is 0 to avoid \"false syncsignals\".\n*/\nexport const uint32SyncSafeToken = {\n\tget: (buffer, offset) => (buffer[offset + 3] & 0x7F) | ((buffer[offset + 2]) << 7) | ((buffer[offset + 1]) << 14) | ((buffer[offset]) << 21),\n\tlen: 4,\n};\n"],"names":[],"mappings":";;AAAO,SAAS,cAAc,QAAQ;AACrC,SAAO,CAAC,GAAG,MAAM,EAAE,IAAI,eAAa,UAAU,WAAW,CAAC,CAAC;AAC5D;AASO,SAAS,yBAAyB,QAAQ,SAAS,GAAG;AAC5D,QAAM,UAAU,OAAO,SAAS,OAAO,SAAS,QAAQ,KAAK,GAAG,EAAE,QAAQ,SAAS,EAAE,EAAE,KAAI,GAAI,CAAC;AAChG,MAAI,OAAO,MAAM,OAAO,GAAG;AAC1B,WAAO;AAAA,EACP;AAED,MAAI,MAAM,IAAI;AAEd,WAAS,QAAQ,QAAQ,QAAQ,SAAS,KAAK,SAAS;AACvD,WAAO,OAAO,KAAK;AAAA,EACnB;AAED,WAAS,QAAQ,SAAS,KAAK,QAAQ,SAAS,KAAK,SAAS;AAC7D,WAAO,OAAO,KAAK;AAAA,EACnB;AAED,SAAO,YAAY;AACpB;AAMY,MAAC,sBAAsB;AAAA,EAClC,KAAK,CAAC,QAAQ,WAAY,OAAO,SAAS,CAAC,IAAI,MAAU,OAAO,SAAS,CAAC,KAAM,IAAO,OAAO,SAAS,CAAC,KAAM,KAAQ,OAAO,MAAM,KAAM;AAAA,EACzI,KAAK;AACN;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../node_modules/file-type/util.js"],"sourcesContent":["export function stringToBytes(string) {\n\treturn [...string].map(character => character.charCodeAt(0)); // eslint-disable-line unicorn/prefer-code-point\n}\n\n/**\nChecks whether the TAR checksum is valid.\n\n@param {Buffer} buffer - The TAR header `[offset ... offset + 512]`.\n@param {number} offset - TAR header offset.\n@returns {boolean} `true` if the TAR checksum is valid, otherwise `false`.\n*/\nexport function tarHeaderChecksumMatches(buffer, offset = 0) {\n\tconst readSum = Number.parseInt(buffer.toString('utf8', 148, 154).replace(/\\0.*$/, '').trim(), 8); // Read sum in header\n\tif (Number.isNaN(readSum)) {\n\t\treturn false;\n\t}\n\n\tlet sum = 8 * 0x20; // Initialize signed bit sum\n\n\tfor (let index = offset; index < offset + 148; index++) {\n\t\tsum += buffer[index];\n\t}\n\n\tfor (let index = offset + 156; index < offset + 512; index++) {\n\t\tsum += buffer[index];\n\t}\n\n\treturn readSum === sum;\n}\n\n/**\nID3 UINT32 sync-safe tokenizer token.\n28 bits (representing up to 256MB) integer, the msb is 0 to avoid \"false syncsignals\".\n*/\nexport const uint32SyncSafeToken = {\n\tget: (buffer, offset) => (buffer[offset + 3] & 0x7F) | ((buffer[offset + 2]) << 7) | ((buffer[offset + 1]) << 14) | ((buffer[offset]) << 21),\n\tlen: 4,\n};\n"],"names":[],"mappings":"AAAO,SAAS,cAAc,QAAQ;AACrC,SAAO,CAAC,GAAG,MAAM,EAAE,IAAI,eAAa,UAAU,WAAW,CAAC,CAAC;AAC5D;AASO,SAAS,yBAAyB,QAAQ,SAAS,GAAG;AAC5D,QAAM,UAAU,OAAO,SAAS,OAAO,SAAS,QAAQ,KAAK,GAAG,EAAE,QAAQ,SAAS,EAAE,EAAE,KAAI,GAAI,CAAC;AAChG,MAAI,OAAO,MAAM,OAAO,GAAG;AAC1B,WAAO;AAAA,EACP;AAED,MAAI,MAAM,IAAI;AAEd,WAAS,QAAQ,QAAQ,QAAQ,SAAS,KAAK,SAAS;AACvD,WAAO,OAAO,KAAK;AAAA,EACnB;AAED,WAAS,QAAQ,SAAS,KAAK,QAAQ,SAAS,KAAK,SAAS;AAC7D,WAAO,OAAO,KAAK;AAAA,EACnB;AAED,SAAO,YAAY;AACpB;AAMY,MAAC,sBAAsB;AAAA,EAClC,KAAK,CAAC,QAAQ,WAAY,OAAO,SAAS,CAAC,IAAI,MAAU,OAAO,SAAS,CAAC,KAAM,IAAO,OAAO,SAAS,CAAC,KAAM,KAAQ,OAAO,MAAM,KAAM;AAAA,EACzI,KAAK;AACN;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"esm.min.cjs","sources":["../../../../../node_modules/formdata-polyfill/esm.min.js"],"sourcesContent":["/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */\n\nimport C from 'fetch-blob'\nimport F from 'fetch-blob/file.js'\n\nvar {toStringTag:t,iterator:i,hasInstance:h}=Symbol,\nr=Math.random,\nm='append,set,get,getAll,delete,keys,values,entries,forEach,constructor'.split(','),\nf=(a,b,c)=>(a+='',/^(Blob|File)$/.test(b && b[t])?[(c=c!==void 0?c+'':b[t]=='File'?b.name:'blob',a),b.name!==c||b[t]=='blob'?new F([b],c,b):b]:[a,b+'']),\ne=(c,f)=>(f?c:c.replace(/\\r?\\n|\\r/g,'\\r\\n')).replace(/\\n/g,'%0A').replace(/\\r/g,'%0D').replace(/\"/g,'%22'),\nx=(n, a, e)=>{if(a.length<e){throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e} arguments required, but only ${a.length} present.`)}}\n\nexport const File = F\n\n/** @type {typeof globalThis.FormData} */\nexport const FormData = class FormData {\n#d=[];\nconstructor(...a){if(a.length)throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`)}\nget [t]() {return 'FormData'}\n[i](){return this.entries()}\nstatic [h](o) {return o&&typeof o==='object'&&o[t]==='FormData'&&!m.some(m=>typeof o[m]!='function')}\nappend(...a){x('append',arguments,2);this.#d.push(f(...a))}\ndelete(a){x('delete',arguments,1);a+='';this.#d=this.#d.filter(([b])=>b!==a)}\nget(a){x('get',arguments,1);a+='';for(var b=this.#d,l=b.length,c=0;c<l;c++)if(b[c][0]===a)return b[c][1];return null}\ngetAll(a,b){x('getAll',arguments,1);b=[];a+='';this.#d.forEach(c=>c[0]===a&&b.push(c[1]));return b}\nhas(a){x('has',arguments,1);a+='';return this.#d.some(b=>b[0]===a)}\nforEach(a,b){x('forEach',arguments,1);for(var [c,d]of this)a.call(b,d,c,this)}\nset(...a){x('set',arguments,2);var b=[],c=!0;a=f(...a);this.#d.forEach(d=>{d[0]===a[0]?c&&(c=!b.push(a)):b.push(d)});c&&b.push(a);this.#d=b}\n*entries(){yield*this.#d}\n*keys(){for(var[a]of this)yield a}\n*values(){for(var[,a]of this)yield a}}\n\n/** @param {FormData} F */\nexport function formDataToBlob (F,B=C){\nvar b=`${r()}${r()}`.replace(/\\./g, '').slice(-28).padStart(32, '-'),c=[],p=`--${b}\\r\\nContent-Disposition: form-data; name=\"`\nF.forEach((v,n)=>typeof v=='string'\n?c.push(p+e(n)+`\"\\r\\n\\r\\n${v.replace(/\\r(?!\\n)|(?<!\\r)\\n/g, '\\r\\n')}\\r\\n`)\n:c.push(p+e(n)+`\"; filename=\"${e(v.name, 1)}\"\\r\\nContent-Type: ${v.type||\"application/octet-stream\"}\\r\\n\\r\\n`, v, '\\r\\n'))\nc.push(`--${b}--`)\nreturn new B(c,{type:\"multipart/form-data; boundary=\"+b})}\n"],"names":["F","f","e","m","C"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAKA,IAAI,EAAC,aAAY,GAAE,UAAS,GAAE,aAAY,EAAC,IAAE,QAC7C,IAAE,KAAK,QACP,IAAE,uEAAuE,MAAM,GAAG,GAClF,IAAE,CAAC,GAAE,GAAE,OAAK,KAAG,IAAG,gBAAgB,KAAK,KAAK,EAAE,CAAC,CAAC,IAAE,EAAE,IAAE,MAAI,SAAO,IAAE,KAAG,EAAE,CAAC,KAAG,SAAO,EAAE,OAAK,QAAO,IAAG,EAAE,SAAO,KAAG,EAAE,CAAC,KAAG,SAAO,IAAIA,KAAC,KAAC,CAAC,CAAC,GAAE,GAAE,CAAC,IAAE,CAAC,IAAE,CAAC,GAAE,IAAE,EAAE,IACtJ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GAAC,IAAE,KAAK;AAAA;AACjF,IAAE,QAAQ,CAAC,GAAE,MAAI,OAAO,KAAG,WAC1B,EAAE,KAAK,IAAE,EAAE,CAAC,IAAE;AAAA;AAAA,EAAY,EAAE,QAAQ,WAAA,0BAAA,GAAqB,GAAE,MAAM;AAAA,CAAO,IACxE,EAAE,KAAK,IAAE,EAAE,CAAC,IAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC;AAAA,gBAAuB,EAAE,QAAM;AAAA;AAAA,GAAsC,GAAG,MAAM,CAAC;AACzH,IAAE,KAAK,KAAK,KAAK;AACjB,SAAO,IAAI,EAAE,GAAE,EAAC,MAAK,mCAAiC,EAAC,CAAC;AAAC;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"esm.min.js","sources":["../../../../../node_modules/formdata-polyfill/esm.min.js"],"sourcesContent":["/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */\n\nimport C from 'fetch-blob'\nimport F from 'fetch-blob/file.js'\n\nvar {toStringTag:t,iterator:i,hasInstance:h}=Symbol,\nr=Math.random,\nm='append,set,get,getAll,delete,keys,values,entries,forEach,constructor'.split(','),\nf=(a,b,c)=>(a+='',/^(Blob|File)$/.test(b && b[t])?[(c=c!==void 0?c+'':b[t]=='File'?b.name:'blob',a),b.name!==c||b[t]=='blob'?new F([b],c,b):b]:[a,b+'']),\ne=(c,f)=>(f?c:c.replace(/\\r?\\n|\\r/g,'\\r\\n')).replace(/\\n/g,'%0A').replace(/\\r/g,'%0D').replace(/\"/g,'%22'),\nx=(n, a, e)=>{if(a.length<e){throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e} arguments required, but only ${a.length} present.`)}}\n\nexport const File = F\n\n/** @type {typeof globalThis.FormData} */\nexport const FormData = class FormData {\n#d=[];\nconstructor(...a){if(a.length)throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`)}\nget [t]() {return 'FormData'}\n[i](){return this.entries()}\nstatic [h](o) {return o&&typeof o==='object'&&o[t]==='FormData'&&!m.some(m=>typeof o[m]!='function')}\nappend(...a){x('append',arguments,2);this.#d.push(f(...a))}\ndelete(a){x('delete',arguments,1);a+='';this.#d=this.#d.filter(([b])=>b!==a)}\nget(a){x('get',arguments,1);a+='';for(var b=this.#d,l=b.length,c=0;c<l;c++)if(b[c][0]===a)return b[c][1];return null}\ngetAll(a,b){x('getAll',arguments,1);b=[];a+='';this.#d.forEach(c=>c[0]===a&&b.push(c[1]));return b}\nhas(a){x('has',arguments,1);a+='';return this.#d.some(b=>b[0]===a)}\nforEach(a,b){x('forEach',arguments,1);for(var [c,d]of this)a.call(b,d,c,this)}\nset(...a){x('set',arguments,2);var b=[],c=!0;a=f(...a);this.#d.forEach(d=>{d[0]===a[0]?c&&(c=!b.push(a)):b.push(d)});c&&b.push(a);this.#d=b}\n*entries(){yield*this.#d}\n*keys(){for(var[a]of this)yield a}\n*values(){for(var[,a]of this)yield a}}\n\n/** @param {FormData} F */\nexport function formDataToBlob (F,B=C){\nvar b=`${r()}${r()}`.replace(/\\./g, '').slice(-28).padStart(32, '-'),c=[],p=`--${b}\\r\\nContent-Disposition: form-data; name=\"`\nF.forEach((v,n)=>typeof v=='string'\n?c.push(p+e(n)+`\"\\r\\n\\r\\n${v.replace(/\\r(?!\\n)|(?<!\\r)\\n/g, '\\r\\n')}\\r\\n`)\n:c.push(p+e(n)+`\"; filename=\"${e(v.name, 1)}\"\\r\\nContent-Type: ${v.type||\"application/octet-stream\"}\\r\\n\\r\\n`, v, '\\r\\n'))\nc.push(`--${b}--`)\nreturn new B(c,{type:\"multipart/form-data; boundary=\"+b})}\n"],"names":["F","f","e","m","C"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAKA,IAAI,EAAC,aAAY,GAAE,UAAS,GAAE,aAAY,EAAC,IAAE,QAC7C,IAAE,KAAK,QACP,IAAE,uEAAuE,MAAM,GAAG,GAClF,IAAE,CAAC,GAAE,GAAE,OAA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C;AAAA,EACjC,CAAC,SAAQ;AAAC,aAAO,CAAE,EAAA,CAAC,KAAI;AAAK,YAAM;AAAA,EAAC;AAAC,GAdrC,oBADwB;AAkBjB,SAAS,eAAgB,GAAE,IAAEC,MAAE;AACtC,MAAI,IAAE,GAAG,EAAG,IAAG,EAAC,IAAK,QAAQ,OAAO,EAAE,EAAE,MAAM,GAAG,EAAE,SAAS,IAAI,GAAG,GAAE,IAAE,CAAE,GAAC,IAAE,KAAK;AAAA;AACjF,IAAE,QAAQ,CAAC,GAAE,MAAI,OAAO,KAAG,WAC1B,EAAE,KAAK,IAAE,EAAE,CAAC,IAAE;AAAA;AAAA,EAAY,EAAE,QAAQ,WAAA,0BAAA,GAAqB,GAAE,MAAM;AAAA,CAAO,IACxE,EAAE,KAAK,IAAE,EAAE,CAAC,IAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC;AAAA,gBAAuB,EAAE,QAAM;AAAA;AAAA,GAAsC,GAAG,MAAM,CAAC;AACzH,IAAE,KAAK,KAAK,KAAK;AACjB,SAAO,IAAI,EAAE,GAAE,EAAC,MAAK,mCAAiC,EAAC,CAAC;AAAC;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const internal = require("./internal.cjs");
|
|
4
|
-
var isLeft = internal.isLeft;
|
|
5
|
-
var matchW = function(onLeft, onRight) {
|
|
6
|
-
return function(ma) {
|
|
7
|
-
return isLeft(ma) ? onLeft(ma.left) : onRight(ma.right);
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
var foldW = matchW;
|
|
11
|
-
exports.foldW = foldW;
|
|
12
|
-
exports.isLeft = isLeft;
|
|
13
|
-
exports.matchW = matchW;
|
|
14
|
-
//# sourceMappingURL=Either.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Either.cjs","sources":["../../../../../../node_modules/fp-ts/es6/Either.js"],"sourcesContent":["import { getApplicativeMonoid } from './Applicative';\nimport { apFirst as apFirst_, apS as apS_, apSecond as apSecond_, getApplySemigroup as getApplySemigroup_ } from './Apply';\nimport { bind as bind_, chainFirst as chainFirst_ } from './Chain';\nimport { tailRec } from './ChainRec';\nimport { chainOptionK as chainOptionK_, filterOrElse as filterOrElse_, fromOption as fromOption_, fromOptionK as fromOptionK_, fromPredicate as fromPredicate_ } from './FromEither';\nimport { flow, identity, pipe } from './function';\nimport { bindTo as bindTo_, flap as flap_, let as let__ } from './Functor';\nimport * as _ from './internal';\nimport { separated } from './Separated';\nimport { wiltDefault, witherDefault } from './Witherable';\n// -------------------------------------------------------------------------------------\n// constructors\n// -------------------------------------------------------------------------------------\n/**\n * Constructs a new `Either` holding a `Left` value. This usually represents a failure, due to the right-bias of this\n * structure.\n *\n * @category constructors\n * @since 2.0.0\n */\nexport var left = _.left;\n/**\n * Constructs a new `Either` holding a `Right` value. This usually represents a successful value due to the right bias\n * of this structure.\n *\n * @category constructors\n * @since 2.0.0\n */\nexport var right = _.right;\nvar _map = function (fa, f) { return pipe(fa, map(f)); };\nvar _ap = function (fab, fa) { return pipe(fab, ap(fa)); };\n/* istanbul ignore next */\nvar _chain = function (ma, f) { return pipe(ma, chain(f)); };\n/* istanbul ignore next */\nvar _reduce = function (fa, b, f) { return pipe(fa, reduce(b, f)); };\n/* istanbul ignore next */\nvar _foldMap = function (M) { return function (fa, f) {\n var foldMapM = foldMap(M);\n return pipe(fa, foldMapM(f));\n}; };\n/* istanbul ignore next */\nvar _reduceRight = function (fa, b, f) { return pipe(fa, reduceRight(b, f)); };\nvar _traverse = function (F) {\n var traverseF = traverse(F);\n return function (ta, f) { return pipe(ta, traverseF(f)); };\n};\nvar _bimap = function (fa, f, g) { return pipe(fa, bimap(f, g)); };\nvar _mapLeft = function (fa, f) { return pipe(fa, mapLeft(f)); };\n/* istanbul ignore next */\nvar _alt = function (fa, that) { return pipe(fa, alt(that)); };\n/* istanbul ignore next */\nvar _extend = function (wa, f) { return pipe(wa, extend(f)); };\nvar _chainRec = function (a, f) {\n return tailRec(f(a), function (e) {\n return isLeft(e) ? right(left(e.left)) : isLeft(e.right) ? left(f(e.right.left)) : right(right(e.right.right));\n });\n};\n/**\n * @category type lambdas\n * @since 2.0.0\n */\nexport var URI = 'Either';\n/**\n * @category instances\n * @since 2.0.0\n */\nexport var getShow = function (SE, SA) { return ({\n show: function (ma) { return (isLeft(ma) ? \"left(\".concat(SE.show(ma.left), \")\") : \"right(\".concat(SA.show(ma.right), \")\")); }\n}); };\n/**\n * @category instances\n * @since 2.0.0\n */\nexport var getEq = function (EL, EA) { return ({\n equals: function (x, y) {\n return x === y || (isLeft(x) ? isLeft(y) && EL.equals(x.left, y.left) : isRight(y) && EA.equals(x.right, y.right));\n }\n}); };\n/**\n * Semigroup returning the left-most non-`Left` value. If both operands are `Right`s then the inner values are\n * concatenated using the provided `Semigroup`\n *\n * @example\n * import { getSemigroup, left, right } from 'fp-ts/Either'\n * import { SemigroupSum } from 'fp-ts/number'\n *\n * const S = getSemigroup<string, number>(SemigroupSum)\n * assert.deepStrictEqual(S.concat(left('a'), left('b')), left('a'))\n * assert.deepStrictEqual(S.concat(left('a'), right(2)), right(2))\n * assert.deepStrictEqual(S.concat(right(1), left('b')), right(1))\n * assert.deepStrictEqual(S.concat(right(1), right(2)), right(3))\n *\n * @category instances\n * @since 2.0.0\n */\nexport var getSemigroup = function (S) { return ({\n concat: function (x, y) { return (isLeft(y) ? x : isLeft(x) ? y : right(S.concat(x.right, y.right))); }\n}); };\n/**\n * Builds a `Compactable` instance for `Either` given `Monoid` for the left side.\n *\n * @category filtering\n * @since 2.10.0\n */\nexport var getCompactable = function (M) {\n var empty = left(M.empty);\n return {\n URI: URI,\n _E: undefined,\n compact: function (ma) { return (isLeft(ma) ? ma : ma.right._tag === 'None' ? empty : right(ma.right.value)); },\n separate: function (ma) {\n return isLeft(ma)\n ? separated(ma, ma)\n : isLeft(ma.right)\n ? separated(right(ma.right.left), empty)\n : separated(empty, right(ma.right.right));\n }\n };\n};\n/**\n * Builds a `Filterable` instance for `Either` given `Monoid` for the left side\n *\n * @category filtering\n * @since 2.10.0\n */\nexport var getFilterable = function (M) {\n var empty = left(M.empty);\n var _a = getCompactable(M), compact = _a.compact, separate = _a.separate;\n var filter = function (ma, predicate) {\n return isLeft(ma) ? ma : predicate(ma.right) ? ma : empty;\n };\n var partition = function (ma, p) {\n return isLeft(ma)\n ? separated(ma, ma)\n : p(ma.right)\n ? separated(empty, right(ma.right))\n : separated(right(ma.right), empty);\n };\n return {\n URI: URI,\n _E: undefined,\n map: _map,\n compact: compact,\n separate: separate,\n filter: filter,\n filterMap: function (ma, f) {\n if (isLeft(ma)) {\n return ma;\n }\n var ob = f(ma.right);\n return ob._tag === 'None' ? empty : right(ob.value);\n },\n partition: partition,\n partitionMap: function (ma, f) {\n if (isLeft(ma)) {\n return separated(ma, ma);\n }\n var e = f(ma.right);\n return isLeft(e) ? separated(right(e.left), empty) : separated(empty, right(e.right));\n }\n };\n};\n/**\n * Builds `Witherable` instance for `Either` given `Monoid` for the left side\n *\n * @category filtering\n * @since 2.0.0\n */\nexport var getWitherable = function (M) {\n var F_ = getFilterable(M);\n var C = getCompactable(M);\n return {\n URI: URI,\n _E: undefined,\n map: _map,\n compact: F_.compact,\n separate: F_.separate,\n filter: F_.filter,\n filterMap: F_.filterMap,\n partition: F_.partition,\n partitionMap: F_.partitionMap,\n traverse: _traverse,\n sequence: sequence,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n wither: witherDefault(Traversable, C),\n wilt: wiltDefault(Traversable, C)\n };\n};\n/**\n * The default [`Applicative`](#applicative) instance returns the first error, if you want to\n * get all errors you need to provide a way to concatenate them via a `Semigroup`.\n *\n * @example\n * import * as A from 'fp-ts/Apply'\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n * import * as S from 'fp-ts/Semigroup'\n * import * as string from 'fp-ts/string'\n *\n * const parseString = (u: unknown): E.Either<string, string> =>\n * typeof u === 'string' ? E.right(u) : E.left('not a string')\n *\n * const parseNumber = (u: unknown): E.Either<string, number> =>\n * typeof u === 'number' ? E.right(u) : E.left('not a number')\n *\n * interface Person {\n * readonly name: string\n * readonly age: number\n * }\n *\n * const parsePerson = (\n * input: Record<string, unknown>\n * ): E.Either<string, Person> =>\n * pipe(\n * E.Do,\n * E.apS('name', parseString(input.name)),\n * E.apS('age', parseNumber(input.age))\n * )\n *\n * assert.deepStrictEqual(parsePerson({}), E.left('not a string')) // <= first error\n *\n * const Applicative = E.getApplicativeValidation(\n * pipe(string.Semigroup, S.intercalate(', '))\n * )\n *\n * const apS = A.apS(Applicative)\n *\n * const parsePersonAll = (\n * input: Record<string, unknown>\n * ): E.Either<string, Person> =>\n * pipe(\n * E.Do,\n * apS('name', parseString(input.name)),\n * apS('age', parseNumber(input.age))\n * )\n *\n * assert.deepStrictEqual(parsePersonAll({}), E.left('not a string, not a number')) // <= all errors\n *\n * @category error handling\n * @since 2.7.0\n */\nexport var getApplicativeValidation = function (SE) { return ({\n URI: URI,\n _E: undefined,\n map: _map,\n ap: function (fab, fa) {\n return isLeft(fab)\n ? isLeft(fa)\n ? left(SE.concat(fab.left, fa.left))\n : fab\n : isLeft(fa)\n ? fa\n : right(fab.right(fa.right));\n },\n of: of\n}); };\n/**\n * The default [`Alt`](#alt) instance returns the last error, if you want to\n * get all errors you need to provide a way to concatenate them via a `Semigroup`.\n *\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n * import * as S from 'fp-ts/Semigroup'\n * import * as string from 'fp-ts/string'\n *\n * const parseString = (u: unknown): E.Either<string, string> =>\n * typeof u === 'string' ? E.right(u) : E.left('not a string')\n *\n * const parseNumber = (u: unknown): E.Either<string, number> =>\n * typeof u === 'number' ? E.right(u) : E.left('not a number')\n *\n * const parse = (u: unknown): E.Either<string, string | number> =>\n * pipe(\n * parseString(u),\n * E.alt<string, string | number>(() => parseNumber(u))\n * )\n *\n * assert.deepStrictEqual(parse(true), E.left('not a number')) // <= last error\n *\n * const Alt = E.getAltValidation(pipe(string.Semigroup, S.intercalate(', ')))\n *\n * const parseAll = (u: unknown): E.Either<string, string | number> =>\n * Alt.alt<string | number>(parseString(u), () => parseNumber(u))\n *\n * assert.deepStrictEqual(parseAll(true), E.left('not a string, not a number')) // <= all errors\n *\n * @category error handling\n * @since 2.7.0\n */\nexport var getAltValidation = function (SE) { return ({\n URI: URI,\n _E: undefined,\n map: _map,\n alt: function (me, that) {\n if (isRight(me)) {\n return me;\n }\n var ea = that();\n return isLeft(ea) ? left(SE.concat(me.left, ea.left)) : ea;\n }\n}); };\n/**\n * @category mapping\n * @since 2.0.0\n */\nexport var map = function (f) { return function (fa) {\n return isLeft(fa) ? fa : right(f(fa.right));\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Functor = {\n URI: URI,\n map: _map\n};\n/**\n * @category constructors\n * @since 2.7.0\n */\nexport var of = right;\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var Pointed = {\n URI: URI,\n of: of\n};\n/**\n * Less strict version of [`ap`](#ap).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @since 2.8.0\n */\nexport var apW = function (fa) { return function (fab) {\n return isLeft(fab) ? fab : isLeft(fa) ? fa : right(fab.right(fa.right));\n}; };\n/**\n * @since 2.0.0\n */\nexport var ap = apW;\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var Apply = {\n URI: URI,\n map: _map,\n ap: _ap\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Applicative = {\n URI: URI,\n map: _map,\n ap: _ap,\n of: of\n};\n/**\n * Less strict version of [`chain`](#chain).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * const e1: E.Either<string, number> = E.right(1)\n * const e2: E.Either<number, number> = E.right(2)\n *\n * export const result1 = pipe(\n * // @ts-expect-error\n * e1,\n * E.chain(() => e2)\n * )\n *\n * // merged error types -----v-------------v\n * // const result2: E.Either<string | number, number>\n * export const result2 = pipe(\n * e1, // no error\n * E.chainW(() => e2)\n * )\n *\n * @category sequencing\n * @since 2.6.0\n */\nexport var chainW = function (f) {\n return function (ma) {\n return isLeft(ma) ? ma : f(ma.right);\n };\n};\n/**\n * Composes computations in sequence, using the return value of one computation to determine the next computation.\n *\n * @category sequencing\n * @since 2.0.0\n */\nexport var chain = chainW;\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var Chain = {\n URI: URI,\n map: _map,\n ap: _ap,\n chain: _chain\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Monad = {\n URI: URI,\n map: _map,\n ap: _ap,\n of: of,\n chain: _chain\n};\n/**\n * Left-associative fold of a structure.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n *\n * const startWith = 'prefix'\n * const concat = (a: string, b: string) => `${a}:${b}`\n *\n * assert.deepStrictEqual(\n * pipe(E.right('a'), E.reduce(startWith, concat)),\n * 'prefix:a'\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.left('e'), E.reduce(startWith, concat)),\n * 'prefix'\n * )\n *\n * @category folding\n * @since 2.0.0\n */\nexport var reduce = function (b, f) { return function (fa) {\n return isLeft(fa) ? b : f(b, fa.right);\n}; };\n/**\n * Map each element of the structure to a monoid, and combine the results.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n * import * as S from 'fp-ts/string'\n *\n * const yell = (a: string) => `${a}!`\n *\n * assert.deepStrictEqual(\n * pipe(E.right('a'), E.foldMap(S.Monoid)(yell)),\n * 'a!'\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.left('e'), E.foldMap(S.Monoid)(yell)),\n * S.Monoid.empty\n * )\n *\n * @category folding\n * @since 2.0.0\n */\nexport var foldMap = function (M) { return function (f) { return function (fa) {\n return isLeft(fa) ? M.empty : f(fa.right);\n}; }; };\n/**\n * Right-associative fold of a structure.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n *\n * const startWith = 'postfix'\n * const concat = (a: string, b: string) => `${a}:${b}`\n *\n * assert.deepStrictEqual(\n * pipe(E.right('a'), E.reduceRight(startWith, concat)),\n * 'a:postfix'\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.left('e'), E.reduceRight(startWith, concat)),\n * 'postfix'\n * )\n *\n * @category folding\n * @since 2.0.0\n */\nexport var reduceRight = function (b, f) { return function (fa) {\n return isLeft(fa) ? b : f(fa.right, b);\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Foldable = {\n URI: URI,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight\n};\n/**\n * Map each element of a structure to an action, evaluate these actions from left to right, and collect the results.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as RA from 'fp-ts/ReadonlyArray'\n * import * as E from 'fp-ts/Either'\n * import * as O from 'fp-ts/Option'\n *\n * assert.deepStrictEqual(\n * pipe(E.right(['a']), E.traverse(O.Applicative)(RA.head)),\n * O.some(E.right('a'))\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.right([]), E.traverse(O.Applicative)(RA.head)),\n * O.none\n * )\n *\n * @category traversing\n * @since 2.6.3\n */\nexport var traverse = function (F) {\n return function (f) {\n return function (ta) {\n return isLeft(ta) ? F.of(left(ta.left)) : F.map(f(ta.right), right);\n };\n };\n};\n/**\n * Evaluate each monadic action in the structure from left to right, and collect the results.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n * import * as O from 'fp-ts/Option'\n *\n * assert.deepStrictEqual(\n * pipe(E.right(O.some('a')), E.sequence(O.Applicative)),\n * O.some(E.right('a'))\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.right(O.none), E.sequence(O.Applicative)),\n * O.none\n * )\n *\n * @category traversing\n * @since 2.6.3\n */\nexport var sequence = function (F) {\n return function (ma) {\n return isLeft(ma) ? F.of(left(ma.left)) : F.map(ma.right, right);\n };\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Traversable = {\n URI: URI,\n map: _map,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n traverse: _traverse,\n sequence: sequence\n};\n/**\n * Map a pair of functions over the two type arguments of the bifunctor.\n *\n * @category mapping\n * @since 2.0.0\n */\nexport var bimap = function (f, g) { return function (fa) {\n return isLeft(fa) ? left(f(fa.left)) : right(g(fa.right));\n}; };\n/**\n * Map a function over the first type argument of a bifunctor.\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var mapLeft = function (f) { return function (fa) {\n return isLeft(fa) ? left(f(fa.left)) : fa;\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Bifunctor = {\n URI: URI,\n bimap: _bimap,\n mapLeft: _mapLeft\n};\n/**\n * Less strict version of [`alt`](#alt).\n *\n * The `W` suffix (short for **W**idening) means that the error and the return types will be merged.\n *\n * @category error handling\n * @since 2.9.0\n */\nexport var altW = function (that) { return function (fa) {\n return isLeft(fa) ? that() : fa;\n}; };\n/**\n * Identifies an associative operation on a type constructor. It is similar to `Semigroup`, except that it applies to\n * types of kind `* -> *`.\n *\n * In case of `Either` returns the left-most non-`Left` value (or the right-most `Left` value if both values are `Left`).\n *\n * | x | y | pipe(x, alt(() => y) |\n * | -------- | -------- | -------------------- |\n * | left(a) | left(b) | left(b) |\n * | left(a) | right(2) | right(2) |\n * | right(1) | left(b) | right(1) |\n * | right(1) | right(2) | right(1) |\n *\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * E.left('a'),\n * E.alt(() => E.left('b'))\n * ),\n * E.left('b')\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.left('a'),\n * E.alt(() => E.right(2))\n * ),\n * E.right(2)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.right(1),\n * E.alt(() => E.left('b'))\n * ),\n * E.right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.right(1),\n * E.alt(() => E.right(2))\n * ),\n * E.right(1)\n * )\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var alt = altW;\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Alt = {\n URI: URI,\n map: _map,\n alt: _alt\n};\n/**\n * @since 2.0.0\n */\nexport var extend = function (f) { return function (wa) {\n return isLeft(wa) ? wa : right(f(wa));\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Extend = {\n URI: URI,\n map: _map,\n extend: _extend\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var ChainRec = {\n URI: URI,\n map: _map,\n ap: _ap,\n chain: _chain,\n chainRec: _chainRec\n};\n/**\n * @since 2.6.3\n */\nexport var throwError = left;\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var MonadThrow = {\n URI: URI,\n map: _map,\n ap: _ap,\n of: of,\n chain: _chain,\n throwError: throwError\n};\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var FromEither = {\n URI: URI,\n fromEither: identity\n};\n/**\n * @example\n * import { fromPredicate, left, right } from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * 1,\n * fromPredicate(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * -1,\n * fromPredicate(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * left('error')\n * )\n *\n * @category lifting\n * @since 2.0.0\n */\nexport var fromPredicate = /*#__PURE__*/ fromPredicate_(FromEither);\n// -------------------------------------------------------------------------------------\n// conversions\n// -------------------------------------------------------------------------------------\n/**\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n * import * as O from 'fp-ts/Option'\n *\n * assert.deepStrictEqual(\n * pipe(\n * O.some(1),\n * E.fromOption(() => 'error')\n * ),\n * E.right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * O.none,\n * E.fromOption(() => 'error')\n * ),\n * E.left('error')\n * )\n *\n * @category conversions\n * @since 2.0.0\n */\nexport var fromOption = \n/*#__PURE__*/ fromOption_(FromEither);\n// -------------------------------------------------------------------------------------\n// refinements\n// -------------------------------------------------------------------------------------\n/**\n * Returns `true` if the either is an instance of `Left`, `false` otherwise.\n *\n * @category refinements\n * @since 2.0.0\n */\nexport var isLeft = _.isLeft;\n/**\n * Returns `true` if the either is an instance of `Right`, `false` otherwise.\n *\n * @category refinements\n * @since 2.0.0\n */\nexport var isRight = _.isRight;\n/**\n * Less strict version of [`match`](#match).\n *\n * The `W` suffix (short for **W**idening) means that the handler return types will be merged.\n *\n * @category pattern matching\n * @since 2.10.0\n */\nexport var matchW = function (onLeft, onRight) {\n return function (ma) {\n return isLeft(ma) ? onLeft(ma.left) : onRight(ma.right);\n };\n};\n/**\n * Alias of [`matchW`](#matchw).\n *\n * @category pattern matching\n * @since 2.10.0\n */\nexport var foldW = matchW;\n/**\n * Takes two functions and an `Either` value, if the value is a `Left` the inner value is applied to the first function,\n * if the value is a `Right` the inner value is applied to the second function.\n *\n * @example\n * import { match, left, right } from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * function onLeft(errors: Array<string>): string {\n * return `Errors: ${errors.join(', ')}`\n * }\n *\n * function onRight(value: number): string {\n * return `Ok: ${value}`\n * }\n *\n * assert.strictEqual(\n * pipe(\n * right(1),\n * match(onLeft, onRight)\n * ),\n * 'Ok: 1'\n * )\n * assert.strictEqual(\n * pipe(\n * left(['error 1', 'error 2']),\n * match(onLeft, onRight)\n * ),\n * 'Errors: error 1, error 2'\n * )\n *\n * @category pattern matching\n * @since 2.10.0\n */\nexport var match = matchW;\n/**\n * Alias of [`match`](#match).\n *\n * @category pattern matching\n * @since 2.0.0\n */\nexport var fold = match;\n/**\n * Less strict version of [`getOrElse`](#getorelse).\n *\n * The `W` suffix (short for **W**idening) means that the handler return type will be merged.\n *\n * @category error handling\n * @since 2.6.0\n */\nexport var getOrElseW = function (onLeft) {\n return function (ma) {\n return isLeft(ma) ? onLeft(ma.left) : ma.right;\n };\n};\n/**\n * Returns the wrapped value if it's a `Right` or a default value if is a `Left`.\n *\n * @example\n * import { getOrElse, left, right } from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * right(1),\n * getOrElse(() => 0)\n * ),\n * 1\n * )\n * assert.deepStrictEqual(\n * pipe(\n * left('error'),\n * getOrElse(() => 0)\n * ),\n * 0\n * )\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var getOrElse = getOrElseW;\n// -------------------------------------------------------------------------------------\n// combinators\n// -------------------------------------------------------------------------------------\n/**\n * @category mapping\n * @since 2.10.0\n */\nexport var flap = /*#__PURE__*/ flap_(Functor);\n/**\n * Combine two effectful actions, keeping only the result of the first.\n *\n * @since 2.0.0\n */\nexport var apFirst = /*#__PURE__*/ apFirst_(Apply);\n/**\n * Less strict version of [`apFirst`](#apfirst)\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @since 2.12.0\n */\nexport var apFirstW = apFirst;\n/**\n * Combine two effectful actions, keeping only the result of the second.\n *\n * @since 2.0.0\n */\nexport var apSecond = /*#__PURE__*/ apSecond_(Apply);\n/**\n * Less strict version of [`apSecond`](#apsecond)\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @since 2.12.0\n */\nexport var apSecondW = apSecond;\n/**\n * Composes computations in sequence, using the return value of one computation to determine the next computation and\n * keeping only the result of the first.\n *\n * @category sequencing\n * @since 2.0.0\n */\nexport var chainFirst = \n/*#__PURE__*/ chainFirst_(Chain);\n/**\n * Less strict version of [`chainFirst`](#chainfirst)\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category sequencing\n * @since 2.8.0\n */\nexport var chainFirstW = chainFirst;\n/**\n * Less strict version of [`flatten`](#flatten).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category sequencing\n * @since 2.11.0\n */\nexport var flattenW = \n/*#__PURE__*/ chainW(identity);\n/**\n * The `flatten` function is the conventional monad join operator. It is used to remove one level of monadic structure, projecting its bound argument into the outer level.\n *\n * @example\n * import * as E from 'fp-ts/Either'\n *\n * assert.deepStrictEqual(E.flatten(E.right(E.right('a'))), E.right('a'))\n * assert.deepStrictEqual(E.flatten(E.right(E.left('e'))), E.left('e'))\n * assert.deepStrictEqual(E.flatten(E.left('e')), E.left('e'))\n *\n * @category sequencing\n * @since 2.0.0\n */\nexport var flatten = flattenW;\n/**\n * @since 2.0.0\n */\nexport var duplicate = /*#__PURE__*/ extend(identity);\n/**\n * @category lifting\n * @since 2.10.0\n */\nexport var fromOptionK = \n/*#__PURE__*/ fromOptionK_(FromEither);\n/**\n * @category sequencing\n * @since 2.11.0\n */\nexport var chainOptionK = /*#__PURE__*/ chainOptionK_(FromEither, Chain);\n/**\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * E.right(1),\n * E.filterOrElse(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * E.right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.right(-1),\n * E.filterOrElse(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * E.left('error')\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.left('a'),\n * E.filterOrElse(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * E.left('a')\n * )\n *\n * @category filtering\n * @since 2.0.0\n */\nexport var filterOrElse = /*#__PURE__*/ filterOrElse_(FromEither, Chain);\n/**\n * Less strict version of [`filterOrElse`](#filterorelse).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category filtering\n * @since 2.9.0\n */\nexport var filterOrElseW = filterOrElse;\n/**\n * Returns a `Right` if is a `Left` (and vice versa).\n *\n * @since 2.0.0\n */\nexport var swap = function (ma) { return (isLeft(ma) ? right(ma.left) : left(ma.right)); };\n/**\n * Less strict version of [`orElse`](#orelse).\n *\n * The `W` suffix (short for **W**idening) means that the return types will be merged.\n *\n * @category error handling\n * @since 2.10.0\n */\nexport var orElseW = function (onLeft) {\n return function (ma) {\n return isLeft(ma) ? onLeft(ma.left) : ma;\n };\n};\n/**\n * Useful for recovering from errors.\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var orElse = orElseW;\n/**\n * Takes a default and a nullable value, if the value is not nully, turn it into a `Right`, if the value is nully use\n * the provided default as a `Left`.\n *\n * @example\n * import { fromNullable, left, right } from 'fp-ts/Either'\n *\n * const parse = fromNullable('nully')\n *\n * assert.deepStrictEqual(parse(1), right(1))\n * assert.deepStrictEqual(parse(null), left('nully'))\n *\n * @category conversions\n * @since 2.0.0\n */\nexport var fromNullable = function (e) {\n return function (a) {\n return a == null ? left(e) : right(a);\n };\n};\n/**\n * Constructs a new `Either` from a function that might throw.\n *\n * See also [`tryCatchK`](#trycatchk).\n *\n * @example\n * import * as E from 'fp-ts/Either'\n *\n * const unsafeHead = <A>(as: ReadonlyArray<A>): A => {\n * if (as.length > 0) {\n * return as[0]\n * } else {\n * throw new Error('empty array')\n * }\n * }\n *\n * const head = <A>(as: ReadonlyArray<A>): E.Either<Error, A> =>\n * E.tryCatch(() => unsafeHead(as), e => (e instanceof Error ? e : new Error('unknown error')))\n *\n * assert.deepStrictEqual(head([]), E.left(new Error('empty array')))\n * assert.deepStrictEqual(head([1, 2, 3]), E.right(1))\n *\n * @category interop\n * @since 2.0.0\n */\nexport var tryCatch = function (f, onThrow) {\n try {\n return right(f());\n }\n catch (e) {\n return left(onThrow(e));\n }\n};\n/**\n * Converts a function that may throw to one returning a `Either`.\n *\n * @category interop\n * @since 2.10.0\n */\nexport var tryCatchK = function (f, onThrow) {\n return function () {\n var a = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n a[_i] = arguments[_i];\n }\n return tryCatch(function () { return f.apply(void 0, a); }, onThrow);\n };\n};\n/**\n * @category lifting\n * @since 2.9.0\n */\nexport var fromNullableK = function (e) {\n var from = fromNullable(e);\n return function (f) { return flow(f, from); };\n};\n/**\n * @category sequencing\n * @since 2.9.0\n */\nexport var chainNullableK = function (e) {\n var from = fromNullableK(e);\n return function (f) { return chain(from(f)); };\n};\n/**\n * @category conversions\n * @since 2.10.0\n */\nexport var toUnion = /*#__PURE__*/ foldW(identity, identity);\n// -------------------------------------------------------------------------------------\n// utils\n// -------------------------------------------------------------------------------------\n/**\n * Default value for the `onError` argument of `tryCatch`\n *\n * @since 2.0.0\n */\nexport function toError(e) {\n return e instanceof Error ? e : new Error(String(e));\n}\nexport function elem(E) {\n return function (a, ma) {\n if (ma === undefined) {\n var elemE_1 = elem(E);\n return function (ma) { return elemE_1(a, ma); };\n }\n return isLeft(ma) ? false : E.equals(a, ma.right);\n };\n}\n/**\n * Returns `false` if `Left` or returns the result of the application of the given predicate to the `Right` value.\n *\n * @example\n * import { exists, left, right } from 'fp-ts/Either'\n *\n * const gt2 = exists((n: number) => n > 2)\n *\n * assert.strictEqual(gt2(left('a')), false)\n * assert.strictEqual(gt2(right(1)), false)\n * assert.strictEqual(gt2(right(3)), true)\n *\n * @since 2.0.0\n */\nexport var exists = function (predicate) {\n return function (ma) {\n return isLeft(ma) ? false : predicate(ma.right);\n };\n};\n// -------------------------------------------------------------------------------------\n// do notation\n// -------------------------------------------------------------------------------------\n/**\n * @category do notation\n * @since 2.9.0\n */\nexport var Do = /*#__PURE__*/ of(_.emptyRecord);\n/**\n * @category do notation\n * @since 2.8.0\n */\nexport var bindTo = /*#__PURE__*/ bindTo_(Functor);\nvar let_ = /*#__PURE__*/ let__(Functor);\nexport { \n/**\n * @category do notation\n * @since 2.13.0\n */\nlet_ as let };\n/**\n * @category do notation\n * @since 2.8.0\n */\nexport var bind = /*#__PURE__*/ bind_(Chain);\n/**\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category do notation\n * @since 2.8.0\n */\nexport var bindW = bind;\n/**\n * @category do notation\n * @since 2.8.0\n */\nexport var apS = /*#__PURE__*/ apS_(Apply);\n/**\n * Less strict version of [`apS`](#aps).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category do notation\n * @since 2.8.0\n */\nexport var apSW = apS;\n/**\n * @since 2.11.0\n */\nexport var ApT = /*#__PURE__*/ of(_.emptyReadonlyArray);\n// -------------------------------------------------------------------------------------\n// array utils\n// -------------------------------------------------------------------------------------\n/**\n * Equivalent to `ReadonlyNonEmptyArray#traverseWithIndex(Applicative)`.\n *\n * @category traversing\n * @since 2.11.0\n */\nexport var traverseReadonlyNonEmptyArrayWithIndex = function (f) {\n return function (as) {\n var e = f(0, _.head(as));\n if (isLeft(e)) {\n return e;\n }\n var out = [e.right];\n for (var i = 1; i < as.length; i++) {\n var e_1 = f(i, as[i]);\n if (isLeft(e_1)) {\n return e_1;\n }\n out.push(e_1.right);\n }\n return right(out);\n };\n};\n/**\n * Equivalent to `ReadonlyArray#traverseWithIndex(Applicative)`.\n *\n * @category traversing\n * @since 2.11.0\n */\nexport var traverseReadonlyArrayWithIndex = function (f) {\n var g = traverseReadonlyNonEmptyArrayWithIndex(f);\n return function (as) { return (_.isNonEmpty(as) ? g(as) : ApT); };\n};\n/**\n * Equivalent to `ReadonlyArray#traverseWithIndex(Applicative)`.\n *\n * @category traversing\n * @since 2.9.0\n */\nexport var traverseArrayWithIndex = traverseReadonlyArrayWithIndex;\n/**\n * Equivalent to `ReadonlyArray#traverse(Applicative)`.\n *\n * @category traversing\n * @since 2.9.0\n */\nexport var traverseArray = function (f) { return traverseReadonlyArrayWithIndex(function (_, a) { return f(a); }); };\n/**\n * Equivalent to `ReadonlyArray#sequence(Applicative)`.\n *\n * @category traversing\n * @since 2.9.0\n */\nexport var sequenceArray = \n/*#__PURE__*/ traverseArray(identity);\n/**\n * Use [`parse`](./Json.ts.html#parse) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport function parseJSON(s, onError) {\n return tryCatch(function () { return JSON.parse(s); }, onError);\n}\n/**\n * Use [`stringify`](./Json.ts.html#stringify) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var stringifyJSON = function (u, onError) {\n return tryCatch(function () {\n var s = JSON.stringify(u);\n if (typeof s !== 'string') {\n throw new Error('Converting unsupported structure to JSON');\n }\n return s;\n }, onError);\n};\n/**\n * This instance is deprecated, use small, specific instances instead.\n * For example if a function needs a `Functor` instance, pass `E.Functor` instead of `E.either`\n * (where `E` is from `import E from 'fp-ts/Either'`)\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var either = {\n URI: URI,\n map: _map,\n of: of,\n ap: _ap,\n chain: _chain,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n traverse: _traverse,\n sequence: sequence,\n bimap: _bimap,\n mapLeft: _mapLeft,\n alt: _alt,\n extend: _extend,\n chainRec: _chainRec,\n throwError: throwError\n};\n/**\n * Use [`getApplySemigroup`](./Apply.ts.html#getapplysemigroup) instead.\n *\n * Semigroup returning the left-most `Left` value. If both operands are `Right`s then the inner values\n * are concatenated using the provided `Semigroup`\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getApplySemigroup = \n/*#__PURE__*/ getApplySemigroup_(Apply);\n/**\n * Use [`getApplicativeMonoid`](./Applicative.ts.html#getapplicativemonoid) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getApplyMonoid = \n/*#__PURE__*/ getApplicativeMonoid(Applicative);\n/**\n * Use [`getApplySemigroup`](./Apply.ts.html#getapplysemigroup) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getValidationSemigroup = function (SE, SA) {\n return getApplySemigroup_(getApplicativeValidation(SE))(SA);\n};\n/**\n * Use [`getApplicativeMonoid`](./Applicative.ts.html#getapplicativemonoid) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getValidationMonoid = function (SE, MA) {\n return getApplicativeMonoid(getApplicativeValidation(SE))(MA);\n};\n/**\n * Use [`getApplicativeValidation`](#getapplicativevalidation) and [`getAltValidation`](#getaltvalidation) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport function getValidation(SE) {\n var ap = getApplicativeValidation(SE).ap;\n var alt = getAltValidation(SE).alt;\n return {\n URI: URI,\n _E: undefined,\n map: _map,\n of: of,\n chain: _chain,\n bimap: _bimap,\n mapLeft: _mapLeft,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n extend: _extend,\n traverse: _traverse,\n sequence: sequence,\n chainRec: _chainRec,\n throwError: throwError,\n ap: ap,\n alt: alt\n };\n}\n"],"names":["_.isLeft"],"mappings":";;;AA6xBU,IAAC,SAASA,SAAS;AAgBnB,IAAC,SAAS,SAAU,QAAQ,SAAS;AAC3C,SAAO,SAAU,IAAI;AACjB,WAAO,OAAO,EAAE,IAAI,OAAO,GAAG,IAAI,IAAI,QAAQ,GAAG,KAAK;AAAA,EAC9D;AACA;AAOU,IAAC,QAAQ;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isLeft as isLeft$1 } from "./internal.js";
|
|
2
|
-
var isLeft = isLeft$1;
|
|
3
|
-
var matchW = function(onLeft, onRight) {
|
|
4
|
-
return function(ma) {
|
|
5
|
-
return isLeft(ma) ? onLeft(ma.left) : onRight(ma.right);
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
var foldW = matchW;
|
|
9
|
-
export {
|
|
10
|
-
foldW,
|
|
11
|
-
isLeft,
|
|
12
|
-
matchW
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=Either.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Either.js","sources":["../../../../../../node_modules/fp-ts/es6/Either.js"],"sourcesContent":["import { getApplicativeMonoid } from './Applicative';\nimport { apFirst as apFirst_, apS as apS_, apSecond as apSecond_, getApplySemigroup as getApplySemigroup_ } from './Apply';\nimport { bind as bind_, chainFirst as chainFirst_ } from './Chain';\nimport { tailRec } from './ChainRec';\nimport { chainOptionK as chainOptionK_, filterOrElse as filterOrElse_, fromOption as fromOption_, fromOptionK as fromOptionK_, fromPredicate as fromPredicate_ } from './FromEither';\nimport { flow, identity, pipe } from './function';\nimport { bindTo as bindTo_, flap as flap_, let as let__ } from './Functor';\nimport * as _ from './internal';\nimport { separated } from './Separated';\nimport { wiltDefault, witherDefault } from './Witherable';\n// -------------------------------------------------------------------------------------\n// constructors\n// -------------------------------------------------------------------------------------\n/**\n * Constructs a new `Either` holding a `Left` value. This usually represents a failure, due to the right-bias of this\n * structure.\n *\n * @category constructors\n * @since 2.0.0\n */\nexport var left = _.left;\n/**\n * Constructs a new `Either` holding a `Right` value. This usually represents a successful value due to the right bias\n * of this structure.\n *\n * @category constructors\n * @since 2.0.0\n */\nexport var right = _.right;\nvar _map = function (fa, f) { return pipe(fa, map(f)); };\nvar _ap = function (fab, fa) { return pipe(fab, ap(fa)); };\n/* istanbul ignore next */\nvar _chain = function (ma, f) { return pipe(ma, chain(f)); };\n/* istanbul ignore next */\nvar _reduce = function (fa, b, f) { return pipe(fa, reduce(b, f)); };\n/* istanbul ignore next */\nvar _foldMap = function (M) { return function (fa, f) {\n var foldMapM = foldMap(M);\n return pipe(fa, foldMapM(f));\n}; };\n/* istanbul ignore next */\nvar _reduceRight = function (fa, b, f) { return pipe(fa, reduceRight(b, f)); };\nvar _traverse = function (F) {\n var traverseF = traverse(F);\n return function (ta, f) { return pipe(ta, traverseF(f)); };\n};\nvar _bimap = function (fa, f, g) { return pipe(fa, bimap(f, g)); };\nvar _mapLeft = function (fa, f) { return pipe(fa, mapLeft(f)); };\n/* istanbul ignore next */\nvar _alt = function (fa, that) { return pipe(fa, alt(that)); };\n/* istanbul ignore next */\nvar _extend = function (wa, f) { return pipe(wa, extend(f)); };\nvar _chainRec = function (a, f) {\n return tailRec(f(a), function (e) {\n return isLeft(e) ? right(left(e.left)) : isLeft(e.right) ? left(f(e.right.left)) : right(right(e.right.right));\n });\n};\n/**\n * @category type lambdas\n * @since 2.0.0\n */\nexport var URI = 'Either';\n/**\n * @category instances\n * @since 2.0.0\n */\nexport var getShow = function (SE, SA) { return ({\n show: function (ma) { return (isLeft(ma) ? \"left(\".concat(SE.show(ma.left), \")\") : \"right(\".concat(SA.show(ma.right), \")\")); }\n}); };\n/**\n * @category instances\n * @since 2.0.0\n */\nexport var getEq = function (EL, EA) { return ({\n equals: function (x, y) {\n return x === y || (isLeft(x) ? isLeft(y) && EL.equals(x.left, y.left) : isRight(y) && EA.equals(x.right, y.right));\n }\n}); };\n/**\n * Semigroup returning the left-most non-`Left` value. If both operands are `Right`s then the inner values are\n * concatenated using the provided `Semigroup`\n *\n * @example\n * import { getSemigroup, left, right } from 'fp-ts/Either'\n * import { SemigroupSum } from 'fp-ts/number'\n *\n * const S = getSemigroup<string, number>(SemigroupSum)\n * assert.deepStrictEqual(S.concat(left('a'), left('b')), left('a'))\n * assert.deepStrictEqual(S.concat(left('a'), right(2)), right(2))\n * assert.deepStrictEqual(S.concat(right(1), left('b')), right(1))\n * assert.deepStrictEqual(S.concat(right(1), right(2)), right(3))\n *\n * @category instances\n * @since 2.0.0\n */\nexport var getSemigroup = function (S) { return ({\n concat: function (x, y) { return (isLeft(y) ? x : isLeft(x) ? y : right(S.concat(x.right, y.right))); }\n}); };\n/**\n * Builds a `Compactable` instance for `Either` given `Monoid` for the left side.\n *\n * @category filtering\n * @since 2.10.0\n */\nexport var getCompactable = function (M) {\n var empty = left(M.empty);\n return {\n URI: URI,\n _E: undefined,\n compact: function (ma) { return (isLeft(ma) ? ma : ma.right._tag === 'None' ? empty : right(ma.right.value)); },\n separate: function (ma) {\n return isLeft(ma)\n ? separated(ma, ma)\n : isLeft(ma.right)\n ? separated(right(ma.right.left), empty)\n : separated(empty, right(ma.right.right));\n }\n };\n};\n/**\n * Builds a `Filterable` instance for `Either` given `Monoid` for the left side\n *\n * @category filtering\n * @since 2.10.0\n */\nexport var getFilterable = function (M) {\n var empty = left(M.empty);\n var _a = getCompactable(M), compact = _a.compact, separate = _a.separate;\n var filter = function (ma, predicate) {\n return isLeft(ma) ? ma : predicate(ma.right) ? ma : empty;\n };\n var partition = function (ma, p) {\n return isLeft(ma)\n ? separated(ma, ma)\n : p(ma.right)\n ? separated(empty, right(ma.right))\n : separated(right(ma.right), empty);\n };\n return {\n URI: URI,\n _E: undefined,\n map: _map,\n compact: compact,\n separate: separate,\n filter: filter,\n filterMap: function (ma, f) {\n if (isLeft(ma)) {\n return ma;\n }\n var ob = f(ma.right);\n return ob._tag === 'None' ? empty : right(ob.value);\n },\n partition: partition,\n partitionMap: function (ma, f) {\n if (isLeft(ma)) {\n return separated(ma, ma);\n }\n var e = f(ma.right);\n return isLeft(e) ? separated(right(e.left), empty) : separated(empty, right(e.right));\n }\n };\n};\n/**\n * Builds `Witherable` instance for `Either` given `Monoid` for the left side\n *\n * @category filtering\n * @since 2.0.0\n */\nexport var getWitherable = function (M) {\n var F_ = getFilterable(M);\n var C = getCompactable(M);\n return {\n URI: URI,\n _E: undefined,\n map: _map,\n compact: F_.compact,\n separate: F_.separate,\n filter: F_.filter,\n filterMap: F_.filterMap,\n partition: F_.partition,\n partitionMap: F_.partitionMap,\n traverse: _traverse,\n sequence: sequence,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n wither: witherDefault(Traversable, C),\n wilt: wiltDefault(Traversable, C)\n };\n};\n/**\n * The default [`Applicative`](#applicative) instance returns the first error, if you want to\n * get all errors you need to provide a way to concatenate them via a `Semigroup`.\n *\n * @example\n * import * as A from 'fp-ts/Apply'\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n * import * as S from 'fp-ts/Semigroup'\n * import * as string from 'fp-ts/string'\n *\n * const parseString = (u: unknown): E.Either<string, string> =>\n * typeof u === 'string' ? E.right(u) : E.left('not a string')\n *\n * const parseNumber = (u: unknown): E.Either<string, number> =>\n * typeof u === 'number' ? E.right(u) : E.left('not a number')\n *\n * interface Person {\n * readonly name: string\n * readonly age: number\n * }\n *\n * const parsePerson = (\n * input: Record<string, unknown>\n * ): E.Either<string, Person> =>\n * pipe(\n * E.Do,\n * E.apS('name', parseString(input.name)),\n * E.apS('age', parseNumber(input.age))\n * )\n *\n * assert.deepStrictEqual(parsePerson({}), E.left('not a string')) // <= first error\n *\n * const Applicative = E.getApplicativeValidation(\n * pipe(string.Semigroup, S.intercalate(', '))\n * )\n *\n * const apS = A.apS(Applicative)\n *\n * const parsePersonAll = (\n * input: Record<string, unknown>\n * ): E.Either<string, Person> =>\n * pipe(\n * E.Do,\n * apS('name', parseString(input.name)),\n * apS('age', parseNumber(input.age))\n * )\n *\n * assert.deepStrictEqual(parsePersonAll({}), E.left('not a string, not a number')) // <= all errors\n *\n * @category error handling\n * @since 2.7.0\n */\nexport var getApplicativeValidation = function (SE) { return ({\n URI: URI,\n _E: undefined,\n map: _map,\n ap: function (fab, fa) {\n return isLeft(fab)\n ? isLeft(fa)\n ? left(SE.concat(fab.left, fa.left))\n : fab\n : isLeft(fa)\n ? fa\n : right(fab.right(fa.right));\n },\n of: of\n}); };\n/**\n * The default [`Alt`](#alt) instance returns the last error, if you want to\n * get all errors you need to provide a way to concatenate them via a `Semigroup`.\n *\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n * import * as S from 'fp-ts/Semigroup'\n * import * as string from 'fp-ts/string'\n *\n * const parseString = (u: unknown): E.Either<string, string> =>\n * typeof u === 'string' ? E.right(u) : E.left('not a string')\n *\n * const parseNumber = (u: unknown): E.Either<string, number> =>\n * typeof u === 'number' ? E.right(u) : E.left('not a number')\n *\n * const parse = (u: unknown): E.Either<string, string | number> =>\n * pipe(\n * parseString(u),\n * E.alt<string, string | number>(() => parseNumber(u))\n * )\n *\n * assert.deepStrictEqual(parse(true), E.left('not a number')) // <= last error\n *\n * const Alt = E.getAltValidation(pipe(string.Semigroup, S.intercalate(', ')))\n *\n * const parseAll = (u: unknown): E.Either<string, string | number> =>\n * Alt.alt<string | number>(parseString(u), () => parseNumber(u))\n *\n * assert.deepStrictEqual(parseAll(true), E.left('not a string, not a number')) // <= all errors\n *\n * @category error handling\n * @since 2.7.0\n */\nexport var getAltValidation = function (SE) { return ({\n URI: URI,\n _E: undefined,\n map: _map,\n alt: function (me, that) {\n if (isRight(me)) {\n return me;\n }\n var ea = that();\n return isLeft(ea) ? left(SE.concat(me.left, ea.left)) : ea;\n }\n}); };\n/**\n * @category mapping\n * @since 2.0.0\n */\nexport var map = function (f) { return function (fa) {\n return isLeft(fa) ? fa : right(f(fa.right));\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Functor = {\n URI: URI,\n map: _map\n};\n/**\n * @category constructors\n * @since 2.7.0\n */\nexport var of = right;\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var Pointed = {\n URI: URI,\n of: of\n};\n/**\n * Less strict version of [`ap`](#ap).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @since 2.8.0\n */\nexport var apW = function (fa) { return function (fab) {\n return isLeft(fab) ? fab : isLeft(fa) ? fa : right(fab.right(fa.right));\n}; };\n/**\n * @since 2.0.0\n */\nexport var ap = apW;\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var Apply = {\n URI: URI,\n map: _map,\n ap: _ap\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Applicative = {\n URI: URI,\n map: _map,\n ap: _ap,\n of: of\n};\n/**\n * Less strict version of [`chain`](#chain).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * const e1: E.Either<string, number> = E.right(1)\n * const e2: E.Either<number, number> = E.right(2)\n *\n * export const result1 = pipe(\n * // @ts-expect-error\n * e1,\n * E.chain(() => e2)\n * )\n *\n * // merged error types -----v-------------v\n * // const result2: E.Either<string | number, number>\n * export const result2 = pipe(\n * e1, // no error\n * E.chainW(() => e2)\n * )\n *\n * @category sequencing\n * @since 2.6.0\n */\nexport var chainW = function (f) {\n return function (ma) {\n return isLeft(ma) ? ma : f(ma.right);\n };\n};\n/**\n * Composes computations in sequence, using the return value of one computation to determine the next computation.\n *\n * @category sequencing\n * @since 2.0.0\n */\nexport var chain = chainW;\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var Chain = {\n URI: URI,\n map: _map,\n ap: _ap,\n chain: _chain\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Monad = {\n URI: URI,\n map: _map,\n ap: _ap,\n of: of,\n chain: _chain\n};\n/**\n * Left-associative fold of a structure.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n *\n * const startWith = 'prefix'\n * const concat = (a: string, b: string) => `${a}:${b}`\n *\n * assert.deepStrictEqual(\n * pipe(E.right('a'), E.reduce(startWith, concat)),\n * 'prefix:a'\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.left('e'), E.reduce(startWith, concat)),\n * 'prefix'\n * )\n *\n * @category folding\n * @since 2.0.0\n */\nexport var reduce = function (b, f) { return function (fa) {\n return isLeft(fa) ? b : f(b, fa.right);\n}; };\n/**\n * Map each element of the structure to a monoid, and combine the results.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n * import * as S from 'fp-ts/string'\n *\n * const yell = (a: string) => `${a}!`\n *\n * assert.deepStrictEqual(\n * pipe(E.right('a'), E.foldMap(S.Monoid)(yell)),\n * 'a!'\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.left('e'), E.foldMap(S.Monoid)(yell)),\n * S.Monoid.empty\n * )\n *\n * @category folding\n * @since 2.0.0\n */\nexport var foldMap = function (M) { return function (f) { return function (fa) {\n return isLeft(fa) ? M.empty : f(fa.right);\n}; }; };\n/**\n * Right-associative fold of a structure.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n *\n * const startWith = 'postfix'\n * const concat = (a: string, b: string) => `${a}:${b}`\n *\n * assert.deepStrictEqual(\n * pipe(E.right('a'), E.reduceRight(startWith, concat)),\n * 'a:postfix'\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.left('e'), E.reduceRight(startWith, concat)),\n * 'postfix'\n * )\n *\n * @category folding\n * @since 2.0.0\n */\nexport var reduceRight = function (b, f) { return function (fa) {\n return isLeft(fa) ? b : f(fa.right, b);\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Foldable = {\n URI: URI,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight\n};\n/**\n * Map each element of a structure to an action, evaluate these actions from left to right, and collect the results.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as RA from 'fp-ts/ReadonlyArray'\n * import * as E from 'fp-ts/Either'\n * import * as O from 'fp-ts/Option'\n *\n * assert.deepStrictEqual(\n * pipe(E.right(['a']), E.traverse(O.Applicative)(RA.head)),\n * O.some(E.right('a'))\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.right([]), E.traverse(O.Applicative)(RA.head)),\n * O.none\n * )\n *\n * @category traversing\n * @since 2.6.3\n */\nexport var traverse = function (F) {\n return function (f) {\n return function (ta) {\n return isLeft(ta) ? F.of(left(ta.left)) : F.map(f(ta.right), right);\n };\n };\n};\n/**\n * Evaluate each monadic action in the structure from left to right, and collect the results.\n *\n * @example\n * import { pipe } from 'fp-ts/function'\n * import * as E from 'fp-ts/Either'\n * import * as O from 'fp-ts/Option'\n *\n * assert.deepStrictEqual(\n * pipe(E.right(O.some('a')), E.sequence(O.Applicative)),\n * O.some(E.right('a'))\n * )\n *\n * assert.deepStrictEqual(\n * pipe(E.right(O.none), E.sequence(O.Applicative)),\n * O.none\n * )\n *\n * @category traversing\n * @since 2.6.3\n */\nexport var sequence = function (F) {\n return function (ma) {\n return isLeft(ma) ? F.of(left(ma.left)) : F.map(ma.right, right);\n };\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Traversable = {\n URI: URI,\n map: _map,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n traverse: _traverse,\n sequence: sequence\n};\n/**\n * Map a pair of functions over the two type arguments of the bifunctor.\n *\n * @category mapping\n * @since 2.0.0\n */\nexport var bimap = function (f, g) { return function (fa) {\n return isLeft(fa) ? left(f(fa.left)) : right(g(fa.right));\n}; };\n/**\n * Map a function over the first type argument of a bifunctor.\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var mapLeft = function (f) { return function (fa) {\n return isLeft(fa) ? left(f(fa.left)) : fa;\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Bifunctor = {\n URI: URI,\n bimap: _bimap,\n mapLeft: _mapLeft\n};\n/**\n * Less strict version of [`alt`](#alt).\n *\n * The `W` suffix (short for **W**idening) means that the error and the return types will be merged.\n *\n * @category error handling\n * @since 2.9.0\n */\nexport var altW = function (that) { return function (fa) {\n return isLeft(fa) ? that() : fa;\n}; };\n/**\n * Identifies an associative operation on a type constructor. It is similar to `Semigroup`, except that it applies to\n * types of kind `* -> *`.\n *\n * In case of `Either` returns the left-most non-`Left` value (or the right-most `Left` value if both values are `Left`).\n *\n * | x | y | pipe(x, alt(() => y) |\n * | -------- | -------- | -------------------- |\n * | left(a) | left(b) | left(b) |\n * | left(a) | right(2) | right(2) |\n * | right(1) | left(b) | right(1) |\n * | right(1) | right(2) | right(1) |\n *\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * E.left('a'),\n * E.alt(() => E.left('b'))\n * ),\n * E.left('b')\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.left('a'),\n * E.alt(() => E.right(2))\n * ),\n * E.right(2)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.right(1),\n * E.alt(() => E.left('b'))\n * ),\n * E.right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.right(1),\n * E.alt(() => E.right(2))\n * ),\n * E.right(1)\n * )\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var alt = altW;\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Alt = {\n URI: URI,\n map: _map,\n alt: _alt\n};\n/**\n * @since 2.0.0\n */\nexport var extend = function (f) { return function (wa) {\n return isLeft(wa) ? wa : right(f(wa));\n}; };\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var Extend = {\n URI: URI,\n map: _map,\n extend: _extend\n};\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var ChainRec = {\n URI: URI,\n map: _map,\n ap: _ap,\n chain: _chain,\n chainRec: _chainRec\n};\n/**\n * @since 2.6.3\n */\nexport var throwError = left;\n/**\n * @category instances\n * @since 2.7.0\n */\nexport var MonadThrow = {\n URI: URI,\n map: _map,\n ap: _ap,\n of: of,\n chain: _chain,\n throwError: throwError\n};\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var FromEither = {\n URI: URI,\n fromEither: identity\n};\n/**\n * @example\n * import { fromPredicate, left, right } from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * 1,\n * fromPredicate(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * -1,\n * fromPredicate(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * left('error')\n * )\n *\n * @category lifting\n * @since 2.0.0\n */\nexport var fromPredicate = /*#__PURE__*/ fromPredicate_(FromEither);\n// -------------------------------------------------------------------------------------\n// conversions\n// -------------------------------------------------------------------------------------\n/**\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n * import * as O from 'fp-ts/Option'\n *\n * assert.deepStrictEqual(\n * pipe(\n * O.some(1),\n * E.fromOption(() => 'error')\n * ),\n * E.right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * O.none,\n * E.fromOption(() => 'error')\n * ),\n * E.left('error')\n * )\n *\n * @category conversions\n * @since 2.0.0\n */\nexport var fromOption = \n/*#__PURE__*/ fromOption_(FromEither);\n// -------------------------------------------------------------------------------------\n// refinements\n// -------------------------------------------------------------------------------------\n/**\n * Returns `true` if the either is an instance of `Left`, `false` otherwise.\n *\n * @category refinements\n * @since 2.0.0\n */\nexport var isLeft = _.isLeft;\n/**\n * Returns `true` if the either is an instance of `Right`, `false` otherwise.\n *\n * @category refinements\n * @since 2.0.0\n */\nexport var isRight = _.isRight;\n/**\n * Less strict version of [`match`](#match).\n *\n * The `W` suffix (short for **W**idening) means that the handler return types will be merged.\n *\n * @category pattern matching\n * @since 2.10.0\n */\nexport var matchW = function (onLeft, onRight) {\n return function (ma) {\n return isLeft(ma) ? onLeft(ma.left) : onRight(ma.right);\n };\n};\n/**\n * Alias of [`matchW`](#matchw).\n *\n * @category pattern matching\n * @since 2.10.0\n */\nexport var foldW = matchW;\n/**\n * Takes two functions and an `Either` value, if the value is a `Left` the inner value is applied to the first function,\n * if the value is a `Right` the inner value is applied to the second function.\n *\n * @example\n * import { match, left, right } from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * function onLeft(errors: Array<string>): string {\n * return `Errors: ${errors.join(', ')}`\n * }\n *\n * function onRight(value: number): string {\n * return `Ok: ${value}`\n * }\n *\n * assert.strictEqual(\n * pipe(\n * right(1),\n * match(onLeft, onRight)\n * ),\n * 'Ok: 1'\n * )\n * assert.strictEqual(\n * pipe(\n * left(['error 1', 'error 2']),\n * match(onLeft, onRight)\n * ),\n * 'Errors: error 1, error 2'\n * )\n *\n * @category pattern matching\n * @since 2.10.0\n */\nexport var match = matchW;\n/**\n * Alias of [`match`](#match).\n *\n * @category pattern matching\n * @since 2.0.0\n */\nexport var fold = match;\n/**\n * Less strict version of [`getOrElse`](#getorelse).\n *\n * The `W` suffix (short for **W**idening) means that the handler return type will be merged.\n *\n * @category error handling\n * @since 2.6.0\n */\nexport var getOrElseW = function (onLeft) {\n return function (ma) {\n return isLeft(ma) ? onLeft(ma.left) : ma.right;\n };\n};\n/**\n * Returns the wrapped value if it's a `Right` or a default value if is a `Left`.\n *\n * @example\n * import { getOrElse, left, right } from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * right(1),\n * getOrElse(() => 0)\n * ),\n * 1\n * )\n * assert.deepStrictEqual(\n * pipe(\n * left('error'),\n * getOrElse(() => 0)\n * ),\n * 0\n * )\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var getOrElse = getOrElseW;\n// -------------------------------------------------------------------------------------\n// combinators\n// -------------------------------------------------------------------------------------\n/**\n * @category mapping\n * @since 2.10.0\n */\nexport var flap = /*#__PURE__*/ flap_(Functor);\n/**\n * Combine two effectful actions, keeping only the result of the first.\n *\n * @since 2.0.0\n */\nexport var apFirst = /*#__PURE__*/ apFirst_(Apply);\n/**\n * Less strict version of [`apFirst`](#apfirst)\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @since 2.12.0\n */\nexport var apFirstW = apFirst;\n/**\n * Combine two effectful actions, keeping only the result of the second.\n *\n * @since 2.0.0\n */\nexport var apSecond = /*#__PURE__*/ apSecond_(Apply);\n/**\n * Less strict version of [`apSecond`](#apsecond)\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @since 2.12.0\n */\nexport var apSecondW = apSecond;\n/**\n * Composes computations in sequence, using the return value of one computation to determine the next computation and\n * keeping only the result of the first.\n *\n * @category sequencing\n * @since 2.0.0\n */\nexport var chainFirst = \n/*#__PURE__*/ chainFirst_(Chain);\n/**\n * Less strict version of [`chainFirst`](#chainfirst)\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category sequencing\n * @since 2.8.0\n */\nexport var chainFirstW = chainFirst;\n/**\n * Less strict version of [`flatten`](#flatten).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category sequencing\n * @since 2.11.0\n */\nexport var flattenW = \n/*#__PURE__*/ chainW(identity);\n/**\n * The `flatten` function is the conventional monad join operator. It is used to remove one level of monadic structure, projecting its bound argument into the outer level.\n *\n * @example\n * import * as E from 'fp-ts/Either'\n *\n * assert.deepStrictEqual(E.flatten(E.right(E.right('a'))), E.right('a'))\n * assert.deepStrictEqual(E.flatten(E.right(E.left('e'))), E.left('e'))\n * assert.deepStrictEqual(E.flatten(E.left('e')), E.left('e'))\n *\n * @category sequencing\n * @since 2.0.0\n */\nexport var flatten = flattenW;\n/**\n * @since 2.0.0\n */\nexport var duplicate = /*#__PURE__*/ extend(identity);\n/**\n * @category lifting\n * @since 2.10.0\n */\nexport var fromOptionK = \n/*#__PURE__*/ fromOptionK_(FromEither);\n/**\n * @category sequencing\n * @since 2.11.0\n */\nexport var chainOptionK = /*#__PURE__*/ chainOptionK_(FromEither, Chain);\n/**\n * @example\n * import * as E from 'fp-ts/Either'\n * import { pipe } from 'fp-ts/function'\n *\n * assert.deepStrictEqual(\n * pipe(\n * E.right(1),\n * E.filterOrElse(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * E.right(1)\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.right(-1),\n * E.filterOrElse(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * E.left('error')\n * )\n * assert.deepStrictEqual(\n * pipe(\n * E.left('a'),\n * E.filterOrElse(\n * (n) => n > 0,\n * () => 'error'\n * )\n * ),\n * E.left('a')\n * )\n *\n * @category filtering\n * @since 2.0.0\n */\nexport var filterOrElse = /*#__PURE__*/ filterOrElse_(FromEither, Chain);\n/**\n * Less strict version of [`filterOrElse`](#filterorelse).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category filtering\n * @since 2.9.0\n */\nexport var filterOrElseW = filterOrElse;\n/**\n * Returns a `Right` if is a `Left` (and vice versa).\n *\n * @since 2.0.0\n */\nexport var swap = function (ma) { return (isLeft(ma) ? right(ma.left) : left(ma.right)); };\n/**\n * Less strict version of [`orElse`](#orelse).\n *\n * The `W` suffix (short for **W**idening) means that the return types will be merged.\n *\n * @category error handling\n * @since 2.10.0\n */\nexport var orElseW = function (onLeft) {\n return function (ma) {\n return isLeft(ma) ? onLeft(ma.left) : ma;\n };\n};\n/**\n * Useful for recovering from errors.\n *\n * @category error handling\n * @since 2.0.0\n */\nexport var orElse = orElseW;\n/**\n * Takes a default and a nullable value, if the value is not nully, turn it into a `Right`, if the value is nully use\n * the provided default as a `Left`.\n *\n * @example\n * import { fromNullable, left, right } from 'fp-ts/Either'\n *\n * const parse = fromNullable('nully')\n *\n * assert.deepStrictEqual(parse(1), right(1))\n * assert.deepStrictEqual(parse(null), left('nully'))\n *\n * @category conversions\n * @since 2.0.0\n */\nexport var fromNullable = function (e) {\n return function (a) {\n return a == null ? left(e) : right(a);\n };\n};\n/**\n * Constructs a new `Either` from a function that might throw.\n *\n * See also [`tryCatchK`](#trycatchk).\n *\n * @example\n * import * as E from 'fp-ts/Either'\n *\n * const unsafeHead = <A>(as: ReadonlyArray<A>): A => {\n * if (as.length > 0) {\n * return as[0]\n * } else {\n * throw new Error('empty array')\n * }\n * }\n *\n * const head = <A>(as: ReadonlyArray<A>): E.Either<Error, A> =>\n * E.tryCatch(() => unsafeHead(as), e => (e instanceof Error ? e : new Error('unknown error')))\n *\n * assert.deepStrictEqual(head([]), E.left(new Error('empty array')))\n * assert.deepStrictEqual(head([1, 2, 3]), E.right(1))\n *\n * @category interop\n * @since 2.0.0\n */\nexport var tryCatch = function (f, onThrow) {\n try {\n return right(f());\n }\n catch (e) {\n return left(onThrow(e));\n }\n};\n/**\n * Converts a function that may throw to one returning a `Either`.\n *\n * @category interop\n * @since 2.10.0\n */\nexport var tryCatchK = function (f, onThrow) {\n return function () {\n var a = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n a[_i] = arguments[_i];\n }\n return tryCatch(function () { return f.apply(void 0, a); }, onThrow);\n };\n};\n/**\n * @category lifting\n * @since 2.9.0\n */\nexport var fromNullableK = function (e) {\n var from = fromNullable(e);\n return function (f) { return flow(f, from); };\n};\n/**\n * @category sequencing\n * @since 2.9.0\n */\nexport var chainNullableK = function (e) {\n var from = fromNullableK(e);\n return function (f) { return chain(from(f)); };\n};\n/**\n * @category conversions\n * @since 2.10.0\n */\nexport var toUnion = /*#__PURE__*/ foldW(identity, identity);\n// -------------------------------------------------------------------------------------\n// utils\n// -------------------------------------------------------------------------------------\n/**\n * Default value for the `onError` argument of `tryCatch`\n *\n * @since 2.0.0\n */\nexport function toError(e) {\n return e instanceof Error ? e : new Error(String(e));\n}\nexport function elem(E) {\n return function (a, ma) {\n if (ma === undefined) {\n var elemE_1 = elem(E);\n return function (ma) { return elemE_1(a, ma); };\n }\n return isLeft(ma) ? false : E.equals(a, ma.right);\n };\n}\n/**\n * Returns `false` if `Left` or returns the result of the application of the given predicate to the `Right` value.\n *\n * @example\n * import { exists, left, right } from 'fp-ts/Either'\n *\n * const gt2 = exists((n: number) => n > 2)\n *\n * assert.strictEqual(gt2(left('a')), false)\n * assert.strictEqual(gt2(right(1)), false)\n * assert.strictEqual(gt2(right(3)), true)\n *\n * @since 2.0.0\n */\nexport var exists = function (predicate) {\n return function (ma) {\n return isLeft(ma) ? false : predicate(ma.right);\n };\n};\n// -------------------------------------------------------------------------------------\n// do notation\n// -------------------------------------------------------------------------------------\n/**\n * @category do notation\n * @since 2.9.0\n */\nexport var Do = /*#__PURE__*/ of(_.emptyRecord);\n/**\n * @category do notation\n * @since 2.8.0\n */\nexport var bindTo = /*#__PURE__*/ bindTo_(Functor);\nvar let_ = /*#__PURE__*/ let__(Functor);\nexport { \n/**\n * @category do notation\n * @since 2.13.0\n */\nlet_ as let };\n/**\n * @category do notation\n * @since 2.8.0\n */\nexport var bind = /*#__PURE__*/ bind_(Chain);\n/**\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category do notation\n * @since 2.8.0\n */\nexport var bindW = bind;\n/**\n * @category do notation\n * @since 2.8.0\n */\nexport var apS = /*#__PURE__*/ apS_(Apply);\n/**\n * Less strict version of [`apS`](#aps).\n *\n * The `W` suffix (short for **W**idening) means that the error types will be merged.\n *\n * @category do notation\n * @since 2.8.0\n */\nexport var apSW = apS;\n/**\n * @since 2.11.0\n */\nexport var ApT = /*#__PURE__*/ of(_.emptyReadonlyArray);\n// -------------------------------------------------------------------------------------\n// array utils\n// -------------------------------------------------------------------------------------\n/**\n * Equivalent to `ReadonlyNonEmptyArray#traverseWithIndex(Applicative)`.\n *\n * @category traversing\n * @since 2.11.0\n */\nexport var traverseReadonlyNonEmptyArrayWithIndex = function (f) {\n return function (as) {\n var e = f(0, _.head(as));\n if (isLeft(e)) {\n return e;\n }\n var out = [e.right];\n for (var i = 1; i < as.length; i++) {\n var e_1 = f(i, as[i]);\n if (isLeft(e_1)) {\n return e_1;\n }\n out.push(e_1.right);\n }\n return right(out);\n };\n};\n/**\n * Equivalent to `ReadonlyArray#traverseWithIndex(Applicative)`.\n *\n * @category traversing\n * @since 2.11.0\n */\nexport var traverseReadonlyArrayWithIndex = function (f) {\n var g = traverseReadonlyNonEmptyArrayWithIndex(f);\n return function (as) { return (_.isNonEmpty(as) ? g(as) : ApT); };\n};\n/**\n * Equivalent to `ReadonlyArray#traverseWithIndex(Applicative)`.\n *\n * @category traversing\n * @since 2.9.0\n */\nexport var traverseArrayWithIndex = traverseReadonlyArrayWithIndex;\n/**\n * Equivalent to `ReadonlyArray#traverse(Applicative)`.\n *\n * @category traversing\n * @since 2.9.0\n */\nexport var traverseArray = function (f) { return traverseReadonlyArrayWithIndex(function (_, a) { return f(a); }); };\n/**\n * Equivalent to `ReadonlyArray#sequence(Applicative)`.\n *\n * @category traversing\n * @since 2.9.0\n */\nexport var sequenceArray = \n/*#__PURE__*/ traverseArray(identity);\n/**\n * Use [`parse`](./Json.ts.html#parse) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport function parseJSON(s, onError) {\n return tryCatch(function () { return JSON.parse(s); }, onError);\n}\n/**\n * Use [`stringify`](./Json.ts.html#stringify) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var stringifyJSON = function (u, onError) {\n return tryCatch(function () {\n var s = JSON.stringify(u);\n if (typeof s !== 'string') {\n throw new Error('Converting unsupported structure to JSON');\n }\n return s;\n }, onError);\n};\n/**\n * This instance is deprecated, use small, specific instances instead.\n * For example if a function needs a `Functor` instance, pass `E.Functor` instead of `E.either`\n * (where `E` is from `import E from 'fp-ts/Either'`)\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var either = {\n URI: URI,\n map: _map,\n of: of,\n ap: _ap,\n chain: _chain,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n traverse: _traverse,\n sequence: sequence,\n bimap: _bimap,\n mapLeft: _mapLeft,\n alt: _alt,\n extend: _extend,\n chainRec: _chainRec,\n throwError: throwError\n};\n/**\n * Use [`getApplySemigroup`](./Apply.ts.html#getapplysemigroup) instead.\n *\n * Semigroup returning the left-most `Left` value. If both operands are `Right`s then the inner values\n * are concatenated using the provided `Semigroup`\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getApplySemigroup = \n/*#__PURE__*/ getApplySemigroup_(Apply);\n/**\n * Use [`getApplicativeMonoid`](./Applicative.ts.html#getapplicativemonoid) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getApplyMonoid = \n/*#__PURE__*/ getApplicativeMonoid(Applicative);\n/**\n * Use [`getApplySemigroup`](./Apply.ts.html#getapplysemigroup) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getValidationSemigroup = function (SE, SA) {\n return getApplySemigroup_(getApplicativeValidation(SE))(SA);\n};\n/**\n * Use [`getApplicativeMonoid`](./Applicative.ts.html#getapplicativemonoid) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport var getValidationMonoid = function (SE, MA) {\n return getApplicativeMonoid(getApplicativeValidation(SE))(MA);\n};\n/**\n * Use [`getApplicativeValidation`](#getapplicativevalidation) and [`getAltValidation`](#getaltvalidation) instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport function getValidation(SE) {\n var ap = getApplicativeValidation(SE).ap;\n var alt = getAltValidation(SE).alt;\n return {\n URI: URI,\n _E: undefined,\n map: _map,\n of: of,\n chain: _chain,\n bimap: _bimap,\n mapLeft: _mapLeft,\n reduce: _reduce,\n foldMap: _foldMap,\n reduceRight: _reduceRight,\n extend: _extend,\n traverse: _traverse,\n sequence: sequence,\n chainRec: _chainRec,\n throwError: throwError,\n ap: ap,\n alt: alt\n };\n}\n"],"names":["_.isLeft"],"mappings":";AA6xBU,IAAC,SAASA;AAgBV,IAAC,SAAS,SAAU,QAAQ,SAAS;AAC3C,SAAO,SAAU,IAAI;AACjB,WAAO,OAAO,EAAE,IAAI,OAAO,GAAG,IAAI,IAAI,QAAQ,GAAG,KAAK;AAAA,EAC9D;AACA;AAOU,IAAC,QAAQ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.cjs","sources":["../../../../../../node_modules/fp-ts/es6/function.js"],"sourcesContent":["// -------------------------------------------------------------------------------------\n// instances\n// -------------------------------------------------------------------------------------\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var getBooleanAlgebra = function (B) {\n return function () { return ({\n meet: function (x, y) { return function (a) { return B.meet(x(a), y(a)); }; },\n join: function (x, y) { return function (a) { return B.join(x(a), y(a)); }; },\n zero: function () { return B.zero; },\n one: function () { return B.one; },\n implies: function (x, y) { return function (a) { return B.implies(x(a), y(a)); }; },\n not: function (x) { return function (a) { return B.not(x(a)); }; }\n }); };\n};\n/**\n * Unary functions form a semigroup as long as you can provide a semigroup for the codomain.\n *\n * @example\n * import { Predicate, getSemigroup } from 'fp-ts/function'\n * import * as B from 'fp-ts/boolean'\n *\n * const f: Predicate<number> = (n) => n <= 2\n * const g: Predicate<number> = (n) => n >= 0\n *\n * const S1 = getSemigroup(B.SemigroupAll)<number>()\n *\n * assert.deepStrictEqual(S1.concat(f, g)(1), true)\n * assert.deepStrictEqual(S1.concat(f, g)(3), false)\n *\n * const S2 = getSemigroup(B.SemigroupAny)<number>()\n *\n * assert.deepStrictEqual(S2.concat(f, g)(1), true)\n * assert.deepStrictEqual(S2.concat(f, g)(3), true)\n *\n * @category instances\n * @since 2.10.0\n */\nexport var getSemigroup = function (S) {\n return function () { return ({\n concat: function (f, g) { return function (a) { return S.concat(f(a), g(a)); }; }\n }); };\n};\n/**\n * Unary functions form a monoid as long as you can provide a monoid for the codomain.\n *\n * @example\n * import { Predicate } from 'fp-ts/Predicate'\n * import { getMonoid } from 'fp-ts/function'\n * import * as B from 'fp-ts/boolean'\n *\n * const f: Predicate<number> = (n) => n <= 2\n * const g: Predicate<number> = (n) => n >= 0\n *\n * const M1 = getMonoid(B.MonoidAll)<number>()\n *\n * assert.deepStrictEqual(M1.concat(f, g)(1), true)\n * assert.deepStrictEqual(M1.concat(f, g)(3), false)\n *\n * const M2 = getMonoid(B.MonoidAny)<number>()\n *\n * assert.deepStrictEqual(M2.concat(f, g)(1), true)\n * assert.deepStrictEqual(M2.concat(f, g)(3), true)\n *\n * @category instances\n * @since 2.10.0\n */\nexport var getMonoid = function (M) {\n var getSemigroupM = getSemigroup(M);\n return function () { return ({\n concat: getSemigroupM().concat,\n empty: function () { return M.empty; }\n }); };\n};\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var getSemiring = function (S) { return ({\n add: function (f, g) { return function (x) { return S.add(f(x), g(x)); }; },\n zero: function () { return S.zero; },\n mul: function (f, g) { return function (x) { return S.mul(f(x), g(x)); }; },\n one: function () { return S.one; }\n}); };\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var getRing = function (R) {\n var S = getSemiring(R);\n return {\n add: S.add,\n mul: S.mul,\n one: S.one,\n zero: S.zero,\n sub: function (f, g) { return function (x) { return R.sub(f(x), g(x)); }; }\n };\n};\n// -------------------------------------------------------------------------------------\n// utils\n// -------------------------------------------------------------------------------------\n/**\n * @since 2.11.0\n */\nexport var apply = function (a) {\n return function (f) {\n return f(a);\n };\n};\n/**\n * @since 2.0.0\n */\nexport function identity(a) {\n return a;\n}\n/**\n * @since 2.0.0\n */\nexport var unsafeCoerce = identity;\n/**\n * @since 2.0.0\n */\nexport function constant(a) {\n return function () { return a; };\n}\n/**\n * A thunk that returns always `true`.\n *\n * @since 2.0.0\n */\nexport var constTrue = /*#__PURE__*/ constant(true);\n/**\n * A thunk that returns always `false`.\n *\n * @since 2.0.0\n */\nexport var constFalse = /*#__PURE__*/ constant(false);\n/**\n * A thunk that returns always `null`.\n *\n * @since 2.0.0\n */\nexport var constNull = /*#__PURE__*/ constant(null);\n/**\n * A thunk that returns always `undefined`.\n *\n * @since 2.0.0\n */\nexport var constUndefined = /*#__PURE__*/ constant(undefined);\n/**\n * A thunk that returns always `void`.\n *\n * @since 2.0.0\n */\nexport var constVoid = constUndefined;\nexport function flip(f) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (args.length > 1) {\n return f(args[1], args[0]);\n }\n return function (a) { return f(a)(args[0]); };\n };\n}\nexport function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {\n switch (arguments.length) {\n case 1:\n return ab;\n case 2:\n return function () {\n return bc(ab.apply(this, arguments));\n };\n case 3:\n return function () {\n return cd(bc(ab.apply(this, arguments)));\n };\n case 4:\n return function () {\n return de(cd(bc(ab.apply(this, arguments))));\n };\n case 5:\n return function () {\n return ef(de(cd(bc(ab.apply(this, arguments)))));\n };\n case 6:\n return function () {\n return fg(ef(de(cd(bc(ab.apply(this, arguments))))));\n };\n case 7:\n return function () {\n return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));\n };\n case 8:\n return function () {\n return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));\n };\n case 9:\n return function () {\n return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));\n };\n }\n return;\n}\n/**\n * @since 2.0.0\n */\nexport function tuple() {\n var t = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n t[_i] = arguments[_i];\n }\n return t;\n}\n/**\n * @since 2.0.0\n */\nexport function increment(n) {\n return n + 1;\n}\n/**\n * @since 2.0.0\n */\nexport function decrement(n) {\n return n - 1;\n}\n/**\n * @since 2.0.0\n */\nexport function absurd(_) {\n throw new Error('Called `absurd` function which should be uncallable');\n}\n/**\n * Creates a tupled version of this function: instead of `n` arguments, it accepts a single tuple argument.\n *\n * @example\n * import { tupled } from 'fp-ts/function'\n *\n * const add = tupled((x: number, y: number): number => x + y)\n *\n * assert.strictEqual(add([1, 2]), 3)\n *\n * @since 2.4.0\n */\nexport function tupled(f) {\n return function (a) { return f.apply(void 0, a); };\n}\n/**\n * Inverse function of `tupled`\n *\n * @since 2.4.0\n */\nexport function untupled(f) {\n return function () {\n var a = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n a[_i] = arguments[_i];\n }\n return f(a);\n };\n}\nexport function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {\n switch (arguments.length) {\n case 1:\n return a;\n case 2:\n return ab(a);\n case 3:\n return bc(ab(a));\n case 4:\n return cd(bc(ab(a)));\n case 5:\n return de(cd(bc(ab(a))));\n case 6:\n return ef(de(cd(bc(ab(a)))));\n case 7:\n return fg(ef(de(cd(bc(ab(a))))));\n case 8:\n return gh(fg(ef(de(cd(bc(ab(a)))))));\n case 9:\n return hi(gh(fg(ef(de(cd(bc(ab(a))))))));\n default: {\n var ret = arguments[0];\n for (var i = 1; i < arguments.length; i++) {\n ret = arguments[i](ret);\n }\n return ret;\n }\n }\n}\n/**\n * Type hole simulation\n *\n * @since 2.7.0\n */\nexport var hole = absurd;\n/**\n * @since 2.11.0\n */\nexport var SK = function (_, b) { return b; };\n/**\n * Use `Predicate` module instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport function not(predicate) {\n return function (a) { return !predicate(a); };\n}\n/**\n * Use `Endomorphism` module instead.\n *\n * @category zone of death\n * @since 2.10.0\n * @deprecated\n */\nexport var getEndomorphismMonoid = function () { return ({\n concat: function (first, second) { return flow(first, second); },\n empty: identity\n}); };\n"],"names":[],"mappings":";;AAyQO,SAAS,KAAK,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI;AACpD,UAAQ,UAAU,QAAM;AAAA,IACpB,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO,GAAG,CAAC;AAAA,IACf,KAAK;AACD,aAAO,GAAG,GAAG,CAAC,CAAC;AAAA,IACnB,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA,IACvB,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,IAC3B,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IAC/B,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IACnC,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IACvC,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IAC3C,SAAS;AACL,UAAI,MAAM,UAAU,CAAC;AACrB,eAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACvC,cAAM,UAAU,CAAC,EAAE,GAAG;AAAA,MACzB;AACD,aAAO;AAAA,IACV;AAAA,EACJ;AACL;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sources":["../../../../../../node_modules/fp-ts/es6/function.js"],"sourcesContent":["// -------------------------------------------------------------------------------------\n// instances\n// -------------------------------------------------------------------------------------\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var getBooleanAlgebra = function (B) {\n return function () { return ({\n meet: function (x, y) { return function (a) { return B.meet(x(a), y(a)); }; },\n join: function (x, y) { return function (a) { return B.join(x(a), y(a)); }; },\n zero: function () { return B.zero; },\n one: function () { return B.one; },\n implies: function (x, y) { return function (a) { return B.implies(x(a), y(a)); }; },\n not: function (x) { return function (a) { return B.not(x(a)); }; }\n }); };\n};\n/**\n * Unary functions form a semigroup as long as you can provide a semigroup for the codomain.\n *\n * @example\n * import { Predicate, getSemigroup } from 'fp-ts/function'\n * import * as B from 'fp-ts/boolean'\n *\n * const f: Predicate<number> = (n) => n <= 2\n * const g: Predicate<number> = (n) => n >= 0\n *\n * const S1 = getSemigroup(B.SemigroupAll)<number>()\n *\n * assert.deepStrictEqual(S1.concat(f, g)(1), true)\n * assert.deepStrictEqual(S1.concat(f, g)(3), false)\n *\n * const S2 = getSemigroup(B.SemigroupAny)<number>()\n *\n * assert.deepStrictEqual(S2.concat(f, g)(1), true)\n * assert.deepStrictEqual(S2.concat(f, g)(3), true)\n *\n * @category instances\n * @since 2.10.0\n */\nexport var getSemigroup = function (S) {\n return function () { return ({\n concat: function (f, g) { return function (a) { return S.concat(f(a), g(a)); }; }\n }); };\n};\n/**\n * Unary functions form a monoid as long as you can provide a monoid for the codomain.\n *\n * @example\n * import { Predicate } from 'fp-ts/Predicate'\n * import { getMonoid } from 'fp-ts/function'\n * import * as B from 'fp-ts/boolean'\n *\n * const f: Predicate<number> = (n) => n <= 2\n * const g: Predicate<number> = (n) => n >= 0\n *\n * const M1 = getMonoid(B.MonoidAll)<number>()\n *\n * assert.deepStrictEqual(M1.concat(f, g)(1), true)\n * assert.deepStrictEqual(M1.concat(f, g)(3), false)\n *\n * const M2 = getMonoid(B.MonoidAny)<number>()\n *\n * assert.deepStrictEqual(M2.concat(f, g)(1), true)\n * assert.deepStrictEqual(M2.concat(f, g)(3), true)\n *\n * @category instances\n * @since 2.10.0\n */\nexport var getMonoid = function (M) {\n var getSemigroupM = getSemigroup(M);\n return function () { return ({\n concat: getSemigroupM().concat,\n empty: function () { return M.empty; }\n }); };\n};\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var getSemiring = function (S) { return ({\n add: function (f, g) { return function (x) { return S.add(f(x), g(x)); }; },\n zero: function () { return S.zero; },\n mul: function (f, g) { return function (x) { return S.mul(f(x), g(x)); }; },\n one: function () { return S.one; }\n}); };\n/**\n * @category instances\n * @since 2.10.0\n */\nexport var getRing = function (R) {\n var S = getSemiring(R);\n return {\n add: S.add,\n mul: S.mul,\n one: S.one,\n zero: S.zero,\n sub: function (f, g) { return function (x) { return R.sub(f(x), g(x)); }; }\n };\n};\n// -------------------------------------------------------------------------------------\n// utils\n// -------------------------------------------------------------------------------------\n/**\n * @since 2.11.0\n */\nexport var apply = function (a) {\n return function (f) {\n return f(a);\n };\n};\n/**\n * @since 2.0.0\n */\nexport function identity(a) {\n return a;\n}\n/**\n * @since 2.0.0\n */\nexport var unsafeCoerce = identity;\n/**\n * @since 2.0.0\n */\nexport function constant(a) {\n return function () { return a; };\n}\n/**\n * A thunk that returns always `true`.\n *\n * @since 2.0.0\n */\nexport var constTrue = /*#__PURE__*/ constant(true);\n/**\n * A thunk that returns always `false`.\n *\n * @since 2.0.0\n */\nexport var constFalse = /*#__PURE__*/ constant(false);\n/**\n * A thunk that returns always `null`.\n *\n * @since 2.0.0\n */\nexport var constNull = /*#__PURE__*/ constant(null);\n/**\n * A thunk that returns always `undefined`.\n *\n * @since 2.0.0\n */\nexport var constUndefined = /*#__PURE__*/ constant(undefined);\n/**\n * A thunk that returns always `void`.\n *\n * @since 2.0.0\n */\nexport var constVoid = constUndefined;\nexport function flip(f) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (args.length > 1) {\n return f(args[1], args[0]);\n }\n return function (a) { return f(a)(args[0]); };\n };\n}\nexport function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {\n switch (arguments.length) {\n case 1:\n return ab;\n case 2:\n return function () {\n return bc(ab.apply(this, arguments));\n };\n case 3:\n return function () {\n return cd(bc(ab.apply(this, arguments)));\n };\n case 4:\n return function () {\n return de(cd(bc(ab.apply(this, arguments))));\n };\n case 5:\n return function () {\n return ef(de(cd(bc(ab.apply(this, arguments)))));\n };\n case 6:\n return function () {\n return fg(ef(de(cd(bc(ab.apply(this, arguments))))));\n };\n case 7:\n return function () {\n return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));\n };\n case 8:\n return function () {\n return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));\n };\n case 9:\n return function () {\n return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));\n };\n }\n return;\n}\n/**\n * @since 2.0.0\n */\nexport function tuple() {\n var t = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n t[_i] = arguments[_i];\n }\n return t;\n}\n/**\n * @since 2.0.0\n */\nexport function increment(n) {\n return n + 1;\n}\n/**\n * @since 2.0.0\n */\nexport function decrement(n) {\n return n - 1;\n}\n/**\n * @since 2.0.0\n */\nexport function absurd(_) {\n throw new Error('Called `absurd` function which should be uncallable');\n}\n/**\n * Creates a tupled version of this function: instead of `n` arguments, it accepts a single tuple argument.\n *\n * @example\n * import { tupled } from 'fp-ts/function'\n *\n * const add = tupled((x: number, y: number): number => x + y)\n *\n * assert.strictEqual(add([1, 2]), 3)\n *\n * @since 2.4.0\n */\nexport function tupled(f) {\n return function (a) { return f.apply(void 0, a); };\n}\n/**\n * Inverse function of `tupled`\n *\n * @since 2.4.0\n */\nexport function untupled(f) {\n return function () {\n var a = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n a[_i] = arguments[_i];\n }\n return f(a);\n };\n}\nexport function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {\n switch (arguments.length) {\n case 1:\n return a;\n case 2:\n return ab(a);\n case 3:\n return bc(ab(a));\n case 4:\n return cd(bc(ab(a)));\n case 5:\n return de(cd(bc(ab(a))));\n case 6:\n return ef(de(cd(bc(ab(a)))));\n case 7:\n return fg(ef(de(cd(bc(ab(a))))));\n case 8:\n return gh(fg(ef(de(cd(bc(ab(a)))))));\n case 9:\n return hi(gh(fg(ef(de(cd(bc(ab(a))))))));\n default: {\n var ret = arguments[0];\n for (var i = 1; i < arguments.length; i++) {\n ret = arguments[i](ret);\n }\n return ret;\n }\n }\n}\n/**\n * Type hole simulation\n *\n * @since 2.7.0\n */\nexport var hole = absurd;\n/**\n * @since 2.11.0\n */\nexport var SK = function (_, b) { return b; };\n/**\n * Use `Predicate` module instead.\n *\n * @category zone of death\n * @since 2.0.0\n * @deprecated\n */\nexport function not(predicate) {\n return function (a) { return !predicate(a); };\n}\n/**\n * Use `Endomorphism` module instead.\n *\n * @category zone of death\n * @since 2.10.0\n * @deprecated\n */\nexport var getEndomorphismMonoid = function () { return ({\n concat: function (first, second) { return flow(first, second); },\n empty: identity\n}); };\n"],"names":[],"mappings":"AAyQO,SAAS,KAAK,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI;AACpD,UAAQ,UAAU,QAAM;AAAA,IACpB,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO,GAAG,CAAC;AAAA,IACf,KAAK;AACD,aAAO,GAAG,GAAG,CAAC,CAAC;AAAA,IACnB,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA,IACvB,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,IAC3B,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IAC/B,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IACnC,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IACvC,KAAK;AACD,aAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,IAC3C,SAAS;AACL,UAAI,MAAM,UAAU,CAAC;AACrB,eAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACvC,cAAM,UAAU,CAAC,EAAE,GAAG;AAAA,MACzB;AACD,aAAO;AAAA,IACV;AAAA,EACJ;AACL;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.cjs","sources":["../../../../../../node_modules/fp-ts/es6/internal.js"],"sourcesContent":["var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n// -------------------------------------------------------------------------------------\n// Option\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var isNone = function (fa) { return fa._tag === 'None'; };\n/** @internal */\nexport var isSome = function (fa) { return fa._tag === 'Some'; };\n/** @internal */\nexport var none = { _tag: 'None' };\n/** @internal */\nexport var some = function (a) { return ({ _tag: 'Some', value: a }); };\n// -------------------------------------------------------------------------------------\n// Either\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var isLeft = function (ma) { return ma._tag === 'Left'; };\n/** @internal */\nexport var isRight = function (ma) { return ma._tag === 'Right'; };\n/** @internal */\nexport var left = function (e) { return ({ _tag: 'Left', left: e }); };\n/** @internal */\nexport var right = function (a) { return ({ _tag: 'Right', right: a }); };\n// -------------------------------------------------------------------------------------\n// ReadonlyNonEmptyArray\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var singleton = function (a) { return [a]; };\n/** @internal */\nexport var isNonEmpty = function (as) { return as.length > 0; };\n/** @internal */\nexport var head = function (as) { return as[0]; };\n/** @internal */\nexport var tail = function (as) { return as.slice(1); };\n// -------------------------------------------------------------------------------------\n// empty\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var emptyReadonlyArray = [];\n/** @internal */\nexport var emptyRecord = {};\n// -------------------------------------------------------------------------------------\n// Record\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var has = Object.prototype.hasOwnProperty;\n// -------------------------------------------------------------------------------------\n// NonEmptyArray\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var fromReadonlyNonEmptyArray = function (as) { return __spreadArray([as[0]], as.slice(1), true); };\n"],"names":["this"],"mappings":";;AAAqBA,cAAQA,WAAK,iBAAkB,SAAU,IAAI,MAAM,MAAM;AAC1E,MAAI,QAAQ,UAAU,WAAW;AAAG,aAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,IAAI,IAAI,GAAG,KAAK;AACjF,UAAI,MAAM,EAAE,KAAK,OAAO;AACpB,YAAI,CAAC;AAAI,eAAK,MAAM,UAAU,MAAM,KAAK,MAAM,GAAG,CAAC;AACnD,WAAG,CAAC,IAAI,KAAK,CAAC;AAAA,MACjB;AAAA,IACJ;AACD,SAAO,GAAG,OAAO,MAAM,MAAM,UAAU,MAAM,KAAK,IAAI,CAAC;AAC3D;AAgBU,IAAC,SAAS,SAAU,IAAI;AAAE,SAAO,GAAG,SAAS;AAAO;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sources":["../../../../../../node_modules/fp-ts/es6/internal.js"],"sourcesContent":["var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n// -------------------------------------------------------------------------------------\n// Option\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var isNone = function (fa) { return fa._tag === 'None'; };\n/** @internal */\nexport var isSome = function (fa) { return fa._tag === 'Some'; };\n/** @internal */\nexport var none = { _tag: 'None' };\n/** @internal */\nexport var some = function (a) { return ({ _tag: 'Some', value: a }); };\n// -------------------------------------------------------------------------------------\n// Either\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var isLeft = function (ma) { return ma._tag === 'Left'; };\n/** @internal */\nexport var isRight = function (ma) { return ma._tag === 'Right'; };\n/** @internal */\nexport var left = function (e) { return ({ _tag: 'Left', left: e }); };\n/** @internal */\nexport var right = function (a) { return ({ _tag: 'Right', right: a }); };\n// -------------------------------------------------------------------------------------\n// ReadonlyNonEmptyArray\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var singleton = function (a) { return [a]; };\n/** @internal */\nexport var isNonEmpty = function (as) { return as.length > 0; };\n/** @internal */\nexport var head = function (as) { return as[0]; };\n/** @internal */\nexport var tail = function (as) { return as.slice(1); };\n// -------------------------------------------------------------------------------------\n// empty\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var emptyReadonlyArray = [];\n/** @internal */\nexport var emptyRecord = {};\n// -------------------------------------------------------------------------------------\n// Record\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var has = Object.prototype.hasOwnProperty;\n// -------------------------------------------------------------------------------------\n// NonEmptyArray\n// -------------------------------------------------------------------------------------\n/** @internal */\nexport var fromReadonlyNonEmptyArray = function (as) { return __spreadArray([as[0]], as.slice(1), true); };\n"],"names":["this"],"mappings":"AAAqBA,cAAQA,WAAK,iBAAkB,SAAU,IAAI,MAAM,MAAM;AAC1E,MAAI,QAAQ,UAAU,WAAW;AAAG,aAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,IAAI,IAAI,GAAG,KAAK;AACjF,UAAI,MAAM,EAAE,KAAK,OAAO;AACpB,YAAI,CAAC;AAAI,eAAK,MAAM,UAAU,MAAM,KAAK,MAAM,GAAG,CAAC;AACnD,WAAG,CAAC,IAAI,KAAK,CAAC;AAAA,MACjB;AAAA,IACJ;AACD,SAAO,GAAG,OAAO,MAAM,MAAM,UAAU,MAAM,KAAK,IAAI,CAAC;AAC3D;AAgBU,IAAC,SAAS,SAAU,IAAI;AAAE,SAAO,GAAG,SAAS;AAAO;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/get-port/index.js"],"sourcesContent":["import net from 'node:net';\nimport os from 'node:os';\n\nclass Locked extends Error {\n\tconstructor(port) {\n\t\tsuper(`${port} is locked`);\n\t}\n}\n\nconst lockedPorts = {\n\told: new Set(),\n\tyoung: new Set(),\n};\n\n// On this interval, the old locked ports are discarded,\n// the young locked ports are moved to old locked ports,\n// and a new young set for locked ports are created.\nconst releaseOldLockedPortsIntervalMs = 1000 * 15;\n\nconst minPort = 1024;\nconst maxPort = 65_535;\n\n// Lazily create interval on first use\nlet interval;\n\nconst getLocalHosts = () => {\n\tconst interfaces = os.networkInterfaces();\n\n\t// Add undefined value for createServer function to use default host,\n\t// and default IPv4 host in case createServer defaults to IPv6.\n\tconst results = new Set([undefined, '0.0.0.0']);\n\n\tfor (const _interface of Object.values(interfaces)) {\n\t\tfor (const config of _interface) {\n\t\t\tresults.add(config.address);\n\t\t}\n\t}\n\n\treturn results;\n};\n\nconst checkAvailablePort = options =>\n\tnew Promise((resolve, reject) => {\n\t\tconst server = net.createServer();\n\t\tserver.unref();\n\t\tserver.on('error', reject);\n\n\t\tserver.listen(options, () => {\n\t\t\tconst {port} = server.address();\n\t\t\tserver.close(() => {\n\t\t\t\tresolve(port);\n\t\t\t});\n\t\t});\n\t});\n\nconst getAvailablePort = async (options, hosts) => {\n\tif (options.host || options.port === 0) {\n\t\treturn checkAvailablePort(options);\n\t}\n\n\tfor (const host of hosts) {\n\t\ttry {\n\t\t\tawait checkAvailablePort({port: options.port, host}); // eslint-disable-line no-await-in-loop\n\t\t} catch (error) {\n\t\t\tif (!['EADDRNOTAVAIL', 'EINVAL'].includes(error.code)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn options.port;\n};\n\nconst portCheckSequence = function * (ports) {\n\tif (ports) {\n\t\tyield * ports;\n\t}\n\n\tyield 0; // Fall back to 0 if anything else failed\n};\n\nexport default async function getPorts(options) {\n\tlet ports;\n\tlet exclude = new Set();\n\n\tif (options) {\n\t\tif (options.port) {\n\t\t\tports = typeof options.port === 'number' ? [options.port] : options.port;\n\t\t}\n\n\t\tif (options.exclude) {\n\t\t\tconst excludeIterable = options.exclude;\n\n\t\t\tif (typeof excludeIterable[Symbol.iterator] !== 'function') {\n\t\t\t\tthrow new TypeError('The `exclude` option must be an iterable.');\n\t\t\t}\n\n\t\t\tfor (const element of excludeIterable) {\n\t\t\t\tif (typeof element !== 'number') {\n\t\t\t\t\tthrow new TypeError('Each item in the `exclude` option must be a number corresponding to the port you want excluded.');\n\t\t\t\t}\n\n\t\t\t\tif (!Number.isSafeInteger(element)) {\n\t\t\t\t\tthrow new TypeError(`Number ${element} in the exclude option is not a safe integer and can't be used`);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\texclude = new Set(excludeIterable);\n\t\t}\n\t}\n\n\tif (interval === undefined) {\n\t\tinterval = setInterval(() => {\n\t\t\tlockedPorts.old = lockedPorts.young;\n\t\t\tlockedPorts.young = new Set();\n\t\t}, releaseOldLockedPortsIntervalMs);\n\n\t\t// Does not exist in some environments (Electron, Jest jsdom env, browser, etc).\n\t\tif (interval.unref) {\n\t\t\tinterval.unref();\n\t\t}\n\t}\n\n\tconst hosts = getLocalHosts();\n\n\tfor (const port of portCheckSequence(ports)) {\n\t\ttry {\n\t\t\tif (exclude.has(port)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlet availablePort = await getAvailablePort({...options, port}, hosts); // eslint-disable-line no-await-in-loop\n\t\t\twhile (lockedPorts.old.has(availablePort) || lockedPorts.young.has(availablePort)) {\n\t\t\t\tif (port !== 0) {\n\t\t\t\t\tthrow new Locked(port);\n\t\t\t\t}\n\n\t\t\t\tavailablePort = await getAvailablePort({...options, port}, hosts); // eslint-disable-line no-await-in-loop\n\t\t\t}\n\n\t\t\tlockedPorts.young.add(availablePort);\n\n\t\t\treturn availablePort;\n\t\t} catch (error) {\n\t\t\tif (!['EADDRINUSE', 'EACCES'].includes(error.code) && !(error instanceof Locked)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n\n\tthrow new Error('No available ports found');\n}\n\nexport function portNumbers(from, to) {\n\tif (!Number.isInteger(from) || !Number.isInteger(to)) {\n\t\tthrow new TypeError('`from` and `to` must be integer numbers');\n\t}\n\n\tif (from < minPort || from > maxPort) {\n\t\tthrow new RangeError(`'from' must be between ${minPort} and ${maxPort}`);\n\t}\n\n\tif (to < minPort || to > maxPort) {\n\t\tthrow new RangeError(`'to' must be between ${minPort} and ${maxPort}`);\n\t}\n\n\tif (from > to) {\n\t\tthrow new RangeError('`to` must be greater than or equal to `from`');\n\t}\n\n\tconst generator = function * (from, to) {\n\t\tfor (let port = from; port <= to; port++) {\n\t\t\tyield port;\n\t\t}\n\t};\n\n\treturn generator(from, to);\n}\n"],"names":[],"mappings":";;;AAGA,MAAM,eAAe,MAAM;AAAA,EAC1B,YAAY,MAAM;AACjB,UAAM,GAAG,gBAAgB;AAAA,EACzB;AACF;AAEA,MAAM,cAAc;AAAA,EACnB,KAAK,oBAAI,IAAK;AAAA,EACd,OAAO,oBAAI,IAAK;AACjB;AAKA,MAAM,kCAAkC,MAAO;AAM/C,IAAI;AAEJ,MAAM,gBAAgB,MAAM;AAC3B,QAAM,aAAa,GAAG;AAItB,QAAM,UAAU,oBAAI,IAAI,CAAC,QAAW,SAAS,CAAC;AAE9C,aAAW,cAAc,OAAO,OAAO,UAAU,GAAG;AACnD,eAAW,UAAU,YAAY;AAChC,cAAQ,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,IAAI,UAAU,iGAAiG;AAAA,QACrH;AAED,YAAI,CAAC,OAAO,cAAc,OAAO,GAAG;AACnC,gBAAM,IAAI,UAAU,UAAU,uEAAuE;AAAA,QACrG;AAAA,MACD;AAED,gBAAU,IAAI,IAAI,eAAe;AAAA,IACjC;AAAA,EACD;AAED,MAAI,aAAa,QAAW;AAC3B,eAAW,YAAY,MAAM;AAC5B,kBAAY,MAAM,YAAY;AAC9B,kBAAY,QAAQ,oBAAI;IACxB,GAAE,+BAA+B;AAGlC,QAAI,SAAS,OAAO;AACnB,eAAS,MAAK;AAAA,IACd;AAAA,EACD;AAED,QAAM,QAAQ;AAEd,aAAW,QAAQ,kBAAkB,KAAK,GAAG;AAC5C,QAAI;AACH,UAAI,QAAQ,IAAI,IAAI,GAAG;AACtB;AAAA,MACA;AAED,UAAI,gBAAgB,MAAM,iBAAiB,EAAC,GAAG,SAAS,KAAI,GAAG,KAAK;AACpE,aAAO,YAAY,IAAI,IAAI,aAAa,KAAK,YAAY,MAAM,IAAI,aAAa,GAAG;AAClF,YAAI,SAAS,GAAG;AACf,gBAAM,IAAI,OAAO,IAAI;AAAA,QACrB;AAED,wBAAgB,MAAM,iBAAiB,EAAC,GAAG,SAAS,KAAI,GAAG,KAAK;AAAA,MAChE;AAED,kBAAY,MAAM,IAAI,aAAa;AAEnC,aAAO;AAAA,IACP,SAAQ,OAAP;AACD,UAAI,CAAC,CAAC,cAAc,QAAQ,EAAE,SAAS,MAAM,IAAI,KAAK,EAAE,iBAAiB,SAAS;AACjF,cAAM;AAAA,MACN;AAAA,IACD;AAAA,EACD;AAED,QAAM,IAAI,MAAM,0BAA0B;AAC3C;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/get-port/index.js"],"sourcesContent":["import net from 'node:net';\nimport os from 'node:os';\n\nclass Locked extends Error {\n\tconstructor(port) {\n\t\tsuper(`${port} is locked`);\n\t}\n}\n\nconst lockedPorts = {\n\told: new Set(),\n\tyoung: new Set(),\n};\n\n// On this interval, the old locked ports are discarded,\n// the young locked ports are moved to old locked ports,\n// and a new young set for locked ports are created.\nconst releaseOldLockedPortsIntervalMs = 1000 * 15;\n\nconst minPort = 1024;\nconst maxPort = 65_535;\n\n// Lazily create interval on first use\nlet interval;\n\nconst getLocalHosts = () => {\n\tconst interfaces = os.networkInterfaces();\n\n\t// Add undefined value for createServer function to use default host,\n\t// and default IPv4 host in case createServer defaults to IPv6.\n\tconst results = new Set([undefined, '0.0.0.0']);\n\n\tfor (const _interface of Object.values(interfaces)) {\n\t\tfor (const config of _interface) {\n\t\t\tresults.add(config.address);\n\t\t}\n\t}\n\n\treturn results;\n};\n\nconst checkAvailablePort = options =>\n\tnew Promise((resolve, reject) => {\n\t\tconst server = net.createServer();\n\t\tserver.unref();\n\t\tserver.on('error', reject);\n\n\t\tserver.listen(options, () => {\n\t\t\tconst {port} = server.address();\n\t\t\tserver.close(() => {\n\t\t\t\tresolve(port);\n\t\t\t});\n\t\t});\n\t});\n\nconst getAvailablePort = async (options, hosts) => {\n\tif (options.host || options.port === 0) {\n\t\treturn checkAvailablePort(options);\n\t}\n\n\tfor (const host of hosts) {\n\t\ttry {\n\t\t\tawait checkAvailablePort({port: options.port, host}); // eslint-disable-line no-await-in-loop\n\t\t} catch (error) {\n\t\t\tif (!['EADDRNOTAVAIL', 'EINVAL'].includes(error.code)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn options.port;\n};\n\nconst portCheckSequence = function * (ports) {\n\tif (ports) {\n\t\tyield * ports;\n\t}\n\n\tyield 0; // Fall back to 0 if anything else failed\n};\n\nexport default async function getPorts(options) {\n\tlet ports;\n\tlet exclude = new Set();\n\n\tif (options) {\n\t\tif (options.port) {\n\t\t\tports = typeof options.port === 'number' ? [options.port] : options.port;\n\t\t}\n\n\t\tif (options.exclude) {\n\t\t\tconst excludeIterable = options.exclude;\n\n\t\t\tif (typeof excludeIterable[Symbol.iterator] !== 'function') {\n\t\t\t\tthrow new TypeError('The `exclude` option must be an iterable.');\n\t\t\t}\n\n\t\t\tfor (const element of excludeIterable) {\n\t\t\t\tif (typeof element !== 'number') {\n\t\t\t\t\tthrow new TypeError('Each item in the `exclude` option must be a number corresponding to the port you want excluded.');\n\t\t\t\t}\n\n\t\t\t\tif (!Number.isSafeInteger(element)) {\n\t\t\t\t\tthrow new TypeError(`Number ${element} in the exclude option is not a safe integer and can't be used`);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\texclude = new Set(excludeIterable);\n\t\t}\n\t}\n\n\tif (interval === undefined) {\n\t\tinterval = setInterval(() => {\n\t\t\tlockedPorts.old = lockedPorts.young;\n\t\t\tlockedPorts.young = new Set();\n\t\t}, releaseOldLockedPortsIntervalMs);\n\n\t\t// Does not exist in some environments (Electron, Jest jsdom env, browser, etc).\n\t\tif (interval.unref) {\n\t\t\tinterval.unref();\n\t\t}\n\t}\n\n\tconst hosts = getLocalHosts();\n\n\tfor (const port of portCheckSequence(ports)) {\n\t\ttry {\n\t\t\tif (exclude.has(port)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlet availablePort = await getAvailablePort({...options, port}, hosts); // eslint-disable-line no-await-in-loop\n\t\t\twhile (lockedPorts.old.has(availablePort) || lockedPorts.young.has(availablePort)) {\n\t\t\t\tif (port !== 0) {\n\t\t\t\t\tthrow new Locked(port);\n\t\t\t\t}\n\n\t\t\t\tavailablePort = await getAvailablePort({...options, port}, hosts); // eslint-disable-line no-await-in-loop\n\t\t\t}\n\n\t\t\tlockedPorts.young.add(availablePort);\n\n\t\t\treturn availablePort;\n\t\t} catch (error) {\n\t\t\tif (!['EADDRINUSE', 'EACCES'].includes(error.code) && !(error instanceof Locked)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n\n\tthrow new Error('No available ports found');\n}\n\nexport function portNumbers(from, to) {\n\tif (!Number.isInteger(from) || !Number.isInteger(to)) {\n\t\tthrow new TypeError('`from` and `to` must be integer numbers');\n\t}\n\n\tif (from < minPort || from > maxPort) {\n\t\tthrow new RangeError(`'from' must be between ${minPort} and ${maxPort}`);\n\t}\n\n\tif (to < minPort || to > maxPort) {\n\t\tthrow new RangeError(`'to' must be between ${minPort} and ${maxPort}`);\n\t}\n\n\tif (from > to) {\n\t\tthrow new RangeError('`to` must be greater than or equal to `from`');\n\t}\n\n\tconst generator = function * (from, to) {\n\t\tfor (let port = from; port <= to; port++) {\n\t\t\tyield port;\n\t\t}\n\t};\n\n\treturn generator(from, to);\n}\n"],"names":["os"],"mappings":";;AAGA,MAAM,eAAe,MAAM;AAAA,EAC1B,YAAY,MAAM;AACjB,UAAM,GAAG,gBAAgB;AAAA,EACzB;AACF;AAEA,MAAM,cAAc;AAAA,EACnB,KAAK,oBAAI,IAAK;AAAA,EACd,OAAO,oBAAI,IAAK;AACjB;AAKA,MAAM,kCAAkC,MAAO;AAM/C,IAAI;AAEJ,MAAM,gBAAgB,MAAM;AAC3B,QAAM,aAAaA,YAAG;AAItB,QAAM,UAAU,oBAAI,IAAI,CAAC,QAAW,SAAS,CAAC;AAE9C,aAAW,cAAc,OAAO,OAAO,UAAU,GAAG;AACnD,eAAW,UAAU,YAAY;AAChC,cAAQ,IAAI,OAAO,OAAO;AAAA,IAC1B;AAAA,EACD;AAED,SAAO;AACR;AAEA,MAAM,qBAAqB,aAC1B,IAAI,QAAQ,CAAC,SAAS,WAAW;AAChC,QAAM,SAAS,IAAI;AACnB,SAAO,MAAK;AACZ,SAAO,GAAG,SAAS,MAAM;AAEzB,SAAO,OAAO,SAAS,MAAM;AAC5B,UAAM,EAAC,KAAI,IAAI,OAAO,QAAO;AAC7B,WAAO,MAAM,MAAM;AAClB,cAAQ,IAAI;AAAA,IAChB,CAAI;AAAA,EACJ,CAAG;AACH,CAAE;AAEF,MAAM,mBAAmB,OAAO,SAAS,UAAU;AAClD,MAAI,QAAQ,QAAQ,QAAQ,SAAS,GAAG;AACvC,WAAO,mBAAmB,OAAO;AAA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